joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457dbc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4f5578]
cmp dword [eax + 0x30], 0
je 0x457e66
cmp dword [ebx + 0x94], 0
jne 0x457e60
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x457d4c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x457e60
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x457e26
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x457e60
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414514
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x457e35
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x458b80
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x458bb5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004047b0
jmp 0x458bc2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404714
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x459f0c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x459f7a
mov eax, esi
call fcn.004446bc
test al, al
je 0x459f7a
mov eax, dword [ebx + 0x84]
call fcn.0044431c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x459f7a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x459f6e
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044431c
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0043c73c
jmp 0x459f7a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00459d48
pop esi
pop ebx
ret
Function at 0x40571b
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x4fbf60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push esi
push 0xffffffffffffffeb
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SetWindowLongW]
xor edi, edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], 0x85
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x38], 0x86
mov dword [ebp - 0x34], 2
mov dword [ebp - 0x30], 0x87
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x28], 0x88
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x20], 0x8d
mov dword [ebp - 0x1c], 5
mov dword [ebp - 0x18], 0x89
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x10], 0x8c
mov dword [ebp - 0xc], 6
mov dword [ebp - 8], 0x8b
xor ebx, ebx
movzx eax, word [ebp + ebx*8 - 0x40]
push eax
push dword [0x502194]
call dword [sym.imp.USER32.dll_LoadBitmapW]
mov ecx, dword [ebp + ebx*8 - 0x44]
inc ebx
mov dword [esi + ecx*4], eax
cmp ebx, 8
jl 0x4057ac
push edi
push dword [0x502194]
mov ebx, 0x9b
push 0x3e8
push dword [esi + 0x20]
push 0x28
push 0xc1
push 0xc8
push ebx
push 0x5000000b
push 0x4da6dc
push str.BUTTON
push edi
mov edi, dword [sym.imp.USER32.dll_CreateWindowExW]
call edi
push 0
push dword [0x502194]
push 0x3e9
push dword [esi + 0x20]
push 0x23
push 0x7f
push 0xc8
push 0x16d
push 0x5000000b
push 0x4da6dc
push str.BUTTON
push 0
call edi
push 0
push dword [0x502194]
push 0x3ea
push dword [esi + 0x20]
push 0x13
push 0x190
push 0x56
push ebx
push 0x5000000b
push 0x4da928
push str.BUTTON
push 0
call edi
push 0
push dword [0x502194]
mov dword [esi + 0x34], eax
push 0x3eb
push dword [esi + 0x20]
push 0x13
push 0xc8
push 0x68
push ebx
push 0x5000000b
push 0x4da984
push str.BUTTON
push 0
call edi
push 0
push dword [0x502194]
mov dword [esi + 0x30], eax
push 0x3ee
push dword [esi + 0x20]
push 0x13
push 0x12c
push 0x82
push ebx
push 0x5000000b
push 0x4da9b8
push str.BUTTON
push 0
call edi
push 0x110
mov dword [esi + 0x38], eax
lea eax, [ebp - 0x154]
push 0
push eax
call fcn.00483200
add esp, 0xc
lea eax, [ebp - 0x158]
push eax
mov dword [ebp - 0x158], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40591d
cmp dword [ebp - 0x154], 6
jne 0x40591d
cmp dword [ebp - 0x150], 2
je 0x405914
cmp dword [ebp - 0x150], 3
jne 0x40591d
mov byte [ebp - 0x15c], 1
jmp 0x405924
mov byte [ebp - 0x15c], 0
movzx eax, byte [ebp - 0x15c]
push 0
push dword [0x502194]
neg eax
push 0x3ef
push dword [esi + 0x20]
sbb eax, eax
push 0x13
push 0x10e
push 0x9c
push ebx
and eax, 0x10000000
or eax, 0x4000000b
push eax
push 0x4daa00
push str.BUTTON
push 0
call edi
push 0
push dword [0x502194]
mov dword [esi + 0x3c], eax
push 0x3ec
push dword [esi + 0x20]
push 0x17
push 0x1a4
push 0x1c
push ebx
push 0x5000000d
push 0x4daa38
push str.STATIC
push 0
call edi
push 0
push dword [0x502194]
push 0x3ec
push dword [esi + 0x20]
push 0x17
push 0x1a4
push 0x34
push ebx
push 0x5000000d
push 0x4daa58
push str.STATIC
push 0
call edi
push 1
push dword [esi + 0x38]
call fcn.00401000
push dword [ebp - 0x15c]
push dword [esi + 0x3c]
call fcn.00401000
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0047f164
leave
ret
Function at 0x405a4f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4fbf60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
push 0
push 0x3eb
push dword [esi + 0x20]
call ebx
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
push 0x4daa98
push dword [esi + 0x34]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0
push 0x3e8
push dword [esi + 0x20]
call ebx
push eax
call edi
push 0
push 0x3e9
push dword [esi + 0x20]
call ebx
push eax
call edi
xor ebx, ebx
push ebx
push dword [esi + 0x38]
call edi
push ebx
push dword [esi + 0x3c]
call edi
push ebx
push dword [0x502194]
push 0x3ed
push dword [esi + 0x20]
push 0x14
push 0x1a4
push 0x78
push 0x9b
push 0x50000008
push ebx
push str.msctls_progress32
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
push ebx
push 1
push 0x40a
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push 1
push 0xb8
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_MoveWindow]
push 1
mov ecx, esi
call fcn.00405f1b
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0047f164
leave
ret
Function at 0x4073f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce7f3
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4fbf60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x68], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x407592
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [esi]
jne 0x407592
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4074ab
lea ebx, [ebp - 0x2c]
call fcn.00407050
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], 0
je 0x40748f
lea eax, [esi + 0x10]
test eax, eax
je 0x407462
lea eax, [esi + 0x20]
jmp 0x407464
xor eax, eax
push 0x4dad10
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push ecx
push 0x4dad14
push eax
call fcn.00409b50
add esp, 0xc
push eax
call fcn.00409e10
add esp, 0xc
push eax
call fcn.00409b50
add esp, 8
mov edi, 8
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], edi
jb 0x4074b0
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0047f3b4
add esp, 4
jmp 0x4074b0
mov edi, 8
lea ecx, [ebp - 0x64]
lea eax, [esi + 0x10]
call fcn.004084e0
lea ecx, [ebp - 0x48]
push 0x4dad34
push ecx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00406565
add esp, 8
cmp dword [eax + 0x14], edi
jb 0x4074d9
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x34], edi
jb 0x4074f1
mov edx, dword [ebp - 0x48]
push edx
call fcn.0047f3b4
add esp, 4
xor eax, eax
mov byte [ebp - 4], al
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
cmp dword [ebp - 0x50], edi
jb 0x407519
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.0047f3b4
add esp, 4
mov edi, dword [0x5004e4]
xor edx, edx
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], 0
mov word [ebp - 0x64], dx
cmp byte [0x4ffc07], dl
jne 0x407541
mov edi, dword [0x500484]
lea ecx, [ebp - 0x2c]
lea eax, [esi + 0x10]
call fcn.004084e0
mov ebx, 8
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], ebx
jb 0x40755c
mov eax, dword [eax]
mov ecx, dword [esi]
mov edx, dword [esi + 8]
push ecx
push eax
mov eax, dword [esi + 4]
push edx
push eax
call edi
add esp, 0x10
cmp dword [ebp - 0x18], ebx
jb 0x40757e
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0047f3b4
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
add esi, 0x70
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.00408450
push esi
mov dword [esi], vtable.std::ios_base.0
call fcn.0047e8b1
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047f164
mov esp, ebp
pop ebp
ret
Function at 0x407c40
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cc21b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4fbf60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0047e938
push 4
mov dword [ebp - 4], 0
call fcn.0047f786
mov edi, eax
add esp, 4
test edi, edi
je 0x407cc0
call fcn.0047e2be
mov dword [edi], eax
call fcn.0047e07d
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0047dfb2
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x407cb6
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0047dfda
jmp 0x407cc2
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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

Function at 0x4096c0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cc1eb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4fbf60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0047e938
push 4
mov dword [ebp - 4], 0
call fcn.0047f786
mov edi, eax
add esp, 4
test edi, edi
je 0x40973c
call fcn.0047e2be
mov dword [edi], eax
call fcn.0047e07d
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0047dfb2
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x409732
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0047dfda
jmp 0x40973e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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 4
Function at 0x412c50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cfe3b
mov eax, dword fs:[0]
push eax
mov eax, 0x102c
call fcn.00497bd0
mov eax, dword [0x4fbf60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x1030]
push eax
push 0
push 0
mov dword [ebp - 0x1030], 0
call fcn.00412a10
add esp, 0xc
test eax, eax
jne 0x412d94
mov edi, dword [ebp - 0x1030]
test edi, edi
je 0x412d06
xor ecx, ecx
push 0xffe
push ecx
lea edx, [ebp - 0x100e]
push edx
mov word [ebp - 0x1010], cx
call fcn.00483200
add esp, 0xc
lea eax, [ebp - 0x1034]
push eax
lea ecx, [ebp - 0x1010]
push ecx
push 0
push 0
push str.Channel
push edi
mov dword [ebp - 0x1034], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x412d10
mov edx, dword [ebp - 0x1030]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80004005
jmp 0x412d94
xor eax, eax
mov word [ebp - 0x102c], ax
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x1018], 7
mov dword [ebp - 0x101c], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412d36
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x1010]
push ecx
lea ecx, [ebp - 0x102c]
call fcn.004028fc
lea edx, [ebp - 0x102c]
push edx
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.004132a0
cmp dword [ebp - 0x1018], 8
jb 0x412d85
mov eax, dword [ebp - 0x102c]
push eax
call fcn.0047f3b4
add esp, 4
mov ecx, dword [ebp - 0x1030]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047f164
mov esp, ebp
pop ebp
ret

