joyce8/EMBER2024-capa huggingface dataset:
Function at 0x60da40
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov edi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409db8
xor eax, eax
push ebp
push 0x60dbb4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00409cd4
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a9e4
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jbe 0x60db99
mov eax, dword [ebp - 0x18]
call fcn.0040674c
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x60db92
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.0040a9e4
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x60dae8
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x60dbc4
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x60dae8
lea eax, [ebp - 8]
call fcn.00409cd4
cmp ebx, 4
jge 0x60daf1
mov eax, ebx
jmp 0x60daf6
mov eax, 4
mov ebx, eax
test ebx, ebx
jle 0x60db26
mov esi, 1
cmp esi, 1
jne 0x60db15
lea eax, [ebp - 8]
mov edx, 0x60dbd4
call fcn.0040a0fc
jmp 0x60db22
lea eax, [ebp - 8]
mov edx, 0x60dbe8
call fcn.0040abe0
inc esi
dec ebx
jne 0x60db01
push edi
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
shr eax, 0x10
movzx eax, ax
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 8]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
shr eax, 0x10
movzx eax, ax
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 0xc]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x3c]
mov ecx, 3
mov eax, dword [ebp - 8]
call fcn.0042508c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x60db99
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.00406768
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x60dbbb
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409d34
ret

Function at 0x60dbf0
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf4
mov ebx, eax
push esp
push 0x105
call sub.kernel32.dll_GetTempPathW
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.0040aa88
add esp, 0x20c
pop ebx
ret
Function at 0x63269c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7fc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x632793
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
cmp dword [esi + 0x38], 0
jne 0x63277d
xor ebx, ebx
xor eax, eax
mov dword [0x74d474], eax
push 0x800
lea eax, [ebp - 0x804]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
lea eax, [ebp - 4]
lea edx, [ebp - 0x804]
mov ecx, 0x400
call fcn.0040aa88
mov eax, dword [ebp - 4]
test eax, eax
je 0x632702
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp word [edx + eax*2 - 2], 0x5c
je 0x63271a
lea eax, [ebp - 4]
mov edx, 0x6327b0
call fcn.0040abe0
lea eax, [ebp - 4]
mov edx, 0x6327c0
call fcn.0040abe0
cmp dword [ebp - 4], 0
je 0x63277d
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00424450
test al, al
je 0x63277d
mov eax, dword [ebp - 4]
call fcn.0040a9e4
push eax
call sub.kernel32.dll_LoadLibraryW
mov edi, eax
mov dword [esi + 0x38], edi
test edi, edi
je 0x63277d
push 0x6327d8
push edi
call fcn.00412650
mov dword [0x74d474], eax
cmp dword [0x74d474], 0
je 0x63276f
mov bl, 1
jmp 0x63277d
mov eax, dword [esi + 0x38]
push eax
call sub.kernel32.dll_FreeLibrary_2
xor eax, eax
mov dword [esi + 0x38], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x63279a
lea eax, [ebp - 4]
call fcn.00409cd4
ret

Function at 0x6eed34
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
test dl, dl
je 0x6eed46
add esp, 0xfffffff0
call fcn.004085d4
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.00409db8
mov eax, dword [ebp + 0xc]
call fcn.00409db8
xor eax, eax
push ebp
push 0x6eee25
push dword fs:[eax]
Function at 0x4127d8
Capabilities:
Hash data with md5

Disassembly:
push 0xb8
mov eax, 0x434a44
call fcn.0041d834
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0xc0], esi
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
lea eax, [ebp - 0xac]
mov byte [ebp - 4], 2
push 0x68
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x94]
push ebx
push eax
call dword [0x438324]
mov edi, dword [ebp + 8]
add esp, 0xc
cmp dword [ebp + 0x1c], 0x10
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x8c], 0x67452301
mov dword [ebp - 0x88], 0xefcdab89
mov dword [ebp - 0x84], 0x98badcfe
mov dword [ebp - 0x80], 0x10325476
mov eax, edi
jae 0x41287b
lea eax, [ebp + 8]
add eax, dword [ebp + 0x18]
cmp dword [ebp + 0x1c], 0x10
mov dword [ebp - 0xc4], eax
jae 0x41288d
lea edi, [ebp + 8]
cmp edi, eax
je 0x4128be
mov al, byte [edi]
mov byte [ebp - 0x95], al
lea eax, [ebp - 0x95]
push 1
push eax
lea esi, [ebp - 0x94]
call fcn.0041803a
inc edi
pop ecx
pop ecx
cmp edi, dword [ebp - 0xc4]
jne 0x412891
mov esi, dword [ebp - 0xc0]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x94]
call fcn.0041299b
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xb4], ebx
lea eax, [ebp - 0xbc]
push eax
mov byte [ebp - 4], 3
push dword [ebp - 0xa8]
lea edi, [ebp - 0x9c]
push dword [ebp - 0xac]
call fcn.00412a64
mov eax, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xbc]
add esp, 0xc
push dword [ebp - 0x9c]
mov dword [esi + 0x14], 0xf
push eax
push ecx
mov dword [esi + 0x10], ebx
push esi
mov byte [esi], bl
call fcn.00412c56
mov edi, dword [0x438334]
cmp dword [ebp - 0xbc], ebx
je 0x412948
push dword [ebp - 0xbc]
call edi
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xb4], ebx
call fcn.00403768
cmp dword [ebp - 0xac], ebx
je 0x412976
push dword [ebp - 0xac]
call edi
pop ecx
push ebx
push 1
lea ecx, [ebp + 8]
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xa4], ebx
call fcn.00403768
mov eax, esi
call fcn.0041d8b7
ret
Function at 0x41fce0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
xor ecx, ecx
cmp eax, edx
je 0x41fd0f
push esi
push edi
mov esi, ecx
mov edi, ecx
shl esi, 6
shr edi, 2
add esi, edi
movsx edi, byte [eax]
lea esi, [esi + edi - 0x61c88647]
inc eax
xor ecx, esi
cmp eax, edx
jne 0x41fcf0
pop edi
pop esi
mov eax, 0x4e25
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add edx, eax
shr edx, 0x1e
imul edx, edx, 0x7fffd8ee
mov eax, ecx
sub eax, edx
add eax, 0x2710
ret
Function at 0x4322a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xf0
mov eax, 0x43d991
mov dword [esp], eax
mov dword [esp + 4], 0x43d4c4
mov dword [esp + 8], 0x43d4c0
mov dword [esp + 0xc], 0x43d4bc
mov dword [esp + 0x10], 0x43d4b8
mov dword [esp + 0x14], 0x43d4b4
mov dword [esp + 0x18], 0x43d968
mov dword [esp + 0x1c], 0x43d4b0
mov dword [esp + 0x20], 0x43d4ac
mov dword [esp + 0x24], 0x43d9a0
mov dword [esp + 0x28], 0x43d99c
mov dword [esp + 0x2c], 0x43dcc8
mov dword [esp + 0x30], 0x43e61c
mov dword [esp + 0x34], 0x43d4a8
mov dword [esp + 0x38], 0x43d4a4
mov dword [esp + 0x3c], 0x43d4a0
mov dword [esp + 0x40], 0x43d49c
mov dword [esp + 0x44], 0x43d490
mov dword [esp + 0x48], 0x43d19c
mov dword [esp + 0x4c], 0x43dac4
mov dword [esp + 0x50], 0x43e614
mov dword [esp + 0x54], 0x43e618
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0x43d48c
mov dword [esp + 0x64], 0x43d488
mov dword [esp + 0x68], 0x43d998
mov dword [esp + 0x6c], 0x43d484
mov dword [esp + 0x70], 0x43d1a0
mov dword [esp + 0x74], 0x43d18c
mov dword [esp + 0x78], 0x43d16c
mov dword [esp + 0x7c], 0x43d15c
mov dword [esp + 0x80], 0x43d154
mov dword [esp + 0x84], 0x43d14c
mov dword [esp + 0x88], 0x43d144
mov dword [esp + 0x8c], 0x43d198
mov dword [esp + 0x90], 0x43d480
mov dword [esp + 0x94], 0x43d9a4
mov dword [esp + 0x98], 0x43d190
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], 0x43dacc
mov dword [esp + 0xc0], 0x43d228
mov dword [esp + 0xc4], 0x43d20c
mov dword [esp + 0xc8], 0x43dab4
mov dword [esp + 0xcc], 0x43d204
mov dword [esp + 0xd0], 0x43d250
mov dword [esp + 0xd4], 0x43d47c
mov dword [esp + 0xd8], 0x43d164
mov dword [esp + 0xdc], 0x43d22c
mov dword [esp + 0xe0], 0x43d234
mov dword [esp + 0xe4], 0x43d478
mov dword [esp + 0xe8], 0x43d240
mov dword [esp + 0xec], 0x43d224
cmp cl, 0x3c
jae 0x4324bd
movzx eax, cl
mov eax, dword [esp + eax*4]
add esp, 0xf0
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x432072
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x50485001
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x432060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x5c807593
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4320c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x411c80
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c5898
mov eax, dword fs:[0]
push eax
sub esp, 0x1a4
mov eax, dword [0x642490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1a8], ecx
mov ecx, dword [ebp - 0x1a8]
call fcn.004769f1
push 0
mov ecx, dword [ebp - 0x1a8]
call fcn.00412e40
mov dword [ebp - 0x1ac], eax
cmp dword [ebp - 0x1ac], 0
je 0x411d4b
push 4
lea ecx, [ebp - 0x14]
call fcn.00408390
lea ecx, [ebp - 0x14]
call fcn.00413980
mov dword [ebp - 4], 0
push 0x65
lea ecx, [ebp - 0x14]
call fcn.00413480
mov dword [ebp - 0x1b0], eax
lea ecx, [ebp - 0x14]
call fcn.00412e10
movzx eax, al
test eax, eax
jne 0x411d3c
push 0
push 0
push 0x800
mov ecx, dword [ebp - 0x1ac]
call fcn.00412e90
lea ecx, [ebp - 0x14]
call fcn.00405bf0
push eax
push 0x10
push 0
mov ecx, dword [ebp - 0x1ac]
call fcn.00412e90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004139c0
push 1
mov ecx, dword [ebp - 0x1a8]
mov edx, dword [ecx + 0xbc]
push edx
mov ecx, dword [ebp - 0x1a8]
call fcn.00412de0
push 0
mov eax, dword [ebp - 0x1a8]
mov ecx, dword [eax + 0xbc]
push ecx
mov ecx, dword [ebp - 0x1a8]
call fcn.00412de0
lea edx, [ebp - 0x1a4]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [ebp - 0x1a8]
call fcn.00411b30
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00588a69
mov esp, ebp
pop ebp
ret

Function at 0x413160
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x413184
xor eax, eax
jmp 0x413204
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41319b
xor eax, eax
jmp 0x413204
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x4131e7
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x4131e7
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x4131be
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x4131f3
xor eax, eax
jmp 0x413204
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x413201
xor eax, eax
jmp 0x413204
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x424570
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c6dd8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x642490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xc
lea ecx, [ebp - 0x1c]
call fcn.00408390
lea ecx, [ebp - 0x1c]
call fcn.00409f60
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
call fcn.00452a80
add esp, 4
lea ecx, [ebp - 0x1c]
call fcn.0040b920
test eax, eax
jne 0x4245dc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040b8a0
jmp 0x424618
cmp dword [0x6436f4], 1
jne 0x4245ea
call fcn.00423d70
cmp dword [0x652000], 0
je 0x424602
mov ecx, dword [0x652000]
push ecx
call fcn.00422730
add esp, 4
push 0
call fcn.0058a0e2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040b8a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00588a69
mov esp, ebp
pop ebp
ret
Function at 0x427270
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c73c3
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x642490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x94], 0
push 0x614cb9
lea ecx, [ebp - 0x58]
call fcn.004066a0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
push eax
lea ecx, [ebp - 0x70]
push ecx
call fcn.004306c0
add esp, 8
mov byte [ebp - 4], 1
push 0xc
lea ecx, [ebp - 0x28]
call fcn.00408390
lea ecx, [ebp - 0x28]
call fcn.00409f60
mov byte [ebp - 4], 2
push 0x6157a8
lea ecx, [ebp - 0x88]
call fcn.004066a0
mov byte [ebp - 4], 3
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x70]
push ecx
call fcn.00430150
add esp, 0xc
push 0xc
lea ecx, [ebp - 0x1c]
call fcn.00408390
lea ecx, [ebp - 0x1c]
call fcn.00409f60
mov byte [ebp - 4], 4
mov dword [ebp - 0x8c], 0
jmp 0x42734e
mov edx, dword [ebp - 0x8c]
add edx, 1
mov dword [ebp - 0x8c], edx
lea ecx, [ebp - 0x28]
call fcn.0041cfd0
cmp dword [ebp - 0x8c], eax
jae 0x4273c7
mov eax, dword [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x28]
call fcn.00409fb0
push eax
lea ecx, [ebp - 0x40]
call fcn.00406610
mov byte [ebp - 4], 5
push 0x614cba
lea ecx, [ebp - 0x40]
push ecx
call fcn.0041eb30
add esp, 8
movzx edx, al
test edx, edx
je 0x4273b6
push 0x6157ac
lea eax, [ebp - 0x40]
push eax
call fcn.0041eb30
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x4273b6
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0x1c]
call fcn.0041cff0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.00406730
jmp 0x42733f
mov dword [ebp - 0x90], 0
jmp 0x4273e2
mov eax, dword [ebp - 0x90]
add eax, 1
mov dword [ebp - 0x90], eax
lea ecx, [ebp - 0x1c]
call fcn.0041cfd0
cmp dword [ebp - 0x90], eax
jae 0x4273f4
jmp 0x4273d3
lea ecx, [ebp - 0x1c]
call fcn.0041cfd0
cmp eax, 2
jb 0x427414
push 1
lea ecx, [ebp - 0x1c]
call fcn.00409fb0
push eax
lea ecx, [ebp - 0x58]
call fcn.00407150
lea ecx, [ebp - 0x58]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004066e0
mov edx, dword [ebp - 0x94]
or edx, 1
mov dword [ebp - 0x94], edx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.00409f90
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x88]
call fcn.00406730
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00409f90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00406730
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00406730
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00588a69
mov esp, ebp
pop ebp
ret
Function at 0x437330
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c845b
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x642490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24c], 0
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x615b78
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x250], eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x230]
push edx
call fcn.004306c0
add esp, 8
mov dword [ebp - 4], 0
push 0x614dcb
lea eax, [ebp - 0x230]
push eax
call fcn.0040a1b0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x4373cc
push 0x615b88
lea ecx, [ebp - 0x230]
call fcn.00408bc0
jmp 0x4373f7
lea ecx, [ebp - 0x230]
call fcn.004067b0
push eax
call fcn.0043d5e0
add esp, 4
movzx edx, al
test edx, edx
jne 0x4373f7
push 0x615b8c
lea ecx, [ebp - 0x230]
call fcn.00408bc0
push 1
push 0
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x230]
call fcn.00430bf0
lea ecx, [ebp - 0x248]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004066e0
mov edx, dword [ebp - 0x24c]
or edx, 1
mov dword [ebp - 0x24c], edx
lea ecx, [ebp - 0x248]
call fcn.00406730
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00406730
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00588a69
mov esp, ebp
pop ebp
ret
Function at 0x43d390
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0xc], 0
cmp dword [ebp + 8], 0
jne 0x43d3aa
xor eax, eax
jmp 0x43d499
mov eax, dword [ebp + 8]
push eax
call fcn.0058aaa8
add esp, 4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x14]
mov cl, byte [eax]
mov byte [ebp - 1], cl
add dword [ebp - 0x14], 1
cmp byte [ebp - 1], 0
jne 0x43d3c8
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], 0
jmp 0x43d3fb
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x20]
jge 0x43d464
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
cmp ecx, 0x5c
je 0x43d41f
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
movsx eax, byte [edx]
cmp eax, 0x2f
jne 0x43d462
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0xc]
mov byte [ecx], 0
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.0058aaf8
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x43d459
mov eax, dword [ebp - 8]
push eax
call fcn.0058ab58
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x43d459
or eax, 0xffffffff
jmp 0x43d499
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0xc]
mov byte [ecx], 0x2f
jmp 0x43d3f2
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.0058aaf8
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x43d48a
mov eax, dword [ebp - 8]
push eax
call fcn.0058ab58
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.005892a4
add esp, 4
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x43d5e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x43d5fb
xor al, al
jmp 0x43d609
mov ecx, dword [ebp - 4]
and ecx, 0x10
je 0x43d607
mov al, 1
jmp 0x43d609
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x440c50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c8f08
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x642490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x40], 0
je 0x440c90
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x45]
test edx, edx
jne 0x440c9c
mov al, 1
jmp 0x440e3f
mov dword [ebp - 0x54], 8
call fcn.00405010
push eax
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x30]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x40], eax
call fcn.00405010
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x44]
push edx
call fcn.00404fe0
add esp, 8
movzx eax, al
test eax, eax
je 0x440cdf
xor al, al
jmp 0x440e3f
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.00407110
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x58]
push edx
lea ecx, [ebp - 0x28]
call fcn.0040f740
mov ecx, eax
call fcn.0040ba70
mov esi, eax
lea ecx, [ebp - 0x28]
call fcn.00406bd0
add esi, eax
push esi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040f740
mov ecx, eax
call fcn.0040ba70
push eax
mov ecx, dword [ebp - 0x30]
add ecx, 0x48
push ecx
mov edx, dword [ebp - 0x30]
mov ecx, dword [edx + 0x40]
call fcn.004411e0
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x440d5a
cmp dword [ebp - 0x3c], 1
je 0x440d61
cmp dword [ebp - 0x3c], 3
je 0x440dfb
jmp 0x440e13
mov eax, dword [ebp - 0x30]
mov byte [eax + 0x45], 0
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040f740
mov ecx, eax
call fcn.0040ba70
mov edx, dword [ebp - 0x2c]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x440dc4
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040f740
mov ecx, eax
call fcn.0040ba70
push eax
call fcn.0058b81d
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x440dc4
mov byte [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406730
mov al, byte [ebp - 0x34]
jmp 0x440e3f
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x45]
test edx, edx
jne 0x440de7
mov byte [ebp - 0x31], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406730
mov al, byte [ebp - 0x31]
jmp 0x440e3f
cmp dword [ebp - 0x38], 0
jne 0x440df9
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.00434b80
jmp 0x440e2b
mov byte [ebp - 0x33], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406730
mov al, byte [ebp - 0x33]
jmp 0x440e3f
mov byte [ebp - 0x32], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00406730
mov al, byte [ebp - 0x32]
jmp 0x440e3f
jmp 0x440cf2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00588a69
mov esp, ebp
pop ebp
ret