joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401230
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42922f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x43501c]
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.00420124
lea ecx, [esp + 0x34]
call fcn.0041f7e8
lea ecx, [esp + 0x34]
call fcn.0041f734
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.00420124
jmp 0x40130d
lea eax, [esp + 0x34]
push 0x4333a8
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.0042023f
lea edx, [esp + 0xc]
mov byte [esp + 0x28], bl
push edx
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004201d9
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 5
call fcn.00420124
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.00420037
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 3
call fcn.00420037
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.0041f640
mov esi, dword [esp + 0x3c]
add esp, 0x10
lea edx, [esp + 0xc]
mov ecx, esi
push edx
call fcn.0041fdac
mov dword [esp + 0x18], 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 2
call fcn.00420037
lea ecx, [esp + 8]
mov byte [esp + 0x24], 1
call fcn.00420037
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call fcn.00420037
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 0x42926f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x43501c]
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 [0x43501c]
lea ebp, [esi + 0x10]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [ebp], ecx
mov dword [esi + 0x14], 0x42b4b0
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.00404040
mov ecx, ebp
mov byte [esp + 0x1c], 3
mov dword [esi], 0x42b4ac
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.0041ffc2
mov ecx, edi
call fcn.0041ffc2
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 0x406630
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429678
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.004209ec
lea eax, [ebp - 0x18]
push 8
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00420c66
cmp eax, 8
jne 0x4066bb
cmp dword [ebp - 0x18], 0x434c4646
jne 0x4066bb
lea ecx, [ebp - 0x28]
push ecx
call fcn.00406860
mov ecx, dword [ebp - 0x14]
add esp, 4
cmp ecx, eax
jne 0x4066bb
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00420a8c
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.00420a8c
jmp 0x4066da
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.004209ec
lea ecx, [ebp - 0x18]
push 8
push ecx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.00420c66
cmp eax, 8
jne 0x406841
cmp dword [ebp - 0x18], 0x434c4646
jne 0x406841
lea edx, [ebp - 0x28]
push edx
call fcn.00406860
mov ecx, dword [ebp - 0x14]
add esp, 4
cmp ecx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
jne 0x406848
call fcn.00420a8c
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 0x406809
mov ecx, dword [0x43501c]
mov dword [ebp + 8], ecx
mov dword [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x433a90
call fcn.0040c340
add esp, 4
lea edx, [ebp + 8]
push eax
push edx
call fcn.0041f653
mov eax, dword [ebp + 8]
add esp, 0x10
push 0
push 0
push eax
call fcn.00426fc4
lea ecx, [ebp + 8]
mov dword [ebp - 4], esi
call fcn.00420037
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 0x433a98
call fcn.0040c340
add esp, 4
push eax
call fcn.00426fc4
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.00420a8c
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 0x407630
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x429820
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.004200a5
push str..
lea ecx, [esp + 8]
mov dword [esp + 0x38], 0
call fcn.00420386
lea ecx, [esp + 0x10]
call fcn.00410db3
mov ecx, dword [esp + 4]
push 0
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 1
call fcn.00410e76
test eax, eax
je 0x40776a
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov bl, 2
lea ecx, [esp + 0x1c]
call fcn.00411096
lea edx, [esp + 0x14]
lea ecx, [esp + 0x1c]
push edx
mov esi, eax
call fcn.00411165
mov eax, dword [esp + 0x1c]
push 0x10
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], bl
call dword [eax + 0x38]
test eax, eax
je 0x4076e9
lea ecx, [esp + 0x1c]
call fcn.0041105d
test eax, eax
jne 0x4076e9
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, ebp
call fcn.00407630
jmp 0x407751
lea edx, [esp + 0x48]
lea ecx, [esp + 0x1c]
push edx
call fcn.0041128e
mov eax, dword [esp + 0x48]
push str.ncstudio.dat
push eax
mov byte [esp + 0x48], 3
call fcn.00412a4f
add esp, 8
test eax, eax
je 0x407728
mov ecx, dword [esp + 0x48]
push str.ncstudio.dat.bak
push ecx
call fcn.00412a4f
add esp, 8
test eax, eax
jne 0x407744
lea edx, [esp + 0x18]
lea ecx, [esp + 0x1c]
push edx
call fcn.00411165
mov eax, dword [eax]
push eax
call edi
lea ecx, [esp + 0x18]
call fcn.00420037
lea ecx, [esp + 0x48]
mov byte [esp + 0x40], bl
call fcn.00420037
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 1
call fcn.00420037
test esi, esi
jne 0x4076a0
pop edi
pop esi
pop ebx
lea ecx, [esp + 0x10]
call fcn.00410e2c
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 0
call fcn.00410df0
lea ecx, [esp + 4]
mov dword [esp + 0x34], 0xffffffff
call fcn.00420037
mov ecx, dword [esp + 0x2c]
pop ebp
mov dword fs:[0], ecx
add esp, 0x34
ret 4
Function at 0x4077b0
Capabilities:
Get common file path
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x429846
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.00420174
push str.Ncstduio
mov ecx, esi
call fcn.00420386
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, 0x437198
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.0040c240
push eax
lea ecx, [esp + 0x10]
call fcn.004200a5
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.0042023f
mov eax, dword [eax]
lea edx, [esp + 0x118]
push eax
push 0x104
push edx
push 0x4366e0
push str.PATH
push str.SETTINGS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x10]
call fcn.00420037
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
call fcn.0041fdac
lea ecx, [esp + 0x118]
mov byte [esp + 0x224], 1
push ecx
lea ecx, [esp + 0xc]
call fcn.00420386
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
pop edi
pop esi
test eax, eax
jne 0x40790a
lea ecx, [esp]
mov byte [esp + 0x21c], al
call fcn.00420037
lea ecx, [esp + 4]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00420037
xor al, al
mov ecx, dword [esp + 0x214]
mov dword fs:[0], ecx
add esp, 0x220
ret
mov eax, dword [esp]
push eax
call fcn.0040c730
add esp, 4
lea ecx, [esp]
mov byte [esp + 0x21c], 0
call fcn.00420037
lea ecx, [esp + 4]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00420037
mov ecx, dword [esp + 0x214]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x220
ret
Function at 0x407960
Capabilities:
Delete file
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4298a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3cc
mov eax, dword [0x43501c]
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.00406970
add esp, 0x10
test al, al
je 0x407bce
push edi
lea ecx, [esp + 0xc]
call fcn.004200a5
lea ecx, [esp + 8]
mov byte [esp + 0x3dc], 1
call fcn.004204de
push 0x43438c
push str._ncstudio.dat
lea ecx, [esp + 0x10]
call fcn.0041efcd
add esi, 0x1c
push 0x4343dc
lea eax, [esp + 0x10]
push esi
push eax
call fcn.0042023f
push 0x5c
lea ecx, [esp + 0xc]
mov byte [esp + 0x3e0], 2
call fcn.0041f2dd
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.0041f1e9
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x3e0], 3
call fcn.004203c2
lea ecx, [esp + 0x18]
mov byte [esp + 0x3dc], 2
call fcn.00420037
call fcn.0040c240
push eax
lea ecx, [esp + 0x18]
call fcn.004200a5
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.0042023f
mov eax, dword [eax]
lea edx, [esp + 0x2c]
push eax
push 0x104
push edx
push 0x4366e0
push str.PATH
push str.SETTINGS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x18]
call fcn.00420037
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
call fcn.0042023f
lea eax, [esp + 0x1c]
push str.ncstudio.fmt
lea ecx, [esp + 0x28]
push eax
push ecx
mov byte [esp + 0x3e8], 5
call fcn.0042023f
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 0x407b4c
push 0
push 0
push 0x434048
call fcn.0040c340
add esp, 4
push eax
call fcn.00426fc4
lea ecx, [esp + 0x130]
call fcn.004016f0
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0041fda1
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.00420037
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3dc], 4
call fcn.00420037
lea ecx, [esp + 0x14]
mov byte [esp + 0x3dc], 2
call fcn.00420037
lea ecx, [esp + 0xc]
mov byte [esp + 0x3dc], 1
call fcn.00420037
lea ecx, [esp + 8]
mov byte [esp + 0x3dc], 0
call fcn.00420037
lea ecx, [esp + 0x20]
mov dword [esp + 0x3dc], 0xffffffff
call fcn.00420037
mov ecx, dword [esp + 0x3d4]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x3d8
ret 4
Function at 0x408ac0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x429ab7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push ebp
push esi
push edi
call fcn.0040c240
push eax
lea ecx, [esp + 0x18]
call fcn.004200a5
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.0042023f
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
lea edx, [esp + 0x128]
push 0x104
push edx
push 0x4366e0
push str.PATH
push str.SETTINGS
call esi
lea ecx, [esp + 0x18]
call fcn.00420037
lea eax, [esp + 0x124]
lea ecx, [esp + 0x10]
push eax
call fcn.004200a5
lea ecx, [esp + 0x10]
mov byte [esp + 0x230], 1
call fcn.0041f7e8
push 0x4343dc
lea ecx, [esp + 0x14]
call fcn.0041f780
lea ecx, [esp + 0x10]
call fcn.0041f734
push 0x4343dc
lea ecx, [esp + 0x14]
call fcn.0041f69f
lea ecx, [esp + 0x10]
call fcn.004204cc
mov ebp, dword [esp + 0x238]
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.00420124
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.004201d9
push str.configconfig.ini
lea ecx, [esp + 0x20]
mov byte [esp + 0x234], 2
call fcn.00420386
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 0x4366e0
push str.VERSION
push str.VERSION
call esi
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x10]
call fcn.004200a5
push 0x2e
lea ecx, [esp + 0x10]
mov byte [esp + 0x234], 3
call fcn.00420471
cmp eax, 0xffffffff
je 0x408c66
lea edx, [esp + 0x18]
push eax
push edx
lea ecx, [esp + 0x14]
call fcn.0041f265
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x234], 4
call fcn.00420124
lea ecx, [esp + 0x18]
mov byte [esp + 0x230], 3
call fcn.00420037
lea ecx, [esp + 0xc]
call fcn.0041f7e8
lea ecx, [esp + 0xc]
call fcn.0041f734
lea ecx, [esp + 0xc]
call fcn.004204cc
lea eax, [esp + 0xc]
lea ecx, [ebp + 4]
push eax
call fcn.00420124
lea ecx, [esp + 0xc]
mov byte [esp + 0x230], 2
call fcn.00420037
lea ecx, [esp + 0x1c]
mov byte [esp + 0x230], 1
call fcn.00420037
lea ecx, [esp + 0x10]
mov byte [esp + 0x230], 0
call fcn.00420037
lea ecx, [esp + 0x14]
mov dword [esp + 0x230], 0xffffffff
call fcn.00420037
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x228
ret 4
Function at 0x40c240
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x429d1b
push eax
mov al, byte [0x436bb0]
mov dword fs:[0], esp
sub esp, 0x108
test al, al
jne 0x40c319
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.004200a5
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.00420174
push str.Naiky_
lea ecx, [esp + 0xc]
call fcn.00420386
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, 0x436bb0
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.00420037
pop edi
mov eax, 0x436bb0
pop esi
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
add esp, 0x114
ret
mov ecx, dword [esp + 0x108]
mov eax, 0x436bb0
mov dword fs:[0], ecx
add esp, 0x114
ret
Function at 0x40c350
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [0x436db8]
sub esp, 0x424
push ebx
xor ebx, ebx
cmp eax, ebx
push ebp
jne 0x40c375
call fcn.0040c600
mov eax, dword [0x436db8]
cmp eax, ebx
je 0x40c55e
mov ecx, dword [0x436dbc]
cmp ecx, ebx
je 0x40c55e
mov ebp, dword [esp + 0x430]
cmp ebp, ebx
jl 0x40c55e
cmp ebp, ecx
jg 0x40c55e
mov eax, dword [eax + ebp*4]
cmp eax, ebx
jne 0x40c563
push esi
push edi
lea eax, [esp + 0x14]
push 0xa
push eax
push ebp
call fcn.004138dc
add esp, 0xc
lea ecx, [esp + 0x34]
lea edx, [esp + 0x14]
push 0x436cb4
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 0x40c40a
cmp cl, bl
je 0x40c406
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40c40a
add eax, 2
add esi, 2
cmp cl, bl
jne 0x40c3e6
xor eax, eax
jmp 0x40c40f
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40c421
push ebp
push str.ELoad_string__d_failed_n
call fcn.00410b00
add esp, 8
inc edi
push edi
call fcn.004139de
mov ebp, eax
add esp, 4
mov esi, ebp
lea edi, [esp + 0x34]
mov al, byte [edi]
inc edi
cmp al, 0x5c
jne 0x40c52f
mov al, byte [edi]
inc edi
movsx ecx, al
add ecx, 0xffffffde
cmp ecx, 0x56
ja case.0x40c458.45
xor edx, edx
mov dl, byte [ecx + 0x40c59c]
jmp dword [edx*4 + 0x40c56c]
mov byte [esi], 7
inc esi
jmp 0x40c433
mov byte [esi], 8
inc esi
jmp 0x40c433
mov byte [esi], 0xc
inc esi
jmp 0x40c433
mov byte [esi], 0xa
inc esi
jmp 0x40c433
mov byte [esi], 0xd
inc esi
jmp 0x40c433
mov byte [esi], 9
inc esi
jmp 0x40c433
mov byte [esi], 0xb
inc esi
jmp 0x40c433
mov byte [esi], 0x27
inc esi
jmp 0x40c433
mov byte [esi], 0x22
inc esi
jmp 0x40c433
mov byte [esi], 0x5c
inc esi
jmp 0x40c433
mov dword [esp + 0x10], ebx
mov byte [esp + 0x10], al
movsx eax, byte [edi]
push eax
call fcn.00411fb6
add esp, 4
test eax, eax
je 0x40c4d1
mov cl, byte [edi]
inc edi
mov byte [esp + 0x11], cl
movsx edx, byte [edi]
push edx
call fcn.00411fb6
add esp, 4
test eax, eax
je 0x40c4d1
mov al, byte [edi]
inc edi
mov byte [esp + 0x12], al
push 0x10
lea ecx, [esp + 0x14]
push ebx
push ecx
call fcn.00412039
add esp, 0xc
mov byte [esi], al
inc esi
jmp 0x40c433
cmp al, 0x30
jl 0x40c527
cmp al, 0x37
jg 0x40c527
mov dword [esp + 0x10], ebx
mov byte [esp + 0x10], al
mov al, byte [edi]
cmp al, 0x30
jl 0x40c517
cmp al, 0x37
jg 0x40c517
inc edi
mov byte [esp + 0x11], al
mov al, byte [edi]
cmp al, 0x30
jl 0x40c517
cmp al, 0x37
jg 0x40c517
mov byte [esp + 0x12], al
inc edi
push 8
lea edx, [esp + 0x14]
push ebx
push edx
call fcn.00412039
add esp, 0xc
mov byte [esi], al
inc esi
jmp 0x40c433
mov byte [esi], al
inc esi
cmp al, bl
jne 0x40c433
mov ecx, dword [0x436db8]
mov eax, dword [esp + 0x438]
pop edi
pop esi
mov dword [ecx + eax*4], ebp
mov edx, dword [0x436db8]
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
Function at 0x40c600
Capabilities:
Read .ini file

Disassembly:
push esi
push edi
call fcn.0040c6b0
push 0x104
mov dword [0x436dbc], 0
call fcn.0040c710
push eax
push 0x436cb4
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x436cb4
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov edi, str.Ncstudio.string
or ecx, 0xffffffff
xor eax, eax
push 0x436cb4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edx, ecx
mov edi, 0x436cb4
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
push str.MaxIndex
and ecx, 3
push str.Attribute
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
mov dword [0x436dbc], eax
test eax, eax
pop esi
je 0x40c6a3
inc eax
push 4
push eax
call fcn.00413a6a
push 0x4366e0
mov dword [0x436db8], eax
call fcn.00412397
mov ecx, dword [0x436db8]
add esp, 0xc
mov dword [ecx], eax
mov al, 1
ret

Function at 0x40c730
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x429d51
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
mov eax, dword [0x43501c]
push esi
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x124]
lea ecx, [esp + 4]
push esi
mov dword [esp + 0x120], 0
call fcn.004200a5
push str.Lang_
lea ecx, [esp + 8]
mov byte [esp + 0x120], 1
call fcn.00420386
push esi
lea ecx, [esp + 0xc]
call fcn.004200a5
push str.Lang_
lea ecx, [esp + 0xc]
mov byte [esp + 0x120], 2
call fcn.00420386
push str.Lang.ini
lea ecx, [esp + 0xc]
call fcn.00420386
mov ecx, dword [esp + 4]
mov esi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
push ecx
call esi
test eax, eax
je 0x40c858
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40c7ee
mov edx, dword [esp + 4]
push edx
push 0x4347b4
call fcn.0040c340
add esp, 4
push eax
jmp 0x40c862
mov ecx, dword [esp + 8]
lea edx, [esp + 0x10]
push ecx
push 0x104
push edx
push 0x4366e0
push str.ActiveLang
push str.ActiveLang
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x10]
test al, al
jne 0x40c834
mov eax, dword [esp + 8]
push eax
push 0x4347bc
call fcn.0040c340
add esp, 4
lea ecx, [esp + 0x10]
push eax
push ecx
jmp 0x40c867
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea eax, [esp + 0x10]
lea ecx, [esp + 4]
push eax
call fcn.00420386
mov ecx, dword [esp + 4]
push ecx
call esi
test eax, eax
jne 0x40c87f
mov edx, dword [esp + 4]
push edx
push str.The_path__s__to_specify_language_information_does_not_exist.
lea eax, [esp + 0x14]
push eax
call fcn.0041f640
mov ecx, dword [esp + 0x18]
add esp, 0xc
push 0
push 0x10
push ecx
call fcn.00426fc4
jmp 0x40c896
mov edx, dword [esp + 4]
push 0x104
push edx
push 0x436dc0
call fcn.00412c90
add esp, 0xc
lea ecx, [esp + 8]
mov byte [esp + 0x11c], 1
call fcn.00420037
lea ecx, [esp + 4]
mov byte [esp + 0x11c], 0
call fcn.00420037
lea ecx, [esp + 0xc]
mov dword [esp + 0x11c], 0xffffffff
call fcn.00420037
mov ecx, dword [esp + 0x114]
pop esi
mov dword fs:[0], ecx
add esp, 0x11c
ret
Function at 0x40de40
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x429f19
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebp
push esi
push edi
mov ebp, ecx
push eax
push 0x66
mov dword [esp + 0x14], ebp
call fcn.00410920
add esp, 4
mov ecx, ebp
push eax
call fcn.00421b39
mov ecx, dword [0x43501c]
xor esi, esi
mov dword [esp + 0x18], esi
mov dword [ebp + 0x78], ecx
lea ecx, [ebp + 0x80]
mov byte [esp + 0x18], 1
mov dword [ebp + 0x7c], esi
call fcn.00406b00
mov byte [esp + 0x18], 2
mov dword [ebp], method.CDialog.virtual_0
call fcn.00427f29
call fcn.00427f29
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp + 0x74], eax
lea eax, [ebp + 0x64]
xor edx, edx
mov dword [ebp + 0x60], esi
mov dword [ebp + 0x5c], esi
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov ecx, dword [0x43501c]
mov dword [esp + 0x20], ecx
push 0x104
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 3
call fcn.004203da
mov edi, eax
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0xffffffffffffffff
mov edx, ecx
mov esi, edi
mov edi, 0x437198
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 + 0x24]
call fcn.00420429
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 2
call fcn.00420037
mov ecx, dword [esp + 0x10]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 4