joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443db0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
xor edi, edi
mov dword [ebp - 4], ebx
mov esi, dword [esi]
and esi, 7
cmp edx, 5
jae 0x443dd6
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
add dword [ebp + 8], 5
sub edx, 4
add edx, ebx
mov dword [ebp - 0xc], edx
lea eax, [edi + ebx]
cmp eax, edx
jae 0x443dff
lea esp, [esp]
mov cl, byte [eax]
and cl, 0xfe
cmp cl, 0xe8
je 0x443dff
inc eax
cmp eax, edx
jb 0x443df0
mov ecx, eax
sub ecx, edi
mov edi, eax
sub ecx, ebx
sub edi, ebx
cmp eax, edx
jae 0x443ee2
cmp ecx, 2
jbe 0x443ea2
xor esi, esi
movzx ebx, byte [eax + 4]
lea ecx, [ebx + 1]
test cl, 0xfe
jne 0x443ed4
movzx ecx, byte [eax + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [eax + 2]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [eax + 1]
shl ebx, 8
or ebx, ecx
mov ecx, dword [ebp + 8]
add ecx, edi
add edi, 5
sub ebx, ecx
mov dword [ebp - 8], ecx
test esi, esi
je 0x443e7c
and esi, 6
mov edx, ebx
shl esi, 2
mov ecx, esi
shr edx, cl
inc edx
test dl, 0xfe
jne 0x443e77
mov edx, 0x100
shl edx, cl
dec edx
xor ebx, edx
sub ebx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
xor esi, esi
mov ecx, ebx
mov byte [eax + 1], bl
shr ecx, 8
mov byte [eax + 2], cl
mov ecx, ebx
shr ebx, 0x18
and bl, 1
shr ecx, 0x10
neg bl
mov byte [eax + 3], cl
mov byte [eax + 4], bl
mov ebx, dword [ebp - 4]
jmp 0x443de2
shr esi, cl
test esi, esi
je 0x443e1c
cmp esi, 4
ja 0x443ec9
cmp esi, 3
je 0x443ec9
mov ecx, esi
shr ecx, 1
movzx ecx, byte [ecx + eax + 1]
inc ecx
test cl, 0xfe
jne 0x443e1c
or esi, 8
shr esi, 1
inc edi
jmp 0x443de2
mov ebx, dword [ebp - 4]
or esi, 8
shr esi, 1
inc edi
jmp 0x443de2
cmp ecx, 2
jbe 0x443ef7
mov eax, dword [ebp + 0xc]
xor esi, esi
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
shr esi, cl
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4495d0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x302c
call fcn.004a3690
mov eax, dword [0x4d9320]
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 [0x4e9ecc]
test al, 1
jne 0x449653
push str.GetLogicalProcessorInformation
or eax, 1
push str.kernel32.dll
mov dword [0x4e9ecc], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [0x4e9ed0], esi
jmp 0x449659
mov esi, dword [0x4e9ed0]
test esi, esi
je 0x4496c7
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 0x4496c7
mov eax, 0xaaaaaaab
xor esi, esi
mul dword [ebp - 0x3008]
shr edx, 4
test edx, edx
je 0x4496c7
lea ecx, [ebp - 0x3000]
jmp 0x4496b0
mov eax, dword [ecx]
sub eax, 0
je 0x4496ba
dec eax
jmp 0x4496bb
inc esi
add ecx, 0x18
dec edx
jne 0x4496b0
test esi, esi
je 0x4496c7
mov dword [edi], esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004a310c
mov esp, ebp
pop ebp
ret
Function at 0x44e480
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aaa26
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4d9320]
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 0x44e529
jmp 0x44e520
add eax, 2
cmp word [eax], 0
jne 0x44e520
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x234]
call fcn.00420a50
push 0x4b9dc8
lea edx, [ebp - 0x234]
mov dword [ebp - 4], 1
mov ecx, 0x4e9fb0
call fcn.00420c60
add esp, 4
cmp dword [ebp - 0x220], 8
jb 0x44e573
push dword [ebp - 0x234]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, 0x4e9fb0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a310c
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aaa8b
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x4d9320]
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], 0x4e9fcc
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 [0x4e9fe0], 7
mov dword [0x4e9fdc], 0
mov word [0x4e9fcc], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x21c]
cmp word [ebp - 0x21c], 0
je 0x44e6ea
add eax, 2
cmp word [eax], 0
jne 0x44e6e1
push eax
lea eax, [ebp - 0x21c]
mov ecx, 0x4e9fcc
push eax
call fcn.00420a50
mov eax, 0x4e9fcc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a310c
mov esp, ebp
pop ebp
ret 4
Function at 0x44f130
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aaca7
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x4d9320]
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 0x44f1d9
lea esp, [esp]
add eax, 2
cmp word [eax], 0
jne 0x44f1d0
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00420a50
push str.lddownloader_
lea edx, [ebp - 0x230]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x248]
call fcn.00420c60
add esp, 4
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0044ec60
cmp dword [ebp - 0x234], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x44f231
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 0x44f262
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 0x44f29f
add eax, 2
cmp word [eax], 0
jne 0x44f296
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00420a50
sub esp, 0x18
mov dword [ebp - 4], 4
mov ecx, esp
lea edx, [ebp - 0x230]
push str.lddownloaderlddownloader.log
call fcn.00420c60
add esp, 4
mov ecx, edi
call fcn.0044ed00
add esp, 0x18
cmp dword [ebp - 0x21c], 8
jb 0x44f2ef
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.004a310c
mov esp, ebp
pop ebp
ret

Function at 0x450280
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 SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4502ce
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x4502aa
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 0x453a20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x4d9320]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, edx
mov esi, ecx
cmp dword [edi + 0x14], 8
jb 0x453a43
mov eax, dword [edi]
jmp 0x453a45
mov eax, edi
cmp dword [esi + 0x14], 8
jb 0x453a4d
mov ecx, dword [esi]
push 1
push 0
push eax
push ecx
push str.shell_filename____s___param____s___runas___d__show___d
call fcn.004524b0
push 0x118
lea eax, [ebp - 0x124]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0x20
mov dword [ebp - 0x128], 0x11c
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x453aa5
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [edi + 0x14], 8
jb 0x453aad
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x453ab5
mov esi, dword [esi]
push 5
push 0
push edi
push esi
push 0x4c5980
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x453af3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.shellEx_failed____lastError___d
call fcn.004524b0
add esp, 8
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a310c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004a310c
mov esp, ebp
pop ebp
ret
Function at 0x453b10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab658
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x4d9320]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
cmp dword [esi + 0x14], 8
jb 0x453b4b
mov eax, dword [esi]
jmp 0x453b4d
mov eax, esi
cmp dword [edi + 0x14], 8
jb 0x453b55
mov ecx, dword [edi]
push eax
push ecx
push str.createProcess_filename____s___param____s_
call fcn.004524b0
push edi
mov edx, 0x4b9878
lea ecx, [ebp - 0x40]
call fcn.004180d0
push 0x4b9878
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004181c0
add esp, 0x14
mov byte [ebp - 4], 2
cmp dword [ebp - 0x2c], 8
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x453ba0
push dword [ebp - 0x40]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp dword [esi + 0x10], eax
je 0x453bed
push esi
mov edx, 0x4c5aa8
lea ecx, [ebp - 0x58]
call fcn.004180d0
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00420670
mov byte [ebp - 4], 2
cmp dword [ebp - 0x44], 8
jb 0x453bed
push dword [ebp - 0x58]
call edi
add esp, 4
push 0x40
lea eax, [ebp - 0xac]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0xb0], 0x44
lea ecx, [ebp - 0x68]
mov dword [ebp - 0xac], 0
xor eax, eax
mov dword [ebp - 0xa8], 0
cmp dword [ebp - 0x14], 8
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0x80], eax
push ecx
push 0
push 0
push 0x10
push 0
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push 0
push eax
push 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0x84], 1
movdqu xmmword [ebp - 0x68], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x453c89
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.createProcess_failed____lastError___d
call fcn.004524b0
add esp, 8
xor esi, esi
jmp 0x453c95
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x68]
cmp dword [ebp - 0x14], 8
jb 0x453ca3
push dword [ebp - 0x28]
call edi
add esp, 4
mov eax, esi
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.004a310c
mov esp, ebp
pop ebp
ret
Function at 0x454a00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004a3690
mov eax, dword [0x4d9320]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
mov dword [ebp - 0x1008], edx
push 0x7fe
push eax
mov word [ebp - 0x804], ax
mov ebx, ecx
lea eax, [ebp - 0x802]
mov dword [ebp - 0x100c], 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x400
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x454a7c
lea eax, [ebp - 0x804]
push 0x5c
push eax
call dword [sym.imp.MSVCR120.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x454a7c
xor ecx, ecx
mov word [eax + 2], cx
push esi
lea eax, [ebp - 0x804]
push edi
push eax
call dword [sym.imp.MSVCR120.dll__wcslwr]
mov esi, eax
add esp, 4
mov edx, 0x4e67c6a7
movzx edi, word [esi]
test di, di
je 0x454abe
lea ecx, [ecx]
mov ecx, edx
lea esi, [esi + 2]
mov eax, edx
shl ecx, 5
shr eax, 2
add ecx, eax
movzx eax, di
movzx edi, word [esi]
add ecx, eax
xor edx, ecx
test di, di
jne 0x454aa0
push dword [ebp - 0x1008]
and edx, 0x7fff
lea eax, [ebp - 0x1004]
push edx
push str.20160302_bbbb_bbbb__04x_0000_08x
push eax
call fcn.004583d0
add esp, 0x10
mov dword [ebx + 0x14], 7
xor eax, eax
mov dword [ebx + 0x10], 0
mov word [ebx], ax
pop edi
pop esi
cmp word [ebp - 0x1004], ax
jne 0x454b01
xor ecx, ecx
jmp 0x454b1f
lea ecx, [ebp - 0x1004]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x454b10
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x1004]
mov ecx, ebx
push eax
call fcn.00407be0
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004a310c
mov esp, ebp
pop ebp
ret

Function at 0x456f40
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4d9320]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
call fcn.00454b40
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
push 0
cmovae eax, dword [ebp - 0x20]
push eax
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
test eax, eax
jne 0x456f7d
xor esi, esi
jmp 0x456fa8
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x28], 0
push ecx
push eax
mov dword [ebp - 0x24], 0xffffffff
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea eax, [ebp - 0x28]
push eax
push 0x456e00
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [ebp - 0x28]
cmp dword [ebp - 0xc], 8
jb 0x456fba
push dword [ebp - 0x20]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 8]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004a310c
mov esp, ebp
pop ebp
ret 4
Function at 0x45d350
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac6c8
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x4d9320]
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.0045d5c0
mov esi, eax
cmp word [edi], bx
je 0x45d3a9
cmp word [edi + 2], 0x3a
jne 0x45d3a9
mov eax, edi
jmp 0x45d3e0
mov ecx, esi
call fcn.00459f20
test al, al
jne 0x45d4be
push edi
lea eax, [ebp - 0x19c]
mov ecx, esi
push eax
call fcn.00459680
mov ebx, 1
mov dword [ebp - 4], 0
mov ecx, eax
mov dword [ebp - 0x1a0], ebx
call fcn.00459d40
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x118]
call fcn.00459460
mov dword [ebp - 4], 2
test bl, 1
je 0x45d405
lea ecx, [ebp - 0x19c]
call fcn.00459550
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x118]
call fcn.00459d40
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45d4ac
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x45d4ac
push esi
mov dword [ebp - 0x1a8], 0
call fcn.00458500
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 0x45d49e
mov eax, dword [ebp - 0x1a4]
lea ecx, [ebp - 0x118]
mov dword [ebp - 4], 0xffffffff
mov dword [eax], esi
call fcn.00459550
mov eax, dword [ebp - 0x1a0]
jmp 0x45d58f
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.00459550
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x94]
call fcn.00459460
push 0x4bb59c
push 0x4b9dc4
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 3
call fcn.0045a170
lea eax, [ebp - 0x94]
mov ecx, 0x4dcc44
push eax
call fcn.00462fe0
mov esi, eax
mov eax, dword [0x4dcc44]
cmp esi, eax
je 0x45d527
lea ecx, [esi + 0x10]
call fcn.00459d40
push eax
lea ecx, [ebp - 0x94]
call fcn.00459710
test al, al
mov dword [ebp - 0x1a0], esi
mov eax, dword [0x4dcc44]
je 0x45d52d
mov dword [ebp - 0x1a0], eax
lea esi, [ebp - 0x1a0]
mov esi, dword [esi]
cmp esi, eax
je 0x45d56d
mov ebx, dword [esi + 0xa4]
push ebx
call fcn.00458500
add esi, 0x94
add esp, 4
mov edi, eax
cmp dword [esi + 0x14], 0x10
jb 0x45d558
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 0x45d57b
mov eax, dword [ebp - 0x1a4]
xor edi, edi
mov dword [eax], 0
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.00459550
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.004a310c
mov esp, ebp
pop ebp
ret
Function at 0x45d830
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac706
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x4d9320]
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.0045d070
add esp, 4
push esi
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0
push ecx
mov ecx, eax
call fcn.00459680
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.00459550
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.00459d40
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45d92a
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x45d965
cmp esi, 0x400000
ja 0x45d965
push esi
mov dword [ebp - 0x11c], 0
call fcn.00458500
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 0x45d91f
push esi
push edi
call fcn.0045dc00
add esp, 8
push edi
call sub.MSVCR120.dll_void___cdecl_operator_delete___void__
add esp, 4
jmp 0x45d965
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x11c], 0
push eax
push esi
call fcn.0045d350
mov esi, eax
add esp, 8
test esi, esi
je 0x45d965
mov eax, dword [ebp - 0x11c]
cmp eax, 0xa
jbe 0x45d965
push eax
push esi
call fcn.0045dc00
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.00459550
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.004a310c
mov esp, ebp
pop ebp
ret

Function at 0x45de70
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 0x45de95
or esi, 2
push 1
call edi
test ax, ax
jns 0x45dea1
or esi, 1
push 0x10
call edi
test ax, ax
jns 0x45dead
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x45deb9
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x460840
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.00464110
mov edi, dword [ebp + 8]
test eax, eax
jle 0x46089b
nop
push esi
lea ecx, [ebx + 0x354]
mov byte [ebp + 0xb], 0
call fcn.00459660
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 0x460a00
lea ecx, [ebx + 0x354]
inc esi
call fcn.00464110
cmp esi, eax
jl 0x460860
sub edi, 0x100
je 0x460988
sub edi, 4
je 0x460918
sub edi, 2
jne 0x46097d
cmp dword [ebx + 0xe0], edi
je 0x46097d
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 0x4633d0
call dword [eax + 0x114]
mov esi, eax
test esi, esi
je 0x46097d
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x108]
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 0x46097d
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.0045de70
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 + pe_nt_image_headers32]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x46097d
mov ecx, dword [ebx + 0xe4]
test ecx, ecx
je 0x4609e7
mov eax, dword [ecx]
mov eax, dword [eax + 0xdc]
call eax
test al, al
je 0x4609e7
mov ecx, dword [ebx + 0xe4]
mov eax, dword [ecx]
mov eax, dword [eax + 0xec]
call eax
test al, al
je 0x4609e7
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 0x4609e7
mov ecx, dword [ebx + 0xe4]
call fcn.0048d520
test al, al
jne 0x46097d
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov ecx, ebx
setns al
movzx eax, al
push eax
call fcn.00462180
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10