joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467804
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x467816
add esp, 0xfffffff0
call fcn.004041d0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0042195c
mov eax, dword [0x4dc03c]
mov dword [eax + 4], ebx
mov dword [eax], 0x467ba8
mov eax, dword [0x4dc048]
mov dword [eax + 4], ebx
mov dword [eax], 0x467bb4
mov eax, ebx
call fcn.00467bc0
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4182bc]
call fcn.00403e7c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4182bc]
call fcn.00403e7c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4182bc]
call fcn.00403e7c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4182bc]
call fcn.00403e7c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4182bc]
call fcn.00403e7c
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x46304c
push eax
push 0
push 0
mov eax, dword [0x4dc1fc]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x427728]
call fcn.0042901c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x427728]
call fcn.0042901c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x427728]
call fcn.0042901c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00468038
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x467f08
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x467f08
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x467f08
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x467953
call fcn.00404228
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x467cec
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x467e97
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x467e78
mov dl, 1
mov eax, dword [0x41886c]
call fcn.00403e7c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404e8c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x467e67
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00458a40
test al, al
je 0x467e5a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x467ea8
lea eax, [ebp - 0x254]
call fcn.0040aa48
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x467e5a
xor eax, eax
push ebp
push 0x467e53
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x467ee0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x467e3c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004050fc
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x467e3c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004050fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467e5a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x467d5d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041cf48
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467e9e
lea eax, [ebp - 0x260]
call fcn.00404e8c
ret

Function at 0x468810
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4e1cb0]
cmp byte [eax + 0xad], 0
jne 0x468881
cmp dword [0x4e1ccc], 0
jne 0x468842
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4687cc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4e1ccc], eax
cmp dword [0x4e1cc8], 0
jne 0x46885d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4e1cc8], eax
cmp dword [0x4e1cd0], 0
jne 0x468881
push esp
push 0
push 0
push 0x468770
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4e1cd0], eax
pop edx
ret
Function at 0x468acc
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x468ae3
add esp, 0xfffffff0
call fcn.004041d0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0042195c
mov eax, dword [0x4dc1e0]
cmp word [eax + 2], 0
jne 0x468b0b
mov eax, dword [0x4dc1e0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046a82c
mov eax, dword [0x4dc2cc]
cmp word [eax + 2], 0
jne 0x468b25
mov eax, dword [0x4dc2cc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046aa38
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4182bc]
call fcn.00403e7c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4182bc]
call fcn.00403e7c
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x4182bc]
call fcn.00403e7c
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x4282d8]
call fcn.00430668
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x468cdc
mov eax, dword [0x4dc0b4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00430a3c
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x46b0fc
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4dc0b4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040e62c
test eax, eax
je 0x468c2c
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040a3ec
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040e660
test eax, eax
je 0x468c40
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004050fc
mov byte [ebx + 0xd4], 0
push ebx
push 0x46a2a0
call fcn.00422ad8
mov dword [ebx + 0xc8], eax
mov eax, dword [0x4dbf3c]
cmp byte [eax], 0
jne 0x468c91
mov eax, ebx
call fcn.00468e20
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0046b310
mov eax, ebx
call fcn.0046be74
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x468cd1
call fcn.00404228
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x469f9c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x46a006
mov eax, ebx
call fcn.0046c3d0
test al, al
jne 0x46a006
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404f7c
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x469ff3
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x46a013
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404ee0
jmp 0x46a013
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404ee0
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x46b4f4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46b562
mov eax, esi
call fcn.00453648
test al, al
je 0x46b562
mov eax, dword [ebx + 0x84]
call fcn.004532a8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46b562
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x46b556
push 0
mov eax, dword [ebx + 0x84]
call fcn.004532a8
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0044b08c
jmp 0x46b562
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0046b330
pop esi
pop ebx
ret
Function at 0x49d26c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, eax
push 0x40
push 0x1000
push pe_nt_image_headers32
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x49d2f6
xor edx, edx
push ebp
push 0x49d2d7
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov dword [eax], 0x448b5050
mov dword [eax + 4], 0x44890824
mov dword [eax + 8], 0x58b0424
lea edx, [ebx + 4]
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0x8244489
mov dword [eax + 0x14], 0x25ff9058
mov dword [eax + 0x18], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49d2f6
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x49e504
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405328
mov eax, dword [ebp - 8]
call fcn.00405328
xor eax, eax
push ebp
push 0x49e621
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov ebx, 0x14
mov dword [ebp - 0x24], 0x14
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x44], 3
mov dword [ebp - 0x3c], 2
mov eax, dword [ebp - 8]
call fcn.00405338
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], 3
mov eax, 0x49e634
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x14], eax
push 0
push 0
push 0
push 1
mov eax, dword [ebp - 4]
call fcn.00405338
push eax
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x49e606
xor eax, eax
push ebp
push 0x49e5ff
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
lea eax, [ebp - 0x24]
push eax
push 0x4b
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetSetOptionA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x49e5df
push 0
push 0
push 0x25
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetSetOptionA
test eax, eax
jne 0x49e5e3
xor eax, eax
jmp 0x49e5e5
mov al, 1
mov byte [ebp - 9], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49e606
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49e628
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404eb0
ret
Function at 0x4a1504
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 4], edx
mov esi, eax
xor ebx, ebx
mov eax, esi
call fcn.00453648
test al, al
je 0x4a15bd
mov byte [ebp - 9], 0
xor ebx, ebx
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 8], eax
jmp 0x4a159b
cmp word [esi + 0x642], 0
je 0x4a1555
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 9]
push eax
mov ecx, dword [ebp - 8]
mov edx, esi
mov eax, dword [esi + 0x644]
call dword [esi + 0x640]
cmp byte [ebp - 9], 0
jne 0x4a1572
cmp dword [ebp - 4], 0
jbe 0x4a156e
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
ja 0x4a1572
xor ebx, ebx
jmp 0x4a1574
mov bl, 1
test bl, bl
jne 0x4a15bd
mov eax, dword [0x4dc2a8]
mov eax, dword [eax]
cmp byte [eax + 0xa4], 0
jne 0x4a15bd
mov eax, dword [0x4dc2a8]
mov eax, dword [eax]
call fcn.0046a450
push 1
call sub.kernel32.dll_Sleep_2
test esi, esi
je 0x4a15bd
cmp byte [esi + 0x5ec], 0
jne 0x4a15bd
mov edx, 0xfffffdf3
mov eax, esi
call fcn.00470d98
cmp eax, 4
jne 0x4a1532
test bl, bl
sete al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a6bfc
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd44
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x29c], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405328
xor eax, eax
push ebp
push 0x4a6d46
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x198]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
xor ecx, ecx
push ebp
push 0x4a6d1e
push dword fs:[ecx]
mov dword fs:[ecx], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x298]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x298]
mov edx, dword [ebp - 4]
call fcn.0040a458
lea eax, [ebp - 0x298]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4a6d07
mov edx, dword [eax + 0xc]
test edx, edx
je 0x4a6d01
mov ebx, dword [edx]
test ebx, ebx
je 0x4a6cfb
lea eax, [ebp - 0x29c]
push eax
movzx eax, byte [ebx]
mov dword [ebp - 0x2bc], eax
mov byte [ebp - 0x2b8], 0
movzx eax, byte [ebx + 1]
mov dword [ebp - 0x2b4], eax
mov byte [ebp - 0x2b0], 0
movzx eax, byte [ebx + 2]
mov dword [ebp - 0x2ac], eax
mov byte [ebp - 0x2a8], 0
movzx eax, byte [ebx + 3]
mov dword [ebp - 0x2a4], eax
mov byte [ebp - 0x2a0], 0
lea edx, [ebp - 0x2bc]
mov ecx, 3
mov eax, 0x4a6d60
call fcn.0040aac8
mov edx, dword [ebp - 0x29c]
mov eax, esi
call fcn.00404ee0
mov byte [ebp - 5], 1
jmp 0x4a6d0b
mov byte [ebp - 5], 0
jmp 0x4a6d0b
mov byte [ebp - 5], 0
jmp 0x4a6d0b
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a6d25
call sub.wsock32.dll_WSACleanup
ret

Function at 0x4a6d6c
Capabilities:
Initialize winsock library

Disassembly:
add esp, 0xfffffe70
push esp
push 2
call sub.wsock32.dll_WSAStartup
add esp, 0x190
ret
Function at 0x4b448c
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
test dl, dl
je 0x4b44a5
add esp, 0xfffffff0
call fcn.004041d0
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x4b4563
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, ebx
call fcn.00403e7c
mov dword [ebx + 4], 0xffffffff
mov dword [ebx + 8], 0xffffffff
mov byte [ebx + 0xc], 0
cmp dword [ebx + 4], 0xffffffff
jne 0x4b44e7
push ebx
push 0x4b46f4
call fcn.00422ad8
mov dword [ebx + 4], eax
mov byte [ebx + 0xc], 0
push 0
push 2
push 2
call sub.ws2_32.dll_socket
mov esi, eax
mov dword [ebx + 8], esi
cmp esi, 0xffffffff
jne 0x4b4516
mov ecx, 0x4b4594
mov dl, 1
mov eax, dword [0x408524]
call fcn.0040d680
call fcn.004047e4
push 1
push 0x1a5a
mov eax, dword [ebx + 4]
push eax
mov eax, dword [ebx + 8]
push eax
call sub.ws2_32.dll_WSAAsyncSelect
test eax, eax
je 0x4b454d
cmp word [ebx + 0x1a], 0
je 0x4b454d
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 8]
call fcn.0040ce60
mov ecx, dword [ebp - 8]
mov edx, ebx
mov eax, dword [ebx + 0x1c]
call dword [ebx + 0x18]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b456a
lea eax, [ebp - 8]
call fcn.00404e8c
ret

Function at 0x4b45d8
Capabilities:
Print debug messages
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9a0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x660], edx
mov dword [ebp - 0x65c], edx
mov dword [ebp - 0x658], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4b46e7
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x640
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x654]
push eax
push 0
push ebx
lea eax, [ebp - 0x644]
push eax
mov eax, dword [esi + 8]
push eax
call sub.ws2_32.dll_recvfrom
mov ebx, eax
test ebx, ebx
jl 0x4b467f
cmp word [esi + 0x12], 0
je 0x4b46c9
push dword [ebp - 0x650]
call sub.ws2_32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x658]
call fcn.00405084
mov eax, dword [ebp - 0x658]
push eax
movzx eax, word [ebp - 0x652]
push eax
call sub.ws2_32.dll_ntohs
push eax
lea edx, [ebp - 0x644]
mov ecx, ebx
mov eax, dword [esi + 0x14]
call dword [esi + 0x10]
jmp 0x4b46c9
call sub.kernel32.dll_GetLastError
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x65c]
call fcn.00409a64
mov eax, dword [ebp - 0x65c]
call fcn.00405338
push eax
call sub.kernel32.dll_OutputDebugStringA
cmp word [esi + 0x1a], 0
je 0x4b46c9
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x660]
call fcn.0040ce60
mov ecx, dword [ebp - 0x660]
mov edx, esi
mov eax, dword [esi + 0x1c]
call dword [esi + 0x18]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b46ee
lea eax, [ebp - 0x660]
mov edx, 3
call fcn.00404eb0
ret
Function at 0x4b4768
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp + 0xc]
call fcn.00405328
xor eax, eax
push ebp
push 0x4b47db
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x10], 2
movzx eax, word [ebp + 8]
push eax
call sub.ws2_32.dll_htons
mov word [ebp - 0xe], ax
mov eax, dword [ebp + 0xc]
call fcn.00405338
push eax
call sub.ws2_32.dll_inet_addr
mov dword [ebp - 0xc], eax
push 0x10
lea eax, [ebp - 0x10]
push eax
push 0
push edi
push esi
mov eax, dword [ebx + 8]
push eax
call sub.ws2_32.dll_sendto
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b47e2
lea eax, [ebp + 0xc]
call fcn.00404e8c
ret
Function at 0x4b5280
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
mov dword [esp], ecx
mov ebp, edx
mov esi, eax
mov dword [esp + 8], 0x1000
mov dl, 1
mov eax, dword [0x418b70]
call fcn.00403e7c
mov dword [esp + 4], eax
or ebx, 0xffffffff
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
mov eax, dword [esi + 4]
call fcn.00405338
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4b5328
call sub.kernel32.dll_GetLastError
mov edi, eax
cmp edi, 0xe7
je 0x4b52fc
mov ecx, 0x4b5464
mov dl, 1
mov eax, dword [0x408524]
call fcn.0040d680
call fcn.004047e4
push 0xffffffffffffffff
mov eax, dword [esi + 4]
call fcn.00405338
push eax
call sub.kernel32.dll_WaitNamedPipeA
test eax, eax
jne 0x4b52b0
mov ecx, 0x4b547c
mov dl, 1
mov eax, dword [0x408524]
call fcn.0040d680
call fcn.004047e4
jmp 0x4b52b0
push 0
lea eax, [esp + 0xc]
push eax
push 4
lea eax, [esp + 0xc]
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x4b5439
push 0
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 8]
push eax
push ebp
push ebx
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x4b5439
call sub.kernel32.dll_GetLastError
mov edi, eax
cmp edi, 0xea
je 0x4b538d
test edi, edi
je 0x4b538d
mov ecx, 0x4b5494
mov dl, 1
mov eax, dword [0x408524]
call fcn.0040d680
call fcn.004047e4
jmp 0x4b5439
push 0
lea eax, [esp + 0xc]
push eax
push 4
lea eax, [esp + 0x18]
push eax
push ebx
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x4b5439
cmp dword [esp], 0
je 0x4b544c
mov eax, dword [esp + 4]
call fcn.0041d80c
mov dword [esp + 8], 0x1000
lea eax, [esp + 0x10]
xor ecx, ecx
mov edx, dword [esp + 8]
call fcn.004036b8
mov eax, dword [esp + 8]
cmp eax, dword [esp + 0xc]
jbe 0x4b53e5
mov eax, dword [esp + 0xc]
mov dword [esp + 8], eax
push 0
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
push ebx
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x4b5439
mov eax, dword [esp + 8]
sub dword [esp + 0xc], eax
lea edx, [esp + 0x10]
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
mov esi, dword [eax]
call dword [esi + 0x10]
mov dword [esp + 8], 0x1000
lea eax, [esp + 0x10]
xor ecx, ecx
mov edx, dword [esp + 8]
call fcn.004036b8
cmp dword [esp + 0xc], 0
je 0x4b5439
jmp 0x4b53d3
xor ecx, ecx
xor edx, edx
mov eax, dword [esp + 4]
mov esi, dword [eax]
call dword [esi + 0x14]
push ebx
call sub.kernel32.dll_CloseHandle
mov eax, dword [esp + 4]
add esp, 0x1010
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4b5ca0
Capabilities:
Create http request
Read data from internet
Receive data
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405328
xor eax, eax
push ebp
push 0x4b5e2b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404e8c
mov dword [ebp - 0x1c], 0x7d0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0xc]
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004b5b00
push 0
push 0x4b5e3c
push 0x4b5e3c
push 0
push 0x4b5e40
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x10], eax
push 0
push 0x80000000
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405338
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov dword [ebp - 0x18], eax
xor edx, edx
push ebp
push 0x4b5e09
push dword fs:[edx]
mov dword fs:[edx], esp
push 4
lea eax, [ebp - 0x1c]
push eax
push 2
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetSetOptionA
push 4
lea eax, [ebp - 0x1c]
push eax
push 8
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetSetOptionA
mov eax, 0x400
call fcn.00402f44
mov dword [ebp - 0x24], eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x418bec]
call fcn.0041d9d4
mov ebx, eax
lea eax, [ebp - 0x28]
push eax
push 0x401
lea eax, [ebp - 0x429]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x4b5dac
cmp dword [ebp - 0x28], 0
je 0x4b5dac
lea edx, [ebp - 0x429]
mov ecx, dword [ebp - 0x28]
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x10]
jmp 0x4b5d77
mov eax, esi
mov edx, dword [ebx + 4]
call fcn.00404ee0
mov eax, ebx
call fcn.00403eac
mov eax, dword [ebp - 0x24]
call fcn.00402f60
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b5e10
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x18]
push eax
call sub.wininet.dll_InternetCloseHandle
ret