joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409240
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x602686
push eax
mov dword fs:[0], esp
sub esp, 0x148
push ebp
push esi
mov esi, dword [esp + 0x164]
push edi
mov edi, dword [esp + 0x164]
lea ebp, [esi + 0x12]
push edi
push ebp
call fcn.004093f0
add esp, 8
test eax, eax
jne 0x409285
mov byte [ebp], al
jmp 0x4093d4
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40929c
mov byte [ebp], 0
xor eax, eax
jmp 0x4093d4
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
lea ecx, [esp + 0x10]
call fcn.005eb163
mov eax, dword [0x69c108]
mov dword [esp + 0x15c], 0
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x15c], 1
push ecx
push edi
call fcn.00409560
add esp, 8
lea ecx, [esp + 0x10]
push 0x6713a0
call fcn.005e76aa
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.005cebb3
add esp, 8
test eax, eax
jne 0x40930a
push 0x672e3c
lea ecx, [esp + 0x10]
call fcn.005eb4d1
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x40934b
lea ecx, [esp + 0x10]
mov byte [esp + 0x15c], 0
call fcn.005eb0f5
lea ecx, [esp + 0xc]
mov dword [esp + 0x15c], 0xffffffff
call fcn.005eb0f5
xor eax, eax
jmp 0x4093d4
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x30]
mov al, byte [esp + 0x14]
mov edi, dword [esp + 0x34]
lea edx, [esp + 0x18]
shl ecx, 0x20
and al, 0x7f
or ecx, edi
push esi
push edx
mov byte [esi + 0x10], al
mov dword [esi + 0xc], ecx
call fcn.00409080
lea edi, [esi + 8]
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00409080
lea ebp, [esi + 4]
lea ecx, [esp + 0x38]
push ebp
push ecx
call fcn.00409080
mov eax, dword [esi]
add esp, 0x18
test eax, eax
jne 0x4093a0
mov edx, dword [ebp]
mov dword [esi], edx
cmp dword [edi], 0
jne 0x4093aa
mov eax, dword [ebp]
mov dword [edi], eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x15c], 0
call fcn.005eb0f5
lea ecx, [esp + 0xc]
mov dword [esp + 0x15c], 0xffffffff
call fcn.005eb0f5
mov eax, 1
mov ecx, dword [esp + 0x154]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x154
ret
Function at 0x4093f0
Capabilities:
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x60269b
push eax
mov dword fs:[0], esp
sub esp, 0x150
lea eax, [esp + 8]
push esi
mov esi, dword [esp + 0x164]
push edi
mov edi, dword [esp + 0x16c]
push eax
push esi
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x409457
push 0x104
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x150]
mov dword fs:[0], ecx
add esp, 0x15c
ret
mov ecx, dword [0x69c108]
mov dword [esp + 8], ecx
lea edx, [esp + 8]
mov dword [esp + 0x160], 0
push edx
push esi
call fcn.00409560
add esp, 8
lea ecx, [esp + 8]
push 0x6713a0
call fcn.005e76aa
push 0x6713a0
lea ecx, [esp + 0xc]
call fcn.005eb4d1
mov edx, dword [esp + 8]
push 0
lea eax, [esp + 0x10]
push 0
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x4094e6
lea ecx, [esp + 8]
mov dword [esp + 0x160], 0xffffffff
call fcn.005eb0f5
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x150]
mov dword fs:[0], ecx
add esp, 0x15c
ret
test byte [esp + 0xc], 2
jne 0x4094f4
push esi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [esp + 0xc], 4
jne 0x409523
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x409523
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x44]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 8]
mov dword [esp + 0x160], 0xffffffff
call fcn.005eb0f5
mov ecx, dword [esp + 0x158]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x15c
ret
Function at 0x40af50
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push edi
mov edi, ecx
xor ecx, ecx
cmp eax, ecx
jne 0x40af69
xor eax, eax
pop edi
add esp, 8
ret 0x10
push esi
mov esi, dword [esp + 0x18]
xor eax, eax
cmp esi, ecx
mov dword [esp + 8], ecx
jbe 0x40b046
push ebx
push ebp
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x1c]
xor edx, edx
mov dl, byte [ecx + ebx]
inc ecx
shl edx, 8
cmp ecx, esi
mov dword [esp + 0x24], ecx
jae 0x40afad
mov esi, dword [esp + 0x1c]
xor ebx, ebx
mov bl, byte [ecx + esi]
mov esi, dword [esp + 0x20]
or edx, ebx
inc ecx
mov dword [esp + 0x24], ecx
jmp 0x40afb1
inc dword [esp + 0x10]
shl edx, 8
cmp ecx, esi
jae 0x40afca
mov esi, dword [esp + 0x1c]
xor ebx, ebx
mov bl, byte [ecx + esi]
or edx, ebx
inc ecx
mov dword [esp + 0x24], ecx
jmp 0x40afce
inc dword [esp + 0x10]
mov esi, 3
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x40afe7
dec ebx
mov byte [esp + esi + 0x14], 0x3d
mov dword [esp + 0x10], ebx
jmp 0x40affd
mov ebx, dword [0x672f10]
mov ecx, edx
and ecx, 0x3f
mov cl, byte [ecx + ebx]
mov byte [esp + esi + 0x14], cl
mov ecx, dword [esp + 0x24]
shr edx, 6
dec esi
jns 0x40afd3
xor edx, edx
mov esi, dword [esp + 0x28]
test esi, esi
je 0x40b023
cmp dword [edi + 4], esi
jb 0x40b023
mov byte [eax + ebp], 0xd
inc eax
mov byte [eax + ebp], 0xa
inc eax
mov dword [edi + 4], 0
mov bl, byte [esp + edx + 0x14]
mov byte [eax + ebp], bl
mov ebx, dword [edi + 4]
inc eax
inc edx
inc ebx
cmp edx, 4
mov dword [edi + 4], ebx
jl 0x40b005
mov esi, dword [esp + 0x20]
cmp ecx, esi
jb 0x40af82
pop ebp
pop ebx
pop esi
pop edi
add esp, 8
ret 0x10
Function at 0x40b050
Capabilities:
Encode data using base64

Disassembly:
mov eax, dword [esp + 8]
sub esp, 8
test eax, eax
push ebx
push ebp
push esi
push edi
jne 0x40b06b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0xc
mov eax, dword [esp + 0x1c]
xor ebp, ebp
xor ebx, ebx
mov edi, dword [eax]
mov dword [esp + 0x10], ebx
mov edx, dword [edi - 8]
add edx, edi
cmp edi, edx
mov dword [esp + 0x14], edx
jae 0x40b190
xor eax, eax
mov dword [esp + 0x1c], eax
cmp edi, edx
jae 0x40b141
mov cl, byte [edi]
inc edi
movsx edx, cl
lea esi, [edx - 9]
cmp esi, 0x17
ja case.default.0x40b0ae
xor ebx, ebx
mov bl, byte [esi + 0x40b1a4]
jmp dword [ebx*4 + 0x40b19c]
mov ebx, dword [esp + 0x10]
shl eax, 6
cmp cl, 0x60
jle 0x40b0d1
mov ecx, dword [esp + 0x1c]
add edx, 0xffffffb9
or eax, edx
inc ecx
mov dword [esp + 0x1c], ecx
jmp 0x40b130
cmp cl, 0x40
jle 0x40b0e6
mov ecx, dword [esp + 0x1c]
add edx, 0xffffffbf
or eax, edx
inc ecx
mov dword [esp + 0x1c], ecx
jmp 0x40b130
cmp cl, 0x3d
jne 0x40b0fb
mov ecx, dword [esp + 0x1c]
inc ebx
inc ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], ecx
jmp 0x40b130
cmp cl, 0x2f
jle 0x40b110
mov ecx, dword [esp + 0x1c]
add edx, 4
or eax, edx
inc ecx
mov dword [esp + 0x1c], ecx
jmp 0x40b130
jne 0x40b11f
mov ecx, dword [esp + 0x1c]
or al, 0x3f
inc ecx
mov dword [esp + 0x1c], ecx
jmp 0x40b130
cmp cl, 0x2b
jne 0x40b126
or al, 0x3e
inc dword [esp + 0x1c]
jmp 0x40b130
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
cmp ecx, 4
jb 0x40b090
cmp dword [esp + 0x1c], 4
jne 0x40b05f
lea ecx, [ebp + 3]
mov esi, ecx
sub esi, ebx
cmp esi, dword [esp + 0x24]
ja 0x40b05f
cmp ecx, ebp
je 0x40b17f
dec ecx
test ebx, ebx
je 0x40b171
mov esi, ebp
sub esi, ebx
add esi, 3
cmp ecx, esi
jae 0x40b178
mov esi, dword [esp + 0x20]
mov byte [ecx + esi], al
shr eax, 8
cmp ecx, ebp
jne 0x40b161
mov ecx, 3
sub ecx, ebx
add ebp, ecx
cmp edi, edx
jb 0x40b08a
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x40eb20
Capabilities:
Create directory
Get common file path
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x602ff8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push ebx
push ebp
push esi
push edi
xor esi, esi
lea ecx, [esp + 0x230]
mov dword [esp + 0x228], esi
mov ebp, 1
call fcn.005e7836
lea ecx, [esp + 0x230]
call fcn.005e773f
push 0x5c
lea ecx, [esp + 0x234]
call fcn.005e76fd
lea ecx, [esp + 0x230]
call fcn.005e773f
push 0x5c
lea ecx, [esp + 0x234]
call fcn.005eb4f8
lea eax, [esp + 0x11c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edx, dword [esp + 0x230]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x18]
mov ebx, dword [edx - 8]
cmp ebx, 2
mov dword [esp + 0x10], ebx
rep stosd dword es:[edi], eax
jle 0x40ecb3
cmp byte [edx + 1], 0x3a
jne 0x40ec1c
test ebx, ebx
jle 0x40ecb5
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x40ebe1
mov edx, dword [esp + 0x230]
test ebp, ebp
je 0x40ecb5
mov al, byte [esi + edx]
cmp al, 0x5c
mov byte [esp + esi + 0x18], al
jne 0x40ec12
cmp esi, 2
je 0x40ec12
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x40ec12
lea edx, [esp + 0x18]
push eax
push edx
call edi
mov ebp, eax
inc esi
cmp esi, ebx
jl 0x40ebda
jmp 0x40ecb5
lea eax, [esp + 0x14]
push 2
push eax
lea ecx, [esp + 0x238]
call fcn.005e722e
mov eax, dword [eax]
push 0x672ea0
push eax
call fcn.005cebb3
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
sete bl
call fcn.005eb0f5
test bl, bl
je 0x40ecb3
push 2
push 0x6713a0
lea ecx, [esp + 0x238]
call fcn.005e72d6
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
mov ebx, eax
jle 0x40ecb5
test ebp, ebp
je 0x40ecb5
cmp ebx, 0xffffffff
je 0x40ecb5
mov ecx, dword [esp + 0x230]
mov al, byte [esi + ecx]
cmp al, 0x5c
mov byte [esp + esi + 0x18], al
jne 0x40ecac
cmp esi, ebx
jle 0x40ecac
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x40ecac
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
inc esi
cmp esi, edi
jl 0x40ec70
jmp 0x40ecb5
xor ebp, ebp
lea ecx, [esp + 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x230]
mov dword [esp + 0x228], 0xffffffff
call fcn.005eb0f5
mov ecx, dword [esp + 0x220]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x21c
ret
Function at 0x40fce0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x28
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40fd2f
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push edx
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x28]
push ecx
push edx
call eax
test eax, eax
je 0x40fd77
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [eax], ecx
mov dword [eax + 4], edx
xor eax, eax
add esp, 0x28
ret
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
lea edx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x34]
lea eax, [esp + 8]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x40fd77
mov eax, dword [esp]
mov ecx, dword [esp + 8]
mul dword [esp + 4]
push 0
push ecx
push edx
push eax
call fcn.005cede0
mov ecx, dword [esp + 0x30]
mov dword [ecx], eax
mov dword [ecx + 4], edx
xor eax, eax
add esp, 0x28
ret
mov eax, dword [esp + 0x30]
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, 1
add esp, 0x28
ret

Function at 0x40fda0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x14]
push edx
xor esi, esi
push eax
push ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x40fdfe
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
mul dword [esp + 8]
push esi
push ecx
push edx
push eax
call fcn.005cede0
mov ecx, dword [esp + 0x1c]
pop esi
mov dword [ecx], eax
mov dword [ecx + 4], edx
xor eax, eax
add esp, 0x10
ret
mov eax, dword [esp + 0x1c]
mov dword [eax], esi
mov dword [eax + 4], esi
mov eax, 1
pop esi
add esp, 0x10
ret
Function at 0x40fe20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x6032bf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [0x69c108]
push esi
push edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x38], 1
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov ecx, 0x14
mov eax, esi
mov byte [esp + 0x38], 3
call fcn.005cfcc0
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
lea eax, [esp + 0x20]
push 0x673c3c
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x14]
call fcn.005eb27e
and esi, 0xfffff
lea edx, [esp + 0x1c]
lea eax, [esi + esi*4]
shl eax, 1
shr eax, 0x14
push eax
push 0x673c3c
push edx
call edi
add esp, 0xc
lea eax, [esp + 0x1c]
lea ecx, [esp + 0xc]
push eax
call fcn.005eb27e
lea ecx, [esp + 0x10]
push 0x672e94
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.005eb38a
lea ecx, [esp + 0xc]
lea edx, [esp + 0x44]
push ecx
push eax
push edx
mov byte [esp + 0x44], 4
call fcn.005eb324
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], 5
call fcn.005eb22e
lea ecx, [esp + 0x44]
mov byte [esp + 0x38], 4
call fcn.005eb0f5
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 3
call fcn.005eb0f5
mov esi, dword [esp + 0x40]
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.005eae6a
mov dword [esp + 0x18], 1
lea ecx, [esp + 8]
mov byte [esp + 0x38], 2
call fcn.005eb0f5
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 1
call fcn.005eb0f5
mov byte [esp + 0x38], 0
lea ecx, [esp + 0x10]
call fcn.005eb0f5
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret

Function at 0x4101a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4101ba
test al, 0x10
jne 0x4101ba
mov eax, 1
ret
xor eax, eax
ret
Function at 0x410860
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x603378
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [0x69c108]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x64]
mov ebx, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
mov dword [ebp], 0
mov dword [ebx], 0
mov dword [ecx], 0
push 0
lea ecx, [esp + 0x20]
mov dword [esp + 0x54], 0
mov dword [edx], 0
call fcn.004741d0
push str.ClassesRoot
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], 1
call fcn.004744a0
push str.CLSIDD27CDB6E_AE6D_11cf_96B8_444553540000InprocServer32
lea ecx, [esp + 0x20]
call fcn.004744d0
push 0
push 0
push 0
push 0
push 0x20019
push 0
lea ecx, [esp + 0x34]
call fcn.00474610
test eax, eax
je 0x410a27
push ecx
mov ecx, esp
mov dword [esp + 0x68], esp
push 0x6a0f60
call fcn.005eb163
push 1
push 1
lea eax, [esp + 0x70]
push 0
push eax
lea ecx, [esp + 0x30]
call fcn.004749d0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x54], 2
call fcn.005eb22e
lea ecx, [esp + 0x64]
mov byte [esp + 0x50], 1
call fcn.005eb0f5
lea ecx, [esp + 0x60]
push ecx
push 1
lea ecx, [esp + 0x18]
call fcn.005eb525
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.005eb574
test edi, edi
je 0x4109f0
push edi
call fcn.005ce37a
mov esi, eax
add esp, 4
test esi, esi
je 0x410a27
mov edx, dword [esp + 0x60]
push esi
push edi
push edx
push 1
lea ecx, [esp + 0x20]
call fcn.005eb525
push eax
call sub.VERSION.dll_GetFileVersionInfoA
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.005eb574
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x6713a0
push esi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x58]
push esi
mov edx, dword [eax + 8]
shr edx, 0x10
mov dword [ecx], edx
mov ecx, dword [esp + 0x60]
xor edx, edx
mov dx, word [eax + 8]
mov dword [ecx], edx
mov edx, dword [eax + 0xc]
shr edx, 0x10
xor ecx, ecx
mov dword [ebx], edx
mov cx, word [eax + 0xc]
mov dword [ebp], ecx
call fcn.005ce291
add esp, 4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x50], 0
call fcn.004756e0
lea ecx, [esp + 0x10]
mov dword [esp + 0x50], 0xffffffff
call fcn.005eb0f5
mov eax, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
lea ecx, [esp + 0x1c]
mov byte [esp + 0x50], 0
call fcn.004756e0
lea ecx, [esp + 0x10]
mov dword [esp + 0x50], 0xffffffff
call fcn.005eb0f5
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x44
ret

Function at 0x410aa0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x410abc
test al, 0x10
jne 0x410abc
mov eax, 1
ret 4
xor eax, eax
ret 4
Function at 0x411a60
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x60356b
push eax
mov eax, 0x8004
mov dword fs:[0], esp
call fcn.005cf280
mov eax, dword [0x69c108]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ebp, 1
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x8024]
mov dword [esp + 0x801c], 0
test ebx, ebx
jne 0x411aad
xor ebp, ebp
jmp 0x411b14
mov ecx, ebx
call fcn.005e95f0
mov esi, dword [esi + 4]
lea ecx, [esp + 0x14]
push esi
push 0x7fff
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov edi, eax
cmp edi, 0x7ffd
jne 0x411ad6
xor ebp, ebp
jmp 0x411b14
lea ecx, [esp + 0x10]
call fcn.005eb080
xor esi, esi
dec edi
test edi, edi
jle 0x411b14
mov al, byte [esp + esi + 0x14]
test al, al
jne 0x411b05
lea edx, [esp + 0x10]
mov ecx, ebx
push edx
call fcn.005e979d
lea ecx, [esp + 0x10]
call fcn.005eb080
jmp 0x411b0f
push eax
lea ecx, [esp + 0x14]
call fcn.005eb4f8
inc esi
cmp esi, edi
jl 0x411ae6
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x411b2b
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebx
call fcn.005e979d
lea ecx, [esp + 0x10]
mov dword [esp + 0x801c], 0xffffffff
call fcn.005eb0f5
mov ecx, dword [esp + 0x8014]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x8010
ret 4

Function at 0x411bff
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6035dd
push eax
mov eax, 0x2008
mov dword fs:[0], esp
call fcn.005cf280
push esi
mov esi, ecx
mov dword [esp + 8], 0
mov dword [esp + 0x2014], 1
mov eax, dword [0x69c108]
mov dword [esp + 4], eax
lea ecx, [esp + 4]
mov byte [esp + 0x2014], 4
call fcn.005eb080
mov esi, dword [esi + 4]
mov edx, dword [esp + 0x2028]
mov eax, dword [esp + 0x2024]
push esi
lea ecx, [esp + 0x10]
push 0x2000
push ecx
mov ecx, dword [esp + 0x202c]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0xc]
lea ecx, [esp + 4]
push edx
call fcn.005eb27e
mov esi, dword [esp + 0x201c]
lea eax, [esp + 4]
push eax
mov ecx, esi
call fcn.005eae6a
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x2014], 3
call fcn.005eb0f5
lea ecx, [esp + 0x2020]
mov byte [esp + 0x2014], 2
call fcn.005eb0f5
lea ecx, [esp + 0x2024]
mov byte [esp + 0x2014], 1
call fcn.005eb0f5
lea ecx, [esp + 0x2028]
mov byte [esp + 0x2014], 0
call fcn.005eb0f5
mov ecx, dword [esp + 0x200c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2014
ret 0x10
Function at 0x411d60
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x603639
push eax
mov eax, 0x8014
mov dword fs:[0], esp
call fcn.005cf280
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov eax, dword [0x69c108]
xor esi, esi
mov dword [esp + 0x802c], esi
mov dword [esp + 0x20], 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x8038]
mov byte [esp + 0x802c], 3
cmp ebx, esi
jne 0x411e0b
lea ecx, [esp + 0x18]
mov byte [esp + 0x802c], 2
call fcn.005eb0f5
lea ecx, [esp + 0x10]
mov byte [esp + 0x802c], 1
call fcn.005eb0f5
lea ecx, [esp + 0x14]
mov byte [esp + 0x802c], 0
call fcn.005eb0f5
lea ecx, [esp + 0x8034]
mov dword [esp + 0x802c], 0xffffffff
call fcn.005eb0f5
xor eax, eax
jmp 0x411f3c
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x8034]
push eax
lea eax, [esp + 0x28]
push 0x7fff
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov edi, eax
cmp edi, 0x7ffd
je 0x411ea5
lea ecx, [esp + 0x14]
call fcn.005eb080
dec edi
test edi, edi
jle 0x411ea1
mov al, byte [esp + esi + 0x24]
test al, al
jne 0x411e92
lea ecx, [esp + 0x10]
call fcn.005eb080
lea ecx, [esp + 0x18]
call fcn.005eb080
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.005eae6a
mov ecx, ebp
call fcn.00411f60
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call fcn.005e979d
lea ecx, [esp + 0x14]
call fcn.005eb080
jmp 0x411e9c
push eax
lea ecx, [esp + 0x18]
call fcn.005eb4f8
inc esi
cmp esi, edi
jl 0x411e3f
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 8]
test eax, eax
je 0x411ef0
lea ecx, [esp + 0x10]
call fcn.005eb080
lea ecx, [esp + 0x18]
call fcn.005eb080
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.005eae6a
mov ecx, ebp
call fcn.00411f60
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call fcn.005e979d
lea ecx, [esp + 0x18]
mov byte [esp + 0x802c], 2
call fcn.005eb0f5
lea ecx, [esp + 0x10]
mov byte [esp + 0x802c], 1
call fcn.005eb0f5
lea ecx, [esp + 0x14]
mov byte [esp + 0x802c], 0
call fcn.005eb0f5
lea ecx, [esp + 0x8034]
mov dword [esp + 0x802c], 0xffffffff
call fcn.005eb0f5
mov eax, esi
mov ecx, dword [esp + 0x8024]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x8020
ret 8
Function at 0x412bf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6038e7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
mov dword [esp + 0x1c], 0
push str..bak
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 2
call fcn.005eb163
mov eax, dword [0x69c108]
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
push ecx
lea eax, [esp + 0xc]
push edx
push eax
mov byte [esp + 0x34], 4
call fcn.005eb324
mov bl, 5
push 0x5c
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2c], bl
xor esi, esi
call fcn.005e76fd
push 0x6713a0
lea ecx, [esp + 0x3c]
call fcn.005eb4d1
lea ecx, [esp + 8]
lea edx, [esp + 0x38]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
call fcn.005eb324
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 6
call fcn.005eb22e
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.005eb0f5
mov ecx, dword [esp + 0xc]
push esi
push ecx
call fcn.005ce4b4
add esp, 8
cmp eax, 0xffffffff
je 0x412d4a
cmp esi, 0x7d0
jge 0x412d4a
inc esi
lea edx, [esp + 0x10]
push esi
push str..bak_d
push edx
call fcn.005e764e
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x34]
lea edx, [esp + 0x14]
push eax
push ecx
push edx
call fcn.005eb324
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 7
call fcn.005eb22e
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.005eb0f5
lea eax, [esp + 8]
lea ecx, [esp + 0x38]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.005eb324
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 8
call fcn.005eb22e
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.005eb0f5
mov eax, dword [esp + 0xc]
push 0
push eax
call fcn.005ce4b4
add esp, 8
cmp eax, 0xffffffff
jne 0x412cb2
mov esi, dword [esp + 0x30]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.005eae6a
mov ebx, 1
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 8]
mov byte [esp + 0x28], 4
call fcn.005eb0f5
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 3
call fcn.005eb0f5
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 2
call fcn.005eb0f5
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], bl
call fcn.005eb0f5
lea ecx, [esp + 0x38]
mov byte [esp + 0x28], 0
call fcn.005eb0f5
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc