joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5471b0
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x772a40]
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 0x547204
push 0x6f08c4
lea eax, [ebp - 0x104]
push eax
call fcn.00660be0
add esp, 8
push str.metin2client.dat
lea ecx, [ebp - 0x104]
push ecx
call fcn.00660be0
add esp, 8
call fcn.00516410
push eax
lea edx, [ebp - 0x204]
push edx
call fcn.00660bd0
add esp, 8
push 0x6f08dc
call fcn.00660cd0
add esp, 4
push eax
push 0x6f08e4
lea eax, [ebp - 0x204]
push eax
call fcn.00660d5b
add esp, 0xc
test eax, eax
jne 0x547279
call fcn.00516410
mov esi, eax
push str.locale_
call fcn.00660cd0
add esp, 4
add esi, eax
push esi
lea ecx, [ebp - 0x204]
push ecx
call fcn.00660bd0
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 0x5472d0
push 0x1ff
lea eax, [ebp - 0x404]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x791020]
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 0x547308
lea eax, [ebp - 0x104]
push eax
push 0x1ff
lea ecx, [ebp - 0x404]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
push 0x6f08f4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, 1
imul ecx, eax, 0
movsx edx, byte [ebp + ecx - 0x404]
test edx, edx
jne 0x54732f
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x404]
push ecx
call fcn.00660bd0
add esp, 8
lea edx, [ebp + 8]
push edx
mov ecx, 0x791024
call fcn.004e1ed0
mov dword [ebp - 0x408], eax
lea eax, [ebp - 0x404]
push eax
mov ecx, dword [ebp - 0x408]
call fcn.00442a40
mov eax, dword [ebp - 0x408]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00616d7d
mov esp, ebp
pop ebp
ret
Function at 0x54a4b0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x79255c]
test eax, eax
je 0x54a4f4
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x79255c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x54a4de
push dword [0x79255c]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [0x792560]
mov dword [0x79255c], 0
call dword [sym.imp.USER32.dll_SetFocus]
ret

Function at 0x54ac80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov edx, esi
push edi
mov edi, dword [ebp + 0x10]
mov ecx, esi
dec edi
mov dword [ebp + 0xc], edx
mov eax, edi
mov dword [ebp - 8], edi
sar eax, 1
mov dword [ebp - 4], eax
cmp esi, eax
jge 0x54acde
nop dword [eax + eax]
lea edi, [ecx + ecx]
push dword [ebx + edi*4 + 4]
mov ecx, dword [ebx + edi*4 + 8]
call fcn.00552690
movzx ecx, al
xor ecx, 1
inc ecx
add ecx, edi
mov eax, dword [ebx + ecx*4]
mov dword [ebx + esi*4], eax
mov esi, ecx
mov eax, dword [ebp - 4]
cmp ecx, eax
jl 0x54acb0
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp - 8]
cmp ecx, eax
jne 0x54acf2
mov eax, dword [ebp + 0x10]
test al, 1
jne 0x54acf2
mov eax, dword [ebx + eax*4 - 4]
mov dword [ebx + esi*4], eax
mov esi, edi
cmp edx, esi
jge 0x54ad19
mov eax, dword [ebp + 0x14]
lea edi, [esi - 1]
sar edi, 1
push dword [eax]
mov ecx, dword [ebx + edi*4]
call fcn.00552690
test al, al
je 0x54ad19
mov eax, dword [ebx + edi*4]
mov dword [ebx + esi*4], eax
mov esi, edi
cmp dword [ebp + 0xc], edi
jl 0x54acf6
mov eax, dword [ebp + 0x14]
pop edi
mov eax, dword [eax]
mov dword [ebx + esi*4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x55fca0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x55fd49
cmp byte [esi], 0
je 0x55fd49
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x55fcc0
sub ecx, edx
cmp ecx, 3
jb 0x55fcd7
cmp byte [esi + 1], 0x3a
jne 0x55fcd7
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 0x55fce0
sub ecx, edx
push edi
lea eax, [ecx + 1]
push eax
mov dword [ebp - 4], eax
call fcn.00616f7e
mov cl, byte [esi]
add esp, 4
mov edi, eax
test cl, cl
je 0x55fd3f
push ebx
xor ebx, ebx
mov eax, esi
cmp cl, 0x2f
je 0x55fd10
cmp cl, 0x5c
jne 0x55fd32
push dword [ebp - 4]
push 0
push edi
call fcn.00650120
push ebx
push esi
push edi
call fcn.006650d0
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 0x55fd06
pop ebx
push edi
call fcn.00616dae
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x561a90
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 0x561aaf
mov eax, dword [esi + 0x114]
mov dword [esi + 0x134], eax
add eax, ecx
cmp eax, dword [esi + 0x114]
jbe 0x561ac8
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 0x561b2c
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 0x561b6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CMappedFile::Map__m_lpMapData__lu
call fcn.0055f5e0
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.00561a70
mov eax, dword [esi + 0x134]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x564a70
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 0x564a83
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 0x564ae0
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 0x564af6
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 0x564c40
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 0x564cd2
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 + 0x75a5a8]
movsx ecx, byte [esi - 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x75a5a8]
movsx ecx, byte [esi - 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x75a5a8]
movsx ecx, byte [esi - 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x75a5a8]
sub ebx, 1
jne 0x564c70
add edx, 0x10
sub edi, 0x10
sub dword [ebp + 0xc], 1
jne 0x564c60
pop esi
pop ebx
test edi, edi
je 0x564cf0
movsx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x75a5a8]
sub edi, 1
jne 0x564cd6
not eax
pop edi
pop ebp
ret
Function at 0x5652b0
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 0x5652db
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 0x565300
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 0x56536e
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.00564c40
add esp, 8
mov ebx, eax
test esi, esi
je 0x56535e
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 0x565400
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, ecx
call fcn.005654a0
push 0x104
push dword [ebp + 8]
lea eax, [edi + 8]
push eax
call fcn.006650d0
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 0x565487
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 0x5757b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6c2946
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x772a40]
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.00687750
lea ecx, [esi + 0x60]
mov dword [ebp - 4], 0
call fcn.00593160
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 0x5758d4
jae 0x5758db
cmp dword [esi + 0x80], 0x8000
jae 0x5758c6
lea eax, [ebp - 0xd]
push eax
push 0x8000
lea ecx, [esi + 0x78]
call fcn.00514f40
jmp 0x5758db
push 0x8000
push eax
call fcn.00498550
add esp, 8
mov dword [esi + 0x7c], 0x8000
push 0x8000
push 0x75aad8
push dword [esi + 0x78]
call fcn.0064fba0
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 0x575b00
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.00575a80
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 0x575b71
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.00593180
push eax
push esi
push dword [edi + 0x5c]
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x575b89
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x575b89
push str.error___WSAEWOULDBLOCK
call fcn.0055f7c0
add esp, 4
mov ecx, edi
call fcn.00575a80
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.0066731f
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 0x575d90
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x772a40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x5c]
cmp eax, 0xffffffff
je 0x575ed9
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 0x575ed9
cmp byte [esi + 0x48], 0
lea ecx, [ebp - 0x108]
mov eax, dword [esi + 0x5c]
push ecx
push eax
jne 0x575e78
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x575e41
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.00616d7d
mov esp, ebp
pop ebp
ret
push 0
call fcn.0066731f
add esp, 4
cmp edx, dword [esi + 0xc]
jl 0x575ed9
jg 0x575e5b
cmp eax, dword [esi + 8]
jbe 0x575ed9
mov ecx, esi
call fcn.00575a80
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00616d7d
mov esp, ebp
pop ebp
ret
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x575ea0
mov eax, dword [esi + 0x34]
cmp eax, dword [esi + 0x38]
jle 0x575ea0
mov ecx, esi
call fcn.005761a0
test al, al
jne 0x575ea0
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x575ecb
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 0x5c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x575ebe
mov ecx, esi
call fcn.005760d0
test al, al
je 0x575ecb
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x14]
call eax
test al, al
jne 0x575ed9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov ecx, esi
call fcn.00575a80
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00616d7d
mov esp, ebp
pop ebp
ret
Function at 0x5760d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x28]
lea esi, [edi + 0x24]
test edx, edx
jle 0x57610a
mov eax, dword [esi]
sub eax, edx
test eax, eax
jle 0x5760fe
mov ecx, dword [edi + 0x1c]
push eax
lea eax, [ecx + edx]
push eax
push ecx
call fcn.0064fba0
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 0x576189
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 0x576174
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x57617b
lea eax, [edi + 0x24]
mov dword [ebp - 8], eax
mov ecx, edi
call fcn.00575ce0
test al, al
je 0x576184
mov edx, dword [edi + 0x1c]
add edx, dword [esi]
cmp byte [edi + 0x4c], 0
je 0x576184
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]
mov esi, dword [ebp - 8]
mov al, 1
add dword [esi], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 8], esi
test eax, eax
jne 0x57613f
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 0x5761a0
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.00576080
mov edi, eax
test edi, edi
jle 0x5761f9
mov ecx, esi
call fcn.00575ce0
test al, al
je 0x5761d4
mov edx, dword [esi + 0x38]
add edx, dword [esi + 0x2c]
cmp byte [esi + 0x4c], 0
je 0x5761d4
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 0x5761ef
pop edi
xor al, al
pop esi
ret
add dword [esi + 0x38], eax
mov ecx, esi
call fcn.00576090
pop edi
mov al, 1
pop esi
ret

