joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408d34
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.004062b7
and dword [ebp - 4], 0
cmp dword [0x40f640], 0
mov ebx, eax
jne 0x408de5
push 0x402384
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408e96
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402378
push edi
call esi
test eax, eax
je 0x408e96
push eax
call fcn.00406245
mov dword [esp], 0x402368
push edi
mov dword [0x40f640], eax
call esi
push eax
call fcn.00406245
mov dword [esp], 0x402354
push edi
mov dword [0x40f644], eax
call esi
push eax
call fcn.00406245
mov dword [esp], 0x402338
push edi
mov dword [0x40f648], eax
call esi
push eax
call fcn.00406245
pop ecx
mov dword [0x40f650], eax
test eax, eax
je 0x408de5
push 0x402320
push edi
call esi
push eax
call fcn.00406245
pop ecx
mov dword [0x40f64c], eax
mov eax, dword [0x40f64c]
cmp eax, ebx
je 0x408e3d
cmp dword [0x40f650], ebx
je 0x408e3d
push eax
call fcn.004062c0
push dword [0x40f650]
mov esi, eax
call fcn.004062c0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408e3d
test edi, edi
je 0x408e3d
call esi
test eax, eax
je 0x408e34
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408e34
test byte [ebp - 0xc], 1
jne 0x408e3d
or dword [ebp + 0x10], 0x200000
jmp 0x408e76
mov eax, dword [0x40f644]
cmp eax, ebx
je 0x408e76
push eax
call fcn.004062c0
pop ecx
test eax, eax
je 0x408e76
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408e76
mov eax, dword [0x40f648]
cmp eax, ebx
je 0x408e76
push eax
call fcn.004062c0
pop ecx
test eax, eax
je 0x408e76
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40f640]
call fcn.004062c0
pop ecx
test eax, eax
je 0x408e96
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408e98
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x51f528
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x581e60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.005134ab
and dword [ebp - 0x14], 0
cmp dword [0x589b44], 0
mov dword [ebp - 0x18], eax
jne 0x51f5db
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x51f683
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x55c528
push ebx
call edi
test eax, eax
je 0x51f683
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x55c518
push ebx
mov dword [0x589b44], eax
call edi
push eax
call esi
push 0x55c504
push ebx
mov dword [0x589b48], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x589b4c], eax
call edi
push eax
call esi
mov dword [0x589b54], eax
test eax, eax
je 0x51f5db
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x589b50], eax
mov eax, dword [0x589b50]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x51f634
cmp dword [0x589b54], ecx
je 0x51f634
push eax
call esi
push dword [0x589b54]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x51f634
test ebx, ebx
je 0x51f634
call edi
test eax, eax
je 0x51f62b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x51f62b
test byte [ebp - 8], 1
jne 0x51f634
or dword [ebp + 0x10], 0x200000
jmp 0x51f667
mov eax, dword [0x589b48]
cmp eax, dword [ebp - 0x18]
je 0x51f667
push eax
call esi
test eax, eax
je 0x51f667
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x51f667
mov eax, dword [0x589b4c]
cmp eax, dword [ebp - 0x18]
je 0x51f667
push eax
call esi
test eax, eax
je 0x51f667
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x589b44]
call esi
test eax, eax
je 0x51f683
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x51f685
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050ba00
leave
ret
Function at 0x63b0e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x58f015
lea edi, [esi - 0x18e015]
lea eax, [edi + 0x1a5778]
push dword [eax]
mov dword [eax], 0x29e0b5e6
push eax
push edi
or ebp, 0xffffffff
jmp 0x63b112
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x63b119
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x63b108
mov eax, 1
add ebx, ebx
jne 0x63b12b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x63b13c
jne 0x63b15b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x63b15b
dec eax
add ebx, ebx
jne 0x63b148
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x63b120
add ebx, ebx
jne 0x63b157
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x63b1ad
xor ecx, ecx
sub eax, 3
jb 0x63b173
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x63b1e2
sar eax, 1
mov ebp, eax
jmp 0x63b17e
add ebx, ebx
jne 0x63b17e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x63b14c
inc ecx
add ebx, ebx
jne 0x63b18c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x63b14c
add ebx, ebx
jne 0x63b199
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x63b18e
jne 0x63b1aa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x63b18e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x63b1cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x63b1be
jmp 0x63b10e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x63b1cc
add edi, ecx
jmp 0x63b10e
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x966e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x63b1ee
cmp byte [edi], 0x1c
jne 0x63b1ee
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x63b1f3
lea edi, [esi + 0x237000]
mov eax, dword [edi]
or eax, eax
je 0x63b262
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2542d0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x254400]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x63b220
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x254408]
or eax, eax
je 0x63b25c
mov dword [ebx], eax
add ebx, 4
jmp 0x63b23d
call dword [esi + 0x254404]
mov ebp, dword [esi + 0x25440c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x23b2bd]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x63b2ae
sub esp, 0xffffff80
jmp 0x402f40
Function at 0x4027a0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x104
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
call fcn.00402830
add esp, 8
test eax, eax
pop edi
jne 0x4027da
add esp, 0x104
ret
lea ecx, [esp]
push ecx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
mov dword [0x40ed44], eax
je 0x40281f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40281f
mov edx, dword [0x40ed44]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x40ed44], 0
xor eax, eax
add esp, 0x104
ret
mov eax, 1
add esp, 0x104
ret

Function at 0x402cf0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x17c
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x81]
mov byte [esp + 0x80], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x80]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x80]
push 0x103
push ecx
push 0x40ed48
call fcn.004043a0
mov esi, dword [0x40ee68]
mov edi, dword [0x40ee6c]
add esp, 0xc
lea ecx, [esp + 8]
call fcn.00402750
push edi
push esi
lea ecx, [esp + 0x10]
call fcn.00401280
lea ecx, [esp + 8]
mov esi, eax
call fcn.00402790
mov eax, esi
pop edi
pop esi
add esp, 0x17c
ret 0x10
Function at 0x403520
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x1c
xor eax, eax
lea ecx, [esp]
mov dword [esp + 0x10], eax
push esi
xor esi, esi
mov dword [esp + 0x18], eax
push ecx
push 0x28
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x403561
pop esi
add esp, 0x1c
ret
lea edx, [esp + 8]
push edx
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x403588
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
add esp, 0x1c
ret
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
push esi
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0xc]
push 0x10
push eax
push esi
push ecx
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x4035c6
pop esi
add esp, 0x1c
ret
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
add esp, 0x1c
ret
Function at 0x4039b0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
test edi, edi
jne 0x4039d2
pop edi
pop esi
pop ebp
mov eax, 0xf0000001
pop ebx
add esp, 0x10
ret 4
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.kernel32.dll
call ebx
push str.psapi.dll
mov esi, eax
call ebx
test esi, esi
mov dword [esp + 0x24], eax
je 0x403b57
test eax, eax
je 0x403b57
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetModuleInformation
push eax
call ebx
mov ebp, eax
test ebp, ebp
je 0x403a37
xor ecx, ecx
lea edx, [esp + 0x14]
push 0xc
mov dword [esp + 0x1c], ecx
push edx
push esi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebp
test eax, eax
jne 0x403a5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, eax
call esi
mov eax, dword [esp + 0x24]
push eax
call esi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
mov ecx, dword [esp + 0x18]
push str.LoadLibraryA
push esi
lea ebp, [ecx + esi]
call ebx
push str.GetModuleHandleA
push esi
mov dword [edi + 0x14], eax
call ebx
push str.FreeLibrary
push esi
mov dword [edi + 0x18], eax
call ebx
push str.GetProcAddress
push esi
mov dword [edi + 0x1c], eax
call ebx
mov dword [edi + 0x20], eax
mov eax, dword [edi + 0x14]
cmp eax, esi
jbe 0x403a99
cmp eax, ebp
jb 0x403aae
mov ebx, dword [esp + 0x10]
push str.LoadLibraryA
mov ecx, ebx
call fcn.00403b70
mov dword [edi + 0x14], eax
jmp 0x403ab2
mov ebx, dword [esp + 0x10]
mov eax, dword [edi + 0x1c]
cmp eax, esi
jbe 0x403abd
cmp eax, ebp
jb 0x403acc
push str.FreeLibrary
mov ecx, ebx
call fcn.00403b70
mov dword [edi + 0x1c], eax
mov eax, dword [edi + 0x20]
cmp eax, esi
jbe 0x403ad7
cmp eax, ebp
jb 0x403ae6
push str.GetProcAddress
mov ecx, ebx
call fcn.00403b70
mov dword [edi + 0x20], eax
mov eax, dword [edi + 0x18]
cmp eax, esi
jbe 0x403af1
cmp eax, ebp
jb 0x403b00
push str.GetModuleHandleA
mov ecx, ebx
call fcn.00403b70
mov dword [edi + 0x18], eax
mov eax, dword [edi + 0x14]
test eax, eax
je 0x403b38
mov eax, dword [edi + 0x18]
test eax, eax
je 0x403b38
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x403b38
mov eax, dword [edi + 0x20]
test eax, eax
je 0x403b38
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call esi
mov edx, dword [esp + 0x24]
push edx
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call esi
mov eax, dword [esp + 0x24]
push eax
call esi
pop edi
pop esi
pop ebp
mov eax, 0xf0000008
pop ebx
add esp, 0x10
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x403b70
Capabilities:
Access peb ldr_data
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push esi
xor esi, esi
cmp eax, esi
jne 0x403b89
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 0x1c]
mov eax, dword [edx]
xor edx, edx
mov edi, dword [eax + 8]
mov ecx, dword [edi + 0x3c]
mov eax, dword [ecx + edi + 0x78]
mov ecx, dword [eax + edi + 0x1c]
add eax, edi
add ecx, edi
mov dword [ebp - 0x14], ecx
mov ebx, dword [eax + 0x18]
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
add ecx, edi
add eax, edi
cmp ebx, esi
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], eax
jbe 0x403c3a
mov dword [ebp - 4], ecx
mov eax, dword [ecx]
mov esi, dword [ebp + 8]
add eax, edi
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x403c01
test cl, cl
je 0x403bfd
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x403c01
add eax, 2
add esi, 2
test cl, cl
jne 0x403bdd
xor eax, eax
jmp 0x403c06
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x403c29
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
inc edx
add ecx, 4
cmp edx, eax
mov dword [ebp - 4], ecx
jb 0x403bd6
mov esi, dword [ebp - 0xc]
pop edi
mov eax, esi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov ax, word [ecx + edx*2]
mov edx, dword [ebp - 0x14]
mov esi, dword [edx + eax*4]
add esi, edi
pop edi
mov eax, esi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4026c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [esi + 8]
call fcn.00402510
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
test eax, eax
je 0x4026e9
mov ecx, dword [esi + 8]
mov dword [ecx + 0xc], eax
mov edi, dword [esi + 8]
lea eax, [ebp + 0x10]
push eax
push 0
push edi
push 0x402490
push 0
push 0
mov dword [ebp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x10], eax
test eax, eax
je 0x40272d
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40272d
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x10], 0
mov eax, dword [esi + 8]
pop edi
pop esi
mov al, byte [eax + 4]
pop ebp
ret 0xc
Function at 0x402fa0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a0148
mov eax, dword fs:[0]
push eax
sub esp, 0x630
mov eax, dword [0x6540b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x638], edi
lea eax, [edi + 8]
mov dword [edi], 0
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x63c], edi
jb 0x402ffa
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 4], ecx
mov dword [edi + 0x34], 7
mov dword [edi + 0x30], ecx
cmp dword [edi + 0x34], 8
jb 0x403017
mov eax, dword [edi + 0x20]
jmp 0x40301a
lea eax, [edi + 0x20]
xor ecx, ecx
mov word [eax], cx
lea eax, [edi + 0x38]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x403034
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea eax, [edi + 0x50]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x40304e
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov byte [ebp - 4], 3
push ecx
mov dword [edi + 0x68], ecx
mov dword [edi + 0x6c], ecx
call fcn.0045820e
push eax
call fcn.00458d89
push 0x20c
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.00448340
add esp, 0x14
lea eax, [ebp - 0x220]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x403107
xor eax, eax
push 0x412
push eax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x634]
push eax
call fcn.00448340
add esp, 0xc
lea eax, [ebp - 0x634]
push 0x208
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x4030f8
test eax, eax
je 0x4030f8
add eax, eax
cmp eax, 0x412
jae 0x4030f3
xor ecx, ecx
mov word [ebp + eax - 0x634], cx
lea eax, [ebp - 0x634]
jmp 0x4030fe
call fcn.00435ac9
lea eax, [ebp - 0x220]
push eax
lea ecx, [edi + 0x20]
call fcn.00402890
mov eax, dword [edi + 0x30]
test eax, eax
je 0x403133
cmp dword [edi + 0x34], 8
jb 0x403119
mov ecx, dword [edi + 0x20]
jmp 0x40311c
lea ecx, [edi + 0x20]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x403133
push 1
push 0x648598
lea ecx, [edi + 0x20]
call fcn.004045b0
cmp dword [edi + 0x30], 0
jne 0x403148
push 3
push 0x64859c
lea ecx, [edi + 0x20]
call fcn.004028e0
mov dword [edi + 4], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00435ba5
mov esp, ebp
pop ebp
ret
Function at 0x403170
Capabilities:
Delete file

Disassembly:
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x48], 0
je 0x40318c
cmp dword [edi + 0x4c], 8
lea eax, [edi + 0x38]
jb 0x403185
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [edi + 0x68]
test eax, eax
je 0x4031a3
push eax
call fcn.004360d6
add esp, 4
mov dword [edi + 0x68], 0
mov eax, dword [edi + 0x64]
lea esi, [edi + 0x50]
cmp eax, 8
jb 0x4031b9
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.004029e0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x4031cf
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
lea esi, [edi + 0x38]
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x4031ea
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.004029e0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x403200
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
lea esi, [edi + 0x20]
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x40321b
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.004029e0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x403231
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
mov eax, dword [edi + 0x1c]
cmp eax, 8
jb 0x40324b
inc eax
lea ecx, [edi + 8]
push eax
push dword [edi + 8]
call fcn.004029e0
mov dword [edi + 0x1c], 7
cmp dword [edi + 0x1c], 8
mov dword [edi + 0x18], 0
jb 0x40326a
mov eax, dword [edi + 8]
xor ecx, ecx
pop edi
pop esi
mov word [eax], cx
ret
xor eax, eax
mov word [edi + 8], ax
pop edi
pop esi
ret
Function at 0x406c80
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a03d8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x6540b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.theme.ini
lea eax, [ebp - 0x40]
push eax
call fcn.00406d20
add esp, 4
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x48]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.004048c0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00402740
lea ecx, [ebp - 0x28]
call fcn.00402810
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x28]
call fcn.00402740
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00435ba5
mov esp, ebp
pop ebp
ret

Function at 0x406ec0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x484
mov eax, dword [0x6540b4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x406ee0
xor al, al
jmp 0x40704b
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.00448340
add esp, 0xc
push 0x5a4998
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x42c]
push eax
call fcn.00406d20
add esp, 4
mov dword [ebp - 0x478], eax
mov ecx, dword [ebp - 0x478]
call fcn.00402810
push eax
push 0x5a49a4
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00409340
add esp, 0x14
lea ecx, [ebp - 0x42c]
call fcn.00402740
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406f96
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x444]
push ecx
call fcn.0044398c
add esp, 8
mov dword [ebp - 0x47c], eax
mov edx, dword [ebp - 0x47c]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00404330
lea ecx, [ebp - 0x444]
call fcn.00402740
mov al, 1
jmp 0x40704b
xor eax, eax
mov word [ebp - 0x414], ax
push 0x206
push 0
lea ecx, [ebp - 0x412]
push ecx
call fcn.00448340
add esp, 0xc
push 0x5a49b4
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x45c]
push eax
call fcn.00406d20
add esp, 4
mov dword [ebp - 0x480], eax
mov ecx, dword [ebp - 0x480]
call fcn.00402810
push eax
push 0x5a49c4
lea ecx, [ebp - 0x414]
push ecx
call fcn.00409340
add esp, 0x14
lea ecx, [ebp - 0x45c]
call fcn.00402740
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407049
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x474]
push ecx
call fcn.0044398c
add esp, 8
mov dword [ebp - 0x484], eax
mov edx, dword [ebp - 0x484]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00404330
lea ecx, [ebp - 0x474]
call fcn.00402740
mov al, 1
jmp 0x40704b
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00435ba5
mov esp, ebp
pop ebp
ret
Function at 0x407aa0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a04f6
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x6540b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24c], 0
push 0x5a4af8
lea eax, [ebp - 0x248]
push eax
call fcn.00406d20
add esp, 4
mov dword [ebp - 0x250], eax
mov ecx, dword [ebp - 0x250]
mov dword [ebp - 0x254], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x254]
push edx
lea eax, [ebp - 0x230]
push eax
call fcn.004048c0
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x248]
call fcn.00402740
xor ecx, ecx
mov word [ebp - 0x218], cx
push 0x206
push 0
lea edx, [ebp - 0x216]
push edx
call fcn.00448340
add esp, 0xc
lea ecx, [ebp - 0x230]
call fcn.00402810
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x5a4b0c
push 0x5a4b38
push str.Theme
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x218]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00402780
mov edx, dword [ebp - 0x24c]
or edx, 1
mov dword [ebp - 0x24c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00402740
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00435ba5
mov esp, ebp
pop ebp
ret

Function at 0x407c50
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.00407bc0
mov ecx, eax
call fcn.00443c9c
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0x5a49f0
push 0x5a4a04
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x407c8d
mov dword [ebp - 4], 1
jmp 0x407c94
mov dword [ebp - 4], 0
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret