joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dbfe0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x60f188
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x6ae450]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
cmp dword [0x700248], 0
mov dword [esp + 0x18], 0
jne 0x4dc032
call fcn.004e7930
mov dword [0x700248], 0x4dd0f0
push 2
mov dword [esp + 0x34], vtable.CryptoPP::Integer.0
mov dword [esp + 0x3c], 2
call fcn.004c7ee0
push 8
call fcn.004c3600
mov ebx, eax
mov dword [esp + 0x48], 0
add esp, 8
mov dword [esp + 0x3c], ebx
mov dword [ebx], 1
mov dword [ebx + 4], 0
lea edi, [esi - 4]
mov dword [esp + 0x78], 0
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x10]
mov esi, dword [eax + 8]
mov ecx, dword [eax + 0xc]
test esi, esi
je 0x4dc09b
lea eax, [esi - 1]
lea eax, [ecx + eax*4]
cmp dword [eax], 0
jne 0x4dc0b0
sub eax, 4
dec esi
jne 0x4dc090
xor esi, esi
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
imul eax, esi
cmp eax, 5
jae 0x4dc0c9
xor eax, eax
jmp 0x4dc129
test esi, esi
je 0x4dc09b
lea ecx, [ecx + esi*4]
add ecx, 0xfffffffc
call fcn.004c1fe0
lea esi, [esi - 1]
shl esi, 5
add esi, eax
jmp 0x4dc09d
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x66a710]
movsd qword [esp + 0x1c], xmm0
call fcn.005ba150
movsd xmm1, qword [0x66a468]
call fcn.005baeb0
movsd xmm1, qword [0x66a458]
movsd qword [esp + 0x24], xmm0
movsd xmm0, qword [esp + 0x1c]
call fcn.005baeb0
mulsd xmm0, qword [str.333333]
mulsd xmm0, qword [esp + 0x24]
subsd xmm0, qword [0x66a480]
call fcn.005b9ca1
add eax, eax
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.004e9260
add esp, 8
mov edi, eax
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x30]
mov byte [esp + 0x78], 1
push eax
mov edx, dword [ecx]
call dword [edx + 0x20]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.004c4e10
add esp, 0xc
mov esi, eax
mov byte [esp + 0x78], 2
cmp dword [edi + 0x10], 1
je 0x4dc180
cmp dword [esi + 0x10], 1
je 0x4dc179
push esi
mov ecx, edi
call fcn.004ec4a0
jmp 0x4dc195
mov eax, 1
jmp 0x4dc195
cmp dword [esi + 0x10], 1
je 0x4dc18b
or eax, 0xffffffff
jmp 0x4dc195
push esi
mov ecx, edi
call fcn.004ec4a0
neg eax
mov ecx, dword [ebp + 8]
test eax, eax
cmovs esi, edi
push esi
call fcn.004e9000
mov edx, dword [esp + 0x4c]
xor eax, eax
mov esi, dword [esp + 0x50]
mov ecx, edx
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x4dc1c7
call fcn.005eefb8
jmp 0x4dc1cc
call fcn.005b5a16
mov edx, dword [esp + 0x64]
xor eax, eax
mov esi, dword [esp + 0x68]
add esp, 4
mov edi, esi
mov ecx, edx
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x4dc1f3
call fcn.005eefb8
jmp 0x4dc1f8
call fcn.005b5a16
add esp, 4
xor eax, eax
mov edi, ebx
mov ecx, 2
rep stosd dword es:[edi], eax
push ebx
call fcn.005b5a16
mov eax, dword [ebp + 8]
add esp, 4
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4dcd50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x60db20
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x6ae450]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x6ae450]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
push 0x19
push str.Integer:_division_by_zero
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], esi
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
call fcn.0043db40
mov ecx, esi
mov dword [esp + 0x30], 0
call fcn.005b61f8
mov byte [esp + 0x30], 1
lea ecx, [esi + 0x10]
push 0xffffffffffffffff
mov dword [esi], vtable.CryptoPP::Exception.0
lea eax, [esp + 0x10]
mov dword [esi + 0xc], 6
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.0043e010
cmp dword [esp + 0x20], 0x10
jb 0x4dce00
push dword [esp + 0xc]
call fcn.004c3680
add esp, 4
mov eax, esi
mov dword [esi], vtable.CryptoPP::Integer::DivideByZero.0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.005b509b
add esp, 0x2c
ret

Function at 0x4dce30
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x60dd30
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x6ae450]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x6ae450]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
push 0x32
push str.Integer:_no_integer_satisfies_the_given_parameters
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], esi
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
call fcn.0043db40
mov ecx, esi
mov dword [esp + 0x38], 0
call fcn.005b61f8
mov byte [esp + 0x38], 1
lea ecx, [esi + 0x10]
push 0xffffffffffffffff
mov dword [esi], vtable.CryptoPP::Exception.0
lea eax, [esp + 0x14]
mov dword [esi + 0xc], 6
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.0043e010
cmp dword [esp + 0x24], 0x10
jb 0x4dcee6
push dword [esp + 0x10]
call fcn.004c3680
add esp, 4
mov eax, esi
mov dword [esi], vtable.CryptoPP::Integer::RandomNumberNotFound.0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005b509b
mov esp, ebp
pop ebp
ret
Function at 0x4e9b30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x60f4b8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x6ae450]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
mov eax, dword [0x6ae450]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
push 0
lea ecx, [esp + 0xc]
call fcn.004d6990
mov eax, dword [ebp + 8]
mov dword [esp + 8], vtable.CryptoPP::DERGeneralEncoder.1.0
mov dword [esp + 0xc], vtable.CryptoPP::DERGeneralEncoder.0
mov dword [esp + 0x30], eax
mov word [esp + 0x34], 0x200
push 1
sub esp, 8
mov dword [esp + 0x54], 0
mov ecx, esi
call fcn.004e9850
add esp, 4
mov ecx, esi
push eax
lea eax, [esp + 0x10]
push eax
call fcn.004e99e0
lea ecx, [esp + 8]
call fcn.004da4b0
lea ecx, [esp + 8]
mov dword [esp + 0x48], 0xffffffff
call fcn.004da420
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.005b509b
mov esp, ebp
pop ebp
ret 4

Function at 0x4ec240
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x60f838
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x6ae450]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, edx
mov dword [esp + 0x10], ecx
mov ebx, dword [ebp + 8]
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 2
call fcn.004c1fe0
dec eax
mov ecx, ebx
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004dcfa0
push eax
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.004e9390
mov edx, dword [esp + 0x20]
xor eax, eax
mov esi, dword [esp + 0x24]
mov ecx, edx
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x4ec2c8
call fcn.005eefb8
jmp 0x4ec2cd
call fcn.005b5a16
mov eax, dword [ebx + 0xc]
add esp, 4
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
and eax, 1
mov dword [ecx], eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4fa1c0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x6c2a84]
test eax, eax
je 0x4fa204
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x6c2a84]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4fa1ee
push dword [0x6c2a84]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [0x6c2a88]
mov dword [0x6c2a84], 0
call dword [sym.imp.USER32.dll_SetFocus]
ret
Function at 0x50b920
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x50b9c9
cmp byte [esi], 0
je 0x50b9c9
mov ecx, esi
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50b940
sub ecx, edx
cmp ecx, 3
jb 0x50b957
cmp byte [esi + 1], 0x3a
jne 0x50b957
add esi, 3
mov ecx, esi
push ebx
push edi
mov edi, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50b960
sub ecx, edx
lea eax, [ecx + 1]
push eax
mov dword [ebp - 4], eax
call fcn.005b43fa
add esp, 4
mov ebx, eax
cmp byte [esi], 0
je 0x50b9be
xor eax, eax
mov dword [ebp + 8], eax
mov cl, byte [edi]
cmp cl, 0x2f
je 0x50b990
cmp cl, 0x5c
jne 0x50b9b4
push dword [ebp - 4]
push 0
push ebx
call fcn.005b8f90
push dword [ebp + 8]
push esi
push ebx
call fcn.005b57c0
add esp, 0x18
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebp + 8]
inc edi
inc eax
mov dword [ebp + 8], eax
cmp byte [edi], 0
jne 0x50b984
push ebx
call fcn.00445270
add esp, 4
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x50be30
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
or eax, 0xffffffff
push edi
mov edi, dword [ebp + 0xc]
cmp edi, 0x10
jb 0x50beca
mov ecx, edi
shr ecx, 4
mov dword [ebp + 0xc], ecx
push ebx
lea edx, [esi + 1]
mov ebx, 4
jmp 0x50be60
movsx ecx, byte [edx - 1]
lea edx, [edx + 4]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6962a8]
movsx ecx, byte [edx - 4]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6962a8]
movsx ecx, byte [edx - 3]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6962a8]
movsx ecx, byte [edx - 2]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6962a8]
dec ebx
jne 0x50be60
add esi, 0x10
sub edi, 0x10
dec dword [ebp + 0xc]
jne 0x50be50
pop ebx
test edi, edi
je 0x50beeb
mov edi, edi
movsx ecx, byte [esi]
lea esi, [esi + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6962a8]
dec edi
jne 0x50bed0
pop edi
not eax
pop esi
pop ebp
ret
Function at 0x50c250
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x50c27b
xor eax, eax
pop edi
pop ebp
ret
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x50c2a0
Capabilities:
Get file size
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [ebp - 8]
push 0
push edi
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
xor eax, eax
test esi, esi
je 0x50c317
xor edx, edx
div ebx
mov ecx, eax
imul ecx, ebx
lea eax, [edx + edi]
push eax
push ecx
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
push edi
push ebx
call fcn.0050be30
add esp, 8
mov edi, eax
test ebx, ebx
je 0x50c30e
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x50cc10
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
push edi
mov edi, dword [ebp + 8]
mov ebx, 0x20
mov edx, edi
mov ecx, edi
shl ecx, 4
dec ebx
shr edx, 5
xor edx, ecx
mov dword [ebp + 0xc], ebx
mov ebx, dword [ebp + 0x10]
mov ecx, eax
and ecx, 3
add edx, edi
mov ecx, dword [ebx + ecx*4]
add ecx, eax
sub eax, 0x61c88647
xor edx, ecx
add esi, edx
mov edx, esi
mov ecx, esi
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
shr ecx, 0xb
add edx, esi
and ecx, 3
mov ecx, dword [ebx + ecx*4]
mov ebx, dword [ebp + 0xc]
add ecx, eax
xor edx, ecx
add edi, edx
test ebx, ebx
jne 0x50cc23
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
mov dword [eax + 4], edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x50cc80
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, 0xc6ef3720
push edi
mov edi, dword [ebp + 8]
mov ebx, 0x20
mov edx, esi
mov ecx, esi
shl ecx, 4
dec ebx
shr edx, 5
xor edx, ecx
mov dword [ebp + 0xc], ebx
mov ebx, dword [ebp + 0x10]
mov ecx, eax
shr ecx, 0xb
add edx, esi
and ecx, 3
mov ecx, dword [ebx + ecx*4]
add ecx, eax
add eax, 0x61c88647
xor edx, ecx
sub edi, edx
mov edx, edi
mov ecx, edi
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
and ecx, 3
add edx, edi
mov ecx, dword [ebx + ecx*4]
mov ebx, dword [ebp + 0xc]
add ecx, eax
xor edx, ecx
sub esi, edx
test ebx, ebx
jne 0x50cc96
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
mov dword [eax + 4], edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x50d8c0
Capabilities:
Get system information on windows
Print debug messages
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x24
push edi
mov edi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [edi + 0x130], ecx
test eax, eax
jne 0x50d8df
mov eax, dword [edi + 0x114]
mov dword [edi + 0x134], eax
add eax, ecx
cmp eax, dword [edi + 0x114]
jbe 0x50d8f8
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0xc
push ebx
push esi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [edi + 0x130]
xor edx, edx
mov eax, esi
mov ecx, dword [edi + 0x134]
div dword [ebp - 8]
push 0
mov ebx, eax
imul ebx, dword [ebp - 8]
lea eax, [ecx + edx]
mov dword [ebp + 0xc], eax
mov eax, esi
sub eax, ebx
mov dword [ebp + 0x10], eax
lea eax, [esi + ecx]
push eax
push 0
push 2
push 0
push dword [edi + 0x110]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [edi + 0x12c], eax
test eax, eax
jne 0x50d962
push str.CMappedFile::Map__m_hFM_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0xc]
push ebx
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 0x138], eax
test eax, eax
jne 0x50d99a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CMappedFile::Map__m_lpMapData__lu
call fcn.0050aef0
add esp, 8
xor eax, eax
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0x10]
add ecx, eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x13c], ecx
mov dword [eax], ecx
mov ecx, edi
push dword [edi + 0x13c]
mov dword [edi + 0x128], 0
push dword [edi + 0x134]
call fcn.0050d8a0
mov eax, dword [edi + 0x134]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5103f0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
call fcn.00510490
push 0x104
push dword [ebp + 8]
lea eax, [esi + 8]
push eax
call fcn.005b57c0
mov edi, dword [ebp + 0xc]
add esp, 0xc
mov edx, 1
cmp edi, 2
jne 0x510427
mov ecx, 0xc0000000
lea edx, [edi + 1]
jmp 0x51042c
mov ecx, closesocket
xor eax, eax
cmp edi, 1
push 0
push 0x80
setne al
add eax, 3
push eax
push 0
push edx
push ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x110], eax
cmp eax, 0xffffffff
je 0x510474
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 4], edi
mov dword [esi + 0x114], eax
mov eax, 1
pop edi
pop esi
pop ebp
ret 8
pop edi
mov dword [esi + 0x110], 0
xor eax, eax
pop esi
pop ebp
ret 8

Function at 0x518c10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6119e1
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6ae450]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea ecx, [edi + 0x4c]
mov dword [edi], vtable.CNetworkStream.0
call fcn.005e3540
lea ecx, [edi + 0x60]
mov dword [ebp - 4], 0
call fcn.00538980
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0
push 0x8000
lea ecx, [edi + 0x78]
mov byte [ebp - 4], 2
mov dword [edi + 0x5c], 0xffffffff
mov byte [edi + 0x48], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x70], 0
mov byte [edi + 0x74], 0
call fcn.00453fd0
push 0x8000
push 0x6967c0
push dword [edi + 0x78]
call fcn.005b9470
add esp, 0xc
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x518f00
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
call fcn.00518e80
mov eax, dword [ebp + 8]
lea esi, [edi + 0x60]
push 0
push 1
push 2
movdqu xmm0, xmmword [eax]
movdqu xmmword [esi], xmm0
call sub.WS2_32.dll_socket
mov dword [edi + 0x5c], eax
cmp eax, 0xffffffff
je 0x518f73
lea ecx, [ebp - 4]
mov dword [ebp - 4], 1
push ecx
push 0x8004667e
push eax
call sub.WS2_32.dll_ioctlsocket
mov ecx, esi
call fcn.004c6430
push eax
push esi
push dword [edi + 0x5c]
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x518f8b
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x518f8b
push str.error___WSAEWOULDBLOCK
call fcn.0050b0c0
add esp, 4
mov ecx, edi
call fcn.00518e80
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
push 0
call fcn.005baad2
mov ecx, eax
add esp, 4
mov eax, dword [ebp + 0xc]
mov esi, edx
cdq
add ecx, eax
mov al, 1
mov dword [edi + 8], ecx
adc esi, edx
mov dword [edi + 0xc], esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x5191a0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x6ae450]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x5c]
cmp eax, 0xffffffff
je 0x5192e8
mov dword [ebp - 0x208], eax
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0x214]
push eax
push 0
lea eax, [ebp - 0x108]
mov dword [ebp - 0x20c], 1
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x108], 1
push eax
push 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
je 0x5192e8
cmp byte [esi + 0x48], 0
lea eax, [ebp - 0x108]
push eax
push dword [esi + 0x5c]
jne 0x519287
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x519250
mov eax, dword [esi]
mov ecx, esi
mov byte [esi + 0x48], 1
call dword [eax + 4]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b509b
mov esp, ebp
pop ebp
ret
push 0
call fcn.005baad2
add esp, 4
cmp edx, dword [esi + 0xc]
jl 0x5192e8
jg 0x51926a
cmp eax, dword [esi + 8]
jbe 0x5192e8
mov ecx, esi
call fcn.00518e80
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b509b
mov esp, ebp
pop ebp
ret
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x5192af
mov eax, dword [esi + 0x34]
cmp eax, dword [esi + 0x38]
jle 0x5192af
mov ecx, esi
call fcn.005195d0
test al, al
jne 0x5192af
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x5192da
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 0x5c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x5192cd
mov ecx, esi
call fcn.00519530
test al, al
je 0x5192da
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x14]
call eax
test al, al
jne 0x5192e8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov ecx, esi
call fcn.00518e80
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005b509b
mov esp, ebp
pop ebp
ret
Function at 0x519530
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov esi, ecx
push edi
mov edx, dword [esi + 0x28]
test edx, edx
jle 0x519562
mov eax, dword [esi + 0x24]
sub eax, edx
test eax, eax
jle 0x519555
mov ecx, dword [esi + 0x1c]
push eax
lea eax, [ecx + edx]
push eax
push ecx
call fcn.005b5100
add esp, 0xc
mov eax, dword [esi + 0x28]
sub dword [esi + 0x24], eax
mov dword [esi + 0x28], 0
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
sub eax, ecx
test eax, eax
jle 0x5195c0
push 0
push eax
mov eax, dword [esi + 0x1c]
add eax, ecx
push eax
push dword [esi + 0x5c]
call sub.WS2_32.dll_recv
mov edi, eax
test edi, edi
jns 0x519596
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x519598
pop edi
xor al, al
pop esi
ret
je 0x519591
mov ecx, esi
call fcn.005190f0
test al, al
je 0x5195bd
mov edx, dword [esi + 0x1c]
add edx, dword [esi + 0x24]
cmp byte [esi + 0x4c], 0
je 0x5195bd
mov ecx, dword [esi + 0x54]
add ecx, 4
push edi
push edx
push edx
mov eax, dword [ecx]
call dword [eax + 0x1c]
add dword [esi + 0x24], edi
pop edi
mov al, 1
pop esi
ret

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

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.005194e0
mov edi, eax
test edi, edi
jle 0x519629
mov ecx, esi
call fcn.005190f0
test al, al
je 0x519604
mov edx, dword [esi + 0x38]
add edx, dword [esi + 0x2c]
cmp byte [esi + 0x4c], 0
je 0x519604
mov ecx, dword [esi + 0x50]
add ecx, 4
push edi
push edx
push edx
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov eax, dword [esi + 0x2c]
add eax, dword [esi + 0x38]
push 0
push edi
push eax
push dword [esi + 0x5c]
call sub.WS2_32.dll_send
test eax, eax
jns 0x51961f
pop edi
xor al, al
pop esi
ret
add dword [esi + 0x38], eax
mov ecx, esi
call fcn.005194f0
pop edi
mov al, 1
pop esi
ret
Function at 0x51d600
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x611c30
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x6ae450]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebx + 0x14]
mov ecx, esi
mov dword [ebp - 4], 0
mov dl, byte [eax]
movzx eax, dl
xor eax, 0x811c9dc5
imul eax, eax, 0x1000193
and ecx, eax
cmp dword [ebx + 0x18], ecx
ja 0x51d65f
shr esi, 1
or eax, 0xffffffff
sub eax, esi
add ecx, eax
mov edi, dword [ebx + 8]
lea eax, [ecx*8]
mov esi, dword [ebx]
mov dword [ebp - 0x18], eax
add eax, edi
mov dword [ebp + 0xc], eax
mov eax, dword [eax]
cmp esi, eax
je 0x51d692
mov esi, dword [ebp + 0xc]
mov esi, dword [esi + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x51d692
mov esi, dword [esi + 4]
cmp byte [esi + 8], dl
je 0x51d6dc
cmp esi, dword [edi + ecx*8]
jne 0x51d685
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edi]
cmp esi, eax
je 0x51d6c3
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov ecx, dword [eax + 4]
mov edx, dword [esi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov ecx, dword [ebx + 8]
mov edx, dword [ebp - 0x18]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x51d717
mov dword [ecx], edi
mov eax, dword [ebx + 8]
mov dword [edx + eax + 4], edi
jmp 0x51d739
push dword [ebp + 0x10]
mov ecx, ebx
call fcn.0051dfd0
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, esi
jne 0x51d71f
mov dword [ecx], edi
jmp 0x51d739
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x51d739
mov ecx, dword [ebx + 8]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
call fcn.0051def0
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc