joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404fe0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x44468b
mov eax, dword fs:[0]
push eax
sub esp, 0x4c8
mov eax, dword [0x453ac0]
xor eax, esp
mov dword [esp + 0x4c4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x453ac0]
xor eax, esp
push eax
lea eax, [esp + 0x4dc]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4ec]
mov esi, ecx
mov ecx, dword [esi]
lea eax, [esp + 0x18]
xor ebx, ebx
push eax
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
call fcn.004128c0
add esp, 4
test al, al
je 0x4051e0
mov esi, dword [esi]
push esi
lea ecx, [esp + 0x2cc]
push 0x104
push ecx
call fcn.00425ddd
add esp, 0xc
lea edx, [esp + 0x2c8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push str._amend.dat
lea eax, [esp + 0x2cc]
push 0x104
push eax
call fcn.00425e42
mov esi, dword [ebp + 0xa0]
add esp, 0xc
lea ecx, [esp + 0x2c8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea edx, [esp + 0x2d0]
push edx
call esi
mov eax, 1
test byte [0x4593b4], al
jne 0x4050c2
or dword [0x4593b4], eax
test byte [0x459090], al
jne 0x4050d0
or dword [0x459090], eax
call fcn.00415640
push eax
push str.C:Naiky_
push 0x4592a8
call esi
push 0x4592a8
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push str.ncstudio.fmt
push 0x4592a8
lea eax, [esp + 0x3d8]
push eax
call esi
lea ecx, [esp + 0x20]
push ecx
call fcn.0040a110
lea edx, [esp + 0x2c8]
push edx
mov dword [esp + 0x4e8], ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x3d0]
push eax
push ecx
push edx
lea eax, [esp + 0x2d4]
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.0040a960
lea edi, [esp + 0x20]
mov byte [esp + 0x17], al
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x50], bl
mov dword [esp + 0x154], ebx
call fcn.0040a320
lea esi, [esp + 0x180]
call fcn.00410fe0
lea esi, [esp + 0x194]
call fcn.004110c0
mov edx, dword [esp + 0x15c]
cmp edx, dword [0x446d20]
je 0x40519a
mov eax, dword [esp + 0x158]
mov edx, dword [eax + 0x4c]
lea ecx, [esp + 0x158]
call edx
cmp byte [esp + 0x17], bl
jne 0x4051b6
mov eax, dword [0x458af8]
mov eax, dword [eax*4 + 0x455910]
push ebx
push ebx
push eax
mov ecx, ebp
call fcn.0041825f
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00415d0e
add esp, 4
call fcn.00413540
lea ecx, [esp + 0x20]
mov dword [esp + 0x4e4], 0xffffffff
call fcn.0040a220
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x4dc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c4]
xor ecx, esp
call fcn.00424c71
add esp, 0x4d4
ret 4
Function at 0x405210
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x443a08
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x453ac0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
push esi
call ebx
test eax, eax
jne 0x4053f5
push esi
lea ecx, [esp + 0x18]
call fcn.00408e70
xor edi, edi
mov dword [esp + 0x28], edi
call fcn.0041d6e4
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x405274
push 0x80004005
call fcn.00401ef0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
mov byte [esp + 0x28], 1
lea esp, [esp]
test edi, edi
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
jl 0x405382
cmp edi, eax
jg 0x405382
add edi, ecx
push 0x44a040
push edi
call fcn.00425b14
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x405382
sub eax, ecx
mov edi, eax
cmp edi, 0xffffffff
je 0x405382
push edi
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00406c70
mov byte [esp + 0x28], 2
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebp - 0x10]
cmp eax, esi
je 0x405342
cmp dword [esi + 0xc], 0
lea ebp, [esi + 0xc]
jl 0x405330
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x405330
push eax
call fcn.00408e00
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x405321
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea ebp, [ebx + 0x10]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
mov dword [esp + 0x18], ebp
jmp 0x405342
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.004091a0
mov ebp, dword [esp + 0x18]
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405367
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebp
call ebx
test eax, eax
jne 0x40537a
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4053ac
add edi, 1
jmp 0x405290
push ecx
call ebx
test eax, eax
jne 0x405395
mov ecx, dword [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x10]
mov byte [esp + 0x28], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4053c1
lea eax, [ebp - 0x10]
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4053cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4053f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x4090b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4090c9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x409104
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x409100
lea ebx, [ebx]
cmp esi, eax
jae 0x409104
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4090f0
cmp esi, eax
jb 0x40910a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x443341
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x453ac0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
mov dword [esi], vtable.CFieldDescriptor.0
lea ebp, [esi + 0xc]
call fcn.0041d6e4
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40a15d
push 0x80004005
call fcn.00401ef0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp], eax
mov dword [esp + 0x1c], ebx
lea edi, [esi + 0x10]
call fcn.0041d6e4
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40a18d
push 0x80004005
call fcn.00401ef0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
mov dword [esi + 0x14], vtable.CArray_class_CItemData___class_CItemData__.0
mov dword [esi + 0x18], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x1c], ebx
lea eax, [esi + 0x138]
mov byte [esp + 0x1c], 2
call fcn.0040ed20
mov ecx, edi
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.00408cc0
mov ecx, ebp
call fcn.00408cc0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x4125c0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443691
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x453ac0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
push 0x20
push edi
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x124], edi
mov dword [ebp - 4], 0
call fcn.0041fdd2
push 8
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 1
call fcn.0041f4b9
cmp eax, 8
jne 0x412660
cmp dword [ebp - 0x12c], 0x4e333441
jne 0x412660
lea ecx, [ebp - 0x13c]
call fcn.004127d0
cmp dword [ebp - 0x128], eax
jne 0x412660
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 0
call fcn.0041f8b8
mov al, 1
jmp 0x4126ff
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 0
call fcn.0041f8b8
jmp 0x412688
push edi
lea ecx, [ebp - 0x120]
push 0x104
push ecx
call fcn.00425ddd
add esp, 0xc
push str..bak
lea edx, [ebp - 0x120]
push 0x104
push edx
call fcn.00425e42
add esp, 0xc
push 0x20
lea eax, [ebp - 0x120]
mov ebx, 3
push eax
lea ecx, [ebp - 0x13c]
mov dword [ebp - 4], ebx
call fcn.0041fdd2
push 8
lea ecx, [ebp - 0x12c]
push ecx
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 4
call fcn.0041f4b9
cmp eax, 8
lea ecx, [ebp - 0x13c]
je 0x41271b
mov byte [ebp - 4], bl
call fcn.0041f8b8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00424c71
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x12c], 0x4e333441
jne 0x4126f5
call fcn.004127d0
mov byte [ebp - 4], bl
cmp dword [ebp - 0x128], eax
lea ecx, [ebp - 0x13c]
jne 0x4126f8
call fcn.0041f8b8
push 0
push edi
lea edx, [ebp - 0x120]
push edx
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x412659
lea ecx, [ebp - 0x124]
call fcn.00402220
mov dword [ebp - 4], 6
mov eax, dword [0x458af8]
mov esi, dword [eax*4 + 0x454fec]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
lea ecx, [ebp - 0x124]
push esi
push ecx
call fcn.00412ad0
mov edx, dword [ebp - 0x124]
add esp, 0x10
push 0
push 0
push edx
call fcn.0041cd65
lea ecx, [ebp - 0x124]
call fcn.00402280
jmp 0x4126fd
Function at 0x4127d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0042c980
mov eax, dword [0x453ac0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x28]
push 0
push 0
push 8
mov dword [ebp - 0x1018], esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
push 0x1000
lea ecx, [ebp - 0x1008]
push ecx
mov ecx, esi
mov dword [ebp - 0x100c], 0xffffffff
call edx
test eax, eax
mov dword [ebp - 0x1010], eax
je 0x412899
lea eax, [ebp - 0x100c]
lea ecx, [ebp - 0x1008]
mov dword [ebp - 0x101c], eax
mov dword [ebp - 0x1014], ecx
mov eax, dword [ebp - 0x101c]
push eax
mov ecx, dword [eax]
lea edi, [0x455000]
mov esi, dword [ebp - 0x1014]
mov ebx, dword [ebp - 0x1010]
lea edx, [esi + ebx]
xor eax, eax
mov bl, byte [esi]
mov al, cl
inc esi
xor al, bl
shr ecx, 8
mov ebx, dword [edi + eax*4]
xor ecx, ebx
cmp edx, esi
jne 0x41285e
pop eax
mov dword [eax], ecx
mov ecx, dword [ebp - 0x1018]
mov edx, dword [ecx]
mov edx, dword [edx + 0x34]
push 0x1000
lea eax, [ebp - 0x1008]
push eax
call edx
test eax, eax
mov dword [ebp - 0x1010], eax
jne 0x412840
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x100c]
pop edi
pop esi
xor ecx, ebp
not eax
pop ebx
call fcn.00424c71
mov esp, ebp
pop ebp
ret

Function at 0x412b00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x443648
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x453ac0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 8], 0
mov eax, dword [esp + 0x20]
push eax
push 0
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push edx
push 0x500
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x412b57
call fcn.00402040
mov esi, dword [esp + 8]
test esi, esi
jne 0x412b63
xor eax, eax
jmp 0x412b73
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x412b68
sub eax, edx
mov ecx, dword [esp + 0x1c]
push eax
push esi
call fcn.004091a0
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 8
Function at 0x4131a0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x430
mov eax, dword [0x453ac0]
xor eax, esp
mov dword [esp + 0x42c], eax
mov eax, dword [0x458d14]
push ebx
push ebp
xor ebx, ebx
cmp eax, ebx
push esi
push edi
jne 0x4131d5
call fcn.00413480
mov eax, dword [0x458d14]
cmp eax, ebx
je 0x4133d2
mov ecx, dword [0x458d18]
cmp ecx, ebx
je 0x4133d2
mov edi, dword [esp + 0x444]
cmp edi, ebx
jl 0x4133d2
cmp edi, ecx
jg 0x4133d2
mov eax, dword [eax + edi*4]
cmp eax, ebx
jne 0x4133d7
push 0xa
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.00428129
add esp, 0xc
push 0x458c08
push 0x400
lea ecx, [esp + 0x40]
push ecx
push str._ErrStr_
lea edx, [esp + 0x28]
push edx
push str.STRING
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, eax
mov ecx, str._ErrStr_
lea eax, [esp + 0x38]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x413264
cmp dl, bl
je 0x413260
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x413264
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x413244
xor eax, eax
jmp 0x413269
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x41327b
push edi
push str.ELoad_string__d_failed_n
call fcn.00409530
add esp, 8
add esi, 1
push esi
call fcn.00426224
mov ebp, eax
add esp, 4
mov esi, ebp
lea edi, [esp + 0x38]
nop
mov al, byte [edi]
add edi, 1
cmp al, 0x5c
jne 0x4133b2
mov al, byte [edi]
movsx ecx, al
add ecx, 0xffffffde
add edi, 1
cmp ecx, 0x56
ja case.0x4132b8.35
movzx ecx, byte [ecx + 0x413420]
jmp dword [ecx*4 + 0x4133f0]
mov byte [esi], 7
add esi, 1
jmp 0x413290
mov byte [esi], 8
add esi, 1
jmp 0x413290
mov byte [esi], 0xc
add esi, 1
jmp 0x413290
mov byte [esi], 0xa
add esi, 1
jmp 0x413290
mov byte [esi], 0xd
add esi, 1
jmp 0x413290
mov byte [esi], 9
add esi, 1
jmp 0x413290
mov byte [esi], 0xb
add esi, 1
jmp 0x413290
mov byte [esi], 0x27
add esi, 1
jmp 0x413290
mov byte [esi], 0x22
add esi, 1
jmp 0x413290
mov byte [esi], 0x5c
add esi, 1
jmp 0x413290
movsx edx, byte [edi]
mov dword [esp + 0x14], ebx
push edx
mov byte [esp + 0x18], al
call fcn.00426f29
add esp, 4
test eax, eax
je 0x41334a
mov al, byte [edi]
movsx ecx, byte [edi + 1]
add edi, 1
push ecx
mov byte [esp + 0x19], al
call fcn.00426f29
add esp, 4
test eax, eax
je 0x41334a
mov dl, byte [edi]
mov byte [esp + 0x16], dl
add edi, 1
push 0x10
lea eax, [esp + 0x18]
push ebx
push eax
call fcn.004252ca
add esp, 0xc
mov byte [esi], al
add esi, 1
jmp 0x413290
mov cl, al
sub cl, 0x30
cmp cl, 7
ja 0x41335a
mov dword [esp + 0x14], ebx
mov byte [esp + 0x14], al
mov al, byte [edi]
cmp al, 0x30
jl 0x413398
cmp al, 0x37
jg 0x413398
add edi, 1
mov byte [esp + 0x15], al
mov al, byte [edi]
cmp al, 0x30
jl 0x413398
cmp al, 0x37
jg 0x413398
mov byte [esp + 0x16], al
add edi, 1
push 8
lea edx, [esp + 0x18]
push ebx
push edx
call fcn.004252ca
add esp, 0xc
mov byte [esi], al
add esi, 1
jmp 0x413290
mov byte [esi], al
add esi, 1
cmp al, bl
jne 0x413290
mov eax, dword [0x458d14]
mov ecx, dword [esp + 0x444]
mov dword [eax + ecx*4], ebp
mov eax, ebp
jmp 0x4133d7
mov eax, str._ErrStr_
mov ecx, dword [esp + 0x43c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00424c71
add esp, 0x430
ret
Function at 0x413480
Capabilities:
Read .ini file

Disassembly:
call fcn.00413540
test byte [0x459cf4], 1
mov dword [0x458d18], 0
jne 0x41349f
or dword [0x459cf4], 1
push 0x104
call fcn.004156b0
push eax
push 0x458c08
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x458c08
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x458c08
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x4134c8
mov ecx, dword [str.Ncstudio.string]
mov edx, dword [0x44ae04]
push 0x458c08
mov dword [eax], ecx
mov ecx, dword [0x44ae08]
push 0
mov dword [eax + 4], edx
mov edx, dword [0x44ae0c]
push str.MaxIndex
mov dword [eax + 8], ecx
push str.Attribute
mov dword [eax + 0xc], edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
mov dword [0x458d18], eax
je 0x41353a
add eax, 1
push 4
push eax
call fcn.00426405
push 0x44a250
mov dword [0x458d14], eax
call fcn.0042735e
mov ecx, dword [0x458d14]
add esp, 0xc
mov dword [ecx], eax
mov al, 1
ret
Function at 0x415640
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x453ac0]
xor eax, esp
mov dword [esp + 0x104], eax
push str.setup.cfg
push str.C:Naiky_
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea ecx, [esp]
push ecx
push 0x104
push 0x458f88
push 0
push str.Path
push str.Settings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x458f88
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
mov eax, 0x458f88
call fcn.00424c71
add esp, 0x108
ret

Function at 0x415730
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x453ac0]
xor eax, esp
mov dword [esp + 0x104], eax
push edi
call fcn.004158b0
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
push 0x104
push 0x4594c0
push 0
push str.ActiveLang
push str.ActiveLang
call edi
test eax, eax
jne 0x4157e1
mov eax, 1
test byte [0x4593b4], al
jne 0x415780
or dword [0x4593b4], eax
test byte [0x459090], al
jne 0x41578e
or dword [0x459090], eax
push esi
call fcn.00415640
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineA]
push eax
push str.C:Naiky_
push 0x4592a8
call esi
push 0x4592a8
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push str.langlang.ini
push 0x4592a8
lea eax, [esp + 0x10]
push eax
call esi
lea ecx, [esp + 8]
push ecx
push 0x104
push 0x4594c0
push 0
push str.ActiveLang
push str.ActiveLang
call edi
pop esi
mov ecx, dword [esp + 0x108]
pop edi
xor ecx, esp
mov eax, 0x4594c0
call fcn.00424c71
add esp, 0x108
ret

Function at 0x415800
Capabilities:
Read .ini file

Disassembly:
mov eax, 1
test byte [0x459090], al
jne 0x415813
or dword [0x459090], eax
jmp fcn.00415640

Function at 0x415970
Capabilities:
Get disk information

Disassembly:
sub esp, 0x1c
xor eax, eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
call sub.KERNEL32.dll_GetLogicalDrives
test al, 8
je 0x4159eb
lea eax, [esp + 8]
push eax
push 4
call fcn.004287da
add esp, 8
test eax, eax
jne 0x4159eb
mov ecx, dword [esp + 0x14]
imul ecx, dword [esp + 0x10]
imul ecx, dword [esp + 0xc]
test ecx, ecx
mov dword [esp + 4], ecx
fild dword [esp + 4]
jge 0x4159c5
fadd qword [0x44b1e8]
fld qword [0x44b1e0]
fmul st(1), st(0)
fmulp st(1)
fcomp qword [0x44b0e8]
fnstsw ax
test ah, 0x41
jne 0x4159e5
mov eax, 1
add esp, 0x1c
ret
xor eax, eax
add esp, 0x1c
ret
xor al, al
add esp, 0x1c
ret
Function at 0x415a00
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x453ac0]
xor eax, esp
mov dword [esp + 0x410], eax
mov eax, dword [0x454f60]
test eax, eax
je 0x415bf5
cmp eax, 1
je 0x415bf5
push esi
push 0x104
call fcn.00415cde
add esp, 4
push 0
push 0x25
mov esi, eax
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push esi
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0x104
lea eax, [esp + 8]
push 0
push eax
call fcn.00428890
push esi
lea ecx, [esp + 0x14]
push 0x104
push ecx
call fcn.00425ddd
push 0x104
lea edx, [esp + 0x124]
push 0
push edx
call fcn.00428890
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x130]
push 0x104
push ecx
call fcn.00425ddd
push 0x104
lea edx, [esp + 0x240]
push 0
push edx
call fcn.00428890
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x24c]
push 0x104
push ecx
call fcn.00425ddd
add esp, 0x48
push 0x104
lea edx, [esp + 0x314]
push 0
push edx
call fcn.00428890
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x320]
push 0x104
push ecx
call fcn.00425ddd
lea eax, [esp + 0x120]
add esp, 0x18
add eax, 0xffffffff
lea edx, [eax + 1]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x415b03
mov ecx, dword [str.ewfmgr.exe]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov dword [eax], ecx
mov ecx, dword [0x44b170]
mov dword [eax + 4], ecx
mov cx, word [0x44b174]
mov word [eax + 8], cx
mov cl, byte [0x44b176]
push edx
mov byte [eax + 0xa], cl
call esi
test eax, eax
je 0x415bce
lea eax, [esp + 0x20c]
add eax, 0xffffffff
lea edx, [eax + 1]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x415b50
mov ecx, dword [str.ewfdll.dll]
mov dword [eax], ecx
mov ecx, dword [0x44b17c]
mov dword [eax + 4], ecx
mov cx, word [0x44b180]
mov word [eax + 8], cx
mov cl, byte [0x44b182]
push edx
mov byte [eax + 0xa], cl
call esi
test eax, eax
je 0x415bce
lea eax, [esp + 0x310]
add eax, 0xffffffff
lea edx, [eax + 1]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x415b93
mov ecx, dword [str.driversewf.sys]
mov dword [eax], ecx
mov ecx, dword [0x44b188]
mov dword [eax + 4], ecx
mov ecx, dword [0x44b18c]
mov dword [eax + 8], ecx
mov ecx, dword [0x44b190]
push edx
mov dword [eax + 0xc], ecx
call esi
test eax, eax
je 0x415bce
mov eax, 1
jmp 0x415bd0
xor eax, eax
xor edx, edx
cmp eax, 1
sete dl
mov dword [0x454f60], eax
pop esi
mov eax, edx
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.00424c71
add esp, 0x414
ret
xor ecx, ecx
cmp eax, 1
sete cl
mov eax, ecx
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.00424c71
add esp, 0x414
ret
Function at 0x415c20
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x454f64]
sub esp, 0xc
test eax, eax
je 0x415cb9
cmp eax, 1
je 0x415cb9
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 8]
push edx
push str.Enabled
push str.SYSTEMControlSet001ServicesEWFParametersProtectedVolume0
push 0x80000002
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x415ca4
cmp dword [esp], 4
jne 0x415ca4
cmp dword [esp + 4], 1
jne 0x415ca4
cmp dword [esp + 8], 4
jne 0x415ca4
mov eax, 1
xor ecx, ecx
cmp eax, eax
sete cl
mov dword [0x454f64], eax
mov eax, ecx
add esp, 0xc
ret
xor eax, eax
xor ecx, ecx
cmp eax, 1
sete cl
mov dword [0x454f64], eax
mov eax, ecx
add esp, 0xc
ret
xor edx, edx
cmp eax, 1
sete dl
mov eax, edx
add esp, 0xc
ret