Function at 0x583cf0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6c31d0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x772a40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
xorps xmm0, xmm0
movups xmmword [edi + 4], xmm0
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.00616d3f
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 0x5843d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00564c40
Function at 0x58c920
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 8]
mov byte [ecx + 0x19], al
mov ecx, dword [ecx + 4]
test al, al
je 0x58c93d
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret 4
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret 4

Function at 0x58cd50
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6c366e
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x772a40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.00574e20
mov dword [ebp - 4], 0
mov dword [edi + 4], vtable.CLightBase.0
mov eax, edi
mov dword [edi + 8], vtable.CSingleton_class_CLightManager_.0
mov dword [0x7925c0], eax
mov dword [edi], vtable.CLightManager.0
lea esi, [edi + 0xc]
mov dword [edi + 4], vtable.CLightManager.1.0
mov dword [edi + 8], vtable.CLightManager.2.0
push 8
mov byte [ebp - 4], 2
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.00616d3f
mov dword [eax + 4], 0
mov dword [esi], eax
mov dword [eax], esi
lea esi, [edi + 0x20]
mov byte [ebp - 4], 3
push 0x18
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00616d3f
add esp, 8
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 dword [edi + 0x48], vtable.CDynamicPool_class_CLight_.0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x58e320
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x772a40]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [0x7c56dc], eax
cmp dword [0x7c7404], eax
je 0x58e46e
push 8
lea ecx, [ebp - 0x18]
mov dword [0x7c7404], eax
push ecx
push 0x1004
movzx eax, ax
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0
lea eax, [ebp - 0x18]
push 0
push eax
call fcn.00591090
add esp, 0xc
mov dword [0x7c73d4], eax
cmp dword [0x762ce0], eax
je 0x58e46e
push 0x7c56e0
mov dword [0x762ce0], eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
movzx ecx, word [0x7c56dc]
mov eax, ecx
and eax, 0x3ff
sub eax, 4
je 0x58e3d8
sub eax, 0xd
je 0x58e3c5
sub eax, 1
jne case.default.0x58e3ea
mov byte [0x7c56ea], al
mov dword [0x7c6bb4], 0x762cc2
jmp 0x58e453
mov byte [0x7c56ea], 1
mov dword [0x7c6bb4], 0x762cc8
jmp 0x58e453
mov eax, ecx
mov byte [0x7c56ea], 1
shr eax, 0xa
dec eax
cmp eax, 4
ja case.default.0x58e3ea
jmp dword [eax*4 + 0x58e47c]
mov byte [0x7c56ea], 0
mov dword [0x7c6bb4], 0x762cb6
jmp 0x58e453
mov dword [0x7c6bb4], 0x762cbc
jmp 0x58e453
push 0xa
lea eax, [ebp - 0x10]
mov dword [0x7c6bb4], 0x762cb0
push eax
push 3
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov eax, dword [0x7c6bb4]
movsx cx, byte [ebp - 0x10]
mov word [eax], cx
movsx ax, byte [ebp - 0xf]
movzx eax, ax
push eax
call fcn.0066d127
movzx ecx, ax
add esp, 4
mov eax, dword [0x7c6bb4]
mov word [eax + 2], cx
cmp dword [0x7c73d0], 0x4e8
je 0x58e46e
mov eax, dword [0x7c73d4]
mov dword [0x7c73d0], eax
call fcn.0058e560
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00616d7d
mov esp, ebp
pop ebp
ret