joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46abf0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57a344
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5eabd8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x20]
call fcn.00435d80
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x20]
mov dword [eax], 0x59edb0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x20]
add ecx, 4
call fcn.00496d11
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x20]
add ecx, 0x1c
call fcn.00414a30
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x20]
add ecx, 0x20
call fcn.00414a30
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x20]
add ecx, 0x24
call fcn.00414a30
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0xc], 0
push 0x59e02e
mov ecx, dword [ebp - 0x20]
add ecx, 0x24
call fcn.00414af0
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x28], 0
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x2c], 0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp + 8]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x18], 0
push 0x59e02f
mov edx, dword [ebp - 0x20]
add edx, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x59e7c0
mov eax, dword [ebp - 0x20]
add eax, 0x130
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x59e03e
mov ecx, dword [ebp - 0x20]
add ecx, 0x170
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x59e7c4
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0x59e7dc
call fcn.00414a70
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x14]
push edx
call fcn.00412e90
add esp, 0xc
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x20]
add ecx, 0x1c
call fcn.00417a80
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
call fcn.0041c360
push 0x59e7f8
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x59e828
call fcn.00414a70
mov dword [ebp - 0x30], eax
lea edx, [ebp - 0x1c]
push edx
call fcn.00412e90
add esp, 0xc
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x20]
add ecx, 0x20
call fcn.00417a80
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.0041c360
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x46f420
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WSOCK32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x46f44b
push 0
call fcn.0046f140
add esp, 4
mov esp, ebp
pop ebp
ret 8

Function at 0x46f5e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57a8e6
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5eabd8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], ecx
push 0x10
push 0
lea eax, [ebp - 0x20]
push eax
call fcn.004aeb90
add esp, 0xc
mov ecx, 2
mov word [ebp - 0x20], cx
movzx edx, word [ebp + 8]
push edx
call dword [sym.imp.WSOCK32.dll_htons]
mov word [ebp - 0x1e], ax
cmp dword [ebp + 0xc], 0
je 0x46f692
mov eax, dword [ebp + 0xc]
push eax
call fcn.004ade30
add esp, 4
test eax, eax
je 0x46f692
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x24]
call fcn.00414a70
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.004368b0
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x46f681
push 0x2726
call fcn.0046f140
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0041c360
jmp 0x46f69d
push 0
call dword [sym.imp.WSOCK32.dll_htonl]
mov dword [ebp - 0x1c], eax
push 0x10
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x28]
call fcn.0046f580
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004adaab
mov esp, ebp
pop ebp
ret 8

Function at 0x46f8d0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
jne 0x46f8fb
push 0
call fcn.0046f140
add esp, 4
mov esp, ebp
pop ebp
ret 8
Function at 0x46fd60
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov dword [ebp - 0x4c], ecx
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x46fd82
push 0
call fcn.0046f140
add esp, 4
push 0x10
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x46fdb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0046f140
add esp, 4
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WSOCK32.dll_connect]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x46fe94
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
jne 0x46fe7e
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x46fe65
lea edx, [ebp - 0x44]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x46fe47
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0046f140
add esp, 4
jmp 0x46fe63
cmp dword [ebp - 0x30], 0
je 0x46fe63
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov eax, dword [ebp - 0x30]
push eax
call fcn.0046f140
add esp, 4
jmp 0x46fe7c
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
push 0x274c
call fcn.0046f140
add esp, 4
jmp 0x46fe94
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov eax, dword [ebp - 0x10]
push eax
call fcn.0046f140
add esp, 4
push 0
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
cmp dword [ebp + 0x14], 0
je 0x46fee3
mov dword [ebp - 0x48], 0
lea edx, [ebp - 0x48]
push edx
push 0x8004667e
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x46fee3
push 0
call fcn.0046f140
add esp, 4
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4700e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WSOCK32.dll_recv]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x470115
push 0
call fcn.0046f140
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x470120
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WSOCK32.dll_recvfrom]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x47015d
push 0
call fcn.0046f140
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x14

Function at 0x470370
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WSOCK32.dll_send]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4703a5
push 0
call fcn.0046f140
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4703b0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WSOCK32.dll_sendto]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4703ed
push 0
call fcn.0046f140
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x14
Function at 0x470fb0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov dword [ebp - 0x120], ecx
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 0x3e8
div ecx
mov dword [ebp - 0x118], eax
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 0x3e8
div ecx
imul edx, edx, 0x3e8
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x11c], 0
jmp 0x47100e
mov edx, dword [ebp - 0x11c]
add edx, 1
mov dword [ebp - 0x11c], edx
mov eax, dword [ebp - 0x11c]
cmp eax, dword [ebp - 0x110]
jae 0x471038
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x120]
mov eax, dword [ebp + ecx*4 - 0x10c]
cmp eax, dword [edx + 4]
jne 0x471036
jmp 0x471038
jmp 0x470fff
mov ecx, dword [ebp - 0x11c]
cmp ecx, dword [ebp - 0x110]
jne 0x471074
cmp dword [ebp - 0x110], 0x40
jae 0x471074
mov edx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x120]
mov ecx, dword [eax + 4]
mov dword [ebp + edx*4 - 0x10c], ecx
mov edx, dword [ebp - 0x110]
add edx, 1
mov dword [ebp - 0x110], edx
xor eax, eax
jne 0x470ff3
lea ecx, [ebp - 0x118]
push ecx
push 0
push 0
lea edx, [ebp - 0x110]
push edx
push 0
call dword [sym.imp.WSOCK32.dll_select]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4710a9
push 0
call fcn.0046f140
add esp, 4
xor eax, eax
cmp dword [ebp - 4], 0
setne al
mov esp, ebp
pop ebp
ret 4

Function at 0x471770
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 4], 0
je 0x471799
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [ebp - 0x2c]
mov dword [eax + 4], 0
push 0x20
push 0
lea ecx, [ebp - 0x28]
push ecx
call fcn.004aeb90
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x2c]
add edx, 4
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4734e0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57aea5
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x5eabd8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
push 0x104
lea ecx, [ebp + 8]
call fcn.00414d30
mov dword [ebp - 0x10], eax
push 0x59f98a
lea ecx, [ebp - 0x1c]
call fcn.00414a70
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 0
jmp 0x47354f
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x10]
movsx eax, byte [edx]
test eax, eax
je 0x47358f
cmp dword [ebp - 0x18], 3
jle 0x47357e
mov ecx, dword [ebp - 0x10]
movsx edx, byte [ecx]
cmp edx, 0x5c
jne 0x47357e
push 0
lea ecx, [ebp - 0x1c]
call fcn.004368b0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004513f0
jmp 0x47353d
push 0xffffffffffffffff
lea ecx, [ebp + 8]
call fcn.0041e5a0
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x20], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0041c360
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0041c360
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x47460f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00485f40
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x474648
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00474260
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x4746a6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4746ca
cmp dword [edi + 0x54], 0
jne 0x4746ca
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00485f40
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00474667
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x47ac60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x47aca7
call fcn.00485f40
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x47aca7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x47acc3
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0047a7da
mov esi, eax
test edi, edi
je 0x47acc1
test ebx, ebx
je 0x47acc1
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x47bbea
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x57cd20
call fcn.004b14d6
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x47bc0f
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x47bc55
lea ecx, [ebp - 0x10]
call fcn.00414a30
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0045fb80
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00414e00
mov eax, esi
call fcn.004b15ae
ret 8
Function at 0x4894a4
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x5eabd8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x489542
push 0x5a32d4
push 4
push eax
call fcn.004ae7b3
push eax
call fcn.00417650
add esp, 0x10
push ebx
push edi
call fcn.004b16a5
mov edi, dword [eax]
call fcn.004b16a5
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.004adb29
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.004b16a5
cmp dword [eax], ebx
je 0x489559
call fcn.004b16a5
push dword [eax]
call fcn.00474a57
pop ecx
jmp 0x489560
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x4894ea
jmp 0x4895e7
call fcn.004b16a5
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
je 0x4895e3
cmp dword [ebp - 0x11c], esi
jae 0x4895e3
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x15c]
push ebx
push eax
mov dword [ebp - 0x160], 0x40
call fcn.004aeb90
add esp, 0xc
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x4895d2
push str.FindActCtxSectionStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4895d2
lea ecx, [ebp - 0x160]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x4895d2
push ebx
push ebx
push esi
jmp 0x4895db
push ebx
push ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x4895e5
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004adaab
leave
ret

Function at 0x48b401
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 1
mov ecx, esi
test al, 1
je 0x48b425
mov eax, dword [esi]
push 0
call dword [eax + 0x98]
test eax, eax
jne 0x48b433
pop esi
ret
mov eax, dword [esi + 0x24]
mov edx, dword [esi]
push eax
call dword [edx + 0x98]
jmp 0x48b41f
xor eax, eax
inc eax
pop esi
ret
Function at 0x4932c6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.00485f40
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x4932f3
xor eax, eax
jmp 0x493399
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x4932ec
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4932ec
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00473c55
pop ecx
mov edi, eax
xor ecx, ecx
xor eax, eax
cmp cx, word [esi + 6]
jae 0x49334a
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x493339
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.00491f71
push edi
mov ebx, eax
call fcn.00473c8f
pop ecx
test ebx, ebx
je 0x49338c
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.0049264e
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00492702
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4

Function at 0x498cc8
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x57c8a7
call fcn.004b14d6
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00414a70
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x498d2a
call fcn.0048581a
cmp eax, 1
jne 0x498d2a
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0041bdd0
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00417aa0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00414e00
mov dword [ebp + 8], reloc.WSOCK32.dll_accept
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00414e00
mov eax, esi
call fcn.004b15ae
ret 0x10

Function at 0x498d53
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x57c8a7
call fcn.004b14d6
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00414a70
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x498db5
call fcn.0048581a
cmp eax, 1
jne 0x498db5
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0041bdd0
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00417aa0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00414e00
mov dword [ebp + 8], reloc.WSOCK32.dll_accept
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00414e00
mov eax, esi
call fcn.004b15ae
ret 0x14