joyce8/EMBER2024-capa huggingface dataset:
Function at 0x106ecc1
Capabilities:
Create tcp socket
Create udp socket
Get hostname
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x111121c]
push esi
push 0
push 1
push 2
mov dword [ebp - 4], eax
mov esi, ecx
mov dword [ebp - 0x11c], 0x81000301
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov dword [esi + 0x2c], eax
je 0x106ee44
push ebx
mov ebx, dword [ebp + 8]
cmp ebx, 0xffffffff
jne 0x106ed2d
push 0x104
lea eax, [ebp - 0x108]
push eax
call sub.WSOCK32.dll_gethostname
lea eax, [ebp - 0x108]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x106ed2b
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ebx, dword [eax]
jmp 0x106ed2d
xor ebx, ebx
push edi
xor eax, eax
lea edi, [ebp - 0x118]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x1aeb
mov word [ebp - 0x118], 2
mov word [esi + 0x38], 0x1aeb
call sub.WSOCK32.dll_htons
push 0x3b
push 0x428
push dword [esi + 0x10]
mov word [ebp - 0x116], ax
push dword [esi + 0x2c]
mov dword [ebp - 0x114], ebx
call sub.WSOCK32.dll_WSAAsyncSelect
test eax, eax
jne 0x106ee42
jmp 0x106ed9a
xor eax, eax
mov ax, word [esi + 0x38]
cmp ax, 0x1af5
ja 0x106edaf
inc eax
push eax
mov word [esi + 0x38], ax
call sub.WSOCK32.dll_htons
mov word [ebp - 0x116], ax
push 0x10
lea eax, [ebp - 0x118]
push eax
push dword [esi + 0x2c]
call sub.WSOCK32.dll_bind
test eax, eax
jne 0x106ed7c
xor edi, edi
cmp dword [esi + 0x30], edi
je 0x106ee1f
push dword [ebp - 0x116]
call sub.WSOCK32.dll_ntohs
push ebx
mov dword [ebp - 0x124], eax
call sub.WSOCK32.dll_inet_ntoa
push eax
lea ecx, [ebp - 0x120]
call fcn.010384b1
push 1
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x116]
call sub.WSOCK32.dll_ntohs
lea ecx, [esi + 0xe70]
push eax
push dword [ebp - 0x120]
call fcn.0106d85d
push dword [ebp - 0x120]
mov dword [ebp - 0x11c], eax
mov ax, word [ebp - 0x124]
mov word [esi + 0xedc], ax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 5
push dword [esi + 0x2c]
call sub.WSOCK32.dll_listen
test eax, eax
jne 0x106ee3e
push 9
mov ecx, esi
call fcn.0106da65
mov dword [ebp - 0x11c], edi
jmp 0x106ee42
mov word [esi + 0x38], di
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x11c]
pop esi
call fcn.0105eca9
leave
ret 4
Function at 0x106eee0
Capabilities:
Send data
Send data on socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov ebx, ecx
xor esi, esi
cmp dword [ebx + 0x2c], 0xffffffff
push edi
mov dword [ebp - 8], esi
je 0x106f00d
cmp byte [ebp + 0x10], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov edi, ecx
mov dword [ebx + 0x668], esi
je 0x106ef6b
mov eax, dword [ebx + 0xee4]
cmp eax, esi
mov dword [ebp - 0xc], eax
jbe 0x106ef6b
cmp ecx, esi
jbe 0x106ef5c
push eax
add eax, ecx
lea edi, [ebx + 0xee0]
push eax
mov ecx, edi
call fcn.0106ee5c
test al, al
jne 0x106ef40
xor eax, eax
jmp 0x106f00f
mov edi, dword [edi]
mov ecx, dword [ebp + 8]
add edi, dword [ebp - 0xc]
mov esi, dword [ebp + 0xc]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 8]
mov eax, dword [ebx + 0xee0]
mov edi, dword [ebx + 0xee4]
mov dword [ebp - 4], eax
test edi, edi
jbe 0x106efa6
push 0
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebp - 4]
add eax, esi
push eax
push dword [ebx + 0x2c]
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
je 0x106ef9b
and dword [ebx + 0x668], 0
add esi, eax
cmp esi, edi
mov dword [ebp - 8], esi
jb 0x106ef6f
jmp 0x106efa6
call sub.WSOCK32.dll_WSAGetLastError
mov dword [ebx + 0x668], eax
cmp esi, edi
jne 0x106efbb
push 0xffffffffffffffff
push 0
lea ecx, [ebx + 0xee0]
call fcn.0106ee5c
jmp 0x106f00d
cmp byte [ebp + 0x10], 0
je 0x106f00d
xor eax, eax
cmp dword [ebx + 0xee4], eax
jbe 0x106efde
cmp esi, eax
jbe 0x106f00d
push esi
push eax
lea ecx, [ebx + 0xee0]
call fcn.0106e948
jmp 0x106f00d
push eax
sub edi, esi
add ebx, 0xee0
push edi
mov ecx, ebx
call fcn.0106ee5c
test al, al
je 0x106f00d
mov eax, dword [ebp - 4]
mov ecx, edi
mov edi, dword [ebx]
add esi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x106f5e3
Capabilities:
Create tcp socket
Create udp socket
Send data
Send data on socket
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x111121c]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x3c]
push eax
mov esi, ecx
mov dword [ebp - 0x28], 1
call fcn.0106f5be
push dword [ebp + 0xc]
mov byte [ebp - 0x3b], 4
call sub.WSOCK32.dll_htonl
push 0
push 2
push 2
mov dword [ebp + 0xc], eax
call sub.WSOCK32.dll_socket
mov edi, eax
or ebx, 0xffffffff
cmp edi, ebx
je 0x106f6a3
push 4
lea eax, [ebp - 0x28]
push eax
push 4
push 0xffff
push edi
call sub.WSOCK32.dll_setsockopt
cmp eax, ebx
je 0x106f6a3
mov eax, dword [esi + 0x160]
push dword [ebp + 8]
mov word [ebp - 0x14], 2
mov dword [ebp - 0x10], eax
call sub.WSOCK32.dll_htons
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
push edi
call sub.WSOCK32.dll_bind
cmp eax, ebx
jne 0x106f674
call sub.WSOCK32.dll_WSAGetLastError
jmp 0x106f6a3
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov ax, word [esi + 0x14c]
push 0x10
mov word [ebp - 0x22], ax
lea eax, [ebp - 0x24]
push eax
push 0
push 0x14
lea eax, [ebp - 0x3c]
push eax
push edi
mov word [ebp - 0x24], 2
call sub.WSOCK32.dll_sendto
cmp eax, ebx
jne 0x106f6a7
mov eax, ebx
jmp 0x106f6af
push edi
call sub.WSOCK32.dll_closesocket
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0105eca9
leave
ret 8

Function at 0x106fb8e
Capabilities:
Get local ipv4 addresses
Get socket information
Send data
Send data on socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea eax, [esi + 0xd4]
push eax
call fcn.0106f5be
or ebx, 0xffffffff
xor edi, edi
cmp dword [esi + 0x110], ebx
jne 0x106fbeb
push edi
push 2
push 2
call sub.WSOCK32.dll_socket
cmp eax, ebx
mov dword [esi + 0x110], eax
je 0x106fc2e
lea ecx, [esi + 0x11c]
push 0x10
push ecx
push eax
mov word [ecx], 2
mov word [esi + 0x11e], di
mov dword [esi + 0x120], edi
call sub.WSOCK32.dll_bind
cmp eax, ebx
je 0x106fc2e
push 0x10
lea eax, [esi + 0x12c]
push eax
push edi
push 0x14
lea eax, [esi + 0xd4]
push eax
push dword [esi + 0x110]
call sub.WSOCK32.dll_sendto
cmp eax, ebx
je 0x106fc2e
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0x11c]
push eax
push dword [esi + 0x110]
mov dword [ebp - 4], 0x10
call sub.WSOCK32.dll_getsockname
cmp eax, ebx
jne 0x106fc4f
call sub.WSOCK32.dll_WSAGetLastError
test eax, eax
jg 0x106fc3e
call sub.WSOCK32.dll_WSAGetLastError
jmp 0x106fc73
call sub.WSOCK32.dll_WSAGetLastError
and eax, 0xffff
or eax, 0x80070000
jmp 0x106fc73
xor edx, edx
lea ecx, [esi + 0x120]
inc edx
cmp dword [ecx], edi
jne 0x106fc6e
mov eax, dword [esi + 0x15c]
mov ebx, dword [eax]
mov dword [ecx], ebx
cmp dword [eax + 4], edi
je 0x106fc6e
mov dword [esi + 0x38], edx
mov dword [esi + 0x28], edx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x106fc7d
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x111121c]
push esi
mov esi, ecx
push dword [esi + 0x110]
mov dword [ebp - 4], eax
call fcn.0106f2c5
test eax, eax
jne 0x106fce0
mov eax, dword [esi + 0x2c]
cmp eax, 4
lea ecx, [eax + 1]
mov dword [esi + 0x2c], ecx
jb 0x106fcc8
mov dword [esi + 0x30], 1
mov dword [esi + 0x180], 6
mov eax, 0x800705b4
jmp 0x106fe27
cmp ecx, 2
jne 0x106fcd9
mov ecx, esi
call fcn.0106fb8e
jmp 0x106fe27
xor eax, eax
jmp 0x106fe27
push edi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
xor edi, edi
push edi
push 0x14
lea eax, [esi + 0xd4]
push eax
push dword [esi + 0x110]
mov dword [ebp - 0x18], 0x10
call sub.WSOCK32.dll_recvfrom
cmp eax, 0xffffffff
jne 0x106fd13
or eax, eax
jmp 0x106fe26
cmp dword [esi + 0x38], edi
push ebx
mov dword [esi + 0x28], 2
je 0x106fdde
mov ecx, dword [esi + 0x15c]
cmp dword [ecx], edi
je 0x106fd4d
mov edx, dword [esi + 0xd8]
xor eax, eax
cmp dword [eax + ecx], edx
je 0x106fdf0
mov ebx, dword [esi + 0x15c]
add eax, 4
cmp dword [eax + ebx], edi
jne 0x106fd36
mov eax, dword [esi + 0xd8]
mov bx, word [esi + 0xdc]
mov cx, word [esi + 0xde]
mov dword [esi + 0x158], eax
mov ax, word [esi + 0xd6]
mov word [esi + 0x156], ax
mov eax, dword [esi + 0xe0]
xor edi, edi
push 3
mov dword [esi + 0x150], eax
mov dword [esi + 0x140], eax
inc edi
mov word [esi + 0x14c], bx
mov bx, word [esi + 0x11e]
xor eax, eax
cmp dword [esi + 0x16c], eax
pop edx
mov dword [esi + 0x180], edx
mov dword [esi + 0x30], edi
mov word [esi + 0x14e], cx
mov word [esi + 0x154], bx
mov word [esi + 0x13c], 2
mov word [esi + 0x13e], cx
je 0x106fe09
mov dword [esi + 0x180], edx
mov dword [0x1113c3c], eax
mov eax, 0x80004005
jmp 0x106fe25
mov eax, dword [esi + 0x120]
cmp eax, dword [esi + 0xd8]
jne 0x106fd4d
mov dword [esi + 0x30], edi
mov dword [esi + 0x17c], 6
mov dword [esi + 0x180], 1
jmp 0x106fe23
cmp dword [esi + 0x168], eax
je 0x106fe23
push 4
pop eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x180], eax
mov dword [0x1113c3c], edi
xor eax, eax
pop ebx
pop edi
mov ecx, dword [ebp - 4]
pop esi
call fcn.0105eca9
leave
ret
Function at 0x106fe37
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x111121c]
push ebx
push esi
mov esi, ecx
push dword [esi + 0x110]
mov dword [ebp - 4], eax
xor ebx, ebx
call fcn.0106f2c5
test eax, eax
jne 0x106fe88
mov eax, dword [esi + 0x2c]
cmp eax, 4
lea ecx, [eax + 1]
mov dword [esi + 0x2c], ecx
jb 0x106fe76
mov dword [esi + 0x28], 5
jmp 0x106ff1b
cmp ecx, 2
jne 0x106ff1b
mov ecx, esi
call fcn.0106f31d
jmp 0x106fec0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x14
lea eax, [esi + 0xd4]
push eax
push dword [esi + 0x110]
mov dword [ebp - 0x18], 0x10
call sub.WSOCK32.dll_recvfrom
cmp eax, 0xffffffff
jne 0x106fed9
call sub.WSOCK32.dll_WSAGetLastError
test eax, eax
jg 0x106fec4
call sub.WSOCK32.dll_WSAGetLastError
mov ebx, eax
jmp 0x106ff1b
call sub.WSOCK32.dll_WSAGetLastError
mov ebx, eax
and ebx, 0xffff
or ebx, 0x80070000
jmp 0x106ff1b
mov ecx, esi
call fcn.0106f6f5
mov ebx, eax
test ebx, ebx
jge 0x106fef2
mov dword [esi + 0x180], 2
jmp 0x106ff1b
push edi
push 4
pop edi
mov dword [esi + 0x180], edi
mov dword [0x1113c3c], 1
mov eax, dword [esi + 0x110]
cmp eax, 0xffffffff
je 0x106ff17
push eax
call sub.WSOCK32.dll_closesocket
mov dword [esi + 0x28], edi
pop edi
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
pop ebx
call fcn.0105eca9
leave
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x111121c]
push ebx
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, ecx
push dword [esi + 0x110]
stosd dword es:[edi], eax
xor ebx, ebx
stosd dword es:[edi], eax
call fcn.0106f2c5
test eax, eax
jne 0x107000e
mov eax, dword [esi + 0x2c]
cmp eax, 4
lea ecx, [eax + 1]
mov dword [esi + 0x2c], ecx
jb 0x106fffc
mov dword [esi + 0x180], 5
mov ebx, 0x800705b4
jmp 0x10700de
cmp ecx, 2
jne 0x10700de
mov ecx, esi
call fcn.0106ff2e
jmp 0x1070043
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x14
lea eax, [ebp - 0x2c]
push eax
push dword [esi + 0x110]
mov dword [ebp - 0x18], 0x10
call sub.WSOCK32.dll_recvfrom
cmp eax, 0xffffffff
jne 0x107005f
call sub.WSOCK32.dll_WSAGetLastError
test eax, eax
jg 0x107004a
call sub.WSOCK32.dll_WSAGetLastError
mov ebx, eax
jmp 0x10700de
call sub.WSOCK32.dll_WSAGetLastError
mov ebx, eax
and ebx, 0xffff
or ebx, 0x80070000
jmp 0x10700de
mov eax, dword [ebp - 0x28]
cmp eax, dword [esi + 0x158]
jne 0x10700ad
mov ax, word [ebp - 0x2a]
cmp ax, word [esi + 0x156]
jne 0x10700ad
mov ecx, esi
call fcn.0106f6f5
mov ebx, eax
test ebx, ebx
jge 0x1070090
mov dword [esi + 0x180], 2
jmp 0x10700de
mov dword [esi + 0x28], 7
mov dword [esi + 0x180], 4
mov dword [0x1113c3c], 1
jmp 0x10700c6
mov dword [esi + 0x17c], 7
mov dword [esi + 0x180], 5
mov ebx, 0x800705b4
mov eax, dword [esi + 0x110]
cmp eax, 0xffffffff
je 0x10700de
push eax
call sub.WSOCK32.dll_closesocket
or dword [esi + 0x110], 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
pop ebx
call fcn.0105eca9
leave
ret
Function at 0x1070182
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov ebx, ecx
xor eax, eax
lea esi, [ebx + 0xd4]
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push dword [ebx + 0x114]
call fcn.0106f2c5
test eax, eax
je 0x10701ee
push 0
push 0x14
push esi
push dword [ebx + 0x114]
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
je 0x1070212
push dword [ebx + 0xd8]
mov dword [ebp - 4], 1
call sub.WSOCK32.dll_ntohl
mov dword [ebx + 0x4c], eax
xor eax, eax
mov ax, word [ebx + 0xd6]
push eax
call sub.WSOCK32.dll_ntohs
mov word [ebx + 0x50], ax
lea edi, [ebx + 0x118]
push dword [edi]
mov ecx, ebx
call fcn.0106f2c5
test eax, eax
je 0x1070242
push 0
push 0x14
push esi
push dword [edi]
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
jne 0x107021a
or eax, 0xffffffff
jmp 0x10702c1
push dword [ebx + 0xd8]
mov dword [ebp - 4], 1
call sub.WSOCK32.dll_ntohl
mov dword [ebx + 0x70], eax
xor eax, eax
mov ax, word [ebx + 0xd6]
push eax
call sub.WSOCK32.dll_ntohs
mov word [ebx + 0x74], ax
cmp dword [ebp - 4], 0
jne 0x107026a
inc dword [ebx + 0x2c]
mov eax, dword [ebx + 0x2c]
cmp eax, 2
jne 0x107025c
mov ecx, ebx
call fcn.010700f2
jmp 0x10702c1
push 4
pop ecx
cmp ecx, eax
sbb eax, eax
and eax, 0x80004005
jmp 0x10702c1
mov ax, word [ebx + 0x50]
test ax, ax
je 0x10702bf
mov cx, word [ebx + 0x74]
test cx, cx
je 0x10702bf
movzx eax, ax
push 2
cdq
pop esi
idiv esi
test edx, edx
je 0x10702b8
movzx eax, cx
push esi
cdq
pop ecx
idiv ecx
test edx, edx
jne 0x10702b8
push 9
pop ecx
lea eax, [ebx + 0x3c]
push 9
mov esi, eax
lea edi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
lea edx, [ebx + 0x60]
pop ecx
mov esi, edx
mov edi, eax
rep movsd dword es:[edi], dword [esi]
push 9
pop ecx
lea esi, [ebp - 0x28]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x28], 0xb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x107170a
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x34], 7
mov dword [ebp - 4], edi
jne 0x1071924
cmp dword [esi + 0x1708], 0xffffffff
jne 0x107174f
mov eax, dword [ebp + 8]
push edi
push eax
mov dword [esi + 0x1708], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x1704], eax
mov dword [esi + 0x1700], 1
cmp dword [esi + 0x170c], edi
jne 0x1071768
push 0x800
call fcn.0105f04e
pop ecx
mov dword [esi + 0x170c], eax
cmp dword [esi + 0x170c], edi
push ebx
je 0x10718e2
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
lea ebx, [esi + 0x1710]
cmp dword [ebx], 0
jne 0x10717f5
mov eax, dword [esi + 0x170c]
push 0
push ebx
push 0x7fd
add eax, 3
push eax
push dword [esi + 0x1708]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x107189e
cmp dword [ebx], 0
je 0x107189e
mov eax, dword [esi + 0x170c]
xor edi, edi
inc edi
cmp dword [esi + 0x1714], 0
je 0x10717d2
mov byte [eax], 1
mov dword [ebp - 0x10], edi
jmp 0x10717d5
mov byte [eax], 0
mov eax, dword [esi + 0x170c]
mov cl, byte [ebx]
mov byte [eax + 1], cl
mov eax, dword [ebx]
mov ecx, dword [esi + 0x170c]
shr eax, 8
mov byte [ecx + 2], al
add dword [esi + 0x1704], 3
mov eax, dword [ebx]
push 0
push dword [esi + 0x170c]
add eax, 3
push eax
mov ecx, esi
call fcn.0106eee0
test eax, eax
je 0x107181b
sub dword [esi + 0x1704], eax
mov ecx, eax
mov dword [ebp - 8], ecx
jmp 0x107181e
mov ecx, dword [ebp - 8]
mov eax, dword [esi + 0x668]
cmp eax, 0x2733
jne 0x1071838
and dword [ebp - 4], 0
mov dword [ebp - 0xc], 1
jmp 0x1071849
test eax, eax
je 0x1071843
mov dword [ebp - 4], 0x80004005
cmp dword [ebp - 4], 0
jl 0x107187e
mov edx, dword [ebx]
lea eax, [edx + 3]
cmp ecx, eax
je 0x107187e
jae 0x1071881
mov eax, dword [esi + 0x170c]
neg edi
sbb edi, edi
and edi, 3
sub edi, ecx
add edi, edx
push edi
add ecx, eax
push ecx
push eax
call dword [sym.imp.msvcrt.dll_memmove]
mov eax, dword [ebp - 8]
sub dword [ebx], eax
add esp, 0xc
and dword [ebp - 4], 0
jmp 0x1071881
and dword [ebx], 0
and dword [ebp - 8], 0
cmp dword [ebp - 0xc], 0
jne 0x107189e
cmp dword [ebp - 4], 0
jl 0x10718eb
cmp dword [ebp - 0x10], 0
jne 0x107189e
xor edi, edi
jmp 0x1071784
cmp dword [ebp - 4], 0
jl 0x10718eb
cmp dword [esi + 0x1704], 0
jne 0x10718d9
push dword [esi + 0x170c]
or dword [esi + 0x1708], 0xffffffff
call fcn.0105eff6
mov edx, dword [esi]
xor eax, eax
pop ecx
push eax
mov ecx, esi
mov dword [esi + 0x170c], eax
mov dword [ebp - 4], eax
mov dword [esi + 0x1700], eax
call dword [edx + 0x50]
xor edi, edi
cmp dword [ebp - 4], edi
jge 0x1071923
jmp 0x10718ed
mov dword [ebp - 4], 0x8007000e
jmp 0x10718db
xor edi, edi
push dword [esi + 0x170c]
or dword [esi + 0x1704], 0xffffffff
or dword [esi + 0x1708], 0xffffffff
mov dword [esi + 0x1710], edi
call fcn.0105eff6
cmp dword [ebp + 8], 0xffffffff
pop ecx
mov dword [esi + 0x170c], edi
jne 0x1071923
push dword [ebp - 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x50]
pop ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 4
Function at 0x1071b24
Capabilities:
Get hostname
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x530
mov eax, dword [0x111121c]
push ebx
push esi
xor ebx, ebx
mov esi, ecx
cmp byte [esi + 0x3c], bl
mov dword [ebp - 4], eax
mov dword [ebp - 0x518], ebx
je 0x1071b52
mov eax, 0x8000ffff
jmp 0x1071cc0
push edi
push esi
push 0x10028c4
push 1
push ebx
push 0x10028d4
mov byte [esi + 0x3c], 1
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
cmp edi, ebx
jl 0x1071ca6
mov eax, dword [esi]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0xc]
mov edi, eax
cmp edi, ebx
jl 0x1071ca6
xor eax, eax
lea edi, [ebp - 0x530]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esi]
push 1
lea edx, [ebp - 0x530]
push edx
mov dword [ebp - 0x530], 0x14
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov edi, eax
cmp edi, ebx
jl 0x1071ca6
push 0xff
lea eax, [ebp - 0x104]
push eax
call sub.WSOCK32.dll_gethostname
cmp eax, 0xffffffff
je 0x1071be0
lea eax, [ebp - 0x104]
push eax
call sub.WSOCK32.dll_gethostbyname
cmp eax, ebx
jne 0x1071c0d
call sub.WSOCK32.dll_WSAGetLastError
test eax, eax
jg 0x1071bf5
call sub.WSOCK32.dll_WSAGetLastError
mov edi, eax
jmp 0x1071ca6
call sub.WSOCK32.dll_WSAGetLastError
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
jmp 0x1071ca6
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push 0x123e
mov dword [ebp - 0x110], eax
mov word [ebp - 0x114], 2
call sub.WSOCK32.dll_htons
push 1
lea edx, [ebp - 0x518]
push edx
push 0x36ee80
push 1
push 0x10
mov word [ebp - 0x112], ax
mov eax, dword [esi]
mov ecx, dword [eax]
lea edx, [ebp - 0x114]
push edx
push eax
call dword [ecx + 0x18]
mov edi, eax
cmp edi, ebx
jl 0x1071ca6
push ebx
push ebx
push ebx
lea edx, [ebp - 0x51c]
push edx
lea edx, [ebp - 0x514]
xor eax, eax
push edx
push dword [ebp - 0x518]
mov ecx, 0x100
lea edi, [ebp - 0x514]
rep stosd dword es:[edi], eax
mov eax, dword [esi]
mov dword [ebp - 0x51c], 0x400
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov edi, eax
cmp edi, ebx
jl 0x1071ca6
mov eax, dword [ebp - 0x510]
mov dword [esi + 0x38], eax
mov byte [esi + 4], 1
cmp dword [ebp - 0x518], ebx
je 0x1071cbd
mov esi, dword [esi]
mov eax, dword [esi]
push ebx
push dword [ebp - 0x518]
push esi
call dword [eax + 0x20]
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0105eca9
leave
ret
Function at 0x10734b3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi], ebx
mov dword [ebp - 4], 0x80004005
jne 0x1073561
push 0x100d46c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi + 0xc], eax
je 0x107355b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100d454
push eax
call edi
push 0x100d448
push dword [esi + 0xc]
mov dword [esi + 0x20], eax
call edi
push 0x100d438
push dword [esi + 0xc]
mov dword [esi + 0x24], eax
call edi
push 0x100d428
push dword [esi + 0xc]
mov dword [esi + 0x28], eax
call edi
push 0x100d418
push dword [esi + 0xc]
mov dword [esi + 0x2c], eax
call edi
push 0x100d408
push dword [esi + 0xc]
mov dword [esi + 0x30], eax
call edi
push 0x100d3f8
push dword [esi + 0xc]
mov dword [esi + 0x34], eax
call edi
push 0x100d3e8
push dword [esi + 0xc]
mov dword [esi + 0x38], eax
call edi
push 0x100d3d4
push dword [esi + 0xc]
mov dword [esi + 0x3c], eax
call edi
mov dword [esi + 0x40], eax
pop edi
mov dword [esi], 1
cmp dword [esi + 0x20], ebx
je 0x1073591
cmp dword [esi + 0x24], ebx
je 0x1073591
cmp dword [esi + 0x34], ebx
je 0x1073591
cmp dword [esi + 0x38], ebx
je 0x1073591
cmp dword [esi + 0x3c], ebx
je 0x1073591
cmp dword [esi + 0x40], ebx
je 0x1073591
cmp dword [esi + 0x28], ebx
je 0x1073591
cmp dword [esi + 0x2c], ebx
je 0x1073591
cmp dword [esi + 0x30], ebx
je 0x1073591
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret
Function at 0x108349c
Capabilities:
Find taskbar

Disassembly:
push 0
push 0x1005994
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x10834be
push 0xffffffffffffffec
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 8
je 0x10834be
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x10848ca
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ecx + 0xc], ebx
mov dword [ebp - 4], ecx
jne 0x10848df
xor eax, eax
jmp 0x108492c
push esi
lea esi, [ecx + 0x24]
cmp dword [esi], ebx
jne 0x1084929
push edi
push 0x34
call fcn.0105f04e
cmp eax, ebx
pop ecx
je 0x10848ff
mov ecx, eax
call fcn.01084736
mov edi, eax
jmp 0x1084901
xor edi, edi
cmp edi, ebx
mov dword [esi], edi
je 0x1084928
push ebx
push ebx
push dword [ebp - 4]
push 0x108433a
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi], eax
mov eax, dword [esi]
cmp dword [eax], ebx
jne 0x1084928
mov ecx, esi
call fcn.010848ae
pop edi
mov eax, dword [esi]
pop esi
pop ebx
leave
ret

Function at 0x10853fa
Capabilities:
Log keystrokes via application hook

Disassembly:
mov edi, edi
push esi
mov esi, dword [sym.imp.USER32.dll_SetWindowsHookExW]
push edi
mov edi, dword [0x1112f44]
push 0
push edi
push 0x1085360
push 0xe
call esi
push 0
push edi
push 0x108532f
push 0xd
mov dword [0x11140ac], eax
call esi
push 0x11140b4
mov dword [0x11140b0], eax
call dword [sym.imp.USER32.dll_GetCursorPos]
pop edi
pop esi
ret