joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001a80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x1000c47f
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x10011d50]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10011d50]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, dword [esp + 0x78]
xor ebx, ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], ebx
mov eax, 0xf
mov ecx, 1
lea ebp, [esi + 4]
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], ebx
mov dword [esp + 0x70], ecx
mov byte [ebp], bl
cmp dword [esp + 0x90], ebx
mov dword [esp + 0x18], ecx
jle 0x10001be3
push 0xffffffffffffffff
mov dword [esp + 0x48], eax
push ebx
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.10002830
mov eax, dword [esp + 0x40]
cmp eax, ebx
mov byte [esp + 0x70], 2
mov dword [esp + 0x1c], eax
jle 0x10001bcf
push 2
push ebx
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x38]
call fcn.10002c40
cmp dword [esp + 0x60], 0x10
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x70], 3
jae 0x10001b45
lea eax, [esp + 0x4c]
push 0x10
push 0
push eax
call fcn.100056eb
mov ecx, dword [esi + 0x18]
add esp, 0xc
mov byte [esp + 0x14], al
cmp ecx, 0x10
jb 0x10001b63
mov eax, dword [ebp]
jmp 0x10001b65
mov eax, ebp
mov edx, dword [esi + 0x14]
lea edi, [edx + eax]
test edi, edi
je 0x10001b91
cmp ecx, 0x10
jb 0x10001b79
mov eax, dword [ebp]
jmp 0x10001b7b
mov eax, ebp
cmp eax, edi
ja 0x10001b91
cmp ecx, 0x10
jb 0x10001b89
mov eax, dword [ebp]
jmp 0x10001b8b
mov eax, ebp
add edx, eax
cmp edi, edx
jbe 0x10001b96
call fcn.10005359
mov edx, dword [esp + 0x14]
push edx
push edi
push esi
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.10002b20
cmp dword [esp + 0x60], 0x10
mov byte [esp + 0x70], 2
jb 0x10001bc2
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.10004a58
add esp, 4
add ebx, 2
cmp ebx, dword [esp + 0x1c]
jl 0x10001b20
cmp dword [esp + 0x44], 0x10
jb 0x10001be3
mov edx, dword [esp + 0x30]
push edx
call fcn.10004a58
add esp, 4
cmp dword [esp + 0x94], 0x10
jb 0x10001bfd
mov eax, dword [esp + 0x80]
push eax
call fcn.10004a58
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.100051e2
add esp, 0x60
ret
Function at 0x10002190
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x1000c516
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x10011d50]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10011d50]
xor eax, esp
push eax
lea eax, [esp + 0x160]
mov dword fs:[0], eax
xor ebx, ebx
mov byte [esp + 0x17], bl
xor edi, edi
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
push ebx
push 2
mov dword [esp + 0x170], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x10002214
cmp dword [esp + 0x30], 0x10
jb 0x1000220d
mov eax, dword [esp + 0x1c]
push eax
call fcn.10004a58
add esp, 4
xor al, al
jmp 0x10002308
lea ecx, [esp + 0x34]
push ecx
push ebp
mov dword [esp + 0x3c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x10002250
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x30], 0x10
jb 0x1000220d
mov edx, dword [esp + 0x1c]
push edx
call fcn.10004a58
add esp, 4
xor al, al
jmp 0x10002308
xor esi, esi
movsx eax, byte [esp + esi + 0x58]
push eax
call fcn.1000582b
mov byte [esp + esi + 0x5c], al
inc esi
add esp, 4
cmp esi, 0x104
jl 0x10002252
lea eax, [esp + 0x58]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10002274
sub eax, edx
push eax
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x20]
call fcn.10002910
push 4
push ebx
push str..exe
lea ecx, [esp + 0x24]
call fcn.10002470
test eax, eax
jbe 0x100022cd
push 0xc
push ebx
push str.vboxservice.
lea ecx, [esp + 0x24]
call fcn.10002470
test eax, eax
jne 0x100022b7
inc edi
push 9
push ebx
push str.vboxtray.
lea ecx, [esp + 0x24]
call fcn.10002470
test eax, eax
jne 0x100022cd
inc edi
lea edx, [esp + 0x34]
push edx
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10002250
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 1
mov bl, 1
jg 0x100022f2
mov bl, byte [esp + 0x17]
cmp dword [esp + 0x30], 0x10
jb 0x10002306
mov eax, dword [esp + 0x1c]
push eax
call fcn.10004a58
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x160]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.100051e2
add esp, 0x158
ret
Function at 0x10003590
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x1000c661
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x10011d50]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10011d50]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov esi, dword [esp + 0x78]
xor ebx, ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], ebx
mov eax, 0xf
mov ecx, 1
lea ebp, [esi + 4]
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], ebx
mov dword [esp + 0x70], ecx
mov byte [ebp], bl
cmp dword [esp + 0x90], ebx
mov dword [esp + 0x18], ecx
jle 0x100036f3
push 0xffffffffffffffff
mov dword [esp + 0x48], eax
push ebx
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.10002830
mov eax, dword [esp + 0x40]
cmp eax, ebx
mov byte [esp + 0x70], 2
mov dword [esp + 0x1c], eax
jle 0x100036df
push 2
push ebx
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x38]
call fcn.10002c40
cmp dword [esp + 0x60], 0x10
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x70], 3
jae 0x10003655
lea eax, [esp + 0x4c]
push 0x10
push 0
push eax
call fcn.100056eb
mov ecx, dword [esi + 0x18]
add esp, 0xc
mov byte [esp + 0x14], al
cmp ecx, 0x10
jb 0x10003673
mov eax, dword [ebp]
jmp 0x10003675
mov eax, ebp
mov edx, dword [esi + 0x14]
lea edi, [edx + eax]
test edi, edi
je 0x100036a1
cmp ecx, 0x10
jb 0x10003689
mov eax, dword [ebp]
jmp 0x1000368b
mov eax, ebp
cmp eax, edi
ja 0x100036a1
cmp ecx, 0x10
jb 0x10003699
mov eax, dword [ebp]
jmp 0x1000369b
mov eax, ebp
add edx, eax
cmp edi, edx
jbe 0x100036a6
call fcn.10005359
mov edx, dword [esp + 0x14]
push edx
push edi
push esi
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.10002b20
cmp dword [esp + 0x60], 0x10
mov byte [esp + 0x70], 2
jb 0x100036d2
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.10004a58
add esp, 4
add ebx, 2
cmp ebx, dword [esp + 0x1c]
jl 0x10003630
cmp dword [esp + 0x44], 0x10
jb 0x100036f3
mov edx, dword [esp + 0x30]
push edx
call fcn.10004a58
add esp, 4
cmp dword [esp + 0x94], 0x10
jb 0x1000370d
mov eax, dword [esp + 0x80]
push eax
call fcn.10004a58
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.100051e2
add esp, 0x60
ret 0x20

Function at 0x100051e2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10011d50]
jne 0x100051ec
repz ret
jmp fcn.10007ddc
Function at 0x1000bf40
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10007758
and dword [ebp - 4], 0
cmp dword [0x10015044], 0
mov ebx, eax
jne 0x1000bff1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1000c0a2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1000c0a2
push eax
call fcn.100076e6
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10015044], eax
call esi
push eax
call fcn.100076e6
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10015048], eax
call esi
push eax
call fcn.100076e6
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1001504c], eax
call esi
push eax
call fcn.100076e6
pop ecx
mov dword [0x10015054], eax
test eax, eax
je 0x1000bff1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100076e6
pop ecx
mov dword [0x10015050], eax
mov eax, dword [0x10015050]
cmp eax, ebx
je 0x1000c049
cmp dword [0x10015054], ebx
je 0x1000c049
push eax
call fcn.10007761
push dword [0x10015054]
mov esi, eax
call fcn.10007761
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1000c049
test edi, edi
je 0x1000c049
call esi
test eax, eax
je 0x1000c040
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1000c040
test byte [ebp - 0xc], 1
jne 0x1000c049
or dword [ebp + 0x10], 0x200000
jmp 0x1000c082
mov eax, dword [0x10015048]
cmp eax, ebx
je 0x1000c082
push eax
call fcn.10007761
pop ecx
test eax, eax
je 0x1000c082
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1000c082
mov eax, dword [0x1001504c]
cmp eax, ebx
je 0x1000c082
push eax
call fcn.10007761
pop ecx
test eax, eax
je 0x1000c082
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10015044]
call fcn.10007761
pop ecx
test eax, eax
je 0x1000c0a2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000c0a4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42e006
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
je 0x42e072
nop
nop
nop
nop
nop
mov ebx, 0x407ef8
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x645c6b8f
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e0d2
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x22d3026a
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x10003a20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x10051c98
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 4
mov esi, 1
call fcn.10023088
add esp, 4
mov edi, eax
lea eax, [ebp - 4]
push eax
push 0
push edi
push 0x10003b30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x10051c7c], eax
cmp eax, 0xffffffff
je 0x10003b0e
push 0xf
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x10003a9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [0x10051c7c]
push 0xf
push 0xc8
push str.hook_enable
push str._s___u_:_Could_not_set_thread_priority__li_for_thread__p____lX__n
push 3
call fcn.10003b70
add esp, 0x1c
push 0xffffffffffffffff
push 0x10051c98
push 0x10051cb0
call dword [sym.imp.KERNEL32.dll_SleepConditionVariableCS]
push 0x10051c80
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
je 0x10003ad9
push 0xffffffffffffffff
push dword [0x10051c7c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push dword [0x10051c7c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
jmp 0x10003adb
xor esi, esi
push edi
call fcn.10023083
push esi
push 0x101
push str.hook_enable
push str._s___u_:_Thread_Result:___X_._n
push 1
call fcn.10003b70
add esp, 0x18
push 0x10051c98
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0x10051c98
mov esi, 0x10
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100042a0
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x10051cc8], 0
jne 0x100042be
call fcn.10006010
mov dword [0x10051cc8], 1
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10051cb8], eax
mov eax, dword [0x10052fbc]
test eax, eax
jne 0x10004342
push 0x2ba
push 0x10044ce0
push str._s___u_:_hInst_was_not_set_by_DllMain__._n
push 2
call dword [0x10051024]
add esp, 0x10
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x10052fbc], eax
test eax, eax
je 0x10004320
cmp dword [0x10051cc8], 0
jne 0x10004342
call fcn.10006010
mov dword [0x10051cc8], 1
jmp 0x1000433d
call edi
push eax
push 0x2c7
push 0x10044ce0
push str._s___u_:_Could_not_determine_hInst_for_SetWindowsHookEx______lX__n
push 4
call dword [0x10051024]
add esp, 0x14
mov eax, dword [0x10052fbc]
mov esi, dword [sym.imp.USER32.dll_SetWindowsHookExA]
push 0
push eax
push 0x10004780
push 0xd
call esi
push 0
push dword [0x10052fbc]
mov dword [0x10051cbc], eax
push 0x10004840
push 0xe
call esi
push 2
push 0
push 0
push 0x10005590
push 0
push 0x800c
push 0x800c
mov dword [0x10051cc0], eax
call dword [sym.imp.USER32.dll_SetWinEventHook]
cmp dword [0x10051cbc], 0
mov dword [0x10051cc4], eax
je 0x10004430
cmp dword [0x10051cc0], 0
je 0x10004430
test eax, eax
jne 0x100043c9
push 0x2dd
push 0x10044ce0
push str._s___u_:_SetWinEventHook___failed__n
push 3
call dword [0x10051024]
add esp, 0x10
push 0x2e1
push 0x10044ce0
push str._s___u_:_SetWindowsHookEx___successful._n
push 1
call dword [0x10051024]
add esp, 0x10
call fcn.10004620
xor ebx, ebx
call fcn.100044e0
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
lea eax, [ebp - 0x1c]
push ebx
push ebx
push ebx
push eax
call esi
test eax, eax
jle 0x10004452
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
nop
lea eax, [ebp - 0x1c]
push eax
call edi
lea eax, [ebp - 0x1c]
push eax
call ebx
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call esi
test eax, eax
jg 0x10004410
xor ebx, ebx
jmp 0x10004452
call edi
push eax
push 0x2f6
push 0x10044ce0
push str._s___u_:_SetWindowsHookEx___failed____lX__n
push 4
call dword [0x10051024]
add esp, 0x14
mov ebx, 0x30
mov eax, dword [0x10051cc4]
test eax, eax
je 0x1000446c
push eax
call dword [sym.imp.USER32.dll_UnhookWinEvent]
mov dword [0x10051cc4], 0
mov eax, dword [0x10051cbc]
mov esi, dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
test eax, eax
je 0x10004488
push eax
call esi
mov dword [0x10051cbc], 0
mov ecx, dword [0x10051cc0]
test ecx, ecx
je 0x1000449f
push ecx
call esi
mov dword [0x10051cc0], 0
call fcn.100045b0
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004620
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
xor eax, eax
push 0xa0
mov word [0x10051ccc], ax
call esi
test ax, ax
jns 0x10004643
or word [0x10051ccc], 1
push 0xa1
call esi
test ax, ax
jns 0x10004657
or word [0x10051ccc], 0x10
push 0xa2
call esi
test ax, ax
jns 0x1000466b
or word [0x10051ccc], 2
push 0xa3
call esi
test ax, ax
jns 0x1000467f
or word [0x10051ccc], 0x20
push 0xa4
call esi
test ax, ax
jns 0x10004693
or word [0x10051ccc], 8
push 0xa5
call esi
test ax, ax
jns 0x100046ab
mov eax, 0x80
or word [0x10051ccc], ax
push 0x5b
call esi
test ax, ax
jns 0x100046bc
or word [0x10051ccc], 4
push 0x5c
call esi
test ax, ax
jns 0x100046cd
or word [0x10051ccc], 0x40
push 1
call esi
test ax, ax
jns 0x100046e2
mov eax, 0x100
or word [0x10051ccc], ax
push 2
call esi
test ax, ax
jns 0x100046f7
mov eax, 0x200
or word [0x10051ccc], ax
push 4
call esi
test ax, ax
jns 0x1000470c
mov eax, 0x400
or word [0x10051ccc], ax
push 5
call esi
test ax, ax
jns 0x10004721
mov eax, 0x800
or word [0x10051ccc], ax
push 6
call esi
test ax, ax
jns 0x10004736
mov eax, 0x1000
or word [0x10051ccc], ax
push 0x90
call esi
test ax, ax
jns 0x1000474e
mov eax, 0x2000
or word [0x10051ccc], ax
push 0x14
call esi
test ax, ax
jns 0x10004763
mov eax, 0x4000
or word [0x10051ccc], ax
push 0x91
call esi
pop esi
test ax, ax
jns 0x1000477c
mov eax, 0x8000
or word [0x10051ccc], ax
ret
Function at 0x10004e40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
cmp eax, 0xa0
jne 0x10004e5f
mov ax, word [0x10051ccc]
or ax, 1
jmp 0x10004f23
cmp eax, 0xa1
jne 0x10004e75
mov ax, word [0x10051ccc]
or ax, 0x10
jmp 0x10004f23
cmp eax, 0xa2
jne 0x10004e8b
mov ax, word [0x10051ccc]
or ax, 2
jmp 0x10004f23
cmp eax, 0xa3
jne 0x10004ea1
mov ax, word [0x10051ccc]
or ax, 0x20
jmp 0x10004f23
cmp eax, 0xa4
jne 0x10004eb4
mov ax, word [0x10051ccc]
or ax, 8
jmp 0x10004f23
cmp eax, 0xa5
jne 0x10004ec6
lea ecx, [eax - 0x25]
mov ax, word [0x10051ccc]
jmp 0x10004f20
cmp eax, 0x5b
jne 0x10004ed7
mov ax, word [0x10051ccc]
or ax, 4
jmp 0x10004f23
cmp eax, 0x5c
jne 0x10004ee8
mov ax, word [0x10051ccc]
or ax, 0x40
jmp 0x10004f23
cmp eax, 0x90
jne 0x10004efc
mov ax, word [0x10051ccc]
mov ecx, 0x2000
jmp 0x10004f20
cmp eax, 0x14
jne 0x10004f0e
mov ax, word [0x10051ccc]
mov ecx, 0x4000
jmp 0x10004f20
cmp eax, 0x91
mov ax, word [0x10051ccc]
jne 0x10004f29
mov ecx, 0x8000
or ax, cx
mov word [0x10051ccc], ax
mov ecx, dword [edi + 0xc]
mov dword [0x10051cf0], ecx
xor ecx, ecx
mov dword [0x10051cf4], 0
mov word [0x10051cfa], cx
mov dword [0x10051ce8], 4
mov word [0x10051cf8], ax
push dword [edi + 8]
push dword [edi]
call fcn.10005bf0
mov word [0x10051cfc], ax
mov edx, 0xffff
mov cx, word [edi]
mov word [0x10051cfe], cx
movzx ecx, cx
push ecx
movzx eax, ax
push eax
push 0xe7
push str.process_key_pressed
push str._s___u_:_Key__X_pressed.___X__n
push 2
mov word [0x10051d00], dx
call dword [0x10051024]
add esp, 0x20
cmp dword [0x10051ce4], 0
je 0x10004fd0
push dword [0x10051ce8]
push 0x44
push str.dispatch_event
push str._s___u_:_Dispatching_event_type__u._n
push 1
call dword [0x10051024]
push 0x10051ce8
call dword [0x10051ce4]
add esp, 0x18
jmp 0x10004fe7
push 0x4a
push str.dispatch_event
push str._s___u_:_No_dispatch_callback_set__n
push 3
call dword [0x10051024]
add esp, 0x10
mov ax, word [0x10051cfa]
xor ax, 1
je 0x100050cf
push ebx
push esi
push 4
lea eax, [ebp + 8]
push eax
push dword [edi]
call fcn.10005cb0
mov ebx, eax
add esp, 0xc
xor esi, esi
test ebx, ebx
je 0x100050cd
mov ecx, dword [edi + 0xc]
xor eax, eax
mov dword [0x10051cfa], eax
movzx eax, word [0x10051ccc]
mov word [0x10051cf8], ax
mov dword [0x10051cf0], ecx
mov dword [0x10051cf4], 0
mov dword [0x10051ce8], 3
movzx eax, word [edi]
mov word [0x10051cfe], ax
mov ax, word [ebp + esi*2 + 8]
mov word [0x10051d00], ax
movzx eax, ax
push eax
push 0
push 0x100
push str.process_key_pressed
push str._s___u_:_Key__X_typed.___lc__n
push 2
call dword [0x10051024]
add esp, 0x18
cmp dword [0x10051ce4], 0
je 0x100050ad
push dword [0x10051ce8]
push 0x44
push str.dispatch_event
push str._s___u_:_Dispatching_event_type__u._n
push 1
call dword [0x10051024]
push 0x10051ce8
call dword [0x10051ce4]
add esp, 0x18
jmp 0x100050c4
push 0x4a
push str.dispatch_event
push str._s___u_:_No_dispatch_callback_set__n
push 3
call dword [0x10051024]
add esp, 0x10
inc esi
cmp esi, ebx
jb 0x10005015
pop esi
pop ebx
pop edi
pop ebp
ret
Function at 0x10005a40
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10051034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push esi
mov esi, 1
push eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
test eax, eax
je 0x10005b6d
push edi
lea eax, [ebp - 0x10]
push eax
push 0x1b3
push str.get_keyboard_layout_file
push str._s___u_:_Found_keyboard_layout___s_._n
push esi
call dword [0x10051024]
push 0x3d
call fcn.10023088
mov edi, eax
add esp, 0x18
test edi, edi
je 0x10005b50
lea eax, [ebp - 0x10]
push eax
push str.SYSTEMCurrentControlSetControlKeyboard_Layouts_s
push 0x3d
push edi
call fcn.10006460
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
push esi
push 0
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10005b19
lea eax, [ebp + 0xc]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
push 0
push str.Layout_File
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10005b0d
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
xor esi, esi
call fcn.10023083
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10007b13
mov esp, ebp
pop ebp
ret
push str.Layout_File
push 0x1c2
jmp 0x10005b1f
push edi
push 0x1c7
push str.get_keyboard_layout_file
push str._s___u_:_RegOpenKeyEx_failed_to_open_key:___s___n
push 3
call dword [0x10051024]
add esp, 0x14
push edi
call fcn.10023083
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10007b13
mov esp, ebp
pop ebp
ret
push 0x3d
push 0x1ce
push str.get_keyboard_layout_file
push str._s___u_:_malloc__u__failed__n
push 3
call dword [0x10051024]
add esp, 0x14
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.10007b13
mov esp, ebp
pop ebp
ret
Function at 0x1003b543
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1003b2ca

Function at 0x407450
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5000]
push edi
or ebp, 0xffffffff
jmp 0x407472
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407479
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407468
mov eax, 1
add ebx, ebx
jne 0x40748b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40749c
jne 0x4074bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4074bb
dec eax
add ebx, ebx
jne 0x4074a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x407480
add ebx, ebx
jne 0x4074b7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x40750d
xor ecx, ecx
sub eax, 3
jb 0x4074d3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x407542
sar eax, 1
mov ebp, eax
jmp 0x4074de
add ebx, ebx
jne 0x4074de
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4074ac
inc ecx
add ebx, ebx
jne 0x4074ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4074ac
add ebx, ebx
jne 0x4074f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4074ee
jne 0x40750a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4074ee
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40752c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40751e
jmp 0x40746e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40752c
add edi, ecx
jmp 0x40746e
pop esi
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x407594
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7378]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x73b4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x407549
mov ecx, edi
jns 0x407578
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x73b8]
or eax, eax
je 0x40758e
mov dword [ebx], eax
add ebx, 4
jmp 0x407566
call dword [esi + 0x73c8]
mov ebp, dword [esi + 0x73bc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1cf]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4075c8
sub esp, 0xffffff80
jmp 0x4010e0