joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401230
Capabilities:
Create thread
Initialize winsock library

Disassembly:
sub esp, 0x3e4
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x3e0], eax
mov eax, dword [esp + 0x3e8]
push edi
push 0
push eax
push 0
push 0
push 0
push closesocket
push 0
push closesocket
push 0xcf0000
push 0x424640
push 0x424578
push 0
mov dword [0x424708], eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
je 0x401404
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1e2]
push ecx
mov word [esp + 0x1e4], ax
call fcn.0040f4e0
add esp, 0xc
lea edx, [esp + 8]
push edx
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 1
mov edi, 0x424ec8
call fcn.00406130
add esp, 4
test eax, eax
jne 0x4013b9
push 0x3a
push eax
lea ecx, [esp + 0x1a6]
push ecx
mov word [esp + 0x1a8], ax
call fcn.0040f4e0
add esp, 0xc
lea edi, [esp + 0x19c]
call fcn.004015e0
xor eax, eax
jmp 0x401300
movzx ecx, word [esp + eax + 0x19c]
mov word [eax + 0x425070], cx
add eax, 2
test cx, cx
jne 0x401300
push 0x41dc64
push 0x40
push 0x424ecc
call fcn.0040a674
add esp, 0xc
push 0x41dc80
mov edx, 0x51
push 0x10
push 0x424f4e
mov word [0x424f4c], dx
call fcn.0040a674
add esp, 0xc
push 0x41dc8c
push 0x40
push 0x424f6e
call fcn.0040a674
mov eax, 0x2b66
add esp, 0xc
mov word [0x424fee], ax
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0x19c]
mov word [eax + 0x425050], cx
add eax, 2
test cx, cx
jne 0x401370
mov eax, 0x425050
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x401390
mov ecx, dword [0x41dca8]
mov dx, word [0x41dcac]
mov dword [eax], ecx
mov word [eax + 4], dx
mov dword [0x425090], 5
call fcn.00402b10
lea edi, [esp + 0x1d8]
call fcn.004015e0
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0x1d8]
mov word [eax + 0x4250c8], cx
add eax, 2
test cx, cx
jne 0x4013d0
push 0x4250c8
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x40141c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
mov ecx, dword [esp + 0x3e0]
xor ecx, esp
call fcn.0040a5bc
add esp, 0x3e4
ret
push 0x4250c8
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x401404
mov ecx, 0x425558
call fcn.00402980
mov eax, dword [0x425094]
push 0
push 0
push 0
push 0x402bc0
push 0
push 0
mov dword [0x425560], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0x3e4]
pop edi
mov dword [0x42361c], eax
xor ecx, esp
mov eax, 1
call fcn.0040a5bc
add esp, 0x3e4
ret
Function at 0x402d00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x70
or eax, 0xffffffff
push ebx
mov ebx, 1
push ebp
push esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x74], eax
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebx
call fcn.0040a6f5
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x41ffc8]
fadd qword [0x41ffe0]
call fcn.004174f0
mov ebp, eax
xor esi, esi
xor edi, edi
test ebp, ebp
jle 0x402e20
call fcn.0040a6f5
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x41ffc8]
fmul qword [0x41ffd8]
fadd qword [0x41ffd0]
call fcn.004174f0
mov ecx, eax
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jle 0x402e08
lea esp, [esp]
add ecx, ebx
cmp ecx, 0x1a
jne 0x402df9
xor ecx, ecx
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jg 0x402df0
add esi, dword [esp + ecx*4 + 0x18]
mov eax, dword [esp + 0x84]
add ecx, 0x61
mov word [eax + edi*2], cx
add edi, ebx
cmp edi, ebp
jl 0x402db7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret

Function at 0x402e30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x41dda8
mov edi, eax
push 0x82
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x402ea3
push ebp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
mov eax, dword [esp + 0x14]
push esi
mov dword [eax], esi
call fcn.0040b4fb
push esi
mov edi, eax
push 0
push edi
call fcn.0040f4e0
push esi
push ebp
push edi
call fcn.00410070
add esp, 0x1c
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
ret
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x403470
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 0x118
xor esi, esi
lea eax, [esp + 0xc]
push esi
push eax
call fcn.0040f4e0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x403549
mov eax, dword [esp + 8]
cmp eax, 5
jne 0x403515
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x4034ee
cmp word [esp + 0x118], 4
jb 0x403549
mov esi, 1
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040a5bc
add esp, 0x120
ret
cmp eax, 2
jae 0x4034f8
cmp eax, 1
jne 0x403549
mov esi, 3
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040a5bc
add esp, 0x120
ret
cmp eax, 6
jne 0x403549
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x40353f
mov esi, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040a5bc
add esp, 0x120
ret
cmp eax, 1
jne 0x403549
mov esi, 5
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040a5bc
add esp, 0x120
ret

Function at 0x403570
Capabilities:
Get file size

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 3
push closesocket
or edi, 0xffffffff
push eax
or ebx, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, edi
jne 0x4035a2
or eax, edi
or edx, edi
pop edi
pop esi
pop ebx
add esp, 0x10
ret
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
jne 0x4035bb
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov edx, ebx
pop ebx
add esp, 0x10
ret

Function at 0x403700
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x208], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.0040f4e0
add esp, 0xc
cmp dword [0x423070], 3
jne 0x403760
push 0x104
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41dc60
lea eax, [esp + 4]
push 0x104
push eax
call fcn.0040a5cb
add esp, 0xc
jmp 0x40376f
lea ecx, [esp]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea edx, [esp + 4]
push edx
push 0x41de04
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x218]
add esp, 0x10
xor ecx, esp
call fcn.0040a5bc
add esp, 0x20c
ret
Function at 0x403830
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x314
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x310], eax
lea eax, [esp + 4]
push eax
push 0x104
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x41de18
lea ecx, [esp + 8]
push 0x104
push ecx
call fcn.0040bb8b
add esp, 0xc
push 0x104
lea edx, [esp + 0x10c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x108]
push eax
lea ecx, [esp + 0x210]
push 0x104
push ecx
call fcn.0040b910
lea edx, [esp + 0x218]
push 0x5c
push edx
call fcn.0040bb40
add esp, 0x14
test eax, eax
je 0x4038bb
mov byte [eax], 0
push ebx
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4039b7
mov eax, 0x423620
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4038f0
sub eax, edx
push esi
push edi
mov edi, eax
lea eax, [esp + 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403907
sub eax, edx
mov ecx, eax
lea eax, [esp + 0x10]
lea esi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403920
sub eax, esi
lea edx, [eax + ecx*2]
add edx, ecx
lea edi, [edx + edi + 0x32]
push edi
call fcn.0040b4fb
push edi
mov esi, eax
push 0
push esi
call fcn.0040f4e0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x22c]
push ecx
lea edx, [esp + 0x12c]
push edx
mov eax, edx
push eax
push 0x423620
push edi
push esi
call fcn.0040bb6d
mov eax, esi
add esp, 0x2c
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403970
push 0
sub eax, ecx
lea ecx, [esp + 0x10]
push ecx
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
push 0x41de24
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test esi, esi
je 0x4039b5
push esi
call fcn.0040a778
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x314]
pop ebx
xor ecx, esp
call fcn.0040a5bc
add esp, 0x314
ret

Function at 0x4039d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
xor ecx, ecx
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp], eax
cmp esi, 0xffffffff
je 0x403a21
mov eax, dword [esp + 0x1c]
mov ecx, 0x200
mul ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], edx
lea edx, [esp + 4]
push edx
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
push eax
push 0x400
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0x18
ret
Function at 0x405320
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push ebx
xor eax, eax
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov dword [esp + 0xc], eax
cmp dword [ecx], eax
je 0x4053a2
cmp edi, eax
jle 0x40534d
lea ebx, [ebx]
mov dl, byte [eax + ebp]
not dl
mov byte [eax + ebp], dl
inc eax
cmp eax, edi
jl 0x405340
lea ebx, [edi + 7]
push ebx
call fcn.0040b4fb
mov esi, eax
lea eax, [edi + 5]
mov word [esi], ax
mov ecx, dword [0x4230f0]
push edi
mov dword [esi + 2], ecx
mov dl, byte [0x4230f4]
lea eax, [esi + 7]
push ebp
push eax
mov byte [esi + 6], dl
call fcn.00410070
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
add esp, 0x10
push 0
push ebx
push esi
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x4053a6
cmp eax, ebx
jne 0x4053a6
mov dword [esp + 0xc], 1
jmp 0x4053a6
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4053b3
push esi
call fcn.0040a778
add esp, 4
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x405500
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x8dc
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x8d8], eax
mov eax, dword [esp + 0x8e4]
push ebx
push ebp
mov ebp, dword [esp + 0x8e8]
push esi
push edi
mov esi, edx
xor edx, edx
push 0x7fe
mov dword [esp + 0x1c], eax
push edx
lea eax, [esp + 0xf2]
push eax
mov dword [esp + 0x28], ecx
mov word [esp + 0xf4], dx
call fcn.0040f4e0
add esp, 0xc
lea edi, [esp + 0xe8]
mov dword [esp + 0x10], edi
test esi, esi
je 0x405565
mov dword [esp + 0x10], esi
mov edi, esi
xor ecx, ecx
mov word [edi], cx
mov esi, dword [ebp]
xor ebx, ebx
mov dword [esp + 0x14], ebx
test esi, esi
je 0x4056dd
cmp dword [esp + 0x18], ecx
je 0x4056dd
push 0xc7
lea edx, [esp + 0x25]
push ebx
push edx
mov byte [esp + 0x2c], cl
call fcn.0040f4e0
add esp, 0xc
push ebx
push 2
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4056ca
test eax, eax
je 0x4056ca
movzx edi, word [esp + 0x20]
lea ecx, [edi + 2]
push ecx
xor esi, esi
call fcn.0040b4fb
add esp, 4
mov ebx, eax
test edi, edi
jle 0x405682
lea esp, [esp]
mov ecx, dword [ebp]
push 0
mov edx, edi
sub edx, esi
push edx
lea eax, [esi + ebx]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x405665
test eax, eax
je 0x405665
add esi, eax
cmp edi, esi
jg 0x4055e0
cmp esi, 5
jl 0x405682
mov eax, dword [0x4230f0]
sub esi, 5
cmp eax, dword [ebx]
jne 0x4056b1
mov cl, byte [ebx + 4]
cmp cl, byte [0x4230f4]
jne 0x4056b1
test esi, esi
jle 0x40563d
lea eax, [ebx + 5]
mov edi, esi
mov dl, byte [eax]
not dl
mov byte [eax], dl
inc eax
sub edi, 1
jne 0x405631
mov edi, dword [esp + 0x1c]
mov eax, dword [edi]
cmp eax, esi
jl 0x405695
mov ecx, dword [esp + 0x18]
push esi
lea eax, [ebx + 5]
push eax
push ecx
call fcn.00410070
mov dword [edi], esi
add esp, 0xc
mov dword [esp + 0x14], 1
jmp 0x405682
mov edx, dword [esp + 0x10]
push 0x41def0
push 0x3ff
push edx
call fcn.0040a674
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
je 0x40568f
push ebx
call fcn.0040a778
add esp, 4
mov eax, dword [esp + 0x14]
jmp 0x4056df
push eax
mov eax, dword [esp + 0x1c]
lea edx, [ebx + 5]
push edx
push eax
call fcn.00410070
add esp, 0xc
mov dword [esp + 0x14], 1
jmp 0x405682
mov ecx, dword [esp + 0x10]
push 0x41def0
push 0x3ff
push ecx
call fcn.0040a674
add esp, 0xc
jmp 0x405682
push 0x41def0
push 0x3ff
push edi
call fcn.0040a674
add esp, 0xc
mov eax, ebx
mov ecx, dword [esp + 0x8e8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040a5bc
add esp, 0x8dc
ret
Function at 0x4058c0
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
mov eax, 0x100c
call fcn.004155b0
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x1008], eax
mov edx, dword [ebx]
mov eax, dword [esp + 0x1010]
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_recv]
push edi
xor edi, edi
push edi
push 4
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x1c], eax
call ebp
cmp eax, 4
je 0x405918
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.0040a5bc
add esp, 0x100c
ret
cmp dword [esp + 8], edi
jbe 0x40595d
push esi
nop
mov ecx, dword [ebx]
push 0
push 0x1000
lea eax, [esp + 0x1c]
push eax
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x40595c
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
push eax
push esi
lea ecx, [esp + 0x1c]
push 1
push ecx
call fcn.0040b26f
add edi, esi
add esp, 0x10
mov dword [0x424710], edi
cmp edi, dword [esp + 0xc]
jb 0x405920
pop esi
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
push eax
call fcn.0040b091
mov ecx, dword [esp + 0x1014]
add esp, 4
cmp edi, dword [esp + 8]
pop edi
sbb eax, eax
pop ebp
xor ecx, esp
inc eax
call fcn.0040a5bc
add esp, 0x100c
ret

Function at 0x405e20
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push 0x206
xor esi, esi
lea ecx, [esp + 0x12]
xor eax, eax
push esi
push ecx
mov word [esp + 0x18], ax
call fcn.0040f4e0
add esp, 0xc
cmp edi, esi
je 0x405f08
mov eax, 0x41ddd8
mov dword [esp + 4], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x405e65
sub eax, edx
sar eax, 1
je 0x405e8f
push 0x41ddd0
lea edx, [esp + 8]
push 0x41ddd8
push edx
call fcn.0040a9f0
add esp, 0xc
jmp 0x405eca
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x41df4c
lea ecx, [esp + 0x10]
push 0x104
push ecx
call fcn.0040a5cb
push 0x41ddd0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.0040a9f0
add esp, 0x18
mov eax, dword [esp + 4]
cmp eax, esi
je 0x405eed
push eax
push 1
push 0x200
push edi
call fcn.0040b26f
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0040b091
add esp, 0x14
mov eax, 1
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040a5bc
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040a5bc
add esp, 0x214
ret
Function at 0x405f20
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.0040f4e0
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x406025
mov eax, 0x41dce0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x405f65
sub eax, edx
sar eax, 1
je 0x406025
cmp dword [0x423070], 3
jne 0x405fac
push 0x104
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41dc60
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.0040a5cb
add esp, 0xc
jmp 0x405fbc
lea ecx, [esp + 0xc]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x41dce0
lea edx, [esp + 0x10]
push 0x104
push edx
call fcn.0040a5cb
push 0x41ddc8
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0040a9f0
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x406025
push eax
push 1
push 0x200
push esi
call fcn.0040affd
mov edx, dword [esp + 0x14]
push edx
call fcn.0040b091
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040a5bc
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.0040a5bc
add esp, 0x214
ret

Function at 0x406040
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.0040f4e0
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x40610f
mov eax, 0x41df4c
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x406085
sub eax, edx
sar eax, 1
je 0x40610f
lea edx, [esp + 0xc]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x41df4c
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.0040a5cb
push 0x41ddc8
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.0040a9f0
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x40610f
push eax
push 1
push 0x200
push esi
call fcn.0040affd
mov eax, dword [esp + 0x14]
push eax
call fcn.0040b091
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0040a5bc
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.0040a5bc
add esp, 0x214
ret
Function at 0x409c80
Capabilities:
Get common file path

Disassembly:
cmp dword [esi], 0
push edi
jne 0x409d33
cmp dword [esi + 4], 0xffffffff
jne 0x409d33
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
jmp 0x409cb0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409cb0
sub eax, edx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp ax, 0x5c
je 0x409ce9
cmp ax, 0x2f
je 0x409ce9
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x409cd6
mov eax, dword [0x41dc60]
mov dword [edi], eax
push 0x20
call fcn.0040b4fb
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
add esp, 4
mov byte [eax], 0
mov byte [eax + 1], 1
mov byte [eax + 0x10], 0
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], 0
mov dword [eax + 0xc], 0
call fcn.00408d80
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
ret 8
mov eax, 0x1000000
pop edi
ret 8

Function at 0x40a5bc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422044]
jne 0x40a5c6
repz ret
jmp fcn.0040c424

Function at 0x413d03
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040c784
and dword [ebp - 4], 0
cmp dword [0x424444], 0
mov ebx, eax
jne 0x413db4
push 0x41cba4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x413e65
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41cb98
push edi
call esi
test eax, eax
je 0x413e65
push eax
call fcn.0040c712
mov dword [esp], 0x41cb88
push edi
mov dword [0x424444], eax
call esi
push eax
call fcn.0040c712
mov dword [esp], 0x41cb74
push edi
mov dword [0x424448], eax
call esi
push eax
call fcn.0040c712
mov dword [esp], 0x41cb58
push edi
mov dword [0x42444c], eax
call esi
push eax
call fcn.0040c712
pop ecx
mov dword [0x424454], eax
test eax, eax
je 0x413db4
push 0x41cb40
push edi
call esi
push eax
call fcn.0040c712
pop ecx
mov dword [0x424450], eax
mov eax, dword [0x424450]
cmp eax, ebx
je 0x413e0c
cmp dword [0x424454], ebx
je 0x413e0c
push eax
call fcn.0040c78d
push dword [0x424454]
mov esi, eax
call fcn.0040c78d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x413e0c
test edi, edi
je 0x413e0c
call esi
test eax, eax
je 0x413e03
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x413e03
test byte [ebp - 0xc], 1
jne 0x413e0c
or dword [ebp + 0x10], 0x200000
jmp 0x413e45
mov eax, dword [0x424448]
cmp eax, ebx
je 0x413e45
push eax
call fcn.0040c78d
pop ecx
test eax, eax
je 0x413e45
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x413e45
mov eax, dword [0x42444c]
cmp eax, ebx
je 0x413e45
push eax
call fcn.0040c78d
pop ecx
test eax, eax
je 0x413e45
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x424444]
call fcn.0040c78d
pop ecx
test eax, eax
je 0x413e65
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x413e67
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret