joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440042
Capabilities:
Clear file content
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3c8]
sub esp, 0x448
mov eax, dword [0x4d6080]
xor eax, ebp
mov dword [ebp + 0x3c4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x3d0]
push 0x2e
xor esi, esi
lea eax, [ebp - 0x6c]
push esi
push eax
mov ebx, ecx
call fcn.00465a70
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x7c]
push eax
push edi
mov ecx, ebx
call fcn.0043fca6
test eax, eax
je 0x4400bd
push esi
push 0x80
push 3
push esi
push 3
lea eax, [ebx + 4]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x74], edi
cmp edi, 0xffffffff
jne 0x4400d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x21c], eax
xor eax, eax
mov ecx, dword [ebp + 0x3c4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004646d1
add ebp, 0x3c8
leave
ret 4
lea ecx, [ebx + 0x228]
call fcn.0043fb96
cmp eax, 1
jbe 0x440131
mov eax, dword [ebx + 0x218]
push 1
push esi
push eax
push edi
mov ecx, ebx
call fcn.0043fb00
test eax, eax
je 0x4400bd
push dword [0x4d5854]
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebx + 0x228]
call fcn.0043fb96
dec eax
push esi
mov word [ebp - 0x5e], ax
lea eax, [ebp - 0x78]
push eax
push 0x2e
lea eax, [ebp - 0x6c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x70]
push esi
add eax, 0xfffffec8
push esi
push eax
push edi
mov ecx, ebx
mov dword [ebp - 0x80], eax
call fcn.0043fb00
test eax, eax
je 0x4400bd
mov eax, dword [ebp - 0x7c]
mov edi, dword [eax + 0x10c]
push esi
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x70]
add ecx, edi
cmp ecx, eax
jne 0x4401a3
lea ecx, [ebx + 0x228]
call fcn.0043fb96
cmp eax, 1
jne 0x440195
push esi
push esi
push dword [ebx + 0x218]
mov ecx, ebx
push dword [ebp - 0x74]
call fcn.0043fb00
test eax, eax
je 0x4400bd
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x440232
mov eax, dword [ebp - 0x80]
push esi
push 0x80
push 3
push esi
push 3
lea edi, [edi + eax + 0x138]
push SysReAllocString
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x70], eax
cmp eax, 0xffffffff
je 0x4400b1
push 1
push esi
push edi
push eax
mov ecx, ebx
call fcn.0043fb00
test eax, eax
je 0x4400bd
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x440209
push esi
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x78]
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x78], esi
je 0x440220
push esi
lea eax, [ebp - 0x78]
push eax
push 0x400
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x70]
call edi
test eax, eax
jne 0x4401ef
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x7c]
mov ecx, ebx
call fcn.0043fdf2
xor eax, eax
inc eax
jmp 0x4400bf
Function at 0x440295
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
push 0x54
mov eax, 0x4a6fdf
call fcn.004646e0
mov esi, ecx
mov ebx, edx
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
mov edi, dword [esi + 0xa8]
cmp edi, eax
jne 0x4402d1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0043fe64
xor eax, eax
call fcn.004647b8
ret
push 0x1c
lea eax, [ebp - 0x3c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4402e8
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], eax
push str..debug
call fcn.0043fa98
pop ecx
test eax, eax
je 0x44030a
cmp dword [eax + 0xc], edi
jne 0x44030a
mov edi, dword [esi + 0xac]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x1c], edi
jmp 0x440355
push str..rdata
call fcn.0043fa98
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x44032c
push str..text
call fcn.0043fa98
pop ecx
mov ecx, eax
test ecx, ecx
je 0x4402bd
mov esi, dword [esi + 0xac]
mov eax, esi
push 0x1c
mov dword [ebp - 0x20], esi
xor edx, edx
pop esi
div esi
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4402bd
sub edi, dword [ecx + 0xc]
mov eax, dword [ecx + 0x14]
lea ecx, [eax + edi]
mov edi, dword [ebp - 0x20]
lea eax, [ecx + ebx]
mov esi, ecx
mov ecx, eax
sub ecx, ebx
cmp ecx, dword [ebp - 0x18]
jbe 0x4403bc
cmp dword [ebp + 8], 0
je 0x4403bc
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor edx, edx
mov eax, esi
div dword [ebp - 0x44]
imul eax, dword [ebp - 0x44]
mov ebx, eax
lea eax, [edx + edi]
push eax
push ebx
push 0
push 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x4403ad
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0043fe64
mov eax, esi
jmp 0x4402cb
push edi
lea ecx, [ebp - 0x10]
call fcn.00440257
sub edi, ebx
add edi, esi
mov eax, edi
mov edx, dword [ebp - 0x1c]
test edx, edx
jbe 0x4403db
add eax, 0x10
mov ecx, dword [eax]
mov esi, dword [eax + 8]
add esi, ecx
cmp esi, dword [ebp + 0xc]
jbe 0x4403d5
add dword [ebp - 0x14], ecx
add eax, 0x1c
dec edx
jne 0x4403c6
mov esi, dword [ebp - 0x14]
jmp 0x44039a
Function at 0x440420
Capabilities:
Get system information on windows
Parse pe header
Read file via mapping

Disassembly:
push 0x38
mov eax, 0x4a7012
call fcn.004646e0
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 2
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 0x18]
call fcn.004174d9
cmp dword [ebp - 0x18], 0xffffffff
jne 0x44049d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0043fe7e
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
call fcn.00402da0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00402da0
mov eax, esi
call fcn.004647b8
ret
push ebx
push ebx
push ebx
push 2
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push eax
lea ecx, [ebp - 0x10]
call fcn.004174d9
cmp dword [ebp - 0x10], ebx
je 0x44046a
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x40]
push eax
push ebx
push ebx
push 4
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push eax
lea ecx, [ebp - 0x14]
call fcn.00440276
mov edi, dword [ebp - 0x14]
cmp edi, ebx
je 0x44046a
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x44056e
mov esi, dword [edi + 0x3c]
push 0xf8
add esi, edi
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x440564
cmp dword [esi], 0x4550
jne 0x440564
mov eax, dword [esi + 0x54]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], eax
jae 0x440571
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x20]
push ebx
push ebx
push 4
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push eax
lea ecx, [ebp - 0x14]
call fcn.00440276
mov edi, dword [ebp - 0x14]
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x440564
mov esi, dword [edi + 0x3c]
push 0xf8
add esi, edi
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x440564
cmp dword [esi], 0x4550
je 0x440571
mov esi, 0xc1
jmp 0x440472
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x44057d
mov dword [eax], edi
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x44058c
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x44059b
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x4405a4
mov dword [eax], esi
xor esi, esi
jmp 0x440472
Function at 0x44063f
Capabilities:
Read file on windows

Disassembly:
push 0xc
mov eax, 0x4a706e
call fcn.004646e0
mov esi, ecx
mov dword [ebp - 0x18], esi
or dword [esi + 0x220], 0xffffffff
xor edi, edi
lea eax, [esi + 0x228]
mov dword [esi], vtable.STREAM.0
mov dword [esi + 0x20c], edi
mov dword [esi + 0x210], edi
mov byte [esi + 0x214], 1
mov byte [esi + 0x215], 1
mov byte [esi + 0x216], 1
mov dword [esi + 0x21c], edi
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [ebp - 4], edi
push dword [ebp + 8]
lea ebx, [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 1
push ebx
call fcn.004405ab
pop ecx
pop ecx
push edi
push 0x80
push 3
push edi
push 3
push SysReAllocString
push dword [ebp + 8]
mov dword [esi + 0x218], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x20c], eax
cmp eax, 0xffffffff
jne 0x4406e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x21c], eax
jmp 0x4407ea
push 0x2e
mov dword [esi + 0x210], 1
call fcn.00465987
push 0x2e
push edi
push eax
mov dword [esi + 0x224], eax
call fcn.00465a70
add esp, 0x10
push edi
push edi
push dword [esi + 0x218]
mov ecx, esi
push dword [esi + 0x20c]
call fcn.0043fb00
test eax, eax
je 0x4407ea
push edi
lea eax, [ebp - 0x14]
push eax
push 0x2e
push dword [esi + 0x224]
push dword [esi + 0x20c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x4407ea
cmp dword [ebp - 0x14], edi
je 0x4407ea
mov ecx, esi
call fcn.0043fae8
test eax, eax
je 0x440770
mov eax, dword [esi + 0x224]
movzx eax, word [eax + 0xe]
cmp ax, di
jne 0x4407df
push edi
push ebx
call fcn.004405ab
pop ecx
pop ecx
cmp eax, dword [esi + 0x218]
jbe 0x440787
mov dword [esi + 0x218], eax
push edi
push edi
push dword [esi + 0x218]
mov ecx, esi
push dword [esi + 0x20c]
call fcn.0043fb00
test eax, eax
je 0x4407ea
push edi
lea eax, [ebp - 0x10]
push eax
push 0x2e
push dword [esi + 0x224]
push dword [esi + 0x20c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x4407ea
cmp dword [ebp - 0x14], edi
je 0x4407ea
mov ecx, esi
call fcn.0043fae8
test eax, eax
je 0x4407ea
mov eax, dword [esi + 0x224]
movzx eax, word [eax + 0xe]
cmp ax, di
je 0x4407ea
movzx eax, ax
push eax
mov ecx, esi
call fcn.0043ffbe
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.004647b8
ret 4
Function at 0x4408e1
Capabilities:
Get common file path

Disassembly:
push 0x4c
mov eax, 0x4a7129
call fcn.00464749
push 1
lea eax, [ebp - 0x45]
mov edi, ecx
push eax
mov dword [ebp - 0x58], edi
call fcn.00401f90
and dword [ebp - 4], 0
push 1
lea eax, [ebp - 0x45]
push eax
lea ecx, [ebp - 0x44]
call fcn.00401f90
mov byte [ebp - 4], 1
mov esi, 0x104
push esi
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x44]
call fcn.0040b2f1
mov byte [ebp - 4], 2
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.00407803
push dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.0040b14b
push esi
lea eax, [ebp - 0x54]
push eax
mov ecx, edi
call fcn.0040b2f1
mov byte [ebp - 4], 3
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.00407803
cmp dword [ebp - 0x28], 8
mov eax, dword [eax]
mov ecx, dword [ebp - 0x3c]
jae 0x440972
lea ecx, [ebp - 0x3c]
push eax
push 0
push 0x4b2718
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.0040b14b
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.004016d0
or dword [ebp - 4], 0xffffffff
mov eax, edi
call fcn.004647cc
ret
Function at 0x4412a3
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x1d4]
sub esp, 0x254
mov eax, dword [0x4d6080]
xor eax, ebp
mov dword [ebp + 0x1d0], eax
mov eax, dword [ebp + 0x1e0]
mov ecx, dword [ebp + 0x1e4]
and dword [ebp - 0x4c], 0
push ebx
mov ebx, dword [ebp + 0x1dc]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, 0x4bdf40
push esi
push eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x44], ecx
call edi
push esi
push dword [ebp - 0x44]
call edi
lea eax, [ebp - 0x4c]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x441443
push esi
call fcn.00467a06
push esi
push 0
push eax
mov dword [ebp - 0x40], eax
call fcn.00465a70
add esp, 0x10
push dword [ebp - 0x40]
push esi
xor esi, esi
push esi
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x44143a
push 0x34
lea eax, [ebp - 0x80]
push esi
push eax
mov dword [ebp - 0x38], eax
call fcn.00465a70
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
push eax
push 0x4ae53c
push dword [ebp - 0x40]
mov dword [ebp - 0x3c], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x441388
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
push edx
shr ecx, 0x10
push ecx
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push str._u._u._u._u
push dword [ebp - 0x34]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
push 0x34
push esi
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], esi
call fcn.00465a70
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x40]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x44143a
mov esi, dword [ebp - 0x3c]
xor eax, eax
push 0x1fe
mov word [ebp - 0x30], ax
xor ebx, ebx
lea eax, [ebp - 0x2e]
push ebx
push eax
shr esi, 2
call fcn.00465a70
mov eax, dword [ebp - 0x38]
add esp, 0xc
mov dword [ebp - 0x48], eax
test esi, esi
jle 0x44143a
and dword [ebp - 0x34], 0
test ebx, ebx
jle 0x4413ec
add dword [ebp - 0x48], 4
push 4
push dword [ebp - 0x48]
lea eax, [ebp - 0x34]
push eax
call fcn.00465b60
movzx eax, word [ebp - 0x34]
add esp, 0xc
push eax
lea eax, [ebp - 0x30]
test ebx, ebx
jne 0x44141a
push 0x4b0dac
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x44142c
push dword [ebp - 0x44]
push 0x4b27f4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x44]
call edi
inc ebx
cmp ebx, esi
jl 0x4413e0
push dword [ebp - 0x40]
call fcn.00467ad0
pop ecx
mov ecx, dword [ebp + 0x1d0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004646d1
add ebp, 0x1d4
leave
ret
Function at 0x441744
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4d6080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00465a70
add esp, 0xc
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0044170f
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
pop esi
test eax, eax
je 0x4417b4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x4417af
cmp eax, 5
jne 0x4417b4
xor eax, eax
inc eax
jmp 0x4417b6
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004646d1
leave
ret 4

Function at 0x441895
Capabilities:
Create directory

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esp + 0x14], 1
call edi
inc eax
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004447d5
pop ecx
push dword [esp + 0x18]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x4ae53c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
mov ebx, esi
call edi
mov edi, eax
xor ebp, ebp
test edi, edi
jbe 0x441923
cmp word [ebx], 0x5c
jne 0x441915
xor eax, eax
push eax
push esi
mov word [ebx], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x44190f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x44191e
push 0x5c
pop eax
mov word [ebx], ax
inc ebx
inc ebx
inc ebp
cmp ebp, edi
jb 0x4418eb
jmp 0x441923
and dword [esp + 0x10], 0
push esi
call fcn.00464116
mov eax, dword [esp + 0x14]
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

Function at 0x4419ca
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x4d6080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [0x4db74c], esi
jne 0x4419f0
mov eax, dword [0x4d5878]
cmp eax, 0xffffffff
jne 0x441a30
push 0x14
lea eax, [ebp - 0x2c]
push eax
push 0x1004
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x441a2a
lea eax, [ebp - 0x2c]
push eax
call fcn.00466d5b
pop ecx
push 2
lea ecx, [ebp - 0x4c]
push ecx
push eax
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
test eax, eax
je 0x441a3d
movsx eax, word [ebp - 0x4c]
mov dword [0x4d5878], eax
mov ax, word [0x4d5878]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004646d1
leave
ret
push 1
push esi
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x441a2a
xor eax, eax
jmp 0x441a30
Function at 0x441dbb
Capabilities:
Compare security identifiers

Disassembly:
push 0x20
mov eax, 0x4a722f
call fcn.00464749
xor ebx, ebx
lea eax, [ebp - 0x1c]
push eax
push ebx
push 8
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x441e29
call esi
cmp eax, 0x3f0
jne 0x441e18
lea eax, [ebp - 0x1c]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call esi
cmp eax, 0x78
jne 0x441e25
xor eax, eax
call fcn.004647cc
ret
cmp eax, ebx
je 0x441e1d
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x1c]
call edi
test eax, eax
jne 0x441e1d
call esi
cmp eax, 0x7a
jne 0x441e1d
push dword [ebp - 0x20]
call fcn.00465987
mov esi, eax
pop ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push esi
push 2
push dword [ebp - 0x1c]
call edi
test eax, eax
jne 0x441e78
or dword [ebp - 4], 0xffffffff
push esi
call fcn.00463f3b
pop ecx
jmp 0x441e1d
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x441eab
or dword [ebp - 4], 0xffffffff
push esi
call fcn.00463f3b
pop ecx
mov eax, ebx
jmp 0x441e1f
xor edi, edi
mov dword [ebp - 0x28], ebx
cmp dword [esi], ebx
jbe 0x441ed7
lea ebx, [esi + 4]
push dword [ebp - 0x24]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x441ed0
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x441eb7
jmp 0x441ed7
mov dword [ebp - 0x28], 1
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ebx, dword [ebp - 0x28]
jmp 0x441e99
Function at 0x441f61
Capabilities:
Get disk size

Disassembly:
push ebp
lea ebp, [esp - 0xfb4]
mov eax, 0x1034
call fcn.00465b30
mov eax, dword [0x4d6080]
xor eax, ebp
mov dword [ebp + 0xfb0], eax
push ebx
push esi
mov esi, dword [ebp + 0xfc0]
push edi
mov edi, dword [ebp + 0xfbc]
xor ebx, ebx
push 0x4b289c
mov dword [ebp - 0x58], ebx
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x64], eax
cmp eax, ebx
je 0x44207c
push str.GetDiskFreeSpaceExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x54], eax
cmp eax, ebx
je 0x442006
push edi
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x50]
push eax
call fcn.00441823
test eax, eax
je 0x441fe0
lea eax, [ebp - 0x50]
push eax
call fcn.00441d16
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x50]
push eax
call dword [ebp - 0x54]
test eax, eax
je 0x442073
mov eax, dword [ebp - 0x70]
cmp dword [ebp - 0x6c], ebx
je 0x44206a
mov eax, SysReAllocString
jmp 0x44206a
mov ax, word [edi]
mov word [ebp + 0x7b0], ax
mov ax, word [edi + 2]
mov word [ebp + 0x7b2], ax
mov ax, word [edi + 4]
mov word [ebp + 0x7b4], ax
xor eax, eax
mov word [ebp + 0x7b6], ax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp + 0x7b0]
push eax
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x68], ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x442073
mov eax, dword [ebp - 0x60]
imul eax, dword [ebp - 0x5c]
imul eax, dword [ebp - 0x54]
shr eax, 0xa
mov dword [ebp - 0x58], 1
mov dword [esi], eax
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp + 0xfb0]
mov eax, dword [ebp - 0x58]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004646d1
add ebp, 0xfb4
leave
ret

Function at 0x442097
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x4d6080]
xor eax, ebp
mov dword [ebp - 4], eax
push dword [0x4d5874]
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x804]
push eax
call fcn.00441d63
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0xc0000000
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4420e7
xor eax, eax
jmp 0x4420fe
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004646d1
leave
ret
Function at 0x4421fe
Capabilities:
Delete directory

Disassembly:
push 4
mov eax, 0x4a725c
call fcn.004646e0
push 8
sub esp, 0x34
mov ecx, esp
mov dword [ebp - 0x10], esp
push 1
lea eax, [ebp + 0xb]
push eax
push dword [ebp + 8]
xor edi, edi
call fcn.004096ba
and dword [ebp - 4], edi
or dword [ebp - 4], 0xffffffff
call fcn.0044cef2
add esp, 0x38
test al, al
je 0x442256
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
call esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x442252
inc edi
push 0
call esi
mov eax, edi
call fcn.004647b8
ret 4

Function at 0x442260
Capabilities:
Delete file
Set file attributes

Disassembly:
push 4
mov eax, 0x4a727f
call fcn.004646e0
mov edi, dword [ebp + 8]
push 4
sub esp, 0x34
mov ecx, esp
mov dword [ebp - 0x10], esp
push 1
lea eax, [ebp + 0xb]
push eax
push edi
call fcn.004096ba
xor ebx, ebx
mov dword [ebp - 4], ebx
or dword [ebp - 4], 0xffffffff
call fcn.0044cef2
add esp, 0x38
test al, al
jne 0x44229f
xor eax, eax
inc eax
jmp 0x4422d6
push edi
call fcn.00441936
test eax, eax
jne 0x4422d4
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
call esi
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4422d0
xor ebx, ebx
inc ebx
push 0
call esi
mov eax, ebx
call fcn.004647b8
ret 4