joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420030
Capabilities:
Query service status
Stop service

Disassembly:
sub esp, 0x44
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [esp + 4], edi
test edi, edi
jne 0x420057
mov eax, 0x80004003
pop edi
add esp, 0x44
ret
mov eax, dword [esp + 0x4c]
push esi
push 0x27
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x42007e
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
mov eax, 0x80004005
pop edi
add esp, 0x44
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
xor eax, eax
lea ecx, [esp + 0x10]
push ecx
push esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call ebx
cmp dword [esp + 0x14], 1
jne 0x4200de
lea edx, [esp + 0xc]
push edx
push 0x24
lea eax, [esp + 0x34]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop ebx
pop esi
xor eax, eax
pop edi
add esp, 0x44
ret
push ebp
lea ecx, [esp + 0x14]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x420138
mov eax, 0xcccccccd
mul edi
shr edx, 2
lea edx, [edx + edx*4]
mov eax, edi
sub eax, edx
jne 0x42011f
lea ecx, [esp + 0x14]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push 0x3e8
call ebp
lea edx, [esp + 0x14]
push edx
push esi
call ebx
inc edi
cmp edi, 0x64
jl 0x4200f5
mov eax, dword [esp + 0x18]
dec eax
neg eax
sbb eax, eax
and eax, 0x80004005
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
pop ebp
pop ebx
pop esi
mov eax, edi
pop edi
add esp, 0x44
ret
Function at 0x420160
Capabilities:
Modify service

Disassembly:
sub esp, 0xc
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [esp + 8], edi
test edi, edi
jne 0x420187
mov eax, 0x80004003
pop edi
add esp, 0xc
ret
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov ebp, eax
test ebp, ebp
jne 0x420211
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x41f
jne 0x4201c3
push 0x10c
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x4201d6
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
mov eax, 0x80004005
pop edi
add esp, 0xc
ret
lea eax, [esp + 0x14]
push eax
push 0x10c
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceLockStatusW]
test eax, eax
je 0x4201f3
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esp + 0xc]
call fcn.0041fe50
lea ecx, [esp + 0x10]
call fcn.0041fe50
pop esi
pop ebp
mov eax, 0x80004005
pop edi
add esp, 0xc
ret
mov ecx, dword [esp + 0x1c]
push ebx
push 2
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x420241
push ebp
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
pop esi
pop ebp
mov eax, 0x80004005
pop edi
add esp, 0xc
ret
mov edx, dword [esp + 0x24]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push edx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x420265
xor esi, esi
push ebp
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
neg esi
sbb esi, esi
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
and esi, 0x7fffbffb
add esi, 0x80004005
call ebx
push edi
call ebx
pop ebx
mov eax, esi
pop esi
pop ebp
pop edi
add esp, 0xc
ret

Function at 0x4202a0
Capabilities:
Modify service

Disassembly:
push ecx
push ebx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x4202bf
mov eax, 0x80004003
pop ebx
pop ecx
ret
mov eax, dword [esp + 0xc]
push edi
push 2
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x4202e4
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, 0x80004005
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x14]
push esi
lea edx, [esp + 0xc]
push edx
push 1
push edi
mov dword [esp + 0x18], ecx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov esi, eax
neg esi
sbb esi, esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
and esi, 0x7fffbffb
add esi, 0x80004005
call edi
push ebx
call edi
mov eax, esi
pop esi
pop edi
pop ebx
pop ecx
ret
Function at 0x420320
Capabilities:
Create service
Persist via windows service

Disassembly:
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x42033d
mov eax, 0x80004003
pop esi
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push edi
push 0
mov edi, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push 0
push 0
push edx
push 1
push 2
push eax
push 0xf01ff
push ecx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
jne 0x420396
push 0xf01ff
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
jne 0x420396
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, 0x80004005
pop esi
ret
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call edi
push esi
call edi
pop edi
xor eax, eax
pop esi
ret
Function at 0x421080
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
sub esp, 0x168
mov eax, dword [0x476cd4]
xor eax, esp
mov dword [esp + 0x164], eax
push esi
mov esi, dword [esp + 0x170]
cmp dword [esi], 0
push edi
jne 0x4210a8
mov dword [esi], 0x114
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edi, 2
test eax, eax
jne 0x42115b
push 0x3f
push eax
mov byte [esp + 0x134], al
lea eax, [esp + 0x135]
push eax
call fcn.0043f440
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x130]
push edx
lea eax, [esp + 0x10]
push eax
push str.CurrentVersion
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x40
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x421137
movsx ecx, byte [esp + 0x12c]
lea edx, [esp + 0x12e]
sub ecx, 0x30
push edx
mov dword [esi + 0x10], edi
mov dword [esi + 4], ecx
call fcn.00442b85
add esp, 4
mov dword [esi + 8], eax
jmp 0x42115b
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
shr eax, 8
movzx eax, al
mov edx, 4
mov dword [esi + 8], eax
cmp edx, ecx
sbb eax, eax
neg eax
inc eax
mov dword [esi + 4], ecx
mov dword [esi + 0x10], eax
mov eax, dword [esi + 4]
cmp eax, 6
ja 0x42116a
jne 0x4211bf
cmp dword [esi + 8], edi
jb 0x4211bf
push 0x118
lea ecx, [esp + 0x18]
push 0
push ecx
call fcn.0043f440
add esp, 0xc
push str.RtlGetVersion
push str.ntdll.dll
mov dword [esp + 0x18], 0x11c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4211bf
lea edx, [esp + 0x10]
push edx
call eax
test eax, eax
jne 0x4211bf
mov edi, dword [esi]
push edi
lea eax, [esp + 0x14]
push eax
push esi
call fcn.0043fe10
add esp, 0xc
mov dword [esi], edi
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0043f03d
add esp, 0x168
ret

Function at 0x4213f0
Capabilities:
Delete registry key

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x4213fd
xor al, al
pop esi
ret
push ebx
push edi
xor bl, bl
call fcn.004213a0
cmp dword [eax + 4], 5
jne 0x421434
cmp dword [eax + 8], 1
jne 0x421434
mov edi, dword [esp + 0x14]
mov ebx, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push edi
push esi
call ebx
push edi
push esi
call ebx
push edi
push esi
call ebx
push edi
push esi
call ebx
mov bl, 1
pop edi
mov al, bl
pop ebx
pop esi
ret
push ebp
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebp, eax
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x42148d
push str.RegDeleteKeyExW
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x421486
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
push 0
push ebx
push ebp
push esi
call edi
push 0
push ebx
push ebp
push esi
call edi
push 0
push ebx
push ebp
push esi
call edi
push 0
push ebx
push ebp
push esi
call edi
mov ebp, dword [esp + 0x14]
mov bl, 1
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebp
pop edi
mov al, bl
pop ebx
pop esi
ret
Function at 0x421560
Capabilities:
Get file version info

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x421622
cmp dword [esp + 0x14], 0x20
jb 0x421622
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x42161a
push 0x479820
push edi
call fcn.0043fdff
mov esi, eax
add esp, 8
test esi, esi
je 0x42161a
push esi
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x421611
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x464548
push esi
mov dword [esp + 0x2c], 0x34
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x421611
mov eax, dword [esp + 0x10]
movzx edx, word [eax + 0xc]
movzx ecx, word [eax + 0xe]
push edx
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
push 0x4664a0
push ecx
push ebp
call fcn.0041fb80
push esi
call fcn.0043fdf4
add esp, 0x20
pop edi
pop esi
pop ebx
mov eax, 1
pop ebp
pop ecx
ret
push esi
call fcn.0043fdf4
add esp, 4
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
pop ecx
ret
xor eax, eax
pop ebp
pop ecx
ret

Function at 0x421850
Capabilities:
Check if file exists
Delete file

Disassembly:
sub esp, 0x230
mov eax, dword [0x476cd4]
xor eax, esp
mov dword [esp + 0x22c], eax
push esi
mov esi, dword [esp + 0x238]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x42188f
xor eax, eax
pop esi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0043f03d
add esp, 0x230
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4218b5
mov eax, 1
pop esi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0043f03d
add esp, 0x230
ret
push edi
push 0x208
xor edi, edi
lea ecx, [esp + 0x2e]
xor eax, eax
push edi
push ecx
mov word [esp + 0x34], ax
call fcn.0043f440
lea eax, [esp + 0x34]
mov ecx, eax
add esp, 0xc
mov edx, 0x104
sub esi, ecx
nop
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x421900
movzx ecx, word [esi + eax]
cmp cx, di
je 0x421900
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x4218e0
jmp 0x421904
cmp edx, edi
jne 0x421907
sub eax, 2
xor edx, edx
mov word [eax], dx
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov word [esp + 0x24], ax
lea edx, [esp + 8]
mov eax, 0x214
lea ecx, [esp + 0x28]
push edx
mov word [esp + 0x1c], ax
mov dword [esp + 0x22], edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x26], edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [esp + 0x234]
neg eax
pop edi
sbb eax, eax
pop esi
xor ecx, esp
inc eax
call fcn.0043f03d
add esp, 0x230
ret
Function at 0x422c90
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x422d41
push ebx
push edi
push 0x5c
push 0x2f
mov ecx, esi
call fcn.00421b10
mov eax, dword [esi]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
je 0x422d31
mov eax, dword [esi]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push eax
call ebx
test eax, eax
je 0x422d31
lea esp, [esp]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jl 0x422d06
push 0x466520
push eax
call fcn.0043e893
add esp, 8
test eax, eax
je 0x422d06
sub eax, dword [esi]
sar eax, 1
cmp eax, 0xffffffff
je 0x422d06
push 0x464548
push 0x466520
mov ecx, esi
call fcn.00421bb0
jmp 0x422cd0
push 0x5c
mov ecx, esi
call fcn.00415b20
mov eax, dword [esi]
push eax
call edi
test eax, eax
je 0x422d21
mov eax, dword [esi]
push eax
call ebx
test eax, eax
jne 0x422d3f
push 0x46c82c
mov ecx, esi
call fcn.004095b0
pop edi
pop ebx
pop esi
ret
push 0
push 0x46c82c
mov ecx, esi
call fcn.00409030
pop edi
pop ebx
pop esi
ret

Function at 0x422f70
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x460fe0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push esi
push edi
mov eax, dword [0x476cd4]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov dword [esp + 0x18], 0
cmp dword [esp + 0x30], 0
je 0x4230bd
mov ebp, dword [esp + 0x34]
test ebp, ebp
je 0x4230bd
mov edi, dword [esp + 0x38]
test edi, edi
je 0x4230bd
push 0x46c82c
lea ecx, [esp + 0x14]
call fcn.004098a0
xor ecx, ecx
mov eax, 0x800
mov dword [esp + 0x14], eax
mov edx, 2
mul edx
seto cl
push 0x479820
mov dword [esp + 0x28], 0
mov dword [esp + 0x1c], 1
neg ecx
or ecx, eax
push ecx
call fcn.0043fdff
mov esi, eax
add esp, 8
test esi, esi
je 0x423067
mov eax, dword [esp + 0x14]
lea ecx, [eax + eax]
push ecx
push 0
push esi
call fcn.0043f440
mov ecx, dword [esp + 0x3c]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push esi
lea eax, [esp + 0x20]
push eax
push edi
push ebp
push ecx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push esi
lea ecx, [esp + 0x34]
call fcn.004098a0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 1
call fcn.00409200
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 0
call fcn.00407a10
push esi
call fcn.0043fdf4
add esp, 4
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
push eax
call fcn.00407ab0
mov esi, dword [esp + 0x30]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0x24], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4230cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret
mov esi, dword [esp + 0x2c]
push 0x46c82c
mov ecx, esi
call fcn.004098a0
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret
Function at 0x4234b0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4610d6
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x476cd4]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push esi
push edi
mov eax, dword [0x476cd4]
xor eax, esp
push eax
lea eax, [esp + 0x12c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x140]
mov esi, dword [esp + 0x13c]
xor ebx, ebx
push edi
mov dword [esp + 0x14], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4235c8
push 1
push 0x40
push 0x20
push edi
lea ecx, [esp + 0x40]
call fcn.00423370
push eax
lea ecx, [esp + 0xc0]
mov dword [esp + 0x138], ebx
call fcn.0041d580
lea ecx, [esp + 0x88]
mov dword [esp + 0x134], 0xffffffff
call fcn.00422ab0
lea eax, [esp + 0x88]
push eax
mov dword [esp + 0x8c], vtable.std::ios_base.0
call fcn.00424865
add esp, 4
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0xc0]
call fcn.0041d110
cmp dword [eax + 0x18], 0x10
mov dword [esp + 0x134], 1
jb 0x42358a
mov edx, dword [eax + 4]
jmp 0x42358d
lea edx, [eax + 4]
mov eax, edx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
lea edi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4235a0
sub eax, edi
push eax
push edx
mov ecx, esi
call fcn.0040b960
cmp dword [esp + 0x2c], 0x10
jb 0x4235e2
mov edx, dword [esp + 0x18]
push edx
call fcn.0043e711
add esp, 4
jmp 0x4235e2
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x46ced9
mov ecx, esi
mov byte [esi + 4], bl
call fcn.0040b960
mov eax, esi
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.0043f03d
add esp, 0x128
ret

Function at 0x424e40
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x1c
push 1
push eax
lea ecx, [esp + 8]
push ecx
call fcn.0042e110
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x424e62
mov eax, dword [eax + 4]
jmp 0x424e65
add eax, 4
mov edx, dword [esp + 0x24]
push ebx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
cmp dword [esp + 0x1c], 8
jb 0x424e8b
mov eax, dword [esp + 8]
push eax
call fcn.0043e711
add esp, 4
mov al, bl
pop ebx
add esp, 0x1c
ret

Function at 0x424ea0
Capabilities:
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x1c
push 1
push eax
lea ecx, [esp + 8]
push ecx
call fcn.0042e110
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x424ec2
mov eax, dword [eax + 4]
jmp 0x424ec5
add eax, 4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [esp + 0x1c], 8
mov esi, eax
jb 0x424ee3
mov edx, dword [esp + 8]
push edx
call fcn.0043e711
add esp, 4
cmp esi, 0xffffffff
jne 0x424eef
xor al, al
pop esi
add esp, 0x1c
ret
mov eax, dword [esp + 0x28]
mov dword [eax], esi
mov al, 1
pop esi
add esp, 0x1c
ret
Function at 0x425100
Capabilities:
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x1c
push 1
push eax
lea ecx, [esp + 8]
push ecx
call fcn.0042e110
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x425122
mov eax, dword [eax + 4]
jmp 0x425125
add eax, 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [esp + 0x1c], 8
mov ebx, eax
jb 0x425143
mov edx, dword [esp + 8]
push edx
call fcn.0043e711
add esp, 4
cmp ebx, 0xffffffff
jne 0x42514f
xor eax, eax
pop ebx
add esp, 0x1c
ret
test bl, 0x10
mov eax, 0
sete al
pop ebx
lea eax, [eax + eax - 1]
add esp, 0x1c
ret

Function at 0x425170
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x1c
push 1
push eax
lea ecx, [esp + 8]
push ecx
call fcn.0042e110
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x425192
mov eax, dword [eax + 4]
jmp 0x425195
add eax, 4
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
cmp dword [esp + 0x1c], 8
jb 0x4251b8
mov edx, dword [esp + 8]
push edx
call fcn.0043e711
add esp, 4
mov al, bl
pop ebx
add esp, 0x1c
ret
Function at 0x4253a0
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x4612d6
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x476cd4]
xor eax, esp
mov dword [esp + 0xc4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x476cd4]
xor eax, esp
push eax
lea eax, [esp + 0xdc]
mov dword fs:[0], eax
mov eax, dword [esp + 0xec]
xor edi, edi
push eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call fcn.00424d80
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0xe8], edi
call fcn.00425380
mov eax, dword [esp + 0x30]
mov ebp, 8
mov byte [esp + 0xe4], 1
cmp dword [esp + 0x44], ebp
jae 0x425436
lea eax, [esp + 0x30]
mov ebx, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x24]
push ecx
push eax
call ebx
test eax, eax
jne 0x4254f8
push 2
push 0xffffffffffffffff
push 0x466784
lea ecx, [esp + 0x38]
call fcn.0041e000
mov esi, eax
cmp esi, 0xffffffff
jne 0x42547a
push eax
push edi
lea ecx, [esp + 0x34]
call fcn.004084e0
push 0xffffffffffffffff
inc esi
push esi
lea ecx, [esp + 0x34]
call fcn.004084e0
push 0x5c
push 1
lea ecx, [esp + 0x34]
call fcn.004251c0
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], ebp
jae 0x4254a2
lea eax, [esp + 0x30]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
call ebx
test eax, eax
jne 0x4254f8
cmp dword [esp + 0x44], ebp
jb 0x4254cb
mov eax, dword [esp + 0x30]
push eax
call fcn.0043e711
add esp, 4
xor ecx, ecx
mov word [esp + 0x30], cx
lea ecx, [esp + 0x48]
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], edi
mov dword [esp + 0xe4], 0xffffffff
call fcn.0042d790
xor eax, eax
xor edx, edx
jmp 0x42553e
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
cmp dword [esp + 0x44], ebp
jb 0x425513
mov edx, dword [esp + 0x30]
push edx
call fcn.0043e711
add esp, 4
xor eax, eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], edi
mov word [esp + 0x30], ax
mov dword [esp + 0xe4], 0xffffffff
call fcn.0042d790
mov eax, esi
mov edx, ebx
mov ecx, dword [esp + 0xdc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.0043f03d
add esp, 0xd4
ret
Function at 0x425570
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x46131b
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x476cd4]
xor eax, esp
mov dword [esp + 0xac], eax
push ebx
mov eax, dword [0x476cd4]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov eax, dword [esp + 0xc8]
push eax
lea ecx, [esp + 0x28]
call fcn.00424d80
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0xc4], 0
call fcn.00425380
cmp dword [eax + 0x18], 8
jb 0x4255dd
mov eax, dword [eax + 4]
jmp 0x4255e0
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
sete bl
cmp dword [esp + 0x20], 8
jb 0x425601
mov ecx, dword [esp + 0xc]
push ecx
call fcn.0043e711
add esp, 4
xor edx, edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], dx
mov dword [esp + 0xc0], 0xffffffff
call fcn.0042d790
mov al, bl
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0xac]
xor ecx, esp
call fcn.0043f03d
add esp, 0xbc
ret

Function at 0x425980
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4613d8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x476cd4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0
push 0
call ebp
mov esi, eax
test esi, esi
jne 0x4259cf
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004249f6
add esp, 4
mov edi, eax
push edi
push esi
mov bl, 1
call ebp
test eax, eax
jne 0x4259f8
xor bl, bl
jmp 0x425a30
push edi
lea ecx, [esp + 0x18]
call fcn.00409520
mov ecx, dword [esp + 0x40]
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x44], 0
call fcn.00408e40
cmp dword [esp + 0x2c], 8
jb 0x425a30
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0043e711
add esp, 4
push edi
call fcn.0043fdf4
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret