joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406650
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4284d8
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.0041f8fc
lea eax, [ebp - 0x18]
push 8
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0041fb76
cmp eax, 8
jne 0x4066db
cmp dword [ebp - 0x18], 0x434c4646
jne 0x4066db
lea ecx, [ebp - 0x28]
push ecx
call fcn.00406880
mov ecx, dword [ebp - 0x14]
add esp, 4
cmp ecx, eax
jne 0x4066db
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.0041f99c
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.0041f99c
jmp 0x4066fa
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.0041f8fc
lea ecx, [ebp - 0x18]
push 8
push ecx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.0041fb76
cmp eax, 8
jne 0x406861
cmp dword [ebp - 0x18], 0x434c4646
jne 0x406861
lea edx, [ebp - 0x28]
push edx
call fcn.00406880
mov ecx, dword [ebp - 0x14]
add esp, 4
cmp ecx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
jne 0x406868
call fcn.0041f99c
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 0x406829
mov ecx, dword [0x434bac]
mov dword [ebp + 8], ecx
mov dword [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x432a90
call fcn.0040bf70
add esp, 4
lea edx, [ebp + 8]
push eax
push edx
call fcn.0041e563
mov eax, dword [ebp + 8]
add esp, 0x10
push 0
push 0
push eax
call fcn.00425e22
lea ecx, [ebp + 8]
mov dword [ebp - 4], esi
call fcn.0041ef47
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 0x432a98
call fcn.0040bf70
add esp, 4
push eax
call fcn.00425e22
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.0041f99c
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 0x4075e0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x428670
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.0041efb5
push str..
lea ecx, [esp + 8]
mov dword [esp + 0x38], 0
call fcn.0041f296
lea ecx, [esp + 0x10]
call fcn.0040fdf2
mov ecx, dword [esp + 4]
push 0
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 1
call fcn.0040feb5
test eax, eax
je 0x40771a
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov bl, 2
lea ecx, [esp + 0x1c]
call fcn.004100d5
lea edx, [esp + 0x14]
lea ecx, [esp + 0x1c]
push edx
mov esi, eax
call fcn.004101a4
mov eax, dword [esp + 0x1c]
push 0x10
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], bl
call dword [eax + 0x38]
test eax, eax
je 0x407699
lea ecx, [esp + 0x1c]
call fcn.0041009c
test eax, eax
jne 0x407699
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, ebp
call fcn.004075e0
jmp 0x407701
lea edx, [esp + 0x48]
lea ecx, [esp + 0x1c]
push edx
call fcn.004102cd
mov eax, dword [esp + 0x48]
push str.ncstudio.dat
push eax
mov byte [esp + 0x48], 3
call fcn.00411a8f
add esp, 8
test eax, eax
je 0x4076d8
mov ecx, dword [esp + 0x48]
push str.ncstudio.dat.bak
push ecx
call fcn.00411a8f
add esp, 8
test eax, eax
jne 0x4076f4
lea edx, [esp + 0x18]
lea ecx, [esp + 0x1c]
push edx
call fcn.004101a4
mov eax, dword [eax]
push eax
call edi
lea ecx, [esp + 0x18]
call fcn.0041ef47
lea ecx, [esp + 0x48]
mov byte [esp + 0x40], bl
call fcn.0041ef47
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 1
call fcn.0041ef47
test esi, esi
jne 0x407650
pop edi
pop esi
pop ebx
lea ecx, [esp + 0x10]
call fcn.0040fe6b
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 0
call fcn.0040fe2f
lea ecx, [esp + 4]
mov dword [esp + 0x34], 0xffffffff
call fcn.0041ef47
mov ecx, dword [esp + 0x2c]
pop ebp
mov dword fs:[0], ecx
add esp, 0x34
ret 4
Function at 0x407760
Capabilities:
Get common file path
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x428696
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.0041f084
push str.Ncstduio
mov ecx, esi
call fcn.0041f296
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, 0x436d28
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.0040be70
push eax
lea ecx, [esp + 0x10]
call fcn.0041efb5
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.0041f14f
mov eax, dword [eax]
lea edx, [esp + 0x118]
push eax
push 0x104
push edx
push 0x436270
push str.PATH
push str.SETTINGS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x10]
call fcn.0041ef47
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
call fcn.0041ecbc
lea ecx, [esp + 0x118]
mov byte [esp + 0x224], 1
push ecx
lea ecx, [esp + 0xc]
call fcn.0041f296
mov edx, dword [esp + 8]
push edx
call fcn.0040c360
add esp, 4
lea ecx, [esp + 8]
mov byte [esp + 0x224], 0
call fcn.0041ef47
lea ecx, [esp + 0xc]
mov dword [esp + 0x224], 0xffffffff
call fcn.0041ef47
mov al, 1
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x220
ret
Function at 0x4078c0
Capabilities:
Delete file
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4286f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3cc
mov eax, dword [0x434bac]
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.00406990
add esp, 0x10
test al, al
je 0x407b2e
push edi
lea ecx, [esp + 0xc]
call fcn.0041efb5
lea ecx, [esp + 8]
mov byte [esp + 0x3dc], 1
call fcn.0041f3ee
push 0x4341f4
push str._ncstudio.dat
lea ecx, [esp + 0x10]
call fcn.0041dedd
add esi, 0x1c
push 0x434244
lea eax, [esp + 0x10]
push esi
push eax
call fcn.0041f14f
push 0x5c
lea ecx, [esp + 0xc]
mov byte [esp + 0x3e0], 2
call fcn.0041e1ed
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.0041e0f9
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x3e0], 3
call fcn.0041f2d2
lea ecx, [esp + 0x18]
mov byte [esp + 0x3dc], 2
call fcn.0041ef47
call fcn.0040be70
push eax
lea ecx, [esp + 0x18]
call fcn.0041efb5
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.0041f14f
mov eax, dword [eax]
lea edx, [esp + 0x2c]
push eax
push 0x104
push edx
push 0x436270
push str.PATH
push str.SETTINGS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x18]
call fcn.0041ef47
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
call fcn.0041f14f
lea eax, [esp + 0x1c]
push str.ncstudio.fmt
lea ecx, [esp + 0x28]
push eax
push ecx
mov byte [esp + 0x3e8], 5
call fcn.0041f14f
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 0x407aac
push 0
push 0
push 0x433048
call fcn.0040bf70
add esp, 4
push eax
call fcn.00425e22
lea ecx, [esp + 0x130]
call fcn.004016f0
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0041ecb1
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.0041ef47
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3dc], 4
call fcn.0041ef47
lea ecx, [esp + 0x14]
mov byte [esp + 0x3dc], 2
call fcn.0041ef47
lea ecx, [esp + 0xc]
mov byte [esp + 0x3dc], 1
call fcn.0041ef47
lea ecx, [esp + 8]
mov byte [esp + 0x3dc], 0
call fcn.0041ef47
lea ecx, [esp + 0x20]
mov dword [esp + 0x3dc], 0xffffffff
call fcn.0041ef47
mov ecx, dword [esp + 0x3d4]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x3d8
ret 4
Function at 0x408a20
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x428907
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push ebp
push esi
push edi
call fcn.0040be70
push eax
lea ecx, [esp + 0x18]
call fcn.0041efb5
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.0041f14f
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
lea edx, [esp + 0x128]
push 0x104
push edx
push 0x436270
push str.PATH
push str.SETTINGS
call esi
lea ecx, [esp + 0x18]
call fcn.0041ef47
lea eax, [esp + 0x124]
lea ecx, [esp + 0x10]
push eax
call fcn.0041efb5
lea ecx, [esp + 0x10]
mov byte [esp + 0x230], 1
call fcn.0041e6f8
push 0x434244
lea ecx, [esp + 0x14]
call fcn.0041e690
lea ecx, [esp + 0x10]
call fcn.0041e644
push 0x434244
lea ecx, [esp + 0x14]
call fcn.0041e5af
lea ecx, [esp + 0x10]
call fcn.0041f3dc
mov ebp, dword [esp + 0x238]
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.0041f034
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.0041f0e9
push str.configconfig.ini
lea ecx, [esp + 0x20]
mov byte [esp + 0x234], 2
call fcn.0041f296
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 0x436270
push str.VERSION
push str.VERSION
call esi
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x10]
call fcn.0041efb5
push 0x2e
lea ecx, [esp + 0x10]
mov byte [esp + 0x234], 3
call fcn.0041f381
cmp eax, 0xffffffff
je 0x408bc6
lea edx, [esp + 0x18]
push eax
push edx
lea ecx, [esp + 0x14]
call fcn.0041e175
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x234], 4
call fcn.0041f034
lea ecx, [esp + 0x18]
mov byte [esp + 0x230], 3
call fcn.0041ef47
lea ecx, [esp + 0xc]
call fcn.0041e6f8
lea ecx, [esp + 0xc]
call fcn.0041e644
lea ecx, [esp + 0xc]
call fcn.0041f3dc
lea eax, [esp + 0xc]
lea ecx, [ebp + 4]
push eax
call fcn.0041f034
lea ecx, [esp + 0xc]
mov byte [esp + 0x230], 2
call fcn.0041ef47
lea ecx, [esp + 0x1c]
mov byte [esp + 0x230], 1
call fcn.0041ef47
lea ecx, [esp + 0x10]
mov byte [esp + 0x230], 0
call fcn.0041ef47
lea ecx, [esp + 0x14]
mov dword [esp + 0x230], 0xffffffff
call fcn.0041ef47
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x228
ret 4
Function at 0x40be70
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x428b1b
push eax
mov al, byte [0x436740]
mov dword fs:[0], esp
sub esp, 0x108
test al, al
jne 0x40bf49
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.0041efb5
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.0041f084
push str.Naiky_
lea ecx, [esp + 0xc]
call fcn.0041f296
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, 0x436740
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.0041ef47
pop edi
mov eax, 0x436740
pop esi
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
add esp, 0x114
ret
mov ecx, dword [esp + 0x108]
mov eax, 0x436740
mov dword fs:[0], ecx
add esp, 0x114
ret
Function at 0x40bf80
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [0x436948]
sub esp, 0x424
push ebx
xor ebx, ebx
cmp eax, ebx
push ebp
jne 0x40bfa5
call fcn.0040c230
mov eax, dword [0x436948]
cmp eax, ebx
je 0x40c18e
mov ecx, dword [0x43694c]
cmp ecx, ebx
je 0x40c18e
mov ebp, dword [esp + 0x430]
cmp ebp, ebx
jl 0x40c18e
cmp ebp, ecx
jg 0x40c18e
mov eax, dword [eax + ebp*4]
cmp eax, ebx
jne 0x40c193
push esi
push edi
lea eax, [esp + 0x14]
push 0xa
push eax
push ebp
call fcn.0041291c
add esp, 0xc
lea ecx, [esp + 0x34]
lea edx, [esp + 0x14]
push 0x436844
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 0x40c03a
cmp cl, bl
je 0x40c036
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40c03a
add eax, 2
add esi, 2
cmp cl, bl
jne 0x40c016
xor eax, eax
jmp 0x40c03f
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40c051
push ebp
push str.ELoad_string__d_failed_n
call fcn.0040fb40
add esp, 8
inc edi
push edi
call fcn.00412a1e
mov ebp, eax
add esp, 4
mov esi, ebp
lea edi, [esp + 0x34]
mov al, byte [edi]
inc edi
cmp al, 0x5c
jne 0x40c15f
mov al, byte [edi]
inc edi
movsx ecx, al
add ecx, 0xffffffde
cmp ecx, 0x56
ja case.0x40c088.45
xor edx, edx
mov dl, byte [ecx + 0x40c1cc]
jmp dword [edx*4 + 0x40c19c]
mov byte [esi], 7
inc esi
jmp 0x40c063
mov byte [esi], 8
inc esi
jmp 0x40c063
mov byte [esi], 0xc
inc esi
jmp 0x40c063
mov byte [esi], 0xa
inc esi
jmp 0x40c063
mov byte [esi], 0xd
inc esi
jmp 0x40c063
mov byte [esi], 9
inc esi
jmp 0x40c063
mov byte [esi], 0xb
inc esi
jmp 0x40c063
mov byte [esi], 0x27
inc esi
jmp 0x40c063
mov byte [esi], 0x22
inc esi
jmp 0x40c063
mov byte [esi], 0x5c
inc esi
jmp 0x40c063
mov dword [esp + 0x10], ebx
mov byte [esp + 0x10], al
movsx eax, byte [edi]
push eax
call fcn.00410ff6
add esp, 4
test eax, eax
je 0x40c101
mov cl, byte [edi]
inc edi
mov byte [esp + 0x11], cl
movsx edx, byte [edi]
push edx
call fcn.00410ff6
add esp, 4
test eax, eax
je 0x40c101
mov al, byte [edi]
inc edi
mov byte [esp + 0x12], al
push 0x10
lea ecx, [esp + 0x14]
push ebx
push ecx
call fcn.00411079
add esp, 0xc
mov byte [esi], al
inc esi
jmp 0x40c063
cmp al, 0x30
jl 0x40c157
cmp al, 0x37
jg 0x40c157
mov dword [esp + 0x10], ebx
mov byte [esp + 0x10], al
mov al, byte [edi]
cmp al, 0x30
jl 0x40c147
cmp al, 0x37
jg 0x40c147
inc edi
mov byte [esp + 0x11], al
mov al, byte [edi]
cmp al, 0x30
jl 0x40c147
cmp al, 0x37
jg 0x40c147
mov byte [esp + 0x12], al
inc edi
push 8
lea edx, [esp + 0x14]
push ebx
push edx
call fcn.00411079
add esp, 0xc
mov byte [esi], al
inc esi
jmp 0x40c063
mov byte [esi], al
inc esi
cmp al, bl
jne 0x40c063
mov ecx, dword [0x436948]
mov eax, dword [esp + 0x438]
pop edi
pop esi
mov dword [ecx + eax*4], ebp
mov edx, dword [0x436948]
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 0x40c230
Capabilities:
Read .ini file

Disassembly:
push esi
push edi
call fcn.0040c2e0
push 0x104
mov dword [0x43694c], 0
call fcn.0040c340
push eax
push 0x436844
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x436844
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov edi, str.Ncstudio.string
or ecx, 0xffffffff
xor eax, eax
push 0x436844
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edx, ecx
mov edi, 0x436844
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 [0x43694c], eax
test eax, eax
pop esi
je 0x40c2d3
inc eax
push 4
push eax
call fcn.00412aaa
push 0x436270
mov dword [0x436948], eax
call fcn.004113d7
mov ecx, dword [0x436948]
add esp, 0xc
mov dword [ecx], eax
mov al, 1
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x428b51
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
mov eax, dword [0x434bac]
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.0041efb5
push str.Lang_
lea ecx, [esp + 8]
mov byte [esp + 0x120], 1
call fcn.0041f296
push esi
lea ecx, [esp + 0xc]
call fcn.0041efb5
push str.Lang_
lea ecx, [esp + 0xc]
mov byte [esp + 0x120], 2
call fcn.0041f296
push str.Lang.ini
lea ecx, [esp + 0xc]
call fcn.0041f296
mov ecx, dword [esp + 4]
mov esi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
push ecx
call esi
test eax, eax
je 0x40c488
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40c41e
mov edx, dword [esp + 4]
push edx
push 0x434534
call fcn.0040bf70
add esp, 4
push eax
jmp 0x40c492
mov ecx, dword [esp + 8]
lea edx, [esp + 0x10]
push ecx
push 0x104
push edx
push 0x436270
push str.ActiveLang
push str.ActiveLang
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x10]
test al, al
jne 0x40c464
mov eax, dword [esp + 8]
push eax
push 0x43453c
call fcn.0040bf70
add esp, 4
lea ecx, [esp + 0x10]
push eax
push ecx
jmp 0x40c497
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.0041f296
mov ecx, dword [esp + 4]
push ecx
call esi
test eax, eax
jne 0x40c4af
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.0041e550
mov ecx, dword [esp + 0x18]
add esp, 0xc
push 0
push 0x10
push ecx
call fcn.00425e22
jmp 0x40c4c6
mov edx, dword [esp + 4]
push 0x104
push edx
push 0x436950
call fcn.00411cd0
add esp, 0xc
lea ecx, [esp + 8]
mov byte [esp + 0x11c], 1
call fcn.0041ef47
lea ecx, [esp + 4]
mov byte [esp + 0x11c], 0
call fcn.0041ef47
lea ecx, [esp + 0xc]
mov dword [esp + 0x11c], 0xffffffff
call fcn.0041ef47
mov ecx, dword [esp + 0x114]
pop esi
mov dword fs:[0], ecx
add esp, 0x11c
ret
Function at 0x40da50
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x428d16
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.0040f960
add esp, 4
mov ecx, ebp
push eax
call fcn.00420997
mov ecx, dword [0x434bac]
xor esi, esi
mov dword [esp + 0x18], esi
mov dword [ebp + 0x78], ecx
lea ecx, [ebp + 0x7c]
mov byte [esp + 0x18], 1
call fcn.00406b20
mov byte [esp + 0x18], 2
mov dword [ebp], method.CDialog.virtual_0
call fcn.00426d91
call fcn.00426d91
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 [0x434bac]
mov dword [esp + 0x20], ecx
push 0x104
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 3
call fcn.0041f2ea
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, 0x436d28
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.0041f339
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 2
call fcn.0041ef47
mov ecx, dword [esp + 0x10]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x40eb20
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x428dcb
push eax
mov al, byte [0x436c1c]
mov dword fs:[0], esp
sub esp, 0x108
test al, al
jne 0x40ebf9
push esi
push edi
push 1
lea eax, [esp + 0x10]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xc]
call fcn.0041efb5
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.0041f084
push 0x434244
lea ecx, [esp + 0xc]
call fcn.0041f296
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, 0x436c1c
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.0041ef47
pop edi
mov eax, 0x436c1c
pop esi
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
add esp, 0x114
ret
mov ecx, dword [esp + 0x108]
mov eax, 0x436c1c
mov dword fs:[0], ecx
add esp, 0x114
ret

Function at 0x40ec20
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x428deb
push eax
mov al, byte [0x436b18]
mov dword fs:[0], esp
sub esp, 0x108
test al, al
jne 0x40ecf9
push esi
push edi
push 1
lea eax, [esp + 0x10]
push 2
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xc]
call fcn.0041efb5
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.0041f084
push 0x434244
lea ecx, [esp + 0xc]
call fcn.0041f296
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, 0x436b18
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.0041ef47
pop edi
mov eax, 0x436b18
pop esi
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
add esp, 0x114
ret
mov ecx, dword [esp + 0x108]
mov eax, 0x436b18
mov dword fs:[0], ecx
add esp, 0x114
ret
Function at 0x40ed90
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
call fcn.0040ed20
test al, al
je 0x40edf0
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0x14
ret