joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48964c
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
cmp dword [ebp + 8], 0
jne 0x489672
push 0x146
push 0x4a6820
call fcn.004783b0
test eax, eax
je 0x489672
int3
xor eax, eax
test eax, eax
jne 0x489658
mov dword [ebp - 4], 1
mov dword [ebp - 8], 1
jmp 0x489691
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
cmp eax, dword [edx + 8]
jge 0x489714
cmp dword [ebp + 0xc], 0
je 0x4896b4
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [edx + eax*8 + 4]
cmp ecx, dword [ebp + 0xc]
jne 0x4896f9
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + ecx*4]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4896e0
push 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xc]
call dword [edx]
mov dword [ebp - 0x20], eax
jmp 0x4896e7
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 8]
mov dword [ecx + edx*4], 0
jmp 0x48970f
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 8]
cmp dword [ecx + edx*4], 0
je 0x48970f
mov dword [ebp - 4], 0
jmp 0x489688
cmp dword [ebp - 4], 0
je 0x489788
mov eax, dword [ebp - 0x1c]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 0x14
call fcn.0048bd90
mov edx, dword [ebp - 0x1c]
add edx, 0x1c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x489773
push 1
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x14]
call dword [edx]
mov dword [ebp - 0x24], eax
jmp 0x48977a
mov dword [ebp - 0x24], 0
push 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x489791
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp + 0xc], 0
jne 0x4897d4
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4897d2
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.0048964c
jmp 0x489809
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.0048a0a0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x489809
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.0048964c
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
jmp 0x4897e2
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esp, ebp
pop ebp
ret 8

Function at 0x48ce8d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0x10], 0
jne 0x48ced9
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
test eax, eax
je 0x48ced2
mov eax, dword [ebp + 8]
push eax
push 0x4a9428
call fcn.0041b995
add esp, 8
xor eax, eax
jmp 0x48cf45
mov eax, 1
jmp 0x48cf45
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x48cf32
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x48cf32
cmp dword [ebp - 8], 0
jne 0x48cf32
mov eax, 1
jmp 0x48cf45
mov edx, dword [ebp + 8]
push edx
push 0x4a9464
call fcn.0041b995
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4a9fee
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
pushal
mov edx, dword [ebp + 8]
add edx, dword [edx + 0x3c]
mov edx, dword [edx + 0x78]
add edx, dword [ebp + 8]
mov ecx, dword [edx + 0x18]
mov esi, dword [edx + 0x20]
add esi, dword [ebp + 8]
push ecx
lodsd eax, dword [esi]
add eax, dword [ebp + 8]
xor edi, edi
mov ecx, dword [eax]
inc eax
adc edi, ecx
rol ecx, 8
or cl, cl
jne 0x4aa00e
cmp edi, dword [ebp + 0xc]
pop ecx
loopne 0x4aa007
jne 0x4aa04b
sub esi, 4
sub esi, dword [ebp + 8]
sub esi, dword [edx + 0x20]
shr esi, 1
add esi, dword [edx + 0x24]
add esi, dword [ebp + 8]
lodsd eax, dword [esi]
movzx eax, ax
shl eax, 2
add eax, dword [edx + 0x1c]
add eax, dword [ebp + 8]
mov edx, dword [eax]
add edx, dword [ebp + 8]
mov dword [esp + 0x1c], edx
jmp 0x4aa053
mov dword [esp + 0x1c], 0
popal
leave
ret 8
Function at 0x4ab086
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
pushfd
push esi
push edi
cld
mov eax, dword [ebp + 8]
cmp word [eax], 0x5a4d
jne 0x4ab0b4
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x4ab0b4
movzx edx, word [eax + 0x14]
add edx, 0x18
add edx, eax
sub edx, dword [ebp + 8]
sub dword [ebp + 0xc], edx
add dword [ebp + 8], edx
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
shr ecx, 2
xor eax, eax
repne scasd eax, dword es:[edi]
lea esi, [edi - 4]
mov edx, esi
repe scasd eax, dword es:[edi]
sub edx, edi
neg edx
sub edx, 4
jecxz 0x4ab0d6
cmp edx, dword [ebp + 0x10]
jb 0x4ab0bf
cmp edx, dword [ebp + 0x10]
jb 0x4ab0e4
lea eax, [esi + 4]
sub edx, 4
sub edx, 8
pop edi
pop esi
popfd
leave
ret 0xc

Function at 0x4ab0eb
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
xor eax, eax
pushal
mov eax, dword [ebp + 0x10]
shr eax, 1
mov dword [ebp - 4], eax
and byte [ebp + 0x10], 1
mov eax, dword [ebp + 8]
add eax, dword [eax + 0x3c]
movzx edx, word [eax + 0x14]
add edx, 0x18
add edx, eax
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
jne 0x4ab122
cmp ecx, dword [ebp + 8]
jbe 0x4ab122
sub ecx, dword [ebp + 8]
jmp 0x4ab130
cmp dword [ebp + 0x10], 1
jne 0x4ab130
cmp ecx, dword [eax + 0x34]
jbe 0x4ab130
sub ecx, dword [eax + 0x34]
mov dword [ebp + 0xc], ecx
cmp ecx, dword [eax + 0x54]
jae 0x4ab14c
cmp dword [ebp + 0x10], 0
jne 0x4ab143
add ecx, dword [eax + 0x34]
jmp 0x4ab146
add ecx, dword [ebp + 8]
mov dword [esp + 0x1c], ecx
jmp 0x4ab1b0
movzx ecx, word [eax + 6]
cmp dword [ebp + 0x10], 0
jne 0x4ab160
mov esi, dword [edx + 0x14]
mov edi, dword [edx + 0x10]
add edi, esi
jmp 0x4ab168
mov esi, dword [edx + 0xc]
mov edi, dword [edx + 8]
add edi, esi
cmp dword [ebp + 0xc], esi
jb 0x4ab1a7
cmp dword [ebp + 0xc], edi
jae 0x4ab1a7
cmp dword [ebp - 4], 0
jne 0x4ab188
test byte [edx + 0x24], 0x80
je 0x4ab188
mov dword [esp + 0x1c], 0xffffffff
jmp 0x4ab1b0
sub esi, dword [ebp + 0xc]
neg esi
cmp dword [ebp + 0x10], 0
jne 0x4ab19b
add esi, dword [edx + 0xc]
add esi, dword [eax + 0x34]
jmp 0x4ab1a1
add esi, dword [edx + 0x14]
add esi, dword [ebp + 8]
mov dword [esp + 0x1c], esi
jmp 0x4ab1b0
add edx, 0x28
or ecx, ecx
je 0x4ab1b0
loop 0x4ab150
popal
leave
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10006724
Capabilities:
Link many functions at runtime

Disassembly:
push edi
mov edi, ecx
xor eax, eax
mov dword [edi], 0x100015dc
mov dword [edi + 0x38], eax
push 0x10001670
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
call fcn.10009631
mov dword [edi + 4], eax
test eax, eax
je 0x100067db
push ebx
push esi
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x10001688
push eax
call esi
push 0x10001698
push dword [edi + 4]
mov dword [edi + 0x10], eax
call esi
push 0x100016ac
push dword [edi + 4]
mov dword [edi + 0x14], eax
call esi
push 0x100016bc
push dword [edi + 4]
mov dword [edi + 0x18], eax
call esi
push 0x100016d0
push dword [edi + 4]
mov dword [edi + 0x1c], eax
call esi
mov ebx, 0x100016e8
push ebx
push dword [edi + 4]
mov dword [edi + 0x20], eax
call esi
push ebx
push dword [edi + 4]
mov dword [edi + 0x24], eax
call esi
push 0x100016f4
push dword [edi + 4]
mov dword [edi + 0x28], eax
call esi
push 0x10001710
push dword [edi + 4]
mov dword [edi + 0x2c], eax
call esi
push 0x10001724
push dword [edi + 4]
mov dword [edi + 0x30], eax
call esi
pop esi
mov dword [edi + 0x34], eax
mov dword [edi + 8], 1
pop ebx
mov eax, edi
pop edi
ret

Function at 0x10009631
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x10009640
pop dword [ebp - 0x30]
mov eax, 0x9cd192f3
sub eax, 0x8cd0fcb3
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x2471512c
add dword [ebp - 0x40], 0x29e0f41f
mov dword [ebp - 0x3c], 0xb8589397
sub dword [ebp - 0x3c], 0x86254752
mov dword [ebp - 0x38], 0x42c207fa
add dword [ebp - 0x38], 0x98a3c34
mov dword [ebp - 0x34], 0x17e883ea
add dword [ebp - 0x34], 0xe8177c16
lea eax, [ebp - 0x40]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x608139d
add dword [ebp - 0x40], 0x6e6a55b9
mov dword [ebp - 0x3c], 0x694a110d
add dword [ebp - 0x3c], 0xd8225068
mov dword [ebp - 0x38], 0xe9e10bc4
add dword [ebp - 0x38], 0x798e60a8
mov dword [ebp - 0x34], 0x911ddaac
sub dword [ebp - 0x34], 0x911ddaac
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0xe27940f1
sub eax, 0xd2792f91
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x3c95a
push 0
call eax
mov ecx, 0xc16d082f
add ecx, 0x3e93474c
mov edi, eax
mov ebx, 0xe96a1b1f
sub ebx, 0xd967111f
add ebx, dword [ebp - 0x30]
mov esi, 0x333864ab
xor dword [ebp - 0x10], 0xa4cf53b6
mov edx, dword [ebx]
sub dword [ebp - 0x24], eax
sub edx, esi
xor dword [ebp - 0x10], 0xbc6f1e7e
mov dword [edi], edx
add dword [ebp - 0x1c], eax
add edi, 4
add ebx, 4
loop 0x10009757
add eax, 0x5e75844a
sub eax, 0x5e74538b
xor ebx, ebx
add ebx, eax
add eax, 0x52c1e5b2
sub eax, 0x52c1e5ad
mov ecx, sym.aceexch.dll_Ordinal_2
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x1001341b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x10002830]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
je 0x1001354d
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ebx, dword [sym.imp.MSO.dll_Ordinal_6137]
cmp eax, 0xffffffff
je 0x1001346d
test al, 0x10
je 0x1001346d
push 0x103
lea eax, [ebp - 0x414]
push eax
push esi
call fcn.10009631
jmp 0x100134da
call fcn.10009631
xor eax, eax
push eax
push eax
push eax
push eax
push 0x100
lea eax, [ebp - 0x20c]
push eax
push 3
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.msvcr100.dll__wsplitpath_s]
lea eax, [ebp - 0x20c]
push eax
call fcn.10009631
add esp, 0x28
test eax, eax
je 0x100134a0
dec eax
add eax, eax
cmp eax, 0x200
jae 0x10013468
xor ecx, ecx
mov word [ebp + eax - 0x20c], cx
mov esi, 0x103
push esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.10009631
push esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
mov eax, dword [edi + 4]
test eax, eax
je 0x100134f9
lea ecx, [ebp - 0x414]
push ecx
push eax
call fcn.10009631
neg eax
sbb eax, eax
and eax, 0xfffffc16
jmp 0x10013552
lea eax, [ebp - 0x414]
push eax
call fcn.10009631
lea esi, [eax*2 + 0x1a]
push esi
call dword [sym.imp.msvcr100.dll_malloc]
pop ecx
pop ecx
mov dword [edi + 4], eax
test eax, eax
je 0x10013546
shr esi, 1
push esi
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.10009631
push esi
push dword [edi + 4]
push 0x100012d4
call ebx
push esi
push dword [edi + 4]
push 0x10001ec4
call ebx
xor eax, eax
jmp 0x10013552
mov eax, 0xfffffc0d
jmp 0x10013552
mov eax, 0xfffffc16
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100155e0
leave
ret 4

Function at 0x100155e0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10002830]
jne fcn.10015aa0
ret
Function at 0x10075d62
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x100de7b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x100e3510]
test dword [ebp + 8], eax
je 0x10075dfc
mov edx, dword [ebp + 0xc]
lea eax, [ebp + 0x10]
push eax
lea ecx, [ebp - 0x808]
call sym.MSVCR120.dll__wexecve
xor eax, eax
mov word [ebp - 8], ax
mov eax, dword [0x100dfd60]
pop ecx
test eax, eax
je 0x10075def
push esi
push edi
lea ecx, [ebp - 0x808]
push ecx
push eax
call sym.MSVCR120.dll_fwprintf
mov edi, dword [0x100e3524]
mov esi, dword [0x100e3520]
pop ecx
pop ecx
push 0
push 0x32
push edi
push esi
call fcn.10032225
add esi, 1
mov dword [0x100e3520], esi
adc edi, 0
or eax, edx
mov dword [0x100e3524], edi
pop edi
pop esi
jne 0x10075dfc
push dword [0x100dfd60]
call sym.MSVCR120.dll_fflush
pop ecx
jmp 0x10075dfc
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10010cbc
mov esp, ebp
pop ebp
ret
Function at 0x32023a96
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x32023aa5
pop dword [ebp - 0x40]
mov eax, 0xde2ea600
add eax, 0x53d394a5
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x4c705e0e
sub dword [ebp - 0x50], 0xfe1e18c3
mov dword [ebp - 0x4c], 0x5820e4ae
add dword [ebp - 0x4c], 0xda126797
mov dword [ebp - 0x48], 0xd4b3e9b0
sub dword [ebp - 0x48], 0x8867a582
mov dword [ebp - 0x44], 0xa344bb48
add dword [ebp - 0x44], 0x5cbb44b8
lea eax, [ebp - 0x50]
push eax
mov eax, 0xa5305edf
add eax, 0x8cd4f1a1
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x3976cefc
add dword [ebp - 0x50], 0x3afb9a5a
mov dword [ebp - 0x4c], 0x16a6ce43
add dword [ebp - 0x4c], 0x2ac59332
mov dword [ebp - 0x48], 0x341c5ae2
sub dword [ebp - 0x48], 0xd0acee76
mov dword [ebp - 0x44], 0xe7f77fb4
add dword [ebp - 0x44], 0x1808804c
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x4996d
push 0
call eax
mov ecx, 0x505b
mov esi, eax
mov edi, 0x3207d600
add edi, dword [ebp - 0x40]
mov edx, 0xf09060aa
add edx, 0xd1e33c94
mov ebx, dword [edi]
add dword [ebp - 0x28], 0xfd25a428
xor ebx, edx
add dword [ebp - 0x28], 0xaea65f4d
mov dword [esi], ebx
add dword [ebp - 4], ebx
add esi, 4
add edi, 0xc125ecfa
add edi, 0x3eda130a
loop 0x32023bb6
add eax, 0x7f2cdf6b
add eax, 0x80d454d4
mov ebx, eax
add eax, 5
mov ecx, 0x32000000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x405df0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x44a068]
xor eax, esp
mov dword [esp + 0x1c], eax
cmp dword [0x44be4c], 0
je 0x405e1e
xor al, al
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00418a6b
mov esp, ebp
pop ebp
ret
push 0x20
call fcn.00418a33
mov ecx, eax
call fcn.00405d20
mov dword [0x44be4c], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 8]
call fcn.00406c30
lea eax, [esp + 4]
push eax
call fcn.00406780
mov eax, dword [esp + 0x18]
cmp eax, 8
jb 0x405e63
inc eax
lea ecx, [esp + 4]
push eax
push dword [esp + 8]
call fcn.00407a70
mov ecx, dword [esp + 0x1c]
mov al, 1
xor ecx, esp
call fcn.00418a6b
mov esp, ebp
pop ebp
ret

Function at 0x406780
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44a068]
xor eax, ebp
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov edx, 0x445b84
push esi
mov dword [ebp - 0x24], 0
xor eax, eax
push edi
mov edi, dword [0x44be4c]
lea esi, [edx + 2]
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], ax
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4067c0
sub edx, esi
lea eax, [ebp - 0x20]
sar edx, 1
push edx
push 0x445b84
push eax
call fcn.0040ed60
add esp, 0xc
cmp dword [ebp - 0x10], 0
je 0x406818
cmp dword [ebp - 0xc], 8
lea ecx, [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], 0
cmovae eax, dword [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov ecx, edi
push esi
push dword [ebp - 0x24]
call fcn.00405ea0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0xc]
cmp eax, 8
jb 0x40682d
inc eax
lea ecx, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
call fcn.00407a70
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.00418a6b
mov esp, ebp
pop ebp
ret 4
Function at 0x40b3c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x44a068]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x44be60], 0
je 0x40b3ec
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418a6b
mov esp, ebp
pop ebp
ret
mov eax, dword [0x44be64]
test eax, eax
jne 0x40b40b
push 0x18
call fcn.00418a33
add esp, 4
mov ecx, eax
call fcn.0040b2e0
mov dword [0x44be64], eax
cmp dword [eax + 0x14], 8
jb 0x40b413
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x44be60], eax
cmp eax, 0xffffffff
je 0x40b437
test eax, eax
jne 0x40b3dc
xor eax, eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40b4dd
cmp eax, 0x104
ja 0x40b4dd
mov ecx, dword [0x44be64]
lea eax, [ebp - 0x20c]
push eax
call fcn.0040bbf0
mov ecx, dword [0x44be64]
call fcn.0040bbd0
cmp word [eax], 0x5c
je 0x40b494
push 0x445a00
call fcn.00408050
mov ecx, dword [0x44be64]
push str.debug.log
call fcn.00408050
mov eax, dword [0x44be64]
cmp dword [eax + 0x14], 8
jb 0x40b4ab
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x44be60], eax
cmp eax, 0xffffffff
je 0x40b4d3
test eax, eax
jne 0x40b3dc
mov dword [0x44be60], 0
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.00418a6b
mov esp, ebp
pop ebp
ret
Function at 0x40b560
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x43c
mov eax, dword [0x44a068]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
mov ebx, ecx
push esi
push edi
lea edi, [ebx + 8]
push edi
call fcn.0040c240
add esp, 4
lea eax, [esp + 0x10]
lea esi, [ebx + 0xc]
mov ecx, esi
push eax
call fcn.004039f0
mov eax, dword [0x44be5c]
test eax, eax
je 0x40b5c9
lea ecx, [esp + 0x10]
push ecx
push dword [ebx + 0xa0]
push dword [ebx + 0xa8]
push dword [ebx + 0xa4]
push dword [ebx]
call eax
add esp, 0x14
test al, al
jne 0x40b6bc
cmp dword [ebx], 2
jl 0x40b60d
cmp dword [esp + 0x24], 0x10
lea edi, [esp + 0x10]
mov esi, dword [esp + 0x20]
cmovae edi, dword [esp + 0x10]
push 2
call fcn.0041f88b
add esp, 4
push eax
push 1
push esi
push edi
call fcn.00420ba3
push 2
call fcn.0041f88b
add esp, 0x14
push eax
call fcn.0041fee2
add esp, 4
lea esi, [ebx + 0xc]
lea edi, [ebx + 8]
call fcn.0040b3c0
test al, al
je 0x40b63c
cmp dword [esp + 0x24], 0x10
lea ecx, [esp + 0xc]
push 0
push ecx
push dword [esp + 0x28]
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
push dword [0x44be60]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebx], 3
jne 0x40b6bc
mov ecx, 0x400
lea eax, [esp + 0x10]
cmp dword [esp + 0x20], ecx
cmovb ecx, dword [esp + 0x20]
cmp dword [esp + 0x24], 0x10
cmovae eax, dword [esp + 0x10]
test ecx, ecx
je 0x40b670
push ecx
push eax
lea eax, [esp + 0x48]
push eax
call fcn.00419e80
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.00411360
add esp, 4
cmp dword [0x44be68], 0
je 0x40b70e
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.004039f0
lea eax, [esp + 0x28]
push eax
call dword [0x44be68]
mov eax, dword [esp + 0x40]
add esp, 4
cmp eax, 0x10
jb 0x40b6bc
inc eax
lea ecx, [esp + 0x28]
push eax
push dword [esp + 0x2c]
call fcn.00403140
mov eax, dword [esp + 0x24]
cmp eax, 0x10
jb 0x40b6d4
inc eax
lea ecx, [esp + 0x10]
push eax
push dword [esp + 0x14]
call fcn.00403140
push dword [ebx + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea esi, [edi + 0x50]
mov ecx, esi
call fcn.00401e80
push esi
mov dword [esi], vtable.std::ios_base.0
call fcn.00417e6a
mov ecx, dword [esp + 0x448]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00418a6b
mov esp, ebp
pop ebp
ret
call fcn.00411340
int3
Function at 0x40c3a0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x44a068]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], edx
xor eax, eax
mov dword [esp + 0x24], 7
push edi
mov edi, dword [ebp + 8]
lea ecx, [esp + 0x14]
xor bl, bl
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
call fcn.0040d800
test al, al
je 0x40c428
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
call fcn.0040cb60
cmp dword [esp + 0x3c], 0
je 0x40c410
cmp dword [esp + 0x40], 8
lea eax, [esp + 0x2c]
cmovae eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov bl, 1
mov eax, dword [esp + 0x40]
cmp eax, 8
jb 0x40c428
inc eax
lea ecx, [esp + 0x2c]
push eax
push dword [esp + 0x30]
call fcn.00407a70
cmp dword [esi + 0x14], 8
jb 0x40c430
mov esi, dword [esi]
push esi
call dword [esp + 0x14]
mov esi, eax
test esi, esi
jne 0x40c447
test edi, edi
je 0x40c447
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
test bl, bl
je 0x40c460
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
cmovae eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [esp + 0x28]
cmp eax, 8
jb 0x40c478
inc eax
lea ecx, [esp + 0x14]
push eax
push dword [esp + 0x18]
call fcn.00407a70
mov ecx, dword [esp + 0x44]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00418a6b
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40d57e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret