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

Disassembly:
push 0xffffffffffffffff
push 0x429888
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3cc
mov eax, dword [0x435dd0]
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.00420085
lea ecx, [esp + 8]
mov byte [esp + 0x3dc], 1
call fcn.004204be
push 0x4351f4
push str._ncstudio.dat
lea ecx, [esp + 0x10]
call fcn.0041efad
add esi, 0x1c
push 0x435244
lea eax, [esp + 0x10]
push esi
push eax
call fcn.0042021f
push 0x5c
lea ecx, [esp + 0xc]
mov byte [esp + 0x3e0], 2
call fcn.0041f2bd
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.0041f1c9
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x3e0], 3
call fcn.004203a2
lea ecx, [esp + 0x18]
mov byte [esp + 0x3dc], 2
call fcn.00420017
call fcn.0040c240
push eax
lea ecx, [esp + 0x18]
call fcn.00420085
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.0042021f
mov eax, dword [eax]
lea edx, [esp + 0x2c]
push eax
push 0x104
push edx
push 0x437490
push str.PATH
push str.SETTINGS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x18]
call fcn.00420017
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
call fcn.0042021f
lea eax, [esp + 0x1c]
push str.ncstudio.fmt
lea ecx, [esp + 0x28]
push eax
push ecx
mov byte [esp + 0x3e8], 5
call fcn.0042021f
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.00426fa4
lea ecx, [esp + 0x130]
call fcn.004016f0
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0041fd81
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.00420017
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3dc], 4
call fcn.00420017
lea ecx, [esp + 0x14]
mov byte [esp + 0x3dc], 2
call fcn.00420017
lea ecx, [esp + 0xc]
mov byte [esp + 0x3dc], 1
call fcn.00420017
lea ecx, [esp + 8]
mov byte [esp + 0x3dc], 0
call fcn.00420017
lea ecx, [esp + 0x20]
mov dword [esp + 0x3dc], 0xffffffff
call fcn.00420017
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 0x429a97
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.00420085
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.0042021f
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
lea edx, [esp + 0x128]
push 0x104
push edx
push 0x437490
push str.PATH
push str.SETTINGS
call esi
lea ecx, [esp + 0x18]
call fcn.00420017
lea eax, [esp + 0x124]
lea ecx, [esp + 0x10]
push eax
call fcn.00420085
lea ecx, [esp + 0x10]
mov byte [esp + 0x230], 1
call fcn.0041f7c8
push 0x435244
lea ecx, [esp + 0x14]
call fcn.0041f760
lea ecx, [esp + 0x10]
call fcn.0041f714
push 0x435244
lea ecx, [esp + 0x14]
call fcn.0041f67f
lea ecx, [esp + 0x10]
call fcn.004204ac
mov ebp, dword [esp + 0x238]
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.00420104
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.004201b9
push str.configconfig.ini
lea ecx, [esp + 0x20]
mov byte [esp + 0x234], 2
call fcn.00420366
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 0x437490
push str.VERSION
push str.VERSION
call esi
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x10]
call fcn.00420085
push 0x2e
lea ecx, [esp + 0x10]
mov byte [esp + 0x234], 3
call fcn.00420451
cmp eax, 0xffffffff
je 0x408c66
lea edx, [esp + 0x18]
push eax
push edx
lea ecx, [esp + 0x14]
call fcn.0041f245
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x234], 4
call fcn.00420104
lea ecx, [esp + 0x18]
mov byte [esp + 0x230], 3
call fcn.00420017
lea ecx, [esp + 0xc]
call fcn.0041f7c8
lea ecx, [esp + 0xc]
call fcn.0041f714
lea ecx, [esp + 0xc]
call fcn.004204ac
lea eax, [esp + 0xc]
lea ecx, [ebp + 4]
push eax
call fcn.00420104
lea ecx, [esp + 0xc]
mov byte [esp + 0x230], 2
call fcn.00420017
lea ecx, [esp + 0x1c]
mov byte [esp + 0x230], 1
call fcn.00420017
lea ecx, [esp + 0x10]
mov byte [esp + 0x230], 0
call fcn.00420017
lea ecx, [esp + 0x14]
mov dword [esp + 0x230], 0xffffffff
call fcn.00420017
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 0x429cfb
push eax
mov al, byte [0x437960]
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.00420085
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.00420154
push str.Naiky_
lea ecx, [esp + 0xc]
call fcn.00420366
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, 0x437960
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.00420017
pop edi
mov eax, 0x437960
pop esi
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
add esp, 0x114
ret
mov ecx, dword [esp + 0x108]
mov eax, 0x437960
mov dword fs:[0], ecx
add esp, 0x114
ret
Function at 0x40c350
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [0x437b68]
sub esp, 0x424
push ebx
xor ebx, ebx
cmp eax, ebx
push ebp
jne 0x40c375
call fcn.0040c600
mov eax, dword [0x437b68]
cmp eax, ebx
je 0x40c55e
mov ecx, dword [0x437b6c]
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.004138bc
add esp, 0xc
lea ecx, [esp + 0x34]
lea edx, [esp + 0x14]
push 0x437a64
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.00410ae0
add esp, 8
inc edi
push edi
call fcn.004139be
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.00411f96
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.00411f96
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.00412019
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.00412019
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 [0x437b68]
mov eax, dword [esp + 0x438]
pop edi
pop esi
mov dword [ecx + eax*4], ebp
mov edx, dword [0x437b68]
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 [0x437b6c], 0
call fcn.0040c710
push eax
push 0x437a64
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x437a64
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov edi, str.Ncstudio.string
or ecx, 0xffffffff
xor eax, eax
push 0x437a64
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edx, ecx
mov edi, 0x437a64
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 [0x437b6c], eax
test eax, eax
pop esi
je 0x40c6a3
inc eax
push 4
push eax
call fcn.00413a4a
push 0x437490
mov dword [0x437b68], eax
call fcn.00412377
mov ecx, dword [0x437b68]
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 0x429d31
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
mov eax, dword [0x435dd0]
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.00420085
push str.Lang_
lea ecx, [esp + 8]
mov byte [esp + 0x120], 1
call fcn.00420366
push esi
lea ecx, [esp + 0xc]
call fcn.00420085
push str.Lang_
lea ecx, [esp + 0xc]
mov byte [esp + 0x120], 2
call fcn.00420366
push str.Lang.ini
lea ecx, [esp + 0xc]
call fcn.00420366
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 0x43560c
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 0x437490
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 0x435614
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.00420366
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.0041f620
mov ecx, dword [esp + 0x18]
add esp, 0xc
push 0
push 0x10
push ecx
call fcn.00426fa4
jmp 0x40c896
mov edx, dword [esp + 4]
push 0x104
push edx
push 0x437b70
call fcn.00412c70
add esp, 0xc
lea ecx, [esp + 8]
mov byte [esp + 0x11c], 1
call fcn.00420017
lea ecx, [esp + 4]
mov byte [esp + 0x11c], 0
call fcn.00420017
lea ecx, [esp + 0xc]
mov dword [esp + 0x11c], 0xffffffff
call fcn.00420017
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 0x429ef9
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.00410900
add esp, 4
mov ecx, ebp
push eax
call fcn.00421b19
mov ecx, dword [0x435dd0]
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.00427f09
call fcn.00427f09
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 [0x435dd0]
mov dword [esp + 0x20], ecx
push 0x104
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 3
call fcn.004203ba
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, 0x437f48
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.00420409
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 2
call fcn.00420017
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 0x40f120
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x429fdb
push eax
mov al, byte [0x437e3c]
mov dword fs:[0], esp
sub esp, 0x108
test al, al
jne 0x40f1f9
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.00420085
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.00420154
push 0x435244
lea ecx, [esp + 0xc]
call fcn.00420366
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, 0x437e3c
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.00420017
pop edi
mov eax, 0x437e3c
pop esi
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
add esp, 0x114
ret
mov ecx, dword [esp + 0x108]
mov eax, 0x437e3c
mov dword fs:[0], ecx
add esp, 0x114
ret

Function at 0x40f220
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x429ffb
push eax
mov al, byte [0x437d38]
mov dword fs:[0], esp
sub esp, 0x108
test al, al
jne 0x40f2f9
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.00420085
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.00420154
push 0x435244
lea ecx, [esp + 0xc]
call fcn.00420366
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, 0x437d38
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.00420017
pop edi
mov eax, 0x437d38
pop esi
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
add esp, 0x114
ret
mov ecx, dword [esp + 0x108]
mov eax, 0x437d38
mov dword fs:[0], ecx
add esp, 0x114
ret
Function at 0x40f390
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
call fcn.0040f320
test al, al
je 0x40f3f0
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 0x40fc20
Capabilities:
Create directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42a118
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 0x40fd02
push esi
lea ecx, [esp + 0x28]
call fcn.00420085
mov eax, dword [0x435dd0]
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 0x435244
lea ecx, [esp + 0x2c]
call fcn.0041f2ed
mov esi, eax
cmp esi, 0xffffffff
je 0x40fcd0
lea ecx, [esp + 0x10]
push esi
push ecx
lea ecx, [esp + 0x2c]
call fcn.0041f245
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 2
call fcn.00420104
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 1
call fcn.00420017
mov edx, dword [esp + 0xc]
push edx
call edi
test eax, eax
jne 0x40fccd
push eax
mov eax, dword [esp + 0x10]
push eax
call ebp
test eax, eax
je 0x40fce3
inc esi
jmp 0x40fc74
mov ecx, dword [esp + 0x24]
push ecx
call edi
test eax, eax
jne 0x40fce3
mov edx, dword [esp + 0x24]
push eax
push edx
call ebp
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 0
call fcn.00420017
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00420017
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x40fd80
Capabilities:
Check if file exists

Disassembly:
mov al, byte [0x437f40]
sub esp, 0x104
test al, al
jne 0x40fdf1
mov eax, dword [str.a:cfinfo.sys]
mov ecx, dword [0x435cc8]
mov edx, dword [0x435ccc]
mov dword [esp], eax
mov ax, word [0x435cd0]
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 0x40fde7
inc bl
cmp bl, 0x7a
jle 0x40fdd1
mov al, bl
pop edi
pop esi
mov byte [0x437f40], al
pop ebx
add esp, 0x104
ret
Function at 0x410740
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x42a218
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.00413be0
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 0x4107f0
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test al, 1
je 0x4107e6
cmp bl, byte [esp + 0x24]
je 0x4107e6
mov edx, dword [0x435dd0]
mov dword [esp + 0x20], edx
movsx eax, bl
push eax
lea ecx, [esp + 0x24]
push 0x435d40
push ecx
mov dword [esp + 0x24], 0
call fcn.0041f620
mov edx, dword [esp + 0x2c]
add esp, 0xc
push edx
call esi
cmp eax, 3
je 0x410804
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.00420017
mov eax, dword [esp + 0xc]
inc bl
shr eax, 1
mov dword [esp + 0xc], eax
jne 0x410793
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.00420017
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 0x41397f
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 0x4139aa
test byte [esp + 8], 0x80
je 0x413999
and al, 0xfe
jmp 0x41399b
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4139bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00414b83
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret