joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b28c2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebx + 0x84], edi
test edi, 0xffff0000
jne 0x4b28ed
cmp dword [ebx + 0x80], 0
jne 0x4b28ed
movzx eax, di
mov dword [ebx + 0x80], eax
call fcn.00416302
push 5
push edi
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov edi, eax
mov ecx, ebx
push edi
call fcn.004b2b7e
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4b2927
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.00416302
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4b295e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.004b297d
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x4b4a68
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x4b4abe
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4b4a97
call fcn.004209fd
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4b4aac
call fcn.004209fd
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4b4abe
call fcn.004209fd
call fcn.00416302
cmp dword [eax + 0x3c], 0
je 0x4b4ad3
push edi
mov ecx, ebx
call fcn.004b4198
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004b4ca5
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x4b4afc
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x4b4b08
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x50c752
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.0055308f
pop ecx
test eax, eax
jne 0x50c794
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00410dbf
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x50c75a
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
leave
ret

Function at 0x51afa0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [edi + 4]
call fcn.0041d5cf
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
mov esi, eax
mov ecx, edi
and esi, 3
call fcn.0051b1b9
cmp esi, 3
je 0x51afde
mov dword [edi + 0xc], 1
cmp dword [edi], 0
je 0x51b027
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x51b001
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.004185ed
jmp 0x51b012
push 0xff
mov ecx, esi
call fcn.0040b17f
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00410b5d
jmp 0x51b04b
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x51b04b
push dword [esi]
push dword [ebp - 4]
call fcn.0048b7ae
pop edi
pop esi
leave
ret 0xc

Function at 0x51b110
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.0051b1b9
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x51b158
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004185ed
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00410b5d
jmp 0x51b163
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0048b7ae
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x5417c4
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.00546f7c
call fcn.00416356
cmp dword [eax + 0x14], 0
jne 0x5417df
mov ecx, esi
pop esi
jmp fcn.00540aef
pop esi
ret

Function at 0x54267b
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00401e77
call fcn.00416356
cmp dword [eax + 0x14], 0
jne 0x542696
mov ecx, esi
pop esi
jmp fcn.00541ef7
pop esi
ret

