joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442047
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
xor eax, eax
mov dword [ebp - 4], eax
mov edx, dword [0x5efab0]
mov dword [ebp - 0x10], edx
mov edx, dword [0x5efab4]
mov dword [ebp - 0xc], edx
xor ecx, ecx
mov dword [ebp - 0x118], ecx
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x442088
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp + edx*4 - 0x114]
cmp ecx, dword [ebp + 8]
je 0x442093
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x118]
jb 0x442076
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x118]
jne 0x4420ba
cmp dword [ebp - 0x118], 0x40
jae 0x4420ba
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
mov dword [ebp + ecx*4 - 0x114], eax
inc dword [ebp - 0x118]
lea edx, [ebp - 0x10]
push edx
push 0
lea ecx, [ebp - 0x118]
push ecx
push 0
mov eax, dword [ebp + 8]
inc eax
push eax
call sub.WSOCK32.DLL_select
test eax, eax
jg 0x4420ef
push str.socket_select_ERROR_
call fcn.0045c640
push eax
call fcn.0045d390
add esp, 8
or eax, 0xffffffff
jmp 0x442143
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0x10]
jge 0x44213b
push 0
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp - 4]
push ecx
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
push eax
push dword [ebp + 8]
call sub.WSOCK32.DLL_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jg 0x44212d
push str.socket_send_ERROR_
call fcn.0045c640
push eax
call fcn.0045d390
add esp, 8
jmp 0x442140
mov edx, dword [ebp - 8]
add dword [ebp - 4], edx
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x10]
jl 0x4420f7
mov eax, dword [ebp + 0x10]
jmp 0x442143
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret

Function at 0x442800
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x5efa2c], eax
cmp dword [0x5efa60], 0
je 0x442837
push dword [0x5efa5c]
call sub.WSOCK32.DLL_closesocket
mov dword [0x5efa5c], 0xffffffff
push 0xffffffffffffffff
push dword [0x5efa60]
call sub.KERNEL32.DLL_WaitForSingleObject
xor edx, edx
mov dword [0x5efa58], edx
lea ecx, [ebp - 4]
push ecx
push 0
push dword [ebp + 0xc]
push 0x442147
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x5efa60], eax
pop ecx
pop ebp
ret
Function at 0x442d84
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor eax, eax
mov dword [ebp - 4], eax
xor edx, edx
mov dword [ebp - 8], edx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
xor eax, eax
mov dword [ebp - 0x10], eax
xor edx, edx
mov dword [ebp - 0x14], edx
cmp dword [ebp + 0xc], 0
je 0x442db5
cmp dword [ebp + 0x10], 0
je 0x442db5
cmp dword [ebp + 0x14], 0
jg 0x442dd4
push str.Invalid_params._n
call fcn.0045c640
push eax
call fcn.0045d390
add esp, 8
mov dword [ebp - 4], 0xffffffff
jmp 0x442f05
push dword [ebp + 0x14]
call fcn.00463260
pop ecx
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
call fcn.00508bd0
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x442e11
push 0x5fc072
call fcn.0045c640
push eax
call fcn.0045d390
add esp, 8
mov dword [ebp - 4], 0xffffffff
jmp 0x442efc
push dword [ebp - 0xc]
push 0
push dword [ebp - 8]
call fcn.0050a57c
add esp, 0xc
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00463294
add esp, 0x10
test eax, eax
jge 0x442e58
push str.aes_PKCS5Padding_src2dst___failed._n
call fcn.0045c640
push eax
call fcn.0045d390
add esp, 8
mov dword [ebp - 4], 0xffffffff
jmp 0x442efc
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x14], ecx
push dword [ebp - 0x14]
call fcn.00508bd0
pop ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x442e8c
push str.malloc___failed__out_of_memory._n
call fcn.0045c640
push eax
call fcn.0045d390
add esp, 8
mov dword [ebp - 4], 0xffffffff
jmp 0x442efc
push dword [ebp - 0x14]
push 0
push dword [ebp - 0x10]
call fcn.0050a57c
add esp, 0xc
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push str.8D352C149D0327BF
push 0x5efa35
push dword [ebp - 0xc]
push dword [ebp - 8]
call fcn.004632e4
add esp, 0x18
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x442edf
push str.aes_cbc_encrypt___failed._n
call fcn.0045c640
push eax
call fcn.0045d390
add esp, 8
mov dword [ebp - 4], 0xffffffff
jmp 0x442ef3
push dword [ebp + 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call sub.WSOCK32.DLL_send
mov dword [ebp - 4], eax
push dword [ebp - 0x10]
call fcn.00508be0
pop ecx
push dword [ebp - 8]
call fcn.00508be0
pop ecx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x443980
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x5ef9f0], 0
je 0x44399a
push 0xffffffffffffffff
push dword [0x5ef9f0]
call sub.KERNEL32.DLL_WaitForSingleObject
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x441fdf
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x5ef9f0], eax
pop ecx
pop ebp
ret
Function at 0x458838
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xffffffff
push 0
push 1
push 2
call sub.WSOCK32.DLL_socket
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x458865
or eax, 0xffffffff
jmp 0x4588e3
mov word [ebp - 0x1c], 2
push 0x16
call sub.WSOCK32.DLL_htons
mov word [ebp - 0x1a], ax
push str.127.0.0.1
call sub.WSOCK32.DLL_inet_addr
mov dword [ebp - 0x18], eax
push 8
push 0
lea edx, [ebp - 0x14]
push edx
call fcn.0050a57c
add esp, 0xc
mov esi, 0x5fbc41
lea edi, [ebp - 0x30]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
xor eax, eax
mov dword [ebp - 0xc], eax
push 0x10
lea edx, [ebp - 0x1c]
push edx
push dword [ebp - 8]
call sub.WSOCK32.DLL_connect
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4588d1
push dword [ebp - 8]
call sub.WSOCK32.DLL_closesocket
mov dword [ebp - 8], 0xffffffff
xor eax, eax
jmp 0x4588e3
push dword [ebp - 8]
call sub.WSOCK32.DLL_closesocket
mov dword [ebp - 8], 0xffffffff
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4588ec
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
mov dl, byte [ebp + 0xc]
mov byte [ebp - 4], dl
test dl, dl
jle 0x458907
mov eax, dword [ebp + 8]
call fcn.00547c50
mov dword [ebp + 8], eax
mov eax, 0x6016ec
call fcn.0050acb0
mov word [ebp - 0x14], 8
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp + 8]
call fcn.00482a40
add dword [ebp - 8], 2
mov edx, dword [ebp + 8]
xor ecx, ecx
mov dword [edx + 0x30], ecx
mov eax, dword [ebp - 0x24]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
cmp byte [ebp + 0xc], 0
je 0x458946
call fcn.00547c5d
mov esp, ebp
pop ebp
ret
Function at 0x45c2f4
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x14], edx
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], edx
mov ecx, dword [ebp + 8]
mov dword [ecx], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0xefcdab89
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x98badcfe
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], 0x10325476
pop ebp
ret
Function at 0x464f88
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffb8c
push esi
push edi
mov eax, 0x60dab8
call fcn.0050acb0
mov esi, 0x60b788
lea edi, [ebp - 0x174]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x68], 0x100
lea eax, [ebp - 0x68]
push eax
lea edx, [ebp - 0x174]
push edx
call sub.ADVAPI32.DLL_GetUserNameA
mov esi, 0x60b888
lea edi, [ebp - 0x274]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
mov esi, 0x60b988
lea edi, [ebp - 0x374]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x6c], 0x100
mov dword [ebp - 0x70], 0x100
lea eax, [ebp - 0x74]
push eax
lea edx, [ebp - 0x70]
push edx
lea ecx, [ebp - 0x374]
push ecx
lea eax, [ebp - 0x6c]
push eax
lea edx, [ebp - 0x274]
push edx
lea ecx, [ebp - 0x174]
push ecx
push 0
call sub.ADVAPI32.DLL_LookupAccountNameA
mov esi, 0x60ba88
lea edi, [ebp - 0x474]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x474]
push eax
lea edx, [ebp - 0x274]
push edx
call fcn.00464ee8
add esp, 8
mov word [ebp - 0x54], 8
lea ecx, [ebp - 8]
push ecx
call fcn.00401adc
pop ecx
push eax
inc dword [ebp - 0x48]
lea eax, [ebp - 0x474]
push eax
lea edx, [ebp - 0x20]
push edx
call fcn.00401c00
add esp, 0xc
push eax
add dword [ebp - 0x48], 4
lea ecx, [ebp - 0x28]
push ecx
call fcn.00401adc
pop ecx
push eax
inc dword [ebp - 0x48]
lea eax, [ebp - 0x174]
push eax
lea edx, [ebp - 0x40]
push edx
call fcn.00401c00
add esp, 0xc
push eax
add dword [ebp - 0x48], 4
push dword [ebp + 8]
call fcn.0045ce54
add esp, 0xc
mov eax, dword [ebp + 8]
mov word [ebp - 0x54], 0x14
push eax
sub dword [ebp - 0x48], 4
push 2
lea edx, [ebp - 0x20]
push edx
call fcn.00401a74
add esp, 8
dec dword [ebp - 0x48]
push 2
lea ecx, [ebp - 8]
push ecx
call fcn.00401a58
add esp, 8
sub dword [ebp - 0x48], 4
push 2
lea eax, [ebp - 0x40]
push eax
call fcn.00401a74
add esp, 8
dec dword [ebp - 0x48]
push 2
lea edx, [ebp - 0x28]
push edx
call fcn.00401a58
add esp, 8
pop eax
mov word [ebp - 0x54], 8
add dword [ebp - 0x48], 4
mov edx, dword [ebp - 0x64]
mov dword fs:[0], edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46d4b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
mov eax, 0x60ea64
call fcn.0050acb0
mov dword [ebp - 0x2c], 0x100
mov dword [ebp - 0x30], 0x100
push dword [ebp - 0x30]
call fcn.00508bd0
pop ecx
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x46d525
push dword [ebp - 0x34]
push dword [ebp - 0x30]
call sub.KERNEL32.DLL_GetCurrentDirectoryA
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x100
jbe 0x46d525
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call fcn.00508bf0
add esp, 8
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x46d525
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x34], edx
push dword [ebp - 0x34]
push dword [ebp - 0x30]
call sub.KERNEL32.DLL_GetCurrentDirectoryA
mov dword [ebp - 0x30], eax
mov word [ebp - 0x18], 8
mov word [ebp - 0x18], 0x14
cmp dword [ebp - 0x30], 0
je 0x46d542
cmp dword [ebp - 0x34], 0
je 0x46d542
mov edx, dword [ebp - 0x34]
jmp 0x46d547
mov edx, 0x60e6d8
lea eax, [ebp - 4]
call fcn.00545d10
inc dword [ebp - 0xc]
mov word [ebp - 0x18], 0x20
push dword [ebp - 0x34]
call fcn.00508be0
pop ecx
mov word [ebp - 0x18], 0x2c
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
call fcn.00545ea0
mov eax, dword [ebp + 8]
mov word [ebp - 0x18], 0x38
push eax
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00545e70
pop eax
mov word [ebp - 0x18], 0x20
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x46d5c5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x482d7c
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.00482c00
dec esi
jne 0x482d9e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x483ec8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x64fb8c
cmp dword [edi], 0
jne 0x483f44
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x64fb88]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x60fd9c
mov ecx, 2
call fcn.00499da8
mov edx, 0x483ea0
lea eax, [esi + 5]
call fcn.00483ec0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00483ec0
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 0x483f19
mov dword [0x64fb88], 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 0x488d6c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0049bd70
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x488d85
test al, 0x10
jne 0x488d89
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x48bac4
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x48bafd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0049b9b0
jmp 0x48bb06
mov eax, ebx
mov edx, esi
call fcn.0049b914
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x48bb10
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 0x48bb31
mov al, byte [esp]
jmp 0x48bb33
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x48d0dc
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 0x48d140
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.0049bb28
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.004888e4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48d147
lea eax, [ebp - 0xc]
call fcn.0049b8c0
ret

Function at 0x499ed4
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.0049b8c0
test esi, esi
jne 0x499f0a
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.0049b9b0
jmp 0x499f28
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00499de8
mov edi, eax
test esi, esi
je 0x499f28
cmp dword [ebx], 0
je 0x499f28
dec esi
jmp 0x499f11
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x49aa00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x61030c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x49aa98
push reloc.WSOCK32.DLL_bind
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x49aa78
xor eax, eax
push ebp
push 0x49aa71
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 0x49aab4
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 0x49aa78
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x61030c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x61030c], ax
mov esp, ebp
pop ebp
ret
Function at 0x49b6c0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x64ff20], 0
je 0x49b721
cmp word [0x6500f4], 0xd7b2
jne 0x49b6e9
cmp dword [0x6500fc], 0
jbe 0x49b6e9
mov eax, 0x6500f0
call dword [0x65010c]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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
push 0x49b748
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x61031c], 0
jne 0x49b73d
push 0
push 0x610374
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret

Function at 0x49b874
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.00499b44
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x64ff21], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x49b83c
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x49d294
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 0x49d4c4
push reloc.WSOCK32.DLL_accept
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x49d317
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x49d4c4
push reloc.WSOCK32.DLL_bind
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x49d317
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x49d4e0
push reloc.WSOCK32.DLL_accept
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x49d3a0
xor eax, eax
push ebp
push 0x49d399
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0049d0dc
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 0x49d37e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x49d500
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x49d37e
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 0x49d3a0
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 0x49d4ba
cmp byte [ebp - 0xd], 0
jne 0x49d3e7
cmp byte [ebp - 0x12], 0
je 0x49d4ba
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x49d400
dec ebx
cmp byte [ebx], 0x2e
je 0x49d40f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x49d3ff
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x49d4ba
inc ebx
cmp byte [ebp - 0x12], 0
je 0x49d44c
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 0x49d4ba
cmp byte [ebp - 0xd], 0
je 0x49d4ba
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 0x49d4ba
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 0x49e708
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x49e654
call sub.USER32.DLL_EnumWindows
ret

Function at 0x49e82c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x49e8a9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0049e278
call sub.KERNEL32.DLL_GetTickCount
mov ebx, eax
push 0
call sub.KERNEL32.DLL_Sleep
call sub.KERNEL32.DLL_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x49e851
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0049ded0
cmp dword [ebp - 4], 0
je 0x49e893
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.0049bd70
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.USER32.DLL_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49e8b0
lea eax, [ebp - 4]
call fcn.0049b8c0
ret

Function at 0x4af614
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.0049b8c0
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4af663
push 0x100
lea edx, [ebp - 0x102]
push edx
push eax
call sub.USER32.DLL_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, 0x100
call fcn.0049bb28
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b5598
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b57f8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4b55fb
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004b5060
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0048cb5c
cmp al, 1
jne 0x4b55fb
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004b5378
test al, al
je 0x4b5787
cmp dword [ebp - 8], 0
jge 0x4b5619
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.004b5060
mov eax, dword [ebp - 0x210]
call fcn.0049bb78
cmp ebx, eax
jge 0x4b5663
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004b5060
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x64f4f4]
and eax, 0xff
bt dword [edx], eax
jae 0x4b5663
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4b5677
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004b5574
cmp ebx, dword [ebp - 8]
je 0x4b5779
lea eax, [ebp - 0x108]
push eax
call sub.USER32.DLL_GetKeyboardState
mov edx, 0x100
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4b56a3
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.0049ad8c
and eax, 0x7f
movzx eax, word [eax*2 + 0x610610]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.USER32.DLL_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x4b5766
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.0049ad8c
and eax, 0x7f
movzx eax, word [eax*2 + 0x610610]
push eax
push 0x100
mov eax, dword [ebp - 4]
call fcn.004e733c
push eax
call sub.USER32.DLL_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.0049ad8c
and eax, 0x7f
movzx eax, word [eax*2 + 0x610610]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.004e733c
push eax
call sub.USER32.DLL_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b576d
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4b57da
cmp dword [ebp - 8], 0
jge 0x4b5792
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004b5060
mov eax, dword [ebp - 0x218]
call fcn.0049bb78
cmp eax, dword [ebp - 8]
jg 0x4b57cc
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004b5060
mov eax, dword [ebp - 0x21c]
call fcn.0049bb78
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004b5574
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b57ff
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.0049b8e4
ret