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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
test dl, dl
je 0x5e09e4
add esp, 0xfffffff0
call fcn.004080a0
mov byte [ebp - 9], dl
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x5e0afe
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 8], ebx
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
call fcn.00406a34
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
dec ebx
test ebx, ebx
jl 0x5e0ae8
inc ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
call fcn.00513f04
xor eax, eax
push ebp
push 0x5e0ad5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
call fcn.00513f04
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x10]
lea ebx, [eax + edx*8]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
mov dword [ebx], eax
lea eax, [ebx + 4]
mov edx, dword [ebp - 4]
call fcn.0040a78c
jmp 0x5e0aa6
lea eax, [ebx + 4]
mov ecx, 1
mov edx, 1
call fcn.0040ab18
mov eax, dword [ebx + 4]
call fcn.00409de4
dec eax
jle 0x5e0aba
mov eax, dword [ebx + 4]
cmp word [eax], 0x5f
je 0x5e0a94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e0adc
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x54]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e0b05
lea eax, [ebp - 4]
call fcn.0040993c
ret

Function at 0x5f0a14
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
mov ebx, eax
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
mov eax, ebx
call fcn.0040a694
push eax
call sub.kernel32.dll_CreateFileW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x5f0a83
push dword [ebp + 0xc]
push dword [ebp + 8]
lea eax, [ebp - 0x18]
call fcn.0042778c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
call sub.kernel32.dll_SystemTimeToFileTime
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_LocalFileTimeToFileTime
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 8]
push eax
push ebx
call sub.kernel32.dll_SetFileTime
push ebx
call sub.kernel32.dll_CloseHandle_1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x6478fc
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe8
mov esi, eax
mov eax, dword [esi + 0x38]
mov eax, dword [eax + 8]
cmp dword [eax + 8], 0
setg bl
test bl, bl
je 0x6479ad
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [esi + 0x5c]
call fcn.0040a694
push eax
call sub.kernel32.dll_CreateFileW
mov edi, eax
cmp edi, 0xffffffff
setne bl
test bl, bl
je 0x6479ad
mov eax, esi
call fcn.00648274
cmp edx, 0
jne 0x647958
cmp eax, 0
jbe 0x6479a7
jmp 0x64795a
jle 0x6479a7
xor eax, eax
mov dword [esp], eax
push esp
push edi
call sub.kernel32.dll_GetFileSize
xor edx, edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov eax, dword [esp]
xor edx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x10]
xor eax, eax
or eax, dword [esp + 8]
or edx, dword [esp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov eax, esi
call fcn.00648274
cmp edx, dword [esp + 0xc]
jne 0x6479a4
cmp eax, dword [esp + 8]
sete bl
push edi
call sub.kernel32.dll_CloseHandle_1
mov eax, ebx
add esp, 0x18
pop edi
pop esi
pop ebx
ret

Function at 0x64c0dc
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004099d8
mov eax, dword [ebp - 8]
call fcn.004099d8
xor eax, eax
push ebp
push 0x64c141
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 8]
call fcn.0040a694
push eax
mov eax, dword [ebp - 4]
call fcn.0040a694
push eax
call sub.kernel32.dll_CopyFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x64c148
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409954
ret
Function at 0x100015b0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x100
push esi
push edi
xor esi, esi
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0xc]
push str.QTMLInitTermMutex_lx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push esi
push esi
call dword [sym.imp.kernel32.dll_CreateMutexA]
mov edi, eax
test edi, edi
je 0x100015f0
push 0xffffffffffffffff
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [0x100434d0]
test eax, eax
jle 0x10001604
inc eax
mov dword [0x100434d0], eax
jmp 0x100016c9
call fcn.10001220
test eax, eax
mov dword [0x100434d4], eax
jne 0x1000161f
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, 0xfffff7d3
jmp 0x10001691
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str._CallComponentFunctionWithStorage
push eax
call esi
test eax, eax
mov dword [0x100430c0], eax
je 0x1000168c
mov edx, dword [0x100434d4]
push str._CallComponent
push edx
call esi
test eax, eax
mov dword [0x100430bc], eax
je 0x1000168c
mov eax, dword [0x100434d4]
push str.theQuickTimeDispatcher
push eax
call esi
test eax, eax
mov dword [0x100430b8], eax
je 0x1000168c
mov ecx, dword [esp + 0x10c]
mov dword [0x100430b4], 0
push ecx
call fcn.10001160
mov esi, eax
add esp, 4
test si, si
jne 0x10001691
inc dword [0x100434d0]
jmp 0x100016c9
mov esi, 0xfffff7d2
mov eax, dword [0x100434d4]
test eax, eax
je 0x100016ab
push eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov dword [0x100434d4], 0
mov eax, 0x10001180
mov dword [0x100430b4], 0x100016f0
mov dword [0x100430bc], eax
mov dword [0x100430c0], eax
mov dword [0x100430b8], eax
test edi, edi
je 0x100016db
push edi
call dword [sym.imp.kernel32.dll_ReleaseMutex]
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ax, si
pop edi
pop esi
add esp, 0x100
ret

