joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407960
Capabilities:
Delete file
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x429898
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3cc
mov eax, dword [0x434f48]
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.00420095
lea ecx, [esp + 8]
mov byte [esp + 0x3dc], 1
call fcn.004204ce
push 0x43435c
push str._ncstudio.dat
lea ecx, [esp + 0x10]
call fcn.0041efbd
add esi, 0x1c
push 0x4343ac
lea eax, [esp + 0x10]
push esi
push eax
call fcn.0042022f
push 0x5c
lea ecx, [esp + 0xc]
mov byte [esp + 0x3e0], 2
call fcn.0041f2cd
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.0041f1d9
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x3e0], 3
call fcn.004203b2
lea ecx, [esp + 0x18]
mov byte [esp + 0x3dc], 2
call fcn.00420027
call fcn.0040c240
push eax
lea ecx, [esp + 0x18]
call fcn.00420095
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.0042022f
mov eax, dword [eax]
lea edx, [esp + 0x2c]
push eax
push 0x104
push edx
push 0x436600
push str.PATH
push str.SETTINGS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x18]
call fcn.00420027
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
call fcn.0042022f
lea eax, [esp + 0x1c]
push str.ncstudio.fmt
lea ecx, [esp + 0x28]
push eax
push ecx
mov byte [esp + 0x3e8], 5
call fcn.0042022f
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.00426fb4
lea ecx, [esp + 0x130]
call fcn.004016f0
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0041fd91
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.00420027
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3dc], 4
call fcn.00420027
lea ecx, [esp + 0x14]
mov byte [esp + 0x3dc], 2
call fcn.00420027
lea ecx, [esp + 0xc]
mov byte [esp + 0x3dc], 1
call fcn.00420027
lea ecx, [esp + 8]
mov byte [esp + 0x3dc], 0
call fcn.00420027
lea ecx, [esp + 0x20]
mov dword [esp + 0x3dc], 0xffffffff
call fcn.00420027
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 0x429aa7
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.00420095
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.0042022f
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
lea edx, [esp + 0x128]
push 0x104
push edx
push 0x436600
push str.PATH
push str.SETTINGS
call esi
lea ecx, [esp + 0x18]
call fcn.00420027
lea eax, [esp + 0x124]
lea ecx, [esp + 0x10]
push eax
call fcn.00420095
lea ecx, [esp + 0x10]
mov byte [esp + 0x230], 1
call fcn.0041f7d8
push 0x4343ac
lea ecx, [esp + 0x14]
call fcn.0041f770
lea ecx, [esp + 0x10]
call fcn.0041f724
push 0x4343ac
lea ecx, [esp + 0x14]
call fcn.0041f68f
lea ecx, [esp + 0x10]
call fcn.004204bc
mov ebp, dword [esp + 0x238]
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.00420114
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.004201c9
push str.configconfig.ini
lea ecx, [esp + 0x20]
mov byte [esp + 0x234], 2
call fcn.00420376
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 0x436600
push str.VERSION
push str.VERSION
call esi
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x10]
call fcn.00420095
push 0x2e
lea ecx, [esp + 0x10]
mov byte [esp + 0x234], 3
call fcn.00420461
cmp eax, 0xffffffff
je 0x408c66
lea edx, [esp + 0x18]
push eax
push edx
lea ecx, [esp + 0x14]
call fcn.0041f255
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x234], 4
call fcn.00420114
lea ecx, [esp + 0x18]
mov byte [esp + 0x230], 3
call fcn.00420027
lea ecx, [esp + 0xc]
call fcn.0041f7d8
lea ecx, [esp + 0xc]
call fcn.0041f724
lea ecx, [esp + 0xc]
call fcn.004204bc
lea eax, [esp + 0xc]
lea ecx, [ebp + 4]
push eax
call fcn.00420114
lea ecx, [esp + 0xc]
mov byte [esp + 0x230], 2
call fcn.00420027
lea ecx, [esp + 0x1c]
mov byte [esp + 0x230], 1
call fcn.00420027
lea ecx, [esp + 0x10]
mov byte [esp + 0x230], 0
call fcn.00420027
lea ecx, [esp + 0x14]
mov dword [esp + 0x230], 0xffffffff
call fcn.00420027
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 0x429d0b
push eax
mov al, byte [0x436ad0]
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.00420095
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.00420164
push str.Naiky_
lea ecx, [esp + 0xc]
call fcn.00420376
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, 0x436ad0
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.00420027
pop edi
mov eax, 0x436ad0
pop esi
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
add esp, 0x114
ret
mov ecx, dword [esp + 0x108]
mov eax, 0x436ad0
mov dword fs:[0], ecx
add esp, 0x114
ret
Function at 0x40c350
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [0x436cd8]
sub esp, 0x424
push ebx
xor ebx, ebx
cmp eax, ebx
push ebp
jne 0x40c375
call fcn.0040c600
mov eax, dword [0x436cd8]
cmp eax, ebx
je 0x40c55e
mov ecx, dword [0x436cdc]
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.004138cc
add esp, 0xc
lea ecx, [esp + 0x34]
lea edx, [esp + 0x14]
push 0x436bd4
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.00410af0
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 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.00411fa6
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.00411fa6
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.00412029
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.00412029
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 [0x436cd8]
mov eax, dword [esp + 0x438]
pop edi
pop esi
mov dword [ecx + eax*4], ebp
mov edx, dword [0x436cd8]
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 [0x436cdc], 0
call fcn.0040c710
push eax
push 0x436bd4
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x436bd4
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov edi, str.Ncstudio.string
or ecx, 0xffffffff
xor eax, eax
push 0x436bd4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edx, ecx
mov edi, 0x436bd4
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 [0x436cdc], eax
test eax, eax
pop esi
je 0x40c6a3
inc eax
push 4
push eax
call fcn.00413a5a
push 0x436600
mov dword [0x436cd8], eax
call fcn.00412387
mov ecx, dword [0x436cd8]
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 0x429d41
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
mov eax, dword [0x434f48]
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.00420095
push str.Lang_
lea ecx, [esp + 8]
mov byte [esp + 0x120], 1
call fcn.00420376
push esi
lea ecx, [esp + 0xc]
call fcn.00420095
push str.Lang_
lea ecx, [esp + 0xc]
mov byte [esp + 0x120], 2
call fcn.00420376
push str.Lang.ini
lea ecx, [esp + 0xc]
call fcn.00420376
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 0x434784
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 0x436600
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 0x43478c
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.00420376
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.0041f630
mov ecx, dword [esp + 0x18]
add esp, 0xc
push 0
push 0x10
push ecx
call fcn.00426fb4
jmp 0x40c896
mov edx, dword [esp + 4]
push 0x104
push edx
push 0x436ce0
call fcn.00412c80
add esp, 0xc
lea ecx, [esp + 8]
mov byte [esp + 0x11c], 1
call fcn.00420027
lea ecx, [esp + 4]
mov byte [esp + 0x11c], 0
call fcn.00420027
lea ecx, [esp + 0xc]
mov dword [esp + 0x11c], 0xffffffff
call fcn.00420027
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 0x429f09
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.00410910
add esp, 4
mov ecx, ebp
push eax
call fcn.00421b29
mov ecx, dword [0x434f48]
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.00427f19
call fcn.00427f19
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 [0x434f48]
mov dword [esp + 0x20], ecx
push 0x104
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 3
call fcn.004203ca
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, 0x4370b8
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.00420419
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 2
call fcn.00420027
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 0x40f130
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x429feb
push eax
mov al, byte [0x436fac]
mov dword fs:[0], esp
sub esp, 0x108
test al, al
jne 0x40f209
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.00420095
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.00420164
push 0x4343ac
lea ecx, [esp + 0xc]
call fcn.00420376
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, 0x436fac
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.00420027
pop edi
mov eax, 0x436fac
pop esi
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
add esp, 0x114
ret
mov ecx, dword [esp + 0x108]
mov eax, 0x436fac
mov dword fs:[0], ecx
add esp, 0x114
ret

Function at 0x40f230
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42a00b
push eax
mov al, byte [0x436ea8]
mov dword fs:[0], esp
sub esp, 0x108
test al, al
jne 0x40f309
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.00420095
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.00420164
push 0x4343ac
lea ecx, [esp + 0xc]
call fcn.00420376
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, 0x436ea8
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.00420027
pop edi
mov eax, 0x436ea8
pop esi
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
add esp, 0x114
ret
mov ecx, dword [esp + 0x108]
mov eax, 0x436ea8
mov dword fs:[0], ecx
add esp, 0x114
ret
Function at 0x40f3a0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
call fcn.0040f330
test al, al
je 0x40f400
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
Function at 0x40fc30
Capabilities:
Create directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42a128
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
push esi
call edi
test eax, eax
jne 0x40fd12
push esi
lea ecx, [esp + 0x28]
call fcn.00420095
mov eax, dword [0x434f48]
xor esi, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0xc], eax
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esp + 0x1c], 1
push esi
push 0x4343ac
lea ecx, [esp + 0x2c]
call fcn.0041f2fd
mov esi, eax
cmp esi, 0xffffffff
je 0x40fce0
lea ecx, [esp + 0x10]
push esi
push ecx
lea ecx, [esp + 0x2c]
call fcn.0041f255
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 2
call fcn.00420114
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 1
call fcn.00420027
mov edx, dword [esp + 0xc]
push edx
call edi
test eax, eax
jne 0x40fcdd
push eax
mov eax, dword [esp + 0x10]
push eax
call ebp
test eax, eax
je 0x40fcf3
inc esi
jmp 0x40fc84
mov ecx, dword [esp + 0x24]
push ecx
call edi
test eax, eax
jne 0x40fcf3
mov edx, dword [esp + 0x24]
push eax
push edx
call ebp
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 0
call fcn.00420027
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00420027
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x40fd90
Capabilities:
Check if file exists

Disassembly:
mov al, byte [0x4370b0]
sub esp, 0x104
test al, al
jne 0x40fe01
mov eax, dword [str.a:cfinfo.sys]
mov ecx, dword [0x434e40]
mov edx, dword [0x434e44]
mov dword [esp], eax
mov ax, word [0x434e48]
push ebx
push esi
push edi
mov dword [esp + 0x10], ecx
mov word [esp + 0x18], ax
mov ecx, 0x3d
xor eax, eax
lea edi, [esp + 0x1a]
mov dword [esp + 0x14], edx
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov bl, 0x64
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xc]
mov byte [esp + 0xc], bl
push ecx
call esi
test eax, eax
jne 0x40fdf7
inc bl
cmp bl, 0x7a
jle 0x40fde1
mov al, bl
pop edi
pop esi
mov byte [0x4370b0], al
pop ebx
add esp, 0x104
ret
Function at 0x410750
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x42a228
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov al, byte [esp + 0x18]
push ebx
push ebp
lea ecx, [esp + 0x20]
push esi
push ecx
mov byte [esp + 0x28], al
call fcn.00413bf0
mov ebp, dword [esp + 0x24]
add esp, 4
mov bl, byte [ebp]
movsx esi, bl
sub esi, 0x41
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, esi
shr eax, cl
test eax, eax
mov dword [esp + 0xc], eax
je 0x410800
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test al, 1
je 0x4107f6
cmp bl, byte [esp + 0x24]
je 0x4107f6
mov edx, dword [0x434f48]
mov dword [esp + 0x20], edx
movsx eax, bl
push eax
lea ecx, [esp + 0x24]
push 0x434eb8
push ecx
mov dword [esp + 0x24], 0
call fcn.0041f630
mov edx, dword [esp + 0x2c]
add esp, 0xc
push edx
call esi
cmp eax, 3
je 0x410814
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.00420027
mov eax, dword [esp + 0xc]
inc bl
shr eax, 1
mov dword [esp + 0xc], eax
jne 0x4107a3
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea ecx, [esp + 0x20]
mov byte [ebp], bl
mov dword [esp + 0x18], 0xffffffff
call fcn.00420027
mov ecx, dword [esp + 0x10]
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x41398f
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4139ba
test byte [esp + 8], 0x80
je 0x4139a9
and al, 0xfe
jmp 0x4139ab
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4139cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00414b93
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret