joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008640
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [esi + 4]
push edi
push eax
mov edi, ebx
call fcn.100085c0
mov dword [esi + 4], eax
add eax, 5
push eax
call fcn.10015ca0
mov edx, dword [esi + 4]
add esp, 8
lea ecx, [ebp - 8]
push ecx
push 0x40
add edx, 5
mov edi, eax
push edx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esi + 4]
push eax
push ebx
push edi
call fcn.10016ad0
mov ecx, dword [esi + 4]
mov byte [edi + ecx], 0xe9
mov eax, dword [esi + 4]
mov edx, ebx
sub edx, edi
sub edx, 5
mov dword [edi + eax + 1], edx
mov eax, dword [ebp + 8]
add esp, 0xc
sub eax, ebx
sub eax, 5
mov dword [ebp - 7], eax
mov dl, byte [ebp - 4]
mov byte [ebp - 8], 0xe9
mov ecx, dword [ebp - 8]
mov dword [ebx], ecx
mov byte [ebx + 4], dl
mov dword [esi], edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10009130
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003ff64
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x10052670]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x80], ebx
mov dword [ebp - 4], 1
cmp dword [ebp + 0x20], 0x10
mov eax, dword [ebp + 0xc]
mov byte [ebp - 0x7c], bl
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], 0x67452301
mov dword [ebp - 0x2c], 0xefcdab89
mov dword [ebp - 0x28], 0x98badcfe
mov dword [ebp - 0x24], 0x10325476
jae 0x1000919d
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x1c]
lea esi, [ebp - 0x7c]
call fcn.10008e80
mov ecx, esi
call fcn.10008f30
mov eax, esi
push eax
mov esi, edi
call fcn.10009010
mov byte [ebp - 4], bl
cmp dword [ebp + 0x20], 0x10
mov dword [ebp - 0x80], 1
jb 0x100091d6
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10014850
add esp, 4
lea ecx, [ebp + 8]
mov dword [ebp + 0x20], 0xf
mov dword [ebp + 0x1c], ebx
mov byte [ebp + 0xc], bl
call fcn.10005280
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000ecf0
mov esp, ebp
pop ebp
ret
Function at 0x1000ecf0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10052670]
jne 0x1000ecfa
repz ret
jmp fcn.1001b450
Function at 0x1003c7b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.1003c960
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1003c87d
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1003c7fa
mov eax, dword [ebp - 4]
cmp eax, dword [0x10052004]
ja 0x1003c7fa
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1003c7ca
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10016e40
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1003c820
jmp 0x1003c87d
cmp dword [ebp - 0x14], 0x10000
jne 0x1003c863
cmp dword [ebp - 0x18], 0x10000
jb 0x1003c863
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1003c856
mov eax, dword [ebp - 8]
jmp 0x1003c87f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1003c878
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1003c960
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1003c7ca
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1003c890
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1003c990
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1003c955
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1003c8d5
mov eax, dword [ebp - 4]
cmp eax, dword [0x10052004]
ja 0x1003c8d5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1003c8a5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10016e40
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1003c8fb
jmp 0x1003c955
cmp dword [ebp - 0x14], 0x10000
jne 0x1003c93e
cmp dword [ebp - 0x18], 0x10000
jb 0x1003c93e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1003c931
mov eax, dword [ebp - 8]
jmp 0x1003c957
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1003c950
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1003c990
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1003c8a5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1003dd60
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x100539f0], eax
je 0x1003dd7e
mov eax, 0x10dd
jmp 0x1003de5f
mov eax, dword [0x10053a00]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1003ddfc
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1003ddda
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1003ddda
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.1003ce10
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.10014850
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x1003dd86
mov dword [0x10053a00], 0
call fcn.1003d6f0
mov ecx, dword [0x100539fc]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1003de49
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10014850
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x1003de14
mov dword [0x100539fc], 0
mov dword [0x100539f0], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1003e340
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x100539f4], 0
je 0x1003e359
mov eax, dword [0x100539f4]
jmp 0x1003e3f9
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x1003e36b
xor eax, eax
jmp 0x1003e3f9
push 8
call fcn.10015ca0
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1003e3c1
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1003e3aa
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.10014850
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x100539f4], eax
mov dword [0x100539f8], 0
mov eax, dword [ebp - 8]
jmp 0x1003e3f9
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1003e3db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x1003e38b
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x100539fc]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x100539fc], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x4fba00
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x4fba95
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, dword [ebx + 0x478]
call fcn.0046a720
mov eax, dword [ebp - 4]
call fcn.00404d1c
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
jne 0x4fba4b
mov edx, 0x4fbaac
mov eax, dword [ebx + 0x480]
call fcn.0046a750
jmp 0x4fba77
mov esi, dword [eax + 0xc]
mov eax, dword [esi]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
lea edx, [ebp - 8]
call fcn.00409f9c
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x480]
call fcn.0046a750
mov eax, 0x4fb98c
call fcn.004ab93c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fba9c
lea eax, [ebp - 8]
call fcn.0040485c
lea eax, [ebp - 4]
call fcn.0040485c
ret

