joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51c610
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x592ebb
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x603320]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [edi + 0xc], 0
push 0x400
push ecx
lea ecx, [edi + 0x10]
mov dword [ebp - 4], 0
call fcn.00434f30
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [ebp - 4], 1
lea esi, [edi + 0x34]
mov eax, dword [edi + 0x10]
mov dword [edi + 0x30], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
mov byte [edi + 0x4c], al
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00522b40
mov dword [ebp - 0x30], eax
cmp esi, eax
je 0x51c6de
cmp dword [esi + 0x14], 8
jb 0x51c6c3
push dword [esi]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov eax, dword [ebp - 0x30]
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
mov ecx, esi
push eax
call fcn.0040d580
cmp dword [ebp - 0x18], 8
jb 0x51c6f0
push dword [ebp - 0x2c]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edx, esi
mov ecx, edi
call fcn.004a6a10
cmp dword [edi + 0xc], 0
jne 0x51c71b
mov ecx, edi
call fcn.0040d480
mov dword [edi + 0xc], 3
xorps xmm0, xmm0
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov eax, edi
mov byte [edi + 0x4c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00576f50
mov esp, ebp
pop ebp
ret 4

Function at 0x51c740
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x592f03
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x603320]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], edi
mov dword [edi + 0xc], 0
push 0x400
push ecx
lea ecx, [edi + 0x10]
mov byte [ebp - 4], 1
call fcn.00434f30
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov byte [ebp - 4], 2
lea ecx, [edi + 0x34]
mov eax, dword [edi + 0x10]
mov dword [edi + 0x30], eax
xor eax, eax
push 0xffffffffffffffff
mov dword [edi + 0x48], 7
mov dword [edi + 0x44], 0
push eax
mov word [edi + 0x34], ax
lea eax, [ebp + 8]
push eax
call fcn.0040d950
mov byte [ebp - 4], 3
lea edx, [edi + 0x34]
mov ecx, edi
mov byte [edi + 0x4c], 0
call fcn.004a6a10
cmp dword [edi + 0xc], 0
jne 0x51c7fe
mov ecx, edi
call fcn.0040d480
mov dword [edi + 0xc], 3
xorps xmm0, xmm0
movq qword [edi], xmm0
mov dword [edi + 8], 0
cmp dword [ebp + 0x1c], 8
mov byte [edi + 0x4c], 0
jb 0x51c814
push dword [ebp + 8]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
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 0x18
Function at 0x51d8a0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x302c
call fcn.00577700
mov eax, dword [0x603320]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xorps xmm0, xmm0
mov dword [ebp - 0x300c], 0
lea eax, [ebp - 0x302c]
mov esi, edx
push eax
mov edi, ecx
movdqu xmmword [ebp - 0x302c], xmm0
movdqu xmmword [ebp - 0x301c], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x3018]
mov dword [edi], eax
mov dword [esi], eax
mov eax, dword [0x63ae28]
test al, 1
jne 0x51d923
push str.GetLogicalProcessorInformation
or eax, 1
push 0x5c929c
mov dword [0x63ae28], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [0x63ae2c], esi
jmp 0x51d929
mov esi, dword [0x63ae2c]
test esi, esi
je 0x51d997
push 0x3000
lea eax, [ebp - 0x3004]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x3008], 0x3000
lea eax, [ebp - 0x3008]
push eax
lea eax, [ebp - 0x3004]
push eax
call esi
test eax, eax
je 0x51d997
mov eax, 0xaaaaaaab
xor esi, esi
mul dword [ebp - 0x3008]
shr edx, 4
test edx, edx
je 0x51d997
lea ecx, [ebp - 0x3000]
jmp 0x51d980
mov eax, dword [ecx]
sub eax, 0
je 0x51d98a
dec eax
jmp 0x51d98b
inc esi
add ecx, 0x18
dec edx
jne 0x51d980
test esi, esi
je 0x51d997
mov dword [edi], esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00576f50
mov esp, ebp
pop ebp
ret
Function at 0x521cb0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x593956
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x603320]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x238], 0
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x21c]
cmp word [ebp - 0x21c], 0
je 0x521d59
jmp 0x521d50
add eax, 2
cmp word [eax], 0
jne 0x521d50
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x234]
call fcn.00426d50
push str.XuanZhi_
lea edx, [ebp - 0x234]
mov dword [ebp - 4], 1
mov ecx, 0x63af10
call fcn.00426f60
add esp, 4
cmp dword [ebp - 0x220], 8
jb 0x521da3
push dword [ebp - 0x234]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, 0x63af10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00576f50
mov esp, ebp
pop ebp
ret 4

Function at 0x521e70
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5939bb
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x603320]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x224], 0
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
mov dword [ebp - 0x220], 0x63af2c
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor eax, eax
mov dword [0x63af40], 7
mov dword [0x63af3c], 0
mov word [0x63af2c], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x21c]
cmp word [ebp - 0x21c], 0
je 0x521f1a
add eax, 2
cmp word [eax], 0
jne 0x521f11
push eax
lea eax, [ebp - 0x21c]
mov ecx, 0x63af2c
push eax
call fcn.00426d50
mov eax, 0x63af2c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00576f50
mov esp, ebp
pop ebp
ret 4
Function at 0x522530
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x593b07
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x603320]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x24c], 0
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
cmp word [ebp - 0x218], 0
je 0x5225d9
lea esp, [esp]
add eax, 2
cmp word [eax], 0
jne 0x5225d0
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00426d50
push str.lddownloader_
lea edx, [ebp - 0x230]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x248]
call fcn.00426f60
add esp, 4
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00522100
cmp dword [ebp - 0x234], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x522631
push dword [ebp - 0x248]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x234], 7
cmp dword [ebp - 0x21c], 8
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
jb 0x522662
push dword [ebp - 0x230]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
mov dword [ebp - 4], 3
lea eax, [ebp - 0x218]
cmp word [ebp - 0x218], 0
je 0x52269f
add eax, 2
cmp word [eax], 0
jne 0x522696
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00426d50
sub esp, 0x18
mov dword [ebp - 4], 4
mov ecx, esp
lea edx, [ebp - 0x230]
push str.lddownloaderlddownloader.log
call fcn.00426f60
add esp, 4
mov ecx, edi
call fcn.005221a0
add esp, 0x18
cmp dword [ebp - 0x21c], 8
jb 0x5226ef
push dword [ebp - 0x230]
call esi
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00576f50
mov esp, ebp
pop ebp
ret

Function at 0x522cf0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x57bce8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x603320]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x603320]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 0
call fcn.00523200
sub esp, 0x18
mov dword [esp + 0x50], 0
mov ecx, esp
mov edx, eax
push str.customizeConfigs
call fcn.00426f60
add esp, 4
mov ecx, esi
call fcn.00522240
add esp, 0x18
cmp dword [esp + 0x24], 8
jb 0x522d72
push dword [esp + 0x10]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00576f50
mov esp, ebp
pop ebp
ret
Function at 0x522d90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x57bce8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x603320]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x603320]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 0
call fcn.00523200
sub esp, 0x18
mov dword [esp + 0x50], 0
mov ecx, esp
mov edx, eax
push str.recommendConfigs
call fcn.00426f60
add esp, 4
mov ecx, esi
call fcn.00522240
add esp, 0x18
cmp dword [esp + 0x24], 8
jb 0x522e12
push dword [esp + 0x10]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00576f50
mov esp, ebp
pop ebp
ret

Function at 0x5237f0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov esi, ecx
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x52383e
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x52381a
mov esi, dword [esi]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push str.LDPlayer4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x523850
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x57c5c8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x603320]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [0x603320]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
lea ecx, [esp + 0x10]
xor eax, eax
mov dword [esp + 0xc], 0
push eax
push 0x5a2b98
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
call fcn.0040dd10
lea eax, [esp + 0x10]
mov dword [esp + 0x38], 0
push eax
push str.statusSettings.playerName
push edi
mov ecx, esi
call fcn.0040d680
cmp dword [esp + 0x24], 8
jb 0x5238e7
push dword [esp + 0x10]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00576f50
mov esp, ebp
pop ebp
ret 4

Function at 0x5239a0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
mov eax, 0x4e67c6a7
push edi
movzx edi, word [esi]
test di, di
je 0x5239cf
mov edx, eax
lea esi, [esi + 2]
mov ecx, eax
shl edx, 5
shr ecx, 2
add edx, ecx
movzx ecx, di
movzx edi, word [esi]
add edx, ecx
xor eax, edx
test di, di
jne 0x5239b1
pop edi
and eax, 0x7fff
pop esi
ret
Function at 0x5249d0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x603320]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
push dword [ebp + 8]
lea eax, [esp + 0x10]
push eax
call fcn.00523af0
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
push 0
cmovae eax, dword [esp + 0x10]
push eax
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
test eax, eax
jne 0x524a15
xor esi, esi
jmp 0x524a45
lea ecx, [esp + 8]
mov dword [esp + 4], 0
push ecx
push eax
mov dword [esp + 0x10], 0xffffffff
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea eax, [esp + 4]
push eax
push 0x5248b0
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [esp + 4]
cmp dword [esp + 0x20], 8
jb 0x524a59
push dword [esp + 0xc]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00576f50
mov esp, ebp
pop ebp
ret 4

Function at 0x5251e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x603320]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x52523b
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
mov ecx, dword [ebp - 4]
setae al
xor ecx, ebp
call fcn.00576f50
mov esp, ebp
pop ebp
ret

Function at 0x525260
Capabilities:
Create process on windows

Disassembly:
push esi
push edi
mov edi, edx
mov esi, ecx
cmp dword [edi + 0x14], 8
jb 0x525270
mov eax, dword [edi]
jmp 0x525272
mov eax, edi
cmp dword [esi + 0x14], 8
jb 0x52527a
mov ecx, dword [esi]
push 1
push 0
push eax
push ecx
push 0x5cf6f0
call fcn.00526b60
add esp, 0x14
call fcn.005251e0
cmp dword [edi + 0x14], 8
jb 0x52529a
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x5252a2
mov esi, dword [esi]
push 5
push 0
push edi
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x5252d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.shellEx_failed____lastError___d
call fcn.00526b60
add esp, 8
xor al, al
pop edi
pop esi
ret
pop edi
mov al, 1
pop esi
ret
Function at 0x5312c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x594c58
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x603320]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1a4], eax
mov dword [ebp - 0x1a0], ebx
call fcn.00531530
mov esi, eax
cmp word [edi], bx
je 0x531319
cmp word [edi + 2], 0x3a
jne 0x531319
mov eax, edi
jmp 0x531350
mov ecx, esi
call fcn.0052ded0
test al, al
jne 0x53142e
push edi
lea eax, [ebp - 0x19c]
mov ecx, esi
push eax
call fcn.0052d620
mov ebx, 1
mov dword [ebp - 4], 0
mov ecx, eax
mov dword [ebp - 0x1a0], ebx
call fcn.0041dd20
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x118]
call fcn.0052d3e0
mov dword [ebp - 4], 2
test bl, 1
je 0x531375
lea ecx, [ebp - 0x19c]
call fcn.0052d4d0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea ecx, [ebp - 0x118]
call fcn.0041dd20
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x53141c
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x53141c
push esi
mov dword [ebp - 0x1a8], 0
call fcn.0052c318
add esp, 4
mov dword [ebp - 0x1a0], eax
lea ecx, [ebp - 0x1a8]
push 0
push ecx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1a8], esi
jne 0x53140e
mov eax, dword [ebp - 0x1a4]
lea ecx, [ebp - 0x118]
mov dword [ebp - 4], 0xffffffff
mov dword [eax], esi
call fcn.0052d4d0
mov eax, dword [ebp - 0x1a0]
jmp 0x5314ff
push dword [ebp - 0x1a0]
call sub.MSVCR120.dll_void___cdecl_operator_delete___void__
add esp, 4
lea ecx, [ebp - 0x118]
mov dword [ebp - 4], 0xffffffff
call fcn.0052d4d0
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x94]
call fcn.0052d3e0
push 0x5b8f90
push 0x5a6c40
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 3
call fcn.0052e140
lea eax, [ebp - 0x94]
mov ecx, 0x61df44
push eax
call fcn.0047d830
mov esi, eax
mov eax, dword [0x61df44]
cmp esi, eax
je 0x531497
lea ecx, [esi + 0x10]
call fcn.0041dd20
push eax
lea ecx, [ebp - 0x94]
call fcn.0052d6b0
test al, al
mov dword [ebp - 0x1a0], esi
mov eax, dword [0x61df44]
je 0x53149d
mov dword [ebp - 0x1a0], eax
lea esi, [ebp - 0x1a0]
mov esi, dword [esi]
cmp esi, eax
je 0x5314dd
mov ebx, dword [esi + 0xa4]
push ebx
call fcn.0052c318
add esi, 0x94
add esp, 4
mov edi, eax
cmp dword [esi + 0x14], 0x10
jb 0x5314c8
mov esi, dword [esi]
push ebx
push esi
push edi
call sub.MSVCR120.dll_memcpy
mov eax, dword [ebp - 0x1a4]
add esp, 0xc
mov dword [eax], ebx
jmp 0x5314eb
mov eax, dword [ebp - 0x1a4]
xor edi, edi
mov dword [eax], 0
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.0052d4d0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00576f50
mov esp, ebp
pop ebp
ret
Function at 0x5317a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x594c96
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x603320]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x118]
push eax
call fcn.00530fe0
add esp, 4
push esi
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0
push ecx
mov ecx, eax
call fcn.0052d620
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.0052d4d0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea ecx, [ebp - 0x94]
call fcn.0041dd20
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x53189a
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x5318d5
cmp esi, 0x400000
ja 0x5318d5
push esi
mov dword [ebp - 0x11c], 0
call fcn.0052c318
add esp, 4
mov edi, eax
lea eax, [ebp - 0x11c]
push 0
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x11c], esi
jne 0x53188f
push esi
push edi
call fcn.00531b70
add esp, 8
push edi
call sub.MSVCR120.dll_void___cdecl_operator_delete___void__
add esp, 4
jmp 0x5318d5
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x11c], 0
push eax
push esi
call fcn.005312c0
mov esi, eax
add esp, 8
test esi, esi
je 0x5318d5
mov eax, dword [ebp - 0x11c]
cmp eax, 0xa
jbe 0x5318d5
push eax
push esi
call fcn.00531b70
push esi
call sub.MSVCR120.dll_void___cdecl_operator_delete___void__
add esp, 0xc
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.0052d4d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00576f50
mov esp, ebp
pop ebp
ret

Function at 0x531de0
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
call edi
test ax, ax
mov ecx, 8
push 2
cmovs esi, ecx
call edi
test ax, ax
jns 0x531e05
or esi, 2
push 1
call edi
test ax, ax
jns 0x531e11
or esi, 1
push 0x10
call edi
test ax, ax
jns 0x531e1d
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x531e29
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x5347b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, ecx
push esi
push edi
xor esi, esi
lea ecx, [ebx + 0x354]
call fcn.0052dd20
mov edi, dword [ebp + 8]
test eax, eax
jle 0x53480b
nop
push esi
lea ecx, [ebx + 0x354]
mov byte [ebp + 0xb], 0
call fcn.0052d5e0
lea ecx, [ebp + 0xb]
push ecx
push dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, eax
push dword [ebp + 0xc]
push edi
call dword [edx]
cmp byte [ebp + 0xb], 0
jne 0x534970
lea ecx, [ebx + 0x354]
inc esi
call fcn.0052dd20
cmp esi, eax
jl 0x5347d0
sub edi, 0x100
je 0x5348f8
sub edi, 4
je 0x534888
sub edi, 2
jne 0x5348ed
cmp dword [ebx + 0xe0], edi
je 0x5348ed
push dword [ebp + 0xc]
xor eax, eax
mov dword [ebp + 8], eax
call dword [sym.imp.MSVCR120.dll_toupper]
mov ecx, dword [ebx + 0xe0]
lea edx, [ebp + 8]
add esp, 4
mov word [ebp + 8], ax
mov eax, dword [ecx]
push 0x80000012
push edx
push 0x537310
call dword [eax + 0x110]
mov esi, eax
test esi, esi
je 0x5348ed
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x104]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x20]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebx + 0xe4]
test eax, eax
je 0x5348ed
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movdqu xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
movq qword [ebp - 0xc], xmm0
mov word [ebp - 0xc], ax
mov eax, dword [ebx + 0xf4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0xf8]
mov dword [ebp - 0x20], 6
mov dword [ebp - 0x10], eax
call fcn.00531de0
mov word [ebp - 0xa], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0xe4]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x11c]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x5348ed
mov ecx, dword [ebx + 0xe4]
test ecx, ecx
je 0x534957
mov eax, dword [ecx]
mov eax, dword [eax + 0xdc]
call eax
test al, al
je 0x534957
mov ecx, dword [ebx + 0xe4]
mov eax, dword [ecx]
mov eax, dword [eax + 0xe8]
call eax
test al, al
je 0x534957
mov ecx, dword [ebx + 0xe4]
push str.RichEdit
mov eax, dword [ecx]
call dword [eax + 0x10]
push eax
call dword [sym.imp.MSVCR120.dll_wcsstr]
add esp, 8
test eax, eax
je 0x534957
mov ecx, dword [ebx + 0xe4]
call fcn.005661d0
test al, al
jne 0x5348ed
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov ecx, ebx
setns al
movzx eax, al
push eax
call fcn.00536100
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10