joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44d3e0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x82c
mov eax, dword [0x5b7b5c]
xor eax, esp
mov dword [esp + 0x828], eax
mov eax, dword [esp + 0x830]
push ebx
mov ebx, dword [esp + 0x840]
push ebp
push esi
push edi
mov edi, dword [esp + 0x848]
xor ebp, ebp
xor esi, esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
test ebx, ebx
jle 0x44d4f6
mov ecx, 0x25
cmp cx, word [edi + esi*2]
jne 0x44d51b
push ecx
lea edx, [edi + esi*2 + 2]
push edx
call fcn.0053fffa
add esp, 8
test eax, eax
je 0x44d51b
mov ax, word [edi + esi*2]
inc esi
cmp esi, ebx
mov word [esp + 0x18], ax
mov ecx, 1
jge 0x44d479
lea esp, [esp]
movzx eax, word [edi + esi*2]
mov word [esp + ecx*2 + 0x18], ax
mov edx, 0x25
inc ecx
cmp dx, ax
je 0x44d479
inc esi
cmp esi, ebx
jl 0x44d460
xor eax, eax
mov word [esp + ecx*2 + 0x18], ax
push 0x208
lea ecx, [esp + 0x42c]
push ecx
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
test ebx, ebx
jle 0x44d4e6
mov edi, dword [esp + 0x844]
lea eax, [ebx + ebp]
cmp eax, edi
jge 0x44d4f6
mov ecx, dword [esp + 0x10]
lea eax, [ecx + ebp*2]
dec ebx
lea ecx, [ebx + ebx]
push ecx
lea edx, [esp + 0x42c]
sub edi, ebp
push edx
lea ecx, [edi + edi]
push ecx
push eax
call fcn.0053f74e
add esp, 0x10
cmp edi, ebx
jle 0x44d4e0
mov eax, dword [esp + 0x10]
xor edx, edx
lea eax, [eax + ebp*2]
mov word [eax + ebx*2], dx
mov edi, dword [esp + 0x14]
add ebp, ebx
mov ebx, dword [esp + 0x84c]
inc esi
cmp esi, ebx
jl 0x44d421
mov ecx, dword [esp + 0x10]
xor eax, eax
pop edi
mov word [ecx + ebp*2], ax
mov ecx, dword [esp + 0x834]
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.0053f73f
add esp, 0x82c
ret
lea eax, [ebp + 1]
cmp eax, dword [esp + 0x844]
jge 0x44d4f6
mov cx, word [edi + esi*2]
mov edx, dword [esp + 0x10]
mov word [edx + ebp*2], cx
mov ebp, eax
jmp 0x44d4ed
Function at 0x44e310
Capabilities:
Create directory
Create process memory minidump
Get common file path
Terminate process

Disassembly:
sub esp, 0x498
mov eax, dword [0x5b7b5c]
xor eax, esp
mov dword [esp + 0x494], eax
push ebp
mov ebp, dword [esp + 0x4a0]
push 0
push 0x13
push str.Unexpected_Error__nDo_you_want_to_write_minidump_to_Desktop_or_terminate_program__n_nYES:_Write_minidump_nNO:_Terminate_program
call fcn.0050c485
cmp eax, 6
je 0x44e350
cmp eax, 7
jne 0x44e48f
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push ebx
push esi
push edi
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [esp + 0x10]
push ecx
push 0x10
push 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x29c]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 0x579af8
lea edx, [esp + 0x2a0]
push edx
push str._s_s
lea eax, [esp + 0xa0]
push 0x104
push eax
call fcn.0044d680
add esp, 0x14
push 0
lea ecx, [esp + 0x98]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str._d._02d._d
lea edx, [esp + 0x34]
push 0x32
push edx
call fcn.0044d5e0
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
add esp, 0xc
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call edi
movzx ecx, word [esp + 0x22]
movzx edx, word [esp + 0x20]
push eax
movzx eax, word [esp + 0x28]
push eax
movzx eax, word [esp + 0x26]
push ecx
movzx ecx, word [esp + 0x26]
push edx
movzx edx, word [esp + 0x28]
push eax
push ecx
push edx
lea eax, [esp + 0x50]
push eax
push 0x579af8
lea ecx, [esp + 0x2c4]
push ecx
push str._s_s_s__04d_02d_02d__02d_02d_02d__ld__ld.dmp
lea edx, [esp + 0xc4]
push 0x104
push edx
call fcn.0044d680
add esp, 0x38
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
lea eax, [esp + 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
call esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebp
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
push 1
push ebx
mov dword [esp + 0x40], 1
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.dbghelp.dll_MiniDumpWriteDump
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x498]
pop ebp
xor ecx, esp
call fcn.0053f73f
add esp, 0x498
ret

Function at 0x44e540
Capabilities:
Clear file content

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x44e565
cmp dword [esi + 8], 0
je 0x44e556
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov esi, dword [esi + 4]
sub esi, 0x10
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44e584
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
pop esi
ret
Function at 0x44f000
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x14]
push esi
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x44f034
push eax
push eax
push eax
push 0x53ef
call fcn.0044ef40
add esp, 0x10
xor eax, eax
mov word [esi], ax
pop esi
ret
Function at 0x44f040
Capabilities:
Clear file content
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x561238
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5b7b5c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, 0x5ed06c
call fcn.00401b60
mov edi, dword [esp + 0x20]
xor eax, eax
test edi, edi
setne al
test eax, eax
jne 0x44f088
push 0x80004005
call fcn.00401340
mov eax, dword [0x5ba484]
push edi
push eax
call fcn.0054022e
add esp, 8
test eax, eax
jne 0x44f0a1
mov edi, dword [0x5ba484]
mov ebx, dword [esp + 0x24]
test ebx, 0x40000000
je 0x44f0be
mov edx, dword [esp + 0x2c]
mov eax, 1
lea ecx, [eax + 3]
mov dword [esi + 8], edx
jmp 0x44f0cc
mov eax, 3
mov ecx, eax
mov dword [esi + 8], 0
push 0
push 0x80
push ecx
push 0
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x44f160
cmp ebx, 0x80000000
jne 0x44f102
test eax, eax
je 0x44f102
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x7fffffff
jae 0x44f160
lea ecx, [esi + 4]
test edi, edi
jne 0x44f12a
xor eax, eax
push eax
push edi
call fcn.00401e40
lea eax, [edi + 1]
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 0x10
mov eax, edi
lea esi, [eax + 2]
nop
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x44f130
sub eax, esi
sar eax, 1
push eax
push edi
call fcn.00401e40
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 0x10
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x44f189
push 0
push edi
push 0
push 0x5bfb
push 0x5ed06c
mov dword [esi], 0
call fcn.0044ee40
add esp, 0x14
jmp 0x44f26f
test eax, eax
je 0x44f1a9
cmp dword [esi + 8], 0
je 0x44f19a
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
call fcn.005089db
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x44f1c3
push 0x80004005
call fcn.00401340
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x20], esi
push 0x54c0
mov dword [esp + 0x1c], 0
call fcn.00508953
test eax, eax
je 0x44f1fc
push 0x54c0
push eax
lea ecx, [esp + 0x28]
call fcn.00401d70
mov esi, dword [esp + 0x20]
test edi, edi
jne 0x44f204
xor eax, eax
jmp 0x44f21f
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x44f210
sub eax, edx
sar eax, 1
push eax
push edi
mov ecx, 0x5ed06c
call fcn.00401fb0
push 2
push 0x579c08
mov ecx, 0x5ed06c
call fcn.00401fb0
mov eax, dword [esi - 0xc]
push eax
push esi
mov ecx, 0x5ed06c
call fcn.00401fb0
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44f26f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x28], 0
je 0x44f286
mov ecx, dword [0x5ed06c]
push 0
push 0x10
push ecx
call fcn.0050c485
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 0x10
Function at 0x44f2a0
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
mov ecx, 0x5ed06c
call fcn.00401b60
mov eax, dword [esi]
test eax, eax
je 0x44f31e
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x44f31e
push edi
mov edi, dword [esp + 0x14]
push 0
lea edx, [esp + 0xc]
push edx
push edi
push ecx
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44f2e3
cmp dword [esp + 8], edi
je 0x44f314
mov eax, dword [esi + 4]
push 0
push eax
push 0
push 0x5bfb
push 0x5ed06c
call fcn.0044ee40
add esp, 0x14
cmp dword [esp + 0x18], 0
je 0x44f314
mov ecx, dword [0x5ed06c]
push 0
push 0x10
push ecx
call fcn.0050c485
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
pop esi
pop ecx
ret 0xc

Function at 0x44f330
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, ecx
push edi
mov ecx, 0x5ed06c
call fcn.00401b60
xor edi, edi
cmp dword [ebx], edi
je 0x44f457
cmp dword [esp + 0x10], edi
je 0x44f457
mov eax, dword [esp + 0x14]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov esi, eax
shr esi, 0x10
and eax, 0xffff
cmp esi, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], eax
jle 0x44f3ab
mov ecx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebx]
push 0x10000
lea edx, [edi + ecx]
push edx
push eax
call ebp
test eax, eax
je 0x44f40f
cmp dword [esp + 0x10], 0x10000
jne 0x44f40f
dec esi
add edi, 0x10000
test esi, esi
jg 0x44f375
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x44f44a
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [ebx]
add edi, edx
push edi
push eax
call ebp
test eax, eax
je 0x44f3d5
mov ecx, dword [esp + 0x1c]
cmp dword [esp + 0x10], ecx
je 0x44f44a
mov edx, dword [ebx + 4]
push 0
push edx
push 0
push 0x5bfb
push 0x5ed06c
call fcn.0044ee40
add esp, 0x14
cmp dword [esp + 0x20], 0
je 0x44f405
mov eax, dword [0x5ed06c]
push 0
push 0x10
push eax
call fcn.0050c485
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
pop ecx
ret 0xc
mov ecx, dword [ebx + 4]
push 0
push ecx
push 0
push 0x5bfb
push 0x5ed06c
call fcn.0044ee40
add esp, 0x14
cmp dword [esp + 0x20], 0
je 0x44f405
mov edx, dword [0x5ed06c]
push 0
push 0x10
push edx
call fcn.0050c485
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
pop ecx
ret 0xc
pop esi
pop ebp
pop edi
mov eax, 1
pop ebx
pop ecx
ret 0xc
pop edi
xor eax, eax
pop ebx
pop ecx
ret 0xc
Function at 0x44f460
Capabilities:
Open clipboard

Disassembly:
push ecx
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
mov dword [esp + 0xc], 5
call dword [sym.imp.USER32.dll_OpenClipboard]
mov esi, eax
test esi, esi
jne 0x44f4d0
push ebx
mov ebx, dword [sym.imp.USER32.dll_CloseClipboard]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
lea ebx, [ebx]
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
test eax, eax
jle 0x44f4b8
call ebx
push 0x64
call ebp
push edi
call fcn.0044f460
mov esi, eax
add esp, 4
test esi, esi
je 0x44f490
pop ebp
pop ebx
pop edi
pop esi
pop ecx
ret
test esi, esi
jne 0x44f4cc
push esi
push esi
push esi
push 0x59db
call fcn.0044ef40
add esp, 0x10
pop ebp
mov eax, esi
pop ebx
pop edi
pop esi
pop ecx
ret
Function at 0x44f8a0
Capabilities:
Clear file content

Disassembly:
push 0xffffffffffffffff
push 0x5612a8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
mov eax, dword [0x5b7b5c]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
call fcn.005089db
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x44f8e0
push 0x80004005
call fcn.00401340
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0x2c]
push 1
push 0
push 0x40000000
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 0
call fcn.0044f040
mov ebp, dword [esp + 0x18]
test eax, eax
je 0x44f95f
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push 1
lea eax, [edx + edx]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.0044f330
mov esi, dword [esp + 0x10]
mov ebx, eax
test esi, esi
je 0x44f965
test ebp, ebp
je 0x44f954
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
jmp 0x44f965
mov esi, dword [esp + 0x10]
xor ebx, ebx
mov dword [esp + 0x24], 0xffffffff
test esi, esi
je 0x44f983
test ebp, ebp
je 0x44f97c
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x44f9a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x459a20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xe0
mov eax, dword [0x5b7b5c]
xor eax, esp
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0xe8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
mov edi, dword [esp + 0xec]
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push 0
push edi
push bind
mov dword [esp + 0x2c], eax
call esi
test eax, eax
jne 0x459b8b
push ebx
push ebp
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push edx
mov dword [esp + 0x34], 1
mov dword [esp + 0x28], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, eax
mov eax, dword [esp + 0x14]
push eax
call ebx
test ebp, ebp
je 0x459ab4
mov eax, ebp
jmp 0x459b89
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x30]
push edx
mov ebp, 0xc8
push bind
mov dword [esp + 0x24], ebp
call esi
test eax, eax
jne 0x459b84
lea ecx, [ecx]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push 0x57b0f0
push ecx
call esi
test eax, eax
je 0x459ba2
test edi, edi
je 0x459bcb
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push 0x20019
push 0
push str.ScriptEngine
push eax
call esi
test eax, eax
jne 0x459bcb
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x24]
push eax
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0x18]
push edx
mov dword [esp + 0x14], eax
call ebx
cmp dword [esp + 0x10], 0
jne 0x459bcb
mov eax, dword [esp + 0x14]
push eax
call ebx
lea ecx, [esp + 0x14]
push ecx
push 0x20019
xor edi, edi
push edi
lea edx, [esp + 0x30]
push edx
push bind
mov dword [esp + 0x24], ebp
call esi
test eax, eax
je 0x459ae0
mov eax, 0x80004005
pop ebp
pop ebx
mov ecx, dword [esp + 0xe4]
pop edi
pop esi
xor ecx, esp
call fcn.0053f73f
add esp, 0xe0
ret
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x14], eax
call ebx
mov edx, dword [esp + 0x14]
push edx
call ebx
cmp dword [esp + 0x10], 0
jne 0x459b84
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.ole32.dll_CLSIDFromString]
jmp 0x459b89

Function at 0x45a9d0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2b8
mov eax, dword [0x5b7b5c]
xor eax, esp
mov dword [esp + 0x2b4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
push edi
mov edi, dword [esp + 0x2c4]
jne 0x45aa1a
mov eax, dword [esi + 8]
push 0x4001
push 0x2b4
lea ecx, [esp + 0x10]
push ecx
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov edx, dword [esp + 0xc]
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], edx
mov eax, dword [esi + 0x18]
mov ecx, dword [esp + 0x2bc]
mov dword [edi], eax
mov eax, dword [esi + 0x14]
pop edi
pop esi
xor ecx, esp
call fcn.0053f73f
add esp, 0x2b8
ret 4
Function at 0x45b3c0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
sub esp, 0x68
mov eax, dword [0x5b7b5c]
xor eax, esp
mov dword [esp + 0x64], eax
push esi
push edi
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx esi, ax
push 0x32
lea eax, [esp + 0xc]
push eax
movzx ecx, si
push 0x1004
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x45b408
lea edx, [esp + 8]
push edx
call fcn.00540753
add esp, 4
mov dword [0x5ed0a0], eax
cmp esi, 0x412
jne 0x45b415
mov edi, 1
cmp edi, dword [0x5ed0b0]
je 0x45b439
mov dword [0x5ed0b0], edi
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0053f73f
add esp, 0x68
ret
mov ecx, dword [0x5ed0c0]
call fcn.00457460
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0053f73f
add esp, 0x68
ret
Function at 0x45d4f0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0xe84
mov eax, dword [0x5b7b5c]
xor eax, esp
mov dword [esp + 0xe80], eax
push esi
mov esi, dword [esp + 0xe8c]
push 0x25
push esi
call fcn.0053fffa
add esp, 8
test eax, eax
je 0x45d54d
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45d520
sub eax, edx
sar eax, 1
push eax
push esi
lea eax, [esp + 0xa7c]
push 0x208
push eax
call fcn.0044d3e0
add esp, 0x10
lea esi, [esp + 0xa74]
push esi
call fcn.00412410
add esp, 4
test eax, eax
je 0x45d691
push esi
lea ecx, [esp + 0x258]
push 0x208
push ecx
call fcn.0053fe1c
lea eax, [esp + 0x260]
add esp, 0xc
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45d580
sub eax, edx
sar eax, 1
mov esi, eax
test esi, esi
jle 0x45d5b8
cmp word [esp + esi*2 + 0x252], 0x5c
je 0x45d5b8
mov edx, 0x5c
mov word [esp + esi*2 + 0x254], dx
inc esi
xor eax, eax
mov word [esp + esi*2 + 0x254], ax
lea ecx, [esp + 0x254]
push ecx
lea edx, [esp + 0x668]
push 0x208
push edx
call fcn.0053fe1c
mov eax, 0x208
push 0x5752d4
sub eax, esi
push eax
lea ecx, [esp + esi*2 + 0x678]
push ecx
call fcn.0053fe1c
add esp, 0x18
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x668]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x45d6f4
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
test byte [esp + 8], 0x10
jne 0x45d667
lea ecx, [esp + 0x258]
push ecx
lea edx, [esp + 0x66c]
push 0x208
push edx
call fcn.0053fe1c
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x678]
push 0x208
push ecx
call fcn.0053fd9f
mov ecx, dword [0x5ba378]
mov edx, dword [ecx]
mov edx, dword [edx + 0x88]
add esp, 0x18
lea eax, [esp + 0x668]
push eax
call edx
lea eax, [esp + 8]
push eax
push esi
call edi
test eax, eax
jne 0x45d614
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov ecx, dword [esp + 0xe80]
xor ecx, esp
call fcn.0053f73f
add esp, 0xe84
ret
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45d696
sub eax, edx
sar eax, 1
test eax, eax
jle 0x45d6e3
mov ecx, 0x2f
cmp cx, word [esi + eax*2 - 2]
jne 0x45d6e3
mov ecx, dword [0x5ed0c0]
push 0
push 1
push 1
push esi
add ecx, 0xc2c
call fcn.004dea10
pop esi
mov ecx, dword [esp + 0xe80]
xor ecx, esp
call fcn.0053f73f
add esp, 0xe84
ret
mov ecx, dword [0x5ba378]
mov edx, dword [ecx]
mov eax, dword [edx + 0x88]
push esi
call eax
mov ecx, dword [esp + 0xe84]
pop esi
xor ecx, esp
call fcn.0053f73f
add esp, 0xe84
ret
Function at 0x464260
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push edi
mov edi, ecx
cmp eax, dword [edi + 0x1824]
jne 0x46427a
cmp dword [esp + 0xc], 0
je 0x464410
push ebx
push esi
mov dword [edi + 0x1824], eax
cmp eax, 1
jne 0x46439a
mov eax, dword [0x5ba378]
mov dword [0x5ed110], 0xffffffff
cmp dword [eax + 0xc4], 0x3b5
lea esi, [edi + 0xec]
mov ecx, esi
jne 0x4642e1
cmp dword [0x5ed730], 0
je 0x4642cc
push 0xc
push 0x5b3fd8
call fcn.0051b33e
mov ecx, edi
call fcn.00457460
jmp 0x4642ff
push 0xb
push 0x5b3f80
call fcn.0051b33e
mov ecx, edi
call fcn.00457460
jmp 0x4642ff
cmp dword [0x5ed730], 0
je 0x4642f3
push 0xb
push 0x5b3fac
jmp 0x4642fa
push 0xa
push 0x5b3f58
call fcn.0051b33e
cmp dword [0x5b4800], 0
je 0x46434a
mov ecx, dword [0x5ed0c0]
push 0xe704
add ecx, 0xec
call fcn.0051aafa
mov ecx, dword [0x5ed0c0]
mov ebx, eax
push ebx
add ecx, 0xec
call fcn.0051ab55
mov ecx, dword [0x5ed0c0]
or eax, 0x4000000
push eax
push ebx
add ecx, 0xec
call fcn.0051b24d
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
jne 0x4643d1
mov ecx, dword [0x5ed0c0]
push 0xe701
add ecx, 0xec
call fcn.0051aafa
mov ecx, dword [0x5ed0c0]
mov ebx, eax
push ebx
add ecx, 0xec
call fcn.0051ab55
mov ecx, dword [0x5ed0c0]
or eax, 0x4000000
push eax
push ebx
add ecx, 0xec
call fcn.0051b24d
jmp 0x4643d1
cmp eax, 2
jne 0x4643a7
push eax
push 0x5b4008
jmp 0x4643c4
cmp eax, 3
jne 0x4643b5
push 4
push 0x5b4010
jmp 0x4643c4
push 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0
push ecx
lea esi, [edi + 0xec]
mov ecx, esi
call fcn.0051b33e
push 0
mov ecx, esi
call fcn.0051ab55
or eax, 0x8000100
push eax
push 0
mov ecx, esi
call fcn.0051b24d
mov edx, dword [edi + 0x10c]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [edi + 0x10c]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, edi
call fcn.00462ed0
pop esi
pop ebx
pop edi
ret 8