joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000816c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.10008450
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10008207
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x1003da50]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x10008207
cmp eax, 1
je 0x10008228
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10008207
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x100081d4
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x10008203
xor eax, eax
inc eax
jmp 0x10008247
cmp edi, eax
jae 0x1000820b
xor eax, eax
jmp 0x10008247
cmp eax, esi
jae 0x10008212
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x1003da50]
jmp 0x1000822b
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100086b9
Capabilities:
Terminate process

Disassembly:
push 8
push 0x10012708
call fcn.10009720
push 8
call fcn.1000a3ed
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x1003da90], esi
jne 0x100086ed
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x1003da8c], esi
mov al, byte [ebp + 0x10]
mov byte [0x1003da88], al
cmp dword [ebp + 0xc], edi
jne 0x10008737
cmp dword [0x1003f2b4], edi
je 0x10008727
mov eax, dword [0x1003f2b0]
sub eax, 4
mov dword [0x1003f2b0], eax
cmp eax, dword [0x1003f2b4]
jb 0x10008727
mov eax, dword [eax]
cmp eax, edi
je 0x10008708
call eax
jmp 0x10008708
push 0x10015054
mov eax, 0x1001504c
call fcn.10008637
pop ecx
push 0x10015060
mov eax, 0x10015058
call fcn.10008637
pop ecx
or dword [ebp - 4], 0xffffffff
call fcn.10008768
cmp dword [ebp + 0x10], edi
jne 0x10008776
mov dword [0x1003da90], esi
push dword [ebp + 8]
call fcn.100085f5
xor edi, edi
xor esi, esi
inc esi
call fcn.1000975b
ret
Function at 0x10009422
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x10009512
mov eax, 0x94
call fcn.10008450
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10009587
mov ecx, dword [esi + 0x10]
mov dword [0x1003da50], ecx
mov eax, dword [esi + 4]
mov dword [0x1003da5c], eax
mov edx, dword [esi + 8]
mov dword [0x1003da60], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x1003da54], esi
je 0x1000948d
or esi, 0x8000
mov dword [0x1003da54], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x1003da58], eax
call fcn.1000a438
test eax, eax
pop ecx
je 0x10009587
call fcn.10009ffd
test eax, eax
jne 0x100094ba
call fcn.1000a489
jmp 0x10009587
call fcn.1000b7c6
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1003f2a4], eax
call fcn.1000dafc
mov dword [0x1003da98], eax
call fcn.1000d5dd
test eax, eax
jl 0x1000950b
call fcn.1000da5a
test eax, eax
jl 0x10009506
call fcn.1000d827
test eax, eax
jl 0x10009506
push 0
call fcn.1000864f
test eax, eax
pop ecx
jne 0x10009506
inc dword [0x1003da94]
jmp 0x10009598
call fcn.1000d7db
call fcn.10009de6
jmp 0x100094b0
test eax, eax
jne 0x10009542
cmp dword [0x1003da94], eax
jle 0x10009587
dec dword [0x1003da94]
cmp dword [0x1003da8c], eax
jne 0x10009531
call fcn.1000878d
call fcn.1000d7db
call fcn.10009de6
call fcn.1000a489
jmp 0x10009598
cmp eax, 2
jne 0x1000958b
push 0x8c
push 1
call fcn.1000d522
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x10009587
push esi
push dword [0x10015430]
call dword [0x1003dab4]
test eax, eax
push esi
je 0x10009581
call fcn.10009e03
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x10009598
call fcn.100080fb
pop ecx
xor eax, eax
jmp 0x1000959b
cmp eax, 3
jne 0x10009598
push 0
call fcn.10009fce
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
Function at 0x1000dd9d
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x100153dc]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x100158d8]
je 0x1000ddd2
inc eax
cmp eax, 0x13
jb 0x1000ddc3
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x100158d8]
jne 0x1000def8
mov eax, dword [0x1003daa0]
cmp eax, 1
je 0x1000ded0
cmp eax, edx
jne 0x1000de02
cmp dword [0x1003daa4], 1
je 0x1000ded0
cmp ecx, 0xfc
je 0x1000def8
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000de38
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.1000cdd0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.10009940
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1000de6c
mov eax, edi
push eax
call fcn.10009940
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x100127f4
push edi
call fcn.1000e050
add esp, 0x10
push edi
call fcn.10009940
push dword [esi + 0x100158dc]
mov ebx, eax
call fcn.10009940
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.10008450
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.1000cdd0
push edi
push ebx
call fcn.1000cde0
push 0x100127f0
push ebx
call fcn.1000cde0
push dword [esi + 0x100158dc]
push ebx
call fcn.1000cde0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.1000df4d
add esp, 0x2c
jmp 0x1000def8
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x100158dc]
push dword [esi]
call fcn.10009940
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.1000802f
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x1000df4d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1003dd88], ebx
push esi
push edi
jne 0x1000dfcd
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1000e008
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x1003dd88], eax
je 0x1000e008
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x1003dd8c], eax
call esi
cmp dword [0x1003da50], 2
mov dword [0x1003dd90], eax
jne 0x1000dfcd
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x1003dd98], eax
je 0x1000dfcd
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x1003dd94], eax
mov eax, dword [0x1003dd94]
test eax, eax
je 0x1000e012
call eax
test eax, eax
je 0x1000dff9
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1003dd98]
test eax, eax
je 0x1000dff9
test byte [ebp - 8], 1
jne 0x1000e012
cmp dword [0x1003da5c], 4
jb 0x1000e00c
or byte [ebp + 0x12], 0x20
jmp 0x1000e031
xor eax, eax
jmp 0x1000e041
or byte [ebp + 0x12], 4
jmp 0x1000e031
mov eax, dword [0x1003dd8c]
test eax, eax
je 0x1000e031
call eax
mov ebx, eax
test ebx, ebx
je 0x1000e031
mov eax, dword [0x1003dd90]
test eax, eax
je 0x1000e031
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1003dd88]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000f1ef
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x100153dc]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x1000f220
xor eax, eax
jmp 0x1000f3a9
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x1003ef40]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x1000f25c
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.10010999
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x1000f337
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x1000f375
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x1000f2c0
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x1000f2b1
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x1000f291
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000f300
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x1000f309
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x1000f282
jmp 0x1000f30b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x1000f3a4
cmp dword [ebp - 0x6c], edi
je 0x1000f375
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x1000f36a
call fcn.1000e20f
mov dword [eax], 9
call fcn.1000e218
mov dword [eax], esi
jmp 0x1000f39f
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000f35f
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x1000f30b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x1000f30b
push dword [ebp - 0x6c]
call fcn.1000e221
pop ecx
jmp 0x1000f39f
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x1000f38d
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x1000f38d
xor eax, eax
jmp 0x1000f3a7
call fcn.1000e20f
mov dword [eax], 0x1c
call fcn.1000e218
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x1000f3a7
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.1000802f
add ebp, 0x3a0
leave
ret
Function at 0x402ad0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404968
test esi, esi
jne 0x402b06
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404a58
jmp 0x402b24
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029e4
mov edi, eax
test esi, esi
je 0x402b24
cmp dword [ebx], 0
je 0x402b24
dec esi
jmp 0x402b0d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403154
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x593008], 0x8088405
inc edx
mov dword [ebx + 0x593008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4039c8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x593010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403a60
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403a40
xor eax, eax
push ebp
push 0x403a39
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403a7c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403a40
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x593010]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x593010], ax
mov esp, ebp
pop ebp
ret

Function at 0x404748
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x59704c], 0
je 0x4047a9
cmp word [0x597220], 0xd7b2
jne 0x404771
cmp dword [0x597228], 0
jbe 0x404771
mov eax, 0x59721c
call dword [0x597238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x593058
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4047d0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x593020], 0
jne 0x4047c5
push 0
push 0x593078
push 0x593058
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40491c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004027a8
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x59704d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4048e4
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406420
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406650
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4064a3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406650
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4064a3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40666c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40652c
xor eax, eax
push ebp
push 0x406525
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406268
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40650a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40668c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40650a
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40652c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x406646
cmp byte [ebp - 0xd], 0
jne 0x406573
cmp byte [ebp - 0x12], 0
je 0x406646
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40658c
dec ebx
cmp byte [ebx], 0x2e
je 0x40659b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40658b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406646
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4065d8
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406646
cmp byte [ebp - 0xd], 0
je 0x406646
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406646
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40963c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404e18
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409655
test al, 0x10
jne 0x409659
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x409744
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404e18
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x409758
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404e18
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40977a
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40cb18
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40cb51
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404a58
jmp 0x40cb5a
mov eax, ebx
mov edx, esi
call fcn.004049bc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40cb64
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40cb85
mov al, byte [esp]
jmp 0x40cb87
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40e0d4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40e138
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404bd0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004093f0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e13f
lea eax, [ebp - 0xc]
call fcn.00404968
ret

Function at 0x421840
Capabilities:
Suspend thread

Disassembly:
push ebx
mov ebx, eax
mov byte [ebx + 0xe], 1
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, ebx
call fcn.004216b4
pop ebx
ret

Function at 0x421860
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004216b4
dec esi
jne 0x421882
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x4229ac
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x597a28
cmp dword [edi], 0
jne 0x422a28
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x597a24]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x5935d4
mov ecx, 2
call fcn.004029a4
mov edx, 0x422984
lea eax, [esi + 5]
call fcn.004229a4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004229a4
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x4229fd
mov dword [0x597a24], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x423fc4
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x423fca
ret

Function at 0x426778
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4267c9
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4267b0
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4267a0
jmp 0x4267c9
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4267b1
pop ebx
mov esp, ebp
pop ebp
ret