joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4046b0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x4048aa
cmp dword [edi + 0x18], 0
je 0x4048aa
mov esi, dword [edi + 0x54]
test esi, esi
je 0x404712
mov eax, dword [esi]
test eax, eax
je 0x4046e6
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
cmp dword [esi + 0x40], 0
mov dword [esi], 0
je 0x4046fa
lea ecx, [esi + 4]
call fcn.004038f0
push esi
mov dword [esi + 0x40], 0
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov dword [edi + 0x54], 0
lea eax, [ebp - 8]
mov ecx, edi
push eax
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 0xc]
call fcn.00404490
add esp, 8
test eax, eax
je 0x404737
mov eax, 0xffffff99
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x84
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x40477c
push 0x4000
call dword [sym.imp.msvcrt.dll_malloc]
mov ecx, dword [ebp - 4]
add esp, 4
mov dword [esi + 0x44], ecx
mov ecx, dword [ebp - 8]
mov dword [esi], eax
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], 0
test eax, eax
jne 0x404788
push esi
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov eax, 0xffffff98
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x34]
movzx ecx, word [edi + 0x2e]
mov dword [esi + 0x54], eax
mov eax, ecx
mov dword [esi + 0x64], eax
mov eax, dword [edi]
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0x40], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x68], eax
mov dword [esi + 0x18], 0
test cx, cx
je 0x4047e4
lea ecx, [esi + 4]
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
call fcn.004039c0
test eax, eax
jne 0x4047e4
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x38]
mov cl, byte [edi + 0x2c]
mov dword [esi + 0x58], eax
and cl, 1
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x5c], eax
mov al, byte [edi + 0x2c]
shr al, 3
mov byte [esi + 0x6c], cl
test al, 1
je 0x404808
mov al, byte [edi + 0x31]
jmp 0x40480b
mov al, byte [edi + 0x37]
mov byte [esi + 0x80], al
mov edx, 0xc
xor eax, eax
mov dword [esi + 0x70], 0x12345678
test cl, cl
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
cmovne eax, edx
mov dword [esi + 0x7c], eax
test ebx, ebx
je 0x40488b
nop dword [eax]
mov al, byte [ebx]
test al, al
je 0x40488b
mov ecx, dword [esi + 0x70]
movsx eax, al
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x40ec00]
movzx eax, cl
add eax, dword [esi + 0x74]
imul eax, eax, 0x8088405
mov dword [esi + 0x70], ecx
mov ecx, dword [esi + 0x78]
inc eax
mov dword [esi + 0x74], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x40ec00]
mov dword [esi + 0x78], ecx
add ebx, 1
jne 0x404840
mov eax, dword [ebp - 0xc]
add eax, 0x1e
mov dword [esi + 8], 0
add eax, dword [edi + 0x50]
mov dword [esi + 0x3c], eax
xor eax, eax
mov dword [edi + 0x54], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xffffff9a
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4052a0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x412004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
test esi, esi
je 0x4052d2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4052d2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x4053bc
push edi
mov edi, ebx
mov ecx, ebx
mov edx, eax
cmp dx, 0x2f
je 0x4052f1
cmp dx, 0x5c
jne 0x4052f3
mov edi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x4052e5
cmp edi, ebx
je 0x40533e
sub edi, ebx
lea eax, [ebp - 0x414]
and edi, 0xfffffffe
push edi
push ebx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp edi, 0x208
jae 0x4053cc
xor eax, eax
lea edx, [ebp - 0x414]
mov ecx, esi
mov word [ebp + edi - 0x414], ax
call fcn.004052a0
xor eax, eax
mov word [ebp - 0x20c], ax
test esi, esi
je 0x405363
lea ecx, [ebp - 0x20c]
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x405353
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x405365
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x405380
mov ecx, ebx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
jne 0x4053bc
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00405955
mov esp, ebp
pop ebp
ret
call fcn.00405a8a
int3
Function at 0x4057e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40cc37
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x412004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x44c
call fcn.00405b65
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
push 0x44c
push 0
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [esi], 0
lea edi, [esi + 0x244]
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x238], 0xffffffff
mov dword [esi + 0x23c], 0
push edi
push 0x104
mov dword [esi + 0x240], 0
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405873
sub ecx, edx
sar ecx, 1
movzx eax, word [esi + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x4058b3
cmp eax, 0x2f
je 0x4058b3
add edi, 0xfffffffe
nop word [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4058a0
mov eax, dword [0x40eba8]
mov dword [edi], eax
mov ecx, ebx
call fcn.00403fb0
mov dword [esi], eax
test eax, eax
jne 0x405926
mov eax, dword [esi + 0x23c]
mov dword [0x19e24fc], 0x200
test eax, eax
je 0x4058dd
push eax
call fcn.00405963
add esp, 4
mov eax, dword [esi + 0x240]
mov dword [esi + 0x23c], 0
test eax, eax
je 0x4058fa
push eax
call fcn.00405963
add esp, 4
push 0x44c
push esi
mov dword [esi + 0x240], 0
call fcn.00405b95
add esp, 8
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
push 8
mov dword [0x19e24fc], 0
call fcn.00405b65
add esp, 4
mov dword [eax], 1
mov dword [eax + 4], 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 0x4063d3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x406412
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x406412
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406412
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x406412
cmp dword [ecx + 0x74], 0xe
jbe 0x406412
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x406850
Capabilities:
Get process heap force flags

Disassembly:
push esi
call dword [sym.imp.msvcrt.dll__errno]
lea esi, [eax - 8]
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x406873
test eax, eax
je 0x406873
push 0x10
xor esi, esi
call dword [sym.imp.msvcrt.dll__amsg_exit]
add esp, 4
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
cmp ecx, 0x50001
jae 0x406898
lea eax, [esi + 0x74]
pop esi
ret
lea eax, [esi + 0x78]
cmp ecx, 0x60000
jb 0x4068a9
lea eax, [esi + 0x88]
pop esi
ret
Function at 0x4068b0
Capabilities:
Get process heap force flags

Disassembly:
push esi
call dword [sym.imp.msvcrt.dll__errno]
lea esi, [eax - 8]
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x4068d3
test eax, eax
je 0x4068d3
push 0x10
xor esi, esi
call dword [sym.imp.msvcrt.dll__amsg_exit]
add esp, 4
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
lea eax, [esi + 0x7c]
cmp ecx, 0x60000
jb 0x4068fc
lea eax, [esi + 0x8c]
pop esi
ret

Function at 0x408470
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4084cc
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4084cc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4084cc
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4084cc
cmp dword [ecx + 0x74], 0xe
jbe 0x4084cc
cmp dword [ecx + 0xe8], 0
je 0x4084cc
push dword [ebp + 8]
call fcn.004088b0
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x412438
call fcn.00408680
add esp, 8
cmp dword [ebp - 8], 0
jne 0x408501
push dword [ebp + 8]
call fcn.00408870
mov esp, ebp
pop ebp
ret

Function at 0x408510
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 2
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40856c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40856c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40856c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40856c
cmp dword [ecx + 0x74], 0xe
jbe 0x40856c
cmp dword [ecx + 0xe8], 0
je 0x40856c
push dword [ebp + 8]
call fcn.004088b0
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x412438
call fcn.00408680
add esp, 8
cmp dword [ebp - 8], 0
jne 0x4085a1
push dword [ebp + 8]
call fcn.00408870
mov esp, ebp
pop ebp
ret

Function at 0x408870
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.004088a0
mov esi, dword [ebp + 8]
test al, al
je 0x40888e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.004088b0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x408980
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
cmp ecx, 0x60000
jae 0x4089aa
mov eax, 2
pop ebp
ret
push esi
call sub.msvcrt.dll__errno
lea esi, [eax - 8]
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x4089cc
test eax, eax
je 0x4089cc
push 0x10
xor esi, esi
call dword [sym.imp.msvcrt.dll__amsg_exit]
add esp, 4
mov ecx, dword [esi + 0x70]
mov eax, ecx
and al, 2
movzx edx, al
mov eax, dword [ebp + 8]
neg edx
sbb edx, edx
inc eax
cmp eax, 3
ja case.default.0x4089e3
jmp dword [eax*4 + 0x408a18]
or ecx, 2
lea eax, [edx + 2]
mov dword [esi + 0x70], ecx
pop esi
pop ebp
ret
and ecx, 0xfffffffd
mov dword [esi + 0x70], ecx
lea eax, [edx + 2]
pop esi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
call fcn.00409060
or eax, 0xffffffff
pop esi
pop ebp
ret

Function at 0x409090
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x412004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x4090b7
mov ecx, 5
int 0x29
push 2
call fcn.00406477
push 0x50
lea eax, [ebp - 0x320]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x2cc
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x320]
add esp, 0x1c
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], 0x10001
mov eax, dword [eax - 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x320], 0xc0000417
mov dword [ebp - 0x31c], 1
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x4091c2
test esi, esi
jne 0x4091c2
push 2
call fcn.00406477
add esp, 4
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00405955
mov esp, ebp
pop ebp
ret
Function at 0x40c880
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40c8ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40c8ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401510
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov edi, dword [section..bss]
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
test edi, edi
je 0x401595
mov eax, ebx
mov dword [esp + 8], 6
shr eax, 4
mov dword [esp], edi
add eax, 1
movzx eax, ax
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
sub esp, 0xc
test eax, eax
je 0x401595
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
sub esp, 8
test eax, eax
je 0x401595
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
sub esp, 4
test eax, eax
je 0x401595
mov edi, ebx
and edi, 0xf
je 0x40158e
xor edx, edx
lea esi, [esi]
movzx ecx, word [eax]
add edx, 1
lea eax, [eax + ecx*2 + 2]
cmp edi, edx
jne 0x401580
movzx eax, word [eax]
test eax, eax
jne 0x4015a8
mov dword [esi], 0
xor eax, eax
add esp, 0x10
pop ebx
pop esi
pop edi
ret
lea edi, [eax + 1]
mov dword [esp + 4], 0
lea eax, [edi + edi]
mov dword [esp + 8], eax
mov eax, dword [0x413008]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi], eax
sub esp, 0xc
test eax, eax
je 0x401595
mov dword [esp + 8], eax
mov eax, dword [section..bss]
mov dword [esp + 0xc], edi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_LoadStringW]
sub esp, 0x10
test eax, eax
jg 0x40159d
mov eax, dword [esi]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [0x413008]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
sub esp, 0xc
jmp 0x401595

