joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4021b0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x42a42c]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [ecx]
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ecx + 4]
push edi
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x1c]
push ecx
xor ebx, ebx
or esi, 0x2001f
push esi
push ebx
push edx
push eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x10]
mov edi, eax
cmp edi, ebx
jne 0x40222f
xor eax, eax
cmp ecx, ebx
je 0x402217
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
and esi, 0x300
mov edi, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
cmp eax, ebx
je 0x402253
cmp ecx, ebx
je 0x40223a
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.00410992
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebx
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
lea edx, [esp + 0x44]
push edx
push ebx
push ecx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
jne 0x4022ba
jmp 0x402280
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
call fcn.004021b0
mov edi, eax
cmp edi, ebx
jne 0x402309
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x44]
push eax
push ebx
push ecx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
je 0x402280
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4022cd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push edx
mov dword [esp + 0x18], ebx
call fcn.004016d0
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4022f0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.00410992
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x402318
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x234]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00410992
mov esp, ebp
pop ebp
ret 4

Function at 0x402820
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
jne 0x40283c
pop esi
pop ecx
ret
push edi
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x402180
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x402864
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x404910
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x41f930
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x42a42c]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov edi, dword [ebp + 0x414]
mov ebx, dword [ebp + 0x418]
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp], edx
push 2
push edx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x404992
call fcn.00401470
mov edi, eax
jmp 0x404a74
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4049ab
call fcn.00401470
jmp 0x404a6b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
jne 0x4049c6
call fcn.00401470
jmp 0x404a6b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x18], edi
cmp eax, edi
jae 0x4049fc
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x4049ea
lea ecx, [ebp]
call fcn.00401ff0
lea ecx, [ebp - 0x20]
call fcn.00401f90
mov eax, 0x8007000e
jmp 0x404a86
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.004032f0
mov dword [ebp - 4], 1
jmp 0x404a28
mov eax, dword [ebp]
test eax, eax
jne 0x404a36
mov edi, 0x8007000e
jmp 0x404a6d
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x404a4f
call fcn.00401470
jmp 0x404a6b
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x41c]
mov ecx, dword [ebp]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.004046a0
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x404a84
lea ecx, [ebp]
call fcn.00401ff0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.00410992
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0x10
Function at 0x405320
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call esi
push eax
lea ecx, [esp + 8]
call fcn.00405270
lea ecx, [esp + 4]
call fcn.004043c0
mov eax, dword [esp + 4]
cmp dword [eax - 0xc], 0
jl 0x40537c
push str.regserver
push eax
call fcn.00410b47
add esp, 8
test eax, eax
je 0x40537c
sub eax, dword [esp + 4]
sar eax, 1
js 0x40537c
push ecx
mov ecx, esp
mov dword [esp + 0xc], esp
push str.628F3201_34D0_49C0_BB9A_82A26AEFB291
call fcn.00405270
call fcn.00404d70
add esp, 4
cmp byte [0x42b7e0], 0
je 0x40538a
or esi, 0xffffffff
jmp 0x4053bf
mov dword [esp + 8], 0
call esi
lea ecx, [esp + 8]
push ecx
push eax
mov ecx, 0x42b830
call fcn.004050f0
cmp al, 1
jne 0x4053b9
mov edx, dword [esp + 0x1c]
push edx
mov ecx, 0x42b830
call fcn.004045f0
jmp 0x4053bd
mov eax, dword [esp + 8]
mov esi, eax
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4053df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
pop esi
add esp, 8
ret 0x10
Function at 0x408620
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x41fcf6
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
push ebx
push esi
push edi
mov eax, dword [0x42a42c]
xor eax, esp
push eax
lea eax, [esp + 0x12c]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push str.OutputFileName
mov dword [esp + 0x138], 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
test edi, edi
jne 0x40867f
push 0x8007000e
call fcn.00401180
mov eax, dword [ebx]
lea edx, [esp + 0x14]
push edx
push 0x400
push 1
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], edi
mov ecx, dword [eax]
push 0x422418
push eax
mov eax, dword [ecx + 0x14]
call eax
mov esi, eax
test esi, esi
jl 0x4086c0
mov edx, dword [esp + 0x14]
mov eax, dword [ebx]
lea ecx, [esp + 0x18]
push ecx
push edx
push eax
call fcn.00407480
add esp, 0xc
mov esi, eax
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test esi, esi
jl 0x408762
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x408788
xor esi, esi
mov dword [esp + 0x14], esi
push esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x138], 1
mov dword [esp + 0x14], 0
call fcn.004085a0
mov eax, dword [eax]
push 0x421e10
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00412686
mov edi, eax
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x38]
add esp, 0xc
cmp eax, edx
je 0x408727
push eax
call fcn.00410d3e
add esp, 4
test edi, edi
jne 0x40875b
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40875b
mov edi, dword [esp + 0x140]
push eax
mov eax, dword [esp + 0x140]
push 1
push edi
push eax
call fcn.0041253e
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00412360
add esp, 0x14
add dword [ebx + 8], edi
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x128
ret 8
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
jne 0x4086e1
push 0x8007000e
call fcn.00401180
int3
Function at 0x40acd0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
push esi
mov esi, dword [esp + 0x30]
test esi, esi
jne 0x40ace3
mov esi, 0xfffffffe
jmp 0x40ace5
jge 0x40acfb
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x18]
imul ecx, esi
neg ecx
mov esi, ecx
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x30]
push edx
push esi
call fcn.0040aa60
pop esi
add esp, 0x24
ret 8

Function at 0x40ad10
Capabilities:
Terminate thread

Disassembly:
push edi
mov edi, ecx
cmp dword [edi + 0x40], 0
je 0x40adad
lea eax, [edi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 8]
test eax, eax
jne 0x40ad32
mov eax, dword [edi + 0x30]
push ebx
push ebp
push esi
push eax
push 0
mov ecx, edi
call fcn.0040aa60
mov esi, dword [edi + 0xc]
sub esi, 1
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
js 0x40ad86
lea ecx, [ecx]
test esi, esi
jl 0x40adb1
cmp esi, dword [edi + 0xc]
jge 0x40adb1
mov eax, dword [edi + 8]
mov ebx, dword [eax + esi*4]
lea ecx, [esp + 0x14]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x14], 0x103
jne 0x40ad7e
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebx
call ebp
sub esi, 1
jns 0x40ad50
mov edx, dword [edi + 0x40]
push edx
call ebp
lea esi, [edi + 0x14]
push esi
mov dword [edi + 0x40], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [edi + 0x3c]
push eax
call ebp
pop esi
pop ebp
pop ebx
pop edi
ret 4
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
Function at 0x40d430
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420298
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x42a42c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
mov eax, dword [0x42b8d0]
mov edx, dword [eax + 0xc]
xor edi, edi
mov ecx, 0x42b8d0
mov dword [ebp - 4], edi
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
mov eax, dword [esi - 8]
add edi, 0x400
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x40d4a4
push edi
lea ecx, [ebp - 0x14]
call fcn.004026e0
mov esi, dword [ebp - 0x14]
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov ebx, eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004113ca
add esp, 8
test eax, eax
jl 0x40d50a
cmp eax, dword [esi - 8]
jg 0x40d50a
xor ecx, ecx
lea edx, [edi - 2]
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp ebx, edx
je 0x40d47c
lea eax, [esi - 0x10]
mov byte [ebp - 4], cl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d4f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
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
push 0x80070057
call fcn.00401180
mov eax, 0x40d4f4
ret

Function at 0x40d640
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
add eax, eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d6b6
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x40d685
cmp eax, 2
jne 0x40d6a1
mov eax, dword [esp + 0x14]
test esi, esi
je 0x40d6b0
test eax, eax
je 0x40d6ab
test al, 1
jne 0x40d6a1
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x40d6b0
pop edi
mov eax, 0xd
pop esi
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc
Function at 0x40da40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x420363
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42a42c]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov dword [esp + 0x18], ecx
mov edx, dword [ecx + 8]
xor ebx, ebx
xor eax, eax
xor ebp, ebp
cmp edx, ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], eax
jle 0x40dbd4
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x40da94
mov ecx, dword [esp + 0x18]
cmp eax, ebx
jl 0x40daa5
cmp eax, dword [ecx + 8]
jge 0x40daa5
mov ecx, dword [ecx + 4]
mov esi, dword [ecx + eax*4]
jmp 0x40daa7
xor esi, esi
mov dword [esp + 0x20], esi
cmp esi, ebx
je 0x40dabb
mov edx, dword [esi]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x6c], ebx
cmp esi, ebx
je 0x40dbad
push 0x407c70
push 0x4074e0
push 2
push 0x10
lea ecx, [esp + 0x54]
push ecx
call fcn.00411b61
lea edx, [esp + 0x54]
push edx
mov byte [esp + 0x70], 1
call edi
mov ebp, dword [esp + 0x74]
mov eax, 8
push ebp
mov word [esp + 0x58], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esp + 0x5c], eax
cmp eax, ebx
jne 0x40db10
cmp ebp, ebx
jne 0x40dbec
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x48]
mov ecx, 8
push eax
mov word [esp + 0x5c], cx
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
cmp eax, ebx
jl 0x40dc08
lea edx, [esp + 0x34]
mov ecx, 8
push edx
mov word [esp + 0x48], cx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x18]
push ebx
push ebx
lea eax, [esp + 0x4c]
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push eax
push 1
push 0x400
push 0x422418
push 1
push esi
mov byte [esp + 0x90], 2
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], 2
mov dword [esp + 0x54], ebx
call ecx
lea edx, [esp + 0x34]
push edx
mov ebp, eax
call edi
push 0x407c70
push 2
push 0x10
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x7c], bl
call fcn.00410ae4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x6c], 0xffffffff
cmp esi, ebx
je 0x40dbc5
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push esi
call edx
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
jl 0x40da90
mov eax, ebp
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0x14
mov eax, 0xa
push 0x8007000e
mov word [esp + 0x58], ax
mov dword [esp + 0x60], 0x8007000e
call fcn.00401180
mov ecx, 0xa
push eax
mov word [esp + 0x48], cx
mov dword [esp + 0x50], eax
call fcn.00401180
int3
Function at 0x410992
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a42c]
jne 0x41099c
repz ret
jmp fcn.00412d51

Function at 0x419f9d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004150a7
and dword [ebp - 4], 0
cmp dword [0x42c3e8], 0
mov ebx, eax
jne 0x41a04e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41a0ff
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41a0ff
push eax
call fcn.00415035
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42c3e8], eax
call esi
push eax
call fcn.00415035
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42c3ec], eax
call esi
push eax
call fcn.00415035
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42c3f0], eax
call esi
push eax
call fcn.00415035
pop ecx
mov dword [0x42c3f8], eax
test eax, eax
je 0x41a04e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00415035
pop ecx
mov dword [0x42c3f4], eax
mov eax, dword [0x42c3f4]
cmp eax, ebx
je 0x41a0a6
cmp dword [0x42c3f8], ebx
je 0x41a0a6
push eax
call fcn.004150b0
push dword [0x42c3f8]
mov esi, eax
call fcn.004150b0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41a0a6
test edi, edi
je 0x41a0a6
call esi
test eax, eax
je 0x41a09d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41a09d
test byte [ebp - 0xc], 1
jne 0x41a0a6
or dword [ebp + 0x10], 0x200000
jmp 0x41a0df
mov eax, dword [0x42c3ec]
cmp eax, ebx
je 0x41a0df
push eax
call fcn.004150b0
pop ecx
test eax, eax
je 0x41a0df
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41a0df
mov eax, dword [0x42c3f0]
cmp eax, ebx
je 0x41a0df
push eax
call fcn.004150b0
pop ecx
test eax, eax
je 0x41a0df
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42c3e8]
call fcn.004150b0
pop ecx
test eax, eax
je 0x41a0ff
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41a101
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x494380
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
push 0
mov dword [esp + 0x14], 1
call dword [sym.imp.USER32.dll_GetSysColor]
mov esi, dword [esp + 0x20]
mov edi, dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0
mov dword [esi + 8], eax
lea eax, [esi + 0x84]
push eax
push 0x18
push 0x32
mov dword [eax], 0x18
call edi
lea eax, [esi + 0x9c]
push 0
push eax
push 0x1c
push 0x36
mov dword [eax], 0x1c
call edi
lea eax, [esi + 0xb8]
push 0
push eax
push 8
push 0x3a
mov dword [eax], 8
call edi
lea eax, [esi + 0xc0]
push 0
push eax
push 8
push 0x34
mov dword [eax], 8
call edi
lea eax, [esi + 0xc8]
push 0
push eax
push 0x30
push 0x40
mov dword [eax], 0x30
call edi
lea eax, [esi + 0xf8]
push 0
push eax
push 0xc
push 0x3c
mov dword [eax], 0xc
call edi
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x46
call ebx
mov dword [esi + 0x104], eax
lea eax, [esi + 0x108]
push 0
push eax
push 0
push 0x44
call edi
push 0x17
call ebx
lea ecx, [esi + 0x110]
push 0
push ecx
push 0
push 0x5e
mov dword [esi + 0x10c], eax
call edi
lea edx, [esi + 0x114]
push 0
push edx
push 0
push 0x70
call edi
lea eax, [esi + 0x178]
push 0
push eax
push 0
push 0x2006
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push 0
push str.Control_PanelAppearanceNew_Schemes
push SysFreeString
mov dword [esi + 0x11c], 0
call ebx
test eax, eax
jne 0x494556
lea edx, [esp + 0x10]
lea edi, [esi + 0x1188]
push edx
push edi
push eax
mov word [edi], ax
push eax
mov eax, dword [esp + 0x24]
push str.SelectedStyle
push eax
mov dword [esp + 0x28], 0x28
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x49454b
cmp dword [esp + 0x10], 2
jbe 0x49454b
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push 0
push edi
push edx
call ebx
test eax, eax
jne 0x49454b
mov edx, dword [esp + 0x18]
mov word [esp + 0xe], ax
lea eax, [esp + 0x10]
lea ecx, [esp + 0xe]
push eax
push ecx
push 0
push 0
push str.SelectedSize
push edx
mov dword [esp + 0x28], 0x28
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp word [esp + 0xe], 0
je 0x494537
cmp dword [esp + 0x10], 2
jbe 0x494537
mov eax, 0xfffffffe
jmp 0x49453a
or eax, 0xffffffff
mov dword [esi + 0x11b0], eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x4032a0
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x405076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x405258], eax
mov dword [0x4051e0], 0x402b80
mov dword [0x4051dc], 2
jmp 0x4032d0
mov dword [0x4051e4], 0
mov dword [0x4051e8], 0
mov dword [0x4051d8], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4051ec], eax
mov dword [0x405200], 0x404080
mov dword [0x4051f8], 0xf
mov dword [0x40506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4051f0], eax
mov dword [0x405204], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4051f4], eax
push 0x4051d8
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x40506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405250], eax
push 5
push dword [0x405250]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x405250]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x4033a3
push 0
push 0
push 0
push 0x405208
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x4033d0
push 0x405208
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x405208
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x4033a3
mov eax, dword [0x405210]
jmp 0x4033dd
call 0x402474
ret

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret