joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f714f
Capabilities:
Encode data using xor

Disassembly:
xlatb
sal byte [esi - 0x69a5bbd6], 1
lcall 0x8abc, 0x3395c48d
in al, dx
sbb ch, byte [edi]
sti
sar byte [ecx], cl
popal
retf
fsub qword [ebx + 0xc]
rcr dword [esi], 0xb4
scasd eax, dword es:[edi]
sar dword [ebx], 1
lds edx, [edi + 0x3c5150]
mov ah, 0x55
cmp ecx, dword [edx - 0x23d8903]
mov bh, ch
jbe 0x4f7115
std
mov bh, ch
jbe 0x4f7115
std
mov byte [ebx + 0x5f], dl
jbe 0x4f7106
pop ss
lodsb al, byte [esi]
jne 0x4f71a8
test edi, edi
pop ss
in al, dx
pop ebp
wait
sub al, 0x8b
push cs
ljmp 0xe4f1
or byte [edi - 0x34b834d1], 0xbf
xchg edi, eax
jae 0x4f713d
dec ebp
mov ah, byte [ebp + edi*2 + 0x7e]
jns 0x4f71f6
push esi
in al, dx
sbb ebx, dword [ecx - 0x35]
adc eax, dword [edi + ebx*8 + 0x34f5d4e3]
xor ebx, dword gs:[ecx + 0x1b]
cwde
invalid
or edx, esp
test al, 0xfa
insd dword es:[edi], dx
jo 0x4f7275
invalid
or ebp, dword [ebp + edx*4 + 0x29]
js 0x4f7286
sbb eax, 0xad5a0119
push 0xffffffffffffffe1
xor eax, 0xbff13d0
dec dword [ebx]
outsb dx, byte [esi]
lcall 0x99ce, 0xdb3cbb7e
cmc
je 0x4f7281
ret
Function at 0x4012eb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x754670], 1
mov dword [0x754674], 1
mov dword [0x754678], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40132c
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40134f
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x401371
cmp eax, 0x20b
je 0x401396
jmp 0x4013c1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x401383
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x4013ae
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, 0
leave
ret
Function at 0x6eec70
Capabilities:
Query environment variable

Disassembly:
push esi
push ebx
push eax
mov eax, 0x10060
call fcn.00711654
xor ecx, ecx
sub esp, eax
mov eax, dword [esp + eax]
lea ebx, [esp + 0x10]
lea esi, [esp + 0x60]
mov word [esp + 0x10], cx
mov ecx, 0x28
mov edx, eax
xor eax, eax
mov word [esp + 0x60], ax
mov eax, ebx
call fcn.006ec4a0
mov dword [esp + 8], 0x10000
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
sub eax, 1
sub esp, 0xc
cmp eax, 0xffff
ja 0x6eecd9
mov dword [esp], esi
call sub.msvcrt.dll__wcsdup
add esp, 0x10064
pop ebx
pop esi
ret
xor eax, eax
jmp 0x6eecd0

Function at 0x6eece0
Capabilities:
Set environment variable

Disassembly:
push esi
mov ecx, 0x28
push ebx
mov ebx, edx
xor edx, edx
sub esp, 0x64
lea esi, [esp + 0x10]
mov word [esp + 0x10], dx
mov edx, eax
mov eax, esi
call fcn.006ec4a0
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
sub esp, 8
add esp, 0x64
pop ebx
pop esi
ret

Function at 0x6eed20
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, edx
push edi
mov edi, ecx
push esi
push ebx
sub esp, 0x7c
mov dword [esp + 0x1c], eax
mov eax, dword [0x74c608]
test eax, eax
je 0x6eee0d
mov dword [esp + 4], str.environ
mov dword [esp], eax
call dword [sym.imp.python34.dll_PyObject_GetAttrString]
mov dword [esp], ebp
mov ebx, eax
call dword [sym.imp.python34.dll_PyUnicode_FromString]
mov esi, eax
test edi, edi
je 0x6eedc7
mov edx, edi
mov eax, ebp
call fcn.006eece0
mov dword [esp], edi
mov dword [esp + 4], 0xffffffff
call dword [sym.imp.python34.dll_PyUnicode_FromWideChar]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov edi, eax
mov dword [esp], ebx
call dword [sym.imp.python34.dll_PyObject_SetItem]
test eax, eax
jne 0x6eee2c
sub dword [edi], 1
je 0x6eedbc
sub dword [esi], 1
jne 0x6eeda6
mov eax, dword [esi + 4]
mov dword [esp], esi
call dword [eax + 0x18]
sub dword [ebx], 1
jne 0x6eedb4
mov eax, dword [ebx + 4]
mov dword [esp], ebx
call dword [eax + 0x18]
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [edi + 4]
mov dword [esp], edi
call dword [eax + 0x18]
jmp 0x6eed98
lea edi, [esp + 0x20]
mov edx, ebp
mov ecx, 0x28
mov word [esp + 0x20], 0
mov eax, edi
call fcn.006ec4a0
xor eax, eax
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push edx
push edx
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.python34.dll_PyObject_DelItem]
test eax, eax
je 0x6eed98
mov eax, dword [esp + 0x1c]
call fcn.0041b050
jmp 0x6eed98
mov dword [esp], 0x72c5b2
call dword [sym.imp.python34.dll_PyImport_ImportModule]
mov dword [0x74c608], eax
test eax, eax
jne 0x6eed3c
jmp 0x720e0f
mov dword [esp], 1
call dword [sym.imp.python34.dll_PyErr_PrintEx]
mov dword [esp], 1
call dword [sym.imp.python34.dll_Py_Exit]
jmp 0x6eed93
Function at 0x7106a4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call fcn.00720020
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call fcn.00720020
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x711278
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x711297
mov eax, 0
jmp 0x7112db
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x7112ba
mov eax, 0
jmp 0x7112db
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x7112d6
mov eax, 0
jmp 0x7112db
mov eax, 1
leave
ret

Function at 0x7112dd
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x71133c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x711334
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x711334
mov eax, dword [ebp - 4]
jmp 0x711350
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x711311
mov eax, 0
leave
ret
Function at 0xce61b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00ce6140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00ce6140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00ce6140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00ce6140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xce6bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xce6c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xcf887c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xce6c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xce6c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..retplne
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x4f352a9
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..reloc
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x69307ff7
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0xcd2058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xcd21a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xcd207e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xcd206a
add dl, dl
jne 0xcd2089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xcd20dc
xor eax, eax
add dl, dl
jne 0xcd2096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xcd217d
add dl, dl
jne 0xcd20a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcd20b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcd20bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcd20c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xcd20d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xcd2075
mov eax, 1
add dl, dl
jne 0xcd20ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcd20f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xcd20e1
sub eax, ebx
mov ebx, 1
jne 0xcd2128
mov ecx, 1
add dl, dl
jne 0xcd210e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xcd2119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xcd2105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xcd2075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xcd213f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xcd214a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xcd2136
cmp eax, 0x7d00
jae 0xcd216d
cmp eax, 0x500
jb 0xcd2168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xcd2075
cmp eax, 0x7f
ja 0xcd2170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xcd2075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xcd219e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xcd2075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x6f74dc
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x3c]
add edx, dword [ebp + 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
sub ecx, dword [eax + 0x34]
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp - 4]
xor eax, eax
mov ax, word [edx + 0x14]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], 0
jmp 0x6f7525
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
xor edx, edx
mov dx, word [ecx + 6]
cmp dword [ebp - 0x10], edx
jge 0x6f7572
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [eax + 0xc]
jb 0x6f7567
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 8]
add eax, dword [ecx + 8]
cmp dword [ebp + 0xc], eax
jae 0x6f7567
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x24]
and eax, 0x20
test eax, eax
je 0x6f7563
mov eax, 1
jmp 0x6f7574
xor eax, eax
jmp 0x6f7574
mov ecx, dword [ebp - 8]
add ecx, 0x28
mov dword [ebp - 8], ecx
jmp 0x6f751c
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x6f7c82
Capabilities:
Set global application hook
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
cmp dword [0x6fa578], 0
jne 0x6f7d9f
mov dword [0x6fa578], 1
mov ax, word [0x6fa588]
sub ax, 1
mov word [0x6fa588], ax
mov ecx, dword [0x6fa9e0]
add ecx, 1
mov dword [0x6fa9e0], ecx
cmp dword [0x6fa9e0], 5
jbe 0x6f7cf5
call fcn.006f9660
mov dword [0x6fa9e4], eax
cmp dword [0x6fa9dc], 0
je 0x6f7ceb
cmp dword [0x6fa9e4], 0
je 0x6f7ceb
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [0x6fa9e0], 0
call fcn.006f8c1e
test eax, eax
je 0x6f7d14
xor edx, edx
mov dx, word [0x6fa588]
test edx, edx
jne 0x6f7d80
call fcn.006f8c52
test eax, eax
jne 0x6f7d80
push 0x64
lea eax, [ebp - 0x64]
push eax
push 0x6fa1f0
call fcn.006f8ab4
add esp, 0xc
push 0
call dword [sym.imp.USER32.dll_MessageBeep]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x6f9268
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x6fa59c], eax
push 0x2000
push 0x6fa168
lea ecx, [ebp - 0x64]
push ecx
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [0x6fa59c]
push edx
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov word [0x6fa588], 0
jmp 0x6f7cf5
xor eax, eax
mov ax, word [0x6fa588]
test eax, eax
jne 0x6f7d95
mov word [0x6fa588], 0xa
mov dword [0x6fa578], 0
mov esp, ebp
pop ebp
ret 0x10
Function at 0x6f9318
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
jmp 0x6f9330
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x100
jge 0x6f938a
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], 8
jmp 0x6f9351
mov edx, dword [ebp - 0xc]
sub edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jle 0x6f937b
mov eax, dword [ebp - 4]
and eax, 1
test eax, eax
je 0x6f9371
mov ecx, dword [ebp - 4]
shr ecx, 1
xor ecx, 0xedb88320
mov dword [ebp - 4], ecx
jmp 0x6f9379
mov edx, dword [ebp - 4]
shr edx, 1
mov dword [ebp - 4], edx
jmp 0x6f9348
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [eax*4 + 0x6fa5b4], ecx
jmp 0x6f9327
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401012
mov eax, dword [0x443147]
shl eax, 2
mov dword [0x44314b], eax
push edx
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
shr al, 1
out dx, al
xchg ebp, eax
add eax, dword [eax]
pop edx
call fcn.004399f0
call fcn.0043a620
push 0
call fcn.0043b330
pop ecx
push 0x4430f0
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x44314f], eax
push 0
jmp fcn.004407f0

Function at 0x401fdc
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov esi, eax
push esp
call sub.SHELL32.DLL_SHGetMalloc
mov byte [esi], 0
xor ebx, ebx
lea eax, [esp + 4]
push eax
push 0x1a
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
test eax, eax
jne 0x40204d
push esi
push dword [esp + 8]
call sub.SHELL32.DLL_SHGetPathFromIDListA
test eax, eax
je 0x40204d
cmp byte [esi], 0
je 0x40204d
mov eax, esi
call fcn.00401edc
push str.WinRAR
push esi
call fcn.0043a7f4
add esp, 8
xor edx, edx
mov eax, esi
call fcn.00404118
test al, al
jne 0x402048
xor ecx, ecx
xor edx, edx
mov eax, esi
call fcn.00403c1c
test eax, eax
je 0x402048
xor ebx, ebx
jmp 0x40204d
mov ebx, 1
test bl, bl
jne 0x402065
push 0x400
push esi
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov eax, esi
call fcn.00401fac
push dword [esp + 4]
mov edx, dword [esp + 4]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x14]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x403070
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov ebx, eax
push edi
mov dword [ebp - 4], edx
xor edx, edx
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0xc18], edx
cmp byte [ebx + 0x16], 0
mov esi, ecx
je 0x403093
mov al, 1
cmp byte [ebp + 8], 0
mov edi, 0x80000000
je 0x4030a4
or edi, 0x40000000
mov dword [ebp - 8], 1
test al, al
je 0x4030b3
or dword [ebp - 8], 2
xor eax, eax
cmp byte [ebx + 0x15], 0
jne 0x4030c0
add eax, 0x8000000
mov dword [ebp - 0xc], eax
call fcn.0040c0d4
test eax, eax
je 0x4030ed
test esi, esi
je 0x4030ed
cmp word [esi], 0
je 0x4030ed
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push esi
call sub.KERNEL32.DLL_CreateFileW
mov edi, eax
jmp 0x403104
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push dword [ebp - 4]
call sub.KERNEL32.DLL_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
jne 0x40311d
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jne 0x40311d
mov dword [ebx + 0xc18], 1
xor edx, edx
cmp edi, 0xffffffff
mov byte [ebx + 0x12], 0
setne cl
mov dword [ebx + 0xc], edx
and ecx, 1
mov byte [ebx + 0x10], 0
mov byte [ebp - 0xd], cl
cmp byte [ebp - 0xd], 0
je 0x40318b
mov dword [ebx + 4], edi
test esi, esi
je 0x403152
lea eax, [ebx + 0x418]
mov edx, esi
call fcn.0040b7e0
jmp 0x40315b
mov word [ebx + 0x418], 0
cmp dword [ebp - 4], 0
je 0x403172
push dword [ebp - 4]
lea ecx, [ebx + 0x17]
push ecx
call fcn.0043a8d0
add esp, 8
jmp 0x403181
lea edx, [ebx + 0x17]
mov ecx, 0x1000000
mov eax, esi
call fcn.0040b5c0
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.004032a0
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x403438
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe8
mov esi, ecx
test esi, esi
mov edi, eax
mov dword [esp], edx
je 0x4035f0
mov eax, dword [edi + 0xc]
test eax, eax
je 0x403473
dec eax
je 0x40345d
dec eax
je 0x403469
jmp 0x403473
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
jmp 0x403473
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
cmp dword [edi + 0xc], 0
je 0x4034c5
xor ebp, ebp
cmp esi, ebp
jle 0x4034e1
push 0
lea eax, [esp + 8]
push eax
mov edx, esi
sub edx, ebp
cmp edx, 0x4000
jge 0x403498
mov ecx, esi
sub ecx, ebp
jmp 0x40349d
mov ecx, 0x4000
push ecx
mov eax, dword [esp + 0xc]
add eax, ebp
push eax
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
je 0x4034e1
add ebp, 0x4000
cmp esi, ebp
jg 0x40347f
jmp 0x4034e1
push 0
lea eax, [esp + 8]
push eax
push esi
push dword [esp + 0xc]
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
jne 0x4035ec
cmp byte [edi + 0x14], 0
je 0x4035ec
cmp dword [edi + 0xc], 0
jne 0x4035ec
call sub.KERNEL32.DLL_GetLastError
mov ebp, eax
mov eax, edi
call fcn.00403814
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
lea eax, [edi + 0x17]
call fcn.00403ff0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
push ebp
call sub.KERNEL32.DLL_SetLastError
mov eax, esi
cdq
cmp edx, dword [esp + 0x14]
jne 0x40353a
cmp eax, dword [esp + 0x10]
jae 0x403586
jmp 0x40353c
jge 0x403586
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
push edx
push eax
mov eax, esi
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
cmp edx, 0
jne 0x40355e
cmp eax, 0xffffffff
ja 0x403586
jmp 0x403560
jg 0x403586
mov eax, esi
cdq
add eax, dword [esp + 8]
adc edx, dword [esp + 0xc]
cmp edx, 0
jne 0x403577
cmp eax, 0xffffffff
jbe 0x403586
jmp 0x403579
jle 0x403586
lea edx, [edi + 0x17]
mov eax, 0x447970
call fcn.004328ac
lea edx, [edi + 0x17]
mov eax, 0x447970
call fcn.004328e0
test al, al
je 0x4035d6
mov ecx, dword [esp + 4]
cmp ecx, esi
jae 0x403473
cmp dword [esp + 4], 0
jbe 0x403473
mov eax, edi
call fcn.00403814
push edx
push eax
mov eax, dword [esp + 0xc]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
xor edx, edx
mov eax, edi
call fcn.0040375c
jmp 0x403473
lea ecx, [edi + 0x17]
mov eax, 0x447970
xor edx, edx
call fcn.00432894
jmp 0x4035ec
mov byte [edi + 8], 1
add esp, 0x18
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4036dc
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, eax
push esi
push edi
push ecx
mov edi, edx
cmp dword [ebx + 0xc], 1
mov esi, ecx
jne 0x403703
cmp esi, 0x4e20
jle 0x4036f9
mov esi, 0x4e20
push 0xfffffffffffffff6
call sub.KERNEL32.DLL_GetStdHandle
mov dword [ebx + 4], eax
push 0
lea eax, [esp + 4]
push eax
push esi
push edi
push dword [ebx + 4]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x403754
mov eax, ebx
call fcn.00403a58
test al, al
je 0x40373b
cmp esi, 0x4e20
jle 0x40373b
mov ecx, 0x4e20
mov edx, edi
mov eax, ebx
call fcn.004036dc
jmp 0x403757
cmp dword [ebx + 0xc], 1
jne 0x40374f
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x6d
jne 0x40374f
xor eax, eax
jmp 0x403757
or eax, 0xffffffff
jmp 0x403757
mov eax, dword [esp]
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x403c1c
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
call fcn.0040c0d4
test eax, eax
je 0x403c42
test ebx, ebx
je 0x403c42
cmp word [ebx], 0
je 0x403c42
push 0
push ebx
call sub.KERNEL32.DLL_CreateDirectoryW
jmp 0x403c4a
push 0
push esi
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
je 0x403c5d
mov ecx, edi
mov edx, ebx
mov eax, esi
call fcn.004043f4
xor eax, eax
jmp 0x403c78
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
je 0x403c6c
cmp eax, 3
jne 0x403c73
mov eax, 2
jmp 0x403c78
mov eax, 1
pop edi
pop esi
pop ebx
ret

Function at 0x403fb4
Capabilities:
Get disk information

Disassembly:
add esp, 0xfffffc00
mov edx, esp
call fcn.004024e0
cmp byte [esp], 0
je 0x403fcb
mov eax, esp
jmp 0x403fcd
xor eax, eax
push eax
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
je 0x403fe1
cmp eax, 5
je 0x403fe1
xor edx, edx
jmp 0x403fe6
mov edx, 1
mov eax, edx
add esp, 0x400
ret