joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46e680
Capabilities:
Parse credit card information

Disassembly:
push esi
mov esi, ecx
xor cl, cl
cmp dword [esi + 0x4c], 0xffffffff
je 0x46e889
push ebx
mov eax, dword [esi + 0x4c]
cmp eax, 0x7c
je 0x46e888
cmp eax, 0x29
jne 0x46e6b8
cmp dword [esi + 0x10], 0
jne 0x46e888
test dword [esi + 0x50], 0x10000000
je 0x46e88d
cmp eax, 0x2e
jne 0x46e70f
push 5
lea ecx, [esi + 0x24]
call fcn.00470e80
mov eax, dword [esi]
mov ecx, dword [esi + 8]
cmp eax, ecx
je 0x46e703
cmp byte [eax], 0x5c
jne 0x46e701
inc eax
cmp eax, ecx
je 0x46e701
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x46e6ee
mov dl, byte [eax]
cmp dl, 0x28
je 0x46e6ff
cmp dl, 0x29
je 0x46e6ff
test cl, 0x10
jne 0x46e701
mov cl, byte [eax]
cmp cl, 0x7b
je 0x46e6ff
cmp cl, 0x7d
jne 0x46e701
mov dword [esi], eax
inc dword [esi]
mov ecx, esi
call fcn.004713a0
jmp 0x46e875
cmp eax, 0x5c
jne 0x46e7b4
mov eax, dword [esi]
mov ecx, dword [esi + 8]
cmp eax, ecx
je 0x46e754
cmp byte [eax], 0x5c
jne 0x46e752
inc eax
cmp eax, ecx
je 0x46e752
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x46e73f
mov dl, byte [eax]
cmp dl, 0x28
je 0x46e750
cmp dl, 0x29
je 0x46e750
test cl, 0x10
jne 0x46e752
mov cl, byte [eax]
cmp cl, 0x7b
je 0x46e750
cmp cl, 0x7d
jne 0x46e752
mov dword [esi], eax
inc dword [esi]
mov ecx, esi
call fcn.004713a0
mov eax, dword [esi + 0x50]
and eax, 0x80
je 0x46e781
cmp byte [esi + 0x48], 0x62
jne 0x46e781
push 4
lea ecx, [esi + 0x24]
call fcn.00470e80
mov ecx, esi
call fcn.00470ef0
jmp 0x46e87c
test eax, eax
je 0x46e7a8
cmp byte [esi + 0x48], 0x42
jne 0x46e7a8
push 4
lea ecx, [esi + 0x24]
call fcn.00470e80
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.00470ef0
jmp 0x46e87c
mov ecx, esi
call fcn.0046e8b0
jmp 0x46e875
cmp eax, 0x5b
jne 0x46e7d7
mov ecx, esi
call fcn.00470ef0
mov ecx, esi
call fcn.0046eed0
push 4
push 0x5d
mov ecx, esi
call fcn.00470540
jmp 0x46e875
cmp eax, 0x28
jne 0x46e801
mov ecx, esi
call fcn.00470ef0
mov ecx, esi
call fcn.004715e0
push 5
push 0x29
mov ecx, esi
mov bl, al
call fcn.00470540
test bl, bl
je 0x46e87c
jmp 0x46e875
cmp eax, 0x5e
jne 0x46e819
push 2
lea ecx, [esi + 0x24]
call fcn.00470e80
mov ecx, esi
call fcn.00470ef0
jmp 0x46e87c
cmp eax, 0x24
jne 0x46e831
push 3
lea ecx, [esi + 0x24]
call fcn.00470e80
mov ecx, esi
call fcn.00470ef0
jmp 0x46e87c
cmp eax, 0x2a
je 0x46e8a2
cmp eax, 0x2b
je 0x46e8a2
cmp eax, 0x3f
je 0x46e8a2
cmp eax, 0x7b
je 0x46e8a2
cmp eax, 0x7d
jne 0x46e853
test dword [esi + 0x50], 0x10000000
je 0x46e894
cmp eax, 0x5d
jne 0x46e861
test dword [esi + 0x50], 0x10000000
je 0x46e89b
movzx eax, byte [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.0046dc10
mov ecx, esi
call fcn.00470ef0
mov ecx, esi
call fcn.00470f40
cmp dword [esi + 0x4c], 0xffffffff
mov cl, 1
jne 0x46e690
pop ebx
mov al, cl
pop esi
ret
push 5
call fcn.00412ade
push 6
call fcn.00412ade
push 4
call fcn.00412ade
push 0xa
call fcn.00412ade
int3
Function at 0x471880
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x4718b1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x4718a0
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x47b310
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x55509c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
cmp ebx, 0x4e
jne 0x47b358
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
push dword [ebp + 0x10]
mov ecx, edi
push esi
push ebx
call fcn.00427830
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413012
mov esp, ebp
pop ebp
ret 0xc
cmp ebx, 8
jne 0x47b446
push 0
push str.SysMonthCal32
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47b3dd
xorps xmm0, xmm0
lea eax, [ebp - 0x20]
push eax
movups xmmword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x20
push eax
push 0
push 0x100e
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x18]
cmp eax, 0x1010003
je 0x47b3c5
cmp eax, 0x2010003
jne 0x47b431
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413012
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x14]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x14]
jl 0x47b40b
cmp eax, dword [ebp - 0xc]
jg 0x47b40b
cmp eax, dword [ebp - 0x10]
jl 0x47b40b
cmp eax, dword [ebp - 8]
jle 0x47b431
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 8
call fcn.0047b660
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413012
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413012
mov esp, ebp
pop ebp
ret 0xc
cmp ebx, 0x101
jne 0x47b339
cmp esi, 0x2e
je 0x47b4a4
cmp esi, 8
je 0x47b4a4
cmp esi, 0x1b
jne 0x47b339
push dword [ebp + 0x10]
push esi
push ebx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov ecx, dword [edi + 0x30]
mov esi, eax
push 0
push 0
push 0x10
mov dword [ecx + 0x7dc], 3
mov ecx, edi
call fcn.00427c20
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413012
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0x10]
push esi
push 0x101
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov ecx, dword [edi + 0x30]
mov esi, eax
mov dword [ecx + 0x7dc], 2
mov ecx, dword [edi + 0x30]
call fcn.0047b6d0
push 0
push 0
push 0x10
mov ecx, edi
call fcn.00427c20
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413012
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47b4f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5184cb
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x55509c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [edi + 0x30], eax
mov dword [eax + 0x7dc], 0
cmp dword [edi + 4], 0
jne 0x47b59d
lea eax, [ebp - 0xa4]
push eax
call fcn.0047aff0
mov ecx, dword [edi + 0x30]
movups xmm0, xmmword [ebp - 0xa4]
push 0
push 0
sub esp, 0x10
mov eax, esp
push 0
movups xmmword [eax], xmm0
mov eax, dword [ecx]
push 0x40000000
push 0
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00426460
push eax
mov ecx, edi
call fcn.004276e0
mov esi, dword [edi + 0x30]
mov ecx, esi
call fcn.00457390
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00429e10
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x30]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00426650
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.00425c60
test bl, bl
je 0x47b5da
mov eax, dword [edi + 0x30]
add eax, 0x7cc
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [edi + 0x30]
add eax, 0x7cc
push eax
push 0
push 0x1002
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x38], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00413012
mov esp, ebp
pop ebp
ret 4
Function at 0x487650
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
and edi, 7
je 0x487677
cmp eax, edi
jge 0x48766f
push esi
call fcn.004835a0
add esp, 4
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x4876a0
mov edi, dword [esi + 0xc]
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 0x487683
mov dword [esi + 8], edx
cmp ecx, 4
jge 0x4876bc
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x4876ad
xor dl, dl
jmp 0x4876b2
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x4876a5
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 0x4876f1
pop edi
pop esi
mov dword [ebp + 8], str.zlib_corrupt
pop ebp
jmp fcn.004834b0
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x487709
pop edi
pop esi
mov dword [ebp + 8], str.read_past_buffer
pop ebp
jmp fcn.004834b0
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x487727
push edi
push ecx
push esi
call fcn.0048a8d0
add esp, 0xc
test eax, eax
jne 0x487727
pop edi
pop esi
pop ebp
ret
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.0048ca20
add dword [esi], edi
add esp, 0xc
add dword [esi + 0x10], edi
mov eax, 1
pop edi
pop esi
pop ebp
ret

