joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002b810
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [esi + 0x90], ebx
push edi
mov dword [ebp - 8], ebx
jbe 0x1002b903
lea eax, [esi + 0x9c]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esi + 0xd8]
mov edi, dword [eax]
cmp edi, eax
je 0x1002b8dc
cmp byte [edi + 0xc], 0
je 0x1002b89c
test ebx, ebx
je 0x1002b869
mov eax, dword [edi + 8]
lea ecx, [ebx + 1]
cmp ecx, eax
je 0x1002b869
mov ecx, dword [ebp - 8]
sub eax, ebx
lea eax, [ecx + eax - 1]
mov dword [ebp - 8], eax
mov al, byte [edi + 0xc]
mov ebx, dword [edi + 8]
mov byte [ebp - 1], al
call dword [sym.imp.KERNEL32.dll_GetTickCount]
movzx ecx, byte [ebp - 1]
imul ecx, dword [esi + 0xbc]
add ecx, dword [edi + 0x10]
cmp ecx, eax
jb 0x1002b909
cmp byte [ebp - 1], 1
ja 0x1002b89c
mov edi, dword [edi]
lea eax, [esi + 0xd8]
cmp edi, eax
jne 0x1002b849
cmp dword [ebp - 8], 3
jb 0x1002b8dc
lea eax, [esi + 0xd8]
mov edi, dword [eax]
cmp edi, eax
je 0x1002b8dc
cmp byte [edi + 0xc], 1
jne 0x1002b8dc
mov edx, dword [esi + 0x90]
lea eax, [esi + 0xc0]
mov ecx, dword [eax]
shr ecx, 1
cmp edx, ecx
jbe 0x1002b8ca
mov ecx, edx
push dword [ebp + 8]
mov dword [eax], ecx
mov eax, esi
mov dword [esi + 0xc8], ecx
call fcn.1002b3db
cmp dword [esi + 0xc4], 0
jne 0x1002b8fa
cmp dword [esi + 0xd4], 0
je 0x1002b8fa
xor edi, edi
push dword [ebp + 8]
mov eax, esi
call fcn.1002b3db
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
leave
ret 4
mov ebx, dword [esi + 0xc0]
mov ecx, dword [esi + 0x90]
xor edx, edx
mov eax, ebx
div ecx
cmp eax, 3
jae 0x1002b923
push 3
pop eax
movzx edx, byte [edi + 0xc]
cmp edx, eax
jbe 0x1002b950
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi + 0x10]
cmp eax, 0x2710
jbe 0x1002b903
push dword [ebp + 8]
mov eax, esi
call fcn.1002befc
jmp 0x1002b903
mov eax, ebx
shr eax, 1
cmp ecx, eax
jbe 0x1002b95a
mov eax, ecx
mov dword [esi + 0xc8], eax
mov dword [esi + 0xc0], ecx
jmp 0x1002b8f0
Function at 0x1002ccae
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, eax
movzx eax, word [esi + 0x2c]
mov dword [ebp - 8], eax
push edi
xor eax, eax
lea edi, [esi + 0x724]
xor ebx, ebx
lea ecx, [edi + 0x58]
inc eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [esi + 0x72c], 0x598
call fcn.10035f47
test eax, eax
je 0x1002ccf5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x1002cd89
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
push 0x1002cb19
push ebx
push ebx
mov dword [ebp - 0xc], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [edi + 0xc], eax
je 0x1002cce7
push edi
push ebx
push esi
push 0x1002cb61
push 1
push 1
lea eax, [ebp - 8]
push eax
push 2
push 2
call fcn.1002e8e2
cmp dword [edi], ebx
mov dword [ebp - 4], eax
jne 0x1002cd3b
cmp dword [edi + 4], ebx
je 0x1002cd7f
mov ax, word [ebp - 8]
mov word [esi + 0x2c], ax
mov eax, dword [edi + 8]
add eax, 0x90
lea ecx, [edi + 0x10]
call fcn.10035dc9
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x1002cce7
mov eax, dword [edi]
cmp eax, ebx
mov dword [ebp - 0x10], 1
je 0x1002cd7f
push esi
mov esi, eax
call fcn.1002e886
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1002cd7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov dword [edi + 0x8c], 1
cmp dword [ebp - 4], ebx
je 0x1002cde4
cmp dword [ebp - 0xc], ebx
je 0x1002cde4
mov esi, dword [edi]
cmp esi, ebx
mov dword [edi + 0x90], 1
je 0x1002cdaa
call fcn.1002ec00
mov dword [edi], ebx
push dword [edi + 0x7c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [edi + 0xc]
cmp eax, ebx
je 0x1002cdcf
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0xc], ebx
lea eax, [edi + 0x58]
call fcn.10036041
cmp dword [ebp - 0x10], ebx
je 0x1002cde4
lea eax, [edi + 0x10]
call fcn.10036041
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1002d2b6
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x458]
mov esi, dword [edi + 0x3c]
push 1
add ebx, 4
call fcn.10025068
cmp dword [esi + 0x714], 0
mov dword [ebp - 0xc], eax
je 0x1002d310
mov eax, esi
call fcn.1001d602
test eax, eax
je 0x1002d310
mov eax, esi
call fcn.1001d1f1
test eax, eax
je 0x1002d310
cmp dword [esi + 0x1e8], 0
jne 0x1002d310
mov dword [ebp - 4], 1
jmp 0x1002d314
and dword [ebp - 4], 0
and word [ebp - 0x90], 0
push 0x7e
lea eax, [ebp - 0x8e]
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0xc
push 0x57
push 0
push ebx
call sub.ntdll.dll_memset
mov al, byte [ebp + 0xc]
mov byte [ebx + 1], al
mov byte [ebx], 0xc5
mov word [ebx + 2], 0x57
mov eax, dword [esi + 8]
mov dword [ebx + 4], eax
mov eax, dword [esi + 0xc]
mov dword [ebx + 8], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x10], eax
mov ax, word [esi + 0x2e]
mov word [ebx + 0x14], ax
add esp, 0xc
mov eax, esi
mov byte [ebx + 0x16], 1
call fcn.1001d602
xor edx, edx
test eax, eax
je 0x1002d3a5
movzx ecx, word [esi + 0x19c]
cmp cx, dx
je 0x1002d39e
cmp dword [esi + 0x198], edx
je 0x1002d39e
mov eax, esi
call fcn.10025169
test eax, eax
movzx eax, cx
jne 0x1002d3a2
movzx eax, word [esi + 0x2c]
mov dword [ebp - 8], eax
mov ax, word [ebp - 8]
mov word [ebx + 0x17], ax
mov word [ebx + 0x19], dx
mov dword [ebx + 0x2e], edx
cmp dword [esi + 0x714], edx
je 0x1002d3fb
cmp dword [ebp - 4], edx
je 0x1002d3dc
cmp dword [ebp - 0xc], edx
jne 0x1002d3d7
mov eax, esi
call fcn.10025169
test eax, eax
je 0x1002d3d7
mov word [ebx + 0x19], 1
or word [ebx + 0x19], 2
cmp dword [ebp - 0xc], edx
je 0x1002d3e6
or word [ebx + 0x19], 4
cmp dword [edi + 0x60], edx
je 0x1002d3f0
or word [ebx + 0x19], 8
cmp dword [edi + 0x54], 0xa
jne 0x1002d3fb
or word [ebx + 0x19], 0x10
cmp dword [edi + 0x60], edx
jne 0x1002d446
mov eax, dword [edi + 0x64]
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x90]
push ecx
push dword [eax]
mov dword [ebp + 0xc], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1002d427
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebx + 0x1b]
lea eax, [ebp - 0x90]
call fcn.1001f76d
lea eax, [ebp - 0x90]
call fcn.1001f829
mov word [ebx + 0x2c], ax
xor edx, edx
mov eax, dword [esi + 0x218]
cmp eax, edx
mov dword [ebp + 0xc], eax
je 0x1002d498
cmp byte [eax + 0x208], 1
jne 0x1002d498
cmp dword [ebp - 4], edx
je 0x1002d498
mov dword [ebx + 0x2e], 1
lea esi, [eax + 0x40]
lea edi, [ebx + 0x32]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x70]
lea ecx, [ebx + 0x42]
mov eax, esi
call fcn.1001f76d
mov eax, esi
call fcn.1001f829
mov edi, dword [ebp + 8]
mov word [ebx + 0x53], ax
mov eax, dword [ebp + 0xc]
mov ax, word [eax + 0x68]
mov word [ebx + 0x55], ax
push 0x57
push ebx
call fcn.1002cf2b
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1002df8c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor ebx, ebx
push ebx
push ebx
lea eax, [esi + 4]
push eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x3c]
add edi, 0x290
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.1001f9b2
mov edi, eax
cmp edi, ebx
jne 0x1002dfe1
mov dword [esp + 0x10], 2
mov eax, dword [ebp + 8]
mov byte [eax + 0x548], 0xc
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [edi + 0x78], ebx
jne 0x1002dff0
mov dword [esp + 0x10], 0xd
jmp 0x1002dfca
mov eax, dword [ebp + 8]
cmp dword [eax + 0x54c], edi
jne 0x1002dfe6
cmp dword [edi + 0x18], ebx
jne 0x1002dfe6
mov edx, dword [esi + 0x18]
mov eax, dword [edi + 0x84]
cmp edx, eax
mov ecx, dword [esi + 0x14]
mov ebx, dword [edi + 0x80]
jb 0x1002e01c
ja 0x1002dfe6
cmp ecx, ebx
ja 0x1002dfe6
mov ebx, dword [esi + 0x20]
cmp ebx, eax
jb 0x1002e030
ja 0x1002dfe6
mov eax, dword [esi + 0x1c]
cmp eax, dword [edi + 0x80]
ja 0x1002dfe6
cmp ecx, dword [edi + 0x70]
jne 0x1002dfe6
cmp edx, dword [edi + 0x74]
jne 0x1002dfe6
mov edx, dword [edi + 0x70]
add edx, dword [edi + 0x78]
mov ebx, dword [esi + 0x1c]
mov esi, dword [ebp + 8]
sub ebx, ecx
cmp dword [esi + 0x60], 0
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], edx
je 0x1002e083
mov esi, dword [esi + 0x64]
push edx
mov ecx, ebx
call fcn.1002bd3a
cmp eax, ebx
je 0x1002e072
mov dword [esp + 0x10], 0x2745
jmp 0x1002dfca
and dword [esp + 0x10], 0
cdq
add dword [edi + 0x70], eax
adc dword [edi + 0x74], edx
jmp 0x1002e125
test ebx, ebx
jbe 0x1002e128
jmp 0x1002e091
mov edx, dword [esp + 0x1c]
mov esi, dword [edi + 0x74]
mov eax, dword [edi + 0x84]
cmp esi, eax
mov ecx, dword [edi + 0x80]
ja 0x1002e104
jb 0x1002e0ab
cmp dword [edi + 0x70], ecx
jae 0x1002e104
sub ecx, dword [edi + 0x70]
sbb eax, esi
test eax, eax
jb 0x1002e0c5
ja 0x1002e0be
cmp ecx, 0x400
jbe 0x1002e0c5
mov esi, 0x400
jmp 0x1002e0c7
mov esi, ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x64]
push 0
add esi, 7
and esi, 0xfffffff8
push esi
push dword [esp + 0x20]
push dword [eax]
push 0xa
pop eax
call fcn.10023752
test eax, eax
mov dword [esp + 0x10], eax
jne 0x1002e100
add dword [esp + 0x14], esi
add dword [edi + 0x70], esi
adc dword [edi + 0x74], eax
add dword [esp + 0x18], esi
cmp dword [esp + 0x14], ebx
jb 0x1002e08d
mov edx, dword [esp + 0x1c]
cmp dword [esp + 0x14], 0
je 0x1002e11a
mov ecx, dword [ebp + 0x10]
push edx
push dword [esp + 0x18]
mov eax, edx
call fcn.10024f6e
cmp dword [esp + 0x10], 0
jne 0x1002dfca
mov esi, dword [ebp + 8]
call fcn.10013d95
mov dword [esi + 0x550], eax
mov dword [esi + 0x554], edx
mov eax, dword [edi + 0x74]
cmp eax, dword [edi + 0x84]
jb 0x1002dfd4
ja 0x1002e159
mov eax, dword [edi + 0x70]
cmp eax, dword [edi + 0x80]
jb 0x1002dfd4
mov dword [edi + 0x18], 2
jmp 0x1002dfd4
Function at 0x1002e709
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
xor eax, eax
mov byte [ebp - 0xc], 0
lea edi, [ebp - 0xb]
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 4
push dword [ebp + 0xc]
stosb byte es:[edi], al
lea eax, [ebp - 0xc]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_htonl]
push 8
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xc
push 0
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
neg eax
sbb eax, eax
inc eax
pop edi
leave
ret 0xc

Function at 0x1002e886
Capabilities:
Create thread

Disassembly:
mov eax, dword [esi + 0xa4]
push ebx
push edi
xor edi, edi
xor ebx, ebx
cmp eax, edi
je 0x1002e8db
cmp dword [esi + 0x9c], edi
je 0x1002e8b7
push esi
push eax
mov eax, dword [esp + 0x14]
add eax, 0xc8
push eax
call fcn.10035bb0
mov dword [esi + 0x90], edi
jmp 0x1002e8d9
lea ecx, [esi + 0x94]
push ecx
push edi
push esi
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x90], eax
jne 0x1002e8db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
pop edi
mov eax, ebx
pop ebx
ret 4

Function at 0x1002ea62
Capabilities:
Connect socket

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, eax
xor eax, eax
cmp word [ebx], 2
push edi
sete al
push ebx
mov dword [esi + 0x8c], eax
lea eax, [esi + 8]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
push edi
push ebx
push dword [esi]
mov dword [esi + 0x88], edi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x1002eaa3
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1002eaac
push dword [esp + 0xc]
call fcn.1002e886
pop esi
pop ebx
ret 8
Function at 0x1002eab1
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, 0x100
xor edi, edi
push esi
lea eax, [ebp - 0x210]
push edi
push eax
mov dword [ebp + 0xc], edi
call sub.ntdll.dll_memset
push esi
lea eax, [ebp - 0x10c]
push edi
push eax
call sub.ntdll.dll_memset
mov dword [ebp - 0xc], edi
xor eax, eax
add esp, 0x18
lea edi, [ebp - 8]
stosd dword es:[edi], eax
mov edi, dword [ebx]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x214]
push eax
xor esi, esi
push 0
inc esi
push 2
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x110], esi
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x1002ebb7
lea eax, [ebp - 0x110]
push eax
push edi
mov dword [ebp + 0xc], esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1002eb7f
and dword [ebp + 8], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x1007
push 0xffff
push edi
mov dword [ebp - 4], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1002eb74
mov eax, dword [ebp + 8]
jmp 0x1002ebc2
mov eax, dword [ebp + 0x10]
mov dword [eax], 0x274d
jmp 0x1002ebc7
lea eax, [ebp - 0x214]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
mov eax, dword [ebp + 0x10]
je 0x1002eba8
push dword [ebp + 8]
and dword [eax], 0
mov dword [ebx + 0xa0], esi
mov esi, ebx
call fcn.1002e886
jmp 0x1002ebc7
and dword [ebx + 0xa0], 0
mov dword [eax], 0x2749
jmp 0x1002ebc7
jge 0x1002ebc7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 0xc], esi
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10030e40
Capabilities:
Get local ipv4 addresses
Get socket information
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
sub esp, 0x88c
push ebx
push ebp
mov ebp, dword [esp + 0x8a4]
push esi
push edi
mov edi, dword [esp + 0x8a0]
mov esi, eax
mov eax, dword [esp + 0x8a8]
push ecx
mov dword [eax], 0
push esi
mov eax, edi
call fcn.10031d90
mov ebx, eax
test ebx, ebx
jl 0x10030f39
test ebp, ebp
je 0x10030eb4
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
mov dword [esp + 0x20], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jl 0x10030eb4
mov ecx, dword [esp + 0x14]
push 0xa
push 0
push 0
push 0x10
push ebp
push ecx
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.WS2_32.dll_getnameinfo]
mov ecx, dword [esp + 0x8a4]
movzx eax, si
push eax
push edi
push 0x1003a2bc
push ecx
push str.GET__s_HTTP__s_r_nHost:__s:_d_r_nConnection:_Close_r_nUser_Agent:_Microsoft_Windows_NT_5.1__UPnP_1.1__MiniUPnPc_2.0_r_n_r_n
lea edx, [esp + 0xac]
push 0x800
push edx
call sub.ntdll.dll__snprintf
mov edi, eax
add esp, 0x1c
xor esi, esi
test edi, edi
jle 0x10030f0c
mov ebp, dword [sym.imp.WS2_32.dll_send]
mov edi, edi
push 0
mov eax, edi
sub eax, esi
push eax
lea ecx, [esp + esi + 0xa0]
push ecx
push ebx
call ebp
test eax, eax
jl 0x10030f32
add esi, eax
cmp esi, edi
jl 0x10030ef0
mov edx, dword [esp + 0x8a8]
push edx
push ebx
call fcn.10030800
push ebx
mov esi, eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88c
ret 0x10
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x88c
ret 0x10

Function at 0x100311a0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x114
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul ecx, ecx, 0x3e8
lea eax, [esp]
push eax
push 0
mov dword [esp + 0xc], ecx
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x40
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jge 0x100311fd
or eax, 0xffffffff
add esp, 0x114
ret 8
jne 0x1003120a
xor eax, eax
add esp, 0x114
ret 8
mov edx, dword [esp + 0x11c]
mov eax, dword [esp + 0x118]
push 0
push edx
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
add esp, 0x114
ret 8
Function at 0x100317a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov edi, eax
mov eax, dword [0x1003e140]
lea ebx, [edi + ebp]
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x100317c9
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
mov ecx, dword [esp + 0x20]
push edi
push ecx
push esi
call sub.ntdll.dll_memcpy
mov edx, dword [esp + 0x24]
push ebp
push edx
lea eax, [esi + edi]
push eax
call sub.ntdll.dll_memcpy
mov ecx, dword [esp + 0x2c]
add esp, 0x18
push 0
push ebx
push esi
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov edx, dword [0x1003e140]
push esi
push 0
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
Function at 0x10031d90
Capabilities:
Connect socket
Resolve dns

Disassembly:
sub esp, 0x74
push ebx
push ebp
push esi
mov esi, eax
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], eax
movzx eax, word [esp + 0x84]
push edi
push eax
push 0x1003a610
lea ecx, [esp + 0x18]
push 8
push ecx
mov dword [esp + 0x28], 8
mov dword [esp + 0x30], 1
call sub.ntdll.dll__snprintf
add esp, 0x10
cmp byte [esi], 0x5b
jne 0x10031e52
lea ecx, [esi + 1]
xor edi, edi
cmp byte [ecx], 0
je 0x10031e4b
jmp 0x10031e00
mov al, byte [ecx]
cmp al, 0x5d
je 0x10031e4b
cmp edi, 0x40
jge 0x10031e4b
mov byte [esp + edi + 0x38], al
movzx eax, al
sub eax, 0x25
jne 0x10031e29
movzx eax, byte [ecx + 1]
sub eax, 0x32
jne 0x10031e29
movzx eax, byte [ecx + 2]
sub eax, 0x35
je 0x10031e37
test eax, eax
mov edx, 1
jg 0x10031e39
or edx, 0xffffffff
jmp 0x10031e39
xor edx, edx
test edx, edx
jne 0x10031e40
add ecx, 2
add ecx, 1
add edi, 1
cmp byte [ecx], 0
jne 0x10031e00
mov byte [esp + edi + 0x38], 0
jmp 0x10031e62
push 0x40
lea edx, [esp + 0x3c]
push esi
push edx
call sub.ntdll.dll_strncpy
add esp, 0xc
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x88], 0
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebp, eax
test ebp, ebp
je 0x10031e9a
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret 8
mov esi, dword [esp + 0x88]
or edi, 0xffffffff
test esi, esi
je 0x10031f05
mov ebx, dword [sym.imp.WS2_32.dll_connect]
mov edi, edi
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
test edi, edi
jl 0x10031ef7
mov eax, dword [esi + 0x18]
cmp word [eax], 0x17
jne 0x10031edf
mov ecx, dword [esp + 0x8c]
test ecx, ecx
jbe 0x10031edf
mov dword [eax + 0x18], ecx
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x18]
push ecx
push edx
push edi
call ebx
mov ebp, eax
test ebp, ebp
jge 0x10031efe
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x10031eb0
mov esi, dword [esp + 0x88]
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
jl 0x10031e8d
test ebp, ebp
jl 0x10031e8d
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret 8
Function at 0x10033542
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x29]
push edi
mov edi, dword [esi + 0x39]
sub edi, dword [esi + 0x71]
mov eax, dword [esi + 0x69]
mov ecx, dword [esi + 0x29]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
cmp eax, ecx
mov dword [ebp - 8], edi
jb 0x100335cf
mov eax, dword [esi + 0x35]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call sub.ntdll.dll_memcpy
mov eax, dword [esi + 0x49]
mov ecx, dword [esi + 0x41]
sub dword [esi + 0x6d], ebx
sub dword [esi + 0x69], ebx
add esp, 0xc
sub dword [esi + 0x59], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x1003358f
mov eax, dword [esi + 0x3d]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x100335b1
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x1003368a
mov eax, dword [esi + 0x71]
add eax, dword [esi + 0x69]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x35]
mov edx, dword [ebp - 8]
cmp ecx, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
jbe 0x100335f7
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
test edx, edx
jne 0x10033602
xor eax, eax
jmp 0x1003364b
sub ecx, edx
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x18]
cmp ecx, 1
jne 0x1003361f
mov ecx, dword [edi]
mov eax, dword [edi + 0x28]
push edx
call fcn.1003606f
jmp 0x1003362f
cmp ecx, 2
jne 0x10033635
mov eax, dword [edi + 0x28]
push edx
mov edx, dword [edi]
call fcn.10014918
mov dword [edi + 0x28], eax
mov eax, dword [ebp - 0xc]
push dword [ebp - 4]
push dword [edi]
push eax
call sub.ntdll.dll_memcpy
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x71], eax
mov edi, dword [esi + 0x71]
cmp edi, 3
jb 0x10033676
mov eax, dword [esi + 0x69]
mov ecx, dword [esi + 0x35]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x55]
mov dword [esi + 0x45], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x51]
mov dword [esi + 0x45], eax
cmp edi, 0x106
jae 0x1003368a
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x1003354d
pop edi
pop ebx
leave
ret
Function at 0x10035b22
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push 0x28
mov dword [ebp - 4], ebx
call fcn.100012ea
mov esi, eax
cmp esi, ebx
je 0x10035ba0
mov eax, dword [ebp + 8]
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], eax
call fcn.10013d95
mov dword [esi + 0x18], eax
lea eax, [esi + 0xc]
push eax
push 4
push esi
push 0x100359e5
push ebx
push ebx
mov dword [esi + 0x1c], edx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 8], eax
je 0x10035b8f
mov eax, dword [edi + 4]
mov dword [esi], edi
mov dword [esi + 4], eax
mov dword [eax], esi
inc dword [edi + 0x18]
mov dword [edi + 4], esi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x10035ba7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov dword [ebp - 4], eax
call fcn.100012ff
jmp 0x10035ba7
mov dword [ebp - 4], 8
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 4