joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x403004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
add esp, 8
mov dword [ebp - 0x1c], 0x3e8
nop dword [eax]
mov edi, dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov esi, 0xff
push 0
push 0x402130
call dword [sym.imp.USER32.dll_FindWindowW]
push 0
push str.Button
mov ebx, eax
push 0
push ebx
call dword [sym.imp.USER32.dll_FindWindowExW]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x18], eax
call edi
cdq
idiv esi
movzx esi, dl
shl esi, 8
call edi
cdq
mov ecx, 0xff
idiv ecx
mov eax, dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movzx edi, dl
or edi, esi
shl edi, 8
call eax
cdq
mov ecx, 0xff
idiv ecx
movzx eax, dl
or eax, edi
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov esi, dword [ebp - 0x18]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push esi
call dword [sym.imp.GDI32.dll_Rectangle]
mov ebx, dword [ebp - 0x1c]
sub ebx, 0x19
push ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
test ebx, ebx
jg 0x401030
nop dword [eax]
push 0
push 0x402130
call dword [sym.imp.USER32.dll_FindWindowW]
push 0
push str.Button
mov ebx, eax
push 0
push ebx
call dword [sym.imp.USER32.dll_FindWindowExW]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov edi, dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov dword [ebp - 0x18], eax
call edi
cdq
mov ecx, 0xff
idiv ecx
movzx esi, dl
shl esi, 8
call edi
cdq
mov ecx, 0xff
idiv ecx
mov eax, dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movzx edi, dl
or edi, esi
shl edi, 8
call eax
cdq
mov ecx, 0xff
idiv ecx
movzx eax, dl
or eax, edi
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov esi, dword [ebp - 0x18]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push esi
call dword [sym.imp.GDI32.dll_Rectangle]
jmp 0x4010e0
Function at 0x401fa0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi - 0x124]
mov ecx, dword [eax + 4]
push edi
lea ecx, [ecx + esi - 0x124]
call fcn.00418190
mov edx, dword [esi - 0x20]
mov eax, dword [esi - 0x124]
mov ecx, dword [eax + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push edx
mov edx, dword [ecx + esi - 0x120]
push edx
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call ebx
mov eax, dword [esi - 4]
mov ecx, dword [esi - 0x124]
mov edx, dword [ecx + 4]
push eax
mov eax, dword [edx + esi - 0x120]
push eax
call edi
push 0
push eax
call ebx
mov ecx, dword [esi - 0x1c]
mov edx, dword [esi - 0x124]
mov eax, dword [edx + 4]
push ecx
mov ecx, dword [eax + esi - 0x120]
push ecx
call edi
mov ecx, dword [esi - 0xc]
test ecx, ecx
lea ecx, [esi - 0xa0]
jne 0x402028
lea ecx, [esi - 0x120]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
pop edi
mov dword [esi - 8], 0
pop esi
mov eax, 1
pop ebx
ret

Function at 0x401fa1
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi - 0x124]
mov ecx, dword [eax + 4]
push edi
lea ecx, [ecx + esi - 0x124]
call fcn.00418190
mov edx, dword [esi - 0x20]
mov eax, dword [esi - 0x124]
mov ecx, dword [eax + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push edx
mov edx, dword [ecx + esi - 0x120]
push edx
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call ebx
mov eax, dword [esi - 4]
mov ecx, dword [esi - 0x124]
mov edx, dword [ecx + 4]
push eax
mov eax, dword [edx + esi - 0x120]
push eax
call edi
push 0
push eax
call ebx
mov ecx, dword [esi - 0x1c]
mov edx, dword [esi - 0x124]
mov eax, dword [edx + 4]
push ecx
mov ecx, dword [eax + esi - 0x120]
push ecx
call edi
mov ecx, dword [esi - 0xc]
test ecx, ecx
lea ecx, [esi - 0xa0]
jne 0x402028
lea ecx, [esi - 0x120]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
pop edi
mov dword [esi - 8], 0
pop esi
mov eax, 1
pop ebx
ret
Function at 0x403c10
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x124
push esi
push 2
mov esi, ecx
mov ecx, dword [esi + 0x548]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, 1
jl 0x403d09
mov ax, word [esp + 8]
cmp ax, 0xff
ja 0x403d09
mov edx, dword [esi + 0x1c0]
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x147
push edx
mov byte [esp + 0x1b], al
call ebp
cmp eax, 0xffffffff
je 0x403d08
push ebx
push edi
push 0
push eax
mov eax, dword [esi + 0x1c0]
push 0x150
push eax
call ebp
lea edi, [eax + eax*2]
shl edi, 2
mov ebx, dword [edi + 0x421454]
cmp ebx, 0x14
jge 0x403c9f
movzx ecx, byte [esp + 0x13]
push ecx
call fcn.0040dfc6
add esp, 4
jmp 0x403ca3
mov al, byte [esp + 0x13]
mov edx, dword [esi + 0xf58]
mov byte [esi + edx*8 + 0x758], al
mov ecx, dword [esi + 0xf58]
mov dword [esi + ecx*8 + 0x75c], ebx
inc dword [esi + 0xf58]
mov edx, dword [edi + 0x421458]
push edx
movzx eax, al
push eax
lea ecx, [esp + 0x3c]
push str.___c_t_s
push ecx
call fcn.0040dfe8
mov eax, dword [esi + 0x1b8]
add esp, 0x10
push 0
lea edx, [esp + 0x38]
push edx
push 0
push 0x180
push eax
call ebp
mov ecx, dword [esi + 0x1b8]
push eax
push 0x186
push ecx
call ebp
pop edi
pop ebx
pop ebp
pop esi
add esp, 0x124
ret

Function at 0x4042a0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x20
push esi
push edi
push 2
mov esi, ecx
mov ecx, dword [esi + 0x548]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, 1
jge 0x4042e2
mov edx, dword [esi + 0x1cc]
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push edx
call edi
mov eax, dword [esi + 0x3fc]
push 0
push eax
call edi
pop edi
pop esi
add esp, 0x20
ret
mov ecx, dword [esp + 8]
push ebx
push ebp
push ecx
mov ecx, esi
call fcn.00403bc0
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
mov edi, eax
mov eax, dword [esi + 0x1cc]
xor edx, edx
cmp edi, 0xffffffff
sete dl
push edx
push eax
call ebx
cmp edi, 0xffffffff
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
je 0x40432d
mov ecx, dword [esi + 0x1b8]
push 0
push edi
push 0x186
push ecx
call ebp
mov ecx, esi
call fcn.00403d20
mov edx, dword [esi + 0x1b8]
push 0
push 0
push 0x188
push edx
call ebp
mov edx, dword [esi + 0x3fc]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
push ecx
push edx
call ebx
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x20
ret
Function at 0x404d40
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x12c
push esi
push 2
mov esi, ecx
mov ecx, dword [esi + 0x548]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, 1
jl 0x404e8a
mov ax, word [esp + 0x10]
cmp ax, 0xff
ja 0x404e8a
push ebp
push edi
movzx edi, al
push edi
mov byte [esp + 0x13], al
call fcn.0040dfc6
push edi
mov byte [esp + 0x16], al
call fcn.0040e1c3
mov edx, dword [esi + 0x1c0]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 8
push 0
push 0
push 0x147
push edx
mov byte [esp + 0x24], al
call ebp
cmp eax, 0xffffffff
je 0x404e88
push ebx
push 0
push eax
mov eax, dword [esi + 0x1c0]
push 0x150
push eax
call ebp
mov edx, dword [esi + 0x1b8]
push 0
lea ebx, [eax + eax*2]
push 0
shl ebx, 2
mov ecx, dword [ebx + 0x421454]
push 0x188
push edx
mov dword [esp + 0x24], ecx
call ebp
mov edi, eax
cmp edi, 0xffffffff
je 0x404e87
mov ecx, dword [esp + 0x14]
cmp ecx, 0x14
mov al, byte [esp + 0x12]
jl 0x404e06
mov al, byte [esp + 0x13]
mov byte [esi + edi*8 + 0x758], al
mov dword [esi + edi*8 + 0x75c], ecx
mov ecx, dword [ebx + 0x421458]
movzx edx, al
push ecx
push edx
lea eax, [esp + 0x44]
push str.___c_t_s
push eax
call fcn.0040dfe8
mov edx, dword [esi + 0x1b8]
add esp, 0x10
lea ecx, [esp + 0x3c]
push ecx
push edi
push 0x181
push edx
call ebp
mov ecx, dword [esi + 0x1b8]
push 0
lea eax, [edi + 1]
push eax
push 0x182
push ecx
call ebp
mov edx, dword [esi + 0x1b8]
push 0
push edi
push 0x186
push edx
call ebp
mov eax, dword [esp + 0x18]
push eax
mov ecx, esi
call fcn.00403bc0
cmp eax, 0xffffffff
je 0x404e87
cmp eax, edi
je 0x404e87
push eax
mov ecx, esi
call fcn.00404440
pop ebx
pop edi
pop ebp
pop esi
add esp, 0x12c
ret
Function at 0x406c00
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
push ebx
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push 0x42c160
push 0x41c320
push 0x80
mov esi, ecx
call fcn.0040a500
mov edi, eax
test edi, edi
jne 0x406c47
pop edi
pop esi
pop ebx
ret 4
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x41ab20
mov dword [esi + 0x6bc], 0
call fcn.00402440
lea ecx, [esi + 0xc]
mov dword [esi + 0x6bc], 1
add esp, 4
mov dword [ecx + 0x74], 0x42c238
mov dword [ecx + 0x78], ebx
mov dword [ecx + 0x7c], edi
call fcn.004099c0
push 0x103
lea edi, [esi + 0x4b0]
push edi
push 0
mov word [0x42c280], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push edi
call fcn.0040decd
add esp, 8
test eax, eax
je 0x406cbe
mov word [eax], 0
push edi
lea eax, [esi + 0xa0]
push str._sukmanual.htm
push eax
call fcn.0040dfe8
push edi
lea ecx, [esi + 0x2a8]
push str._skeymap.txt
push ecx
call fcn.0040dfe8
push edi
lea ebx, [esi + 0x6c4]
push 0x41c3a8
push ebx
call fcn.0040dfe8
lea edx, [esi + 0x8cc]
push ebx
push edx
call fcn.0040ddbc
add esi, 0xad4
add esp, 0x2c
mov ecx, esi
call dword [sym.imp.UKHook40.dll_public:_void___thiscall_CMacroTable::init_void_]
push ebx
call fcn.0040a900
add esp, 4
push eax
mov ecx, esi
call dword [sym.imp.UKHook40.dll_public:_int___thiscall_CMacroTable::loadFromFile_char_const__]
pop edi
pop esi
mov eax, 1
pop ebx
ret 4
Function at 0x406d30
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, dword [0x42c228]
mov ecx, dword [sym.imp.UKHook40.dll_long_int___stdcall_MyKeyHook_int__unsigned_int__long_int_]
sub esp, 0x13c
push esi
mov esi, dword [sym.imp.USER32.dll_SetWindowsHookExW]
push 0
push eax
push ecx
push 2
call esi
mov edx, dword [0x42c228]
push 0
mov dword [0x42c230], eax
mov eax, dword [sym.imp.UKHook40.dll_long_int___stdcall_MyMouseHook_int__unsigned_int__long_int_]
push edx
push eax
push 7
call esi
mov ecx, dword [0x42c230]
test ecx, ecx
mov dword [0x42c234], eax
jne 0x406d95
push 0x10
push str.Error
push str.Failed_to_set_up_keyboard_hook
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop esi
add esp, 0x13c
ret
test eax, eax
jne 0x406db6
push 0x10
push str.Error
push str.Failed_to_set_up_mouse_hook
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop esi
add esp, 0x13c
ret
call dword [sym.imp.UKHook40.dll_void___cdecl_InitUkHook_void_]
mov ecx, 0x42c2a0
call fcn.00406890
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x30], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x30]
cmp eax, 4
ja 0x406df8
cmp dword [esp + 0x3c], 2
jne 0x406dee
cmp eax, 4
je 0x406df8
mov dword [esp + 0x20], 0
jmp 0x406e00
mov dword [esp + 0x20], 1
mov ecx, dword [0x42c22c]
mov edx, dword [esp + 0x34]
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x144]
push 0x82
push ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x18], eax
call esi
mov edx, dword [0x42c22c]
push 0x81
push edx
mov dword [esp + 0x24], eax
call esi
mov ecx, dword [0x42c234]
mov edx, dword [0x42c244]
mov dword [esp + 0x18], eax
mov eax, dword [0x42c230]
mov dword [esp + 8], eax
lea eax, [esp + 4]
push eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], 0x401
mov dword [esp + 8], edx
call dword [sym.imp.UKHook40.dll_void___cdecl_SetUnikeySysInfo_struct__UnikeySysInfo__]
mov ecx, dword [0x42c23c]
push ecx
call dword [sym.imp.UKHook40.dll_void___cdecl_EnableUnikey_int_]
mov edx, dword [0x42c248]
push edx
call dword [sym.imp.UKHook40.dll_int___cdecl_SetInputMethod_enum_UkInputMethod_]
mov eax, dword [0x42c240]
push eax
call dword [sym.imp.UKHook40.dll_int___cdecl_SetOutputCharset_int_]
push 0x42c238
call fcn.004067e0
add esp, 0x14
mov ecx, 0x42c2a0
call fcn.00406830
call dword [sym.imp.UKHook40.dll_void___cdecl_SetUnikeyReady_void_]
mov eax, 1
pop esi
add esp, 0x13c
ret
Function at 0x409cc0
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x324
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp ecx, 2
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 4]
push edx
push 0
push 3
push 0
setne al
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x409d17
xor eax, eax
add esp, 0x324
ret
mov eax, dword [esp + 0x328]
test eax, eax
push esi
je 0x409d85
push 0x104
lea eax, [esp + 0x124]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x120]
push ecx
call fcn.0040dda6
mov ecx, dword [esp + 8]
add esp, 4
lea edx, [eax + eax + 2]
push edx
lea eax, [esp + 0x124]
push eax
push 1
push 0
push 0x41cc74
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 4]
mov esi, eax
neg esi
sbb esi, esi
push ecx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x324
ret
mov edx, dword [esp + 4]
push 0x41cc74
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [esp + 4]
push 0
push 0
push 0
push 0
push 0x41cc74
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 4]
mov esi, eax
neg esi
sbb esi, esi
push ecx
neg esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x324
ret

Function at 0x409dd0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x118
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edx, dword [esp + 0x14]
xor eax, eax
cmp edx, 2
setne al
lea ecx, [esp]
push ecx
push 3
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x409e1b
xor eax, eax
add esp, 0x118
ret
mov edx, dword [esp]
push esi
push 0
push 0
push 0
push 0
push 0x41cc74
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
add esp, 0x118
ret
Function at 0x409ee0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 8]
push eax
mov esi, ecx
lea ecx, [esp + 8]
push ecx
push 0
push 3
push 0
push 0
push 0
push str.SoftwarePkLongUniKey
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x409f15
xor eax, eax
pop esi
add esp, 8
ret
mov edx, dword [esp + 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
push esi
push 4
push 0
push str.ShowDlg
push edx
call edi
mov ecx, dword [esp + 8]
push 4
lea eax, [esi + 4]
push eax
push 4
push 0
push str.Vietnamese
push ecx
call edi
mov eax, dword [esp + 8]
push 4
lea edx, [esi + 8]
push edx
push 4
push 0
push str.CodeTable
push eax
call edi
mov edx, dword [esp + 8]
push 4
lea ecx, [esi + 0xc]
push ecx
push 4
push 0
push str.SwitchKey
push edx
call edi
mov ecx, dword [esp + 8]
push 4
lea eax, [esi + 0x10]
push eax
push 4
push 0
push str.InputMethod
push ecx
call edi
mov eax, dword [esp + 8]
push 4
lea edx, [esi + 0x14]
push edx
push 4
push 0
push str.FreeMarking
push eax
call edi
mov edx, dword [esp + 8]
push 4
lea ecx, [esi + 0x18]
push ecx
push 4
push 0
push str.ModernStyle
push edx
call edi
mov ecx, dword [esp + 8]
push 4
lea eax, [esi + 0x1c]
push eax
push 4
push 0
push str.VietGUI
push ecx
call edi
mov eax, dword [esp + 8]
push 4
lea edx, [esi + 0x20]
push edx
push 4
push 0
push str.InConvCharset
push eax
call edi
mov edx, dword [esp + 8]
push 4
lea ecx, [esi + 0x24]
push ecx
push 4
push 0
push str.OutConvCharset
push edx
call edi
mov ecx, dword [esp + 8]
push 4
lea eax, [esi + 0x28]
push eax
push 4
push 0
push str.ClipboardConvert
push ecx
call edi
mov eax, dword [esp + 8]
push 4
lea edx, [esi + 0x2c]
push edx
push 4
push 0
push str.MacroEnabled
push eax
call edi
mov edx, dword [esp + 8]
push 4
lea ecx, [esi + 0x40]
push ecx
push 4
push 0
push str.AutoNonVnRestore
push edx
call edi
mov ecx, dword [esp + 8]
push 4
lea eax, [esi + 0x30]
push eax
push 4
push 0
push str.UseUnicodeClipboard
push ecx
call edi
mov eax, dword [esp + 8]
push 4
lea edx, [esi + 0x34]
push edx
push 4
push 0
push str.AlwaysMacro
push eax
call edi
mov edx, dword [esp + 8]
push 4
lea ecx, [esi + 0x38]
push ecx
push 4
push 0
push str.UseIME
push edx
call edi
mov ecx, dword [esp + 8]
push 4
lea eax, [esi + 0x3c]
push eax
push 4
push 0
push str.SpellCheckEnabled
push ecx
call edi
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 0x4c]
push eax
call fcn.00409cc0
add esp, 4
mov eax, 1
pop edi
pop esi
add esp, 8
ret
Function at 0x40e4f6
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x41da60
call fcn.004114e0
mov edi, 0x94
mov eax, edi
call fcn.0040de90
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x450a3c], ecx
mov eax, dword [esi + 4]
mov dword [0x450a48], eax
mov edx, dword [esi + 8]
mov dword [0x450a4c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x450a40], esi
cmp ecx, 2
je 0x40e556
or esi, 0x8000
mov dword [0x450a40], esi
shl eax, 8
add eax, edx
mov dword [0x450a44], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40e591
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40e591
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40e5a9
cmp eax, 0x20b
je 0x40e596
mov dword [ebp - 0x1c], esi
jmp 0x40e5bd
cmp dword [ecx + 0x84], 0xe
jbe 0x40e591
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40e5b7
cmp dword [ecx + 0x74], 0xe
jbe 0x40e591
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0041207a
pop ecx
test eax, eax
jne 0x40e5d1
push 0x1c
call fcn.0040e4d2
pop ecx
call fcn.0040fbb4
test eax, eax
jne 0x40e5e2
push 0x10
call fcn.0040e4d2
pop ecx
call fcn.00411fd8
mov dword [ebp - 4], esi
call fcn.00411dda
test eax, eax
jge 0x40e5fb
push 0x1b
call fcn.0040e4ad
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x452284], eax
call fcn.00411cb8
mov dword [0x450a04], eax
call fcn.00411c16
test eax, eax
jge 0x40e621
push 8
call fcn.0040e4ad
pop ecx
call fcn.004119e3
test eax, eax
jge 0x40e632
push 9
call fcn.0040e4ad
pop ecx
push 1
call fcn.00411243
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40e648
push eax
call fcn.0040e4ad
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00411986
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40e669
movzx eax, word [ebp - 0x40]
jmp 0x40e66c
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004074d0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40e68a
push edi
call fcn.00411370
call fcn.00411392
jmp 0x40e6bc
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0041151b
ret
Function at 0x4112ad
Capabilities:
Terminate process

Disassembly:
push 8
push 0x41dd90
call fcn.004114e0
push 8
call fcn.00412b6c
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x450a7c], esi
jne 0x4112e1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x450a78], esi
mov al, byte [ebp + 0x10]
mov byte [0x450a74], al
cmp dword [ebp + 0xc], edi
jne 0x41132b
cmp dword [0x451268], edi
je 0x41131b
mov eax, dword [0x451264]
sub eax, 4
mov dword [0x451264], eax
cmp eax, dword [0x451268]
jb 0x41131b
mov eax, dword [eax]
cmp eax, edi
je 0x4112fc
call eax
jmp 0x4112fc
push 0x42103c
mov eax, 0x421030
call fcn.0041122b
pop ecx
push 0x421048
mov eax, 0x421040
call fcn.0041122b
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x41135c
cmp dword [ebp + 0x10], edi
jne 0x41136a
mov dword [0x450a7c], esi
push dword [ebp + 8]
call fcn.004111e9
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x411369
push 8
call fcn.00412ab7
pop ecx
ret
call fcn.0041151b
ret

Function at 0x411672
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4245e4]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x424788]
je 0x4116a7
inc eax
cmp eax, 0x13
jb 0x411698
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x424788]
jne 0x4117cd
mov eax, dword [0x450a0c]
cmp eax, 1
je 0x4117a5
cmp eax, edx
jne 0x4116d7
cmp dword [0x424354], 1
je 0x4117a5
cmp ecx, 0xfc
je 0x4117cd
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41170d
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00414d90
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004153b0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x411741
mov eax, edi
push eax
call fcn.004153b0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x41e1a8
push edi
call fcn.00414ee0
add esp, 0x10
push edi
call fcn.004153b0
push dword [esi + 0x42478c]
mov ebx, eax
call fcn.004153b0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040de90
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00414d90
push edi
push ebx
call fcn.00414da0
push 0x41e188
push ebx
call fcn.00414da0
push dword [esi + 0x42478c]
push ebx
call fcn.00414da0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041653e
add esp, 0x2c
jmp 0x4117cd
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x42478c]
push dword [esi]
call fcn.004153b0
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0041546c
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret