joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412a60
Capabilities:
Encode data using xor

Disassembly:
push es
push es
xchg esi, ecx
pop ss
xor eax, 0xe6870606
and ebx, esi
push es
push es
xchg esi, esp
jl 0x412a64
push es
push es
pop esi
pop ebp
xchg ebp, ecx
push edi
add byte [edi], 6
adc eax, 0x8b9e53bd
iretd

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov edi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
cmp byte [ebp + 0xc], 0
mov esi, dword [ebp + 8]
je 0x42746b
mov ecx, dword [edi + 0x84]
cmp eax, ecx
je 0x42746b
cmp esi, dword [edi + 0xe8]
je 0x42746b
cmp byte [edi + 0xe0], 0
jne 0x42746b
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [edi + 0xe8]
cmp esi, eax
je 0x427562
test eax, eax
je 0x4274d8
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0x14
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
movlpd qword [ebp - 8], xmm0
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0xe8]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x11c]
push 1
push 0
push 0
push 0
push str.killfocus
push dword [edi + 0xe8]
mov ecx, edi
call fcn.00427040
mov dword [edi + 0xe8], 0
test esi, esi
je 0x427562
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
cmp eax, edi
jne 0x427562
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xdc]
call eax
test al, al
je 0x427562
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xe8]
call eax
test al, al
je 0x427562
xorps xmm0, xmm0
mov dword [edi + 0xe8], esi
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
movlpd qword [ebp - 8], xmm0
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0xe8]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x11c]
push 1
push 0
push 0
push 0
push str.setfocus
push dword [edi + 0xe8]
mov ecx, edi
call fcn.00427040
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x42ada0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42ade5
cmp byte [ebp + 8], 0
je 0x42add9
cmp byte [ebp + 0xc], 0
mov ecx, 1
mov eax, 4
cmovne eax, ecx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
xor eax, eax
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
Function at 0x43b680
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x6b8dd8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test ebx, ebx
je 0x43b77a
movzx eax, word [ebx]
test ax, ax
je 0x43b77a
push edi
mov edi, ebx
mov ecx, ebx
mov edx, eax
cmp dx, 0x2f
je 0x43b6c2
cmp dx, 0x5c
jne 0x43b6c4
mov edi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x43b6b6
cmp edi, ebx
je 0x43b713
sub edi, ebx
lea eax, [ebp - 0x20c]
sar edi, 1
push edi
push ebx
push eax
call fcn.00604e82
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x43b78a
xor eax, eax
mov word [ebp + edi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.0043b680
add esp, 8
lea ecx, [ebp - 0x414]
sub ecx, esi
nop dword [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x43b720
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x43b732
lea edi, [ebp - 0x414]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x43b750
mov ecx, ebx
lea eax, [ebp - 0x414]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.005db6f9
mov esp, ebp
pop ebp
ret
call fcn.005db82b
int3

Function at 0x43bf80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x43c019
cmp dword [esi + 4], 0xffffffff
jne 0x43c019
push edi
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x43bfb0
cmp dword [ebp + 0x10], 1
mov eax, dword [0x6a5d7c]
mov dword [edi], eax
mov edi, dword [ebp + 8]
jne 0x43bfe3
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x43bfe3
pop edi
mov eax, 0x2000000
pop esi
pop ebp
ret 0xc
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0043e950
add esp, 0x10
test eax, eax
jne 0x43c003
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret 0xc
push eax
call fcn.0043f210
add esp, 4
mov dword [esi], eax
mov eax, dword [0x6bc4bc]
pop edi
pop esi
pop ebp
ret 0xc
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x43ea90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, esi
imul ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x43eace
push 0
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43eac2
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
pop edi
div esi
pop esi
pop ebx
pop ebp
ret
mov edx, dword [edi + 0x18]
mov esi, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
sub esi, edx
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x14]
cmovbe esi, ebx
add ecx, edx
push esi
push ecx
push dword [ebp + 8]
call fcn.005f31f0
add dword [edi + 0x18], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x43ece0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x43ecee
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x43edad
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x628b48]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x628b48]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x628b48]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x628b48]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x628b48]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x628b48]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x628b48]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x628b48]
sub edi, 1
jne 0x43ed06
pop edi
test esi, esi
je 0x43edcb
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x628b48]
sub esi, 1
jne 0x43edb1
not eax
pop esi
pop ebp
ret

Function at 0x4495d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x694], 0
je 0x44963f
cmp dword [ebp + 8], 0x100
jne 0x44962f
cmp word [ebp + 0xc], 0xd
jne 0x44962f
cmp byte [esi + 0x69a], 0
je 0x44960e
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x44962f
cmp byte [esi + 0x69b], 0
jne 0x44962f
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x449628
push 1
push 0
push 0
push 0
push str.return
push esi
call fcn.00427040
xor eax, eax
pop esi
pop ebp
ret 0x10
mov eax, dword [esi + 0x694]
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
mov eax, 1
pop esi
pop ebp
ret 0x10
Function at 0x458710
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x6b8dd8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x45879b
cmp dword [esi + 0x10], 0
je 0x45879b
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.005dc370
mov ebx, esp
test ebx, ebx
je 0x45879b
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1e4
call fcn.00420b30
mov ecx, dword [esi + 0x10]
push 1
push 0
push 0
mov eax, dword [ecx]
push 0
push str.textchanged
push ecx
call dword [eax + 0x24]
mov ecx, eax
call fcn.00427040
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ecx, eax
call fcn.00423930
test al, al
je 0x45879b
mov ecx, dword [esi + 0x10]
call fcn.004366b0
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005db6f9
mov esp, ebp
pop ebp
ret 0x10

Function at 0x466f10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
mov edi, eax
mov edx, eax
and edi, 7
je 0x466f40
cmp eax, edi
jge 0x466f34
push esi
call fcn.00462c20
mov eax, dword [esi + 8]
add esp, 4
mov ecx, edi
shr dword [esi + 0xc], cl
sub eax, edi
mov dword [esi + 8], eax
mov edx, eax
xor ecx, ecx
test eax, eax
jle 0x466f6d
mov edi, dword [esi + 0xc]
nop dword [eax]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x466f50
mov dword [esi + 8], edx
cmp ecx, 4
jge 0x466f89
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x466f7a
xor dl, dl
jmp 0x466f7f
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x466f70
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x466fbe
pop edi
pop esi
mov dword [ebp + 8], str.zlib_corrupt
pop ebp
jmp fcn.00462b30
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x466fd6
pop edi
pop esi
mov dword [ebp + 8], str.read_past_buffer
pop ebp
jmp fcn.00462b30
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x466ff4
push edi
push ecx
push esi
call fcn.0046a330
add esp, 0xc
test eax, eax
jne 0x466ff4
pop edi
pop esi
pop ebp
ret
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.005f31f0
add dword [esi], edi
add esp, 0xc
add dword [esi + 0x10], edi
mov eax, 1
pop edi
pop esi
pop ebp
ret
Function at 0x478190
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0x1505
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp - 0xc]
jae 0x4781e3
mov edx, dword [ebp - 8]
shl edx, 5
add edx, dword [ebp - 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
mov cl, byte [eax]
mov byte [ebp - 1], cl
movzx edx, byte [ebp - 1]
push edx
call fcn.0048d5c0
add esp, 4
movsx eax, al
xor eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
jmp 0x4781a6
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 0x100
div ecx
mov eax, edx
mov esp, ebp
pop ebp
ret

Function at 0x4877a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x71a]
test ecx, ecx
je 0x487865
mov edx, dword [ebp + 8]
cmp dword [edx + 0x1b0], 0
je 0x487814
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.00471620
add esp, 8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14c]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1b0]
call edx
add esp, 0x14
mov dword [ebp - 8], eax
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00471620
add esp, 8
jmp 0x487865
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jl 0x487865
cmp dword [ebp - 4], 2
jle 0x487828
jmp 0x487865
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x148]
push eax
push 1
push 2
imul ecx, dword [ebp + 0xc], 3
add ecx, 0x62e0b8
push ecx
call fcn.00601b3f
add esp, 0x10
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x148]
push eax
push 1
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.00601b3f
add esp, 0x10
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x487bd0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x2733
jne 0x487b8e
mov dword [ebp - 8], 1
jmp 0x487b95
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0
jne 0x487ba4
mov dword [ebp - 0xc], 0
jmp 0x487bab
mov dword [ebp - 0xc], 1
mov al, byte [ebp - 0xc]
mov byte [ebp - 1], al
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
movzx edx, byte [ebp - 1]
test edx, edx
je 0x487bc9
mov eax, 0x51
jmp 0x487bda
mov eax, 0x38
jmp 0x487bda
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x487d60
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x6b8dd8]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
jne 0x487d73
xor ecx, ecx
jne 0x487d77
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x110]
mov eax, dword [edx + ecx*4 + 0x148]
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x110]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00488400
add esp, 0xc
test eax, eax
je 0x487dc9
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 0x1b
or eax, 0xffffffff
jmp 0x487e70
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x114]
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x108], eax
mov edx, dword [ebp + 0x18]
mov dword [edx], 0
cmp dword [ebp - 0x108], 0xffffffff
jne 0x487e6a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0x2733
jne 0x487e25
mov dword [ebp - 0x108], 0
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x51
jmp 0x487e6a
push 0x100
lea ecx, [ebp - 0x104]
push ecx
mov edx, dword [ebp - 0x10c]
push edx
call fcn.004a2180
add esp, 0xc
push eax
push str.Send_failure:__s
mov eax, dword [ebp + 8]
push eax
call fcn.00487870
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x10c]
mov dword [ecx + 0x96c], edx
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x37
mov eax, dword [ebp - 0x108]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005db6f9
mov esp, ebp
pop ebp
ret
Function at 0x488400
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4 + 0x148]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
shl eax, 4
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + eax + 0x170]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + 4]
sub edx, dword [ecx + 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x2a0]
mov edx, dword [ecx + 0x44]
and edx, 3
je 0x488549
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + eax*4 + 0x160], 0x487c30
jne 0x488549
mov edx, dword [ebp - 4]
cmp dword [edx], 0
je 0x488476
cmp dword [ebp - 8], 0
je 0x488549
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [ebp - 0x10]
push eax
call fcn.0049fcd0
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x488549
mov ecx, dword [ebp - 0xc]
and ecx, 1
je 0x488549
mov edx, dword [ebp - 4]
cmp dword [edx], 0
jne 0x4884fd
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x4e0]
shl ecx, 1
mov edx, dword [ebp - 4]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [0x6b5368]
add esp, 4
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x4884e0
mov eax, 0x1b
jmp 0x48854b
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
cmp dword [edx], 0
je 0x48853f
xor eax, eax
jne 0x488505
push 0
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
add eax, dword [ecx + 8]
push eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x48853d
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
add ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov dword [edx + 8], ecx
jmp 0x488549
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, 0x10
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx + 0x19c]
test eax, eax
je 0x488811
mov ecx, dword [ebp + 8]
push ecx
call fcn.0047e440
add esp, 4
test eax, eax
jne 0x48880f
xor al, al
jmp 0x488857
jmp 0x488855
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp + 8]
cmp dword [ecx + eax + 0x148], 0xffffffff
jne 0x48882c
xor al, al
jmp 0x488857
push 2
push 1
lea edx, [ebp - 1]
push edx
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx + 0x148]
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x488855
xor al, al
jmp 0x488857
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x488c10
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
mov eax, dword [0x6b8dd8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x188], 0x80
push 0x80
push 0
lea eax, [ebp - 0x184]
push eax
call fcn.005f3cf0
add esp, 0xc
lea ecx, [ebp - 0x188]
push ecx
lea edx, [ebp - 0x184]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x488ca1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x18c], eax
push 0x100
lea ecx, [ebp - 0x104]
push ecx
mov edx, dword [ebp - 0x18c]
push edx
call fcn.004a2180
add esp, 0xc
push eax
mov eax, dword [ebp - 0x18c]
push eax
push str.getsockname___failed_with_errno__d:__s
mov ecx, dword [ebp + 8]
push ecx
call fcn.00487870
add esp, 0x10
jmp 0x488cfc
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x188]
push ecx
lea edx, [ebp - 0x184]
push edx
call fcn.00488550
add esp, 0x10
movzx eax, al
test eax, eax
jne 0x488cfc
push 0x100
lea ecx, [ebp - 0x104]
push ecx
call fcn.0060278f
mov edx, dword [eax]
push edx
call fcn.004a2180
add esp, 0xc
push eax
call fcn.0060278f
mov eax, dword [eax]
push eax
push str.ssloc_inet_ntop___failed_with_errno__d:__s
mov ecx, dword [ebp + 8]
push ecx
call fcn.00487870
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005db6f9
mov esp, ebp
pop ebp
ret

Function at 0x489870
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
cmp dword [0x6bc70c], 0
jne 0x4898c3
push 3
push 2
push 0
push 0
push 6
call fcn.004cc020
add esp, 0x14
movzx eax, al
test eax, eax
je 0x4898b9
mov dword [0x6bc70c], 2
jmp 0x4898c3
mov dword [0x6bc70c], 1
cmp dword [0x6bc70c], 2
jne 0x4898ce
jmp 0x489912
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 4]
push edx
push 0x1001
push 0xffff
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4898f8
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 8]
jle 0x4898f8
jmp 0x489912
push 4
lea edx, [ebp - 8]
push edx
push 0x1001
push 0xffff
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret
Function at 0x48ac90
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x6b8dd8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x727]
test ecx, ecx
je 0x48acb7
mov dword [ebp - 0x18], 1
jmp 0x48acbe
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x14], edx
push 4
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x48acf9
mov edx, dword [ebp + 0xc]
push edx
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d
mov eax, dword [ebp + 8]
push eax
call fcn.00487990
add esp, 0xc
jmp 0x48ad8b
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x6c0]
push edx
call fcn.00470d10
add esp, 4
mov dword [ebp - 0x14], eax
imul eax, dword [ebp - 0x14], 0x3e8
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x6c4]
push eax
call fcn.00470d10
add esp, 4
mov dword [ebp - 0x14], eax
imul ecx, dword [ebp - 0x14], 0x3e8
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 8], edx
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 0x98000004
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x48ad8b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [ebp + 0xc]
push eax
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
mov ecx, dword [ebp + 8]
push ecx
call fcn.00487990
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005db6f9
mov esp, ebp
pop ebp
ret

Function at 0x48ada0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x6b8dd8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10c], 1
mov dword [ebp - 0x108], 6
push 4
lea eax, [ebp - 0x10c]
push eax
push 1
mov ecx, dword [ebp - 0x108]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x48ae14
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004a2180
add esp, 0xc
push eax
push str.Could_not_set_TCP_NODELAY:__s
mov ecx, dword [ebp + 8]
push ecx
call fcn.00487990
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005db6f9
mov esp, ebp
pop ebp
ret