joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ab60
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x463138
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
call fcn.00425460
test eax, eax
je 0x42ac68
lea ecx, [esp + 0xc]
call fcn.00401610
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.00425460
mov ecx, eax
call fcn.00422c20
test eax, eax
je 0x42ac4f
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, eax
je 0x42ac4f
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x42ac4f
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
neg esi
push edi
push ebx
sbb esi, esi
and esi, edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.00401810
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x42ac31
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x42ac4f
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x48fc48]
push ebx
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x466880
call fcn.00401810
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x42acb0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.00425460
test eax, eax
je 0x42ad9f
mov ecx, edi
call fcn.00425460
mov ecx, eax
call fcn.00422ad0
test eax, eax
jne 0x42ad9f
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42ad9f
mov eax, dword [0x48fc48]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x42ad12
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.00425460
mov ecx, eax
call fcn.00422d00
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x42ad9f
cmp ebx, eax
jne 0x42ad9f
cmp dword [esp + 0x10], eax
jne 0x42ad85
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x42d9d0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4633c8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x42da09
inc eax
mov dword [esi + 0x10], eax
jmp 0x42db1c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x42da1d
mov eax, 0xffffffc7
jmp 0x42db1e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x42da2e
cmp dword [esi + 8], eax
jne 0x42da1d
cmp dword [esi + 8], eax
jne 0x42da47
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x42da47
mov eax, 0xffffffc7
jmp 0x42db1e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x42da5b
push eax
mov ecx, ebx
call fcn.0042d200
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00401610
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x42da8c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00401630
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0042c970
test eax, eax
mov dword [esp + 0x38], eax
je 0x42dabf
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x466880
call fcn.00401810
mov eax, dword [esp + 0x38]
jmp 0x42db1e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0042d830
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x42db03
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0042d850
mov esi, eax
test esi, esi
jne 0x42db33
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0042d830
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x42dad5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x466880
call fcn.00401810
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x466880
call fcn.00401810
mov eax, esi
jmp 0x42db1e

Function at 0x430c00
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x430c60
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x430c60
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x430c60
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x430c60
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x430ca0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x436b70
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4639f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0045cc92
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00436510
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0045cbc0
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00459484
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00459484
push 1
push 0
push 0
mov ecx, esi
call fcn.0045942c
push 1
push 0
push 1
mov ecx, esi
call fcn.0045942c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0045cd04
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x436cf0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x463a18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0045cc92
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00436510
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0045cbc0
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x436db4
cmp dword [esp + 0x40], 1
jne 0x436db2
cmp ecx, eax
jge 0x436db4
mov eax, ecx
cmp eax, 0xc8
jge 0x436dc0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00436b70
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0045cd04
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x437540
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x463a83
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.004578a4
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.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.0045cf3a
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0045e456
test eax, eax
je 0x43765c
mov ecx, dword [esp + 0x3c]
call fcn.0045cf67
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 0x437620
push edi
mov ecx, esi
call fcn.0045a5cb
mov ecx, esi
call fcn.004377c0
cmp dword [esp + 0x38], 1
jne 0x437655
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.0045a706
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 0x43a080
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43a0b3
push esi
call fcn.0043d170
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43a0ac
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 0x43a139
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43a122
mov eax, dword [esi + 8]
test eax, eax
je 0x43a0d7
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 0x43a11e
cmp eax, 2
je 0x43a122
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43a0ca
cmp eax, 3
je 0x43a0fd
cmp eax, 1
jne 0x43a0ca
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 0x43a0ca
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43a0ca
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043a160
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43a148
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043a160
add esp, 4
pop esi
ret

Function at 0x45869a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4586d2
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.0045674e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00456726
jmp 0x4586de
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x459d88
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 0x459dca
call fcn.0045f841
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x459dca
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x459dc1
xor eax, eax
jmp 0x459dd2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00459dd8
pop edi
pop esi
pop ebx
ret 4

Function at 0x45fd71
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 0x45fd9f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x45fdbd
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0045fcd7
jmp 0x45fdbd
mov eax, dword [esi + 0x14]
test eax, eax
je 0x45fdbd
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0045fcd7
test edi, edi
mov eax, edi
jne 0x45fda7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402cd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x402cfb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00404be0
add esp, 4
or eax, 0xffffffff
jmp 0x402d2a
mov ecx, dword [ebp - 4]
and ecx, 1
test ecx, ecx
je 0x402d28
mov edx, dword [ebp + 0xc]
and edx, 2
test edx, edx
je 0x402d28
mov dword [0x424a80], 0xd
mov dword [0x424a84], 5
or eax, 0xffffffff
jmp 0x402d2a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x44ef1c
Capabilities:
Encode data using xor

Disassembly:
push ebp
jmp 0x44edd1
mov ebp, esp
push 0xfffffffffffffffe
push 0x4b2b40
push 0x4a4f00
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
jmp 0x44ef1c
mov dword [ebp - 0x18], esp
push 0x44f0d8
ret
push esi
push edi
mov eax, dword [0x5be670]
xor dword [ebp - 8], eax
je 0x44f13b
jne 0x44f13b
mov dword [0x112b7d10], eax
push 0x697ddd80
mov ecx, 0x103e71f8
cmp byte [0x699d1180], 0
xchg byte [ecx + ebp*2 - 0x28], ah
cmp word [ecx + 0x1c], 0
push 0xaa388c
cmp dword [0xdeb2ec], eax
mov dword [0x424ce4], edi
mov eax, 0xfd7e68
mov eax, 0x100cb118
push 0x4e5c5d
cmp eax, dword [0x448168]
movzx ecx, byte [eax + 0x927900]
xor dword [ebp + edi*8 - 0x57], 0xd2886f7b
jecxz 0x44ef5c
ret 0x1a27
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
je 0x44eeda
jne 0x44eeda
mov eax, reloc.shlwapi.dll_PathIsDirectoryA
and eax, 0xfffff
jmp dword [0x432270]
Function at 0x100129b
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1003088]
and word [ebp - 0x12], 0
cmp dword [ebp + 8], 1
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
setne al
push esi
mov esi, dword [ebp + 0x10]
and word [esi + 2], 0
push 0xeff03
mov word [ebp - 0x14], 2
mov byte [esi], 0x13
lea eax, [eax + eax + 3]
mov byte [esi + 1], al
call dword [sym.imp.WS2_32.dll_htonl]
push 8
push esi
mov dword [esi + 4], eax
call fcn.010011b4
push 0x10
mov word [esi + 2], ax
lea eax, [ebp - 0x14]
push eax
push 0
push 8
push esi
push dword [0x10030b8]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
pop esi
jne 0x1001322
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push 0x697a
push eax
call fcn.010011fb
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.01001b12
leave
ret 0xc
Function at 0x10013f4
Capabilities:
Get hostname
Get socket status
Initialize winsock library
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c4
mov eax, dword [0x1003088]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2ac]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1001434
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push 0x6979
push eax
call fcn.010011fb
pop ecx
pop ecx
xor eax, eax
jmp 0x10015f6
push ebx
push esi
push 0x400
call dword [sym.imp.msvcrt.dll_malloc]
mov ebx, eax
xor esi, esi
cmp ebx, esi
pop ecx
jne 0x100145a
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x69d2
xor eax, eax
jmp 0x10015f4
mov eax, dword [0x10030a4]
cmp eax, esi
jne 0x1001481
push 0x100
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x11c]
push eax
call fcn.01001961
cmp eax, 0xffffffff
push edi
jne 0x1001495
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x697e
jmp 0x10015e3
push esi
push eax
call fcn.010019ae
cmp dword [ebp + 0x10], esi
mov dword [0x10030b8], eax
jl 0x10015da
xor edi, edi
inc edi
mov dword [ebp - 0x2b0], 2
mov dword [ebp - 0x2b4], edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
push dword [ebp - 0x2b0]
call fcn.0100129b
test eax, eax
je 0x1001618
mov eax, dword [0x10030b8]
mov dword [ebp - 0x3c0], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c0], eax
lea eax, [ebp - 0x2c0]
push eax
push esi
push esi
lea eax, [ebp - 0x3c4]
push eax
push edi
mov dword [ebp - 0x3c4], edi
mov dword [ebp - 0x2bc], esi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x1001602
cmp eax, esi
je 0x10015ac
lea eax, [ebp - 0x2b8]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push 0x400
push ebx
push dword [0x10030b8]
mov dword [ebp - 0x2b8], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
je 0x100160d
mov eax, dword [ebx]
and eax, 0xf
cmp dword [ebp - 0x2b0], 2
movzx eax, byte [ebx + eax*4 + 1]
jne 0x100156c
cmp eax, 6
jne 0x10014d7
cmp dword [ebp - 0x2b0], edi
jne 0x100157d
cmp eax, 4
jne 0x10014d7
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 8]
je 0x1001618
push esi
push eax
call fcn.01001a43
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push 0x6988
push eax
call fcn.010011fb
add esp, 0xc
jmp 0x10014d7
inc dword [ebp - 0x2b4]
cmp dword [ebp - 0x2b4], 2
jle 0x10014bd
dec dword [ebp - 0x2b0]
cmp dword [ebp - 0x2b0], edi
jge 0x10014b7
dec dword [ebp + 0x10]
jns 0x10014ad
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x6985
push ebx
call dword [sym.imp.msvcrt.dll_free]
pop ecx
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.01001b12
leave
ret 0x10
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x697b
jmp 0x10015e3
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x697c
jmp 0x10015e3
mov esi, ebx
jmp 0x10015eb
Function at 0x1001797
Capabilities:
Initialize winsock library
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x124]
sub esp, 0x1a4
mov eax, dword [0x1003088]
push esi
mov dword [ebp + 0x120], eax
xor eax, eax
xor esi, esi
push eax
inc esi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x78], 3
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x74], eax
call sub.KERNEL32.dll_SetThreadUILanguage
lea eax, [ebp - 0x70]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10017f7
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push 0x6979
push eax
call fcn.010011fb
pop ecx
pop ecx
push esi
jmp 0x10018ee
mov edx, dword [ebp + 0x12c]
cmp edx, esi
push ebx
push edi
jle 0x10018c7
mov edi, dword [ebp + 0x130]
mov ebx, dword [sym.imp.msvcrt.dll_atoi]
mov eax, dword [edi + esi*4]
mov cl, byte [eax]
cmp cl, 0x2d
je 0x1001839
cmp cl, 0x2f
je 0x1001839
dec edx
cmp esi, edx
jne 0x10018ce
push eax
call fcn.01001961
mov dword [ebp - 0x80], eax
cmp eax, 0xffffffff
jmp 0x10018b0
movsx eax, byte [eax + 1]
sub eax, 0x3f
je 0x10018fd
sub eax, 0x2a
je 0x100189a
sub eax, 5
je 0x100188e
sub eax, 4
je 0x1001875
dec eax
dec eax
jne 0x10018ce
dec edx
cmp esi, edx
je 0x10018ce
inc esi
push dword [edi + esi*4]
call ebx
mov dword [ebp - 0x78], eax
xor eax, eax
inc eax
cmp dword [ebp - 0x78], eax
pop ecx
jge 0x10018b2
mov dword [ebp - 0x78], eax
jmp 0x10018b2
dec edx
cmp esi, edx
je 0x10018ce
inc esi
push dword [edi + esi*4]
call ebx
test eax, eax
pop ecx
mov dword [ebp - 0x7c], eax
jge 0x10018b2
and dword [ebp - 0x7c], 0
jmp 0x10018b2
mov dword [0x10030a0], 1
jmp 0x10018b2
dec edx
cmp esi, edx
je 0x10018ce
inc esi
push dword [edi + esi*4]
call fcn.01001961
mov dword [0x10030a4], eax
cmp eax, 0xffffffff
je 0x10018f4
mov edx, dword [ebp + 0x12c]
inc esi
cmp esi, edx
jl 0x1001813
cmp dword [ebp - 0x80], 0
jne 0x1001904
mov dword [ebp - 0x74], 0x6986
mov eax, dword [sym.imp.msvcrt.dll__iob]
push dword [ebp - 0x74]
add eax, 0x20
push eax
call fcn.010011fb
pop ecx
pop ecx
call fcn.0100136a
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 1
call dword [sym.imp.msvcrt.dll_exit]
mov dword [ebp - 0x74], 0x697d
jmp 0x10018ce
call fcn.0100136a
jmp 0x10018ec
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x7c]
push dword [ebp - 0x78]
push dword [ebp - 0x80]
call fcn.010013f4
mov esi, eax
test esi, esi
pop edi
pop ebx
je 0x1001924
push esi
call fcn.0100161c
push esi
call dword [sym.imp.msvcrt.dll_free]
cmp dword [ebp - 0x74], 0
pop ecx
je 0x1001945
mov eax, dword [sym.imp.msvcrt.dll__iob]
push dword [ebp - 0x74]
add eax, 0x20
push eax
call fcn.010011fb
pop ecx
pop ecx
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp + 0x120]
xor eax, eax
pop esi
call fcn.01001b12
add ebp, 0x124
leave
ret