joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43cbdc
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x454208]
cmp byte [eax + 0xc], 0
je 0x43cd49
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43cd42
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x455b64], 0
jne 0x43cc30
push 0x43cd50
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43cd58
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455b64], eax
cmp dword [0x453be0], 0
jne 0x43cd2b
push 0x43cd68
call sub.kernel32.dll_LoadLibraryA
mov dword [0x453be0], eax
cmp dword [0x453be0], 0
je 0x43cd2b
push 0x43cd74
mov eax, dword [0x453be0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455b68], eax
push 0x43cd84
mov eax, dword [0x453be0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455b6c], eax
push 0x43cd98
mov eax, dword [0x453be0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455b70], eax
push 0x43cdb0
mov eax, dword [0x453be0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455b74], eax
push 0x43cdc8
mov eax, dword [0x453be0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455b78], eax
push 0x43cddc
mov eax, dword [0x453be0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455b7c], eax
push 0x43cdf4
mov eax, dword [0x453be0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455b80], eax
push 0x43ce0c
mov eax, dword [0x453be0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455b84], eax
push 0x43ce28
mov eax, dword [0x453be0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455b88], eax
push 0x43ce34
mov eax, dword [0x453be0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x455b8c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43cd49
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x440bd4
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00403e10
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x440c23
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404080
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x448360
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4483b0]
test si, 4
je 0x448374
or bl, 1
test si, 8
je 0x44837e
or bl, 4
test si, 1
je 0x448388
or bl, 8
test si, 2
je 0x448392
or bl, 0x10
test si, 0x10
je 0x44839c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4483ab
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4483b4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4483ec]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4483cd
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4483dc
or bl, 4
test esi, 0x20000000
je 0x4483e7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44ea94
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44eaa6
add esp, 0xfffffff0
call fcn.004033e4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041916c
mov eax, dword [0x453ee0]
mov dword [eax + 4], ebx
mov dword [eax], 0x44ee38
mov eax, dword [0x453eec]
mov dword [eax + 4], ebx
mov dword [eax], 0x44ee44
mov eax, ebx
call fcn.0044ee50
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411464]
call fcn.004030a8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411464]
call fcn.004030a8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411464]
call fcn.004030a8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411464]
call fcn.004030a8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411464]
call fcn.004030a8
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44b26c
push eax
push 0
push 0
mov eax, dword [0x45402c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41ab98]
call fcn.0041bfdc
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41ab98]
call fcn.0041bfdc
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41ab98]
call fcn.0041bfdc
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044f270
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44f14c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44f14c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44f14c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44ebe3
call fcn.0040343c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44ef30
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44f0db
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44f0bc
mov dl, 1
mov eax, dword [0x411880]
call fcn.004030a8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403e10
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44f0ab
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043cf3c
test al, al
je 0x44f09e
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44f0ec
lea eax, [ebp - 0x254]
call fcn.00408954
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44f09e
xor eax, eax
push ebp
push 0x44f097
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44f124
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44f080
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404080
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44f080
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404080
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44f09e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44efa1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041535c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44f0e2
lea eax, [ebp - 0x260]
call fcn.00403e10
ret

Function at 0x44fa10
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x455bb0]
cmp byte [eax + 0xa5], 0
jne 0x44fa81
cmp dword [0x455bc8], 0
jne 0x44fa42
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44f9cc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x455bc8], eax
cmp dword [0x455bc4], 0
jne 0x44fa5d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x455bc4], eax
cmp dword [0x455bcc], 0
jne 0x44fa81
push esp
push 0
push 0
push 0x44f970
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x455bcc], eax
pop edx
ret
Function at 0x44fb78
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44fb8f
add esp, 0xfffffff0
call fcn.004033e4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041916c
mov eax, dword [0x454018]
cmp word [eax + 2], 0
jne 0x44fbb7
mov eax, dword [0x454018]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00451250
mov eax, dword [0x4540c0]
cmp word [eax + 2], 0
jne 0x44fbd1
mov eax, dword [0x4540c0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00451448
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411464]
call fcn.004030a8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411464]
call fcn.004030a8
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41b348]
call fcn.00420f90
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44fd58
mov eax, dword [0x453f40]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00421360
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4519e8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x453f40]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c008
test eax, eax
je 0x44fcc6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408334
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c030
test eax, eax
je 0x44fcda
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404080
mov eax, dword [0x453e44]
cmp byte [eax], 0
jne 0x44fd0e
mov eax, ebx
call fcn.0044fe80
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00451bc4
mov eax, ebx
call fcn.00452588
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44fd4e
call fcn.0040343c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x450100
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x455bb0]
cmp dword [eax + 0x30], 0
je 0x4501aa
cmp dword [ebx + 0x94], 0
jne 0x4501a4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x450090
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4501a4
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 0x45016a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4501a4
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.004137cc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x450179
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x450d0c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x450d41
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.00403f00
jmp 0x450d4e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403e64
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x451da0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x451de1
mov eax, esi
call fcn.00438568
test al, al
je 0x451de1
mov eax, dword [ebx + 0x84]
call fcn.00438264
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x451de1
push 0
mov eax, dword [ebx + 0x84]
call fcn.00438264
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x401000
Capabilities:
Check os version
Shutdown system

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xa8
mov dword [0x406830], eax
push esi
push edi
push 0
push 0x401100
push 0
push 0x65
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
test eax, eax
je 0x4010f3
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x24
push 0x406080
push 0x406050
push 0
call esi
cmp eax, 6
jne 0x4010f3
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edi, 2
cmp dword [esp + 0x2c], edi
jne 0x4010ea
lea ecx, [esp + 8]
push ecx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4010cd
lea edx, [esp + 0x10]
push edx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push 0
push 0
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push 0
push eax
push 0
push ecx
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4010ea
push 0
push 0x406834
push 0x406030
push 0
call esi
pop edi
xor eax, eax
pop esi
add esp, 0xa8
ret 0x10
push 0
push edi
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop edi
xor eax, eax
pop esi
add esp, 0xa8
ret 0x10

Function at 0x401280
Capabilities:
Set registry value

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
mov dword [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
push eax
push str.CLSID374D56F7_D077_4189_B04C_628913046E55
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4012c1
xor eax, eax
pop edi
add esp, 0x54
ret
mov edi, 0x4060cc
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
push 0x406834
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop esi
je 0x401325
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
add esp, 0x54
ret
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
add esp, 0x54
ret
Function at 0x401340
Capabilities:
Set registry value

Disassembly:
sub esp, 0x158
push edi
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
mov byte [esp + 0x58], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x59]
mov dword [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x58]
push eax
call fcn.004016a0
add esp, 4
test eax, eax
jne 0x401392
pop edi
add esp, 0x158
ret
lea ecx, [esp + 0x58]
push str.VCvtShell.dll
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 4]
push edx
push str.CLSID374D56F7_D077_4189_B04C_628913046E55InProcServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4013c5
xor eax, eax
pop edi
add esp, 0x158
ret
lea edi, [esp + 0x58]
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
not ecx
lea eax, [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push 1
push 0
push 0x406834
push ecx
call ebp
mov edi, str.Apartment
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x14]
push ecx
push 1
push eax
push str.ThreadingModel
push edx
call ebp
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop esi
pop ebp
sete al
pop edi
add esp, 0x158
ret

Function at 0x401460
Capabilities:
Set registry value

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
mov dword [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
push eax
push 0x4061ac
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4014a1
xor eax, eax
pop edi
add esp, 0x54
ret
mov edi, str.374D56F7_D077_4189_B04C_628913046E55
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
push 0x406834
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop esi
je 0x401505
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
add esp, 0x54
ret
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
add esp, 0x54
ret
Function at 0x401520
Capabilities:
Set registry value

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
mov dword [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
push eax
push str.ShellexContextMenuHandlers_
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x401561
xor eax, eax
pop edi
add esp, 0x54
ret
mov edi, str.374D56F7_D077_4189_B04C_628913046E55
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
push 0x406834
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop esi
je 0x4015c5
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
add esp, 0x54
ret
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
add esp, 0x54
ret

Function at 0x4015e0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
mov dword [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
push eax
push 0x406200
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x401621
xor eax, eax
pop edi
add esp, 0x54
ret
mov edi, str.374D56F7_D077_4189_B04C_628913046E55
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
push 0x406834
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop esi
je 0x401685
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
add esp, 0x54
ret
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
add esp, 0x54
ret
Function at 0x4016a0
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x104
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 8]
push ecx
call esi
mov cl, byte [esp + eax + 7]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp cl, 0x5c
je 0x4016f5
lea edx, [esp + 8]
push 0x406248
push edx
call edi
lea eax, [esp + 8]
push str.sthvcd8.ini
push eax
call edi
mov edx, dword [esp + 0x110]
lea ecx, [esp + 8]
push ecx
push 0x104
push edx
push 0x406834
push str.INSTALLPATH
push str.INSTALL
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 8]
push eax
call esi
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
add esp, 0x104
ret

Function at 0x401740
Capabilities:
Set registry value

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
mov dword [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
push eax
push str.CLSID374D56F7_D077_4189_B04C_628913046E55
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x401781
xor eax, eax
pop edi
add esp, 0x54
ret
mov edi, 0x406834
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
push 0x406834
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop esi
je 0x4017e5
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
add esp, 0x54
ret
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
add esp, 0x54
ret