joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43af40
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4679a3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0045b382
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00460a18
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00461f34
test eax, eax
je 0x43b05c
mov ecx, dword [esp + 0x3c]
call fcn.00460a45
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43b020
push edi
mov ecx, esi
call fcn.0045e0a9
mov ecx, esi
call fcn.0043b1c0
cmp dword [esp + 0x38], 1
jne 0x43b055
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0045e1e4
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43da80
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43dab3
push esi
call fcn.00440b70
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43daac
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43db39
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43db22
mov eax, dword [esi + 8]
test eax, eax
je 0x43dad7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43db1e
cmp eax, 2
je 0x43db22
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43daca
cmp eax, 3
je 0x43dafd
cmp eax, 1
jne 0x43daca
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43daca
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43daca
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043db60
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43db48
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043db60
add esp, 4
pop esi
ret

Function at 0x45c178
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45c1b0
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045a22c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045a204
jmp 0x45c1bc
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45d866
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x45d8a8
call fcn.0046331f
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45d8a8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45d89f
xor eax, eax
jmp 0x45d8b0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045d8b6
pop edi
pop esi
pop ebx
ret 4

Function at 0x46384f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46387d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46389b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004637b5
jmp 0x46389b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46389b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004637b5
test edi, edi
mov eax, edi
jne 0x463885
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401ee4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x401da5
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4176e8], eax
mov esp, ebp
pop ebp
ret

Function at 0x401f08
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0
mov eax, dword [0x4176e8]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop ebp
ret

Function at 0x402560
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
push 0x412c04
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4025de
mov dword [ebp - 4], 4
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0x412c28
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4025d4
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 8]
push edx
push 4
push 0
push 0x412c38
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x403100
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0x412e64
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40316b
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x40316b
cmp dword [ebp - 4], 0
je 0x40316b
mov dword [ebp - 0x10], 1
jmp 0x403172
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x403451
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push str.PRMDLL_SelectScheme
mov eax, dword [0x416f5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403478
xor eax, eax
jmp 0x40356c
cmp dword [ebp + 0x10], 0
je 0x4034d8
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
test edx, edx
je 0x4034cf
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push str.SOFTWAREIBMNPdirectDataCommonPresentation_Schemes
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4034cf
lea ecx, [ebp - 8]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4034d6
mov dword [ebp - 0xc], 0
jmp 0x4034f2
push 0x400
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.00409040
add esp, 0xc
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0
je 0x403569
mov dword [ebp - 0x14], 1
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x412f8c
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40354a
mov dword [ebp - 8], 4
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0
push 0
push str.ConnectionCheck
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [0x412c00]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x416f60]
push eax
call dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x403905
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0
mov dword [ebp - 4], 4
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0x412fc0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403965
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0
push 0
push 0x412fe4
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
cmp dword [ebp - 0x10], 0
setne dl
mov eax, dword [ebp - 8]
and eax, edx
mov esp, ebp
pop ebp
ret
Function at 0x404632
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push 0x40
call fcn.0040184c
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
pop ebp
ret

Function at 0x40465a
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop ebp
ret
Function at 0x40597f
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x40599e
mov eax, dword [0x417694]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov eax, 1
pop ebp
ret

Function at 0x4059a5
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x4059c5
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [0x417694]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, 1
pop ebp
ret
Function at 0x405f30
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
push edi
mov dword [ebp - 0x194], 0x94
mov dword [ebp - 0x190], 0
mov ecx, 0x23
xor eax, eax
lea edi, [ebp - 0x18c]
rep stosd dword es:[edi], eax
mov byte [ebp - 0x100], 0
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0xff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x184], 1
jne 0x405f93
xor eax, eax
jmp 0x4060d0
cmp dword [ebp - 0x190], 5
jb 0x405fae
cmp dword [ebp - 0x190], 5
jne 0x405fb5
cmp dword [ebp - 0x18c], 0
jne 0x405fb5
xor eax, eax
jmp 0x4060d0
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push str..LCD
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x413830], eax
cmp dword [0x413830], 0xffffffff
jne 0x405fe4
xor eax, eax
jmp 0x4060d0
push 0
lea ecx, [ebp - 0x19c]
push ecx
push 0x100
lea edx, [ebp - 0x100]
push edx
push 0
push 0
push 0x230494
mov eax, dword [0x413830]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x406026
mov ecx, dword [ebp + 8]
and ecx, 0xff
add ecx, 1
cmp dword [ebp - 0x19c], ecx
je 0x406044
mov edx, dword [0x413830]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x413830], 0
xor eax, eax
jmp 0x4060d0
mov eax, dword [ebp - 0x19c]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x41737c], eax
cmp dword [0x41737c], 0
jne 0x40607c
mov ecx, dword [0x413830]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x413830], 0
xor eax, eax
jmp 0x4060d0
mov dword [ebp - 0x198], 0
jmp 0x406097
mov edx, dword [ebp - 0x198]
add edx, 1
mov dword [ebp - 0x198], edx
mov eax, dword [ebp - 0x198]
cmp eax, dword [ebp - 0x19c]
jae 0x4060c2
mov ecx, dword [0x41737c]
add ecx, dword [ebp - 0x198]
mov edx, dword [ebp - 0x198]
mov al, byte [ebp + edx - 0x100]
mov byte [ecx], al
jmp 0x406088
mov cl, byte [ebp + 8]
mov byte [0x417378], cl
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x406ba7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push edi
mov dword [ebp - 4], 0
jmp 0x406bc0
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
jae 0x406d4b
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x21c
add ecx, 0x413880
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, 1
mov ecx, dword [edx]
shl eax, cl
mov ecx, dword [ebp + 8]
and ecx, eax
test ecx, ecx
je 0x406d46
mov edx, dword [ebp - 8]
movsx eax, byte [edx + 0x118]
test eax, eax
je 0x406d46
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x6c], edx
cmp dword [ebp - 0x6c], 0
je 0x406c1e
cmp dword [ebp - 0x6c], 1
je 0x406c2a
jmp 0x406c8b
mov eax, dword [ebp - 8]
mov dword [eax + 8], 1
jmp 0x406c8b
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0xc], 0
je 0x406c81
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x10]
push ecx
push 0x406b58
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.USER32.dll_EnumThreadWindows]
cmp dword [ebp - 0x10], 0
je 0x406c6b
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], 0
jmp 0x406c75
mov edx, dword [ebp - 8]
mov dword [edx + 8], 1
mov eax, dword [ebp - 8]
mov dword [eax + 0xc], 0
jmp 0x406c8b
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], 1
mov edx, dword [ebp - 8]
cmp dword [edx + 8], 0
je 0x406d46
mov dword [ebp - 0x68], 0
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x3c], 1
mov word [ebp - 0x38], 0xa
mov word [ebp - 0x36], 0
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x68]
push ecx
mov edx, dword [ebp - 8]
add edx, 0x14
push edx
push 0
push 0
push 1
push 0
push 0
mov eax, dword [ebp - 8]
add eax, 0x118
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x406d46
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x10], ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x406bb7
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x406d50
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x124]
push eax
push 0x20019
push 0
push str.SOFTWAREIBMTPHOTKEYEXEC
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x406d8f
mov eax, dword [ebp - 0x18]
jmp 0x406e2c
mov dword [ebp - 0x10], 0
jmp 0x406da1
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0x105
mov dword [ebp - 0x14], 0x105
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x120]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x124]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x103
jne 0x406df1
jmp 0x406e1c
cmp dword [ebp - 0x14], 0
je 0x406e17
push 0
push 0
push 0
lea eax, [ebp - 0x22c]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
jmp 0x406d98
mov edx, dword [ebp - 0x124]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x406e30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
call fcn.00406335
mov eax, dword [0x4110ec]
cmp dword [eax], 0
jne 0x406e4d
call fcn.00406d50
call fcn.00401890
call fcn.00401ee4
mov ecx, dword [ebp + 8]
push ecx
push 1
call fcn.00401f1b
add esp, 8
mov dword [0x417684], eax
cmp dword [0x417684], 0
jne 0x406f56
mov edx, dword [0x4110bc]
cmp dword [edx], 0x4b57
je 0x406f00
mov eax, dword [0x4110bc]
cmp dword [eax], 0x3135
je 0x406f00
mov ecx, dword [0x4110bc]
cmp dword [ecx], 0x3137
je 0x406f00
mov edx, dword [0x4110bc]
cmp dword [edx], 0x3138
je 0x406f00
mov eax, dword [0x4110bc]
cmp dword [eax], 0x3148
je 0x406f00
mov ecx, dword [0x4110bc]
cmp dword [ecx], 0x3143
je 0x406f00
mov edx, dword [0x4110bc]
cmp dword [edx], 0x3146
je 0x406f00
mov eax, dword [0x4110bc]
cmp dword [eax], 0x314d
je 0x406f00
mov ecx, dword [0x4110bc]
cmp dword [ecx], 0x3154
je 0x406f00
mov edx, dword [0x4110bc]
cmp dword [edx], 0x3158
jne 0x406f1c
lea eax, [ebp - 4]
push eax
push 0xe
call fcn.00401633
add esp, 8
lea ecx, [ebp - 4]
push ecx
push 0x13
call fcn.00401f1b
add esp, 8
mov edx, dword [0x41105c]
mov eax, dword [edx]
and eax, 0x20000
test eax, eax
je 0x406f56
mov ecx, dword [0x41105c]
mov edx, dword [ecx]
and edx, 2
test edx, edx
je 0x406f4a
push 1
push 0x11
call fcn.00401f1b
add esp, 8
jmp 0x406f56
push 0
push 0x11
call fcn.00401f1b
add esp, 8
lea eax, [ebp - 0x118]
push eax
push str.SOFTWAREIBMTPHOTKEYLOAD
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [ebp - 0x10c], 0x104
lea ecx, [ebp - 0x10c]
push ecx
lea edx, [ebp - 0x108]
push edx
push 0
push 0
push str.WebKey
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x110], 0
jne 0x406fc9
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x417384], eax
mov dword [ebp - 0x114], 0
jmp 0x406fe4
mov eax, dword [ebp - 0x114]
add eax, 1
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0x20
jge 0x407041
mov ecx, dword [ebp - 0x114]
imul ecx, ecx, 0x70
mov edx, dword [ecx + 0x411274]
mov dword [edx], 0
push 1
mov eax, dword [ebp - 0x114]
imul eax, eax, 0x70
add eax, 0x411268
mov ecx, dword [ebp - 0x114]
imul ecx, ecx, 0x70
add ecx, 0x411208
sub eax, ecx
sar eax, 4
push eax
mov edx, dword [ebp - 0x114]
imul edx, edx, 0x70
add edx, 0x411208
push edx
call fcn.004011d0
add esp, 0xc
jmp 0x406fd5
cmp dword [0x417384], 0
je 0x40707a
push str.RegisterVkMap
mov eax, dword [0x417384]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x11c], eax
push 0x411208
mov ecx, dword [0x417384]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 0x11c]
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x408b86
Capabilities:
Check os version
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
push edi
mov dword [ebp - 0xc8], 0x94
mov dword [ebp - 0xc4], 0
mov ecx, 0x23
xor eax, eax
lea edi, [ebp - 0xc0]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xb8], 2
jne 0x408bee
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
cmp dword [ebp - 0xc4], 5
jb 0x408bee
push 0xffffffffffffffff
call fcn.004062f0
add esp, 4
mov dword [ebp - 0x34], 0x30
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0x407595
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0x414348
mov dword [ebp - 8], 0
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x80000000
push str.tphkmgr
push str.TpHotkeyManager
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x408c85
or eax, 0xffffffff
jmp 0x408cd4
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 0
lea eax, [ebp - 0xe4]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x408cce
lea ecx, [ebp - 0xe4]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0xe4]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x408c9b
mov eax, dword [ebp - 0xdc]
pop edi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40c2d5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4166a8
cmp edx, dword [eax]
je 0x40c2f7
add eax, 8
inc ecx
cmp eax, 0x416738
jl 0x40c2e8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4166a8]
jne 0x40c425
mov eax, dword [0x4173d4]
cmp eax, 1
je 0x40c3ff
test eax, eax
jne 0x40c328
cmp dword [0x4145b4], 1
je 0x40c3ff
cmp edx, 0xfc
je 0x40c425
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40c35f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00408e50
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00408fc0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40c3a2
lea eax, [ebp - 0x1a4]
push eax
call fcn.00408fc0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40f618
push edi
call fcn.00409400
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00408e50
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00408e60
lea eax, [ebp - 0xa0]
push 0x40f5f8
push eax
call fcn.00408e60
push dword [esi + 0x4166ac]
lea eax, [ebp - 0xa0]
push eax
call fcn.00408e60
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040ddc5
add esp, 0x2c
pop edi
jmp 0x40c425
lea eax, [ebp + 8]
lea esi, [esi + 0x4166ac]
push 0
push eax
push dword [esi]
call fcn.00408fc0
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