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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x602f16
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.00409500
add esp, 8
test eax, eax
jne 0x409395
mov byte [ebp], al
jmp 0x4094e4
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4093ac
mov byte [ebp], 0
xor eax, eax
jmp 0x4094e4
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
lea ecx, [esp + 0x10]
call fcn.005eba4f
mov eax, dword [0x69cfe8]
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.00409670
add esp, 8
lea ecx, [esp + 0x10]
push 0x6723a0
call fcn.005e7fba
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.005cf4d3
add esp, 8
test eax, eax
jne 0x40941a
push 0x673e3c
lea ecx, [esp + 0x10]
call fcn.005ebdbd
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x40945b
lea ecx, [esp + 0x10]
mov byte [esp + 0x15c], 0
call fcn.005eb9e1
lea ecx, [esp + 0xc]
mov dword [esp + 0x15c], 0xffffffff
call fcn.005eb9e1
xor eax, eax
jmp 0x4094e4
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.00409190
lea edi, [esi + 8]
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00409190
lea ebp, [esi + 4]
lea ecx, [esp + 0x38]
push ebp
push ecx
call fcn.00409190
mov eax, dword [esi]
add esp, 0x18
test eax, eax
jne 0x4094b0
mov edx, dword [ebp]
mov dword [esi], edx
cmp dword [edi], 0
jne 0x4094ba
mov eax, dword [ebp]
mov dword [edi], eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x15c], 0
call fcn.005eb9e1
lea ecx, [esp + 0xc]
mov dword [esp + 0x15c], 0xffffffff
call fcn.005eb9e1
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 0x409500
Capabilities:
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x602f2b
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 0x409567
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 [0x69cfe8]
mov dword [esp + 8], ecx
lea edx, [esp + 8]
mov dword [esp + 0x160], 0
push edx
push esi
call fcn.00409670
add esp, 8
lea ecx, [esp + 8]
push 0x6723a0
call fcn.005e7fba
push 0x6723a0
lea ecx, [esp + 0xc]
call fcn.005ebdbd
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 0x4095f6
lea ecx, [esp + 8]
mov dword [esp + 0x160], 0xffffffff
call fcn.005eb9e1
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 0x409604
push esi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [esp + 0xc], 4
jne 0x409633
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x409633
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.005eb9e1
mov ecx, dword [esp + 0x158]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x15c
ret
Function at 0x40afd0
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 0x40afe9
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 0x40b0c6
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 0x40b02d
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 0x40b031
inc dword [esp + 0x10]
shl edx, 8
cmp ecx, esi
jae 0x40b04a
mov esi, dword [esp + 0x1c]
xor ebx, ebx
mov bl, byte [ecx + esi]
or edx, ebx
inc ecx
mov dword [esp + 0x24], ecx
jmp 0x40b04e
inc dword [esp + 0x10]
mov esi, 3
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x40b067
dec ebx
mov byte [esp + esi + 0x14], 0x3d
mov dword [esp + 0x10], ebx
jmp 0x40b07d
mov ebx, dword [0x673f10]
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 0x40b053
xor edx, edx
mov esi, dword [esp + 0x28]
test esi, esi
je 0x40b0a3
cmp dword [edi + 4], esi
jb 0x40b0a3
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 0x40b085
mov esi, dword [esp + 0x20]
cmp ecx, esi
jb 0x40b002
pop ebp
pop ebx
pop esi
pop edi
add esp, 8
ret 0x10
Function at 0x40b0d0
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 0x40b0eb
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 0x40b210
xor eax, eax
mov dword [esp + 0x1c], eax
cmp edi, edx
jae 0x40b1c1
mov cl, byte [edi]
inc edi
movsx edx, cl
lea esi, [edx - 9]
cmp esi, 0x17
ja case.default.0x40b12e
xor ebx, ebx
mov bl, byte [esi + 0x40b224]
jmp dword [ebx*4 + 0x40b21c]
mov ebx, dword [esp + 0x10]
shl eax, 6
cmp cl, 0x60
jle 0x40b151
mov ecx, dword [esp + 0x1c]
add edx, 0xffffffb9
or eax, edx
inc ecx
mov dword [esp + 0x1c], ecx
jmp 0x40b1b0
cmp cl, 0x40
jle 0x40b166
mov ecx, dword [esp + 0x1c]
add edx, 0xffffffbf
or eax, edx
inc ecx
mov dword [esp + 0x1c], ecx
jmp 0x40b1b0
cmp cl, 0x3d
jne 0x40b17b
mov ecx, dword [esp + 0x1c]
inc ebx
inc ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], ecx
jmp 0x40b1b0
cmp cl, 0x2f
jle 0x40b190
mov ecx, dword [esp + 0x1c]
add edx, 4
or eax, edx
inc ecx
mov dword [esp + 0x1c], ecx
jmp 0x40b1b0
jne 0x40b19f
mov ecx, dword [esp + 0x1c]
or al, 0x3f
inc ecx
mov dword [esp + 0x1c], ecx
jmp 0x40b1b0
cmp cl, 0x2b
jne 0x40b1a6
or al, 0x3e
inc dword [esp + 0x1c]
jmp 0x40b1b0
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
cmp ecx, 4
jb 0x40b110
cmp dword [esp + 0x1c], 4
jne 0x40b0df
lea ecx, [ebp + 3]
mov esi, ecx
sub esi, ebx
cmp esi, dword [esp + 0x24]
ja 0x40b0df
cmp ecx, ebp
je 0x40b1ff
dec ecx
test ebx, ebx
je 0x40b1f1
mov esi, ebp
sub esi, ebx
add esi, 3
cmp ecx, esi
jae 0x40b1f8
mov esi, dword [esp + 0x20]
mov byte [ecx + esi], al
shr eax, 8
cmp ecx, ebp
jne 0x40b1e1
mov ecx, 3
sub ecx, ebx
add ebp, ecx
cmp edi, edx
jb 0x40b10a
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x40eb80
Capabilities:
Create directory
Get common file path
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x603888
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.005e8146
lea ecx, [esp + 0x230]
call fcn.005e804f
push 0x5c
lea ecx, [esp + 0x234]
call fcn.005e800d
lea ecx, [esp + 0x230]
call fcn.005e804f
push 0x5c
lea ecx, [esp + 0x234]
call fcn.005ebde4
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 0x40ed13
cmp byte [edx + 1], 0x3a
jne 0x40ec7c
test ebx, ebx
jle 0x40ed15
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x40ec41
mov edx, dword [esp + 0x230]
test ebp, ebp
je 0x40ed15
mov al, byte [esi + edx]
cmp al, 0x5c
mov byte [esp + esi + 0x18], al
jne 0x40ec72
cmp esi, 2
je 0x40ec72
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x40ec72
lea edx, [esp + 0x18]
push eax
push edx
call edi
mov ebp, eax
inc esi
cmp esi, ebx
jl 0x40ec3a
jmp 0x40ed15
lea eax, [esp + 0x14]
push 2
push eax
lea ecx, [esp + 0x238]
call fcn.005e7b3e
mov eax, dword [eax]
push 0x673ea0
push eax
call fcn.005cf4d3
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
sete bl
call fcn.005eb9e1
test bl, bl
je 0x40ed13
push 2
push 0x6723a0
lea ecx, [esp + 0x238]
call fcn.005e7be6
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
mov ebx, eax
jle 0x40ed15
test ebp, ebp
je 0x40ed15
cmp ebx, 0xffffffff
je 0x40ed15
mov ecx, dword [esp + 0x230]
mov al, byte [esi + ecx]
cmp al, 0x5c
mov byte [esp + esi + 0x18], al
jne 0x40ed0c
cmp esi, ebx
jle 0x40ed0c
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x40ed0c
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, eax
inc esi
cmp esi, edi
jl 0x40ecd0
jmp 0x40ed15
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.005eb9e1
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 0x40fd30
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 0x40fd7f
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 0x40fdc7
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 0x40fdc7
mov eax, dword [esp]
mov ecx, dword [esp + 8]
mul dword [esp + 4]
push 0
push ecx
push edx
push eax
call fcn.005cf700
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 0x40fdf0
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 0x40fe4e
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
mul dword [esp + 8]
push esi
push ecx
push edx
push eax
call fcn.005cf700
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 0x40fe70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x603b4f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [0x69cfe8]
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.005d05c0
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
lea eax, [esp + 0x20]
push 0x674c3c
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x14]
call fcn.005ebb6a
and esi, 0xfffff
lea edx, [esp + 0x1c]
lea eax, [esi + esi*4]
shl eax, 1
shr eax, 0x14
push eax
push 0x674c3c
push edx
call edi
add esp, 0xc
lea eax, [esp + 0x1c]
lea ecx, [esp + 0xc]
push eax
call fcn.005ebb6a
lea ecx, [esp + 0x10]
push 0x673e94
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.005ebc76
lea ecx, [esp + 0xc]
lea edx, [esp + 0x44]
push ecx
push eax
push edx
mov byte [esp + 0x44], 4
call fcn.005ebc10
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], 5
call fcn.005ebb1a
lea ecx, [esp + 0x44]
mov byte [esp + 0x38], 4
call fcn.005eb9e1
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 3
call fcn.005eb9e1
mov esi, dword [esp + 0x40]
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.005eb756
mov dword [esp + 0x18], 1
lea ecx, [esp + 8]
mov byte [esp + 0x38], 2
call fcn.005eb9e1
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 1
call fcn.005eb9e1
mov byte [esp + 0x38], 0
lea ecx, [esp + 0x10]
call fcn.005eb9e1
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret

Function at 0x4101f0
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 0x41020a
test al, 0x10
jne 0x41020a
mov eax, 1
ret
xor eax, eax
ret
Function at 0x4108b0
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x603c08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [0x69cfe8]
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.00474480
push str.ClassesRoot
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], 1
call fcn.00474750
push str.CLSIDD27CDB6E_AE6D_11cf_96B8_444553540000InprocServer32
lea ecx, [esp + 0x20]
call fcn.00474780
push 0
push 0
push 0
push 0
push 0x20019
push 0
lea ecx, [esp + 0x34]
call fcn.004748c0
test eax, eax
je 0x410a77
push ecx
mov ecx, esp
mov dword [esp + 0x68], esp
push 0x6a1e40
call fcn.005eba4f
push 1
push 1
lea eax, [esp + 0x70]
push 0
push eax
lea ecx, [esp + 0x30]
call fcn.00474c80
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x54], 2
call fcn.005ebb1a
lea ecx, [esp + 0x64]
mov byte [esp + 0x50], 1
call fcn.005eb9e1
lea ecx, [esp + 0x60]
push ecx
push 1
lea ecx, [esp + 0x18]
call fcn.005ebe11
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.005ebe60
test edi, edi
je 0x410a40
push edi
call fcn.005cec99
mov esi, eax
add esp, 4
test esi, esi
je 0x410a77
mov edx, dword [esp + 0x60]
push esi
push edi
push edx
push 1
lea ecx, [esp + 0x20]
call fcn.005ebe11
push eax
call sub.VERSION.dll_GetFileVersionInfoA
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.005ebe60
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x6723a0
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.005cebb0
add esp, 4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x50], 0
call fcn.00475990
lea ecx, [esp + 0x10]
mov dword [esp + 0x50], 0xffffffff
call fcn.005eb9e1
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.00475990
lea ecx, [esp + 0x10]
mov dword [esp + 0x50], 0xffffffff
call fcn.005eb9e1
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 0x410af0
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 0x410b0c
test al, 0x10
jne 0x410b0c
mov eax, 1
ret 4
xor eax, eax
ret 4
Function at 0x411ab0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x603dfb
push eax
mov eax, 0x8004
mov dword fs:[0], esp
call fcn.005cfb80
mov eax, dword [0x69cfe8]
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 0x411afd
xor ebp, ebp
jmp 0x411b64
mov ecx, ebx
call fcn.005e9f00
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 0x411b26
xor ebp, ebp
jmp 0x411b64
lea ecx, [esp + 0x10]
call fcn.005eb96c
xor esi, esi
dec edi
test edi, edi
jle 0x411b64
mov al, byte [esp + esi + 0x14]
test al, al
jne 0x411b55
lea edx, [esp + 0x10]
mov ecx, ebx
push edx
call fcn.005ea0ad
lea ecx, [esp + 0x10]
call fcn.005eb96c
jmp 0x411b5f
push eax
lea ecx, [esp + 0x14]
call fcn.005ebde4
inc esi
cmp esi, edi
jl 0x411b36
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x411b7b
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebx
call fcn.005ea0ad
lea ecx, [esp + 0x10]
mov dword [esp + 0x801c], 0xffffffff
call fcn.005eb9e1
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 0x411c4f
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x603e6d
push eax
mov eax, 0x2008
mov dword fs:[0], esp
call fcn.005cfb80
push esi
mov esi, ecx
mov dword [esp + 8], 0
mov dword [esp + 0x2014], 1
mov eax, dword [0x69cfe8]
mov dword [esp + 4], eax
lea ecx, [esp + 4]
mov byte [esp + 0x2014], 4
call fcn.005eb96c
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.005ebb6a
mov esi, dword [esp + 0x201c]
lea eax, [esp + 4]
push eax
mov ecx, esi
call fcn.005eb756
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x2014], 3
call fcn.005eb9e1
lea ecx, [esp + 0x2020]
mov byte [esp + 0x2014], 2
call fcn.005eb9e1
lea ecx, [esp + 0x2024]
mov byte [esp + 0x2014], 1
call fcn.005eb9e1
lea ecx, [esp + 0x2028]
mov byte [esp + 0x2014], 0
call fcn.005eb9e1
mov ecx, dword [esp + 0x200c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2014
ret 0x10
Function at 0x411db0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x603ec9
push eax
mov eax, 0x8014
mov dword fs:[0], esp
call fcn.005cfb80
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov eax, dword [0x69cfe8]
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 0x411e5b
lea ecx, [esp + 0x18]
mov byte [esp + 0x802c], 2
call fcn.005eb9e1
lea ecx, [esp + 0x10]
mov byte [esp + 0x802c], 1
call fcn.005eb9e1
lea ecx, [esp + 0x14]
mov byte [esp + 0x802c], 0
call fcn.005eb9e1
lea ecx, [esp + 0x8034]
mov dword [esp + 0x802c], 0xffffffff
call fcn.005eb9e1
xor eax, eax
jmp 0x411f8c
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 0x411ef5
lea ecx, [esp + 0x14]
call fcn.005eb96c
dec edi
test edi, edi
jle 0x411ef1
mov al, byte [esp + esi + 0x24]
test al, al
jne 0x411ee2
lea ecx, [esp + 0x10]
call fcn.005eb96c
lea ecx, [esp + 0x18]
call fcn.005eb96c
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.005eb756
mov ecx, ebp
call fcn.00411fb0
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call fcn.005ea0ad
lea ecx, [esp + 0x14]
call fcn.005eb96c
jmp 0x411eec
push eax
lea ecx, [esp + 0x18]
call fcn.005ebde4
inc esi
cmp esi, edi
jl 0x411e8f
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 8]
test eax, eax
je 0x411f40
lea ecx, [esp + 0x10]
call fcn.005eb96c
lea ecx, [esp + 0x18]
call fcn.005eb96c
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.005eb756
mov ecx, ebp
call fcn.00411fb0
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
call fcn.005ea0ad
lea ecx, [esp + 0x18]
mov byte [esp + 0x802c], 2
call fcn.005eb9e1
lea ecx, [esp + 0x10]
mov byte [esp + 0x802c], 1
call fcn.005eb9e1
lea ecx, [esp + 0x14]
mov byte [esp + 0x802c], 0
call fcn.005eb9e1
lea ecx, [esp + 0x8034]
mov dword [esp + 0x802c], 0xffffffff
call fcn.005eb9e1
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 0x412c30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x604177
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.005eba4f
mov eax, dword [0x69cfe8]
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.005ebc10
mov bl, 5
push 0x5c
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2c], bl
xor esi, esi
call fcn.005e800d
push 0x6723a0
lea ecx, [esp + 0x3c]
call fcn.005ebdbd
lea ecx, [esp + 8]
lea edx, [esp + 0x38]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
call fcn.005ebc10
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 6
call fcn.005ebb1a
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.005eb9e1
mov ecx, dword [esp + 0xc]
push esi
push ecx
call fcn.005cedd3
add esp, 8
cmp eax, 0xffffffff
je 0x412d8a
cmp esi, 0x7d0
jge 0x412d8a
inc esi
lea edx, [esp + 0x10]
push esi
push str..bak_d
push edx
call fcn.005e7f5e
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x34]
lea edx, [esp + 0x14]
push eax
push ecx
push edx
call fcn.005ebc10
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 7
call fcn.005ebb1a
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.005eb9e1
lea eax, [esp + 8]
lea ecx, [esp + 0x38]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.005ebc10
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 8
call fcn.005ebb1a
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.005eb9e1
mov eax, dword [esp + 0xc]
push 0
push eax
call fcn.005cedd3
add esp, 8
cmp eax, 0xffffffff
jne 0x412cf2
mov esi, dword [esp + 0x30]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.005eb756
mov ebx, 1
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 8]
mov byte [esp + 0x28], 4
call fcn.005eb9e1
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 3
call fcn.005eb9e1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 2
call fcn.005eb9e1
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], bl
call fcn.005eb9e1
lea ecx, [esp + 0x38]
mov byte [esp + 0x28], 0
call fcn.005eb9e1
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc