joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d2df
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4521f0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41d31f
cmp byte [ebx], 0xa
jne 0x41d31f
or byte [eax + edi + 0x28], 4
jmp 0x41d324
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41d422
mov al, byte [edx]
cmp al, 0x1a
je 0x41d404
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41d353
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41d378
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41d382
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41d335
jmp 0x41d422
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41d3ff
cmp dword [ebp - 0xc], 0
je 0x41d3ff
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4521f0]
test byte [eax + edi + 0x28], 0x48
je 0x41d3d9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41d3c4
mov byte [esi], dl
jmp 0x41d3d5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4521f0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41d422
cmp byte [ebp - 1], 0xa
jne 0x41d3e8
cmp esi, ebx
jne 0x41d3e8
mov byte [esi], 0xa
jmp 0x41d421
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041de5f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41d422
mov byte [esi], 0xd
jmp 0x41d421
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4521f0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d41e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d422
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41d42b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4521f0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41d46e
cmp word [esi], dx
jne 0x41d46e
or byte [edi + eax + 0x28], 4
jmp 0x41d473
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41d5c6
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41d5a6
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41d4b5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41d4eb
cmp eax, edx
jae 0x41d4f7
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41d48d
jmp 0x41d5c6
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41d5a2
cmp dword [ebp - 0x14], 0
je 0x41d5a2
mov eax, dword [ebx*4 + 0x4521f0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41d57a
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41d543
mov word [esi], cx
jmp 0x41d576
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4521f0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4521f0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4521f0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41d5c6
pop ebx
cmp word [ebp - 4], bx
jne 0x41d58b
cmp esi, dword [ebp + 0xc]
jne 0x41d58b
mov word [esi], bx
jmp 0x41d5c3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041de5f
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41d5c6
push 0xd
jmp 0x41d5bf
mov ecx, dword [ebx*4 + 0x4521f0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41d5bd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41d5c6
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x401ac0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.0040f120
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.0040f120
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x401b20
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x413058]
test esi, esi
jle 0x401c40
mov eax, dword [0x41305c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x401b54
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401bd7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401b40
mov dword [esp], ebx
call fcn.00402480
mov edi, eax
test eax, eax
je 0x401c67
mov eax, dword [0x41305c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.004025c0
mov edx, dword [0x41305c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401c47
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401bd0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401be0
add dword [0x413058], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x41305c]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401bd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00401ac0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x401b5e
mov eax, dword [0x41305c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00401ac0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00401ac0
lea esi, [esi]
nop
Function at 0x402100
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x413074
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x41306c]
sub esp, 4
test ebx, ebx
je 0x402155
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40214e
test esi, esi
je 0x40214e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402130
mov dword [esp], 0x413074
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402480
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x4024a5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4024b0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x4024a5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test esi, esi
je 0x4024f8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4024ee
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4024fa
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4024e0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x401000
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
lea eax, [esp + 4]
push ebx
push esi
push edi
push eax
push 1
push 0
push str.SoftwareMicrosoftPlus_ThemesApply
push Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4010b9
xor esi, esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, 5
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
mov edx, dword [esi + 0x410308]
mov eax, dword [esp + 0x14]
push 0
push ecx
push 0
push edx
push eax
call edi
test eax, eax
jne 0x401095
mov eax, 0xfffffffb
cmp dword [esp + 0xc], ebx
ja 0x40107e
lea eax, [esp + 0xc]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push eax
push ecx
mov eax, dword [esi + 0x410308]
mov ecx, dword [esp + 0x18]
push edx
push 0
push eax
push ecx
call edi
test eax, eax
jne 0x401095
mov al, byte [esp + 0x18]
sub al, 0x30
cmp al, 1
sbb eax, eax
inc eax
mov dword [esi + 0x40e410], eax
jmp 0x40109f
mov dword [esi + 0x40e410], 1
add esi, 4
cmp esi, 0x20
jl 0x401034
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
add esp, 0x14
ret
mov edi, 0x40e410
mov eax, 1
mov ecx, 8
rep stosd dword es:[edi], eax
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x401190
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x140
mov eax, dword [esp + 0x144]
push ebx
push esi
xor ebx, ebx
push edi
xor esi, esi
push ebp
cmp byte [eax], 0x20
mov ebp, dword [sym.imp.USER32.dll_CharNextA]
jne 0x4011b8
push eax
call ebp
cmp byte [eax], 0x20
je 0x4011b0
cmp byte [eax], 0x2f
jne 0x4011ef
push eax
call ebp
movsx ecx, byte [eax]
cmp ecx, 0x53
je 0x4011da
cmp ecx, 0x73
je 0x4011da
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x140
ret
mov esi, 1
push eax
call ebp
cmp byte [eax], 0x20
jne 0x4011ef
push eax
call ebp
cmp byte [eax], 0x20
je 0x4011e7
cmp byte [eax], 0x22
jne 0x4011fc
mov ebx, 1
push eax
call ebp
mov edi, eax
cmp byte [eax], 0
je 0x401214
test ebx, ebx
je 0x40120c
cmp byte [eax], 0x22
je 0x401214
push eax
call ebp
cmp byte [eax], 0
jne 0x401203
cmp edi, eax
jae 0x401230
mov ebp, dword [sym.imp.USER32.dll_CharPrevA]
mov ebx, 0x20
cmp byte [eax - 1], bl
jne 0x401230
push eax
push edi
call ebp
cmp edi, eax
jb 0x401223
mov byte [eax], 0
cmp edi, eax
jne 0x401244
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x140
ret
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x401262
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x140
ret
push edi
push 0x200
push 0x40e5c0
push 0x410328
push str.MTSM
push str.MasterThemeSelector
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str.DABJDKT
push 0x40e5c0
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4012a3
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x140
ret
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x40e9e0
call ebx
push 0x40e9e0
push 0x40e8d0
call ebx
push 0x40e8d0
call fcn.00405790
add esp, 4
mov byte [eax], 0
lea eax, [esp + 0x3c]
push eax
push 0x40ed70
call ebx
push 0x40ed70
call fcn.004057d0
add esp, 4
test esi, esi
je 0x401325
push 0
push 0
call fcn.00403250
add esp, 8
test eax, eax
jne 0x401307
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x140
ret
call section..text
push edi
call fcn.00401e40
add esp, 4
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x140
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x140
ret
Function at 0x401340
Capabilities:
Get common file path

Disassembly:
sub esp, 0x28
push ebx
push esi
mov esi, dword [esp + 0x38]
push edi
push ebp
xor ebx, ebx
push esi
call fcn.00405710
add esp, 4
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x50
push 0x40e430
push ebx
push esi
call edi
push 0x50
push 0x40e1e0
push 1
push esi
call edi
push 0x50
push 0x40e4a0
push 2
push esi
call edi
push 0x50
push 0x40e560
push 0x24
push esi
call edi
push 0x50
push 0x40ecb0
push 9
push esi
call edi
push 0x50
push 0x40e500
push 3
push esi
call edi
push 0x50
push 0x40eaf0
push 6
push esi
call edi
push 0x50
push 0x40e2a0
push 7
push esi
call edi
push 0x50
mov eax, dword [0x40e1d0]
push 0x40e3a0
push 0x21
push eax
call edi
push 0x50
push 0x40ed10
push 0x22
mov eax, dword [0x40e1d0]
push eax
call edi
push 0x50
mov eax, dword [0x40e1d0]
push 0x40e240
push 0x23
push eax
call edi
push 0x50
mov eax, dword [0x40e1d0]
push 0x40eb50
push 4
push eax
call edi
mov eax, dword [sym.imp.USER32.dll_DefDlgProcA]
mov ecx, dword [0x40e1d0]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
push 0x28
mov ebp, dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esp + 0x24], ecx
push esi
mov dword [esp + 0x18], 0x6008
mov dword [esp + 0x24], 0x1e
call ebp
mov dword [esp + 0x24], eax
push 0x7f00
push ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], 0x10
mov dword [esp + 0x34], 0x410348
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
jne 0x401473
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x28
ret
cmp byte [0x40eb50], 0
mov ebx, 0x40eb50
je 0x4014bf
push 1
push ebx
push 1
push 0x40f054
push 0x20000
push 0x400
call dword [sym.imp.KERNEL32.dll_CompareStringA]
cmp eax, 2
jne 0x4014b1
mov ebp, ebx
push ebx
call dword [sym.imp.USER32.dll_CharNextA]
mov ebx, eax
mov byte [ebp], 0
jmp 0x4014ba
push ebx
call dword [sym.imp.USER32.dll_CharNextA]
mov ebx, eax
cmp byte [ebx], 0
jne 0x401481
push 0xff
mov eax, dword [0x40e1d0]
push 0x40ebb0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x40ebb0
call fcn.00405790
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov byte [eax], 0
push 0x50
push 0x40ebb0
call ebx
add eax, 0x40ebb0
push eax
push 5
push esi
call edi
push 0x40ebb0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x40e8d0
call edi
push 0xff
push 0x40e7d0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x40e7d0
call ebx
cmp byte [eax + 0x40e7cf], 0x5c
je 0x401541
push str.01
push 0x40e7d0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x40e5c0
push 0
push str.SoftwareMicrosoftPlus_ThemesCurrent
push Ordinal_2
call fcn.00402a30
add esp, 0x10
test eax, eax
je 0x40157a
push 0x40e5c0
push 0x40e8d0
call edi
push 0x40e8d0
call fcn.00405790
add esp, 4
mov byte [eax], 0
mov eax, dword [esp + 0x44]
push eax
call fcn.00401190
add esp, 4
test eax, eax
je 0x401598
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x28
ret
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x3c]
push eax
push esi
push ecx
call fcn.004015c0
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x28
ret
Function at 0x4015c0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x20
mov dword [0x40e238], 0
push 0
mov dword [0x40e1d0], eax
push 0x407ce0
push 0
push 0xa
push eax
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [0x40e488], eax
test eax, eax
je 0x4016eb
cmp dword [0x40e238], 0
jne 0x4016eb
call fcn.00405b10
test eax, eax
jne 0x40161d
mov eax, dword [0x40e488]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
add esp, 0x20
ret
call section..text
call fcn.00401110
cmp byte [0x40e9e0], 0
je 0x401647
push 0
mov eax, dword [0x40e488]
push 0x6e
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x40e9e0
call fcn.00409d10
lea eax, [esp]
mov ecx, dword [0x40e488]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x10]
push 0
push ecx
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [esp + 0xc]
push 0
sub eax, dword [esp + 8]
push eax
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 8]
push eax
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
add eax, dword [esp + 0x28]
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 0x20]
mov ecx, dword [0x40e488]
sub eax, dword [esp + 0x18]
add eax, dword [esp + 0x28]
cdq
sub eax, edx
sar eax, 1
push eax
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [esp + 0x2c]
mov edx, dword [0x40e488]
push ecx
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x40e488]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
add esp, 0x20
ret
xor eax, eax
add esp, 0x20
ret

Function at 0x401720
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push ebx
push esi
push edi
push ebp
push eax
push 2
push 0
push str.SoftwareMicrosoftPlus_ThemesApply
push Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40176b
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 2
push 0
push 0x410328
push 0
push str.SoftwareMicrosoftPlus_ThemesApply
push Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
xor ebx, ebx
test eax, eax
jne 0x4017db
xor ebp, ebp
mov esi, dword [sym.imp.USER32.dll_IsDlgButtonChecked]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 2
cmp byte [0x40e9e0], bl
je 0x4017a4
mov eax, dword [ebp + 0x4102e8]
mov ecx, dword [0x40e488]
push eax
push ecx
call esi
test eax, eax
mov eax, 0x40f05c
jne 0x4017b6
jmp 0x4017b1
mov eax, 0x40f05c
cmp dword [ebp + 0x40e410], ebx
jne 0x4017b6
mov eax, 0x40f058
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [ebp + 0x410308]
push 1
push ebx
add ebp, 4
push eax
push ecx
call edi
cmp ebp, 0x20
jl 0x40177f
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x4017f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0x10]
push esi
test eax, eax
je 0x401807
mov esi, dword [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40180e
mov esi, dword [esp + 0x18]
mov byte [esi], 0
lea eax, [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40184c
lea eax, [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 8]
push eax
push esi
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
ret

Function at 0x4018b0
Capabilities:
Read .ini file

Disassembly:
push ebx
push esi
push edi
mov esi, 1
mov edi, dword [esp + 0x10]
mov dword [0x40e1c4], esi
push edi
mov dword [0x40e1c8], esi
push 3
push 0x40f080
push Ordinal_2
call fcn.00401a00
add esp, 0x10
mov ebx, eax
push edi
push 0x16
push 0x40f1c8
push Ordinal_2
call fcn.00401a00
add esp, 0x10
test ebx, ebx
je 0x4018fc
test eax, eax
jne 0x4018fe
xor esi, esi
push edi
call fcn.00407680
add esp, 4
test esi, esi
je 0x401914
mov esi, 1
test eax, eax
jne 0x401916
xor esi, esi
push edi
call fcn.004076e0
add esp, 4
test esi, esi
je 0x40192c
mov esi, 1
test eax, eax
jne 0x40192e
xor esi, esi
push edi
call fcn.00402ad0
add esp, 4
test esi, esi
je 0x401944
mov esi, 1
test eax, eax
jne 0x401946
xor esi, esi
push edi
call fcn.00402d50
add esp, 4
test esi, esi
je 0x40195c
mov esi, 1
test eax, eax
jne 0x40195e
xor esi, esi
push str.SYSTEM.INI
push 0x400
push 0x40ddc0
push 0x410328
push str.SCRNSAVE.EXE
push str.boot
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x400
push 0x40ddc0
call fcn.00402e30
add esp, 8
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push edi
push 0x40ddc0
push str.SCRNSAVE.EXE
push str.boot
call ebx
test esi, esi
je 0x4019b9
mov esi, 1
test eax, eax
jne 0x4019bb
xor esi, esi
test eax, eax
jne 0x4019c9
mov dword [0x40e1c4], 0
push edi
push str.DABJDKT
push str.MTSM
push str.MasterThemeSelector
call ebx
mov ecx, eax
test esi, esi
je 0x4019ea
mov eax, 1
test ecx, ecx
jne 0x4019ec
xor eax, eax
test ecx, ecx
jne 0x4019fa
mov dword [0x40e1c4], 0
pop edi
pop esi
pop ebx
ret
Function at 0x401a00
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x10
test eax, eax
push ebx
push esi
push edi
push ebp
mov edi, 1
jle 0x401c19
mov esi, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
mov ecx, dword [esi]
mov edx, dword [esp + 0x24]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401ad0
xor ebx, ebx
cmp dword [esi + 0x10], ebx
jle 0x401a88
xor ebp, ebp
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 0xc]
push eax
push 0x410328
mov edx, dword [ecx + ebp]
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test edi, edi
je 0x401a6f
mov edi, 1
test eax, eax
jne 0x401a71
xor edi, edi
test eax, eax
jne 0x401a7f
mov dword [0x40e1c4], 0
add ebp, 0x10
inc ebx
cmp dword [esi + 0x10], ebx
jg 0x401a48
cmp dword [esi + 4], 2
je 0x401c0c
mov eax, dword [esp + 0x30]
mov ecx, dword [esi]
push eax
push 0x410328
push str.DefaultValue
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test edi, edi
je 0x401ab7
mov edi, 1
test eax, eax
jne 0x401ab9
xor edi, edi
test eax, eax
jne 0x401c0c
mov dword [0x40e1c4], 0
jmp 0x401c0c
mov eax, dword [esi + 4]
cmp eax, 1
je 0x401b3e
cmp eax, 2
jl 0x401c01
cmp eax, 3
jg 0x401c01
xor ebp, ebp
cmp dword [esi + 0x10], ebp
jle 0x401b34
xor ebx, ebx
mov eax, dword [esi]
mov ecx, dword [esp + 0x30]
push eax
push ecx
mov ecx, dword [esi + 0xc]
add ecx, ebx
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx + 8]
push eax
push edx
mov eax, dword [ecx + 4]
mov edx, dword [esp + 0x20]
push eax
mov ecx, dword [ecx]
push ecx
push edx
call fcn.00401c30
add esp, 0x1c
test edi, edi
je 0x401b29
mov edi, 1
test eax, eax
jne 0x401b2b
xor edi, edi
add ebx, 0x10
inc ebp
cmp dword [esi + 0x10], ebp
jg 0x401af3
cmp dword [esi + 4], 2
je 0x401c01
mov ebx, 1
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
mov edx, dword [esp + 0x14]
push 0
push ecx
push 0
push 0x410328
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401b9e
cmp dword [esp + 0x14], 0x400
jbe 0x401b79
xor ebx, ebx
mov dword [0x40e1c8], ebx
jmp 0x401ba5
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
mov edx, dword [esp + 0x10]
push eax
push 0x40ddc0
push ecx
push 0
push 0x410328
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401ba5
mov byte [0x40ddc0], 0
test edi, edi
je 0x401bb2
mov edi, 1
test ebx, ebx
jne 0x401bb4
xor edi, edi
cmp dword [esi + 8], 0
je 0x401bcc
push 0x400
push 0x40ddc0
call fcn.00402e30
add esp, 8
mov eax, dword [esp + 0x30]
mov ecx, dword [esi]
push eax
push 0x40ddc0
push str.DefaultValue
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test edi, edi
je 0x401bf1
mov edi, 1
test eax, eax
jne 0x401bf3
xor edi, edi
test eax, eax
jne 0x401c01
mov dword [0x40e1c4], 0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0x18
dec dword [esp + 0x1c]
jne 0x401a20
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret