joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50c250
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57a467
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x5e2320]
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 0x50c2f9
lea esp, [esp]
add eax, 2
cmp word [eax], 0
jne 0x50c2f0
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00425d10
push str.lddownloader_
lea edx, [ebp - 0x230]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x248]
call fcn.00425f20
add esp, 4
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0050be30
cmp dword [ebp - 0x234], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x50c351
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 0x50c382
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 0x50c3bf
add eax, 2
cmp word [eax], 0
jne 0x50c3b6
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00425d10
sub esp, 0x18
mov dword [ebp - 4], 4
mov ecx, esp
lea edx, [ebp - 0x230]
push str.lddownloaderlddownloader.log
call fcn.00425f20
add esp, 4
mov ecx, edi
call fcn.0050bec0
add esp, 0x18
cmp dword [ebp - 0x21c], 8
jb 0x50c40f
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.005600c0
mov esp, ebp
pop ebp
ret

Function at 0x50ca10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x564f08
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5e2320]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x5e2320]
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.0050cf20
sub esp, 0x18
mov dword [esp + 0x50], 0
mov ecx, esp
mov edx, eax
push str.customizeConfigs
call fcn.00425f20
add esp, 4
mov ecx, esi
call fcn.0050bf60
add esp, 0x18
cmp dword [esp + 0x24], 8
jb 0x50ca92
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.005600c0
mov esp, ebp
pop ebp
ret
Function at 0x50cab0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x564f08
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5e2320]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x5e2320]
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.0050cf20
sub esp, 0x18
mov dword [esp + 0x50], 0
mov ecx, esp
mov edx, eax
push str.recommendConfigs
call fcn.00425f20
add esp, 4
mov ecx, esi
call fcn.0050bf60
add esp, 0x18
cmp dword [esp + 0x24], 8
jb 0x50cb32
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.005600c0
mov esp, ebp
pop ebp
ret

Function at 0x50d510
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 0x50d55e
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x50d53a
mov esi, dword [esi]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push 0x5ab848
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 0x50db50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5e2320]
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 0x50dbab
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.005600c0
mov esp, ebp
pop ebp
ret

Function at 0x50dbd0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push 0x38
lea eax, [ebp - 0x38]
mov esi, ecx
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x38], 0x440
mov dword [ebp - 0x30], str.open
jb 0x50dc08
mov eax, dword [esi]
jmp 0x50dc0a
mov eax, esi
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x20], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x50dc41
cmp dword [esi + 0x14], 8
jb 0x50dc2a
mov esi, dword [esi]
push 5
push 0
push esi
push str.iexplore.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x50dc50
Capabilities:
Create process on windows

Disassembly:
push esi
push edi
mov edi, edx
mov esi, ecx
cmp dword [edi + 0x14], 8
jb 0x50dc60
mov eax, dword [edi]
jmp 0x50dc62
mov eax, edi
cmp dword [esi + 0x14], 8
jb 0x50dc6a
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.0040b6c0
add esp, 0x14
call fcn.0050db50
cmp dword [edi + 0x14], 8
jb 0x50dc8a
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x50dc92
mov esi, dword [esi]
push 5
push 0
push edi
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
cmp eax, 0x20
jg 0x50dcb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
ret
mov al, 1
ret

Function at 0x50e6a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5657b8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5e2320]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [0x5e2320]
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 0x588858
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
call fcn.0040be00
lea eax, [esp + 0x10]
mov dword [esp + 0x38], 0
push eax
push str.statusSettings.playerName
push edi
mov ecx, esi
call fcn.00427cc0
cmp dword [esp + 0x24], 8
jb 0x50e737
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.005600c0
mov esp, ebp
pop ebp
ret 4

Function at 0x50e7f0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
mov eax, 0x4e67c6a7
push edi
movzx edi, word [esi]
test di, di
je 0x50e81f
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 0x50e801
pop edi
and eax, 0x7fff
pop esi
ret