Function at 0x10001760
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x100
push esi
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 8]
push str.QTMLInitTermMutex_lx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x1000179f
push 0xffffffffffffffff
push esi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [0x100434d0]
test eax, eax
jg 0x100017b4
mov dword [0x100434d0], 0
jmp 0x100017ee
dec eax
test eax, eax
mov dword [0x100434d0], eax
jg 0x100017ee
call fcn.10001170
mov edx, dword [0x100434d4]
mov eax, 0x10001180
push edx
mov dword [0x100430b4], 0x100016f0
mov dword [0x100430bc], eax
mov dword [0x100430c0], eax
mov dword [0x100430b8], eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
test esi, esi
je 0x10001800
push esi
call dword [sym.imp.kernel32.dll_ReleaseMutex]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop esi
add esp, 0x100
ret
Function at 0x100051ef
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x100051fe
pop dword [ebp - 0x18]
mov eax, 0x69e8cc1a
sub eax, 0x59e87a1c
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xdcb683d1
add dword [ebp - 0x28], 0x719bc17a
mov dword [ebp - 0x24], 0xedecafdc
add dword [ebp - 0x24], 0x44469c69
mov dword [ebp - 0x20], 0x9ebdcbbf
sub dword [ebp - 0x20], 0x52718791
mov dword [ebp - 0x1c], 0x7b14270e
add dword [ebp - 0x1c], 0x84ebd8f2
lea eax, [ebp - 0x28]
push eax
mov eax, 0xa9c70d6
add eax, 0x5643f4e
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x41e022fa
sub dword [ebp - 0x28], 0xcd6db9a4
mov dword [ebp - 0x24], 0xad8940d9
sub dword [ebp - 0x24], 0x6c1cdf64
mov dword [ebp - 0x20], 0xf79532ee
sub dword [ebp - 0x20], 0x9425c682
mov dword [ebp - 0x1c], 0x1b88645d
sub dword [ebp - 0x1c], 0x1b88645d
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x63a79511
sub eax, 0x53a6e4e5
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x344ed
push 0
call eax
mov ecx, 0x875ebc58
add ecx, 0x78a17f28
xor edi, edi
add edi, eax
mov esi, 0x10046200
add esi, dword [ebp - 0x18]
mov ebx, 0x5dd5e827
add dword [ebp - 0x10], esi
mov edx, dword [esi]
add dword [ebp - 0xc], ecx
add edx, ebx
add dword [ebp - 0xc], eax
mov dword [edi], edx
xor dword [ebp - 0x10], 0xe3dd7575
add edi, 0x67701e18
add edi, 0x988fe1ec
add esi, 0x6ce4f288
add esi, 0x931b0d7c
loop 0x10005316
add eax, 0xfdfb8370
sub eax, 0xfdfaa29d
mov ebx, eax
add eax, 0xafdca910
sub eax, 0xafdca90b
mov ecx, 0x10000000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x436b76
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x436b85
pop dword [ebp - 0x1c]
mov eax, 0x2e0095d7
add eax, 0xd242d5ae
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x52326
push 0
mov eax, 0xc5fc571d
sub eax, 0xc5b7a461
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0x29cbec3
add ecx, 0xfd639224
xor ebx, ebx
add ebx, eax
mov esi, 0xd52d478b
sub esi, 0xd4e4c98b
add esi, dword [ebp - 0x1c]
mov edi, 0x4c9988d5
sub edi, 0x944c02fe
xor dword [ebp - 4], 0xe7ce53b5
mov edx, dword [esi]
add edx, edi
sub dword [ebp - 0xc], 0x9027a49c
mov dword [ebx], edx
sub dword [ebp - 0xc], 0x1a07c0bd
add ebx, 4
add esi, 4
loop 0x436be6
add eax, 0xd6feffa3
add eax, 0x290236cc
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x43fcae
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46b5d8
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x43fcf1
push str.SystemFunction040
push dword [0x46b5d8]
call edi
push str.SystemFunction041
push dword [0x46b5d8]
mov dword [0x46b5e0], eax
call edi
mov dword [0x46b5e4], eax
jmp 0x43fcf6
mov eax, dword [0x46b5e4]
cmp dword [0x46b5e0], 0
je 0x43fd07
test eax, eax
jne 0x43fdae
push 0x46b5dc
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x43fdb8
push str.CryptProtectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e0], 0
mov dword [0x46b5e8], eax
jne 0x43fd6c
test eax, eax
jne 0x43fd6c
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fd56
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fd5d
mov esi, 0x80004005
push esi
push 0x28
push str.cryputil.cpp
call fcn.00403821
jmp 0x43fdb8
push str.CryptUnprotectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e4], 0
mov dword [0x46b5ec], eax
jne 0x43fdae
test eax, eax
jne 0x43fdae
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fda2
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fda9
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x43fd60
mov dword [0x46b5f0], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x43c27d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x461f88
cmp edx, dword [eax]
je 0x43c29f
add eax, 8
inc ecx
cmp eax, str.__t__r_
jl 0x43c290
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x461f88]
jne 0x43c3cd
mov eax, dword [0x4650f8]
cmp eax, 1
je 0x43c3a7
test eax, eax
jne 0x43c2d0
cmp dword [0x461dd4], 1
je 0x43c3a7
cmp edx, 0xfc
je 0x43c3cd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43c307
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0043fa50
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0043b880
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x43c34a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0043b880
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x451cec
push edi
call fcn.00438a90
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0043fa50
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0043fa60
lea eax, [ebp - 0xa0]
push 0x449cb4
push eax
call fcn.0043fa60
push dword [esi + 0x461f8c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0043fa60
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004408db
add esp, 0x2c
pop edi
jmp 0x43c3cd
lea eax, [ebp + 8]
lea esi, [esi + 0x461f8c]
push 0
push eax
push dword [esi]
call fcn.0043b880
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x43fa09
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x43fa29
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043f38e
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x43fa4a
test byte [esp + 8], 2
je 0x43fa4a
mov dword [0x4650a4], 0xd
mov dword [0x4650a8], 5
jmp 0x43fa25
xor eax, eax
ret

Function at 0x40180b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40184a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40184a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40184a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40184a
cmp dword [ecx + 0x74], 0xe
jbe 0x40184a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40b595
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ebx
xor bl, bl
cmp dword [ebp + 8], 0
je 0x40b5b2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x40b5c3
inc bl
jmp 0x40b5c9
add ecx, 0xc9a
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x40b5c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov al, bl
pop ebx
pop ebp
ret 4

Function at 0x40b5d0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
mov ebx, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x18]
xor edi, edi
push eax
mov dword [ebp - 0x204], edi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
push edi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 0x50
mov dword [ebp - 0x1fc], eax
lea eax, [ebp - 0x1f8]
push edi
push eax
call fcn.004f5a90
add esp, 0xc
lea eax, [ebp - 0x1f8]
push eax
push 0x14
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov esi, eax
lea eax, [ebp - 0x204]
push 0x10
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004fe324
push esi
push dword [ebp - 0x1fc]
mov dword [ebp - 0x200], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1a8]
push str.Layout_s__HKL0x_08X__Count_u_n
push eax
call fcn.00409bc5
add esp, 0x20
lea eax, [ebp - 0x1f8]
mov ecx, ebx
push esi
push eax
push 0xc8
lea eax, [ebp - 0x1a8]
push eax
call fcn.0040b25c
mov edx, dword [ebp - 0x200]
or esi, 0xffffffff
test edx, edx
je 0x40b739
mov ecx, edi
lea eax, [ecx + 0x70f]
imul eax, eax, 0xc
cmp dword [eax + ebx], edi
jne 0x40b6b4
cmp esi, 0xffffffff
mov eax, ecx
cmovne eax, esi
mov esi, eax
jmp 0x40b6c0
imul eax, ecx, 0xc
cmp dword [eax + ebx + 0x54b8], edx
je 0x40b6c8
inc ecx
cmp ecx, 0x14
jl 0x40b69a
jmp 0x40b6cb
push 0xfffffffffffffffe
pop esi
test esi, esi
js 0x40b734
mov al, byte [ebp - 0x1fc]
xor al, dl
je 0x40b723
push str._nLOWORD_hkl_LOWORD_dwLayout_____Warning__strange_layout_ID
push 0xc8
lea eax, [ebp - 0x1a8]
push eax
call fcn.004019cd
lea eax, [ebp - 0x1a8]
push 0xa
push eax
call fcn.004f5617
pop ecx
pop ecx
test eax, eax
je 0x40b70b
push 0x20
pop ecx
mov word [eax], cx
jmp 0x40b6f5
push 1
push 1
lea eax, [ebp - 0x1a8]
mov ecx, ebx
push eax
call fcn.00410feb
mov edx, dword [ebp - 0x200]
push dword [ebp - 0x1fc]
mov ecx, ebx
push edx
push esi
call fcn.0041be15
jmp 0x40b769
cmp esi, 0xffffffff
jne 0x40b769
push str._niUnused_1
push 0xc8
lea eax, [ebp - 0x1a8]
push eax
call fcn.004019cd
push edi
push 0x24f9
lea eax, [ebp - 0x1a8]
push str.t:_vcprojectmaximus5conemu_srcconemuconemu.cpp
push eax
call fcn.0041f6df
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f4166
leave
ret
Function at 0x41008c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x420], ebx
push edi
test esi, esi
je 0x41022d
cmp word [esi], 0x40
jne 0x41022d
push ebx
lea ecx, [ebp - 0x418]
mov dword [ebp - 0x424], ebx
push ecx
lea ecx, [ebp - 0x424]
mov dword [ebp - 0x418], ebx
push ecx
lea ecx, [ebp - 0x420]
push ecx
lea eax, [esi + 2]
push 0x100000
push eax
mov dword [ebp - 0x41c], eax
call fcn.004ee30d
add esp, 0x18
cmp eax, 0xffffffff
jne 0x4101b2
xor eax, eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x41011f
sub esi, ecx
lea ecx, [ebp - 0x414]
sar esi, 1
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x410137
sub ecx, edx
sar ecx, 1
add ecx, 0x64
add esi, ecx
push 2
push esi
call fcn.004e1c42
pop ecx
pop ecx
push str.Cant_open_console_batch_file:_n
mov edi, eax
push esi
push edi
call fcn.00401a0b
push dword [ebp - 0x41c]
push esi
push edi
call fcn.004019cd
push 0x52734c
push esi
push edi
call fcn.004019cd
lea eax, [ebp - 0x414]
push eax
push esi
push edi
call fcn.004019cd
push 0x52737c
push esi
push edi
call fcn.004019cd
push ebx
push ebx
push ebx
push dword [ebp - 0x418]
push edi
call fcn.00420ad9
push edi
call fcn.004e1bea
add esp, 0x18
xor eax, eax
jmp 0x41022f
cmp eax, 0xfffffffe
jne 0x4101fd
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x4101ba
sub esi, ecx
sar esi, 1
push 2
lea eax, [esi + 0x64]
push eax
call fcn.004e1c42
pop ecx
pop ecx
push str.Console_batch_file_is_too_large_or_empty:_n
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 0x41c]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
call esi
push 0x52737c
push edi
call esi
jmp 0x410196
test eax, eax
jns 0x410227
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x410204
sub esi, ecx
sar esi, 1
push 2
lea eax, [esi + 0x64]
push eax
call fcn.004e1c42
pop ecx
pop ecx
push str.Reading_console_batch_file_failed:_n
jmp 0x4101db
mov ebx, dword [ebp - 0x420]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f4166
leave
ret 4
Function at 0x41338f
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x218
mov eax, 0x50d495
call fcn.004f41e2
mov ebx, ecx
mov eax, dword [ebp + 8]
mov ecx, 0x284
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0xc]
cmp eax, ecx
ja 0x4134b9
je 0x4134ad
sub eax, 0x10d
je 0x413484
sub eax, 1
je 0x413465
sub eax, 1
je 0x413443
sub eax, 0x172
je 0x413437
sub eax, 1
je 0x4133ff
sub eax, 1
jne 0x41357b
push edi
push esi
push str.WM_IME_CONTROL:_wParam0x_08X__lParam0x_08X_n
jmp 0x41356c
push edi
push esi
lea eax, [ebp - 0x210]
push str.WM_IME_NOTIFY:_wParam0x_08X__lParam0x_08X_n
push eax
call fcn.00409bde
add esp, 0x10
cmp esi, 8
jne 0x41357b
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
shr ax, 0xf
and al, 1
mov byte [ebx + 0x75a6], al
jmp 0x41357b
push edi
push esi
push str.WM_IME_SETCONTEXT:_wParam0x_08X__lParam0x_08X_n
jmp 0x41356c
push edi
push esi
lea eax, [ebp - 0x210]
push str.WM_IME_COMPOSITION:_wParam0x_08X__lParam0x_08X_n
push eax
call fcn.00409bde
add esp, 0x10
mov ecx, ebx
call fcn.0041cc97
jmp 0x41357b
push edi
push esi
lea eax, [ebp - 0x210]
push str.WM_IME_ENDCOMPOSITION:_wParam0x_08X__lParam0x_08X_n
push eax
call fcn.00409bde
mov byte [ebx + 0x75a5], 0
jmp 0x413578
push edi
push esi
lea eax, [ebp - 0x210]
push str.WM_IME_STARTCOMPOSITION:_wParam0x_08X__lParam0x_08X_n
push eax
call fcn.00409bde
add esp, 0x10
mov ecx, ebx
call fcn.0041cc97
mov byte [ebx + 0x75a5], 1
jmp 0x41357b
push edi
push esi
push str.WM_IME_COMPOSITIONFULL:_wParam0x_08X__lParam0x_08X_n
jmp 0x41356c
sub eax, 0x285
je 0x413565
sub eax, 1
je 0x4134fb
dec eax
sub eax, 1
je 0x4134f2
sub eax, 8
je 0x4134e9
sub eax, 1
jne 0x41357b
push edi
push esi
push str.WM_IME_KEYUP:_wParam0x_08X__lParam0x_08X_n
jmp 0x41356c
push edi
push esi
push str.WM_IME_KEYDOWN:_wParam0x_08X__lParam0x_08X_n
jmp 0x41356c
push edi
push esi
push str.WM_IME_REQUEST:_wParam0x_08X__lParam0x_08X_n
jmp 0x41356c
push edi
push esi
movzx eax, si
push eax
lea eax, [ebp - 0x210]
push str.WM_IME_CHAR:_char_c__wParam_u__lParam0x_08X_n
push eax
call fcn.00409bde
add esp, 0x14
lea ecx, [ebp - 0x224]
call fcn.004d840a
and dword [ebp - 4], 0
lea eax, [ebp - 0x224]
push 0
push eax
call fcn.004d3e20
mov ebx, dword [ebp - 0x214]
pop ecx
pop ecx
test eax, eax
js 0x413558
mov ecx, dword [ebp - 0x220]
push edi
push esi
push 0x286
push ebx
call fcn.004de78b
mov ecx, eax
call fcn.0048b601
lea ecx, [ebp - 0x224]
call fcn.004d84a5
jmp 0x413581
push edi
push esi
push str.WM_IME_SELECT:_wParam0x_08X__lParam0x_08X_n
lea eax, [ebp - 0x210]
push eax
call fcn.00409bde
add esp, 0x10
mov ebx, dword [ebp - 0x214]
push edi
push esi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.USER32.dll_DefWindowProcW]
call fcn.004f418c
ret 0x10