Function at 0x405730
Capabilities:
Get graphical window text

Disassembly:
push esi
push ebx
sub esp, 0x14
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov dword [esp + 4], 0x87
mov dword [esp], ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
sub esp, 8
test eax, eax
je 0x4057c0
mov dword [esp + 8], 0x1d
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
sub esp, 0xc
test eax, eax
jle 0x405790
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
sub esp, 4
test eax, eax
jle 0x405790
add esp, 0x14
mov eax, 1
pop ebx
pop esi
ret
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xf0
mov dword [esp + 4], 0xf9
mov dword [esp], ebx
call fcn.00401620
xor eax, eax
add esp, 0x14
pop ebx
pop esi
ret
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], 0x3c
mov dword [esp + 4], 0xf3
mov dword [esp], ebx
call fcn.00401620
xor eax, eax
jmp 0x4057b2
Function at 0x4057f0
Capabilities:
Get graphical window text

Disassembly:
push esi
push ebx
sub esp, 0x14
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov dword [esp + 4], 0x88
mov dword [esp], ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
sub esp, 8
test eax, eax
je 0x405880
mov dword [esp + 8], 0xe
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
sub esp, 0xc
test eax, eax
jle 0x405850
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
sub esp, 4
test eax, eax
jle 0x405850
add esp, 0x14
mov eax, 1
pop ebx
pop esi
ret
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xf0
mov dword [esp + 4], 0xfa
mov dword [esp], ebx
call fcn.00401620
xor eax, eax
add esp, 0x14
pop ebx
pop esi
ret
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], 0x3c
mov dword [esp + 4], 0xf3
mov dword [esp], ebx
call fcn.00401620
xor eax, eax
jmp 0x405872

Function at 0x4063a0
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, eax
sub esp, 0x38
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.Control_PanelAppearanceClassicSchemes
mov dword [esp], 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
je 0x4063e0
add esp, 0x38
pop ebx
ret
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
sub esp, 4
lea eax, [eax + eax + 2]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.SelectedScheme
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub esp, 0x18
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esp, 4
add esp, 0x38
pop ebx
ret
Function at 0x406530
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xec
mov esi, dword [esp + 0x100]
lea ebx, [esp + 0x56]
mov eax, dword [esi + 8]
mov dword [esp + 8], str.Control_PanelAppearanceClassicSchemes
mov dword [esp + 4], str._s_s
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call dword [sym.imp.USER32.dll_wsprintfW]
cmp eax, 0x28
jg 0x406580
mov ebx, dword [esi + 4]
add esp, 0xec
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
jne 0x40656a
lea eax, [esp + 0x34]
lea edi, [esp + 0x3a]
mov dword [esp + 0x34], 0x1c
mov dword [esp + 0x14], eax
lea eax, [esp + 0x30]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.SelectedSize
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
sub esp, 0x18
mov ebx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esp, 4
test ebx, ebx
mov ebx, dword [esi + 4]
jne 0x40656d
cmp dword [esp + 0x30], 1
jne 0x40656d
xor eax, eax
mov word [esp + 0x54], ax
test ebx, ebx
je 0x40656d
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
jmp 0x40663a
mov ebx, dword [ebx]
test ebx, ebx
je 0x40656a
mov dword [esp + 4], edi
mov eax, dword [ebx + 8]
mov dword [esp], eax
call ebp
sub esp, 8
test eax, eax
jne 0x406630
jmp 0x40656d
Function at 0x406660
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x7c
mov eax, dword [esp + 0x94]
mov ebx, dword [esp + 0x90]
mov dword [eax], 0
mov dword [eax + 4], 0
lea eax, [esp + 0x28]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0
mov dword [esp + 4], str.Control_PanelAppearanceClassicSchemes
mov dword [esp], 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
je 0x4066c0
add esp, 0x7c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x30]
lea esi, [esp + 0x36]
mov dword [esp + 0x30], 0x3a
lea edi, [esp + 0x2c]
mov dword [esp + 0x14], ecx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.SelectedScheme
mov dword [esp], eax
call ebp
sub esp, 0x18
test eax, eax
lea ecx, [esp + 0x30]
jne 0x406715
cmp dword [esp + 0x2c], 1
je 0x406810
mov eax, dword [esp + 0x28]
mov dword [esp + 0x30], 0x3a
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.SelectedStyle
mov dword [esp], eax
call ebp
sub esp, 0x18
test eax, eax
jne 0x4066b6
cmp dword [esp + 0x2c], 1
jne 0x4066b6
xor eax, eax
mov dword [esp], esi
mov word [esp + 0x6e], ax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
sub esp, 4
lea eax, [eax + eax + 2]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.SelectedScheme
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub esp, 0x18
test eax, eax
je 0x406820
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esp, 4
test ebx, ebx
je 0x4066b6
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
jmp 0x4067d2
mov ebx, dword [ebx]
test ebx, ebx
je 0x4066b6
mov dword [esp + 4], esi
mov eax, dword [ebx + 8]
mov dword [esp], eax
call ebp
sub esp, 8
test eax, eax
jne 0x4067c8
mov eax, dword [esp + 0x94]
mov dword [eax], ebx
mov dword [esp], ebx
call fcn.00406530
mov edx, dword [esp + 0x94]
mov dword [edx + 4], eax
add esp, 0x7c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
xor edx, edx
mov word [esp + 0x6e], dx
jmp 0x4067a3
mov eax, dword [esp + 0x28]
mov dword [esp + 4], str.SelectedStyle
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
sub esp, 8
jmp 0x4067a3
Function at 0x407d70
Capabilities:
Set registry value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xfc
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [esp + 0x114]
lea ebx, [esp + 0x66]
mov dword [esp + 8], str.Control_PanelAppearanceClassicSchemes
mov dword [esp + 4], str._s_s
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call edi
cmp eax, 0x28
jg 0x407dc0
add esp, 0xfc
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x4c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 2
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
sub esp, 0x24
mov ebp, eax
test eax, eax
jne 0x407da9
mov eax, dword [esp + 0x110]
mov dword [esp + 0x3c], 1
lea esi, [esp + 0x56]
lea ebx, [eax + 0x254]
mov eax, edi
mov edi, ebp
mov ebp, eax
lea esi, [esi]
mov dword [esp + 8], edi
mov dword [esp + 4], 0x40e51c
mov dword [esp], esi
call ebp
cmp eax, 5
jle 0x407e8a
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub esp, 0x18
test eax, eax
sete al
movzx eax, al
and dword [esp + 0x3c], eax
add edi, 1
add ebx, 4
cmp edi, 0x1f
jne 0x407e38
mov eax, dword [esp + 0x110]
lea esi, [esp + 0x50]
mov eax, dword [eax + 0x350]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 4
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.FlatMenus
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub esp, 0x18
mov ebx, eax
mov eax, dword [esp + 0x110]
mov eax, dword [eax + 0x34c]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 4
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.Gradients
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub esp, 0x18
or eax, ebx
sete bl
mov eax, dword [esp + 0x3c]
movzx ebx, bl
and ebx, eax
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
sub esp, 4
add esp, 0xfc
pop ebx
pop esi
pop edi
pop ebp
ret