joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48c370
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov ecx, 0x40
push esi
push edi
mov esi, 0x5c5690
mov byte [ebp - 1], 0
mov edi, ebx
mov dword [ebx + 0x200], 1
mov dword [ebx + 0x204], 1
mov word [ebx + 0x208], 0
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0x10]
xor esi, esi
nop
xor edx, edx
mov cl, byte [esi + ebx]
mov eax, esi
div edi
mov eax, dword [ebp + 0xc]
movzx eax, byte [edx + eax]
mov dl, byte [ebp - 1]
add al, cl
add dl, al
mov byte [ebp - 1], dl
movzx edx, dl
movzx eax, byte [edx + ebx]
mov byte [esi + ebx], al
inc esi
mov byte [edx + ebx], cl
cmp esi, 0x100
jb 0x48c3b0
lea edi, [ebx + 0x100]
mov esi, ebx
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x48c400
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x200]
sub edx, eax
mov bh, byte [edi + 0x208]
add ecx, eax
sub esi, eax
mov dword [ebp + 8], ecx
mov dword [ebp + 0x10], esi
cmp eax, ecx
jae 0x48c468
sub edx, esi
mov dword [ebp + 0xc], edx
movzx esi, al
mov bl, byte [esi + edi]
add bh, bl
movzx edx, bh
movzx ecx, byte [edx + edi]
mov byte [esi + edi], cl
mov byte [edx + edi], bl
movzx ecx, byte [esi + edi]
mov edx, dword [ebp + 0x10]
add cl, bl
mov esi, dword [ebp + 0xc]
add edx, eax
movzx ecx, cl
inc eax
movzx ecx, byte [ecx + edi]
xor cl, byte [esi + edx]
mov byte [edx], cl
cmp eax, dword [ebp + 8]
jb 0x48c433
mov byte [edi + 0x208], bh
mov dword [edi + 0x200], eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x48c480
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x204]
lea esi, [edi + 0x100]
mov bh, byte [edi + 0x209]
add ecx, eax
mov dword [ebp - 4], esi
sub edx, eax
mov esi, dword [ebp + 0x10]
sub esi, eax
mov dword [ebp + 0x14], ecx
mov dword [ebp + 0x10], esi
cmp eax, ecx
jae 0x48c4fa
sub edx, esi
mov edi, edx
nop dword [eax]
mov edx, dword [ebp - 4]
movzx esi, al
add esi, edx
mov bl, byte [esi]
add bh, bl
movzx ecx, bh
add edx, ecx
movzx ecx, byte [edx]
mov byte [esi], cl
mov byte [edx], bl
movzx ecx, byte [esi]
mov edx, dword [ebp + 0x10]
add cl, bl
mov esi, dword [ebp - 4]
add edx, eax
movzx ecx, cl
inc eax
movzx ecx, byte [ecx + esi]
xor cl, byte [edi + edx]
mov byte [edx], cl
cmp eax, dword [ebp + 0x14]
jb 0x48c4c0
mov edi, dword [ebp + 8]
mov byte [edi + 0x209], bh
mov dword [edi + 0x204], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48c730
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x5d723c]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], edx
lea ecx, [esp + 0x24]
xor bl, bl
call fcn.00407ce0
lea ecx, [esp + 0x24]
call fcn.004158f0
test al, al
je 0x48c797
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.00417700
cmp dword [esp + 0x1c], 0
je 0x48c78e
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
cmovae eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov bl, 1
lea ecx, [esp + 0xc]
call fcn.00407c40
cmp dword [esi + 0x14], 8
jb 0x48c79f
mov esi, dword [esi]
push esi
call dword [esp + 0xc]
mov esi, eax
test bl, bl
je 0x48c7bf
cmp dword [esp + 0x38], 8
lea ecx, [esp + 0x24]
cmovae ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [esp + 0x24]
call fcn.00407c40
mov ecx, dword [esp + 0x3c]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.005126ae
mov esp, ebp
pop ebp
ret

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

Disassembly:
xor edx, edx
push esi
push 8
mov ecx, edx
pop esi
mov eax, ecx
shr ecx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor ecx, eax
sub esi, 1
jne 0x4902a8
mov dword [edx*4 + 0x5efc80], ecx
inc edx
cmp edx, 0x100
jb 0x4902a3
mov esi, 0x800
jmp 0x4902f1
mov ecx, dword [edx*4 + 0x5ef880]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x5efc80]
mov dword [edx*4 + 0x5efc80], ecx
inc edx
cmp edx, esi
jb 0x4902d5
mov dword [0x5dc5bc], 0x490fbb
call fcn.00490e34
mov ecx, dword [0x5dc5bc]
test eax, eax
mov edx, 0x491054
cmove ecx, edx
mov dword [0x5dc5bc], ecx
pop esi
ret
Function at 0x491314
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x10
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
mov esi, dword [esi]
and esi, 7
cmp eax, 5
jae 0x491335
xor eax, eax
jmp 0x49148a
add dword [ebp + 0x10], 5
lea ecx, [eax - 4]
mov edx, dword [ebp + 8]
push ebx
or ebx, 0xffffffff
add ecx, edx
mov dword [ebp - 8], ecx
add edx, edi
mov dword [ebp - 4], edx
cmp edx, ecx
jae 0x491361
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x49135e
inc edx
cmp edx, ecx
jb 0x491351
mov dword [ebp - 4], edx
mov edi, edx
sub edi, dword [ebp + 8]
cmp edx, ecx
jae 0x49146e
mov ecx, edi
sub ecx, ebx
cmp ecx, 3
jbe 0x491399
xor esi, esi
mov al, byte [edx + 4]
mov ebx, edi
mov dword [ebp - 0x10], ebx
test al, al
je 0x4913d6
cmp al, 0xff
je 0x4913d6
and esi, 3
xor eax, eax
add esi, esi
or esi, 1
inc eax
jmp 0x491467
dec ecx
shl esi, cl
and esi, 7
je 0x491379
movzx eax, byte [esi + 0x590008]
mov ecx, edx
sub ecx, eax
cmp byte [esi + 0x590000], 0
mov al, byte [ecx + 4]
je 0x4913c0
test al, al
je 0x4913c0
cmp al, 0xff
jne 0x491379
and esi, 3
mov ebx, edi
add esi, esi
or esi, 1
inc edi
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
jmp 0x491348
movzx ebx, al
movzx eax, byte [edx + 3]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 1]
mov edx, dword [ebp + 0x10]
shl ebx, 8
or ebx, eax
cmp dword [ebp + 0x18], 0
je 0x491403
add ebx, edi
add ebx, edx
jmp 0x491407
sub ebx, edi
sub ebx, edx
mov dword [ebp + 0xc], ebx
test esi, esi
je 0x49143d
movzx eax, byte [esi + 0x590008]
shl eax, 3
push 0x18
pop ecx
sub ecx, eax
mov dword [ebp - 0xc], eax
mov eax, ebx
shr eax, cl
test al, al
je 0x49142c
cmp al, 0xff
jne 0x49143d
xor ebx, ebx
push 0x20
pop ecx
sub ecx, dword [ebp - 0xc]
inc ebx
shl ebx, cl
dec ebx
xor ebx, dword [ebp + 0xc]
jmp 0x4913f7
mov edx, dword [ebp - 4]
mov eax, ebx
shr eax, 0x18
and al, 1
dec al
not al
mov byte [edx + 1], bl
mov byte [edx + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [edx + 3], al
mov eax, ebx
mov ebx, dword [ebp - 0x10]
shr eax, 8
push 5
mov byte [edx + 2], al
pop eax
add edi, eax
jmp 0x4913cb
mov edx, edi
xor eax, eax
sub edx, ebx
pop ebx
lea ecx, [edx - 1]
shl esi, cl
and esi, 7
cmp edx, 3
cmova esi, eax
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x499b13
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x499b7a
push esi
call fcn.00499df6
pop ecx
test al, al
jne 0x499b7a
push ebx
push edi
lea eax, [ebp + 8]
push eax
push esi
call fcn.00499d95
pop ecx
mov esi, eax
mov ebx, 0x1505
pop ecx
mov ecx, dword [ebp + 8]
xor eax, eax
and dword [ebp + 8], 0
add ecx, esi
mov edi, ecx
sub edi, esi
cmp esi, ecx
cmova edi, eax
test edi, edi
je 0x499b73
mov al, byte [esi]
push eax
call fcn.004a5064
imul ebx, ebx, 0x21
pop ecx
movsx ecx, al
mov eax, dword [ebp + 8]
xor ebx, ecx
inc esi
inc eax
mov dword [ebp + 8], eax
cmp eax, edi
jb 0x499b56
pop edi
movzx eax, bl
pop ebx
jmp 0x499b7c
xor eax, eax
pop esi
pop ebp
ret
Function at 0x49a88e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x49a8af
cmp dword [esi + 0x8c], 0
je 0x49a8af
push 2
push 3
push esi
call fcn.004a5534
add esp, 0xc
push dword [ebp + 0xc]
call fcn.004a594e
pop ecx
test esi, esi
je 0x49a8cf
cmp dword [esi + 0x8c], 0
je 0x49a8cf
push 3
push esi
call fcn.004a556f
pop ecx
pop ecx
pop esi
pop ebp
ret
Function at 0x4a2abe
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi + 0x608], edi
je 0x4a2afd
push 1
push esi
call fcn.00496515
push dword [esi + 0x59c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [esi + 0x608]
push 0
push esi
mov edi, eax
call fcn.00496515
add esp, 0x24
jmp 0x4a2b33
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x4a2b33
push dword [esi + 0x598]
imul eax, eax, 3
push 1
push 2
add eax, 0x59132c
push eax
call fcn.005206f5
push dword [esi + 0x598]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.005206f5
add esp, 0x20
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x4a2f03
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x5d723c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [ebx + eax*4 + 0x1a8]
push eax
push ebx
mov dword [ebp - 0x88], ecx
call fcn.004a33b7
pop ecx
pop ecx
push 0
push dword [ebp + 0x14]
push edi
push esi
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
mov eax, dword [ebp - 0x88]
and dword [eax], 0
cmp esi, 0xffffffff
jne 0x4a2fae
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x4a2f78
mov eax, dword [ebp - 0x88]
xor esi, esi
mov dword [eax], 0x51
jmp 0x4a2fae
push 0x80
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.004c5610
push eax
push str.Send_failure:__s
push dword [ebx]
call fcn.004a2b39
mov eax, dword [ebx]
add esp, 0x18
mov dword [eax + 0xcac], edi
mov eax, dword [ebp - 0x88]
mov dword [eax], 0x37
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005126ae
mov esp, ebp
pop ebp
ret
Function at 0x4a33b7
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
add edi, edi
mov eax, dword [esi + 0x2a8]
mov edx, dword [esi + ecx*4 + 0x1a8]
mov dword [ebp + 8], edx
mov ebx, dword [esi + edi*8 + 0x1d0]
sub ebx, dword [esi + edi*8 + 0x1d4]
test byte [eax + 0x40], 3
je 0x4a349f
cmp dword [esi + ecx*4 + 0x1bc], 0x4a2e3e
jne 0x4a349f
xor eax, eax
cmp dword [esi + edi*8 + 0x1cc], eax
je 0x4a3413
test ebx, ebx
je 0x4a349f
push eax
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.004a26de
add esp, 0x14
cmp eax, 0xffffffff
je 0x4a349f
test al, 1
je 0x4a349f
xor ecx, ecx
cmp dword [esi + edi*8 + 0x1cc], ecx
jne 0x4a347a
mov eax, dword [esi]
mov eax, dword [eax + 0x8e4]
add eax, eax
push eax
mov dword [esi + edi*8 + 0x1d0], eax
call dword [0x5d7030]
mov ebx, dword [esi + edi*8 + 0x1d0]
pop ecx
xor ecx, ecx
mov dword [esi + edi*8 + 0x1cc], eax
mov dword [esi + edi*8 + 0x1d4], ecx
mov dword [esi + edi*8 + 0x1d8], ecx
test eax, eax
jne 0x4a347a
mov dword [esi + edi*8 + 0x1d0], ecx
jmp 0x4a349f
mov eax, dword [esi + edi*8 + 0x1cc]
add eax, dword [esi + edi*8 + 0x1d4]
push ecx
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4a349f
add dword [esi + edi*8 + 0x1d4], eax
pop edi
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test byte [eax + 0x1f8], 1
je 0x4a3581
push eax
call fcn.0049cdb7
pop ecx
test eax, eax
jne 0x4a359d
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x4a357d
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
jmp 0x4a3579
mov al, 1
pop ebp
ret

Function at 0x4a3c7e
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
mov eax, dword [0x5dc6d0]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 0xc], 4
push esi
push 2
pop esi
test eax, eax
jne 0x4a3cc5
push 3
push esi
push eax
push 6
call fcn.004a4dda
add esp, 0x10
test al, al
je 0x4a3cbd
mov dword [0x5dc6d0], esi
jmp 0x4a3d05
xor eax, eax
inc eax
mov dword [0x5dc6d0], eax
cmp eax, esi
je 0x4a3d05
push ebx
lea eax, [ebp - 0xc]
mov esi, 0x1001
push eax
lea eax, [ebp - 4]
mov ebx, 0xffff
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4a3cf3
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x4a3d04
push 4
lea eax, [ebp - 8]
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4a3ed9
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
mov eax, dword [0x5d723c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
cmp dword [ebx + 0x90], 2
mov edi, dword [ebx]
mov dword [ebp - 0x18c], edi
je 0x4a4072
test dword [ebx + 0x284], 0x8000002
push esi
jne 0x4a406a
lea eax, [ebp - 0x188]
mov esi, 0x80
push eax
lea eax, [ebp - 0x184]
mov dword [ebp - 0x188], esi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4a3f60
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x84]
push 0x80
push eax
push esi
call fcn.004c5610
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
jmp 0x4a3fb4
push esi
lea eax, [ebp - 0x104]
mov dword [ebp - 0x188], esi
push 0
push eax
call fcn.00518c00
add esp, 0xc
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4a3fba
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x84]
push 0x80
push eax
push esi
call fcn.004c5610
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
jmp 0x4a4060
lea eax, [ebx + 0x138]
push eax
lea esi, [ebx + 0x10a]
lea eax, [ebp - 0x184]
push esi
push eax
call fcn.004a44c5
add esp, 0xc
test al, al
jne 0x4a4006
call fcn.0051bea2
mov esi, eax
call fcn.0051bea2
mov edi, eax
lea eax, [ebp - 0x84]
push 0x80
push eax
push dword [esi]
call fcn.004c5610
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
jmp 0x4a405a
push 0xb
pop ecx
lea edi, [ebx + 0x5c]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x16c]
push eax
lea eax, [ebx + 0x13c]
push eax
lea eax, [ebp - 0x104]
movsw word es:[edi], word [esi]
push eax
call fcn.004a44c5
add esp, 0xc
test al, al
jne 0x4a406a
call fcn.0051bea2
mov esi, eax
call fcn.0051bea2
mov edi, eax
lea eax, [ebp - 0x84]
push 0x80
push eax
push dword [esi]
call fcn.004c5610
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x18c]
call fcn.004a2b39
add esp, 0x1c
jmp 0x4a4071
push ebx
call fcn.004a3c0b
pop ecx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.005126ae
mov esp, ebp
pop ebp
ret
Function at 0x4a4838
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5d723c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 4
mov eax, dword [esi + 0xa90]
shr eax, 0xd
and eax, 1
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4a4888
push dword [ebp + 0xc]
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.004a2c0f
add esp, 0xc
jmp 0x4a48f9
push dword [esi + 0xa50]
mov dword [ebp - 0x10], 1
call fcn.004a4ab1
push dword [esi + 0xa54]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.004a4ab1
pop ecx
pop ecx
imul eax, eax, 0x3e8
xor ecx, ecx
push ecx
push ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push ecx
push ecx
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x4a48f9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [ebp + 0xc]
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.004a2c0f
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005126ae
mov esp, ebp
pop ebp
ret

Function at 0x4a4908
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x5d723c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
push esi
push 4
inc ecx
mov esi, dword [eax]
lea eax, [ebp - 0x88]
push eax
push ecx
push 6
push dword [ebp + 0xc]
mov dword [ebp - 0x88], ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4a496c
push 0x80
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004c5610
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004a2c0f
add esp, 0x18
jmp 0x4a4979
push str.TCP_NODELAY_set_n
push esi
call fcn.004a2c0f
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005126ae
mov esp, ebp
pop ebp
ret

Function at 0x4a4a97
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00536909
Function at 0x4a4ca3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push str.kernel32
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
test eax, eax
je 0x4a4dd5
push ebx
push edi
push 0x59175c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [ebp + 8]
mov ebx, eax
push 0x5c4af8
push edi
mov dword [ebp - 8], ebx
call fcn.00531614
pop ecx
pop ecx
test eax, eax
je 0x4a4cf9
test ebx, ebx
je 0x4a4cf0
push 8
jmp 0x4a4d14
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x4a4d18
test ebx, ebx
je 0x4a4d1f
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4a4d1f
push 0x800
push esi
push edi
call ebx
mov esi, eax
jmp 0x4a4dd1
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x4a4dd1
mov ecx, edi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4a4d39
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [0x5d7030]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x4a4dc9
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4a4dc9
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4a4d73
sub ecx, edx
sar ecx, 1
mov dword [ebx + ecx*2], 0x5c
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4a4d8e
sub ecx, edx
sar ecx, 1
lea ecx, [ebx + ecx*2]
sub ecx, edi
movzx eax, word [edi]
mov word [ecx + edi], ax
lea edi, [edi + 2]
test ax, ax
jne 0x4a4da2
mov eax, dword [ebp - 8]
test eax, eax
je 0x4a4dc0
push 8
push esi
push ebx
call eax
jmp 0x4a4dc7
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
push ebx
call dword [0x5d7034]
pop ecx
pop edi
mov eax, esi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4a4f0d
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x5d723c]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 8], 2
je 0x4a4f5a
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4a4f41
push 2
pop eax
jmp 0x4a4f93
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x4a4f52
shr eax, 8
cmp al, 2
je 0x4a4f5a
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x4a4f3c
call fcn.004c6a7e
test eax, eax
jne 0x4a4f93
push 3
push 2
push eax
push 6
call fcn.004a4dda
add esp, 0x10
test al, al
je 0x4a4f8a
push 0x5f1c88
mov byte [0x5f1c80], 1
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
jmp 0x4a4f91
mov byte [0x5f1c80], 0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005126ae
mov esp, ebp
pop ebp
ret
Function at 0x4b0195
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
push edi
xor edi, edi
and dword [ebp - 0xc], edi
and dword [eax], edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x4b02ff
push esi
mov esi, dword [ebp - 8]
mov dword [ebp - 0x10], esi
test esi, esi
je 0x4b02eb
push ebx
cmp dword [esi + 4], 2
jne 0x4b028a
cmp dword [esi + 0x18], 0
je 0x4b028a
cmp dword [esi + 0x10], 0
jbe 0x4b028a
cmp dword [esi + 0x10], 0x10
jb 0x4b028a
push 0x20
call dword [0x5d7030]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x4b02df
mov ecx, dword [esi]
mov dword [ebx], ecx
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [ebx + 8], ecx
mov eax, dword [esi + 0xc]
and dword [ebx + 0x18], 0
and dword [ebx + 0x14], 0
and dword [ebx + 0x1c], 0
push 0x10
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 0x10
call dword [0x5d7030]
mov dword [ebx + 0x18], eax
pop ecx
test eax, eax
je 0x4b02d3
mov esi, dword [esi + 0x18]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x10]
cmp dword [esi + 0x14], 0
je 0x4b0272
push dword [esi + 0x14]
call dword [0x5d703c]
mov dword [ebx + 0x14], eax
pop ecx
test eax, eax
je 0x4b02bc
mov edi, dword [ebp - 4]
test edi, edi
mov eax, dword [ebp - 0xc]
cmove edi, ebx
mov dword [ebp - 4], edi
test eax, eax
je 0x4b0287
mov dword [eax + 0x1c], ebx
mov dword [ebp - 0xc], ebx
mov esi, dword [esi + 0x1c]
mov dword [ebp - 0x10], esi
test esi, esi
jne 0x4b01d7
mov esi, dword [ebp - 0x14]
cmp dword [ebp - 8], 0
pop ebx
je 0x4b02ab
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x4b02e4
push dword [ebp - 4]
call fcn.004b0160
pop ecx
xor edi, edi
jmp 0x4b02f7
push 8
pop esi
push dword [ebx + 0x18]
call dword [0x5d7034]
push ebx
call dword [0x5d7034]
pop ecx
pop ecx
jmp 0x4b029b
push 8
pop esi
push ebx
call dword [0x5d7034]
jmp 0x4b02d0
push 8
pop esi
jmp 0x4b029b
mov edi, dword [ebp - 4]
test edi, edi
jne 0x4b02f7
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4b056a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
call fcn.00528854
add esp, 0x18
test eax, eax
je 0x4b058a
cmp eax, 0xffffffff
jne 0x4b058c
xor eax, eax
pop ebp
ret