Function at 0x412db0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
lea eax, [ebp - 4]
push eax
push 0
push 0
mov ecx, 0x4db068
mov dword [ebp - 4], 0
call fcn.00412a10
add esp, 0xc
test eax, eax
jne 0x412e1e
mov eax, dword [ebp - 4]
test eax, eax
jne 0x412de8
mov eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
lea ecx, [ebp - 8]
push ecx
push edx
push 0
push 0
push str.pcnt
push eax
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
neg eax
sbb eax, eax
and eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x412e30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov esi, eax
lea eax, [ebp - 8]
xor edi, edi
push eax
push edi
push edi
mov dword [ebp - 8], edi
call fcn.00412a10
add esp, 0xc
cmp eax, edi
jne 0x412ef5
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x412e81
lea ecx, [ebp - 0xc]
push ecx
push edi
push edi
push edi
push 0x4de9c0
push eax
mov dword [ebp - 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x412e8d
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
mov ebx, dword [esi]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 4]
mov byte [ebp - 1], 0
cmp ebx, eax
je 0x412eb4
mov edi, eax
sub edi, eax
push edi
push eax
push ebx
call fcn.0047f3c0
add esp, 0xc
add edi, ebx
mov dword [esi + 4], edi
mov eax, dword [esi]
lea ecx, [ebp - 1]
push ecx
push eax
mov eax, dword [ebp - 0x10]
push esi
call fcn.00413c10
mov esi, dword [esi]
mov eax, dword [ebp - 8]
lea edx, [ebp - 0xc]
push edx
push esi
push 0
push 0
push 0x4de9c0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 8]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
neg eax
sbb eax, eax
and eax, 0x80004005
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x412f00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, eax
lea eax, [ebp - 4]
push eax
push 1
push 1
mov dword [ebp - 4], 0
call fcn.00412a10
add esp, 0xc
test eax, eax
jne 0x412f71
mov edi, dword [ebp - 4]
test edi, edi
jne 0x412f35
mov eax, 0x80004005
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x412f40
sub eax, edx
mov edx, dword [ebp + 8]
sar eax, 1
lea ecx, [eax + eax]
push ecx
push esi
push 1
push 0
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x412f80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 1
push 1
mov dword [ebp - 4], 0
call fcn.00412a10
add esp, 0xc
test eax, eax
jne 0x412fd4
mov eax, dword [ebp - 4]
test eax, eax
jne 0x412fb1
mov eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x412fe0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cfe08
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x4fbf60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
push eax
push 1
mov dword [ebp - 4], 0
push 1
mov dword [ebp - 0x10], 0
call fcn.00412a10
mov esi, eax
add esp, 0xc
test esi, esi
je 0x41304c
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x41303a
push eax
call fcn.0047f3b4
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x10]
test edx, edx
jne 0x413078
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x413063
push eax
call fcn.0047f3b4
add esp, 4
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
sub eax, ecx
jne 0x41308c
push str.invalid_vector_T__subscript
call fcn.0047e619
push eax
push ecx
push 3
push 0
push 0x4de9c0
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp byte [ebp + 8], 0
mov esi, eax
je 0x4130b4
test esi, esi
jne 0x4130b4
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
test esi, esi
jne 0x41302d
test eax, eax
je 0x4130d6
push eax
call fcn.0047f3b4
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4130f0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
push 1
push 0
mov ecx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun_
mov dword [ebp - 4], 0
call fcn.00412a10
add esp, 0xc
test eax, eax
jne 0x413132
mov eax, dword [ebp - 4]
test eax, eax
jne 0x413126
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret
push str.KometaLaunchPanel
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esp, ebp
pop ebp
ret
Function at 0x41c950
Capabilities:
Check if file exists
Get file attributes

Disassembly:
test eax, eax
je 0x41c967
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41c967
test al, 0x10
jne 0x41c967
mov al, 1
ret
xor al, al
ret
Function at 0x41d9d0
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cecf1
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
push ebx
push esi
push edi
mov eax, dword [0x4fbf60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
cmp esi, edi
jne 0x41da89
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x2b0
lea eax, [ebp - 0x100]
push eax
mov ebx, str.env.cpp
call fcn.00407320
mov esi, eax
mov dword [ebp - 4], edi
cmp esi, edi
je 0x41da63
lea ebx, [esi + 0x10]
cmp ebx, edi
je 0x41da3a
lea eax, [esi + 0x20]
jmp 0x41da3c
xor eax, eax
push str.ERROR:
push eax
call fcn.00409b50
add esp, 8
cmp ebx, edi
je 0x41da53
lea eax, [esi + 0x20]
jmp 0x41da55
xor eax, eax
push str.application_is_not_specified
push eax
call fcn.00409b50
add esp, 8
lea ecx, [ebp - 0x100]
mov dword [ebp - 4], 0xffffffff
call fcn.004073f0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x38
lea ecx, [ebp - 0x44]
push edi
push ecx
call fcn.00483200
mov edx, dword [ebp + 0xc]
add esp, 0xc
push esi
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], str.open
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], 5
mov dword [ebp - 0x34], edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41dacf
test al, 0x10
je 0x41db3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x2c0
lea eax, [ebp - 0x100]
push eax
mov ebx, str.env.cpp
call fcn.00407320
mov esi, eax
mov dword [ebp - 4], 1
call fcn.004210f0
mov esi, eax
cmp esi, edi
je 0x41da63
lea ebx, [esi + 0x10]
cmp ebx, edi
je 0x41db10
lea eax, [esi + 0x20]
jmp 0x41db12
xor eax, eax
push str.there_is_no_file_specified:
push eax
call fcn.00409b50
add esp, 8
cmp ebx, edi
je 0x41db30
mov ecx, dword [ebp + 8]
lea eax, [esi + 0x20]
push ecx
jmp 0x41da5a
mov ecx, dword [ebp + 8]
xor eax, eax
push ecx
jmp 0x41da5a
lea edx, [ebp - 0x48]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x41dbcf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x2c6
lea eax, [ebp - 0x1b8]
push eax
mov ebx, str.env.cpp
call fcn.00407320
mov ebx, eax
mov dword [ebp - 4], 2
cmp ebx, edi
je 0x41dbc4
lea esi, [ebx + 0x10]
cmp esi, edi
je 0x41db83
lea eax, [ebx + 0x20]
jmp 0x41db85
xor eax, eax
push str.ERROR:
push eax
call fcn.00409b50
add esp, 8
cmp esi, edi
je 0x41db9c
lea eax, [ebx + 0x20]
jmp 0x41db9e
xor eax, eax
push 0x4dee0c
push eax
call fcn.00409b50
add esp, 8
cmp esi, edi
je 0x41dbb5
lea eax, [ebx + 0x20]
jmp 0x41dbb7
xor eax, eax
mov ecx, dword [ebp + 8]
push ecx
push eax
call fcn.00409b50
add esp, 8
lea ecx, [ebp - 0x1b8]
jmp 0x41da69
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret