joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4067c4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4067e8
xor eax, eax
test eax, eax
je 0x4067fb
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4067fb
xor ecx, ecx
jmp 0x4067fe
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x427dcc], 0
push esi
jne 0x40695e
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406938
mov dword [ecx*4 + 0x427dc8], eax
inc ecx
cmp ecx, 0x100
jl 0x406933
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40698f
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427dc8]
xor eax, esi
inc ecx
dec edx
jne 0x406971
pop edi
not eax
pop esi
ret 0xc

Function at 0x403d30
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x403d68
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x403d5e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x403d6a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x403d50
xor eax, eax
pop ebx
pop esi
ret
Function at 0x401ec0
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x4c83a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.KERNEL32
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x4b800c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
push 0
push 0x1fffff
mov dword [ebp - 0x104], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [0x4b802c]
mov esi, eax
movups xmm0, xmmword [str.C:WindowsSystem32_]
push 0xe5
mov dword [ebp - 0xf0], ecx
lea eax, [ebp - 0xeb]
mov cl, byte [0x4b8030]
push 0
push eax
movups xmmword [ebp - 0x100], xmm0
mov byte [ebp - 0xec], cl
call fcn.00487550
lea ecx, [ebp - 0x100]
add esp, 0xc
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x401f48
mov eax, dword [str.VPNv8CSP_.dll]
mov dword [ecx], eax
mov eax, dword [0x4b8038]
mov dword [ecx + 4], eax
mov eax, dword [0x4b803c]
mov dword [ecx + 8], eax
mov ax, word [0x4b8040]
mov word [ecx + 0xc], ax
lea ecx, [ebp - 0x100]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401f80
sub ecx, edx
push 4
push 0x1000
lea eax, [ecx + 1]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
lea ecx, [ebp - 0x100]
mov edi, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401fa8
sub ecx, edx
push 0
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x100]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push 0
push edi
push dword [ebp - 0x104]
test eax, eax
push 0
push 0
push esi
setne bl
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004854a8
mov esp, ebp
pop ebp
ret

Function at 0x402000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x30
push 0xa
xorps xmm0, xmm0
mov dword [esp + 0x24], 0
push str.sizeof.bin
lea ecx, [esp + 0x18]
movaps xmmword [esp + 0x18], xmm0
mov dword [esp + 0x2c], 0
call fcn.00407470
cmp dword [esp + 0x24], 0x10
lea eax, [esp + 0x10]
push 0x4b8044
cmovae eax, dword [esp + 0x14]
push eax
call fcn.0048b540
add esp, 8
test eax, eax
je 0x402061
push eax
call fcn.0048b9df
add esp, 4
mov byte [esp + 0xf], 1
jmp 0x402066
mov byte [esp + 0xf], 0
mov ecx, dword [esp + 0x24]
cmp ecx, 0x10
jb 0x402098
mov edx, dword [esp + 0x10]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40208e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4020ab
push ecx
push edx
call fcn.0048573c
add esp, 8
cmp byte [esp + 0xf], 0
jne 0x4020a7
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esp, ebp
pop ebp
ret
call fcn.0048eff6
int3
Function at 0x404500
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x404532
jl 0x404525
test ecx, ecx
jne 0x404532
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x4045f2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00405f00
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x40459e
jg 0x40455d
test esi, esi
je 0x40459e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x404575
mov eax, dword [esp + 0x10]
jl 0x40456f
cmp eax, esi
jae 0x404575
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.004876b0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x4045bf
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x4045db
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x404544
jl 0x4045db
test ecx, ecx
jne 0x404544
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x404636
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x404636
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.004876b0
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x4046a7
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x40465c
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x404692
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.0048e929
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x4046a7
cmp edi, eax
ja 0x404670
test edi, edi
je 0x4046a7
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.0048e929
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x408890
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad22d
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x4c83a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0x84]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
push eax
mov byte [ebp - 0x84], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0x67452301
mov dword [ebp - 0x34], 0xefcdab89
mov dword [ebp - 0x30], 0x98badcfe
mov dword [ebp - 0x2c], 0x10325476
call fcn.00408730
cmp byte [ebp - 0x84], 0
jne 0x4089e1
xor edx, edx
lea ecx, [ebp - 0x3f]
movzx eax, byte [ecx - 1]
lea ecx, [ecx + 4]
mov byte [ebp + edx - 0x18], al
movzx eax, byte [ecx - 4]
mov byte [ebp + edx - 0x17], al
movzx eax, byte [ecx - 3]
mov byte [ebp + edx - 0x16], al
movzx eax, byte [ecx - 2]
mov byte [ebp + edx - 0x15], al
add edx, 4
cmp edx, 8
jb 0x408925
mov edx, dword [ebp - 0x40]
mov ecx, 0x78
shr edx, 3
mov eax, 0x38
and edx, 0x3f
sub ecx, edx
sub eax, edx
cmp edx, 0x38
cmovae eax, ecx
lea ecx, [ebp - 0x84]
push eax
push 0x4c8e28
call fcn.00408730
push 8
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x84]
call fcn.00408730
xor edx, edx
lea ecx, [ebp - 0x37]
movzx eax, byte [ecx - 1]
lea ecx, [ecx + 4]
mov byte [ebp + edx - 0x28], al
movzx eax, byte [ecx - 4]
mov byte [ebp + edx - 0x27], al
movzx eax, byte [ecx - 3]
mov byte [ebp + edx - 0x26], al
movzx eax, byte [ecx - 2]
mov byte [ebp + edx - 0x25], al
add edx, 4
cmp edx, 0x10
jb 0x408994
push 0x40
lea eax, [ebp - 0x83]
push 0
push eax
call fcn.00487550
xorps xmm0, xmm0
mov byte [ebp - 0x84], 1
add esp, 0xc
movq qword [ebp - 0x40], xmm0
push esi
lea ecx, [ebp - 0x84]
call fcn.004087e0
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x408a1d
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408a13
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408a39
push ecx
push edx
call fcn.0048573c
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004854a8
mov esp, ebp
pop ebp
ret
call fcn.0048eff6
int3
Function at 0x4176c0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0xcccccccc
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x1505
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp - 4]
jae 0x417728
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 - 9], cl
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
movzx eax, byte [ebp - 9]
push eax
call fcn.0042f8a0
add esp, 4
movsx ecx, al
xor ecx, dword [ebp - 8]
mov dword [ebp - 8], ecx
jmp 0x4176eb
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 0x100
div ecx
mov eax, edx
add esp, 0xc
cmp ebp, esp
call fcn.00485c0f
mov esp, ebp
pop ebp
ret

Function at 0x41aa70
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov dword [ebp - 0xc], 0xcccccccc
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
cmp dword [0x4bc808], 0xffffffff
jne 0x41aad7
mov esi, esp
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp esi, esp
call fcn.00485c0f
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x41aabf
mov dword [0x4bc808], 0
jmp 0x41aad7
mov dword [0x4bc808], 1
mov eax, dword [ebp - 4]
push eax
push 0
call fcn.0042d010
add esp, 8
cmp dword [0x4bc808], 0
jle 0x41aae9
mov dword [ebp - 8], 1
jmp 0x41aaf0
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0
jne 0x41aaff
mov dword [ebp - 0xc], 0
jmp 0x41ab06
mov dword [ebp - 0xc], 1
mov al, byte [ebp - 0xc]
pop esi
add esp, 0xc
cmp ebp, esp
call fcn.00485c0f
mov esp, ebp
pop ebp
ret
Function at 0x42ae60
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov esi, esp
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]
cmp esi, esp
call fcn.00485c0f
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x42aee3
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.00485c0f
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x2733
jne 0x42aec2
mov dword [ebp - 0x10], 1
jmp 0x42aec9
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x42aedc
mov eax, 0x51
jmp 0x42aeed
mov eax, 0x38
jmp 0x42aeed
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
mov dword [ecx], edx
xor eax, eax
pop esi
add esp, 0x10
cmp ebp, esp
call fcn.00485c0f
mov esp, ebp
pop ebp
ret
Function at 0x42b6c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*4 + 0x1a8]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
shl eax, 4
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax + 0x1cc]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 4]
sub edx, dword [ecx + 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2a8]
mov edx, dword [ecx + 0x40]
and edx, 3
je 0x42b823
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
cmp dword [ecx + eax*4 + 0x1bc], 0x42af00
jne 0x42b823
mov edx, dword [ebp - 8]
cmp dword [edx], 0
je 0x42b74b
cmp dword [ebp - 0xc], 0
je 0x42b823
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
push eax
call fcn.00429930
add esp, 0x14
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x42b823
mov ecx, dword [ebp - 0x10]
and ecx, 1
je 0x42b823
mov edx, dword [ebp - 8]
cmp dword [edx], 0
jne 0x42b7ce
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x8e4]
shl edx, 1
mov eax, dword [ebp - 8]
mov dword [eax + 4], edx
mov esi, esp
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [section..data]
add esp, 4
cmp esi, esp
call fcn.00485c0f
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov edx, dword [ebp - 8]
mov dword [edx + 8], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x42b819
xor ecx, ecx
jne 0x42b7d6
mov esi, esp
push 0
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
add ecx, dword [edx + 8]
push ecx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp esi, esp
call fcn.00485c0f
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x42b817
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov dword [eax + 8], edx
jmp 0x42b823
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], 0
pop esi
add esp, 0x14
cmp ebp, esp
call fcn.00485c0f
mov esp, ebp
pop ebp
ret
Function at 0x42ca70
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov dword [ebp - 0xc], 0xcccccccc
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov eax, 0x10
imul ecx, eax, 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx + 0x1f8]
and eax, 1
je 0x42cab9
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041e9a0
add esp, 4
test eax, eax
jne 0x42cab7
xor al, al
jmp 0x42cb08
jmp 0x42cb06
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp + 8]
cmp dword [ecx + eax + 0x1a8], 0xffffffff
jne 0x42cad4
xor al, al
jmp 0x42cb08
mov esi, esp
push 2
push 1
lea edx, [ebp - 5]
push edx
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx + 0x1a8]
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp esi, esp
call fcn.00485c0f
test eax, eax
jne 0x42cb06
xor al, al
jmp 0x42cb08
mov al, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x42cb28]
call fcn.00485bbb
pop eax
pop edx
pop esi
add esp, 0xc
cmp ebp, esp
call fcn.00485c0f
mov esp, ebp
pop ebp
ret

Function at 0x42cb40
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x4020
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 4
cmp dword [0x4c9530], 0
jne 0x42cbb2
push 3
push 2
push 0
push 6
call fcn.0042f010
add esp, 0x10
movzx eax, al
test eax, eax
je 0x42cba8
mov dword [0x4c9530], 2
jmp 0x42cbb2
mov dword [0x4c9530], 1
cmp dword [0x4c9530], 2
jne 0x42cbbd
jmp 0x42cc13
mov esi, esp
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0x1001
push 0xffff
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp esi, esp
call fcn.00485c0f
test eax, eax
jne 0x42cbf0
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 8]
jle 0x42cbf0
jmp 0x42cc13
mov esi, esp
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]
cmp esi, esp
call fcn.00485c0f
push edx
mov ecx, ebp
push eax
lea edx, [0x42cc34]
call fcn.00485bbb
pop eax
pop edx
pop esi
add esp, 0x24
cmp ebp, esp
call fcn.00485c0f
mov esp, ebp
pop ebp
ret
Function at 0x42d570
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
push edi
lea edi, [ebp - 0x34]
mov ecx, 0xd
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4c83a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xa90]
shr ecx, 0xd
and ecx, 1
je 0x42d5ab
mov dword [ebp - 0x34], 1
jmp 0x42d5b2
mov dword [ebp - 0x34], 0
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0xc], edx
mov esi, esp
push 4
lea eax, [ebp - 0xc]
push eax
push 8
push 0xffff
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp esi, esp
call fcn.00485c0f
test eax, eax
jge 0x42d5f6
mov edx, dword [ebp + 0xc]
push edx
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov eax, dword [ebp + 8]
push eax
call fcn.0042aa70
add esp, 0xc
jmp 0x42d69a
mov dword [ebp - 0x20], 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xa50]
push edx
call fcn.0042e970
add esp, 4
mov dword [ebp - 0xc], eax
imul eax, dword [ebp - 0xc], 0x3e8
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xa54]
push eax
call fcn.0042e970
add esp, 4
mov dword [ebp - 0xc], eax
imul ecx, dword [ebp - 0xc], 0x3e8
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x18], edx
mov esi, esp
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 0x98000004
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp esi, esp
call fcn.00485c0f
test eax, eax
je 0x42d69a
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.00485c0f
push eax
mov eax, dword [ebp + 0xc]
push eax
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042aa70
add esp, 0x10
push edx
mov ecx, ebp
push eax
lea edx, [0x42d6c8]
call fcn.00485bbb
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004854a8
add esp, 0x34
cmp ebp, esp
call fcn.00485c0f
mov esp, ebp
pop ebp
ret
Function at 0x42e780
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
push esi
push edi
lea edi, [ebp - 0xa0]
mov ecx, 0x28
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4c83a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x18], 6
mov esi, esp
push 4
lea edx, [ebp - 0x10]
push edx
push 1
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp esi, esp
call fcn.00485c0f
test eax, eax
jge 0x42e818
push 0x80
lea edx, [ebp - 0x9c]
push edx
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.00485c0f
push eax
call fcn.00471b20
add esp, 0xc
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
mov eax, dword [ebp - 8]
push eax
call fcn.0042aa70
add esp, 0xc
jmp 0x42e829
push str.TCP_NODELAY_set_n
mov ecx, dword [ebp - 8]
push ecx
call fcn.0042aa70
add esp, 8
push edx
mov ecx, ebp
push eax
lea edx, [0x42e858]
call fcn.00485bbb
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004854a8
add esp, 0xa0
cmp ebp, esp
call fcn.00485c0f
mov esp, ebp
pop ebp
ret
Function at 0x4349f0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov esi, esp
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 4
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push 0x4004747b
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp esi, esp
call fcn.00485c0f
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x434a67
mov esi, esp
push 4
lea eax, [ebp - 0xc]
push eax
push 0x1001
push 0xffff
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp esi, esp
call fcn.00485c0f
push edx
mov ecx, ebp
push eax
lea edx, [0x434a88]
call fcn.00485bbb
pop eax
pop edx
pop esi
add esp, 0x1c
cmp ebp, esp
call fcn.00485c0f
mov esp, ebp
pop ebp
ret
Function at 0x44d4d0
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
lea edi, [ebp - 0x3c]
mov ecx, 0xf
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], 4
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
call fcn.00487550
add esp, 0xc
mov esi, esp
push 0xf0000000
mov eax, dword [ebp + 0x18]
push eax
push 0
push 0
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
cmp esi, esp
call fcn.00485c0f
test eax, eax
jne 0x44d544
jmp 0x44d61c
mov esi, esp
lea edx, [ebp - 0x14]
push edx
push 0
push 0
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
cmp esi, esp
call fcn.00485c0f
test eax, eax
jne 0x44d569
jmp 0x44d5e8
mov esi, esp
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
cmp esi, esp
call fcn.00485c0f
test eax, eax
jne 0x44d58c
jmp 0x44d5e8
mov esi, esp
push 0
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x20]
push eax
push 4
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp esi, esp
call fcn.00485c0f
test eax, eax
jne 0x44d5b1
jmp 0x44d5e8
mov edx, dword [ebp + 0x14]
cmp edx, dword [ebp - 0x20]
jae 0x44d5bb
jmp 0x44d5e8
mov esi, esp
push 0
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 2
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp esi, esp
call fcn.00485c0f
test eax, eax
je 0x44d5e0
jmp 0x44d5e8
xor eax, eax
jne 0x44d544
cmp dword [ebp - 0x14], 0
je 0x44d601
mov esi, esp
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp esi, esp
call fcn.00485c0f
cmp dword [ebp - 8], 0
je 0x44d61c
mov esi, esp
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp esi, esp
call fcn.00485c0f
push edx
mov ecx, ebp
push eax
lea edx, [0x44d640]
call fcn.00485bbb
pop eax
pop edx
pop edi
pop esi
add esp, 0x3c
cmp ebp, esp
call fcn.00485c0f
mov esp, ebp
pop ebp
ret