joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403c66
Capabilities:
Create thread
Inject thread

Disassembly:
mov eax, dword [0x54e9f0]
mov dword [0x54ea88], eax
mov edx, dword [0x54e9f8]
push dword [0x54f064]
call fcn.0040b290
lea ecx, [0x54ea8c]
pop edx
call fcn.00406000
push dword [0x54ea8c]
call fcn.00406380
mov ebx, eax
inc ebx
mov dword [0x54ea90], ebx
push dword [0x54ea88]
push 0
push 0x1f0fff
call sub.KERNEL32.dll_OpenProcess
mov dword [0x54ea94], eax
cmp dword [0x54ea94], 0
je 0x403dec
push 4
push 0x1000
push dword [0x54ea90]
push 0
push dword [0x54ea94]
call sub.KERNEL32.dll_VirtualAllocEx
mov dword [0x54ea98], eax
cmp dword [0x54ea98], 0
je 0x403de1
push 0x54ea9c
push dword [0x54ea90]
push dword [0x54ea8c]
push dword [0x54ea98]
push dword [0x54ea94]
call sub.KERNEL32.dll_WriteProcessMemory
mov ebx, dword [0x54ea9c]
cmp ebx, dword [0x54ea90]
jl 0x403dc5
push str.Kernel32.dll
push 0
call fcn.004080b9
and eax, eax
je 0x403dc5
push 0x4163ed
push 0
call fcn.004080f6
mov dword [0x54eaa0], eax
push 0
call fcn.0040804a
cmp dword [0x54eaa0], 0
je 0x403dc5
push 0
push 0
push dword [0x54ea98]
push dword [0x54eaa0]
push 0
push 0
push dword [0x54ea94]
call sub.KERNEL32.dll_CreateRemoteThread
mov dword [0x54eaa4], eax
cmp dword [0x54eaa4], 0
je 0x403dc5
push 0xffffffff
push dword [0x54eaa4]
call sub.KERNEL32.dll_WaitForSingleObject
push 0x54e924
push dword [0x54eaa4]
call sub.KERNEL32.dll_GetExitCodeThread
push 0x4000
push dword [0x54ea90]
push dword [0x54ea98]
push dword [0x54ea94]
call sub.KERNEL32.dll_VirtualFreeEx
push dword [0x54ea94]
call sub.KERNEL32.dll_CloseHandle
push dword [0x54e9f8]
call fcn.0040a79e
mov dword [0x54e924], eax
ret
Function at 0x407257
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
push dword [0x54ec44]
mov dword [ebp - 8], ebx
xor edi, edi
call fcn.0040b01e
mov esi, eax
cmp esi, ebx
je 0x407392
mov eax, dword [esi]
mov dword [ebp - 4], eax
cmp dword [esi + 0x14], ebx
je 0x4072f6
push dword [ebp + 8]
call fcn.004074b9
jmp 0x40729a
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x1d], bl
jne 0x407292
push dword [esi + 0x14]
call fcn.004076f7
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x20], eax
push ebx
mov eax, esi
mov byte [esi + 0x1c], 1
call fcn.00407134
pop ecx
lea eax, [ebp + 0xc]
push eax
push ebx
push esi
push 0x4071a9
push 0x2000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x4072dc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x34]
mov esi, dword [esi]
mov eax, dword [esi]
push 1
push ebx
push ebx
push esi
call dword [eax + 0x30]
jmp 0x407392
test byte [ebp + 0xc], 1
je 0x4072ff
xor edi, edi
inc edi
test byte [ebp + 0xc], 2
je 0x40736b
push esi
call fcn.00406dbc
lea eax, [esi + 4]
push 0xc
push eax
call fcn.0040b197
pop ecx
pop ecx
lea edx, [ebp - 4]
push edx
push dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [0x54ec58]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
jne 0x407392
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
push dword [esi + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
push dword [esi + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp - 4]
push dword [esi + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x40]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edi
push ebx
push ebx
push eax
call dword [ecx + 0x30]
jmp 0x407392
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x34]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edi
push ebx
push ebx
push eax
call dword [ecx + 0x30]
test eax, eax
jne 0x407392
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40787d
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
je 0x407895
push dword [esp + 4]
push 0x407816
call dword [sym.imp.USER32.dll_EnumWindows]
jmp 0x4078d2
push esi
mov esi, dword [0x54ec84]
test esi, esi
je 0x4078d1
push ebx
push edi
mov ebx, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x4078c9
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
push edi
push 0x54ec84
call fcn.0040b1da
pop ecx
pop ecx
test ebx, ebx
mov esi, ebx
jne 0x4078a2
pop edi
pop ebx
pop esi
ret 4
Function at 0x40a6a4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 9
call esi
test al, al
jns 0x40a712
push 0x11
call esi
test al, al
js 0x40a712
push 0x10
call esi
test al, al
js 0x40a712
push 0x12
call esi
test al, al
js 0x40a712
mov esi, dword [sym.imp.USER32.dll_GetFocus]
push 5
lea eax, [ebp - 8]
push eax
call esi
push eax
call dword [sym.imp.USER32.dll_GetClassNameA]
push 4
lea eax, [ebp - 8]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x40a712
push eax
push eax
push 0x44e
call esi
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test ax, 0x800
je 0x40a736
push str.PB_WindowID
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetPropA]
test eax, eax
je 0x40a736
dec eax
push eax
push dword [0x54f58c]
call fcn.0040b01e
mov eax, dword [eax + 0xc]
jmp 0x40a738
xor eax, eax
pop esi
leave
ret 4

Function at 0x40a7b0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
cmp dword [esi + 0x14], eax
mov dword [esp + 4], eax
jne 0x40a7e5
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4

Function at 0x40aa70
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x54f59c]
push ebx
push esi
push edi
push eax
or edi, 0xffffffff
push ecx
or ebx, edi
call fcn.0040b01e
mov esi, eax
test esi, esi
je 0x40aaca
mov eax, dword [esi]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov eax, dword [esp + 0x10]
xor edi, edi
xor edx, edx
or ecx, edx
or edi, eax
cmp dword [esi + 4], edx
je 0x40aac0
cmp dword [esi + 0x14], edx
jne 0x40aac0
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
cdq
add ecx, eax
adc edi, edx
mov edx, edi
pop edi
pop esi
mov eax, ecx
pop ebx
ret 4
mov eax, edi
pop edi
pop esi
mov edx, ebx
pop ebx
ret 4

Function at 0x40aae0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x54f59c]
push eax
push ecx
mov byte [esp + 0xb], 0
call fcn.0040b01e
test eax, eax
je 0x40ab2a
cmp dword [eax + 4], 0
lea edx, [esp + 3]
je 0x40ab17
push 1
push edx
push eax
call fcn.0040ada0
movzx eax, byte [esp + 3]
pop ecx
ret 4
mov eax, dword [eax]
push 0
lea ecx, [esp + 0xc]
push ecx
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
movzx eax, byte [esp + 3]
pop ecx
ret 4
Function at 0x40ab40
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x54f59c]
push eax
push ecx
mov dword [esp + 8], 0
call fcn.0040b01e
test eax, eax
je 0x40ab8a
cmp dword [eax + 4], 0
lea edx, [esp]
je 0x40ab77
push 4
push edx
push eax
call fcn.0040ada0
mov eax, dword [esp]
pop ecx
ret 4
mov eax, dword [eax]
push 0
lea ecx, [esp + 0xc]
push ecx
push 4
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp]
pop ecx
ret 4

Function at 0x40aba0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x54f59c]
push eax
push ecx
mov byte [esp + 0xb], 0
call fcn.0040b01e
test eax, eax
je 0x40abea
cmp dword [eax + 4], 0
lea edx, [esp + 3]
je 0x40abd7
push 1
push edx
push eax
call fcn.0040ada0
movsx eax, byte [esp + 3]
pop ecx
ret 4
mov eax, dword [eax]
push 0
lea ecx, [esp + 0xc]
push ecx
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
movsx eax, byte [esp + 3]
pop ecx
ret 4

Function at 0x40ac00
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
test edi, edi
mov dword [esp + 4], eax
je 0x40ac59
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40ac58
mov eax, dword [esp + 0x10]
mov ecx, dword [0x54f59c]
push eax
push ecx
call fcn.0040b01e
test eax, eax
je 0x40ac54
cmp dword [eax + 4], 0
je 0x40ac42
push esi
push edi
push eax
call fcn.0040aed0
pop esi
pop edi
pop ecx
ret 0xc
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop esi
pop edi
pop ecx
ret 0xc
Function at 0x40ac60
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x14]
push ebx
push ebp
push edi
push eax
push 0x1000
mov dword [esp + 0x1c], 0x1000
call fcn.0040b4d0
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x54f59c]
push ecx
mov edi, eax
push edx
mov ebp, edi
call fcn.0040b01e
mov ebx, eax
test ebx, ebx
je 0x40ad7e
push esi
lea ecx, [ecx]
mov byte [esp + 0x13], 0
cmp dword [ebx + 4], 0
je 0x40acbe
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.0040ada0
mov dword [esp + 0x14], eax
jmp 0x40acd5
mov eax, dword [ebx]
push 0
lea ecx, [esp + 0x18]
push ecx
push 1
lea edx, [esp + 0x1f]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov al, byte [esp + 0x13]
test al, al
je 0x40ace7
mov byte [ebp], al
mov al, byte [esp + 0x13]
add ebp, 1
mov ecx, dword [esp + 0x18]
mov esi, ebp
sub esi, edi
cmp esi, ecx
jl 0x40ad11
mov edx, dword [esp + 0x24]
add ecx, 0x1000
push edx
push ecx
mov dword [esp + 0x20], ecx
call fcn.0040b4d0
mov edi, eax
mov al, byte [esp + 0x13]
lea ebp, [esi + edi]
test al, al
je 0x40ad7d
cmp dword [esp + 0x14], 0
je 0x40ad28
cmp al, 0xd
je 0x40ad28
cmp al, 0xa
jne 0x40aca0
sub ebp, 1
cmp al, 0xd
jne 0x40ad7d
cmp dword [ebx + 4], 0
je 0x40ad44
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.0040ada0
jmp 0x40ad5b
mov eax, dword [ebx]
push 0
lea ecx, [esp + 0x18]
push ecx
push 1
lea edx, [esp + 0x1f]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x40ad7d
cmp dword [ebx + 4], 0
je 0x40ad6e
add dword [ebx + 0xc], 1
jmp 0x40ad7d
mov ecx, dword [ebx]
push 1
push 0
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop esi
sub edi, ebp
add edi, dword [esp + 0x14]
mov byte [ebp], 0
push edi
call fcn.0040b550
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x40ada0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 0
push edi
jne 0x40adc1
push esi
call fcn.0040a7b0
mov dword [esi + 0x14], 1
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ebx, edi
jl 0x40ae3a
mov eax, dword [esi + 0x10]
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
sub ecx, 1
je 0x40ae27
sub ecx, 1
je 0x40ae12
sub ecx, 2
je 0x40adff
push edi
push eax
mov eax, dword [esp + 0x1c]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [eax]
mov edx, dword [esp + 0x14]
mov dword [edx], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ax, word [eax]
mov ecx, dword [esp + 0x14]
mov word [ecx], ax
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov dl, byte [eax]
mov eax, dword [esp + 0x14]
mov byte [eax], dl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [esi + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
sub ecx, ebx
add ecx, dword [esi + 4]
push ebx
push ecx
push ebp
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 8]
add esp, 0xc
sub edi, ebx
add ebp, ebx
cmp edi, eax
push 0
jl 0x40ae83
mov eax, dword [esi]
lea edx, [esp + 0x18]
push edx
push edi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov dword [esi + 0xc], 0
pop esi
add eax, ebx
pop ebx
ret 0xc
mov edx, dword [esi + 4]
lea ecx, [esp + 0x18]
push ecx
push eax
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
cmp edi, eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
jle 0x40aea6
mov edi, eax
mov ecx, dword [esi + 4]
push edi
push ecx
push ebp
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0xc], edi
add esp, 0xc
pop ebp
lea eax, [ebx + edi]
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x40aed0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 1
push edi
mov dword [esp + 8], 0
jne 0x40aef2
mov eax, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ecx, edi
jle 0x40af6b
mov eax, dword [esi + 8]
add eax, dword [esi + 4]
sub eax, ecx
mov ecx, edi
sub ecx, 1
je 0x40af58
sub ecx, 1
je 0x40af43
sub ecx, 2
je 0x40af30
mov ecx, dword [esp + 0x14]
push edi
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov dword [eax], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cx, word [edx]
mov word [eax], cx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cl, byte [edx]
mov byte [eax], cl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
push esi
call fcn.0040a7b0
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x40af98
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
push 0
lea edx, [esp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x14]
push edi
push edx
add ecx, eax
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc

Function at 0x40bff0
Capabilities:
Check for software breakpoints

Disassembly:
cmp dword [esi + 0x14], 0xcc
je 0x40c015
mov eax, dword [esi + 0x180]
mov ecx, dword [eax]
push esi
call ecx
add esp, 4
mov dword [esi + 0x78], 0
mov dword [esi + 0x14], 0xcc
mov edx, dword [esi + 0x180]
cmp byte [edx + 8], 0
je 0x40c040
mov eax, dword [esi]
mov dword [eax + 0x14], 0x30
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call edx
mov eax, dword [esi + 0x180]
add esp, 4
cmp byte [eax + 8], 0
jne 0x40c021
xor ecx, ecx
cmp byte [esi + 0x41], cl
mov al, 1
setne cl
add ecx, 0xcd
mov dword [esi + 0x14], ecx
ret
Function at 0x40c100
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x40c12f
push esi
call fcn.0040bac0
add esp, 4
cmp byte [esi + 0x40], 0
je 0x40c128
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x40c1aa
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x40c19a
mov eax, dword [esi + 8]
test eax, eax
je 0x40c154
mov ecx, dword [eax]
push esi
call ecx
add esp, 4
mov edx, dword [esi + 0x190]
mov eax, dword [edx]
push esi
call eax
add esp, 4
test eax, eax
je 0x40c196
cmp eax, 2
je 0x40c19a
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x40c145
cmp eax, 3
je 0x40c17c
cmp eax, 1
jne 0x40c145
add dword [ecx + 4], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x40c145
mov edx, dword [esi + 0x11c]
add dword [eax + 8], edx
jmp 0x40c145
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
call fcn.0040bff0
pop esi
ret
cmp eax, 0xcc
je 0x40c1cc
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
call fcn.0040bff0
pop esi
ret

Function at 0x4107d0
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov dword [edi + 4], ebx
call fcn.00413070
push 0x54
push edi
mov dword [esp + 0x18], eax
call fcn.00413000
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x410816
push edi
call fcn.00413080
mov eax, dword [edi]
mov dword [eax + 0x14], 0x36
mov ecx, dword [edi]
mov dword [ecx + 0x18], ebx
mov edx, dword [edi]
mov eax, dword [edx]
push edi
call eax
add esp, 8
mov dword [esi], fcn.0040fcc0
mov dword [esi + 4], fcn.0040fe10
mov dword [esi + 8], fcn.0040fed0
mov dword [esi + 0xc], fcn.0040ff80
mov dword [esi + 0x10], 0x410030
mov dword [esi + 0x14], 0x4100a0
mov dword [esi + 0x18], 0x410110
mov dword [esi + 0x1c], 0x4103f0
mov dword [esi + 0x20], 0x410530
mov dword [esi + 0x24], fcn.00410680
mov dword [esi + 0x28], 0x410790
mov dword [esi + 0x30], 0x3b9aca00
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], 0x54
push str.JPEGMEM
mov dword [edi + 4], esi
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
cmp eax, ebx
je 0x4108f1
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x10]
push ecx
push str._ld_c
push eax
mov byte [esp + 0x24], 0x78
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x4108f1
mov al, byte [esp + 0x14]
cmp al, 0x6d
je 0x4108cc
cmp al, 0x4d
jne 0x4108e4
mov eax, dword [esp + 0xc]
imul eax, eax, 0x3e8
imul eax, eax, 0x3e8
pop edi
mov dword [esi + 0x2c], eax
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esp + 0xc]
imul eax, eax, 0x3e8
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x402531
Capabilities:
Terminate process

Disassembly:
jmp 0x440fdc
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x440fed
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004038e1
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x4025c2
Capabilities:
Query environment variable

Disassembly:
jmp 0x4444a3
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4444b4
pop esi
ret
push ebx
push edi
push esi
call fcn.0044438a
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00402ab8
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4444dc
push ebx
push esi
push edi
call fcn.004037a1
add esp, 0xc
push 0
call fcn.00403dc8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x403814
Capabilities:
Parse pe header

Disassembly:
jmp 0x4085b9
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4085f8
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4085f8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4085f8
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4085f8
cmp dword [ecx + 0x74], 0xe
jbe 0x4085f8
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x407e63
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x407e98
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x407e95
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x407ea1
add edx, 0x28
cmp edx, esi
jne 0x407e83
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x407e9e

Function at 0x417c96
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x417cd5
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x417cd5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x417cd5
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x417cd5
cmp dword [ecx + 0x74], 0xe
jbe 0x417cd5
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4423d8
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x561040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x442423
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0044298d
test al, al
jne 0x44241d
sub edx, 2
cmp edx, edi
jne 0x442403
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x442445
lea eax, [edi + 2]
cmp edx, eax
je 0x442445
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00441fc8
add esp, 0x10
jmp 0x44253d
push esi
lea ecx, [ebp - 0x255]
call fcn.0044298d
sub edx, edi
xor ecx, ecx
sar edx, 1
inc edx
test al, al
lea eax, [ebp - 0x254]
cmovne ecx, edx
xor ebx, ebx
push ebx
push ebx
push ebx
push eax
push ebx
push edi
mov dword [ebp - 0x260], ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x442486
push dword [ebp - 0x25c]
jmp 0x442435
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4424c3
cmp word [ebp - 0x226], 0
je 0x4424e4
cmp word [ebp - 0x226], ax
jne 0x4424c3
cmp word [ebp - 0x224], 0
je 0x4424e4
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00441fc8
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x442530
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x44249d
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x442518
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x44253d
push 0x4418ae
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004036b1
add esp, 0x10
jmp 0x44250d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402220
leave
ret

Function at 0x44a0fa
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00402c9d
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x44a169
cmp esi, dword [ebp - 4]
je 0x44a164
cmp dword [ebp + 0xc], 0
je 0x44a164
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x44a141
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00449b25
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x44a16b
xor eax, eax
inc eax
jmp 0x44a16b
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x459ccb
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x459ce5
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x459cfc
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x459d54
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.00402d92
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x459d54
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x459d54
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x459d54
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x459d4e
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x459d50
xor bl, bl
mov al, bl
jmp 0x459d56
xor al, al
pop esi
pop ebx
leave
ret