joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45061c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4507c7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4507a8
mov dl, 1
mov eax, dword [0x413118]
call fcn.004033ac
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404114
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x450797
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043dfb0
test al, al
je 0x45078a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4507d8
lea eax, [ebp - 0x254]
call fcn.0040a264
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45078a
xor eax, eax
push ebp
push 0x450783
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x450810
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45076c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404384
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45076c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404384
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45078a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45068d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00416c48
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4507ce
lea eax, [ebp - 0x260]
call fcn.00404114
ret

Function at 0x4510fc
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x461dd0]
cmp byte [eax + 0xa5], 0
jne 0x45116d
cmp dword [0x461de8], 0
jne 0x45112e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4510b8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x461de8], eax
cmp dword [0x461de4], 0
jne 0x451149
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x461de4], eax
cmp dword [0x461dec], 0
jne 0x45116d
push esp
push 0
push 0
push 0x45105c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x461dec], eax
pop edx
ret
Function at 0x451264
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45127b
add esp, 0xfffffff0
call fcn.004036e8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041aa58
mov eax, dword [0x45e670]
cmp word [eax + 2], 0
jne 0x4512a3
mov eax, dword [0x45e670]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045293c
mov eax, dword [0x45e718]
cmp word [eax + 2], 0
jne 0x4512bd
mov eax, dword [0x45e718]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00452b34
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x412cfc]
call fcn.004033ac
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x412cfc]
call fcn.004033ac
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41cc34]
call fcn.00422904
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x451444
mov eax, dword [0x45e594]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00422cd4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4530d4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45e594]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d8a0
test eax, eax
je 0x4513b2
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409c58
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d8c8
test eax, eax
je 0x4513c6
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404384
mov eax, dword [0x45e490]
cmp byte [eax], 0
jne 0x4513fa
mov eax, ebx
call fcn.0045156c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004532b0
mov eax, ebx
call fcn.00453c74
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45143a
call fcn.00403740
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4517ec
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x461dd0]
cmp dword [eax + 0x30], 0
je 0x451896
cmp dword [ebx + 0x94], 0
jne 0x451890
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45177c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x451890
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x451856
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x451890
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00415064
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x451865
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4523f8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45242d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404204
jmp 0x45243a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404168
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45348c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4534cd
mov eax, esi
call fcn.0043962c
test al, al
je 0x4534cd
mov eax, dword [ebx + 0x84]
call fcn.00439328
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4534cd
push 0
mov eax, dword [ebx + 0x84]
call fcn.00439328
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x403210
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call 0x403280
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00401fc0
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
jmp dword [sym.imp.ucrtbase.dll___p___argc]

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x32f0279
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x645d52ce
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
jmp 0x401219

Function at 0x7c6058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.007c61a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x7c607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7c606a
add dl, dl
jne 0x7c6089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7c60dc
xor eax, eax
add dl, dl
jne 0x7c6096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7c617d
add dl, dl
jne 0x7c60a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7c60b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7c60bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7c60c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x7c60d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x7c6075
mov eax, 1
add dl, dl
jne 0x7c60ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7c60f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7c60e1
sub eax, ebx
mov ebx, 1
jne 0x7c6128
mov ecx, 1
add dl, dl
jne 0x7c610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x7c6119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7c6105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7c6075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x7c613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x7c614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7c6136
cmp eax, 0x7d00
jae 0x7c616d
cmp eax, 0x500
jb 0x7c6168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7c6075
cmp eax, 0x7f
ja 0x7c6170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7c6075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x7c619e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x7c6075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40467d
Capabilities:
Get disk information

Disassembly:
xor eax, eax
cmp dword [esi + 0xa3c], 2
sete al
push eax
push 0x3f0
mov eax, esi
call fcn.004013c2
xor eax, eax
cmp dword [esi + 0xa3c], 3
sete al
push eax
push 0x3f2
mov eax, esi
call fcn.004013c2
cmp dword [esi + 0xa3c], 3
jne 0x4046bf
mov ecx, esi
jmp fcn.004046c0
ret
Function at 0x40598c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call sub.msvcrt.dll_wcslen
pop ecx
add eax, eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
leave
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x405fdf
Capabilities:
Get common file path

Disassembly:
cmp word [0x415478], 0
push esi
mov esi, 0x415478
jne 0x406000
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov dword [0x415684], eax
push esi
push dword [esp + 0xc]
call sub.msvcrt.dll_wcscpy
mov eax, dword [0x415684]
pop ecx
pop ecx
pop esi
ret

Function at 0x4062ea
Capabilities:
Create process on windows

Disassembly:
push 5
mov eax, 0x41047c
push eax
push eax
push dword [esp + 0x14]
push str.open
push dword [esp + 0x18]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x20
pop ecx
cmp ecx, eax
sbb eax, eax
neg eax
ret

Function at 0x40645c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
push 2
push 0x4115cc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
leave
ret

Function at 0x407227
Capabilities:
Read .ini file

Disassembly:
and word [esi], 0
push 0x414dd8
push dword [esp + 0xc]
push esi
push 0x41047c
push dword [esp + 0x14]
push 0x414fe8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, esi
ret

Function at 0x40724c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0040f7d0
and word [ebp - 0x2004], 0
push 0x2000
lea eax, [ebp - 0x2002]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x414dd8
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x41047c
push dword [ebp + 8]
push 0x414fe8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
je 0x4072bb
lea eax, [ebp - 0x2004]
push eax
push dword [ebp + 0xc]
call sub.msvcrt.dll_wcscpy
pop ecx
xor eax, eax
pop ecx
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x4072bf
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0040f7d0
and word [ebp - 0x2004], 0
push esi
push edi
push 0x2000
lea eax, [ebp - 0x2002]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x414dd8
push edi
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x41047c
push dword [ebp + 8]
mov esi, 0x414fe8
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
je 0x407326
cmp dword [ebp + 0x10], 0
jne 0x407326
xor eax, eax
jmp 0x407334
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
pop edi
pop esi
leave
ret
Function at 0x407687
Capabilities:
Read .ini file

Disassembly:
push dword [esp + 4]
call fcn.00405d5e
test eax, eax
pop ecx
je 0x40770e
push esi
push edi
push dword [esp + 0xc]
mov edi, 0x414dd8
push edi
call sub.msvcrt.dll_wcscpy
push str.general
mov esi, 0x414fe8
push esi
call sub.msvcrt.dll_wcscpy
add esp, 0x10
push edi
push 0
push 0x4112c8
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
dec eax
neg eax
sbb eax, eax
inc eax
push 0x3f
push str.charset
mov esi, 0x415070
mov dword [0x41506c], eax
call fcn.00407227
push 0x3f
push str.TranslatorName
mov esi, 0x4150f0
call fcn.00407227
push 0xff
push str.TranslatorURL
mov esi, 0x415170
call fcn.00407227
add esp, 0x18
pop edi
pop esi
ret

Function at 0x4088c1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0040f7d0
push ebx
push esi
mov esi, 0x1fff
xor ebx, ebx
push esi
lea eax, [ebp - 0x2003]
push ebx
push eax
mov byte [ebp - 0x2004], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
push ebx
push esi
lea eax, [ebp - 0x2004]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2004]
push eax
call sub.msvcrt.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x2004]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
leave
ret

Function at 0x40af5d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x72b], 0
mov byte [ebp - 0x72a], 0xc2
and byte [ebp - 0x729], 0
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
mov byte [ebp - 0x71e], 0x49
mov byte [ebp - 0x71d], 0x58
mov byte [ebp - 0x71c], 0x5e
invalid
invalid
call dword [esi + eax*8 - 0x7b]
invalid
Function at 0x40c764
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
mov byte [edi + 3], 0
call esi
test ax, ax
jns 0x40c7cb
push 0x10
call esi
test ax, ax
jns 0x40c7cb
push 0x12
call esi
test ax, ax
js 0x40c7cb
inc dword [0x415aa4]
mov eax, dword [0x415aa4]
cmp byte [eax + edi], 0
jne 0x40c7d2
mov eax, dword [ebx + 0x698]
mov ecx, dword [eax + 0x40]
and dword [0x415aa4], 0
neg ecx
sbb ecx, ecx
and ecx, 0xfffff830
add ecx, 0x7d0
mov dword [eax + 0x40], ecx
mov eax, dword [ebx + 0x69c]
call fcn.004098da
jmp 0x40c7d2
and dword [0x415aa4], 0
xor eax, eax
inc eax
pop esi
ret
Function at 0x40e10b
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4004
call fcn.0040f7d0
push esi
push edi
xor eax, eax
cmp dword [ebp + 8], eax
push 0x4000
push eax
mov word [ebp - 0x4004], ax
lea eax, [ebp - 0x4002]
mov edi, ecx
push eax
je 0x40e16a
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x4004]
push eax
push dword [edi]
push dword [ebp + 0x14]
call fcn.0040647c
add esp, 0x18
push dword [ebp + 0x18]
lea eax, [ebp - 0x4004]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov esi, eax
jmp 0x40e1ab
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 0x18]
lea eax, [ebp - 0x4004]
push 0x2000
push eax
push 0x41047c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [ebp + 0x14]
xor ecx, ecx
cmp ecx, eax
sbb esi, esi
push edi
lea edi, [ebp - 0x4004]
neg esi
call fcn.00406505
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x40e1b1
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push dword [ebp + 0x18]
je 0x40e1cf
push dword [esi]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040e0be
add esp, 0x10
pop ebp
ret
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi], eax
pop ebp
ret

Function at 0x40e222
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e25b
mov ecx, dword [ebp - 4]
cmp ecx, 2
jb 0x40e257
shr ecx, 1
and word [esi + ecx*2], ax
leave
ret
and word [esi], 0
leave
ret
Function at 0x40eafc
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi], 0
jne 0x40ebcd
push edi
push str.setupapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CM_Locate_DevNodeW
push eax
mov dword [esi], eax
call edi
push str.CM_Request_Device_EjectW
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.CM_Locate_DevNode_ExW
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.CM_Connect_MachineW
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.CM_Disconnect_MachineW
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.CM_Request_Device_Eject_ExW
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.SetupDiGetClassDevsW
push dword [esi]
mov dword [esi + 0x18], eax
call edi
push str.SetupDiDestroyDeviceInfoList
push dword [esi]
mov dword [esi + 0x1c], eax
call edi
push str.SetupDiRemoveDevice
push dword [esi]
mov dword [esi + 0x20], eax
call edi
push str.SetupDiEnumDeviceInfo
push dword [esi]
mov dword [esi + 0x24], eax
call edi
push str.SetupDiGetClassDevsExW
push dword [esi]
mov dword [esi + 0x28], eax
call edi
push str.SetupDiCallClassInstaller
push dword [esi]
mov dword [esi + 0x2c], eax
call edi
push str.SetupDiSetClassInstallParamsW
push dword [esi]
mov dword [esi + 0x30], eax
call edi
push str.SetupDiOpenDeviceInfoW
push dword [esi]
mov dword [esi + 0x34], eax
call edi
push str.SetupDiGetDeviceInstanceIdW
push dword [esi]
mov dword [esi + 0x38], eax
call edi
mov dword [esi + 0x3c], eax
pop edi
ret
Function at 0x40f2dd
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x10], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, esi
mov dword [ebp - 4], eax
jbe 0x40f46f
push ebx
mov eax, edi
call fcn.00406c24
push dword [ebp - 4]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ebx, eax
push ebx
push dword [ebp - 4]
push esi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x4111d4
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40f360
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x30]
mov dword [edi + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edi], ecx
mov ecx, dword [eax + 0x14]
mov dword [edi + 0xc], ecx
mov ecx, dword [eax + 0x10]
mov dword [edi + 8], ecx
mov ecx, dword [eax + 0x24]
mov dword [edi + 0x10], ecx
mov eax, dword [eax + 0x28]
mov dword [edi + 0x14], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push str.VarFileInfoTranslation
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40f3af
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push str._4.4X_4.4X
lea eax, [ebp - 0x38]
push 0x14
push eax
call sub.msvcrt.dll__snwprintf
add esp, 0x14
push 0x41047c
lea eax, [ebp - 0x38]
push eax
push ebx
lea esi, [ebp - 0x238]
call fcn.0040f24e
test eax, eax
jne 0x40f3bf
lea eax, [ebp - 0x38]
push str.040904E4
push eax
call sub.msvcrt.dll_wcscpy
pop ecx
pop ecx
push 0x41250c
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x18]
push ebx
call fcn.0040f24e
push 0x412524
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x218]
push ebx
call fcn.0040f24e
push 0x412544
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x418]
push ebx
call fcn.0040f24e
push 0x41255c
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x618]
push ebx
call fcn.0040f24e
push 0x41257c
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x818]
push ebx
call fcn.0040f24e
push 0x412594
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0xa18]
push ebx
call fcn.0040f24e
push 0x4125b0
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0xc18]
push ebx
call fcn.0040f24e
push str.OriginalFileName
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0xe18]
push ebx
call fcn.0040f24e
xor esi, esi
push ebx
inc esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
mov eax, esi
pop esi
leave
ret 4

Function at 0x408950
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop ecx
sub ebx, ebx
call fcn.0040896a
and ebx, eax
xor dword [edi], ecx
inc edi
inc ebx
cmp edi, esi
jne fcn.00408950
add ebx, eax
ret