Function at 0x56074c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0056040c
Function at 0x401bde
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
shr edi, 2
xor ebx, ebx
mov eax, edi
mov dword [ebp - 4], 1
shr eax, 1
mov ecx, ebx
add eax, 3
mov dword [esi], eax
add esi, 0x10
test edi, edi
je 0x401c15
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, edi
jb 0x401c08
mov edx, dword [esi + edi*4 - 4]
imul eax, edi, 0xc
add eax, 0x70
add eax, esi
mov dword [ebp + 8], eax
test ebx, ebx
jne 0x401c83
movzx eax, dl
mov ebx, dword [ebp - 4]
push 0x1b
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + str.cw]
xor edx, ebx
add ebx, ebx
or edx, ecx
test ebx, 0x100
pop eax
cmovne ebx, eax
mov dword [ebp - 4], ebx
mov ebx, edi
jmp 0x401cd0
cmp ebx, 4
jne 0x401cd3
cmp edi, 6
jbe 0x401cd3
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + str.cw]
or edx, ecx
mov eax, dword [ebp + 8]
xor edx, dword [esi]
dec ebx
mov dword [esi + edi*4], edx
add esi, 4
cmp esi, eax
jne 0x401c24
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x402ab8
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x44a008]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x402b01
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402b01
push 0xc00
call eax
test eax, eax
jne 0x402b9d
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x402b9d
cmp eax, 0x104
ja 0x402b9d
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x2d6], cx
je 0x402b38
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
mov cl, byte [str.userenv]
push esi
mov esi, str.userenv
test cl, cl
je 0x402b9c
push ebx
push edi
lea edi, [ebp - 0x2d4]
push 0x6c
lea edi, [edi + eax*2]
pop ebx
mov edx, edi
inc esi
movzx eax, cl
mov cl, byte [esi]
inc esi
mov word [edx], ax
lea edx, [edx + 2]
test cl, cl
jne 0x402b59
push 0x2e
pop eax
push 0x64
mov word [edx], ax
pop eax
mov word [edx + 2], ax
xor eax, eax
push 8
push eax
mov word [edx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov word [edx + 4], bx
mov word [edx + 6], bx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov cl, byte [esi]
test cl, cl
jne 0x402b56
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f335
leave
ret
Function at 0x406122
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
call fcn.00406105
mov edx, eax
test edx, edx
jne 0x406166
xor ecx, ecx
cmp dword [esi + 0x18], ecx
jne 0x406162
lea eax, [ebp - 4]
push eax
push ecx
push esi
push fcn.00406e06
push ecx
push ecx
call fcn.004340f1
add esp, 0x18
mov dword [esi + 0x18], eax
test eax, eax
jne 0x406162
call fcn.00407732
mov edx, eax
test edx, edx
jne 0x406166
xor eax, eax
jmp 0x406173
movzx eax, dx
or eax, 0x80070000
test edx, edx
cmovle eax, edx
pop esi
leave
ret
Function at 0x407060
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
xor eax, eax
push esi
mov esi, ecx
inc eax
push edi
push 0x20
pop ecx
or dword [esi + 0x90], 0xffffffff
mov edx, ebx
or dword [esi + 0x94], 0xffffffff
mov dword [esi + 0x30], eax
mov dword [esi + 0x44], eax
mov eax, dword [esi + 4]
cmp eax, ecx
mov dword [ebp - 4], esi
cmova eax, ecx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x58], ebx
cmp eax, dword [esi + 0x20]
je 0x407116
lea edi, [esi + 0xc8]
mov ebx, ecx
cmp dword [edi + 8], 0
je 0x4070f0
mov ecx, edi
call fcn.00406176
add edi, 0x28
sub ebx, 1
jne 0x4070e3
cmp dword [esi + 0x5c], ebx
je 0x40710c
mov eax, dword [esi + 0x14]
push dword [esi + 0x5c]
push eax
call dword [eax + 4]
mov dword [esi + 0x5c], ebx
jmp 0x40710e
xor ebx, ebx
mov eax, dword [esi]
mov edx, dword [esi + 0x58]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x98], eax
lea eax, [edx + 5]
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xac], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
imul ebx, eax, 0x28
lea eax, [edx + 1]
mov dword [esi + 0x58], eax
add ebx, esi
mov ecx, ebx
call fcn.00406105
mov edi, eax
test edi, edi
jne 0x4071a5
lea ecx, [ebx + 0x20]
call fcn.00407780
mov edi, eax
test edi, edi
jne 0x4071a5
lea ecx, [ebx + 0x1c]
call fcn.00407780
mov edi, eax
test edi, edi
jne 0x4071a5
push ebx
call fcn.00406e06
mov edi, eax
test edi, edi
je 0x4071a5
and dword [esi + 0x44], 0
lea ebx, [esi + 0xc8]
push 0x20
pop esi
mov ecx, ebx
call fcn.0040619a
add ebx, 0x28
sub esi, 1
jne 0x407193
mov esi, dword [ebp - 4]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
test eax, eax
je 0x4071b9
mov dword [esi + 0x40], eax
xor edx, edx
cmp dword [esi + 0x38], edx
jne 0x4071cd
cmp dword [esi + 0x40], edx
jne 0x4071cd
cmp dword [esi + 0x3c], edx
jne 0x4071cd
mov dword [esi + 0x44], edx
xor ecx, ecx
cmp dword [esi + 0x44], edx
pop edi
pop esi
cmovne eax, ecx
pop ebx
leave
ret

Function at 0x4071da
Capabilities:
Hash data using sha256

Disassembly:
and dword [ecx + 8], 0
and dword [ecx + 0xc], 0
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
ret

Function at 0x40721b
Capabilities:
Hash data using sha256

Disassembly:
mov dword [ecx], 0x407226
jmp fcn.004071da
Function at 0x40768f
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
push 0x38
pop eax
mov ecx, dword [esi + 8]
and ecx, 0x3f
mov byte [ecx + esi + 0x40], 0x80
inc ecx
cmp ecx, eax
jbe 0x4076d6
push 0x40
pop edx
cmp ecx, edx
je 0x4076c3
sub edx, ecx
lea eax, [esi + 0x40]
push edx
add eax, ecx
push 0
push eax
call fcn.004307e0
add esp, 0xc
lea edi, [esi + 0x20]
lea edx, [esi + 0x40]
mov ecx, edi
push 1
call dword [esi]
push 0x38
xor ecx, ecx
pop eax
jmp 0x4076d9
lea edi, [esi + 0x20]
sub eax, ecx
push eax
lea eax, [esi + 0x40]
add eax, ecx
push 0
push eax
call fcn.004307e0
mov ecx, dword [esi + 8]
lea edx, [esi + 0x40]
mov eax, dword [esi + 0xc]
add esp, 0xc
shld eax, ecx, 3
shl ecx, 3
bswap ecx
bswap eax
mov dword [esi + 0x7c], ecx
mov ecx, edi
push 1
mov dword [esi + 0x78], eax
call dword [esi]
push 4
pop edx
mov ecx, dword [edi + 4]
mov eax, dword [edi]
lea edi, [edi + 8]
bswap eax
mov dword [ebx], eax
lea ebx, [ebx + 8]
bswap ecx
mov dword [ebx - 4], ecx
sub edx, 1
jne 0x40770f
pop edi
mov ecx, esi
pop esi
pop ebx
jmp fcn.004071da

Function at 0x4093d3
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x44b471], 0
push esi
mov esi, edx
jne 0x409407
mov edx, ecx
lea ecx, [ebp - 0xc]
call fcn.00408630
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0042f343
pop ecx
test esi, esi
jmp 0x409411
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x409417
mov al, 1
jmp 0x409419
xor al, al
pop esi
leave
ret

Function at 0x40941c
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x44b471], 0
jne 0x40944e
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.00408630
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0042f343
pop ecx
test esi, esi
pop esi
jmp 0x409457
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40945d
mov al, 1
leave
ret
xor al, al
leave
ret

Function at 0x409461
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x44b471], 0
jne 0x409495
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.00408630
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0042f343
pop ecx
test esi, esi
pop esi
jmp 0x4094a0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4094a6
mov al, 1
leave
ret
xor al, al
leave
ret
Function at 0x4094aa
Capabilities:
Create directory

Disassembly:
push 0x44
mov eax, 0x43d522
call fcn.0043cf45
mov edi, ecx
cmp byte [0x44b471], 0
jne 0x4094e5
mov edx, edi
lea ecx, [ebp - 0x18]
call fcn.00408630
xor ebx, ebx
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.0042f343
pop ecx
test esi, esi
jmp 0x4094f1
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4094f7
mov al, 1
jmp 0x40953d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x409508
xor al, al
jmp 0x40953d
lea ecx, [ebp - 0x50]
call fcn.00409dfa
lea ecx, [ebp - 0x28]
call fcn.00408113
push ebx
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.0040a146
test al, al
je 0x409532
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.0042f343
pop ecx
mov al, bl
call fcn.0043cf13
ret

Function at 0x4096a6
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
call fcn.0040a101
cmp eax, 0xffffffff
je 0x4096d3
mov edx, eax
and dl, 0x11
cmp dl, 1
jne 0x4096d3
and eax, 0xfffffffe
mov ecx, esi
mov edx, eax
call fcn.004093d3
test al, al
je 0x40970c
cmp byte [0x44b471], 0
jne 0x4096fd
mov edx, esi
lea ecx, [ebp - 0xc]
call fcn.00408630
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0042f343
pop ecx
test esi, esi
jmp 0x409706
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40970c
mov al, 1
jmp 0x40970e
xor al, al
pop esi
leave
ret

Function at 0x4098fe
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x44b471], 0
jne 0x409930
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.00408630
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0042f343
pop ecx
test esi, esi
pop esi
jmp 0x409939
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne al
leave
ret

Function at 0x40a101
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x44b471], 0
jne 0x40a133
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.00408630
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0042f343
pop ecx
mov eax, esi
pop esi
leave
ret
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
leave
ret

Function at 0x40a821
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40a84b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40a84b
xor al, al
jmp 0x40a85f
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x40d876
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
lea eax, [esp + 8]
push ebx
push esi
push edi
push eax
lea eax, [esp + 0x14]
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
xor ebx, ebx
test eax, eax
je 0x40d8be
cmp dword [esp + 0x10], ebx
je 0x40d8be
mov edx, ebx
mov ecx, ebx
mov eax, dword [esp + 0x10]
shr eax, cl
and eax, 1
add edx, eax
inc ecx
cmp ecx, 0x20
jb 0x40d8ab
jmp 0x40d8cd
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [esp + 0x30]
mov eax, 0x40000000
mov dword [esi], edx
lea ecx, [esp + 0x10]
mov dword [esi + 4], edx
mov byte [esi + 8], bl
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
call fcn.0040b4c8
mov byte [esi + 9], al
test al, al
je 0x40d951
mov edi, dword [esp + 0x14]
mov eax, 0x70000000
mov ebx, dword [esp + 0x10]
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], edi
test edi, edi
jne 0x40d91f
cmp ebx, eax
jbe 0x40d923
mov ebx, eax
xor edi, edi
push ecx
push ecx
push edi
push ebx
call fcn.0040d819
shrd ebx, edi, 5
mov dword [esi + 0x10], eax
push 0x11
shr edi, 5
pop ecx
mov dword [esi + 0x14], edx
mov eax, edi
mul ecx
push 0x11
mov ecx, eax
mov eax, ebx
pop edx
mul edx
add ecx, edx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419748
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43deb0
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x44a008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 0xa8]
call fcn.00417f3e
lea ecx, [esi + 0x78]
call fcn.00417f3e
push dword [esi + 0x30]
call fcn.0042f343
push dword [esi + 0x24]
call fcn.0042f343
push dword [esi + 0x18]
call fcn.0042f343
add esp, 0xc
and dword [ebp - 4], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4197ac
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 1
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4197c0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 2
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4197d4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 3
mov ecx, dword [esi]
test ecx, ecx
je 0x4197e7
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
leave
ret
Function at 0x41aea1
Capabilities:
Create thread

Disassembly:
push 0xa4
mov eax, 0x43e918
call fcn.0043cf45
mov edi, edx
mov esi, ecx
mov ebx, dword [ebp + 0x10]
lea ecx, [ebp - 0xac]
mov byte [ebx], 0
call fcn.00408113
and dword [ebp - 4], 0
lea ecx, [ebp - 0xa0]
call fcn.00408113
xor ecx, ecx
mov dword [ebp - 0x90], ecx
lea eax, [ebp - 0x88]
mov dword [ebp - 0x88], ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], ecx
mov byte [ebp - 4], 4
xorps xmm0, xmm0
mov word [ebp - 0x68], cx
lea ecx, [ebp - 0x64]
movlpd qword [ebp - 0x70], xmm0
call fcn.00408113
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 5
call fcn.00417e81
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
call fcn.00408113
mov dword [ebp - 4], 7
lea ecx, [ebp - 0xac]
push edi
mov dword [ebp - 0xb0], esi
call fcn.0040825e
push dword [ebp + 8]
lea ecx, [ebp - 0xa0]
call fcn.0040825e
push 0xf8
call fcn.0042f356
pop ecx
mov dword [ebp + 0x10], eax
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.0041b119
mov esi, eax
mov byte [ebp - 4], 7
mov dword [ebp - 0x94], esi
test esi, esi
je 0x41af83
mov ecx, dword [esi]
push esi
call dword [ecx + 4]
mov ecx, dword [ebp - 0x90]
test ecx, ecx
je 0x41af93
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
cmp byte [ebp + 0xc], 0
mov dword [ebp - 0x90], esi
je 0x41b052
mov eax, dword [ebp - 0x94]
xor ecx, ecx
mov dword [ebp + 0xc], ecx
mov dword [eax + 0xe0], 1
lea eax, [ebp + 0x10]
mov byte [ebp - 4], 9
push eax
push ecx
lea eax, [ebp - 0xb0]
push eax
push 0x41ae8e
push ecx
push ecx
call fcn.004340f1
add esp, 0x18
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x41affa
call fcn.00407732
test eax, eax
je 0x41affa
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x41b095
lea ecx, [ebp - 0x18]
call fcn.00408113
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0xb
push eax
mov edx, 0xce4
call fcn.0040b420
mov ecx, dword [ebp - 0x94]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0041ab04
push dword [ebp - 0x18]
call fcn.0042f343
pop ecx
mov byte [ebp - 4], 0xc
cmp dword [ebp + 0xc], 0
je 0x41b04c
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x41b04c
call fcn.00407732
mov byte [ebp - 4], 7
jmp 0x41b05d
lea ecx, [ebp - 0xb0]
call fcn.0041ac73
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.0040825e
cmp dword [esi + 4], 0
jne 0x41b084
mov eax, dword [ebp - 0x94]
mov ecx, esi
add eax, 0xec
push eax
call fcn.0040825e
mov eax, dword [ebp - 0x94]
mov esi, dword [ebp - 0x28]
mov al, byte [eax + 0xe8]
mov byte [ebx], al
lea ecx, [ebp - 0xb0]
call fcn.0041b0aa
mov eax, esi
call fcn.0043cf13
ret 0x10