joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x3063700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0306378f
jae 0x306370e
xor ecx, ecx
call fcn.0306378f
jae 0x306373d
xor eax, eax
call fcn.0306378f
jae 0x306374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0306378f
adc al, al
jae 0x306372f
jne 0x3063779
stosb byte es:[edi], al
jmp 0x3063711
call fcn.0306379b
sub ecx, ebx
jne 0x3063756
call fcn.03063799
jmp 0x3063775
lodsb al, byte [esi]
shr eax, 1
je 0x3063783
adc ecx, ecx
jmp 0x3063772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.03063799
cmp eax, 0x7d00
jae 0x3063772
cmp ah, 5
jae 0x3063773
cmp eax, 0x7f
ja 0x3063774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x3063711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x100042f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x1009e024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
call fcn.100503a3
add esp, 4
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0x240]
mov dword [ebp - 0x23c], edx
push eax
call fcn.1005066f
add esp, 4
cmp byte [0x100d22dc], 0
jne 0x10004552
jmp fcn.10271c77
mov eax, dword [0x10f1ff8]
test eax, eax
je 0x100046c1
shr eax, 0x10
test eax, eax
je 0x100046c1
mov eax, dword [0x10f370c]
test eax, eax
je 0x100046c1
shr eax, 0x10
test eax, eax
je 0x100046c1
mov eax, dword [0x100d20c0]
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ebx, dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, 4
je 0x100045f0
push 0x74
call edi
mov ecx, 0x8000
test cx, ax
je 0x100045eb
call esi
mov esi, eax
call ebx
cmp eax, esi
jne 0x100045e5
mov ecx, 4
mov dword [0x100c5594], 0
call fcn.10005c80
mov dword [0x100d20c0], 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004138c
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.USER32.dll_GetForegroundWindow]
mov eax, dword [0x100d20c0]
cmp eax, 1
je 0x10004641
push 0x75
call edi
mov ecx, 0x8000
test cx, ax
je 0x1000463c
call esi
mov esi, eax
call ebx
cmp eax, esi
jne 0x1000463c
mov ecx, 1
mov dword [0x100c5594], 0
call fcn.10005c80
mov dword [0x100d20c0], 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004138c
mov esp, ebp
pop ebp
ret
mov eax, dword [0x100d20c0]
cmp eax, 2
je 0x10004682
push 0x76
call edi
mov ecx, 0x8000
test cx, ax
je 0x1000467d
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
call ebx
cmp eax, esi
jne 0x1000467d
mov dword [0x100d20c0], 2
mov ecx, 2
mov dword [0x100c5594], 0
jmp 0x100046bc
mov eax, dword [0x100d20c0]
cmp eax, 3
je 0x100046c1
push 0x77
call edi
mov ecx, 0x8000
test cx, ax
je 0x100046c1
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
call ebx
cmp eax, esi
jne 0x100046c1
mov dword [0x100d20c0], 3
mov ecx, 3
mov dword [0x100c5594], 1
call fcn.10005c80
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004138c
mov esp, ebp
pop ebp
ret
Function at 0x10007b60
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x10007b6b
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.10007b80
Function at 0x1000fe90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x28]
push ebp
push esi
push edi
mov eax, dword [ebx + 0x78]
mov dword [esp + 0x34], eax
test eax, eax
je 0x10010020
lea eax, [esp + 0x20]
push eax
call fcn.1001b5d0
mov edi, dword [esp + 0x3c]
add esp, 4
mov esi, eax
push 0
movdqu xmm0, xmmword [esi]
push 0x3e8
push dword [esp + 0x44]
movdqu xmmword [esp + 0x1c], xmm0
push edi
call fcn.10041d80
movdqu xmm0, xmmword [esi]
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
movd esi, xmm0
add esi, eax
mov dword [esp + 0x10], esi
adc ebp, edx
imul eax, eax, 0x3e8
mov dword [esp + 0x14], ebp
sub edi, eax
imul eax, edi, 0x3e8
add ecx, eax
mov dword [esp + 0x18], ecx
cmp ecx, 0xf4240
jl 0x1000ff28
add esi, 1
mov dword [esp + 0x10], esi
adc ebp, 0
sub ecx, 0xf4240
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ecx
mov eax, dword [ebx + 0xdd0]
lea edx, [ebx + 0xdd0]
mov esi, dword [esp + 0x40]
test eax, eax
je 0x1000ff5c
lea esp, [esp]
mov ecx, dword [eax]
cmp dword [ecx + 0x20], esi
je 0x1000ff50
mov eax, dword [eax + 8]
test eax, eax
jne 0x1000ff40
jmp 0x1000ff5c
push 0
push eax
push edx
call fcn.1001b8a0
add esp, 0xc
push esi
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.100106f0
mov eax, dword [ebx + 0xd98]
add esp, 0xc
or eax, dword [ebx + 0xd9c]
movdqu xmm1, xmmword [esp + 0x10]
jne 0x1000ff88
cmp dword [ebx + 0xda0], 0
je 0x1000ffe8
movdqu xmm0, xmmword [ebx + 0xd98]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movdqu xmmword [eax], xmm0
mov eax, esp
movdqu xmmword [eax], xmm1
call fcn.1001b670
add esp, 0x20
test edx, edx
jg 0x10010020
jl 0x1000ffb4
test eax, eax
jne 0x10010020
mov esi, dword [esp + 0x34]
lea eax, [ebx + 0xda8]
lea ecx, [esi + 0x5c]
push ecx
push eax
push dword [ecx]
call fcn.1001c940
add esp, 0xc
test eax, eax
je 0x1000ffe0
push eax
push str.Internal_error_removing_splay_node___d_n
push ebx
call fcn.100171e0
add esp, 0xc
movdqu xmm1, xmmword [esp + 0x10]
jmp 0x1000ffec
mov esi, dword [esp + 0x34]
movdqu xmmword [ebx + 0xd98], xmm1
lea eax, [ebx + 0xda8]
mov dword [ebx + 0xdc8], ebx
movdqu xmm0, xmmword [ebx + 0xd98]
push eax
push dword [esi + 0x5c]
sub esp, 0x10
mov eax, esp
movdqu xmmword [eax], xmm0
call fcn.1001c830
add esp, 0x18
mov dword [esi + 0x5c], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret

Function at 0x10017070
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi + 0x608], 0
je 0x100170b4
push esi
push 1
push edi
call fcn.10010180
push dword [edi + 0x59c]
mov eax, dword [edi + 0x608]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.10010180
add esp, 0x24
mov eax, esi
pop esi
pop edi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x100170ed
push dword [edi + 0x598]
lea eax, [eax + eax*2]
push 1
add eax, 0x10079db8
push 2
push eax
call fcn.1004bbac
push dword [edi + 0x598]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.1004bbac
add esp, 0x20
xor eax, eax
pop edi
ret
Function at 0x100174a0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x104
mov eax, dword [0x1009e024]
xor eax, esp
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x10c]
push ebx
mov ebx, dword [esp + 0x11c]
push ebp
mov ebp, dword [esp + 0x110]
push esi
push edi
mov edi, dword [esp + 0x120]
mov esi, dword [ebp + eax*4 + 0x420]
push eax
push ebp
call fcn.10017a40
add esp, 8
push 0
push dword [esp + 0x128]
push edi
push esi
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
mov dword [ebx], 0
cmp esi, 0xffffffff
jne 0x1001754f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x1001751d
mov dword [ebx], 0x51
xor eax, eax
jmp 0x1001754f
push 0x100
lea eax, [esp + 0x14]
push eax
push edi
call fcn.10038050
push eax
push str.Send_failure:__s
push dword [ebp]
call fcn.10017100
mov eax, dword [ebp]
add esp, 0x18
mov dword [eax + 0xd44], edi
mov eax, esi
mov dword [ebx], 0x37
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1004138c
add esp, 0x104
ret

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

Disassembly:
mov ecx, dword [esp + 8]
mov eax, ecx
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
shl eax, 4
mov ebp, dword [ebx + ecx*4 + 0x420]
lea esi, [ebx + 0x448]
add esi, eax
mov eax, dword [ebx + 0x538]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x10017af8
cmp dword [ebx + ecx*4 + 0x438], 0x100173c0
jne 0x10017af8
cmp dword [esi], 0
je 0x10017a8c
test edi, edi
je 0x10017af8
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.10021680
add esp, 0x14
cmp eax, 0xffffffff
je 0x10017af8
test al, 1
je 0x10017af8
cmp dword [esi], 0
jne 0x10017ae1
mov eax, dword [ebx]
mov eax, dword [eax + 0x90c]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [section..data]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x10017ae1
pop edi
mov dword [esi + 4], eax
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x10017af8
add dword [esi + 8], eax
pop edi
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 0x470], 0
je 0x10017c70
xor al, al
ret
mov eax, dword [eax + 0x420]
cmp eax, 0xffffffff
je 0x10017c6d
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
setne al
ret
Function at 0x100187f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x20c
mov eax, dword [0x1009e024]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push esi
mov esi, dword [esp + 0x218]
push edi
cmp dword [esi + 0x2f8], 3
jne 0x10018a2e
cmp byte [esi + 0x4f5], 0
jne 0x10018a2e
cmp byte [esi + 0x50f], 0
jne 0x10018a2e
mov edi, dword [esp + 0x220]
lea eax, [esp + 0xc]
mov ebx, dword [esi]
push eax
lea eax, [esp + 0x98]
mov dword [esp + 0x10], 0x80
push eax
push edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x100188a1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x114]
push 0x100
push eax
push esi
call fcn.10038050
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.10017100
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.1004138c
add esp, 0x20c
ret
push 0x80
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x80
push 0
push eax
call fcn.10045b30
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x10018915
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x114]
push 0x100
push eax
push esi
call fcn.10038050
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.10017100
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.1004138c
add esp, 0x20c
ret
lea eax, [esi + 0x3a0]
push eax
lea edi, [esi + 0x372]
push edi
push dword [esp + 0x14]
lea eax, [esp + 0xa0]
push eax
call fcn.10017b00
add esp, 0x10
test al, al
jne 0x10018986
call fcn.10047afb
mov esi, eax
call fcn.10047afb
mov edi, eax
lea eax, [esp + 0x114]
push 0x100
push eax
push dword [esi]
call fcn.10038050
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.10017100
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.1004138c
add esp, 0x20c
ret
movdqu xmm0, xmmword [edi]
mov eax, dword [edi + 0x28]
movdqu xmmword [esi + 0x2c4], xmm0
movdqu xmm0, xmmword [edi + 0x10]
movdqu xmmword [esi + 0x2d4], xmm0
movq xmm0, qword [edi + 0x20]
movq qword [esi + 0x2e4], xmm0
mov dword [esi + 0x2ec], eax
mov ax, word [edi + 0x2c]
mov word [esi + 0x2f0], ax
lea eax, [esi + 0x3d4]
push eax
lea eax, [esi + 0x3a4]
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
call fcn.10017b00
add esp, 0x10
test al, al
jne 0x10018a2e
call fcn.10047afb
mov esi, eax
call fcn.10047afb
mov edi, eax
lea eax, [esp + 0x114]
push 0x100
push eax
push dword [esi]
call fcn.10038050
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.10017100
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.1004138c
add esp, 0x20c
ret
push esi
call fcn.10018430
mov ecx, dword [esp + 0x218]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1004138c
add esp, 0x20c
ret
Function at 0x10019390
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x1009e024]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
xor eax, eax
push edi
mov edi, dword [esp + 0x28]
push 4
cmp byte [esi + 0xb20], al
setne al
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x100193f0
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.100171e0
add esp, 0xc
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.1004138c
add esp, 0x18
ret
push dword [esi + 0xab8]
mov dword [esp + 0x14], 1
call fcn.10019640
push dword [esi + 0xabc]
imul eax, eax, 0x3e8
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
call fcn.10019640
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0xc
lea eax, [esp + 0x28]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x10019467
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.100171e0
add esp, 0x10
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
xor ecx, esp
call fcn.1004138c
add esp, 0x18
ret
Function at 0x10019870
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x1007a1fc
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x1001988a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x10097ef4
push esi
call fcn.10051bc0
add esp, 8
test eax, eax
je 0x100198d2
test ebp, ebp
je 0x100198c3
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x100198f8
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100198f8
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x100199af
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10019915
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x100199a5
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x100199a5
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10019947
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10019960
sub ecx, edx
add ecx, ebx
sub ecx, esi
lea ecx, [ecx]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x10019970
test ebp, ebp
je 0x1001999c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x1009e004]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x1009e004]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x1001bcf0
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x1001bd04
mov eax, dword [eax]
mov eax, dword [eax + 0x78]
mov al, byte [eax + 0xe7]
ret
push esi
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x1001bd21
xor esi, esi
xor eax, eax
test esi, esi
pop esi
setg al
ret
push eax
push 0
mov esi, 1
call fcn.10017b90
add esp, 8
xor eax, eax
test esi, esi
setg al
pop esi
ret
Function at 0x1001ff90
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration
Start tcp server

Disassembly:
sub esp, 0x34
mov eax, dword [0x1009e024]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
mov ebx, dword [esp + 0x48]
push esi
mov esi, dword [sym.imp.WS2_32.dll_socket]
push edi
push 6
push 1
push 2
mov dword [esp + 0x18], 0x10
mov dword [esp + 0x1c], 1
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x10020176
xorps xmm0, xmm0
mov eax, 2
movdqu xmmword [esp + 0x14], xmm0
push 0x7f000001
mov word [esp + 0x18], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x18], eax
xor eax, eax
push 4
mov word [esp + 0x1a], ax
lea eax, [esp + 0x14]
push eax
push 4
push 0xffff
push edi
mov dword [ebx + 4], 0xffffffff
mov dword [ebx], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x10020164
push 0x10
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x10020164
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x10020164
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x10020164
push 0
push 1
push 2
call esi
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x10020164
push 0x10
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x10020164
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x10020164
push ebx
push 0x1007b124
lea eax, [esp + 0x2c]
push 0xc
push eax
call fcn.10022d10
lea esi, [esp + 0x34]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x100200c2
push 0
sub esi, ecx
lea eax, [esp + 0x28]
push esi
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
jne 0x10020164
push 0
push 0xc
lea eax, [esp + 0x38]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, esi
jne 0x10020164
lea ecx, [esp + 0x24]
lea edx, [esp + 0x30]
sub esi, 4
jb 0x10020117
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1002011c
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10020106
cmp esi, 0xfffffffc
je 0x10020149
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10020164
cmp esi, 0xfffffffd
je 0x10020149
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10020164
cmp esi, 0xfffffffe
je 0x10020149
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x10020164
cmp esi, 0xffffffff
je 0x10020149
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x10020164
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.1004138c
add esp, 0x34
ret
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push edi
call esi
push dword [ebx]
call esi
push dword [ebx + 4]
call esi
mov ecx, dword [esp + 0x3c]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1004138c
add esp, 0x34
ret
Function at 0x10021570
Capabilities:
Get socket status

Disassembly:
mov eax, dword [esp + 0x18]
test eax, eax
jl 0x1002158f
jg 0x10021586
mov ecx, dword [esp + 0x14]
cmp ecx, 0x7fffffff
jb 0x10021593
mov ecx, closesocket
xor eax, eax
jmp 0x10021593
mov ecx, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x18]
test ebx, ebx
je 0x100215ab
cmp dword [ebx], 0
jne 0x100215c5
test edi, edi
je 0x100215b4
cmp dword [edi], 0
jne 0x100215c5
test esi, esi
je 0x1002164d
cmp dword [esi], 0
je 0x1002164d
push ebp
lea ebp, [esp + 0x24]
test eax, eax
jg 0x100215e2
jl 0x100215d4
test ecx, ecx
jae 0x100215d8
xor ebp, ebp
jmp 0x10021617
test eax, eax
jl 0x1002160b
jg 0x100215e2
test ecx, ecx
je 0x1002160b
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x24], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [esp + 0x28], eax
jmp 0x10021617
or ecx, eax
jne 0x10021617
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
test esi, esi
je 0x10021620
cmp dword [esi], 0
jne 0x10021622
xor esi, esi
test edi, edi
je 0x1002162b
cmp dword [edi], 0
jne 0x1002162d
xor edi, edi
test ebx, ebx
je 0x10021636
cmp dword [ebx], 0
jne 0x10021638
xor ebx, ebx
mov eax, dword [esp + 0x14]
push ebp
push esi
push edi
push ebx
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
pop ebp
pop edi
pop esi
pop ebx
ret
test ecx, ecx
je 0x1002166c
jns 0x10021665
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
ret
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
xor eax, eax
pop ebx
ret