Function at 0x4a4fa5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a4c65

Function at 0x4aa891
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004aa710
Function at 0x4b7510
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 3
jne 0x4b753c
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4b752d
pop edi
xor eax, eax
pop esi
pop ebp
ret
push dword [eax + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call ecx
jmp 0x4b7570
cmp dword [esi + 8], 0
jne 0x4b7560
push 0x51e43c
push dword [eax + 8]
call fcn.0049d009
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x4b7560
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push dword [esi + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.0049d1ec
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4b7592
mov eax, dword [esi + 8]
test eax, eax
je 0x4b758c
push eax
call fcn.0049cdc5
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x4b79a0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x55509c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4b79f0
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x4b79ea
shr eax, 8
cmp al, 2
jne 0x4b79ea
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413012
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.00413012
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push edi
mov esi, dword [edi + eax*4 + 0x168]
call fcn.004b8820
add esp, 8
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
cmp ebx, 0xffffffff
jne 0x4b85c4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x4b859c
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov dword [eax], 0x51
xor eax, eax
pop ebp
ret
push esi
push edi
call fcn.004c8090
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.004b8200
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x85b8], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x37
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
Function at 0x4b8820
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, edx
push ebx
push esi
shl eax, 4
lea esi, [ecx + 0x18c]
mov ebx, dword [ecx + edx*4 + 0x168]
add esi, eax
mov eax, dword [ecx + 0x230]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x3c], 3
je 0x4b88d0
cmp dword [ecx + edx*4 + 0x17c], 0x4b8490
jne 0x4b88d0
cmp dword [esi], 0
je 0x4b8868
test edi, edi
je 0x4b88d0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.004c66d0
add esp, 0x10
cmp eax, 0xffffffff
je 0x4b88d0
test al, 1
je 0x4b88d0
cmp dword [esi], 0
jne 0x4b88b9
push 0x8000
mov dword [esi + 4], 0x8000
call dword [0x555da0]
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 0x4b88b9
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4b88d0
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4b88e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x190]
test eax, eax
je 0x4b8909
push dword [esi + 0x11c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x4b893f
push dword [esi + 0x118]
lea eax, [eax + eax*2]
push 1
add eax, 0x53d574
push 2
push eax
call fcn.0049dd0b
push dword [esi + 0x118]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0049dd0b
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4be880
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4be89e
cmp dword [esi + 0x48], 0
je 0x4be89e
push 2
push 3
push esi
call fcn.004d1270
add esp, 0xc
push dword [ebp + 0xc]
call fcn.004c8bd0
add esp, 4
test esi, esi
je 0x4be8be
cmp dword [esi + 0x48], 0
je 0x4be8be
push 3
push esi
call fcn.004d12b0
add esp, 8
pop esi
pop ebp
ret
Function at 0x4c6c20
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x578]
test esi, esi
je 0x4c6c74
mov eax, dword [edi + 0x44]
test eax, eax
jne 0x4c6c41
cmp dword [edi + 0x40], eax
je 0x4c6c74
mov dword [ebp - 8], esi
mov byte [ebp - 4], 0
test eax, eax
jne 0x4c6c4f
mov eax, dword [edi + 0x40]
push 0x4c7a50
lea ecx, [ebp - 8]
add eax, 0x68
push ecx
push eax
call fcn.004cd590
add esp, 0xc
cmp byte [ebp - 4], 0
jne 0x4c6c7d
mov dword [edi + 0x578], 0
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4c6c86
mov dword [eax], esi
cmp byte [esi + 0x1ac], 0
mov edi, dword [esi + 0x168]
jne 0x4c6c74
cmp edi, 0xffffffff
je 0x4c6cad
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x4c6c74
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4c7100
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x56f52c]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x4c7151
push 3
push 2
push eax
push 6
call fcn.004e3990
add esp, 0x10
test al, al
je 0x4c7145
mov dword [0x56f52c], 2
mov esp, ebp
pop ebp
ret
mov dword [0x56f52c], 1
jmp 0x4c7156
cmp eax, 2
je 0x4c7196
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4c717d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x4c7196
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret

Function at 0x4c7260
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 8]
push 4
push eax
push 1
mov esi, dword [edi]
push 6
push dword [ebp + 0xc]
mov dword [ebp + 8], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4c72a8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004c8090
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004b82a0
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004b82a0
add esp, 8
pop edi
pop esi
pop ebp
ret
Function at 0x4c7390
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x55509c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x8c], 2
mov ebx, dword [edi]
je 0x4c756a
cmp byte [edi + 0x202], 0
push esi
jne 0x4c7560
cmp byte [edi + 0x21c], 0
jne 0x4c7560
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
mov dword [ebp - 0x108], 0x80
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4c7428
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.004c8090
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.004b8200
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413012
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], 0x80
push 0
push eax
call fcn.0048cfa0
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x84]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4c7491
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.004c8090
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.004b8200
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413012
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xfc]
push eax
lea esi, [edi + 0xcc]
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.004c7a70
add esp, 0xc
test al, al
jne 0x4c74e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.004c8090
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004b8200
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413012
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
movups xmmword [edi + 0x58], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [edi + 0x68], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [edi + 0x78], xmm0
mov dword [edi + 0x80], eax
mov ax, word [esi + 0x2c]
mov word [edi + 0x84], ax
lea eax, [edi + 0x130]
push eax
lea eax, [edi + 0x100]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.004c7a70
add esp, 0xc
test al, al
jne 0x4c7560
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.004c8090
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004b8200
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413012
mov esp, ebp
pop ebp
ret
push edi
call fcn.004c7040
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00413012
mov esp, ebp
pop ebp
ret
Function at 0x4c7df0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x55509c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 4
cmp byte [esi + 0x3ec], al
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4c7e4d
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.004b82a0
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413012
mov esp, ebp
pop ebp
ret
push dword [esi + 0x3f0]
mov dword [ebp - 0x10], 1
call fcn.004d0310
push dword [esi + 0x3f4]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.004d0310
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x4c7ebd
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.004b82a0
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00413012
mov esp, ebp
pop ebp
ret
Function at 0x4d02d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.004bdfe0
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.004aa248

Function at 0x4d1440
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [eax], ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x4d15bb
push edi
mov edi, dword [ebp - 8]
test edi, edi
je 0x4d15a7
push esi
nop dword [eax]
cmp dword [edi + 4], 2
jne 0x4d1538
cmp dword [edi + 0x18], 0
je 0x4d1538
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4d1538
cmp eax, 0x10
jb 0x4d1538
push 0x20
call dword [0x555da0]
mov esi, eax
add esp, 4
test esi, esi
je 0x4d159c
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [0x555da0]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x4d158b
mov ecx, dword [edi + 0x18]
movups xmm0, xmmword [ecx]
movups xmmword [eax], xmm0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x4d1526
push eax
call dword [0x555dac]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x4d1571
mov eax, dword [ebp - 4]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x4d1535
mov dword [eax + 0x1c], esi
mov dword [ebp - 4], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x4d1480
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
pop esi
test eax, eax
je 0x4d1555
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x4d15a3
push ebx
call fcn.004d1400
mov eax, dword [ebp + 0x14]
add esp, 4
xor ebx, ebx
mov dword [eax], ebx
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0x18]
mov edi, 8
call dword [0x555da4]
push esi
call dword [0x555da4]
add esp, 8
jmp 0x4d1546
push esi
mov edi, 8
call dword [0x555da4]
add esp, 4
jmp 0x4d1546
mov edi, 8
jmp 0x4d1546
test ebx, ebx
jne 0x4d15b3
mov edi, 0x2af9
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4d17e0
Capabilities:
Create thread

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