joyce8/EMBER2024-capa huggingface dataset:
Function at 0x542f10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6c40d3
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x78d5fc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x11c
call fcn.0045ae60
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x1c], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x20], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x2c], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x30], 0
xor edx, edx
mov eax, dword [ebp - 0x10]
mov word [eax + 0x34], dx
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x36], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x38], 0
push 0xdc
push 0
mov eax, dword [ebp - 0x10]
add eax, 0x3c
push eax
call fcn.00653fd0
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x118], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x11c
call fcn.0045ae90
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x54d3b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x78d5fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x34]
mov dword [ebp - 0x44], edx
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [ebp - 0x44]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jl 0x54d55c
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 8]
push ecx
mov ecx, dword [ebp - 0x38]
call fcn.0054c050
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x38]
call fcn.0054c130
push 0
lea edx, [ebp - 0x24]
push edx
mov ecx, dword [ebp - 0x38]
call fcn.0054bf60
push 0
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x38]
call fcn.0054bf60
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x48], eax
push 1
mov ecx, dword [ebp + 0x10]
push ecx
call dword [ebp - 0x48]
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x4c], ecx
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x3c]
push edx
call dword [ebp - 0x4c]
test eax, eax
jne 0x54d517
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 8]
push ecx
mov ecx, dword [ebp - 0x38]
call fcn.0054c050
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x20]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x20]
mov eax, dword [edx]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x54], ecx
push 0
push 0x1000000
push 0
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
call dword [ebp - 0x54]
test eax, eax
jge 0x54d4d2
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x38]
call fcn.0054dba0
movzx ecx, byte [ebp + 0x14]
test ecx, ecx
je 0x54d512
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx edx, ax
and edx, 0x8000
jne 0x54d510
push 0x1b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 0x8000
jne 0x54d510
push 0x20
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx ecx, ax
and ecx, 0x8000
je 0x54d512
jmp 0x54d517
jmp 0x54d453
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x58], edx
cmp dword [ebp - 0x58], 1
je 0x54d525
jmp 0x54d53a
mov eax, dword [ebp + 0x1c]
push eax
push 0x514
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x38]
call fcn.0054d570
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x5c], ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
call dword [ebp - 0x5c]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ecx + 8]
call eax
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0061abe2
mov esp, ebp
pop ebp
ret 0x18
Function at 0x54e170
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x78d5fc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x104]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
movsx edx, byte [ebp + eax - 0x105]
cmp edx, 0x5c
je 0x54e1c4
push 0x700058
lea eax, [ebp - 0x104]
push eax
call fcn.00664a50
add esp, 8
push str.metin2client.dat
lea ecx, [ebp - 0x104]
push ecx
call fcn.00664a50
add esp, 8
call fcn.0051f890
push eax
lea edx, [ebp - 0x204]
push edx
call fcn.00664a40
add esp, 8
push 0x700070
call fcn.00664b40
add esp, 4
push eax
push 0x700078
lea eax, [ebp - 0x204]
push eax
call fcn.00664bcb
add esp, 0xc
test eax, eax
jne 0x54e239
call fcn.0051f890
mov esi, eax
push str.locale_
call fcn.00664b40
add esp, 4
add esi, eax
push esi
lea ecx, [ebp - 0x204]
push ecx
call fcn.00664a40
add esp, 8
lea edx, [ebp - 0x104]
push edx
push 0x1ff
lea eax, [ebp - 0x404]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x204]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, 1
imul ecx, eax, 0
movsx edx, byte [ebp + ecx - 0x404]
test edx, edx
jne 0x54e290
push 0x1ff
lea eax, [ebp - 0x404]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x7abb00]
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
mov eax, 1
imul ecx, eax, 0
movsx edx, byte [ebp + ecx - 0x404]
test edx, edx
jne 0x54e2c8
lea eax, [ebp - 0x104]
push eax
push 0x1ff
lea ecx, [ebp - 0x404]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
push 0x700088
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, 1
imul ecx, eax, 0
movsx edx, byte [ebp + ecx - 0x404]
test edx, edx
jne 0x54e2ef
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x404]
push ecx
call fcn.00664a40
add esp, 8
lea edx, [ebp + 8]
push edx
mov ecx, 0x7abb04
call fcn.004ec8c0
mov dword [ebp - 0x408], eax
lea eax, [ebp - 0x404]
push eax
mov ecx, dword [ebp - 0x408]
call fcn.00451a00
mov eax, dword [ebp - 0x408]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0061abe2
mov esp, ebp
pop ebp
ret
Function at 0x551520
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x7ad03c]
test eax, eax
je 0x551564
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x7ad03c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x55154e
push dword [0x7ad03c]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [0x7ad040]
mov dword [0x7ad03c], 0
call dword [sym.imp.USER32.dll_SetFocus]
ret
Function at 0x566d20
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x566dc9
cmp byte [esi], 0
je 0x566dc9
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x566d40
sub ecx, edx
cmp ecx, 3
jb 0x566d57
cmp byte [esi + 1], 0x3a
jne 0x566d57
add esi, 3
mov ecx, esi
mov dword [ebp + 8], esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x566d60
sub ecx, edx
push edi
lea eax, [ecx + 1]
push eax
mov dword [ebp - 4], eax
call fcn.0061adde
mov cl, byte [esi]
add esp, 4
mov edi, eax
test cl, cl
je 0x566dbf
push ebx
xor ebx, ebx
mov eax, esi
cmp cl, 0x2f
je 0x566d90
cmp cl, 0x5c
jne 0x566db2
push dword [ebp - 4]
push 0
push edi
call fcn.00653fd0
push ebx
push esi
push edi
call fcn.00668f40
add esp, 0x18
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebp + 8]
mov cl, byte [eax + 1]
inc eax
inc ebx
mov dword [ebp + 8], eax
test cl, cl
jne 0x566d86
pop ebx
push edi
call fcn.0061ac13
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x568930
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 esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x130], ecx
test eax, eax
jne 0x56894f
mov eax, dword [esi + 0x114]
mov dword [esi + 0x134], eax
add eax, ecx
cmp eax, dword [esi + 0x114]
jbe 0x568968
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
push ebx
push edi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [esi + 0x130]
xor edx, edx
mov ecx, dword [ebp - 8]
mov eax, edi
div ecx
mov eax, dword [esi + 0x134]
mov ebx, edi
push 0
mov dword [ebp + 0x10], eax
sub ebx, edx
add eax, edi
mov dword [ebp + 0xc], ecx
push eax
push 0
push 2
push 0
push dword [esi + 0x110]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ecx, eax
mov dword [esi + 0x12c], ecx
test ecx, ecx
jne 0x5689cc
push str.CMappedFile::Map__m_hFM_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
xor edx, edx
mov eax, edi
div dword [ebp + 0xc]
add edx, dword [ebp + 0x10]
push edx
push ebx
push 0
push 4
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x138], eax
test eax, eax
jne 0x568a0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CMappedFile::Map__m_lpMapData__lu
call fcn.00566650
add esp, 8
xor eax, eax
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0xc
sub eax, ebx
lea ecx, [eax + edi]
mov eax, dword [ebp + 8]
mov dword [esi + 0x13c], ecx
mov dword [eax], ecx
mov ecx, esi
push dword [esi + 0x13c]
mov dword [esi + 0x128], 0
push dword [esi + 0x134]
call fcn.00568910
mov eax, dword [esi + 0x134]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x56ba50
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 0x56ba63
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 0x56bac0
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 0x56bad6
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 0x56bc20
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
or eax, 0xffffffff
push edi
mov edi, dword [ebp + 0xc]
cmp edi, 0x10
jb 0x56bcb2
mov ecx, edi
shr ecx, 4
push ebx
mov dword [ebp + 0xc], ecx
push esi
lea esi, [edx + 2]
mov ebx, 4
nop dword [eax + eax]
movsx ecx, byte [esi - 2]
lea esi, [esi + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x7751c8]
movsx ecx, byte [esi - 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x7751c8]
movsx ecx, byte [esi - 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x7751c8]
movsx ecx, byte [esi - 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x7751c8]
sub ebx, 1
jne 0x56bc50
add edx, 0x10
sub edi, 0x10
sub dword [ebp + 0xc], 1
jne 0x56bc40
pop esi
pop ebx
test edi, edi
je 0x56bcd0
movsx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x7751c8]
sub edi, 1
jne 0x56bcb6
not eax
pop edi
pop ebp
ret
Function at 0x56c290
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push 0
push 0x80
push 3
push 0
push 1
push connect
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x56c2bb
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 0x56c2e0
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 ebx, eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0
push ebx
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
je 0x56c34e
push ebx
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
push ebx
push esi
call fcn.0056bc20
add esp, 8
mov ebx, eax
test esi, esi
je 0x56c33e
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x56c3e0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, ecx
call fcn.0056c480
push 0x104
push dword [ebp + 8]
lea eax, [edi + 8]
push eax
call fcn.00668f40
mov ebx, dword [ebp + 0xc]
add esp, 0xc
xor eax, eax
mov ecx, connect
cmp ebx, 1
setne al
push 0
add eax, 3
push 0x80
push eax
xor eax, eax
cmp ebx, 2
push 0
sete al
lea eax, [eax*2 + 1]
push eax
mov eax, 0xc0000000
cmovne eax, ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x110], eax
cmp eax, 0xffffffff
je 0x56c467
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi + 0x114], eax
mov eax, 1
mov dword [edi + 4], ebx
pop edi
pop ebx
pop ebp
ret 8
mov dword [edi + 0x110], 0
xor eax, eax
pop edi
pop ebx
pop ebp
ret 8
Function at 0x586e20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6c6eb6
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x78d5fc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 0x4c]
mov dword [esi], vtable.CNetworkStream.0
call fcn.0068b950
lea ecx, [esi + 0x60]
mov dword [ebp - 4], 0
call fcn.00596cf0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x5c], 0xffffffff
mov byte [esi + 0x48], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x70], 0
mov byte [esi + 0x74], 0
mov eax, dword [esi + 0x7c]
mov byte [ebp - 4], 2
cmp eax, 0x8000
ja 0x586f44
jae 0x586f4b
cmp dword [esi + 0x80], 0x8000
jae 0x586f36
lea eax, [ebp - 0xd]
push eax
push 0x8000
lea ecx, [esi + 0x78]
call fcn.0051e2b0
jmp 0x586f4b
push 0x8000
push eax
call fcn.004a2830
add esp, 8
mov dword [esi + 0x7c], 0x8000
push 0x8000
push 0x775788
push dword [esi + 0x78]
call fcn.00653a50
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x587170
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.005870f0
mov eax, dword [ebp + 8]
lea esi, [edi + 0x60]
push 0
push 1
push 2
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
call sub.WS2_32.dll_socket
mov dword [edi + 0x5c], eax
cmp eax, 0xffffffff
je 0x5871e1
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.00596d10
push eax
push esi
push dword [edi + 0x5c]
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x5871f9
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x5871f9
push str.error___WSAEWOULDBLOCK
call fcn.00566830
add esp, 4
mov ecx, edi
call fcn.005870f0
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.0066b14f
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 0x587400
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x78d5fc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x5c]
cmp eax, 0xffffffff
je 0x587549
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 0x587549
cmp byte [esi + 0x48], 0
lea ecx, [ebp - 0x108]
mov eax, dword [esi + 0x5c]
push ecx
push eax
jne 0x5874e8
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x5874b1
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.0061abe2
mov esp, ebp
pop ebp
ret
push 0
call fcn.0066b14f
add esp, 4
cmp edx, dword [esi + 0xc]
jl 0x587549
jg 0x5874cb
cmp eax, dword [esi + 8]
jbe 0x587549
mov ecx, esi
call fcn.005870f0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0061abe2
mov esp, ebp
pop ebp
ret
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x587510
mov eax, dword [esi + 0x34]
cmp eax, dword [esi + 0x38]
jle 0x587510
mov ecx, esi
call fcn.00587800
test al, al
jne 0x587510
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x58753b
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 0x5c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x58752e
mov ecx, esi
call fcn.00587740
test al, al
je 0x58753b
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x14]
call eax
test al, al
jne 0x587549
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov ecx, esi
call fcn.005870f0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0061abe2
mov esp, ebp
pop ebp
ret
Function at 0x587740
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x28]
lea esi, [edi + 0x24]
test edx, edx
jle 0x587778
mov eax, dword [esi]
sub eax, edx
test eax, eax
jle 0x58776c
mov ecx, dword [edi + 0x1c]
push eax
lea eax, [ecx + edx]
push eax
push ecx
call fcn.00653a50
add esp, 0xc
mov eax, dword [edi + 0x28]
sub dword [esi], eax
mov dword [edi + 0x28], 0
mov eax, dword [edi + 0x20]
mov ecx, dword [esi]
sub eax, ecx
test eax, eax
jle 0x5877e9
push 0
push eax
mov eax, dword [edi + 0x1c]
add eax, ecx
push eax
push dword [edi + 0x5c]
call sub.WS2_32.dll_recv
mov dword [ebp - 4], eax
test eax, eax
jns 0x5877d9
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x5877db
mov ecx, edi
call fcn.00587350
test al, al
je 0x5877e4
mov edx, dword [edi + 0x1c]
add edx, dword [esi]
cmp byte [edi + 0x4c], 0
je 0x5877e4
mov ecx, dword [edi + 0x54]
mov edi, dword [ebp - 4]
add ecx, 4
push edi
push edx
push edx
mov eax, dword [ecx]
call dword [eax + 0x1c]
add dword [esi], edi
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jne 0x5877a7
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 4]
add dword [esi], edi
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.005876f0
mov edi, eax
test edi, edi
jle 0x587859
mov ecx, esi
call fcn.00587350
test al, al
je 0x587834
mov edx, dword [esi + 0x38]
add edx, dword [esi + 0x2c]
cmp byte [esi + 0x4c], 0
je 0x587834
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 0x58784f
pop edi
xor al, al
pop esi
ret
add dword [esi + 0x38], eax
mov ecx, esi
call fcn.00587700
pop edi
mov al, 1
pop esi
ret

Function at 0x587d20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6c6f80
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x78d5fc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 4], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0xf
mov byte [edi + 4], 0
lea esi, [edi + 0x1c]
mov dword [ebp - 4], 0
push 0x20
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0061aba4
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, edi
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0056bc20