joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404cd4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404df8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404c4b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404df8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404c4b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404e14
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404cd4
xor eax, eax
push ebp
push 0x404ccd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404a04
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404cb2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404e34
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404cb2
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404cd4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404dee
cmp byte [ebp - 0xd], 0
jne 0x404d1b
cmp byte [ebp - 0x12], 0
je 0x404dee
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404d34
dec ebx
cmp byte [ebx], 0x2e
je 0x404d43
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404d33
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404dee
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404d80
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404dee
cmp byte [ebp - 0xd], 0
je 0x404dee
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404dee
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40604c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004046a4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x406065
test al, 0x10
je 0x406069
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x406070
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.004046a4
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x406092
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x406cd8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406d11
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404434
jmp 0x406d1a
mov eax, ebx
mov edx, esi
call fcn.00404398
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406d24
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406d46
movzx eax, byte [esp]
jmp 0x406d48
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4073d8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x407250
mov eax, dword [0x40aa94]
cmp byte [eax], 0
je 0x407454
mov eax, dword [0x40a9f0]
call fcn.0040323c
call fcn.00402de4
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00406198
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40749c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40748a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x40a9d0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x40d7f0]
call fcn.004049ac
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x409134
Capabilities:
Delete file
Manipulate boot configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, 0x4089d0
call fcn.00405134
mov eax, 0x409264
call fcn.0040604c
test al, al
je 0x4091a0
xor edx, edx
mov eax, 0x40927c
call fcn.00406070
mov eax, 0x40927c
call fcn.004046a4
push eax
call sub.kernel32.dll_DeleteFileA
mov edx, 0x409264
mov eax, 0x40f908
call fcn.0040318c
mov edx, 0x40927c
mov eax, 0x40f908
call fcn.0040333c
call fcn.00402de4
mov edx, 7
mov eax, 0x409290
call fcn.00406070
mov eax, 0x4092a4
call fcn.0040604c
test al, al
je 0x4091fc
xor edx, edx
mov eax, 0x4092c0
call fcn.00406070
mov eax, 0x4092c0
call fcn.004046a4
push eax
call sub.kernel32.dll_DeleteFileA
mov edx, 0x4092a4
mov eax, 0x40f908
call fcn.0040318c
mov edx, 0x4092c0
mov eax, 0x40f908
call fcn.0040333c
call fcn.00402de4
mov edx, 7
mov eax, 0x4092c0
call fcn.00406070
mov eax, 0x4092dc
call fcn.0040604c
test al, al
je 0x40921a
mov eax, 0x4092dc
call fcn.004046a4
push eax
call sub.kernel32.dll_DeleteFileA
mov eax, 0x4092f8
call fcn.0040604c
test al, al
je 0x409238
mov eax, 0x4092f8
call fcn.004046a4
push eax
call sub.kernel32.dll_DeleteFileA
mov eax, 0x409318
call fcn.0040604c
test al, al
je 0x409256
mov eax, 0x409318
call fcn.004046a4
push eax
call sub.kernel32.dll_DeleteFileA
call fcn.00404250
add bh, bh
invalid

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40701c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x407028
push 0x407024
push 0x407020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x407028]
push dword [0x407024]
push dword [0x407020]
mov dword [0x407014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x401941
Capabilities:
Allocate or change rwx memory
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push edi
and dword [ebp - 0x124], 0
xor edi, edi
mov byte [ebp - 0x104], 0
mov dword [ebp - 0x11c], 0x14
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x118]
push eax
push 1
push 1
lea eax, [ebp - 0x104]
push eax
call sub.CRYPT32.DLL_CryptBinaryToStringW
movzx eax, word [ebp - 0x118]
mov edi, eax
sub edi, 0x41
and dword [ebp - 0x120], 0
lea eax, [ebp - 0x120]
push eax
mov eax, edi
or al, 0x40
push eax
lea eax, [0x404691]
lea edx, [fcn.004019d4]
sub eax, edx
push eax
push fcn.004019d4
call sub.KERNEL32.dll_VirtualProtect
mov eax, edi
pop edi
leave
ret
Function at 0x401fe0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi - 0xa4]
mov ecx, dword [eax + 4]
push edi
lea ecx, [ecx + esi - 0xa4]
call fcn.0040a5d0
mov edx, dword [esi - 0x20]
mov eax, dword [esi - 0xa4]
mov ecx, dword [eax + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push edx
mov edx, dword [ecx + esi - 0xa0]
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 - 0xa4]
mov edx, dword [ecx + 4]
push eax
mov eax, dword [edx + esi - 0xa0]
push eax
call edi
push 0
push eax
call ebx
mov ecx, dword [esi - 0x1c]
mov edx, dword [esi - 0xa4]
mov eax, dword [edx + 4]
push ecx
mov ecx, dword [eax + esi - 0xa0]
push ecx
call edi
mov ecx, dword [esi - 0xc]
test ecx, ecx
lea ecx, [esi - 0x60]
jne 0x402065
lea ecx, [esi - 0xa0]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
mov dword [esi - 8], 0
pop esi
mov eax, 1
pop ebx
ret

Function at 0x401fe1
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi - 0xa4]
mov ecx, dword [eax + 4]
push edi
lea ecx, [ecx + esi - 0xa4]
call fcn.0040a5d0
mov edx, dword [esi - 0x20]
mov eax, dword [esi - 0xa4]
mov ecx, dword [eax + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push edx
mov edx, dword [ecx + esi - 0xa0]
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 - 0xa4]
mov edx, dword [ecx + 4]
push eax
mov eax, dword [edx + esi - 0xa0]
push eax
call edi
push 0
push eax
call ebx
mov ecx, dword [esi - 0x1c]
mov edx, dword [esi - 0xa4]
mov eax, dword [edx + 4]
push ecx
mov ecx, dword [eax + esi - 0xa0]
push ecx
call edi
mov ecx, dword [esi - 0xc]
test ecx, ecx
lea ecx, [esi - 0x60]
jne 0x402065
lea ecx, [esi - 0xa0]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
mov dword [esi - 8], 0
pop esi
mov eax, 1
pop ebx
ret
Function at 0x403af0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x94
push esi
push 2
mov esi, ecx
mov ecx, dword [esi + 0x480]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, 1
jl 0x403bed
mov al, byte [esp + 8]
movsx edx, al
cmp edx, 0xff
jg 0x403bed
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
mov byte [esp + 0x13], al
mov eax, dword [esi + 0xf8]
push 0x147
push eax
call ebp
cmp eax, 0xffffffff
je 0x403bec
mov ecx, dword [esi + 0xf8]
push ebx
push edi
push 0
push eax
push 0x150
push ecx
call ebp
lea edi, [eax + eax*2]
shl edi, 2
mov ebx, dword [edi + 0x41f454]
cmp ebx, 0x14
jge 0x403b83
movzx edx, byte [esp + 0x13]
push edx
call fcn.0040dd66
add esp, 4
jmp 0x403b87
mov al, byte [esp + 0x13]
mov ecx, dword [esi + 0xd8c]
mov byte [esi + ecx*8 + 0x58c], al
mov edx, dword [esi + 0xd8c]
mov dword [esi + edx*8 + 0x590], ebx
inc dword [esi + 0xd8c]
mov ecx, dword [edi + 0x41f458]
movzx edx, al
push ecx
push edx
lea eax, [esp + 0x2c]
push str.___c_t_s
push eax
call fcn.0040dd88
mov edx, dword [esi + 0xf0]
add esp, 0x10
push 0
lea ecx, [esp + 0x28]
push ecx
push 0
push 0x180
push edx
call ebp
push eax
mov eax, dword [esi + 0xf0]
push 0x186
push eax
call ebp
pop edi
pop ebx
pop ebp
pop esi
add esp, 0x94
ret

Function at 0x404180
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x10
push esi
push edi
push 2
mov esi, ecx
mov ecx, dword [esi + 0x480]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, 1
jge 0x4041c2
mov edx, dword [esi + 0x104]
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push edx
call edi
mov eax, dword [esi + 0x334]
push 0
push eax
call edi
pop edi
pop esi
add esp, 0x10
ret
mov ecx, dword [esp + 8]
push ebx
push ebp
push ecx
mov ecx, esi
call fcn.00403aa0
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
mov edi, eax
mov eax, dword [esi + 0x104]
xor edx, edx
cmp edi, 0xffffffff
sete dl
push edx
push eax
call ebx
cmp edi, 0xffffffff
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
je 0x40420d
mov ecx, dword [esi + 0xf0]
push 0
push edi
push 0x186
push ecx
call ebp
mov ecx, esi
call fcn.00403c00
mov edx, dword [esi + 0xf0]
push 0
push 0
push 0x188
push edx
call ebp
mov edx, dword [esi + 0x334]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
push ecx
push edx
call ebx
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x404b90
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x9c
push esi
push 2
mov esi, ecx
mov ecx, dword [esi + 0x480]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, 1
jl 0x404cde
mov al, byte [esp + 0x10]
movsx edx, al
cmp edx, 0xff
jg 0x404cde
push ebp
push edi
movzx edi, al
push edi
mov byte [esp + 0x13], al
call fcn.0040dd66
push edi
mov byte [esp + 0x16], al
call fcn.0040dea8
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 8
push 0
push 0
mov byte [esp + 0x1c], al
mov eax, dword [esi + 0xf8]
push 0x147
push eax
call ebp
cmp eax, 0xffffffff
je 0x404cdc
mov ecx, dword [esi + 0xf8]
push ebx
push 0
push eax
push 0x150
push ecx
call ebp
push 0
lea ebx, [eax + eax*2]
mov eax, dword [esi + 0xf0]
push 0
shl ebx, 2
mov edx, dword [ebx + 0x41f454]
push 0x188
push eax
mov dword [esp + 0x24], edx
call ebp
mov edi, eax
cmp edi, 0xffffffff
je 0x404cdb
mov ecx, dword [esp + 0x14]
cmp ecx, 0x14
mov al, byte [esp + 0x12]
jl 0x404c5a
mov al, byte [esp + 0x13]
mov byte [esi + edi*8 + 0x58c], al
mov dword [esi + edi*8 + 0x590], ecx
mov ecx, dword [ebx + 0x41f458]
movzx edx, al
push ecx
push edx
lea eax, [esp + 0x34]
push str.___c_t_s
push eax
call fcn.0040dd88
mov edx, dword [esi + 0xf0]
add esp, 0x10
lea ecx, [esp + 0x2c]
push ecx
push edi
push 0x181
push edx
call ebp
mov ecx, dword [esi + 0xf0]
push 0
lea eax, [edi + 1]
push eax
push 0x182
push ecx
call ebp
mov edx, dword [esi + 0xf0]
push 0
push edi
push 0x186
push edx
call ebp
mov eax, dword [esp + 0x18]
push eax
mov ecx, esi
call fcn.00403aa0
cmp eax, 0xffffffff
je 0x404cdb
cmp eax, edi
je 0x404cdb
push eax
mov ecx, esi
call fcn.00404310
pop ebx
pop edi
pop ebp
pop esi
add esp, 0x9c
ret
Function at 0x406b60
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
push ebp
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push 0x423428
push str.UniKey_MainWnd
push 0x80
mov esi, ecx
call fcn.0040a360
mov edi, eax
test edi, edi
jne 0x406ba7
pop edi
pop esi
pop ebp
ret 4
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_UpdateWindow]
push str.ABC_Sans_Serif
mov dword [esi + 0x390], 0
call fcn.00402480
add esp, 4
test eax, eax
jne 0x406bdd
mov ecx, esi
call fcn.004065c0
test eax, eax
je 0x406be7
mov dword [esi + 0x390], 1
mov eax, dword [0x4234bc]
test eax, eax
je 0x406c04
mov eax, dword [esi + 0x390]
test eax, eax
jne 0x406c04
mov dword [0x4234bc], 0
lea ecx, [esi + 0xc]
mov dword [ecx + 0x54], 0x4234a0
mov dword [ecx + 0x58], ebp
mov dword [ecx + 0x5c], edi
call fcn.00409850
push 0x103
lea edi, [esi + 0x288]
push edi
push 0
mov word [0x4234e8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push edi
call fcn.0040dc70
add esp, 8
test eax, eax
je 0x406c48
mov byte [eax], 0
push edi
lea eax, [esi + 0x80]
push str._sUnikey.hlp
push eax
call fcn.0040dd88
push edi
lea ecx, [esi + 0x184]
push str._skeymap.txt
push ecx
call fcn.0040dd88
push edi
lea ebp, [esi + 0x398]
push str._sukmacro.txt
push ebp
call fcn.0040dd88
lea edx, [esi + 0x49c]
add esp, 0x24
mov eax, ebp
sub edx, ebp
jmp 0x406c90
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x406c90
add esi, 0x5a0
mov ecx, esi
call dword [sym.imp.UKHook40.dll_public:_void___thiscall_CMacroTable::init_void_]
push ebp
call fcn.0040a770
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 ebp
ret 4
Function at 0x406cd0
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, dword [0x42348c]
mov ecx, dword [sym.imp.UKHook40.dll_long_int___stdcall_MyKeyHook_int__unsigned_int__long_int_]
sub esp, 0xbc
push esi
mov esi, dword [sym.imp.USER32.dll_SetWindowsHookExA]
push 0
push eax
push ecx
push 2
call esi
mov edx, dword [0x42348c]
push 0
mov dword [0x423494], 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 [0x423494]
test ecx, ecx
mov dword [0x423498], eax
jne 0x406d35
push 0x10
push str.Error
push str.Failed_to_set_up_keyboard_hook
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop esi
add esp, 0xbc
ret
test eax, eax
jne 0x406d56
push 0x10
push str.Error
push str.Failed_to_set_up_mouse_hook
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop esi
add esp, 0xbc
ret
call dword [sym.imp.UKHook40.dll_void___cdecl_InitUkHook_void_]
push 0x42368c
call dword [sym.imp.UKHook40.dll_int___cdecl_UnikeyLoadUserKeyMap_char_const__]
add esp, 4
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x30], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x30]
cmp eax, 4
ja 0x406d9c
cmp dword [esp + 0x3c], 2
jne 0x406d92
cmp eax, 4
je 0x406d9c
mov dword [esp + 0x20], 0
jmp 0x406da4
mov dword [esp + 0x20], 1
mov ecx, dword [0x423490]
mov edx, dword [esp + 0x34]
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xc4]
push 0x82
push ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x18], eax
call esi
mov edx, dword [0x423490]
push 0x81
push edx
mov dword [esp + 0x24], eax
call esi
mov ecx, dword [0x423498]
mov edx, dword [0x4234ac]
mov dword [esp + 0x18], eax
mov eax, dword [0x423494]
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 [0x4234a4]
push ecx
call dword [sym.imp.UKHook40.dll_void___cdecl_EnableUnikey_int_]
mov edx, dword [0x4234b0]
push edx
call dword [sym.imp.UKHook40.dll_int___cdecl_SetInputMethod_enum_UkInputMethod_]
mov eax, dword [0x4234a8]
push eax
call dword [sym.imp.UKHook40.dll_int___cdecl_SetOutputCharset_int_]
push 0x4234a0
call fcn.00406790
push 0x4239a4
call dword [sym.imp.UKHook40.dll_void___cdecl_UnikeyLoadMacro_char_const__]
add esp, 0x18
call dword [sym.imp.UKHook40.dll_void___cdecl_SetUnikeyReady_void_]
mov eax, 1
pop esi
add esp, 0xbc
ret
Function at 0x409b20
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x1a0
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
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_RegCreateKeyExA]
test eax, eax
je 0x409b77
xor eax, eax
add esp, 0x1a0
ret
mov eax, dword [esp + 0x1a4]
test eax, eax
push esi
je 0x409be5
push 0x104
lea eax, [esp + 0xa4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0xa0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409ba2
sub eax, edx
mov edx, dword [esp + 4]
inc eax
push eax
lea ecx, [esp + 0xa4]
push ecx
push 1
push 0
push str.UniKey
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
mov esi, eax
neg esi
sbb esi, esi
push edx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x1a0
ret
mov eax, dword [esp + 4]
push str.UniKey
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp + 4]
push 0
push 0
push 0
push 0
push str.UniKey
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 4]
mov esi, eax
neg esi
sbb esi, esi
push edx
neg esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x1a0
ret

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

Disassembly:
sub esp, 0x98
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
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_RegOpenKeyExA]
test eax, eax
je 0x409c7b
xor eax, eax
add esp, 0x98
ret
mov edx, dword [esp]
push esi
push 0
push 0
push 0
push 0
push str.UniKey
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
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, 0x98
ret
Function at 0x409d40
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_RegCreateKeyExA]
test eax, eax
je 0x409d75
xor eax, eax
pop esi
add esp, 8
ret
mov edx, dword [esp + 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
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.00409b20
add esp, 4
mov eax, 1
pop edi
pop esi
add esp, 8
ret