joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fea20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x94000]
push edi
jmp 0x4fea3a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4fea41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fea30
mov eax, 1
add ebx, ebx
jne 0x4fea53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4fea64
jne 0x4fea83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fea83
dec eax
add ebx, ebx
jne 0x4fea70
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4fea48
add ebx, ebx
jne 0x4fea7f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4fead5
xor ecx, ecx
sub eax, 3
jb 0x4fea9b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4feb0a
sar eax, 1
mov ebp, eax
jmp 0x4feaa6
add ebx, ebx
jne 0x4feaa6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fea74
inc ecx
add ebx, ebx
jne 0x4feab4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fea74
add ebx, ebx
jne 0x4feac1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4feab6
jne 0x4fead2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4feab6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4feaf4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4feae6
jmp 0x4fea36
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4feaf4
add edi, ecx
jmp 0x4fea36
pop esi
mov edi, esi
mov ecx, 0x4052
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4feb12
cmp byte [edi], 0x12
jne 0x4feb12
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 0x4feb17
lea edi, [esi + 0xfb000]
mov eax, dword [edi]
or eax, eax
je 0x4feb8f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x106928]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x106a40]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4feb44
mov ecx, edi
jns 0x4feb73
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x106a44]
or eax, eax
je 0x4feb89
mov dword [ebx], eax
add ebx, 4
jmp 0x4feb61
call dword [esi + 0x106a54]
mov ebp, dword [esi + 0x106a48]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4febc3
sub esp, 0xffffff80
jmp 0x46249a
Function at 0x401230
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42a04f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x436dd0]
push esi
push edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x18], 0
mov esi, edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x24], 1
mov dword [esp + 8], eax
mov dword [esp + 0x30], eax
test edi, edi
mov byte [esp + 0x24], 3
je 0x401319
push ebx
mov bl, 4
lea eax, [esi + 0x38]
lea ecx, [esp + 0x34]
push eax
call fcn.00420f33
lea ecx, [esp + 0x34]
call fcn.004205f7
lea ecx, [esp + 0x34]
call fcn.00420543
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4012bb
lea edx, [esp + 0x34]
lea ecx, [esp + 0xc]
push edx
call fcn.00420f33
jmp 0x40130d
lea eax, [esp + 0x34]
push 0x4343a8
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.0042104e
lea edx, [esp + 0xc]
mov byte [esp + 0x28], bl
push edx
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00420fe8
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 5
call fcn.00420f33
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.00420e46
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 3
call fcn.00420e46
mov esi, dword [esi + 8]
test esi, esi
jne 0x401281
pop ebx
mov ecx, dword [esp + 8]
mov edx, dword [edi + 0x34]
mov eax, dword [str.___s__s_]
push ecx
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.0042044f
mov esi, dword [esp + 0x3c]
add esp, 0x10
lea edx, [esp + 0xc]
mov ecx, esi
push edx
call fcn.00420bbb
mov dword [esp + 0x18], 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 2
call fcn.00420e46
lea ecx, [esp + 8]
mov byte [esp + 0x24], 1
call fcn.00420e46
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call fcn.00420e46
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret

Function at 0x401390
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x42a08f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x436dd0]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea edi, [esi + 0xc]
mov dword [edi], eax
mov ecx, dword [0x436dd0]
lea ebp, [esi + 0x10]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [ebp], ecx
mov dword [esi + 0x14], 0x42c4b8
mov dword [esi + 0x18], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x1c], ebx
lea ecx, [esi + 0x138]
mov byte [esp + 0x1c], 2
call fcn.00404050
mov ecx, ebp
mov byte [esp + 0x1c], 3
mov dword [esi], 0x42c4b4
mov byte [esi + 0x28], 1
mov byte [esi + 4], 0x4e
mov dword [esi + 0x134], ebx
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 8], ebx
call fcn.00420dd1
mov ecx, edi
call fcn.00420dd1
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x406600
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [eax]
lea edi, [0x434aa0]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
lea edx, [esi + ebx]
xor eax, eax
mov bl, byte [esi]
mov al, cl
inc esi
xor al, bl
shr ecx, 8
mov ebx, dword [edi + eax*4]
xor ecx, ebx
cmp edx, esi
jne 0x40661b
pop eax
mov dword [eax], ecx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x406640
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a498
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x20
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.004217fb
lea eax, [ebp - 0x18]
push 8
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00421a75
cmp eax, 8
jne 0x4066cb
cmp dword [ebp - 0x18], 0x434c4646
jne 0x4066cb
lea ecx, [ebp - 0x28]
push ecx
call fcn.00406870
mov ecx, dword [ebp - 0x14]
add esp, 4
cmp ecx, eax
jne 0x4066cb
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.0042189b
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.0042189b
jmp 0x4066ea
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x130]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x20
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x130]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [ebp - 4], 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..bak
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x130]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x28]
call fcn.004217fb
lea ecx, [ebp - 0x18]
push 8
push ecx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00421a75
cmp eax, 8
jne 0x406851
cmp dword [ebp - 0x18], 0x434c4646
jne 0x406851
lea edx, [ebp - 0x28]
push edx
call fcn.00406870
mov ecx, dword [ebp - 0x14]
add esp, 4
cmp ecx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
jne 0x406858
call fcn.0042189b
push 0
lea eax, [ebp - 0x130]
or esi, 0xffffffff
push ebx
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x406819
mov ecx, dword [0x436dd0]
mov dword [ebp + 8], ecx
mov dword [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x434a90
call fcn.0040c2c0
add esp, 4
lea edx, [ebp + 8]
push eax
push edx
call fcn.00420462
mov eax, dword [ebp + 8]
add esp, 0x10
push 0
push 0
push eax
call fcn.00427dee
lea ecx, [ebp + 8]
mov dword [ebp - 4], esi
call fcn.00420e46
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x434a98
call fcn.0040c2c0
add esp, 4
push eax
call fcn.00427dee
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.0042189b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407640
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x42a640
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [esp + 0x38]
push ebp
mov ebp, ecx
push eax
lea ecx, [esp + 8]
call fcn.00420eb4
push str..
lea ecx, [esp + 8]
mov dword [esp + 0x38], 0
call fcn.00421195
lea ecx, [esp + 0x10]
call fcn.00410d02
mov ecx, dword [esp + 4]
push 0
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 1
call fcn.00410dc5
test eax, eax
je 0x40777a
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov bl, 2
lea ecx, [esp + 0x1c]
call fcn.00410fe5
lea edx, [esp + 0x14]
lea ecx, [esp + 0x1c]
push edx
mov esi, eax
call fcn.004110b4
mov eax, dword [esp + 0x1c]
push 0x10
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], bl
call dword [eax + 0x38]
test eax, eax
je 0x4076f9
lea ecx, [esp + 0x1c]
call fcn.00410fac
test eax, eax
jne 0x4076f9
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, ebp
call fcn.00407640
jmp 0x407761
lea edx, [esp + 0x48]
lea ecx, [esp + 0x1c]
push edx
call fcn.004111dd
mov eax, dword [esp + 0x48]
push str.ncstudio.dat
push eax
mov byte [esp + 0x48], 3
call fcn.00412a3f
add esp, 8
test eax, eax
je 0x407738
mov ecx, dword [esp + 0x48]
push str.ncstudio.dat.bak
push ecx
call fcn.00412a3f
add esp, 8
test eax, eax
jne 0x407754
lea edx, [esp + 0x18]
lea ecx, [esp + 0x1c]
push edx
call fcn.004110b4
mov eax, dword [eax]
push eax
call edi
lea ecx, [esp + 0x18]
call fcn.00420e46
lea ecx, [esp + 0x48]
mov byte [esp + 0x40], bl
call fcn.00420e46
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 1
call fcn.00420e46
test esi, esi
jne 0x4076b0
pop edi
pop esi
pop ebx
lea ecx, [esp + 0x10]
call fcn.00410d7b
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 0
call fcn.00410d3f
lea ecx, [esp + 4]
mov dword [esp + 0x34], 0xffffffff
call fcn.00420e46
mov ecx, dword [esp + 0x2c]
pop ebp
mov dword fs:[0], ecx
add esp, 0x34
ret 4
Function at 0x4077c0
Capabilities:
Get common file path
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x42a666
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push esi
mov esi, ecx
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x14]
add esi, 0x1c
push ecx
mov ecx, esi
call fcn.00420f83
push str.Ncstduio
mov ecx, esi
call fcn.00421195
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x43af68
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0040c1c0
push eax
lea ecx, [esp + 0x10]
call fcn.00420eb4
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x118]
push str.setup.cfg
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x230], 0
call fcn.0042104e
mov eax, dword [eax]
lea edx, [esp + 0x118]
push eax
push 0x104
push edx
push 0x43a4b0
push str.PATH
push str.SETTINGS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x10]
call fcn.00420e46
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
call fcn.00420bbb
lea ecx, [esp + 0x118]
mov byte [esp + 0x224], 1
push ecx
lea ecx, [esp + 0xc]
call fcn.00421195
mov edx, dword [esp + 8]
push edx
call fcn.0040c6b0
add esp, 4
lea ecx, [esp + 8]
mov byte [esp + 0x224], 0
call fcn.00420e46
lea ecx, [esp + 0xc]
mov dword [esp + 0x224], 0xffffffff
call fcn.00420e46
mov al, 1
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x220
ret
Function at 0x407920
Capabilities:
Delete file
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x42a6c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3cc
mov eax, dword [0x436dd0]
push esi
push edi
mov esi, ecx
mov dword [esp + 0x20], eax
mov edi, dword [esp + 0x3e4]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x10]
push ecx
push edx
push str.CController
push edi
mov dword [esp + 0x3ec], 0
mov dword [esp + 0x20], 0
call fcn.00406980
add esp, 0x10
test al, al
je 0x407b8e
push edi
lea ecx, [esp + 0xc]
call fcn.00420eb4
lea ecx, [esp + 8]
mov byte [esp + 0x3dc], 1
call fcn.004212ed
push 0x4361f4
push str._ncstudio.dat
lea ecx, [esp + 0x10]
call fcn.0041fd97
add esi, 0x1c
push 0x436244
lea eax, [esp + 0x10]
push esi
push eax
call fcn.0042104e
push 0x5c
lea ecx, [esp + 0xc]
mov byte [esp + 0x3e0], 2
call fcn.004200a7
mov ecx, dword [esp + 8]
lea edx, [esp + 0x18]
mov ecx, dword [ecx - 8]
sub ecx, eax
dec ecx
push ecx
push edx
lea ecx, [esp + 0x10]
call fcn.0041ffb3
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x3e0], 3
call fcn.004211d1
lea ecx, [esp + 0x18]
mov byte [esp + 0x3dc], 2
call fcn.00420e46
call fcn.0040c1c0
push eax
lea ecx, [esp + 0x18]
call fcn.00420eb4
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x2c]
push str.setup.cfg
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x3e8], 4
call fcn.0042104e
mov eax, dword [eax]
lea edx, [esp + 0x2c]
push eax
push 0x104
push edx
push 0x43a4b0
push str.PATH
push str.SETTINGS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x18]
call fcn.00420e46
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
call fcn.0042104e
lea eax, [esp + 0x1c]
push str.ncstudio.fmt
lea ecx, [esp + 0x28]
push eax
push ecx
mov byte [esp + 0x3e8], 5
call fcn.0042104e
mov edx, dword [esp + 0xc]
mov byte [esp + 0x3dc], 6
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x130]
call fcn.00401390
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
push str.CController
lea ecx, [esp + 0x144]
mov byte [esp + 0x3f0], 7
call fcn.00401b40
test al, al
jne 0x407b0c
push 0
push 0
push 0x435048
call fcn.0040c2c0
add esp, 4
push eax
call fcn.00427dee
lea ecx, [esp + 0x130]
call fcn.004016f0
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00420bb0
add esp, 4
lea ecx, [esp + 0x130]
mov byte [esp + 0x3dc], 6
call fcn.00401460
lea ecx, [esp + 0x24]
mov byte [esp + 0x3dc], 5
call fcn.00420e46
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3dc], 4
call fcn.00420e46
lea ecx, [esp + 0x14]
mov byte [esp + 0x3dc], 2
call fcn.00420e46
lea ecx, [esp + 0xc]
mov byte [esp + 0x3dc], 1
call fcn.00420e46
lea ecx, [esp + 8]
mov byte [esp + 0x3dc], 0
call fcn.00420e46
lea ecx, [esp + 0x20]
mov dword [esp + 0x3dc], 0xffffffff
call fcn.00420e46
mov ecx, dword [esp + 0x3d4]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x3d8
ret 4
Function at 0x408a80
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x42a8d7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push ebp
push esi
push edi
call fcn.0040c1c0
push eax
lea ecx, [esp + 0x18]
call fcn.00420eb4
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x124]
push str.setup.cfg
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x23c], 0
call fcn.0042104e
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
lea edx, [esp + 0x128]
push 0x104
push edx
push 0x43a4b0
push str.PATH
push str.SETTINGS
call esi
lea ecx, [esp + 0x18]
call fcn.00420e46
lea eax, [esp + 0x124]
lea ecx, [esp + 0x10]
push eax
call fcn.00420eb4
lea ecx, [esp + 0x10]
mov byte [esp + 0x230], 1
call fcn.004205f7
push 0x436244
lea ecx, [esp + 0x14]
call fcn.0042058f
lea ecx, [esp + 0x10]
call fcn.00420543
push 0x436244
lea ecx, [esp + 0x14]
call fcn.004204ae
lea ecx, [esp + 0x10]
call fcn.004212db
mov ebp, dword [esp + 0x238]
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.00420f33
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.00420fe8
push str.configconfig.ini
lea ecx, [esp + 0x20]
mov byte [esp + 0x234], 2
call fcn.00421195
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], 0
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x1c]
stosw word es:[edi], ax
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x24]
push 0x104
push eax
push 0x43a4b0
push str.VERSION
push str.VERSION
call esi
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x10]
call fcn.00420eb4
push 0x2e
lea ecx, [esp + 0x10]
mov byte [esp + 0x234], 3
call fcn.00421280
cmp eax, 0xffffffff
je 0x408c26
lea edx, [esp + 0x18]
push eax
push edx
lea ecx, [esp + 0x14]
call fcn.0042002f
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x234], 4
call fcn.00420f33
lea ecx, [esp + 0x18]
mov byte [esp + 0x230], 3
call fcn.00420e46
lea ecx, [esp + 0xc]
call fcn.004205f7
lea ecx, [esp + 0xc]
call fcn.00420543
lea ecx, [esp + 0xc]
call fcn.004212db
lea eax, [esp + 0xc]
lea ecx, [ebp + 4]
push eax
call fcn.00420f33
lea ecx, [esp + 0xc]
mov byte [esp + 0x230], 2
call fcn.00420e46
lea ecx, [esp + 0x1c]
mov byte [esp + 0x230], 1
call fcn.00420e46
lea ecx, [esp + 0x10]
mov byte [esp + 0x230], 0
call fcn.00420e46
lea ecx, [esp + 0x14]
mov dword [esp + 0x230], 0xffffffff
call fcn.00420e46
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x228
ret 4
Function at 0x40c1c0
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42ab3b
push eax
mov al, byte [0x43a980]
mov dword fs:[0], esp
sub esp, 0x108
test al, al
jne 0x40c299
push esi
push edi
push 1
lea eax, [esp + 0x10]
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xc]
call fcn.00420eb4
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push 0x104
push edx
push eax
mov dword [esp + 0x124], 0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xc]
call fcn.00420f83
push str.Naiky_
lea ecx, [esp + 0xc]
call fcn.00421195
mov edi, dword [esp + 8]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x118], 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x43a980
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 8]
call fcn.00420e46
pop edi
mov eax, 0x43a980
pop esi
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
add esp, 0x114
ret
mov ecx, dword [esp + 0x108]
mov eax, 0x43a980
mov dword fs:[0], ecx
add esp, 0x114
ret
Function at 0x40c2d0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [0x43ab88]
sub esp, 0x424
push ebx
xor ebx, ebx
cmp eax, ebx
push ebp
jne 0x40c2f5
call fcn.0040c580
mov eax, dword [0x43ab88]
cmp eax, ebx
je 0x40c4de
mov ecx, dword [0x43ab8c]
cmp ecx, ebx
je 0x40c4de
mov ebp, dword [esp + 0x430]
cmp ebp, ebx
jl 0x40c4de
cmp ebp, ecx
jg 0x40c4de
mov eax, dword [eax + ebp*4]
cmp eax, ebx
jne 0x40c4e3
push esi
push edi
lea eax, [esp + 0x14]
push 0xa
push eax
push ebp
call fcn.004138cc
add esp, 0xc
lea ecx, [esp + 0x34]
lea edx, [esp + 0x14]
push 0x43aa84
push 0x400
push ecx
push str._ErrStr_
push edx
push str.STRING
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, eax
mov esi, str._ErrStr_
lea eax, [esp + 0x34]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40c38a
cmp cl, bl
je 0x40c386
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40c38a
add eax, 2
add esi, 2
cmp cl, bl
jne 0x40c366
xor eax, eax
jmp 0x40c38f
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40c3a1
push ebp
push str.ELoad_string__d_failed_n
call fcn.00410a50
add esp, 8
inc edi
push edi
call fcn.004139ce
mov ebp, eax
add esp, 4
mov esi, ebp
lea edi, [esp + 0x34]
mov al, byte [edi]
inc edi
cmp al, 0x5c
jne 0x40c4af
mov al, byte [edi]
inc edi
movsx ecx, al
add ecx, 0xffffffde
cmp ecx, 0x56
ja case.0x40c3d8.45
xor edx, edx
mov dl, byte [ecx + 0x40c51c]
jmp dword [edx*4 + 0x40c4ec]
mov byte [esi], 7
inc esi
jmp 0x40c3b3
mov byte [esi], 8
inc esi
jmp 0x40c3b3
mov byte [esi], 0xc
inc esi
jmp 0x40c3b3
mov byte [esi], 0xa
inc esi
jmp 0x40c3b3
mov byte [esi], 0xd
inc esi
jmp 0x40c3b3
mov byte [esi], 9
inc esi
jmp 0x40c3b3
mov byte [esi], 0xb
inc esi
jmp 0x40c3b3
mov byte [esi], 0x27
inc esi
jmp 0x40c3b3
mov byte [esi], 0x22
inc esi
jmp 0x40c3b3
mov byte [esi], 0x5c
inc esi
jmp 0x40c3b3
mov dword [esp + 0x10], ebx
mov byte [esp + 0x10], al
movsx eax, byte [edi]
push eax
call fcn.00411f06
add esp, 4
test eax, eax
je 0x40c451
mov cl, byte [edi]
inc edi
mov byte [esp + 0x11], cl
movsx edx, byte [edi]
push edx
call fcn.00411f06
add esp, 4
test eax, eax
je 0x40c451
mov al, byte [edi]
inc edi
mov byte [esp + 0x12], al
push 0x10
lea ecx, [esp + 0x14]
push ebx
push ecx
call fcn.00411f89
add esp, 0xc
mov byte [esi], al
inc esi
jmp 0x40c3b3
cmp al, 0x30
jl 0x40c4a7
cmp al, 0x37
jg 0x40c4a7
mov dword [esp + 0x10], ebx
mov byte [esp + 0x10], al
mov al, byte [edi]
cmp al, 0x30
jl 0x40c497
cmp al, 0x37
jg 0x40c497
inc edi
mov byte [esp + 0x11], al
mov al, byte [edi]
cmp al, 0x30
jl 0x40c497
cmp al, 0x37
jg 0x40c497
mov byte [esp + 0x12], al
inc edi
push 8
lea edx, [esp + 0x14]
push ebx
push edx
call fcn.00411f89
add esp, 0xc
mov byte [esi], al
inc esi
jmp 0x40c3b3
mov byte [esi], al
inc esi
cmp al, bl
jne 0x40c3b3
mov ecx, dword [0x43ab88]
mov eax, dword [esp + 0x438]
pop edi
pop esi
mov dword [ecx + eax*4], ebp
mov edx, dword [0x43ab88]
pop ebp
pop ebx
mov eax, dword [edx + eax*4]
add esp, 0x424
ret
mov eax, str._ErrStr_
pop ebp
pop ebx
add esp, 0x424
ret