joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450dfc
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 0x450fa7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x450f88
mov dl, 1
mov eax, dword [0x411ed0]
call fcn.00403774
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404510
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x450f77
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.0043ea20
test al, al
je 0x450f6a
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, 0x450fb8
lea eax, [ebp - 0x254]
call fcn.004092fc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x450f6a
xor eax, eax
push ebp
push 0x450f63
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 0x450ff0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x450f4c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404778
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 0x450f4c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404778
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450f6a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x450e6d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00416018
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 0x450fae
lea eax, [ebp - 0x260]
call fcn.00404510
ret

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

Disassembly:
push ecx
mov eax, dword [0x457c28]
cmp byte [eax + 0xa5], 0
jne 0x45194d
cmp dword [0x457c40], 0
jne 0x45190e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x451898
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x457c40], eax
cmp dword [0x457c3c], 0
jne 0x451929
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x457c3c], eax
cmp dword [0x457c44], 0
jne 0x45194d
push esp
push 0
push 0
push 0x45183c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x457c44], eax
pop edx
ret
Function at 0x451a44
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x451a5b
add esp, 0xfffffff0
call fcn.00403b08
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041b980
mov eax, dword [0x455e6c]
cmp word [eax + 2], 0
jne 0x451a83
mov eax, dword [0x455e6c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00453078
mov eax, dword [0x455ef4]
cmp word [eax + 2], 0
jne 0x451a9d
mov eax, dword [0x455ef4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00453270
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4119e0]
call fcn.00403774
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4119e0]
call fcn.00403774
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], 0x80000018
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 [0x41ddc8]
call fcn.004250d0
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x451c24
mov eax, dword [0x455db0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004254a0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4537e0
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x455db0]
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.0040ac14
test eax, eax
je 0x451b92
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408c58
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040ac3c
test eax, eax
je 0x451ba6
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.00404778
mov eax, dword [0x455ccc]
cmp byte [eax], 0
jne 0x451bda
mov eax, ebx
call fcn.00451d4c
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.004539bc
mov eax, ebx
call fcn.004542fc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x451c1a
call fcn.00403b60
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x451fc0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x457c28]
cmp dword [eax + 0x30], 0
je 0x45206a
cmp dword [ebx + 0x94], 0
jne 0x452064
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x451f50
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x452064
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 0x45202a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x452064
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.00414080
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x452039
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x452b48
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 0x452b7d
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.00404600
jmp 0x452b8a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404564
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x453b98
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x453bd9
mov eax, esi
call fcn.0043a19c
test al, al
je 0x453bd9
mov eax, dword [ebx + 0x84]
call fcn.00439e98
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x453bd9
push 0
mov eax, dword [ebx + 0x84]
call fcn.00439e98
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x430072
mov ebx, 0x408f6c
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x74c175b9
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e3d0
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x1fc31dbd
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x406418
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x40643c
xor eax, eax
test eax, eax
je 0x40644f
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40644f
xor ecx, ecx
jmp 0x406452
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406539
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x45fd8c], 0
push esi
jne 0x406570
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40654a
mov dword [ecx*4 + 0x45fd88], eax
inc ecx
cmp ecx, 0x100
jl 0x406545
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4065a1
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x45fd88]
xor eax, esi
inc ecx
dec edx
jne 0x406583
pop edi
not eax
pop esi
ret 0xc
Function at 0x4019ad
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
push 0xffffffffffffffeb
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x401a0e
mov ecx, dword [eax + 0x1b4]
mov edi, dword [eax + 0x1b8]
mov eax, dword [eax + 0x1bc]
mov dword [ebp - 4], eax
test ecx, ecx
je 0x4019ec
push 0
push ecx
call ebx
mov eax, dword [ebp - 4]
test eax, eax
je 0x4019f5
push 0
push eax
call ebx
test edi, edi
je 0x401a0e
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x418838
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp dword [esi], 0
jne 0x401a25
mov ecx, esi
call fcn.004017ab
push 5
mov ecx, esi
call fcn.00401744
jmp 0x401a2e
push 5
push dword [esi]
call ebx
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401c37
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, ecx
mov dword [ebp - 4], eax
test eax, eax
jne 0x401c46
leave
ret
push ebx
push esi
mov esi, eax
push edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x401c4e
sub esi, ecx
inc esi
push esi
call fcn.0040b195
push esi
xor ebx, ebx
mov edi, eax
push ebx
push edi
call fcn.0040e740
push dword [ebp - 4]
push esi
push edi
call fcn.0040b227
add esp, 0x1c
cmp byte [edi], bl
je 0x401c85
xor byte [edi], 0x48
inc edi
inc ebx
cmp byte [edi], 0
jne 0x401c7b
sub edi, ebx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402379
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x41edd4]
sub esp, 0x208
cmp dword [eax + 0x24], 0
push esi
mov esi, ecx
je 0x402423
cmp dword [esi + 8], 0
je 0x4023a8
push 0x418a6c
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4023b4
call fcn.00409598
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push eax
call fcn.0040e740
add esp, 0xc
call fcn.00402fb6
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
call fcn.004030a5
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push eax
lea eax, [ebp - 0x208]
push eax
call esi
push str.__autorun
lea eax, [ebp - 0x208]
push eax
call esi
lea eax, [ebp - 0x208]
push eax
push str.ErgeInfo
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call fcn.00404bd2
pop esi
leave
ret
Function at 0x4027fa
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20c
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov word [esp + 0x14], ax
xor ebx, ebx
lea eax, [esp + 0x16]
push ebx
push eax
mov edi, ecx
call fcn.0040e740
add esp, 0xc
lea eax, [esp + 0x10]
push ebx
push 0x23
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x418d78
lea eax, [esp + 0x14]
push eax
call esi
mov ecx, dword [0x41edd4]
call fcn.004031fc
push eax
lea eax, [esp + 0x14]
push eax
call esi
push 0x418d7c
lea eax, [esp + 0x14]
push eax
call esi
push dword [edi + 8]
push dword [edi + 4]
call fcn.00402fb6
mov ecx, dword [0x41eddc]
push eax
call fcn.00409634
push dword [edi + 8]
push dword [edi + 4]
call fcn.00402f5d
mov ecx, dword [0x41eddc]
push eax
call fcn.00409634
push dword [edi + 8]
mov ecx, dword [0x41eddc]
push dword [edi + 4]
lea eax, [esp + 0x18]
push eax
call fcn.00409634
push ebx
call fcn.00402fb6
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call esi
push ebx
call fcn.00402f5d
push eax
call esi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4028e1
lea ecx, [esp + 0x10]
call fcn.0040a0a6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402c92
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
push eax
push eax
push ecx
push 0x402a4a
push eax
push eax
mov dword [ecx], esi
call fcn.0040b353
add esp, 0x18
mov edi, eax
test esi, esi
jne 0x402ce7
test edi, edi
je 0x402ce7
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x402ce7
cmp dword [ebp + 8], esi
jne 0x402ce7
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
inc eax
jmp 0x402ce9
xor eax, eax
pop edi
pop esi
pop ebp
ret 4

Function at 0x402f5d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [0x41edd4]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x402fb0
push ebx
push esi
push eax
push 2
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ebx, 0x418d78
push ebx
push dword [edi + 4]
call esi
mov ecx, edi
call fcn.004031d9
push eax
push dword [edi + 4]
call esi
push ebx
push dword [edi + 4]
call esi
pop esi
pop ebx
mov eax, dword [edi + 4]
pop edi
leave
ret
Function at 0x402fb6
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
push esi
push edi
mov edi, dword [0x41edd4]
xor ebx, ebx
mov edx, dword [edi]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x402fce
sub ecx, esi
sar ecx, 1
je 0x402fe6
mov eax, edx
jmp 0x4030a0
push edx
push str.InstallPath
push str.SOFTWAREErgeInfo
push ecx
call fcn.00404c35
test al, al
jne 0x40309e
cmp dword [edi + 0x4c], ebx
jne 0x403039
push ebx
push 0x26
push dword [edi]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ebx, 0x418d78
push ebx
push dword [edi]
call esi
mov ecx, edi
call fcn.004031fc
push eax
push dword [edi]
call esi
push ebx
push dword [edi]
call esi
jmp 0x40309e
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
xor eax, eax
push 0x62
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push ebx
push eax
call fcn.0040e740
movzx eax, word [ebp - 0xc]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x12]
push eax
movzx eax, word [ebp - 0x14]
push eax
push 0x41871c
lea eax, [ebp - 0x78]
push str._s_d_d_d_d_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x28
push ebx
push 0x23
push dword [edi]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x78]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [edi]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403d83
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x208
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c0]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp dword [esi], 1
jne 0x403dc5
mov eax, dword [edi + 0x194]
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [edi + 0x198]
call fcn.00403722
jmp 0x403ed0
cmp dword [esi], 2
jne 0x403dea
mov eax, dword [edi + 0x198]
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [edi + 0x19c]
call fcn.004054a8
jmp 0x403ed0
cmp dword [esi], 3
jne 0x403e0f
mov eax, dword [edi + 0x19c]
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [edi + 0x1a0]
call fcn.00405dc0
jmp 0x403ed0
cmp dword [esi], 4
jne 0x403e34
mov eax, dword [edi + 0x1a0]
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [edi + 0x1ac]
call fcn.004045c0
jmp 0x403ed0
cmp dword [esi], 5
jne 0x403e56
mov eax, dword [edi + 0x1ac]
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [edi + 0x1b0]
call fcn.004019ad
jmp 0x403ed0
cmp dword [esi], 6
jne 0x403ed0
mov eax, dword [edi + 0x1b0]
xor esi, esi
cmp dword [eax + 8], esi
je 0x403e7a
push esi
push esi
push 0xf0
push dword [eax + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x403e7c
mov eax, esi
test eax, eax
je 0x403ec9
xor eax, eax
push 0x206
mov word [esp + 0xc], ax
lea eax, [esp + 0xe]
push esi
push eax
call fcn.0040e740
add esp, 0xc
call fcn.00402fb6
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
call fcn.004030a5
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ecx
push ecx
lea eax, [esp + 0x10]
push eax
push ecx
call fcn.004095c5
push esi
call dword [sym.imp.USER32.dll_PostQuitMessage]
xor eax, eax
pop edi
inc eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4045c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
push 0xffffffffffffffeb
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, eax
je 0x404611
mov edx, dword [eax + 0x1b4]
mov ecx, dword [eax + 0x1b8]
mov ebx, dword [eax + 0x1bc]
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 4], ecx
test edx, edx
je 0x4045ff
push 0
push edx
call edi
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x404608
push 0
push ecx
call edi
test ebx, ebx
je 0x404611
push 0
push ebx
call edi
cmp dword [esi], 0
jne 0x404644
mov ecx, esi
call fcn.004043f1
push 5
mov ecx, esi
call fcn.0040434d
test eax, eax
je 0x404640
push 0x40456e
push 0
push 0x40a
push dword [esi]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x404662
xor eax, eax
jmp 0x404665
push 0x40456e
push 0
push 0x40a
push dword [esi]
call dword [sym.imp.USER32.dll_SetTimer]
push 5
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404b79
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 8]
push eax
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x404bcb
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
xor edx, edx
inc edx
movzx ebx, bl
test eax, eax
cmove ebx, edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret 0x10

Function at 0x404bd2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 8]
push eax
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x404c2e
push esi
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push dword [ebp + 0x14]
xor esi, esi
inc esi
push esi
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
movzx ebx, bl
test eax, eax
cmove ebx, esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
leave
ret 0x10

Function at 0x404c35
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 8], 0x104
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404c8c
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
xor edx, edx
inc edx
movzx ebx, bl
test eax, eax
cmove ebx, edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret 0x10