joyce8/EMBER2024-capa huggingface dataset:
Function at 0x665a4c
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x665ba1
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
lea edx, [ebp - 0x1c]
mov eax, dword [0x694a1c]
mov eax, dword [eax + 0x60]
call fcn.00661eec
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x665a91
sub eax, 4
mov eax, dword [eax]
xor edx, edx
push ebp
push 0x665b6f
push dword fs:[edx]
mov dword fs:[edx], esp
cmp eax, 0x19000
jle 0x665b65
lea edx, [ebp - 0x20]
mov eax, 0x665bc0
call fcn.006601a4
mov ebx, dword [ebp - 0x20]
call fcn.00427778
fstp qword [ebp - 0x18]
wait
push dword [ebp - 0x14]
push dword [ebp - 0x18]
lea ecx, [ebp - 8]
mov edx, dword [0x694e1c]
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp - 0x24]
call fcn.00428764
mov eax, dword [0x694a1c]
push dword [eax + 0x40]
push 0x665c28
mov eax, dword [0x694a1c]
push dword [eax + 0x70]
push 0x665c38
push dword [ebp - 8]
push 0x665c48
mov eax, dword [0x694a1c]
push dword [eax + 0x5c]
lea eax, [ebp - 4]
mov edx, 7
call fcn.0040a97c
mov eax, dword [ebp - 4]
call fcn.00661f98
mov ebx, dword [0x694a1c]
mov ebx, dword [ebx + 0x60]
mov eax, dword [ebp - 4]
call fcn.0040a688
push eax
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp - 0x24]
call fcn.0040a688
push eax
call sub.kernel32.dll_MoveFileW
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x665b65
mov cl, 1
mov edx, 0x27
mov eax, dword [ebp - 4]
call fcn.004250b8
mov eax, dword [0x694a1c]
mov eax, dword [eax + 0x60]
call fcn.00661f98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x665b79
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x665ba8
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004098d8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004098d8
ret

Function at 0x66fbb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x66fc35
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, esi
call fcn.004b8380
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x30]
lea edx, [ebp - 8]
mov eax, esi
call fcn.004b8380
mov edx, dword [ebp - 8]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, esi
call fcn.004b73f4
mov edx, eax
mov eax, ebx
call fcn.0066fce8
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.004b8380
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00670348
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x66fc3c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004098d8
ret

Function at 0x677be0
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xfffffdfc
mov ebx, eax
mov eax, ebx
call fcn.00409878
mov dword [esp], pe_nt_image_headers32
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x677c16
mov eax, ebx
lea edx, [esp + 4]
mov ecx, pe_nt_image_headers32
call fcn.0040a744
add esp, 0x204
pop ebx
ret
Function at 0x677c20
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x677c93
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00409878
mov dword [ebp - 8], 0xff
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040a81c
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a688
push eax
call sub.advapi32.dll_GetUserNameW
test eax, eax
je 0x677c7d
push ebx
mov ecx, dword [ebp - 8]
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0040aa64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x677c9a
lea eax, [ebp - 4]
call fcn.00409878
ret

Function at 0x402f4e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, 0x401000
call 0x402f4e
lcall 0x5de5, 0x8b10c483
jmp loc.0077b2a8
Function at 0x4208d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
or ebp, 0xffffffff
jmp 0x4208f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4208f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4208e8
mov eax, 1
add ebx, ebx
jne 0x42090b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x420900
jne 0x42091c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x420900
xor ecx, ecx
sub eax, 3
jb 0x420930
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4209a2
mov ebp, eax
add ebx, ebx
jne 0x42093b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x420948
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42096c
inc ecx
add ebx, ebx
jne 0x420958
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42094d
jne 0x420969
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42094d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42098c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42097d
jmp 0x4208ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42098c
add edi, ecx
jmp 0x4208ee
pop esi
mov edi, esi
mov ecx, 0x363
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4209aa
cmp byte [edi], 5
jne 0x4209aa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4209af
lea edi, [esi + 0x1e000]
mov eax, dword [edi]
or eax, eax
je 0x420a1e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x20100]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2013c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4209dc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x20140]
or eax, eax
je 0x420a18
mov dword [ebx], eax
add ebx, 4
jmp 0x4209f9
call dword [esi + 0x20150]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x420a4f
cmp al, 0xef
ja 0x420a42
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x420a24
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x420a31
mov ebp, dword [esi + 0x20144]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x420a83
sub esp, 0xffffff80
jmp 0x403248
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
mov ecx, 0x157d6b7a
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
mov ecx, 0x5a467e72
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x7d7b6a67
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x60cc08f7
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x1000a350
Capabilities:
Send data
Send data on socket
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov ebx, dword [ebp]
test ebx, ebx
je case.default.0x1000a3a1
mov edx, dword [ebp + 8]
test edx, edx
je case.default.0x1000a3a1
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 4]
cmp eax, ecx
jl case.default.0x1000a3a1
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
test edi, edi
jg 0x1000a395
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
lea eax, [ebx - 1]
cmp eax, 3
ja case.default.0x1000a3a1
jmp dword [eax*4 + 0x1000a434]
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
add ecx, 0x20
push ecx
push edi
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
push edx
push edi
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
push edx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov edx, dword [ebp + 8]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push eax
push 0xb1
push edx
call ebx
mov al, byte [edi + esi]
mov byte [edi + esi], 0
mov ecx, dword [ebp + 8]
push esi
push 0
push 0xc2
push ecx
mov byte [esp + 0x24], al
call ebx
mov dl, byte [esp + 0x14]
mov byte [edi + esi], dl
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
cmp edx, 0xffffffff
je case.default.0x1000a3a1
push 0
push edi
push esi
push edx
call sub.WS2_32.dll_send
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x1000dcc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10029c8e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.100166a0
lea eax, [esi + 0x18]
xor edi, edi
push eax
mov dword [esp + 0x1c], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], 0x1002c208
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov cl, byte [esp + 0xb]
mov byte [esi + 0x30], cl
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
push esi
push 0x1000e360
mov ecx, esi
mov byte [esp + 0x20], 2
mov dword [esi + 0x60], 0xffffffff
mov dword [esi + 0x64], 1
call fcn.100166c0
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x1000f0a0
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
jne 0x1000f0b6
pop esi
mov eax, 0xfffffffe
pop ebx
ret 8
cmp dword [esi + 0x14], 3
jl 0x1000f0fe
mov bl, byte [esp + 0xc]
xor ecx, ecx
test bl, bl
mov dx, word [esp + 0x10]
push 4
setne cl
mov word [esp + 0x10], cx
lea ecx, [esp + 0x10]
push ecx
push 0x80
push 0xffff
push eax
mov word [esp + 0x22], dx
call sub.WS2_32.dll_setsockopt
test eax, eax
je 0x1000f0fb
pop esi
mov eax, 0xfffffffa
pop ebx
ret 8
mov byte [esi + 4], bl
pop esi
xor eax, eax
pop ebx
ret 8

Function at 0x1000f160
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push ebp
push esi
mov esi, dword [esp + 0x118]
push edi
mov edi, dword [esp + 0x120]
xor eax, eax
test edi, edi
mov dword [esp + 0x14], eax
jle 0x1000f19f
mov ecx, esi
mov edx, edi
cmp eax, 0x40
jae 0x1000f199
mov ebp, dword [ecx]
mov dword [esp + eax*4 + 0x18], ebp
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
add ecx, 4
dec edx
jne 0x1000f185
mov ecx, dword [esp + 0x124]
test ecx, ecx
jle 0x1000f1cf
mov eax, 0x431bde83
imul ecx
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov dword [esp + 0xc], edx
mov ecx, 0xf4240
cdq
idiv ecx
mov dword [esp + 0x10], edx
jmp 0x1000f1df
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov al, byte [esp + 0x128]
test al, al
je 0x1000f1fa
lea edx, [esp + 0xc]
lea eax, [esp + 0x14]
push edx
push 0
push eax
push 0
jmp 0x1000f208
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push 0
push 0
push edx
push 0x40
call sub.WS2_32.dll_select
mov ebp, eax
test ebp, ebp
jne 0x1000f21f
pop edi
pop esi
pop ebp
add esp, 0x10c
ret
cmp ebp, 0xffffffff
jne 0x1000f23c
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2734
jne 0x1000f23c
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x10c
ret
test edi, edi
jle 0x1000f25c
mov ecx, dword [esi]
lea eax, [esp + 0x14]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
neg eax
sbb eax, eax
add esi, 4
neg eax
mov dword [esi - 4], eax
dec edi
jne 0x1000f240
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x10c
ret
Function at 0x1000f270
Capabilities:
Resolve dns

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x1000f296
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
jne 0x1000f28f
or eax, 0xffffffff
pop esi
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
pop esi
ret

Function at 0x1000f2f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x14], 3
je 0x1000f302
mov eax, 0xfffffff9
pop esi
pop ecx
ret
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
jne 0x1000f312
mov eax, 0xfffffffe
pop esi
pop ecx
ret
xor ecx, ecx
lea edx, [esi + 0x1c]
mov word [esi + 0x1e], cx
mov dword [esi + 0x20], ecx
lea ecx, [esp + 4]
mov dword [esp + 4], 0x10
push ecx
push edx
push eax
call sub.WS2_32.dll_getsockname
push 5
push 1
mov ecx, esi
call fcn.1000f0a0
mov ax, word [esi + 0x1e]
push eax
call sub.WS2_32.dll_ntohs
and eax, 0xffff
pop esi
pop ecx
ret
Function at 0x1000f350
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x30], 0xffffffff
jne 0x1000f368
pop edi
pop esi
mov eax, 0xfffffff6
pop ebx
pop ecx
ret 0xc
mov eax, dword [esi + 0x10]
xor ebx, ebx
cmp eax, ebx
je 0x1000f378
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edi, 1
push ebx
push edi
push 2
call sub.WS2_32.dll_socket
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
je 0x1000f391
mov dword [esi + 0x10], edi
cmp dword [esi + 0x10], ebx
jne 0x1000f3a2
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
pop ecx
ret 0xc
cmp dword [esp + 0x18], ebx
jne 0x1000f3e4
cmp dword [esp + 0x14], ebx
jge 0x1000f3e4
lea ecx, [esi + 0x2c]
push 0x10
push ecx
push eax
call sub.WS2_32.dll_connect
test eax, eax
je 0x1000f49b
mov edi, 0xfffffff9
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
cmp edi, 0xffffffff
jne 0x1000f3db
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi + 8], eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret 0xc
lea edx, [esp + 0xc]
push ebp
push edx
push 0x8004667e
push eax
mov dword [esp + 0x1c], edi
call sub.WS2_32.dll_ioctlsocket
mov ecx, dword [esi + 0xc]
lea eax, [esi + 0x2c]
push 0x10
push eax
push ecx
call sub.WS2_32.dll_connect
test eax, eax
je 0x1000f41f
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x1000f41f
mov edi, 0xfffffff9
jmp 0x1000f479
mov ebp, dword [sym.imp.MSVCRT.dll_time]
push ebx
call ebp
add esp, 4
mov ecx, esi
mov ebx, eax
push edi
push 0x30d40
call fcn.1000f110
mov edi, eax
test edi, edi
jne 0x1000f475
push 0
call ebp
mov ecx, dword [esp + 0x1c]
sub eax, ebx
add esp, 4
cmp eax, ecx
ja 0x1000f4be
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1000f45f
cmp dword [eax + 0x14], 1
jle 0x1000f4be
push 1
push 0x30d40
mov ecx, esi
call fcn.1000f110
mov edi, eax
test edi, edi
je 0x1000f440
test edi, edi
jle 0x1000f479
xor edi, edi
mov eax, dword [esi + 0xc]
lea edx, [esp + 0x10]
push edx
xor ebx, ebx
push 0x8004667e
push eax
mov dword [esp + 0x1c], ebx
call sub.WS2_32.dll_ioctlsocket
cmp edi, ebx
pop ebp
jne 0x1000f3c7
mov al, byte [esp + 0x1c]
mov dword [esi + 0x14], 3
test al, al
je 0x1000f508
mov eax, dword [esi + 0xc]
cmp eax, 0xffffffff
jne 0x1000f4c9
mov eax, 0xfffffffe
mov edi, eax
jmp 0x1000f3ce
test edi, edi
jne 0x1000f475
mov edi, 0xfffffff3
jmp 0x1000f479
lea ecx, [esp + 0x1c]
lea edx, [esi + 0x1c]
push ecx
push edx
push eax
mov dword [esp + 0x28], 0x10
mov word [esi + 0x1e], bx
mov dword [esi + 0x20], ebx
call sub.WS2_32.dll_getsockname
push 5
push 1
mov ecx, esi
call fcn.1000f0a0
mov ax, word [esi + 0x1e]
push eax
call sub.WS2_32.dll_ntohs
and eax, 0xffff
mov edi, eax
jmp 0x1000f3ce
mov ecx, esi
call fcn.1000f2f0
mov edi, eax
jmp 0x1000f3ce
Function at 0x1000f760
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x14], 2
je 0x1000f779
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x14
ret 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc], 0x10
test eax, eax
jl 0x1000f7fb
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_time]
push 0
call ebp
add esp, 4
mov ecx, edi
mov ebx, eax
push 0
push 0x30d40
call fcn.1000f110
mov esi, eax
test esi, esi
jne 0x1000f7d2
push 0
call ebp
mov ecx, dword [esp + 0x2c]
sub eax, ebx
add esp, 4
cmp eax, ecx
jg 0x1000f7d2
push 0
push 0x30d40
mov ecx, edi
call fcn.1000f110
mov esi, eax
test esi, esi
je 0x1000f7ad
cmp esi, 0xffffffff
pop ebp
jne 0x1000f7eb
call sub.WS2_32.dll_WSAGetLastError
mov dword [edi + 8], eax
or eax, esi
pop edi
pop esi
pop ebx
add esp, 0x14
ret 8
cmp esi, 1
je 0x1000f7fb
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x14
ret 8
mov edx, dword [edi + 0xc]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push edx
call sub.WS2_32.dll_accept
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1000f828
call sub.WS2_32.dll_WSAGetLastError
mov dword [edi + 8], eax
pop edi
or eax, ebx
pop esi
pop ebx
add esp, 0x14
ret 8
mov esi, dword [esp + 0x28]
xor edi, edi
cmp esi, edi
jne 0x1000f85c
push 0x44
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, edi
je 0x1000f849
mov ecx, eax
call fcn.1000efa0
jmp 0x1000f84b
xor eax, eax
cmp eax, edi
mov esi, eax
jne 0x1000f85c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x14
ret 8
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], 1
mov dword [esi + 0x14], 3
mov byte [esi + 0x18], 0
mov ecx, dword [esp + 0x10]
lea eax, [esi + 0x2c]
mov dword [esp + 0x24], 0x10
mov dword [eax], ecx
mov edx, dword [esp + 0x14]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x18]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x1c]
lea ecx, [esi + 0x1c]
mov dword [eax + 0xc], edx
mov edx, dword [esi + 0xc]
lea eax, [esp + 0x24]
mov word [esi + 0x1e], di
push eax
push ecx
push edx
mov dword [esi + 0x20], edi
call sub.WS2_32.dll_getsockname
push 5
push 1
mov ecx, esi
call fcn.1000f0a0
mov ax, word [esi + 0x1e]
push eax
call sub.WS2_32.dll_ntohs
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x14
ret 8
Function at 0x1000f8f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x14], 2
je 0x1000f909
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x14
ret 4
mov eax, dword [esp + 0x24]
mov dword [esp + 0xc], 0x10
test eax, eax
jl 0x1000f973
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_time]
push 0
call ebp
add esp, 4
mov ecx, esi
mov ebx, eax
push 0
push 0x30d40
call fcn.1000f110
mov edi, eax
test edi, edi
jne 0x1000f962
push 0
call ebp
mov ecx, dword [esp + 0x2c]
sub eax, ebx
add esp, 4
cmp eax, ecx
jg 0x1000f962
push 0
push 0x30d40
mov ecx, esi
call fcn.1000f110
mov edi, eax
test edi, edi
je 0x1000f93d
cmp edi, 1
pop ebp
je 0x1000f973
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x14
ret 4
mov edx, dword [esi + 0xc]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push edx
call sub.WS2_32.dll_accept
mov edi, eax
cmp edi, 0xffffffff
jne 0x1000f998
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x14
ret 4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
lea ecx, [esi + 0x2c]
xor ebx, ebx
mov dword [esi + 0xc], edi
mov dword [esi + 0x14], 3
mov dword [ecx], edx
mov edx, dword [esp + 0x18]
mov dword [esi + 0x10], 1
mov byte [esi + 0x18], 0
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x24], 0x10
mov word [esi + 0x1e], bx
mov dword [ecx + 8], edx
lea edx, [esi + 0x1c]
mov dword [esi + 0x20], ebx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x24]
push ecx
push edx
push edi
call sub.WS2_32.dll_getsockname
push 5
push 1
mov ecx, esi
call fcn.1000f0a0
mov ax, word [esi + 0x1e]
push eax
call sub.WS2_32.dll_ntohs
push ebx
mov ecx, esi
call fcn.1000f750
pop edi
pop esi
pop ebx
add esp, 0x14
ret 4
Function at 0x1000fa20
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x14], 3
jge 0x1000fa34
pop edi
mov eax, 0xfffffffe
pop esi
ret 0xc
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x1000fb1c
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x1000fb1c
mov edx, dword [esp + 0x14]
test edx, edx
jl 0x1000facc
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_time]
push ebp
push 0
call ebx
add esp, 4
mov ecx, esi
mov ebp, eax
push 0
push 0x30d40
call fcn.1000f110
mov edi, eax
test edi, edi
jne 0x1000fa9e
push 0
call ebx
mov ecx, dword [esp + 0x20]
sub eax, ebp
add esp, 4
cmp eax, ecx
jg 0x1000fa9e
push 0
push 0x30d40
mov ecx, esi
call fcn.1000f110
mov edi, eax
test edi, edi
je 0x1000fa79
pop ebp
cmp edi, 0xffffffff
pop ebx
jne 0x1000fab5
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi + 8], eax
pop edi
or eax, 0xffffffff
pop esi
ret 0xc
cmp edi, 1
je 0x1000fac4
pop edi
mov eax, 0xfffffff3
pop esi
ret 0xc
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
cmp dword [esi + 0x10], 1
jne 0x1000fae1
push 0
push eax
mov eax, dword [esi + 0xc]
push ecx
push eax
call sub.WS2_32.dll_recv
jmp 0x1000faff
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 0x10
push edx
lea edx, [esi + 0x2c]
push edx
push 0
push eax
mov eax, dword [esi + 0xc]
push ecx
push eax
call sub.WS2_32.dll_recvfrom
test eax, eax
jle 0x1000fb10
mov ecx, dword [esi + 0x3c]
pop edi
add ecx, eax
mov dword [esi + 0x3c], ecx
pop esi
ret 0xc
jne 0x1000faa5
pop edi
mov eax, 0xfffffffd
pop esi
ret 0xc
pop edi
mov eax, 0xfffffffc
pop esi
ret 0xc