joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100019a0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10007986
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x1000a018]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
cmp eax, 1
jne 0x10001a69
push eax
push 0
push 0
push 6
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10001a35
push 0x108
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x20], 0
je 0x10001a20
push 0x2800
push 1
push esi
push eax
mov edi, 0x5000
call fcn.100040c0
jmp 0x10001a22
xor eax, eax
test eax, eax
mov dword [esp + 0x20], 0xffffffff
jne 0x10001a49
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push eax
push esi
call fcn.10001440
call fcn.10004d00
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x10001a35
push 1
push 0
push 0
push 0
push eax
push eax
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10001a35
push 0x108
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x20], 1
je 0x10001a20
push 0x1400
push 2
push esi
push eax
mov edi, 0x2800
call fcn.100040c0
jmp 0x10001a22

Function at 0x10002520
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x19c
mov eax, dword [0x1000a018]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1000255e
mov al, 1
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.10006c60
add esp, 0x19c
ret
mov ax, word [esp]
cmp al, 2
jne 0x1000256a
cmp ah, al
je 0x10002547
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x194]
xor ecx, esp
xor al, al
call fcn.10006c60
add esp, 0x19c
ret

Function at 0x10003300
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
cmp byte [edi], 0
push ebx
push esi
je 0x10003312
xor al, al
pop esi
pop ebx
add esp, 0x24
ret
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [edi + 8], eax
jle 0x1000332d
cmp eax, 0x40
jle 0x10003334
mov dword [edi + 8], 5
mov ecx, dword [edi + 8]
push ecx
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp eax, 0xffffffff
mov dword [edi + 0x10], eax
je 0x1000330a
xor ebx, ebx
cmp dword [edi + 8], ebx
jle 0x1000336d
push edi
push 0x100029f0
call fcn.100013c0
mov esi, eax
call fcn.10005d30
add ebx, 1
cmp ebx, dword [edi + 8]
jl 0x10003353
pop esi
mov byte [edi], 1
mov al, 1
pop ebx
add esp, 0x24
ret
Function at 0x10003dd0
Capabilities:
Inspect section memory permissions

Disassembly:
movzx eax, word [ebp + 0xc]
mov ecx, dword [ebp - 0x44]
lea eax, [eax + eax*4]
push dword [ecx + eax*8 + 0x10]
lea eax, [ecx + eax*8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add ecx, dword [ebp + 0x10]
add eax, esi
push ecx
push eax
call fcn.100037e6
add esp, 0xc
inc dword [ebp + 0xc]
mov ax, word [ebp + 0xc]
cmp ax, word [edi + 6]
jb 0x10003db2
call fcn.10003875
pushal
inc edx
inc edx
add al, 0x8b
jle 0x10003e2d
add edi, esi
mov dword [ebp - 0x88], edi
mov eax, dword [edi + 0x80]
cmp eax, ebx
je 0x10004064
add eax, esi
mov dword [ebp - 0x44], eax
cmp dword [eax + 4], ebx
jne 0x10003e1a
cmp dword [eax + 0xc], ebx
je 0x10003ebd
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.10003875
sub dword [ebx + 0x5d3965f7], ebp
or al, 0x75
adc dl, byte [edi - 1]
xchg ebp, eax
dec eax
invalid
jmp [ecx]
call fcn.10003875
loop 0x10003ed9
jno 0x10003f34
mov eax, dword [edi + 0xa0]
cmp eax, ebx
je 0x10003f29
add eax, esi

Function at 0x10003f10
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x10003f29
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x10003f24
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x10003f0e
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x10003f16
cmp edx, ebx
jne 0x10004064
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x10003ee5
add eax, dword [eax + 4]
jmp 0x10003ed2
mov dword [ebp + 0xc], ebx
jmp 0x10003f34
Function at 0x10004740
Capabilities:
Contain obfuscated stackstrings

Disassembly:
dec dword [ebp - 0x77]
pop edi
push 0x104
lea eax, [ebp - 0x334]
push eax
push dword [ebp + 8]
call dword [ebp - 0x538]
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x10004569
cmp dword [ebp - 0x398], 0
je 0x10004733
cmp dword [ebp + 0xc], 1
je 0x10004733
cmp dword [ebp + 0xc], 8
jne 0x100046fb
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
inc esp
stc
invalid
call fcn.10003875
jl 0x1000477d
jo 0x10004685
movsd dword es:[edi], dword [esi]
mov esp, 0xfffffa
push 0
call dword [ebp - 0x340]
mov dword [ebp + 8], eax
push 0x104
lea eax, [ebp - 0x334]
push eax
push 0
call dword [ebp - 0x538]
call fcn.10003875
mov esp, 0x80ce8b9b
movsd dword es:[edi], dword [esi]
sar ch, 1
invalid
and byte [ebp - 0x230], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
mov ebp, 0xfffffdd1
inc dword [eax]

Function at 0x10005cc0
Capabilities:
Create thread

Disassembly:
push esi
push 0x30
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
je 0x10005d28
lea eax, [esi + 0xc]
push eax
mov dword [esi + 8], vtable.Amnet::CMutex.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
push edi
lea edi, [esi + 0xc]
push edi
mov dword [esi + 0x2c], 0
mov dword [esi], ecx
mov dword [esi + 4], edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esi + 0x28]
push eax
push 0
push esi
push 0x10005b60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push edi
mov dword [esi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
ret 8
xor eax, eax
pop esi
ret 8
Function at 0x10005d30
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
push ebx
lea eax, [esi + 4]
push edi
push eax
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x30], 0
jbe 0x10005d9b
mov eax, dword [esi + 0x2c]
mov ebx, dword [eax]
cmp ebx, eax
lea edi, [esi + 0x28]
jne 0x10005d61
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
mov ebx, dword [ebx + 0xc]
push eax
push edi
lea edx, [esp + 0x1c]
push edx
push edi
mov dword [esp + 0x1c], ebx
call fcn.10005f90
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov edx, dword [ebx + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
jne 0x10005dac
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10005dac
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.10005cc0
mov dword [esp + 0xc], eax
lea edx, [esp + 0xc]
push edx
lea ebx, [esi + 0x1c]
lea edi, [esp + 0x18]
call fcn.10005eb0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10005dd0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
push ebx
lea eax, [edi + 4]
push esi
push eax
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp + 8], 0
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
lea esi, [edi + 0x28]
mov ebx, eax
mov dword [esp + 8], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ebx
jle 0x10005e96
jmp 0x10005e18
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
test esi, esi
mov ecx, dword [edi + 0x2c]
lea eax, [edi + 0x28]
mov dword [esp + 0x1c], ecx
je 0x10005e2a
cmp esi, eax
je 0x10005e30
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, dword [esp + 0x1c]
je 0x10005e96
test esi, esi
jne 0x10005e40
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, dword [esi + 4]
jne 0x10005e4b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebx + 0xc]
mov esi, 1
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 0x2c], esi
add dword [edi + 0x34], esi
mov edx, dword [eax + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
jne 0x10005e7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [esp + 8]
add ebx, esi
lea esi, [esp + 0x10]
mov dword [esp + 8], ebx
call fcn.10006860
cmp ebx, dword [ebp + 8]
jl 0x10005e10
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10006af0
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 8], 0
je 0x10006b8d
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x120], 0
jne 0x10006b1a
call fcn.10006a60
mov dword [esi + 0x120], eax
mov dword [esi + 0x124], eax
mov esi, dword [esi + 0x120]
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCR80.dll_fseek]
mov ebx, 0x1010
push edi
mov edi, edi
test esi, esi
je 0x10006b89
mov ecx, dword [esi + 4]
mov edi, dword [esi + 0xc]
mov eax, dword [esi + 8]
sub edi, ecx
sub edi, eax
je 0x10006b6e
cmp ebx, edi
ja 0x10006b49
mov edi, ebx
add ecx, eax
mov eax, dword [esi]
push 0
push ecx
push eax
call ebp
mov ecx, dword [esi]
mov edx, dword [esp + 0x24]
push ecx
push edi
push 1
push edx
call dword [sym.imp.MSVCR80.dll_fwrite]
add dword [esi + 8], edi
add esp, 0x1c
sub ebx, edi
jmp 0x10006b85
call fcn.10006a60
mov dword [esi + 0x114], eax
mov esi, eax
mov eax, dword [esp + 0x14]
mov dword [eax + 0x120], esi
test ebx, ebx
ja 0x10006b30
pop edi
pop ebp
pop ebx
pop esi
ret 8

Function at 0x10006c60
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000a018]
jne 0x10006c6a
repz ret
jmp fcn.100070d0
Function at 0x4029d4
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402a11
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.KERNEL32.DLL_GetCurrentDirectoryA
push esp
call sub.KERNEL32.DLL_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test bl, bl
je 0x402a31
lea eax, [esp + 0x109]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404aac
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402b98
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.0040483c
test esi, esi
jne 0x402bce
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040492c
jmp 0x402bec
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402aac
mov edi, eax
test esi, esi
je 0x402bec
cmp dword [ebx], 0
je 0x402bec
dec esi
jmp 0x402bd5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4038b8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4d9024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403950
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x403930
xor eax, eax
push ebp
push 0x403929
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 0x40396c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403930
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov ax, word [0x4d9024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4d9024], ax
mov esp, ebp
pop ebp
ret

Function at 0x40461c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4de04c], 0
je 0x40467d
cmp word [0x4de220], 0xd7b2
jne 0x404645
cmp dword [0x4de228], 0
jbe 0x404645
mov eax, 0x4de21c
call dword [0x4de238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4d9094
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4046a4
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x4d9034], 0
jne 0x404699
push 0
push 0x4d908c
push 0x4d9094
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret
Function at 0x4047f0
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.004027ec
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4de04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4047b8
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread_1
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405df8
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_1
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406028
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
je 0x405e7b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406028
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
je 0x405e7b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406044
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x405f04
xor eax, eax
push ebp
push 0x405efd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405c40
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_1
test eax, eax
je 0x405ee2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406064
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x405ee2
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 0x405f04
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
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_1
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40601e
cmp byte [ebp - 0xd], 0
jne 0x405f4b
cmp byte [ebp - 0x12], 0
je 0x40601e
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405f64
dec ebx
cmp byte [ebx], 0x2e
je 0x405f73
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405f63
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40601e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405fb0
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 0x40601e
cmp byte [ebp - 0xd], 0
je 0x40601e
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 0x40601e
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 0x406740
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4067a6
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404aac
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403470
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406790
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4067ad
lea eax, [ebp - 0x10]
call fcn.0040483c
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404cfc
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409375
test al, 0x10
jne 0x409379
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40be20
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
test eax, eax
jle 0x40be59
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040492c
jmp 0x40be62
mov eax, ebx
mov edx, esi
call fcn.00404890
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40be6c
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
test eax, eax
jle 0x40be8d
mov al, byte [esp]
jmp 0x40be8f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40cea4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40cf7a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004048d4
lea eax, [ebp - 8]
call fcn.00404d4c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404cfc
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cf64
mov eax, ebx
call fcn.004027ec
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cf5d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404cfc
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cf47
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cf8c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cf47
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cf64
mov eax, dword [ebp - 0x10]
call fcn.0040280c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cf81
lea eax, [ebp - 8]
call fcn.0040483c
ret
Function at 0x40d558
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 0x40d5bc
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
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404aac
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.00408e94
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d5c3
lea eax, [ebp - 0xc]
call fcn.0040483c
ret

Function at 0x41e38c
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x41e3d9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.KERNEL32.DLL_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0041e1b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41e3f1
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x41e3f8
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.0041e1b8
dec esi
jne 0x41e41a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x41f55c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4de88c
cmp dword [edi], 0
jne 0x41f5d8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x4de888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4d9440
mov ecx, 2
call fcn.00402a6c
mov edx, 0x41f534
lea eax, [esi + 5]
call fcn.0041f554
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041f554
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 0x41f5ad
mov dword [0x4de888], 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 0x420c64
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 0x420c6a
ret
Function at 0x4235bc
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 0x42360d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4235f4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4235e4
jmp 0x42360d
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 0x4235f5
pop ebx
mov esp, ebp
pop ebp
ret