Function at 0x50f740
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x5e2320]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
push dword [ebp + 8]
lea eax, [esp + 0x10]
push eax
call fcn.0050e940
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 0x50f785
xor esi, esi
jmp 0x50f7b5
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 0x50f620
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [esp + 4]
cmp dword [esp + 0x20], 8
jb 0x50f7c9
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.005600c0
mov esp, ebp
pop ebp
ret 4
Function at 0x51ae40
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57b5d8
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x5e2320]
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.0051b0b0
mov esi, eax
cmp word [edi], bx
je 0x51ae99
cmp word [edi + 2], 0x3a
jne 0x51ae99
mov eax, edi
jmp 0x51aed0
mov ecx, esi
call fcn.00517a50
test al, al
jne 0x51afae
push edi
lea eax, [ebp - 0x19c]
mov ecx, esi
push eax
call fcn.005171c0
mov ebx, 1
mov dword [ebp - 4], 0
mov ecx, eax
mov dword [ebp - 0x1a0], ebx
call fcn.0041cda0
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x118]
call fcn.00516f50
mov dword [ebp - 4], 2
test bl, 1
je 0x51aef5
lea ecx, [ebp - 0x19c]
call fcn.00517040
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea ecx, [ebp - 0x118]
call fcn.0041cda0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x51af9c
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x51af9c
push esi
mov dword [ebp - 0x1a8], 0
call fcn.00515e88
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 0x51af8e
mov eax, dword [ebp - 0x1a4]
lea ecx, [ebp - 0x118]
mov dword [ebp - 4], 0xffffffff
mov dword [eax], esi
call fcn.00517040
mov eax, dword [ebp - 0x1a0]
jmp 0x51b07f
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.00517040
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x94]
call fcn.00516f50
push 0x58b2a8
push 0x58d370
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 3
call fcn.00517cc0
lea eax, [ebp - 0x94]
mov ecx, 0x5fb0a4
push eax
call fcn.004704c0
mov esi, eax
mov eax, dword [0x5fb0a4]
cmp esi, eax
je 0x51b017
lea ecx, [esi + 0x10]
call fcn.0041cda0
push eax
lea ecx, [ebp - 0x94]
call fcn.00517250
test al, al
mov dword [ebp - 0x1a0], esi
mov eax, dword [0x5fb0a4]
je 0x51b01d
mov dword [ebp - 0x1a0], eax
lea esi, [ebp - 0x1a0]
mov esi, dword [esi]
cmp esi, eax
je 0x51b05d
mov ebx, dword [esi + 0xa4]
push ebx
call fcn.00515e88
add esi, 0x94
add esp, 4
mov edi, eax
cmp dword [esi + 0x14], 0x10
jb 0x51b048
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 0x51b06b
mov eax, dword [ebp - 0x1a4]
xor edi, edi
mov dword [eax], 0
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.00517040
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.005600c0
mov esp, ebp
pop ebp
ret
Function at 0x51b320
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57b656
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x5e2320]
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.0051ab60
add esp, 4
push esi
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0
push ecx
mov ecx, eax
call fcn.005171c0
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.00517040
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea ecx, [ebp - 0x94]
call fcn.0041cda0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x51b41a
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x51b455
cmp esi, 0x400000
ja 0x51b455
push esi
mov dword [ebp - 0x11c], 0
call fcn.00515e88
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 0x51b40f
push esi
push edi
call fcn.0051b6f0
add esp, 8
push edi
call sub.MSVCR120.dll_void___cdecl_operator_delete___void__
add esp, 4
jmp 0x51b455
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x11c], 0
push eax
push esi
call fcn.0051ae40
mov esi, eax
add esp, 8
test esi, esi
je 0x51b455
mov eax, dword [ebp - 0x11c]
cmp eax, 0xa
jbe 0x51b455
push eax
push esi
call fcn.0051b6f0
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.00517040
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.005600c0
mov esp, ebp
pop ebp
ret

Function at 0x51b960
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 0x51b985
or esi, 2
push 1
call edi
test ax, ax
jns 0x51b991
or esi, 1
push 0x10
call edi
test ax, ax
jns 0x51b99d
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x51b9a9
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x51e330
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.00521870
mov edi, dword [ebp + 8]
test eax, eax
jle 0x51e38b
nop
push esi
lea ecx, [ebx + 0x354]
mov byte [ebp + 0xb], 0
call fcn.00517170
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 0x51e4f0
lea ecx, [ebx + 0x354]
inc esi
call fcn.00521870
cmp esi, eax
jl 0x51e350
sub edi, 0x100
je 0x51e478
sub edi, 4
je 0x51e408
sub edi, 2
jne 0x51e46d
cmp dword [ebx + 0xe0], edi
je 0x51e46d
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 0x520e90
call dword [eax + 0x110]
mov esi, eax
test esi, esi
je 0x51e46d
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 0x51e46d
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.0051b960
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 0x51e46d
mov ecx, dword [ebx + 0xe4]
test ecx, ecx
je 0x51e4d7
mov eax, dword [ecx]
mov eax, dword [eax + 0xdc]
call eax
test al, al
je 0x51e4d7
mov ecx, dword [ebx + 0xe4]
mov eax, dword [ecx]
mov eax, dword [eax + 0xe8]
call eax
test al, al
je 0x51e4d7
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 0x51e4d7
mov ecx, dword [ebx + 0xe4]
call fcn.0054f360
test al, al
jne 0x51e46d
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov ecx, ebx
setns al
movzx eax, al
push eax
call fcn.0051fc80
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x51f6f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov edi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
cmp byte [ebp + 0xc], 0
mov esi, dword [ebp + 8]
je 0x51f72b
mov ecx, dword [edi + 0x84]
cmp eax, ecx
je 0x51f72b
cmp esi, dword [edi + 0xe4]
je 0x51f72b
cmp byte [edi + 0xdc], 0
jne 0x51f72b
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [edi + 0xe4]
cmp esi, eax
je 0x51f826
test eax, eax
je 0x51f79a
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movdqu xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 0x20], 0x14
movq qword [ebp - 0xc], xmm0
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0xe4]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x11c]
push 1
push 0
push 0
push 0
push str.killfocus
push dword [edi + 0xe4]
mov ecx, edi
call fcn.0051f260
mov dword [edi + 0xe4], 0
test esi, esi
je 0x51f826
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
cmp eax, edi
jne 0x51f826
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xdc]
call eax
test al, al
je 0x51f826
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xe8]
call eax
test al, al
je 0x51f826
xorps xmm0, xmm0
mov dword [edi + 0xe4], esi
movdqu xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 4], 0
movq qword [ebp - 0xc], xmm0
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0xe4]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x11c]
push 1
push 0
push 0
push 0
push str.setfocus
push dword [edi + 0xe4]
mov ecx, edi
call fcn.0051f260
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x520600
Capabilities:
Log keystrokes via input method manager

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0xfffffffffffffff0
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x40000000
je 0x5206af
push dword [esi]
call dword [sym.imp.USER32.dll_GetParent]
mov ebx, eax
mov ecx, 0x5faee4
mov dword [ebp - 4], ebx
call fcn.00521870
dec eax
mov dword [ebp + 8], eax
js 0x5206f1
push eax
mov ecx, 0x5faee4
call fcn.00517170
cmp dword [ebp - 4], 0
mov edi, eax
je 0x520698
mov ecx, edi
call fcn.0051ae20
cmp dword [esi], eax
je 0x52066b
mov ecx, edi
call fcn.0051ae20
cmp ebx, eax
jne 0x52068b
push esi
mov ecx, edi
call fcn.005205a0
test al, al
jne 0x5206a6
lea eax, [ebp - 8]
mov ecx, edi
push eax
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call fcn.0051e330
push ebx
call dword [sym.imp.USER32.dll_GetParent]
mov ebx, eax
test ebx, ebx
jne 0x520655
mov eax, dword [ebp + 8]
dec eax
mov dword [ebp + 8], eax
js 0x5206f1
mov ebx, dword [ebp - 4]
jmp 0x520642
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x5faee4
xor edi, edi
call fcn.00521870
test eax, eax
jle 0x5206f1
nop
mov ecx, 0x5faee4
call fcn.00521870
push edi
mov ecx, 0x5faee4
call fcn.00517170
mov ebx, eax
mov ecx, ebx
call fcn.0051ae20
cmp dword [esi], eax
je 0x5206fa
mov ecx, 0x5faee4
inc edi
call fcn.00521870
cmp edi, eax
jl 0x5206c0
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov ecx, ebx
call fcn.005205a0
test al, al
jne 0x5206a6
cmp dword [esi + 8], 0xe5
jne 0x520719
push dword [esi]
call sub.IMM32.dll_ImmGetVirtualKey
mov dword [esi + 8], eax
lea eax, [ebp - 8]
mov ecx, ebx
push eax
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call fcn.0051e330
pop edi
test al, al
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x522160
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x5221a5
cmp byte [ebp + 8], 0
je 0x522199
cmp byte [ebp + 0xc], 0
mov ecx, 1
mov eax, 4
cmovne eax, ecx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
xor eax, eax
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
Function at 0x52afa0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d6eb
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x5e2320]
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 edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xa4]
push eax
mov dword [edi + 0x10], esi
call fcn.0052a5c0
mov ecx, esi
call fcn.0052abf0
mov ecx, dword [edi + 0x10]
mov esi, eax
or esi, 0x40000080
call fcn.00528a00
test al, 1
je 0x52b002
or esi, 1
jmp 0x52b009
test al, 2
je 0x52b009
or esi, 2
mov ebx, dword [edi + 0x10]
mov ecx, ebx
call fcn.0052b1e0
test al, al
je 0x52b01a
or esi, 0x20
movdqu xmm0, xmmword [ebp - 0xa4]
push 0
sub esp, 0x10
mov ecx, ebx
mov eax, esp
push 0
movdqu xmmword [eax], xmm0
mov eax, dword [ebx]
push esi
push 0
call dword [eax + 0x24]
mov ecx, eax
call fcn.0051ae20
push eax
mov ecx, edi
call fcn.00521a70
mov ecx, dword [edi + 0x10]
call fcn.00528920
cmp eax, 0xffffffff
je 0x52b069
mov ecx, dword [edi + 0x10]
push eax
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ecx, eax
call fcn.0051a700
test eax, eax
jne 0x52b07a
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ecx, eax
call fcn.0051a620
mov eax, dword [eax]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push eax
push 0x30
push dword [edi + 4]
call esi
mov ecx, dword [edi + 0x10]
push 0
call fcn.0052ab90
push eax
push 0xc5
push dword [edi + 4]
call esi
mov ebx, dword [edi + 0x10]
mov ecx, ebx
call fcn.0052b1e0
test al, al
je 0x52b0c4
push 0
mov ecx, ebx
call fcn.0052abc0
movzx eax, ax
push eax
push 0xcc
push dword [edi + 4]
call esi
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x38]
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0041cda0
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.00517040
push 0
push 0
push 0xb9
push dword [edi + 4]
call esi
push 0
push 3
push 0xd3
mov ecx, edi
call fcn.00521fd0
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0xe8]
call eax
xor ecx, ecx
cmp al, 1
sete cl
push ecx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [edi + 0x10]
push 0
call fcn.0052b1f0
xor ecx, ecx
cmp al, 1
sete cl
push ecx
push 0xcf
push dword [edi + 4]
call esi
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [edi + 0x10]
call fcn.0052b1d0
push dword [edi + 4]
test al, al
je 0x52b18d
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
mov ecx, 1
cmove eax, ecx
push eax
push 0
jmp 0x52b195
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push eax
push eax
push 0xb1
push dword [edi + 4]
call esi
mov byte [edi + 0x18], 1
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.005600c0
mov esp, ebp
pop ebp
ret 4