Function at 0x5093a4
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd40
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00404d0c
xor eax, eax
push ebp
push 0x509506
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x2c0]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x5093fb
xor ebx, ebx
jmp 0x5094f0
mov word [ebp - 0xc], 1
mov word [ebp - 0xa], 0
push 4
lea eax, [ebp - 0xc]
push eax
push 0x80
push 0xffff
push ebx
call sub.wsock32.dll_setsockopt
mov dword [ebp - 0x1c], 0x1388
push 4
lea eax, [ebp - 0x1c]
push eax
push 0x1006
push 0xffff
push ebx
call sub.wsock32.dll_setsockopt
mov eax, dword [ebp - 4]
call fcn.00509fe8
mov dword [ebp - 0x28], eax
mov word [ebp - 0x2c], 2
push edi
call sub.wsock32.dll_htons
mov word [ebp - 0x2a], ax
mov dword [ebp - 0x10], 1
lea eax, [ebp - 0x10]
push eax
push 0x8004667e
push ebx
call sub.wsock32.dll_ioctlsocket
push 0x10
lea eax, [ebp - 0x2c]
push eax
push ebx
call sub.wsock32.dll_connect
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x5094ee
lea eax, [ebp - 0x130]
call fcn.0048bf40
lea edx, [ebp - 0x130]
mov eax, ebx
call fcn.0048bf30
mov eax, esi
mov ecx, 0x3e8
cdq
idiv ecx
mov dword [ebp - 0x18], eax
mov eax, esi
mov ecx, 0x3e8
cdq
idiv ecx
imul eax, edx, 0x3e8
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x130]
push eax
push 0
push 0
call sub.wsock32.dll_select
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0x8004667e
push ebx
call sub.wsock32.dll_ioctlsocket
mov eax, dword [ebp - 8]
mov dword [eax], ebx
mov bl, 1
jmp 0x5094f0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50950d
lea eax, [ebp - 4]
call fcn.0040485c
ret
Function at 0x509670
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffe0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x1020], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov esi, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d0c
xor eax, eax
push ebp
push 0x50982c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040485c
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00509518
push 0x509844
push dword [ebp - 0x10]
push 0x509854
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404bdc
lea eax, [ebp - 8]
mov edx, 0x509868
call fcn.00404b24
lea eax, [ebp - 8]
mov edx, 0x509880
call fcn.00404b24
push dword [ebp - 8]
push 0x5098ac
push dword [ebp - 4]
push 0x5098c0
lea eax, [ebp - 8]
mov edx, 4
call fcn.00404bdc
lea eax, [ebp - 8]
mov edx, 0x5098cc
call fcn.00404b24
push dword [ebp - 8]
push 0x5098f0
push dword [ebp - 0xc]
push 0x5098c0
lea eax, [ebp - 8]
mov edx, 4
call fcn.00404bdc
lea eax, [ebp - 8]
mov edx, 0x509900
call fcn.00404b24
lea eax, [ebp - 8]
mov edx, 0x509924
call fcn.00404b24
xor eax, eax
push ebp
push 0x5097ff
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x1388
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.005093a4
test al, al
je 0x5097e8
push 4
mov eax, dword [ebp - 8]
call fcn.00404b1c
push eax
lea eax, [ebp - 8]
call fcn.00404d74
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.wsock32.dll_send
push 0
push 0x400
lea eax, [ebp - 0x1019]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.wsock32.dll_recv
mov ebx, eax
cmp ebx, 0xffffffff
je 0x5097e8
mov byte [ebp + ebx - 0x1019], 0
lea eax, [ebp - 0x1020]
lea edx, [ebp - 0x1019]
mov ecx, 0x1001
call fcn.00404acc
mov edx, dword [ebp - 0x1020]
mov eax, esi
call fcn.00404b24
test ebx, ebx
jne 0x50979b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x509806
mov eax, dword [ebp - 0x18]
push eax
call sub.wsock32.dll_closesocket
ret
Function at 0x50996c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d0c
xor eax, eax
push ebp
push 0x509a1f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404b1c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
call fcn.00404b1c
mov esi, eax
test esi, esi
jle 0x5099f1
mov edi, 1
lea eax, [ebp - 0x14]
mov edx, 0x509a38
mov bl, byte [edx + edi - 1]
mov edx, ebx
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + edi - 1]
xor dl, cl
and edx, 0xff
xor ecx, ecx
mov cl, bl
sub ecx, dword [ebp - 0xc]
xor edx, ecx
call fcn.00404a44
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
call fcn.00404b24
inc edi
dec esi
jne 0x5099b7
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.004048b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x509a26
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404880
lea eax, [ebp - 4]
call fcn.0040485c
ret

Function at 0x509a54
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d0c
xor eax, eax
push ebp
push 0x509b07
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404b1c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
call fcn.00404b1c
mov esi, eax
test esi, esi
jle 0x509ad9
mov edi, 1
lea eax, [ebp - 0x14]
mov edx, 0x509b20
mov bl, byte [edx + edi - 1]
mov edx, ebx
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + edi - 1]
xor dl, cl
and edx, 0xff
xor ecx, ecx
mov cl, bl
sub ecx, dword [ebp - 0xc]
xor edx, ecx
call fcn.00404a44
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
call fcn.00404b24
inc edi
dec esi
jne 0x509a9f
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.004048b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x509b0e
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404880
lea eax, [ebp - 4]
call fcn.0040485c
ret
Function at 0x509d84
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 8
add esp, 0xfffff004
push eax
dec eax
jne 0x509d8d
mov eax, dword [ebp - 4]
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
push 0
push 0
push 0
push 0
push 0x509f04
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x509efc
xor eax, eax
push ebp
push 0x509ef5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 0
mov eax, edi
call fcn.00404d1c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov dword [ebp - 4], eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x41c2b8]
call fcn.00420fec
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0x8000
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x8018]
push eax
push 0x16
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_HttpQueryInfoA
test bl, bl
je 0x509e3b
lea edx, [ebp - 0x8018]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0x10]
cmp dword [ebp - 4], 0
je 0x509ede
xor eax, eax
push ebp
push 0x509ed7
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x509eb9
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x509e74
lea edx, [ebp - 0x8018]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0x10]
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x8018]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x509e96
cmp dword [ebp - 0xc], 0
ja 0x509e63
mov eax, esi
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 4]
call fcn.004048b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x509ec0
mov eax, dword [ebp - 0x14]
call fcn.00403968
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x509efc
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x509f38
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x509fd6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xff
mov eax, dword [ebp - 0xc]
call fcn.00402830
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x509fae
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
jne 0x509f8d
mov eax, 0x509fe4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.00404a54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x509fb5
mov eax, dword [ebp - 8]
call fcn.00402850
ret
Function at 0x509fe8
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d0c
xor eax, eax
push ebp
push 0x50a051
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404d1c
mov ebx, eax
push ebx
call sub.wsock32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x50a033
push ebx
call sub.wsock32.dll_gethostbyname
test eax, eax
jne 0x50a02a
or ebx, 0xffffffff
jmp 0x50a03b
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ebx, dword [eax]
jmp 0x50a03b
push ebx
call sub.wsock32.dll_inet_addr
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50a058
lea eax, [ebp - 4]
call fcn.0040485c
ret

Function at 0x50aca8
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 8
add esp, 0xfffff004
push eax
dec eax
jne 0x50acb1
mov eax, dword [ebp - 4]
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
push 0
push 0
push 0
push 0
push 0x50ae28
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x50ae20
xor eax, eax
push ebp
push 0x50ae19
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 0
mov eax, edi
call fcn.00404d1c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov dword [ebp - 4], eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x41c2b8]
call fcn.00420fec
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0x8000
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x8018]
push eax
push 0x16
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_HttpQueryInfoA
test bl, bl
je 0x50ad5f
lea edx, [ebp - 0x8018]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0x10]
cmp dword [ebp - 4], 0
je 0x50ae02
xor eax, eax
push ebp
push 0x50adfb
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x50addd
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x50ad98
lea edx, [ebp - 0x8018]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0x10]
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x8018]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x50adba
cmp dword [ebp - 0xc], 0
ja 0x50ad87
mov eax, esi
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 4]
call fcn.004048b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push fcn.0050ade4
mov eax, dword [ebp - 0x14]
call fcn.00403968
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50ae20
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50b8a0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbdc
xor ecx, ecx
mov dword [ebp - 0x424], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d0c
xor eax, eax
push ebp
push 0x50ba7e
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x50ba56
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xffffffff
xor eax, eax
mov dword [ebp - 0x20], eax
push 0
push 0
push 0
push 0
push 0x50ba8c
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x50b91e
call sub.kernel32.dll_GetLastError_1
neg eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
push 4
lea eax, [ebp - 8]
push eax
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetSetOptionA
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404d1c
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x50b978
call sub.kernel32.dll_GetLastError_1
neg eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
call fcn.004042a4
jmp 0x50ba5d
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x400
lea eax, [ebp - 0x420]
xor ecx, ecx
mov edx, dword [ebp - 0x18]
call fcn.00403188
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x420]
push eax
push 5
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpQueryInfoA
test eax, eax
je 0x50b9d8
lea eax, [ebp - 0x424]
lea edx, [ebp - 0x420]
mov ecx, 0x400
call fcn.0040494c
mov eax, dword [ebp - 0x424]
call fcn.0040963c
mov dword [ebp - 0xc], eax
jmp 0x50ba36
xor eax, eax
push ebp
push 0x50ba2f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x420]
xor ecx, ecx
mov edx, dword [ebp - 0x18]
call fcn.00403188
lea eax, [ebp - 0x1c]
push eax
push 0x400
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetReadFile
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x50b9e6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50ba36
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50ba5d
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
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 0x50ba85
lea eax, [ebp - 0x424]
call fcn.0040485c
lea eax, [ebp - 4]
call fcn.0040485c
ret