joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4076b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x457c70]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x828]
push edi
mov edi, ecx
push 0x400
push eax
push dword [edi + 0x1b8]
call esi
push 0x10
lea eax, [ebp - 0x28]
push eax
push dword [edi + 0x3b0]
call esi
cmp word [ebp - 0x28], 0
je 0x40776b
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [edi + 0x1b4]
call fcn.004069e0
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x40771a
mov ecx, esi
jmp 0x40772a
or ecx, 0xffffffff
cmp dword [ebp - 0x82c], ecx
cmovne ecx, dword [ebp - 0x82c]
push 0
push ecx
push 0x186
push dword [edi + 0x1b4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp esi, 0xffffffff
je 0x407780
push 1
mov ecx, edi
call fcn.004079c0
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
cmp word [ebp - 0x828], ax
setne al
push eax
push dword [edi + 0x1c4]
call esi
push 1
jmp 0x4077b4
push 0
push 0xffffffffffffffff
push 0x186
push dword [edi + 0x1b4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
mov ecx, edi
call fcn.004079c0
cmp word [ebp - 0x28], 0
je 0x4077a1
cmp word [ebp - 0x828], 0
je 0x4077a1
mov eax, 1
jmp 0x4077a3
xor eax, eax
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push eax
push dword [edi + 0x1c4]
call esi
push 0
push dword [edi + 0x214]
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041cc0e
mov esp, ebp
pop ebp
ret

Function at 0x4078c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x457c70]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
lea eax, [ebp - 0x824]
push 0x400
push eax
push dword [edi + 0x1b8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x10
lea eax, [ebp - 0x24]
push eax
push dword [edi + 0x3b0]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [ebp - 0x824], 0
je 0x407918
cmp word [ebp - 0x24], 0
je 0x407918
mov eax, 1
jmp 0x40791a
xor eax, eax
push eax
push dword [edi + 0x1c4]
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0041cc0e
mov esp, ebp
pop ebp
ret
Function at 0x407d10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ffcd
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x457c70]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 8], 0
mov dword [edi + 4], 0
lea ecx, [edi + 0xc]
mov dword [ebp - 4], 0
mov dword [edi], vtable.CMainWnd.0
call fcn.0040c3d0
mov esi, dword [ebp + 8]
lea ecx, [edi + 0x22a74]
push 1
push esi
mov byte [ebp - 4], 1
call fcn.00407b40
push 1
push esi
lea ecx, [edi + 0x230a0]
mov byte [ebp - 4], 2
call fcn.00407de0
push 1
push esi
lea ecx, [edi + 0x2342c]
mov byte [ebp - 4], 3
call fcn.00407c50
push 1
push esi
lea ecx, [edi + 0x23a08]
mov byte [ebp - 4], 4
call fcn.0040c950
xor eax, eax
mov dword [edi + 0x654], esi
mov dword [edi + 0x30], 0
mov word [edi + 0x34], ax
mov dword [edi + 0x64c], eax
mov dword [edi + 0x650], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x408480
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x457c70]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
jb 0x4084ff
push esi
push str.ChangeWindowMessageFilter
push str.user32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4084fe
push 1
push 0x466
call esi
push 1
push 0x467
call esi
push 1
push 0x468
call esi
push 1
push 0x469
call esi
push 1
push 0x46a
call esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041cc0e
mov esp, ebp
pop ebp
ret
Function at 0x408b00
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push dword [ebp + 8]
mov edi, ecx
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push 0x463330
push 0x4438a8
push 0x80
call fcn.0040ea10
mov ebx, eax
test ebx, ebx
jne 0x408b47
pop edi
pop ebx
pop ebp
ret 4
push 0
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x441b54
mov dword [edi + 0x650], 0
call fcn.004036b0
add esp, 4
test eax, eax
jne 0x408b7d
mov ecx, edi
call fcn.0043b1e0
test eax, eax
je 0x408b87
mov dword [edi + 0x650], 1
mov eax, dword [0x463414]
test eax, eax
je 0x408ba0
xor ecx, ecx
cmp dword [edi + 0x650], ecx
cmove eax, ecx
mov dword [0x463414], eax
push esi
push 0x4633f8
push ebx
push dword [ebp + 8]
lea ecx, [edi + 0xc]
call fcn.0040c570
lea ecx, [edi + 0xc]
call fcn.0040c6a0
push 0x103
xor eax, eax
lea esi, [edi + 0x444]
push esi
push eax
mov word [0x463448], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push esi
call fcn.0041d822
add esp, 8
test eax, eax
je 0x408be9
xor ecx, ecx
mov word [eax], cx
push esi
lea eax, [edi + 0x34]
push str._sukmanual.htm
push eax
call fcn.0041d8c8
push esi
lea eax, [edi + 0x23c]
push str._skeymap.txt
push eax
call fcn.0041d8c8
push esi
lea ebx, [edi + 0x658]
push str._sukmacro.txt
push ebx
call fcn.0041d8c8
lea edx, [edi + 0x860]
add esp, 0x24
mov ecx, ebx
sub edx, ebx
lea esp, [esp]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x408c30
lea ecx, [edi + 0xa68]
call fcn.0040fdf0
push ebx
call fcn.0040ec60
add esp, 4
lea ecx, [edi + 0xa68]
push eax
call fcn.0040fe10
mov ecx, 0x487e20
call fcn.0040d9c0
push 0
mov ecx, 0x487e20
call fcn.0040d7b0
pop esi
pop edi
mov eax, 1
pop ebx
pop ebp
ret 4

Function at 0x408f20
Capabilities:
Create process on windows

Disassembly:
push 1
push 0
push 0
lea eax, [ecx + 0x34]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret
Function at 0x408f40
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x457c70]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.USER32.dll_SetWindowsHookExW]
push edi
mov edi, dword [ebp + 8]
push 0
push 0
push 0x414e40
push 0xd
call esi
push 0
push 0
push 0x4153c0
push 0xe
mov dword [0x463324], eax
call esi
cmp dword [0x463324], 0
mov dword [0x463328], eax
jne 0x408fb1
push 0x10
push str.Error
push str.Failed_to_set_up_keyboard_hook
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041cc0e
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x408fda
push 0x10
push str.Error
push str.Failed_to_set_up_mouse_hook
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041cc0e
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x140], xmm0
movdqu xmmword [ebp - 0x130], xmm0
movq qword [ebp - 0x120], xmm0
call fcn.00414a70
mov ecx, 0x463468
call fcn.00408c90
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x114]
cmp eax, 4
ja 0x409040
cmp dword [ebp - 0x108], 2
jne 0x409034
cmp eax, 4
je 0x409040
mov dword [ebp - 0x124], 0
jmp 0x40904a
mov dword [ebp - 0x124], 1
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
push 0x82
push dword [0x463320]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x134], edi
call esi
push 0x81
push dword [0x463320]
mov dword [ebp - 0x128], eax
call esi
mov dword [ebp - 0x12c], eax
mov eax, dword [0x463324]
mov dword [ebp - 0x13c], eax
mov eax, dword [0x463328]
mov dword [ebp - 0x138], eax
mov eax, dword [0x463404]
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0x140]
push eax
mov dword [ebp - 0x130], 0x401
call fcn.00415cb0
push dword [0x4633fc]
call fcn.00414900
push dword [0x463408]
call fcn.00415b40
push dword [0x463400]
call fcn.00415ba0
push 0x4633f8
call fcn.00408410
add esp, 0x14
mov ecx, 0x463468
call fcn.00409260
call fcn.00415ca0
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0041cc0e
mov esp, ebp
pop ebp
ret
Function at 0x409e00
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x457c70]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
jb 0x409e65
push 0x14
call fcn.0041d07a
add esp, 4
test eax, eax
je 0x409e94
push dword [ebp + 0xc]
mov ecx, eax
push dword [ebp + 8]
call fcn.00409620
mov dword [esi + 4], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041cc0e
mov esp, ebp
pop ebp
ret 8
push 0x70
call fcn.0041d07a
add esp, 4
test eax, eax
je 0x409e94
push dword [ebp + 0xc]
mov ecx, eax
push dword [ebp + 8]
call fcn.004095b0
mov dword [esi + 4], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041cc0e
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [esi + 4], eax
xor ecx, ebp
pop esi
call fcn.0041cc0e
mov esp, ebp
pop ebp
ret 8

Function at 0x40a900
Capabilities:
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x457c70]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x104
push eax
push str.APPDATA
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor ecx, ecx
cmp ecx, eax
sbb eax, eax
and eax, 0x7ff8ffa9
add eax, 0x80070057
js 0x40a9a1
push str.MicrosoftWindowsStart_MenuProgramsUnikeyNT.lnk
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0041de94
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0x80070057
jl 0x40a9a1
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xfffffff
jb 0x40a99c
push edi
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.0040a360
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041cc0e
mov esp, ebp
pop ebp
ret 4
mov eax, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041cc0e
mov esp, ebp
pop ebp
ret 4
Function at 0x40b230
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp eax, 1
jne 0x40b248
mov dword [ebp + 8], 0
pop ebp
jmp fcn.0040c1f0
cmp eax, 0xd
jne 0x40b25a
mov dword [ebp + 8], 1
pop ebp
jmp fcn.0040c1f0
mov eax, 1
pop ebp
ret
Function at 0x40c1f0
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [0x4879d8]
xor ebx, ebx
push edi
xor edi, edi
test esi, esi
je 0x40c2d5
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push esi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40c2d5
push dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 8]
mov dword [ebp - 4], ebx
push ecx
push ebx
push eax
call fcn.0041c5e0
add esp, 0x14
cmp eax, 6
jne 0x40c285
push dword [ebp - 4]
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x40c2ba
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x40c2ba
push dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 0x10]
call fcn.0041c5e0
add esp, 0x14
test eax, eax
jne 0x40c2ba
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call esi
push edi
call esi
cmp dword [ebp + 8], 0
mov ecx, 0xd
mov eax, 1
push edi
cmovne eax, ecx
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call esi
test ebx, ebx
je 0x40c2ca
push edi
call esi
test edi, edi
je 0x40c2d5
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40c2e0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 0
mov edi, ecx
push 0
push 0x147
push dword [edi + 0x1b4]
call esi
mov ecx, dword [edi + 0x36c]
push 0
push 0
push 0x147
mov dword [ecx + 0x20], eax
push dword [edi + 0x1b8]
call esi
mov ecx, dword [edi + 0x36c]
push 0
push 0
push 0xf0
mov dword [ecx + 0x24], eax
push dword [edi + 0x1c4]
call esi
mov ecx, dword [edi + 0x36c]
dec eax
neg eax
push 0
sbb eax, eax
push 0
inc eax
push 0xf0
mov dword [ecx + 0x28], eax
push dword [edi + 0x1c8]
call esi
mov ecx, dword [edi + 0x36c]
push 0
push 0
push 0xf0
mov dword [ecx + 0x5c], eax
push dword [edi + 0x1cc]
call esi
mov ecx, dword [edi + 0x36c]
push 0
push 0
push 0xf0
mov dword [ecx + 0x60], eax
push dword [edi + 0x1d0]
call esi
mov ecx, dword [edi + 0x36c]
push 0
push 0
push 0xf0
mov dword [ecx + 0x64], eax
push dword [edi + 0x1d4]
call esi
mov ecx, dword [edi + 0x36c]
push 0
push 0
push 0xf0
mov dword [ecx + 0x58], eax
push dword [edi + 0x1d8]
call esi
mov ecx, dword [edi + 0x36c]
mov dword [ecx + 0x68], eax
mov ecx, dword [edi + 0x36c]
pop edi
pop esi
jmp fcn.0040e800
Function at 0x40ceb7
Capabilities:
Create process on windows

Disassembly:
cmp byte [0x487e2d], 0
push esi
mov esi, ecx
je 0x40cec2
pop esi
jmp fcn.0040cb50
mov ecx, 0x487e20
call fcn.0040d460
test al, al
je 0x40cedf
mov byte [esi + 0x1bc], 1
mov ecx, esi
pop esi
jmp fcn.0040cf10
mov eax, dword [esi + 4]
push 0x10
push str.Error
push str.Failed_to_start_downloading_update
mov eax, dword [eax + 4]
push dword [eax + esi + 8]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, esi
pop esi
jmp fcn.0040cf10
Function at 0x40d860
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x457c70]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x40d8dc
lea eax, [ebp - 0x20c]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x103
ja 0x40d8dc
test eax, eax
je 0x40d8dc
push 0x2f
push esi
call fcn.0041d822
add esp, 8
test eax, eax
je 0x40d8dc
add eax, 2
cmp word [eax], 0
je 0x40d8dc
push eax
lea eax, [ebp - 0x20c]
push eax
push str._s_s
push edi
call fcn.0041d8c8
add esp, 0x10
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041cc0e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.0041cc0e
mov esp, ebp
pop ebp
ret

Function at 0x40da70
Capabilities:
Extract resource via kernel32 functions
Import public key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push str.CERTIFICATE
push 0xc7
push 0
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40db02
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40db02
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40db02
push edi
push 0
push 1
push 0
push 0
lea edi, [ebx + 0xa54]
push edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x40db01
push dword [ebp - 4]
push esi
push 1
call dword [sym.imp.CRYPT32.dll_CertCreateCertificateContext]
mov esi, eax
test esi, esi
je 0x40db01
lea ecx, [ebx + 0xa58]
push ecx
mov ecx, dword [esi + 0xc]
add ecx, 0x38
push ecx
push 1
push dword [edi]
call dword [sym.imp.CRYPT32.dll_CryptImportPublicKeyInfo]
push esi
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40db10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x457c70]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x40db3d
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041cc0e
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20c]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x103
ja 0x40dbc9
test eax, eax
je 0x40dbc9
push edi
lea edi, [esi + 0x410]
push edi
push 0
push str.UkUpdate
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x40dbb7
push esi
push 0x40d3b0
push edi
lea eax, [esi + 0x10]
mov dword [esi + 0xa34], 0
push eax
lea ecx, [esi + 0xa38]
call fcn.004025d0
test eax, eax
je 0x40dbb7
pop edi
mov dword [esi + 8], 1
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041cc0e
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041cc0e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.0041cc0e
mov esp, ebp
pop ebp
ret
Function at 0x40e200
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x457c70]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x320]
mov dword [ebp - 0x320], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea ecx, [ebp - 0x328]
xor eax, eax
cmp dword [ebp - 0x310], 2
push ecx
lea ecx, [ebp - 0x324]
setne al
push ecx
push 0
push 3
push 0
push 0
push 0
add eax, 0x80000001
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40e273
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041cc0e
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 0
push esi
je 0x40e2d3
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e297
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push str.UniKey
push dword [ebp - 0x324]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
jmp 0x40e305
push str.UniKey
push dword [ebp - 0x324]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0
push 0
push 0
push 0
push str.UniKey
push dword [ebp - 0x324]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
neg esi
sbb esi, esi
neg esi
push dword [ebp - 0x324]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041cc0e
mov esp, ebp
pop ebp
ret
Function at 0x40e670
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x457c70]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
lea ecx, [ebp - 0x11c]
cmp dword [ebp - 0x108], 2
push ecx
push 3
push 0
setne al
add eax, 0x80000001
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40e6d6
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041cc0e
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0
push 0
push 0
push str.UniKey
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x11c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
pop esi
sete al
xor ecx, ebp
call fcn.0041cc0e
mov esp, ebp
pop ebp
ret
Function at 0x40e800
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 4]
mov edi, ecx
push eax
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 0x40e836
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
push edi
push 4
push 0
push str.ShowDlg
push dword [ebp - 4]
call esi
push 4
lea eax, [edi + 4]
push eax
push 4
push 0
push str.Vietnamese
push dword [ebp - 4]
call esi
push 4
lea eax, [edi + 8]
push eax
push 4
push 0
push str.CodeTable
push dword [ebp - 4]
call esi
push 4
lea eax, [edi + 0xc]
push eax
push 4
push 0
push str.SwitchKey
push dword [ebp - 4]
call esi
push 4
lea eax, [edi + 0x10]
push eax
push 4
push 0
push str.InputMethod
push dword [ebp - 4]
call esi
push 4
lea eax, [edi + 0x14]
push eax
push 4
push 0
push str.FreeMarking
push dword [ebp - 4]
call esi
push 4
lea eax, [edi + 0x18]
push eax
push 4
push 0
push str.ModernStyle
push dword [ebp - 4]
call esi
push 4
lea eax, [edi + 0x1c]
push eax
push 4
push 0
push str.VietGUI
push dword [ebp - 4]
call esi
push 4
lea eax, [edi + 0x20]
push eax
push 4
push 0
push str.InConvCharset
push dword [ebp - 4]
call esi
push 4
lea eax, [edi + 0x24]
push eax
push 4
push 0
push str.OutConvCharset
push dword [ebp - 4]
call esi
push 4
lea eax, [edi + 0x28]
push eax
push 4
push 0
push str.ClipboardConvert
push dword [ebp - 4]
call esi
push 4
lea eax, [edi + 0x2c]
push eax
push 4
push 0
push str.MacroEnabled
push dword [ebp - 4]
call esi
push 4
lea eax, [edi + 0x40]
push eax
push 4
push 0
push str.AutoNonVnRestore
push dword [ebp - 4]
call esi
push 4
lea eax, [edi + 0x30]
push eax
push 4
push 0
push str.UseUnicodeClipboard
push dword [ebp - 4]
call esi
push 4
lea eax, [edi + 0x34]
push eax
push 4
push 0
push str.AlwaysMacro
push dword [ebp - 4]
call esi
push 4
lea eax, [edi + 0x38]
push eax
push 4
push 0
push str.UseIME
push dword [ebp - 4]
call esi
push 4
lea eax, [edi + 0x3c]
push eax
push 4
push 0
push str.SpellCheckEnabled
push dword [ebp - 4]
call esi
push 4
lea eax, [edi + 0x44]
push eax
push 4
push 0
push str.AutoUpdate
push dword [ebp - 4]
call esi
push 4
lea eax, [edi + 0x48]
push eax
push 4
push 0
push str.Notification
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [edi + 0x54]
call fcn.0040e200
add esp, 4
mov eax, 1
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x410460
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440490
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x457c70]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 8]
mov ecx, 0x489298
call fcn.004110f0
mov esi, dword [ebp + 0xc]
mov ecx, 0x489298
push esi
mov ebx, eax
call fcn.004110f0
mov edi, eax
test ebx, ebx
je 0x410556
test edi, edi
je 0x410556
test esi, esi
mov esi, dword [ebp + 0x14]
jne 0x4104d6
push esi
push 1
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0xfeff
push 2
push eax
call fcn.00420814
add esp, 0x10
push 0
push 0x2000
lea ecx, [ebp - 0x50]
call fcn.0043af40
push 0
push 0x2000
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.0043af80
push dword [ebp + 0x10]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.0043b110
push esi
lea ecx, [ebp - 0x28]
call fcn.0043b140
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x50]
push eax
push edi
push ebx
call fcn.00410390
add esp, 0x10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.0043b090
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0xffffffff
call fcn.0043b070
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret