joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54d5b0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b1d78
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x759990]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0xffffffff
je 0x54d718
lea ecx, [ebp - 0x28]
call fcn.0045fb20
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.0057ebc0
add esp, 4
push 0x224
push 0
lea ecx, [ebp - 0x24c]
push ecx
call fcn.00620a70
add esp, 0xc
mov dword [ebp - 0x24c], 0x224
lea edx, [ebp - 0x24c]
push edx
mov eax, dword [ebp - 0x254]
push eax
call sub.KERNEL32.dll_Module32First
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0
je 0x54d6fc
lea ecx, [ebp - 0x28]
call fcn.00460200
push eax
lea ecx, [ebp - 0x12c]
push ecx
call fcn.0054d550
add esp, 8
test eax, eax
je 0x54d6be
lea edx, [ebp - 0x12c]
push edx
mov ecx, dword [ebp + 8]
call fcn.004a85c0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x238]
mov dword [eax], ecx
mov edx, dword [ebp - 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x24d], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00460780
mov al, byte [ebp - 0x24d]
jmp 0x54d71a
push 0x224
push 0
lea eax, [ebp - 0x24c]
push eax
call fcn.00620a70
add esp, 0xc
mov dword [ebp - 0x24c], 0x224
lea ecx, [ebp - 0x24c]
push ecx
mov edx, dword [ebp - 0x254]
push edx
call sub.KERNEL32.dll_Module32Next
mov dword [ebp - 0x258], eax
jmp 0x54d650
mov eax, dword [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00460780
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00622d3e
mov esp, ebp
pop ebp
ret
Function at 0x5632a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b26fb
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x759990]
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, 0x40
call fcn.004a00e0
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 + 0x24], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x28], 0
xor edx, edx
mov eax, dword [ebp - 0x10]
mov word [eax + 0x2c], dx
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x34], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x30], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x38], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x3c], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x40
call fcn.004a0110
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 0x56a690
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x759990]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], 0
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [eax + 0x34]
call edx
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jl 0x56a822
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.00569540
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x38]
call fcn.00569620
push 0
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [ebp - 0x38]
call fcn.00569460
push 0
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x38]
call fcn.00569460
push 1
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [edx + 0x1c]
call ecx
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [eax + 0x18]
call edx
test eax, eax
jne 0x56a7e1
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.00569540
push 0
push 0x1000000
push 0
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x20]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x20]
mov edx, dword [edx]
push ecx
mov eax, dword [edx + 0x14]
call eax
test eax, eax
jge 0x56a79c
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x38]
call fcn.0056af60
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x56a7dc
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx ecx, ax
and ecx, 0x8000
jne 0x56a7da
push 0x1b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx edx, ax
and edx, 0x8000
jne 0x56a7da
push 0x20
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 0x8000
je 0x56a7dc
jmp 0x56a7e1
jmp 0x56a72b
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x44], ecx
cmp dword [ebp - 0x44], 1
je 0x56a7ef
jmp 0x56a804
mov edx, dword [ebp + 0x1c]
push edx
push 0x514
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x38]
call fcn.0056a840
push 0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [edx + 0x1c]
call ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00622d3e
mov esp, ebp
pop ebp
ret 0x18
Function at 0x56b4e0
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x759990]
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 0x56b534
push 0x6d3f28
lea eax, [ebp - 0x104]
push eax
call fcn.00626d40
add esp, 8
push str.metin2client.dat
lea ecx, [ebp - 0x104]
push ecx
call fcn.00626d40
add esp, 8
call fcn.00547270
push eax
lea edx, [ebp - 0x204]
push edx
call fcn.00626d30
add esp, 8
push 0x6d3f4c
call fcn.006224f0
add esp, 4
push eax
push 0x6d3f54
lea eax, [ebp - 0x204]
push eax
call fcn.00626e28
add esp, 0xc
test eax, eax
jne 0x56b5a9
call fcn.00547270
mov esi, eax
push str.locale_
call fcn.006224f0
add esp, 4
add esi, eax
push esi
lea ecx, [ebp - 0x204]
push ecx
call fcn.00626d30
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 0x56b600
push 0x1ff
lea eax, [ebp - 0x404]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x772a88]
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 0x56b638
lea eax, [ebp - 0x104]
push eax
push 0x1ff
lea ecx, [ebp - 0x404]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
push 0x6d3f64
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, 1
imul ecx, eax, 0
movsx edx, byte [ebp + ecx - 0x404]
test edx, edx
jne 0x56b65f
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x404]
push ecx
call fcn.00626d30
add esp, 8
lea edx, [ebp + 8]
push edx
mov ecx, 0x772a8c
call fcn.0050fd40
mov dword [ebp - 0x408], eax
lea eax, [ebp - 0x404]
push eax
mov ecx, dword [ebp - 0x408]
call fcn.004a85c0
mov eax, dword [ebp - 0x408]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00622d3e
mov esp, ebp
pop ebp
ret
Function at 0x56b710
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b28d8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x759990]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], 0
jmp 0x56b74a
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx*4 + 0x7494f4]
movsx eax, byte [edx]
cmp eax, 0xa
je 0x56b7e2
push str.lib_
lea ecx, [ebp - 0x28]
call fcn.0045fe90
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx*4 + 0x7494f4]
push edx
lea ecx, [ebp - 0x28]
call fcn.0045fb90
push 0
lea ecx, [ebp - 0x28]
call fcn.00460200
push eax
call fcn.00623d1d
add esp, 8
test eax, eax
je 0x56b7b6
mov byte [ebp - 0x29], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00460780
mov al, byte [ebp - 0x29]
jmp 0x56b7e4
lea ecx, [ebp - 0x28]
call fcn.00460200
push eax
lea ecx, [ebp - 0x28]
call fcn.00460200
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00460780
jmp 0x56b741
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00622d3e
mov esp, ebp
pop ebp
ret
Function at 0x56cfc0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x773f1c]
test eax, eax
je 0x56d004
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x773f1c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x56cfee
push dword [0x773f1c]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [0x773f20]
mov dword [0x773f1c], 0
call dword [sym.imp.USER32.dll_SetFocus]
ret
Function at 0x57eec0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x57ef69
cmp byte [esi], 0
je 0x57ef69
mov ecx, esi
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x57eee0
sub ecx, edx
cmp ecx, 3
jb 0x57eef7
cmp byte [esi + 1], 0x3a
jne 0x57eef7
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 0x57ef00
sub ecx, edx
lea eax, [ecx + 1]
push eax
mov dword [ebp - 4], eax
call fcn.0061f7ab
add esp, 4
mov ebx, eax
cmp byte [esi], 0
je 0x57ef5e
xor eax, eax
mov dword [ebp + 8], eax
mov cl, byte [edi]
cmp cl, 0x2f
je 0x57ef30
cmp cl, 0x5c
jne 0x57ef54
push dword [ebp - 4]
push 0
push ebx
call fcn.00620a70
push dword [ebp + 8]
push esi
push ebx
call fcn.006240e0
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 0x57ef24
push ebx
call fcn.005701b0
add esp, 4
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x57ff30
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 0x57ff4f
mov eax, dword [edi + 0x114]
mov dword [edi + 0x134], eax
add eax, ecx
cmp eax, dword [edi + 0x114]
jbe 0x57ff68
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 0x57ffd2
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 0x58000a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CMappedFile::Map__m_lpMapData__lu
call fcn.0057e760
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.0057ff10
mov eax, dword [edi + 0x134]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x583400
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 0x583413
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 0x583470
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 0x583486
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 0x5835d0
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 0x58366a
mov ecx, edi
shr ecx, 4
mov dword [ebp + 0xc], ecx
push ebx
lea edx, [esi + 1]
mov ebx, 4
jmp 0x583600
movsx ecx, byte [edx - 1]
lea edx, [edx + 4]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x7497d8]
movsx ecx, byte [edx - 4]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x7497d8]
movsx ecx, byte [edx - 3]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x7497d8]
movsx ecx, byte [edx - 2]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x7497d8]
dec ebx
jne 0x583600
add esi, 0x10
sub edi, 0x10
dec dword [ebp + 0xc]
jne 0x5835f0
pop ebx
test edi, edi
je 0x58368b
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 + 0x7497d8]
dec edi
jne 0x583670
pop edi
not eax
pop esi
pop ebp
ret
Function at 0x5839f0
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 0x583a1b
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 0x583a40
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 0x583ab7
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.005835d0
add esp, 8
mov edi, eax
test ebx, ebx
je 0x583aae
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 0x583e50
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
call fcn.00583ef0
push 0x104
push dword [ebp + 8]
lea eax, [esi + 8]
push eax
call fcn.006240e0
mov edi, dword [ebp + 0xc]
add esp, 0xc
mov edx, 1
cmp edi, 2
jne 0x583e87
mov ecx, 0xc0000000
lea edx, [edi + 1]
jmp 0x583e8c
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 0x583ed4
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 0x5953b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b4225
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x759990]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [0x770200], edi
mov dword [edi], vtable.CResourceManager.0
lea ecx, [edi + 4]
mov dword [ebp - 4], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.005d10f0
mov dword [edi + 4], eax
lea ecx, [edi + 0xc]
mov byte [ebp - 4], 1
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
call fcn.005d10f0
mov dword [edi + 0xc], eax
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 2
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
call fcn.005e3880
mov dword [edi + 0x14], eax
lea ecx, [edi + 0x1c]
mov byte [ebp - 4], 3
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
call fcn.005d10f0
mov dword [edi + 0x1c], eax
lea ecx, [edi + 0x24]
mov byte [ebp - 4], 4
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
call fcn.005d10f0
mov dword [edi + 0x24], eax
lea ecx, [edi + 0x2c]
mov byte [ebp - 4], 5
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.005134a0
mov dword [edi + 0x2c], eax
lea ecx, [edi + 0x34]
mov byte [ebp - 4], 6
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
call fcn.005134a0
mov dword [edi + 0x34], eax
lea ecx, [edi + 0x3c]
mov byte [ebp - 4], 7
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
call fcn.005d10f0
mov dword [edi + 0x3c], eax
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 0x59caf0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b487b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x759990]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x4c]
mov dword [esi], vtable.CNetworkStream.0
call fcn.0069ba00
lea ecx, [esi + 0x60]
mov dword [ebp - 4], 0
call fcn.005ab600
mov dword [esi + 0x5c], 0xffffffff
mov eax, esi
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 ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x59cd60
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.0059ccf0
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 0x59cdd3
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.004656e0
push eax
push esi
push dword [edi + 0x5c]
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x59cdeb
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x59cdeb
push str.error___WSAEWOULDBLOCK
call fcn.0057e930
add esp, 4
mov ecx, edi
call fcn.0059ccf0
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.006283b2
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 0x59d010
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x759990]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x5c]
cmp eax, 0xffffffff
je 0x59d158
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 0x59d158
cmp byte [esi + 0x48], 0
lea eax, [ebp - 0x108]
push eax
push dword [esi + 0x5c]
jne 0x59d0f7
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x59d0c0
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.00622d3e
mov esp, ebp
pop ebp
ret
push 0
call fcn.006283b2
add esp, 4
cmp edx, dword [esi + 0xc]
jl 0x59d158
jg 0x59d0da
cmp eax, dword [esi + 8]
jbe 0x59d158
mov ecx, esi
call fcn.0059ccf0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00622d3e
mov esp, ebp
pop ebp
ret
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x59d11f
mov eax, dword [esi + 0x34]
cmp eax, dword [esi + 0x38]
jle 0x59d11f
mov ecx, esi
call fcn.0059d3e0
test al, al
jne 0x59d11f
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x59d14a
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 0x5c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x59d13d
mov ecx, esi
call fcn.0059d340
test al, al
je 0x59d14a
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x14]
call eax
test al, al
jne 0x59d158
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov ecx, esi
call fcn.0059ccf0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00622d3e
mov esp, ebp
pop ebp
ret