joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ed39
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4500e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov ebx, ecx
mov dword [0x452328], edi
mov esi, edi
mov dword [ebp - 0x1c], eax
mov edi, ebx
mov ecx, edi
call fcn.0040ef4c
cmp eax, 0xffffffff
je 0x40ed7b
add esi, eax
add edi, eax
cmp esi, 5
jb 0x40ed66
cmp esi, 5
mov dword [ebp - 0x10], esi
push 0
sbb esi, esi
not esi
pop edi
and esi, dword [ebp - 0x10]
je 0x40ee73
lea edx, [esi + 0x26]
push ebx
call fcn.0040e2e4
mov dword [ebp - 0x10], eax
pop ecx
test eax, eax
je 0x40ee73
lea ecx, [esi + 0x26]
push ecx
mov ecx, eax
call fcn.0040e18f
mov eax, dword [ebp - 0x10]
mov edx, ebx
push esi
lea ecx, [eax + 0x1c]
mov dword [eax], ebx
mov dword [ebp - 0xc], ecx
mov dword [eax + 4], 0x40da50
mov dword [eax + 0xc], esi
mov dword [eax + 8], ecx
call fcn.0040e1b5
add esp, 8
test esi, esi
je 0x40ede3
cmp byte [edi + ecx], 0x90
jne 0x40ede3
inc edi
cmp edi, esi
jb 0x40edd8
lea eax, [edi + 5]
cmp eax, esi
ja 0x40edfd
mov al, byte [edi + ecx]
cmp al, 0xe8
je 0x40edf5
cmp al, 0xe9
jne 0x40edfd
mov eax, ebx
sub eax, ecx
add dword [edi + ecx + 1], eax
mov eax, 0x25ff
mov word [ecx + esi], ax
add ecx, 6
add ecx, esi
lea eax, [ebx + esi]
push 5
pop edi
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
mov byte [ebp - 0xc], 0xe9
mov dword [eax + esi + 2], ecx
mov eax, 0x40da50
sub eax, ebx
sub eax, edi
mov dword [ebp - 0xb], eax
lea eax, [ebp - 0x20]
push eax
push 0x20
lea eax, [esi + 0x26]
mov esi, dword [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x14]
push eax
push 0x40
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40ee73
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
mov dword [ebx], eax
mov al, byte [ebp - 8]
mov byte [ebx + 4], al
mov eax, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1c]
mov dword [eax], edi
xor eax, eax
mov dword [0x452328], esi
inc eax
jmp 0x40ee75
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420acb
leave
ret
Function at 0x40ee84
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x4500e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x452328]
mov eax, dword [esi]
cmp byte [eax], 0xe9
jne 0x40ef3d
lea ecx, [ebp - 0xa0]
push ecx
push 0x40
push dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40ef3d
push ebx
mov ebx, dword [esi + 8]
lea ecx, [ebp - 0x9c]
push edi
mov edi, dword [esi + 0xc]
mov edx, ebx
push edi
call fcn.0040e1b5
add esp, 4
xor ecx, ecx
test edi, edi
je 0x40eeee
cmp byte [ebp + ecx - 0x9c], 0x90
jne 0x40eeee
inc ecx
cmp ecx, edi
jb 0x40eedf
lea eax, [ecx + 5]
cmp eax, edi
ja 0x40ef0d
mov al, byte [ebp + ecx - 0x9c]
cmp al, 0xe8
je 0x40ef04
cmp al, 0xe9
jne 0x40ef0d
sub ebx, dword [esi]
add dword [ebp + ecx - 0x9b], ebx
mov ecx, dword [esi]
lea edx, [ebp - 0x9c]
push edi
call fcn.0040e1b5
add esp, 4
lea eax, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
push dword [esi + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor eax, eax
pop edi
inc eax
pop ebx
jmp 0x40ef3f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00420acb
leave
ret
Function at 0x410fa9
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push str.NtSuspendProcess
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtResumeProcess
push dword [ebp + 8]
mov dword [0x454c40], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryInformationProcess
push dword [ebp + 8]
mov dword [0x454c44], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtSetInformationProcess
push dword [ebp + 8]
mov dword [0x454c48], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryInformationThread
push dword [ebp + 8]
mov dword [0x454c4c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtSetInformationThread
push dword [ebp + 8]
mov dword [0x454c50], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtCompareTokens
push dword [ebp + 8]
mov dword [0x454c54], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryObject
push dword [ebp + 8]
mov dword [0x454c58], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryInformationFile
push dword [ebp + 8]
mov dword [0x454c5c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryDirectoryFile
push dword [ebp + 8]
mov dword [0x454c60], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtSetInformationFile
push dword [ebp + 8]
mov dword [0x454c64], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlNtStatusToDosError
push dword [ebp + 8]
mov dword [0x454c68], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlCaptureStackBackTrace
push dword [ebp + 8]
mov dword [0x454c6c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x454c70], eax
mov eax, 0x454c40
pop ebp
ret 4

Function at 0x41183c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4500e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x28], 0x33323130
mov ecx, dword [edx]
mov dword [ebp - 0x24], 0x37363534
mov dword [ebp - 0x20], 0x42413938
mov eax, dword [esi]
mov dword [ebp - 0x1c], 0x46454443
mov dword [ebp - 0x18], 0x4a494847
mov dword [ebp - 0x14], 0x4e4d4c4b
movzx eax, byte [eax]
shr eax, 4
mov dword [ebp - 0x10], 0x5251504f
mov dword [ebp - 0xc], 0x56555453
mov dword [ebp - 8], 0x5a595857
mov al, byte [ebp + eax - 0x28]
mov byte [ecx], al
inc dword [edx]
mov eax, dword [esi]
mov ecx, dword [edx]
mov dword [ebp - 0x28], 0x33323130
mov dword [ebp - 0x24], 0x37363534
movzx eax, byte [eax]
and eax, 0xf
mov dword [ebp - 0x20], 0x42413938
mov dword [ebp - 0x1c], 0x46454443
mov dword [ebp - 0x18], 0x4a494847
mov dword [ebp - 0x14], 0x4e4d4c4b
mov dword [ebp - 0x10], 0x5251504f
mov dword [ebp - 0xc], 0x56555453
mov dword [ebp - 8], 0x5a595857
mov al, byte [ebp + eax - 0x28]
mov byte [ecx], al
inc dword [edx]
mov ecx, dword [ebp - 4]
inc dword [esi]
xor ecx, ebp
pop esi
call fcn.00420acb
leave
ret
Function at 0x411a49
Capabilities:
Parse pe header

Disassembly:
push 0x74
mov eax, 0x43ba9a
call fcn.0042145f
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x34]
push eax
push edx
push 6
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExA]
test eax, eax
jne 0x411a83
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00416f5d
jmp 0x411bc5
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x14]
and dword [edi + 0x44], 0
mov ebx, 0x104
push edi
push ebx
mov edx, eax
mov dword [ebp - 0x40], eax
mov dword [edi + 0x40], eax
call fcn.0041151a
pop ecx
pop ecx
jmp 0x411ab6
mov edx, dword [ebp - 0x40]
lea ecx, [ebp - 0x14]
add ebx, ebx
push edi
push ebx
call fcn.0041151a
pop ecx
pop ecx
mov esi, dword [ebp - 0x14]
mov ecx, esi
call fcn.00416f5d
or dword [ebp - 4], 0xffffffff
cmp eax, 0x7a
je 0x411aa5
test esi, esi
je 0x411ad1
mov ecx, esi
jmp 0x411a79
mov edx, dword [ebp - 0x34]
mov eax, 0x5a4d
cmp word [edx], ax
jne 0x411bc0
mov ecx, dword [edx + 0x3c]
add ecx, edx
cmp dword [ecx], 0x4550
jne 0x411bc0
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x411bc0
mov eax, dword [ecx + 0x50]
and dword [edi + 0x4c], 0
mov dword [edi + 0x48], eax
cmp dword [ecx + 0x74], 6
jbe 0x411bb5
cmp dword [ecx + 0xac], 0x1c
jb 0x411bb9
mov eax, dword [ecx + 0xa8]
cmp dword [eax + edx + 0x10], 0x1c
jb 0x411bb9
mov ebx, dword [eax + edx + 0x14]
add ebx, edx
cmp dword [ebx], 0x53445352
jne 0x411bc0
lea eax, [edi + 0x20]
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x58], eax
call fcn.0041626b
push 7
pop ecx
lea esi, [ebp - 0x58]
lea edi, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
lea edx, [ebx + 4]
lea ecx, [ebp - 0x4c]
call fcn.004119d2
mov edx, eax
lea ecx, [ebp - 0x80]
call fcn.00411900
push 0x24
pop edx
movzx ecx, byte [eax + 0x24]
sub edx, ecx
mov ecx, dword [ebp - 0x24]
test ecx, ecx
js 0x411b86
cmp edx, ecx
jb 0x411b86
mov edx, ecx
mov ecx, dword [ebp - 0x30]
push 0
push 0
push edx
push eax
lea edx, [ebp - 0x2c]
call fcn.0041177f
lea ecx, [ebp - 0x30]
call fcn.0041164b
add esp, 8
mov ecx, dword [eax]
lea edx, [eax + 4]
push dword [edx + 4]
push dword [ebx + 0x14]
call fcn.004115b2
add esp, 0x10
xor eax, eax
jmp 0x411bc5
mov eax, 0x8000005c
jmp 0x411bc5
mov eax, 0x8000005a
call fcn.0042140e
ret

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

Disassembly:
push esi
push edi
push dword [ecx]
mov esi, edx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x41717c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00416f5d
mov edi, eax
mov eax, edi
pop edi
pop esi
ret
Function at 0x419b54
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4500e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 0xc], ecx
mov esi, dword [edi]
test esi, esi
je 0x419bb3
and dword [edi], 0
mov eax, 0x400000
cmp esi, 0x400000
ja 0x419b87
mov eax, esi
and dword [ebp - 8], 0
lea edx, [ebp - 8]
push 0
push edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 8]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x419bc4
test ecx, ecx
je 0x419bb3
mov ecx, dword [ebp - 0xc]
test esi, esi
jne 0x419b78
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00420acb
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x419bb5

Function at 0x419cac
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov edx, ecx
pop esi
mov eax, edx
shr edx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor edx, eax
sub esi, 1
jne 0x419cb4
mov dword [ecx*4 + 0x452770], edx
inc ecx
cmp ecx, 0x100
jb 0x419caf
mov edx, 0x400
pop esi
mov ecx, dword [edx + 0x452370]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x452770]
mov dword [edx + 0x452770], ecx
add edx, 4
cmp edx, 0x2000
jb 0x419cdf
mov dword [0x454770], 0x41aed0
call fcn.0041b128
test eax, eax
jne 0x419d20
mov dword [0x454770], 0x41af70
ret
Function at 0x41d986
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
and edx, 0xfffffffe
mov esi, edi
lea ebx, [edi - 4]
add ebx, edx
cmp esi, ebx
ja 0x41d9f8
movzx edx, byte [esi + 1]
movzx eax, byte [esi + 3]
xor edx, 8
and eax, edx
add esi, 2
cmp eax, 0xf8
jb 0x41d995
movzx ecx, byte [esi - 2]
movzx eax, byte [esi + 1]
and eax, 7
shl edx, 8
add ecx, edx
lea ecx, [eax + ecx*8]
movzx eax, byte [esi]
add esi, 2
shl ecx, 8
add ecx, eax
mov eax, esi
sub eax, edi
shr eax, 1
sub ecx, eax
mov eax, ecx
mov byte [esi - 2], cl
shr eax, 0xb
mov byte [esi - 4], al
mov eax, ecx
shr eax, 0x13
and al, 7
shr ecx, 8
or al, 0xf0
or cl, 0xf8
mov byte [esi - 3], al
mov byte [esi - 1], cl
jmp 0x41d995
sub esi, edi
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x41daa7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, ecx
xor ebx, ebx
mov dword [ebp - 4], eax
mov esi, dword [esi]
and esi, 7
cmp edx, 5
jae 0x41dac9
xor eax, eax
jmp UuidCreateSequential
add edx, 0xfffffffc
add edx, eax
mov dword [ebp - 8], edx
push edi
lea edi, [ebx + eax]
cmp edi, edx
jae 0x41dae9
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x41dae6
inc edi
cmp edi, edx
jb 0x41dad9
mov eax, dword [ebp - 4]
mov ecx, edi
sub ecx, ebx
mov ebx, edi
sub ecx, eax
sub ebx, eax
cmp edi, edx
jae 0x41dbb5
cmp ecx, 2
jbe 0x41db74
xor esi, esi
movzx edx, byte [edi + 4]
lea eax, [edx + 1]
test al, 0xfe
jne 0x41dba4
movzx eax, byte [edi + 3]
add ebx, 5
shl edx, 8
or edx, eax
movzx eax, byte [edi + 2]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 1]
shl edx, 8
or edx, eax
sub edx, ebx
test esi, esi
je 0x41db54
and esi, 6
mov eax, edx
shl esi, 2
mov ecx, esi
shr eax, cl
inc eax
test al, 0xfe
jne 0x41db52
mov eax, 0x100
shl eax, cl
dec eax
xor edx, eax
sub edx, ebx
xor esi, esi
mov eax, edx
mov byte [edi + 1], dl
shr eax, 8
mov byte [edi + 2], al
mov eax, edx
shr edx, 0x18
shr eax, 0x10
and dl, 1
neg dl
mov byte [edi + 3], al
mov byte [edi + 4], dl
jmp 0x41dbaa
shr esi, cl
test esi, esi
je 0x41db02
cmp esi, 4
ja 0x41db99
cmp esi, 3
je 0x41db99
mov eax, esi
shr eax, 1
movzx eax, byte [eax + edi + 1]
inc eax
test al, 0xfe
jne 0x41db02
mov eax, dword [ebp - 4]
or esi, 8
shr esi, 1
inc ebx
jmp 0x41dad2
or esi, 8
shr esi, 1
inc ebx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
jmp 0x41dad2
push 2
shr esi, cl
pop eax
cmp eax, ecx
mov eax, dword [ebp + 0xc]
pop edi
sbb ecx, ecx
not ecx
and ecx, esi
mov dword [eax], ecx
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x411c80
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c53f8
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.00476679
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.005885cf
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 0x4245f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c6938
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.00452550
add esp, 4
lea ecx, [ebp - 0x1c]
call fcn.0040b920
test eax, eax
jne 0x42465c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040b8a0
jmp 0x424698
cmp dword [0x6436f4], 1
jne 0x42466a
call fcn.00423df0
cmp dword [0x651f80], 0
je 0x424682
mov ecx, dword [0x651f80]
push ecx
call fcn.00422730
add esp, 4
push 0
call fcn.00589c42
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.005885cf
mov esp, ebp
pop ebp
ret
Function at 0x4271f0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c6eb3
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 0x614cc9
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.00430190
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 0x615808
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.0042fc20
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 0x4272ce
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 0x427347
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 0x614cca
lea ecx, [ebp - 0x40]
push ecx
call fcn.0041eb30
add esp, 8
movzx edx, al
test edx, edx
je 0x427336
push 0x61580c
lea eax, [ebp - 0x40]
push eax
call fcn.0041eb30
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x427336
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 0x4272bf
mov dword [ebp - 0x90], 0
jmp 0x427362
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 0x427374
jmp 0x427353
lea ecx, [ebp - 0x1c]
call fcn.0041cfd0
cmp eax, 2
jb 0x427394
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.005885cf
mov esp, ebp
pop ebp
ret
Function at 0x436e00
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c7ebb
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 0x615bd8
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.00430190
add esp, 8
mov dword [ebp - 4], 0
push 0x614ddb
lea eax, [ebp - 0x230]
push eax
call fcn.0040a1b0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x436e9c
push 0x615be8
lea ecx, [ebp - 0x230]
call fcn.00408bc0
jmp 0x436ec7
lea ecx, [ebp - 0x230]
call fcn.004067b0
push eax
call fcn.0043d0b0
add esp, 4
movzx edx, al
test edx, edx
jne 0x436ec7
push 0x615bec
lea ecx, [ebp - 0x230]
call fcn.00408bc0
push 1
push 0
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x230]
call fcn.004306c0
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.005885cf
mov esp, ebp
pop ebp
ret
Function at 0x43ce60
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0xc], 0
cmp dword [ebp + 8], 0
jne 0x43ce7a
xor eax, eax
jmp 0x43cf69
mov eax, dword [ebp + 8]
push eax
call fcn.0058a608
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 0x43ce98
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 0x43cecb
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x20]
jge 0x43cf34
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
cmp ecx, 0x5c
je 0x43ceef
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
movsx eax, byte [edx]
cmp eax, 0x2f
jne 0x43cf32
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.0058a658
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x43cf29
mov eax, dword [ebp - 8]
push eax
call fcn.0058a6b8
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x43cf29
or eax, 0xffffffff
jmp 0x43cf69
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0xc]
mov byte [ecx], 0x2f
jmp 0x43cec2
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.0058a658
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x43cf5a
mov eax, dword [ebp - 8]
push eax
call fcn.0058a6b8
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00588e04
add esp, 4
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x43d0b0
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 0x43d0cb
xor al, al
jmp 0x43d0d9
mov ecx, dword [ebp - 4]
and ecx, 0x10
je 0x43d0d7
mov al, 1
jmp 0x43d0d9
xor al, al
mov esp, ebp
pop ebp
ret