joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49ab18
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49ac62
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0049a140
xor eax, eax
push ebp
push 0x49ac45
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x49ab7d
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x49ab7d
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x49ac2f
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x49ab90
call fcn.00403ea4
jmp 0x49ac4c
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x49ac2f
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x49ac2f
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403868
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x49ac2f
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040c2d4
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x49ac7c
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4ff3a8]
mov dl, 1
mov eax, dword [0x499448]
call fcn.0040cc04
call fcn.00403df8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49ac4c
mov eax, dword [ebp - 4]
call fcn.0049a14c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49ac69
lea eax, [ebp - 0x28]
call fcn.004044c8
ret
Function at 0x4a72a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push ecx
mov esi, edx
mov ebx, eax
push esp
push 0x40
push 2
push ebx
call sub.kernel32.dll_VirtualProtect
mov word [ebx], si
pop edx
pop esi
pop ebx
ret

Function at 0x4a72bc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push ecx
mov esi, edx
mov ebx, eax
push esp
push 0x40
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
mov dword [ebx], esi
pop edx
pop esi
pop ebx
ret
Function at 0x4b3970
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
lea eax, [ebp - 0x40]
xor edx, edx
push ebp
push 0x4b3a2b
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x14b3bf0
mov edx, dword [edx]
add edx, 0x2c
mov edx, dword [edx]
add edx, 0x14c
add edx, 4
mov edx, dword [edx]
mov dword [ebp - 0x44], edx
mov dword [eax], 0x1265368
mov dword [eax + 4], 0x1261
xor edx, edx
mov dword [eax + 8], edx
xor edx, edx
mov dword [eax + 0xc], edx
mov edx, dword [ebp + 0x10]
mov dword [eax + 0x10], edx
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x14], edx
mov edx, dword [ebp + 8]
mov dword [eax + 0x18], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x1c], edx
mov dword [eax + 0x20], 0x11d5a50
xor edx, edx
mov dword [eax + 0x24], edx
xor edx, edx
mov dword [eax + 0x28], edx
xor edx, edx
mov dword [eax + 0x2c], edx
xor edx, edx
mov dword [eax + 0x30], edx
xor edx, edx
mov dword [eax + 0x34], edx
xor edx, edx
mov dword [eax + 0x38], edx
xor edx, edx
mov dword [eax + 0x3c], edx
pushal
push 0
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x44]
mov ecx, 0x14b3bf0
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x2c]
mov edi, 0x14c
mov ecx, dword [edi + ecx]
mov edx, 0xc970e0
call edx
popal
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b3a35
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4bcc54
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xffffffe8
mov ebx, eax
mov eax, ebx
call fcn.004044c8
mov dword [esp], 0x10
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
mov edx, ebx
lea eax, [esp + 4]
call fcn.004097e4
add esp, 0x18
pop ebx
ret

Function at 0x4bcd90
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe48
push ebx
push esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404978
xor eax, eax
push ebp
push 0x4bce61
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.004044c8
lea eax, [ebp - 0x198]
push eax
push 2
call sub.wsock32.dll_WSAStartup
mov eax, dword [ebp - 4]
call fcn.00404988
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4bce46
mov ebx, eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebx + 0xc]
mov esi, dword [eax]
xor eax, eax
mov al, byte [esi]
mov dword [ebp - 0x1b8], eax
mov byte [ebp - 0x1b4], 0
xor eax, eax
mov al, byte [esi + 1]
mov dword [ebp - 0x1b0], eax
mov byte [ebp - 0x1ac], 0
xor eax, eax
mov al, byte [esi + 2]
mov dword [ebp - 0x1a8], eax
mov byte [ebp - 0x1a4], 0
xor eax, eax
mov al, byte [esi + 3]
mov dword [ebp - 0x1a0], eax
mov byte [ebp - 0x19c], 0
lea edx, [ebp - 0x1b8]
mov ecx, 3
mov eax, 0x4bce78
call fcn.00409cd4
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bce68
lea eax, [ebp - 4]
call fcn.004044c8
ret

Function at 0x4bcfbc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
mov byte [ebp - 1], 0
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4bd073
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.00404988
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jne 0x4bcffe
call fcn.00403ea4
jmp 0x4bd07a
mov eax, ebx
call fcn.0040278c
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
mov eax, esi
call fcn.00404988
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
jne 0x4bd027
call fcn.00403ea4
jmp 0x4bd07a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4bd084
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
jne 0x4bd048
call fcn.00403ea4
jmp 0x4bd07a
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov dword [edi], eax
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bd07a
mov eax, dword [ebp - 8]
call fcn.004027ac
ret
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bd7ec
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Link many functions at runtime

Disassembly:
push ebx
push esi
add esp, 0xffffffe4
mov esi, eax
jmp 0x4bd7fc
push 0x4bd8b4
call sub.kernel32.dll_GetModuleHandleA_1
mov ebx, eax
mov dword [esp], esi
push 0x4bd8c4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [esp + 4], eax
push 0x4bd8d4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [esp + 8], eax
push 0x4bd8e4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [esp + 0xc], eax
push 0x4bd8f0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [esp + 0x10], eax
push 0x4bd904
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [esp + 0x14], eax
push 0x4bd918
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [esp + 0x18], eax
mov esi, fcn.004bda18
sub esi, 0x4bd924
push 0x40
push 0x3000
push esi
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov ebx, eax
test ebx, ebx
je 0x4bd8ac
mov eax, dword [esp]
call fcn.004bda18
mov edx, 0x4bd924
mov ecx, esi
mov eax, ebx
call fcn.00407488
mov eax, ebx
mov ebx, eax
mov eax, esp
call ebx
jmp 0x4bd8ac
add esp, 0x1c
pop esi
pop ebx
ret

Function at 0x4bf624
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x108], eax
xor eax, eax
push ebp
push 0x4bf6e8
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
push 0
mov eax, dword [0x50147c]
call fcn.0044b328
push eax
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
je 0x4bf6cf
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push eax
push ebx
call sub.user32.dll_GetClassNameA
lea eax, [ebp - 0x108]
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.00404738
mov eax, dword [ebp - 0x108]
mov edx, 0x4bf700
call fcn.004048d4
jne 0x4bf6c1
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push eax
push ebx
call sub.user32.dll_GetWindowTextA
lea eax, [ebp - 4]
push eax
push ebx
call sub.user32.dll_GetWindowThreadProcessId
call sub.kernel32.dll_GetCurrentProcessId
cmp eax, dword [ebp - 4]
jne 0x4bf6c1
mov esi, ebx
push 2
push ebx
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
jne 0x4bf65f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bf6ef
lea eax, [ebp - 0x108]
call fcn.004044c8
ret

Function at 0x4c03dc
Capabilities:
Terminate process

Disassembly:
call sub.kernel32.dll_GetCurrentProcessId
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov edx, dword [0x4feca8]
mov edx, dword [edx]
push edx
push eax
call sub.kernel32.dll_TerminateProcess
ret

Function at 0x4f2800
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push esp
push 0x40
push 6
push 0x725274
call sub.kernel32.dll_VirtualProtect
mov eax, 0x725274
mov byte [eax], 0xe9
mov eax, 0x4f27e0
sub eax, 0x725274
sub eax, 5
mov edx, 0x725275
mov dword [edx], eax
mov eax, 0x725279
mov byte [eax], 0x90
push esp
mov eax, dword [esp + 4]
push eax
push 6
push 0x725274
call sub.kernel32.dll_VirtualProtect
pop edx
ret
Function at 0x4f2848
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov eax, 0x725274
cmp dword [eax], 0x830446d9
je 0x4f288c
push esp
push 0x40
push 6
push 0x725274
call sub.kernel32.dll_VirtualProtect
mov eax, 0x725274
mov dword [eax], 0x830446d9
mov eax, 0x725278
mov word [eax], 0x8ec
push esp
mov eax, dword [esp + 4]
push eax
push 6
push 0x725274
call sub.kernel32.dll_VirtualProtect
pop edx
ret

Function at 0x4f2dd8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push esp
push 0x40
push 5
push 0x735b83
call sub.kernel32.dll_VirtualProtect
mov eax, 0x735b83
mov byte [eax], 0xe9
mov eax, 0x4f2db8
sub eax, 0x735b83
sub eax, 5
mov edx, 0x735b84
mov dword [edx], eax
push esp
mov eax, dword [esp + 4]
push eax
push 5
push 0x735b83
call sub.kernel32.dll_VirtualProtect
pop edx
ret

Function at 0x4f2e40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push esp
push 0x40
push 6
push 0xe8d0f0
call sub.kernel32.dll_VirtualProtect
mov eax, 0xe8d0f0
mov byte [eax], 0xe9
mov eax, 0x4f2e28
sub eax, 0xe8d0f0
sub eax, 5
mov edx, 0xe8d0f1
mov dword [edx], eax
push esp
mov eax, dword [esp + 4]
push eax
push 6
push 0xe8d0f0
call sub.kernel32.dll_VirtualProtect
pop edx
ret

Function at 0x4f9510
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov eax, dword [0x4fee7c]
cmp dword [eax], 0
jne 0x4f952d
mov eax, dword [0x4ff048]
mov edx, dword [0x533600]
mov dword [eax], edx
mov eax, dword [0x4fee7c]
cmp dword [eax], 7
jne 0x4f957b
xor eax, eax
push ebp
push 0x4f9564
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4feca8]
mov eax, dword [eax]
push eax
mov eax, dword [0x4fece8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_TerminateThread
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f956e
call fcn.004f1bc8
mov eax, dword [0x4ff510]
mov byte [eax], 1
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4f95d8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push esp
push 0x40
push 7
push 0x8cc676
call sub.kernel32.dll_VirtualProtect
mov eax, 0x8cc676
mov byte [eax], 0xe9
mov eax, 0x4f9580
sub eax, 0x8cc676
sub eax, 5
mov edx, 0x8cc677
mov dword [edx], eax
mov eax, 0x8cc67b
mov byte [eax], 0x90
mov eax, 0x8cc67c
mov byte [eax], 0x90
push esp
mov eax, dword [esp + 4]
push eax
push 7
push 0x8cc676
call sub.kernel32.dll_VirtualProtect
pop edx
ret
Function at 0x407bb8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00407e48
mov byte [esp], al
cmp byte [esp], 0
jne 0x407d38
test edi, edi
je 0x407d38
mov byte [esp + 1], 0
test ebp, ebp
jle 0x407c78
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x407c53
cmp edi, 0xffffffff
je 0x407c17
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407c17
mov byte [esp], 0
jmp 0x407d38
mov ebx, dword [esi]
cmp ebx, 1
jg 0x407c53
test ebx, ebx
jne 0x407c49
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x407c49
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x407d38
call 0x407e88
dec ebp
test ebp, ebp
jg 0x407bfc
cmp edi, 0xffffffff
je 0x407c78
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407c76
mov byte [esp], 0
jmp 0x407d38
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x407bc6
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407c78
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00407da4
mov edx, eax
mov ebx, dword [0x4e98f0]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x407cdc
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x407cda
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x407cdc
xor edi, edi
cmp byte [esp], 0
je 0x407d02
mov ebx, dword [esi]
test bl, 1
jne 0x407d18
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407ce2
mov byte [esp + 1], 1
jmp 0x407d18
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x407d02
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x407c8f
cmp byte [esp], 0
je 0x407d38
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4088b8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4e9050], 0
je 0x40891f
cmp word [0x4e933c], 0xd7b2
jne 0x4088e1
cmp dword [0x4e9344], 0
jbe 0x4088e1
mov eax, 0x4e9338
call dword [0x4e9354]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x40894c
call fcn.00409378
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4e5032], 0
jne 0x40893b
push 0
push 0x4e59ba
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40b0c0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40b225
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00408b50
cmp si, word [0x4e59f8]
jb 0x40b158
cmp si, word [0x4e5bf8]
ja 0x40b158
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40b158
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4e59f8]
jae 0x40b132
mov edi, ebx
dec edi
jmp 0x40b153
cmp si, word [ebx*8 + 0x4e59f8]
jbe 0x40b142
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40b153
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4e59fc]
call fcn.0040afe0
jmp 0x40b158
cmp edi, dword [ebp - 8]
jae 0x40b11c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40b207
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40b207
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040971c
push dword [ebp - 0x160]
push 0x40b240
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040971c
push dword [ebp - 0x164]
push 0x40b250
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040971c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00409954
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b22c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00408bb0
ret
Function at 0x40b3d8
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40b4dc
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4ebb80
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4ebb98]
jne 0x40b424
mov eax, esi
mov edx, 0x4ebb9a
mov ecx, 0x55
call fcn.0040971c
push 0x4ebb80
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40b4c6
push 0x4ebb80
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00408b50
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40b493
cmp byte [0x4ebb7c], 0
je 0x40b458
mov edx, esi
mov eax, ebx
call fcn.0040b2bc
jmp 0x40b493
mov edx, esi
mov eax, ebx
call fcn.0040b0c0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40b493
cmp dword [esi], 0
je 0x40b47c
mov eax, esi
mov edx, 0x40b4f4
call fcn.00409874
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040b0c0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00409874
push 0x4ebb80
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4ebb98], bx
mov eax, dword [esi]
call fcn.00409678
mov ecx, eax
mov eax, 0x4ebb9a
mov edx, 0xaa
call fcn.0040af40
push 0x4ebb80
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b4e3
lea eax, [ebp - 4]
call fcn.00408b50
ret
Function at 0x40b70c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00408c34
xor eax, eax
push ebp
push 0x40b931
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40b74c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40b766
mov eax, dword [ebp - 4]
call fcn.00409678
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040af40
cmp word [ebp - 0x21a], 0
je 0x40b91b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b940
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40b835
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b940
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40b835
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b97c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40b835
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b97c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40b835
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b9b0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40b835
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40b9e4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40b91b
xor eax, eax
push ebp
push 0x40b914
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040b51c
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40b8a4
mov eax, dword [ebp - 0x10]
call fcn.00406668
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004096e0
jmp 0x40b8ef
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40ba24
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40b8ef
mov eax, dword [ebp - 0x10]
call fcn.00406668
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40ba24
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004096e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b91b
cmp dword [ebp - 8], 0
je 0x40b90a
mov eax, dword [ebp - 8]
call fcn.00406684
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b938
lea eax, [ebp - 4]
call fcn.00408b50
ret
Function at 0x40bc20
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00408c34
xor eax, eax
push ebp
push 0x40bce0
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040971c
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004098cc
mov eax, dword [ebx]
call fcn.0040bae8
test al, al
jne 0x40bcbd
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040971c
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004098cc
mov eax, dword [ebx]
call fcn.0040bae8
test al, al
jne 0x40bcbd
mov eax, ebx
call fcn.00408b50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bce7
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00408bb0
lea eax, [ebp - 4]
call fcn.00408b50
ret

Function at 0x40c528
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x41c60c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41c665
test eax, edx
je 0x41c668
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41c623
movzx eax, word [eax]
sub eax, ecx
jmp 0x41c64a
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x41c64b
add ecx, 4
js 0x41c63b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41c648
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41c64a
xor eax, eax
ret
test eax, eax
je 0x41c674
test edx, edx
jne 0x41c614
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41d898
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x41d8c5
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4