joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453bf0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b8978
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x453c29
inc eax
mov dword [esi + 0x10], eax
jmp 0x453d3c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x453c3d
mov eax, 0xffffffc7
jmp 0x453d3e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x453c4e
cmp dword [esi + 8], eax
jne 0x453c3d
cmp dword [esi + 8], eax
jne 0x453c67
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x453c67
mov eax, 0xffffffc7
jmp 0x453d3e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x453c7b
push eax
mov ecx, ebx
call fcn.00453420
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00421560
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x453cac
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00421580
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00452b90
test eax, eax
mov dword [esp + 0x38], eax
je 0x453cdf
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x571b90
call fcn.00421760
mov eax, dword [esp + 0x38]
jmp 0x453d3e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00453a50
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x453d23
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00453a70
mov esi, eax
test esi, esi
jne 0x453d53
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00453a50
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x453cf5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x571b90
call fcn.00421760
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x571b90
call fcn.00421760
mov eax, esi
jmp 0x453d3e

Function at 0x458890
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x4588f0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4588f0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x4588f0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x4588f0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x458930
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x485e00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x485e53
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x485e3a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x48c800
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b98ae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0048d120
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x575844
call fcn.004aac45
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x48c893
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004aac45
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x48c88c
push 0
mov ecx, eax
call fcn.00483980
mov dword [esi + 0xc], eax
jmp 0x48c895
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x48c895
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x4ad2d5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4ad30d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004ab35f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004ab337
jmp 0x4ad319
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4ae9c3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4aea05
call fcn.004b447c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4aea05
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4ae9fc
xor eax, eax
jmp 0x4aea0d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004aea13
pop edi
pop esi
pop ebx
ret 4
Function at 0x4b49ac
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4b49da
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b49f8
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b4912
jmp 0x4b49f8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b49f8
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b4912
test edi, edi
mov eax, edi
jne 0x4b49e2
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401063
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4c403c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401138
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401127
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x401111
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x401127
push eax
push edi
push dword [ebp - 0x110]
call section..text
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x40113a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0046a342
leave
ret 4

Function at 0x403df0
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
mov edi, edx
push 0x2002
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x403e46
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x403e46
push dword [ebp + 8]
push edi
push eax
call fcn.0046cb70
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x403e46
mov dword [ebp - 4], ebx
mov bl, 1
lea ecx, [ebp - 4]
call fcn.00407dd9
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x403e9c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x68c
mov eax, dword [0x4c403c]
xor eax, esp
mov dword [esp + 0x688], eax
mov eax, dword [ebp + 0x18]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [esp + 0x14], edx
lea edx, [esp + 0x27c]
push edi
mov edi, dword [ebp + 0x10]
sub edx, esi
mov dword [esp + 0x1c], eax
movzx eax, word [esi]
mov word [edx + esi], ax
lea esi, [esi + 2]
test ax, ax
jne 0x403ed5
push 0x50
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.0046d670
add esp, 0xc
mov dword [esp + 0x20], 0x4c
lea eax, [esp + 0x78]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
mov esi, 0x4a4374
mov dword [esp + 0x14], 0x104
test edi, edi
mov eax, esi
cmovne eax, edi
push eax
call fcn.00403e55
push esi
call fcn.00403e55
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x78]
and dword [esp + 0x4c], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x280]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x44], 0x208
mov dword [esp + 0x58], 0x80004
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
mov ecx, dword [esp + 0x1c]
mov esi, eax
lea eax, [esp + 0x280]
push eax
call fcn.00402bcc
mov ecx, dword [esp + 0x694]
test esi, esi
pop edi
pop esi
setne al
pop ebx
xor ecx, esp
call fcn.0046a342
mov esp, ebp
pop ebp
ret

Function at 0x404298
Capabilities:
Change the wallpaper

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4c403c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetDialogBaseUnits]
xor ebx, ebx
mov edi, eax
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, esi
movzx ecx, di
cdq
and edx, 3
add eax, edx
sar eax, 2
imul eax, ecx
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x14]
cmp eax, ecx
jg 0x4042f2
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
shr edi, 0x10
imul ecx, edi, 0x19
cmp ecx, eax
jg 0x4042f2
mov bl, 1
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046a342
leave
ret

Function at 0x404c18
Capabilities:
Set file attributes

Disassembly:
push 0xc
mov eax, 0x49124e
call fcn.0046aef2
mov ebx, edx
mov edi, ecx
call fcn.0040767f
mov esi, eax
cmp esi, 1
je 0x404c44
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x404c44
mov al, 1
jmp 0x404c94
test esi, esi
je 0x404c92
lea ecx, [ebp - 0x18]
call fcn.00402a89
and dword [ebp - 4], 0
lea edx, [ebp - 0x18]
cmp esi, 1
mov ecx, edi
setne al
movzx eax, al
push eax
call fcn.00407ac3
pop ecx
test al, al
je 0x404c89
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp - 0x18]
mov esi, eax
call fcn.0046a358
test esi, esi
pop ecx
setne al
jmp 0x404c94
push dword [ebp - 0x18]
call fcn.0046a358
pop ecx
xor al, al
call fcn.0046aebb
ret
Function at 0x404d15
Capabilities:
Move file

Disassembly:
push 0x1c
mov eax, 0x491279
call fcn.0046aef2
mov ebx, edx
mov eax, ecx
mov dword [ebp - 0x10], eax
call fcn.0040767f
mov ecx, ebx
mov edi, eax
call fcn.0040767f
mov esi, eax
cmp edi, 1
je 0x404d57
cmp esi, 1
je 0x404d57
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x404d57
mov al, 1
jmp 0x404dd9
test edi, edi
jne 0x404d5f
test esi, esi
je 0x404dd7
lea ecx, [ebp - 0x28]
call fcn.00402a89
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00402a89
mov byte [ebp - 4], 1
cmp edi, 1
je 0x404d85
cmp esi, 1
je 0x404d85
mov al, 1
jmp 0x404d87
xor al, al
mov ecx, dword [ebp - 0x10]
mov edx, ebx
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00407af3
add esp, 0xc
push dword [ebp - 0x1c]
test al, al
je 0x404dc8
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push dword [ebp - 0x1c]
mov esi, eax
call fcn.0046a358
push dword [ebp - 0x28]
call fcn.0046a358
test esi, esi
pop ecx
pop ecx
setne al
jmp 0x404dd9
call fcn.0046a358
push dword [ebp - 0x28]
call fcn.0046a358
pop ecx
pop ecx
xor al, al
call fcn.0046aebb
ret

Function at 0x404ed1
Capabilities:
Create directory

Disassembly:
push 0xc
mov eax, 0x49124e
call fcn.0046aef2
mov edi, ecx
call fcn.0040767f
mov esi, eax
cmp esi, 1
je 0x404f09
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x404efc
mov al, 1
jmp 0x404f5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x404f58
test esi, esi
je 0x404f58
lea ecx, [ebp - 0x18]
call fcn.00402a89
and dword [ebp - 4], 0
lea edx, [ebp - 0x18]
cmp esi, 1
mov ecx, edi
setne al
movzx eax, al
push eax
call fcn.00407ac3
pop ecx
test al, al
je 0x404f4f
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [ebp - 0x18]
mov esi, eax
call fcn.0046a358
test esi, esi
pop ecx
setne al
jmp 0x404f5a
push dword [ebp - 0x18]
call fcn.0046a358
pop ecx
xor al, al
call fcn.0046aebb
ret
Function at 0x404f60
Capabilities:
Create directory

Disassembly:
push 0x84
mov eax, 0x4912da
call fcn.0046aef2
mov edi, ecx
call fcn.0040767f
xor ebx, ebx
mov esi, eax
xor eax, eax
mov dword [ebp - 0x14], esi
inc ebx
mov dword [ebp - 0x10], eax
cmp esi, ebx
je 0x404fab
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x404f9a
mov al, bl
jmp 0x40509a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x405048
test esi, esi
je 0x405048
lea ecx, [ebp - 0x20]
call fcn.00402a89
xor esi, esi
lea edx, [ebp - 0x20]
cmp dword [ebp - 0x14], ebx
mov ecx, edi
mov dword [ebp - 4], esi
setne al
movzx eax, al
push eax
call fcn.00407ac3
pop ecx
test al, al
je 0x40503b
push esi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40502f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x404ff8
xor bl, bl
jmp 0x40502f
lea ecx, [ebp - 0x58]
call fcn.00405a62
lea ecx, [ebp - 0x30]
call fcn.00402a89
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x58]
push dword [ebp - 0x20]
call fcn.00405af9
test al, al
jne 0x40501e
xor bl, bl
jmp 0x405026
mov eax, dword [ebp - 0x38]
shr eax, 4
and bl, al
push dword [ebp - 0x30]
call fcn.0046a358
pop ecx
push dword [ebp - 0x20]
call fcn.0046a358
mov al, bl
jmp 0x405099
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x20]
call fcn.0046a358
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x405059
xor al, al
jmp 0x40509a
lea ecx, [ebp - 0x90]
call fcn.00405a62
lea ecx, [ebp - 0x68]
call fcn.00402a89
push edi
lea ecx, [ebp - 0x90]
mov dword [ebp - 4], 2
call fcn.00405af9
test al, al
je 0x40508e
mov eax, dword [ebp - 0x70]
shr eax, 4
and al, bl
mov byte [ebp - 0x10], al
push dword [ebp - 0x68]
call fcn.0046a358
mov al, byte [ebp - 0x10]
pop ecx
call fcn.0046aebb
ret

Function at 0x4054b2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4c403c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
xor ecx, ecx
mov eax, dword [edi]
and dword [edi + 4], 0
mov word [eax], cx
xor eax, eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
mov ecx, edi
lea eax, [ebp - 0x210]
push eax
call fcn.00402bcc
lea eax, [esi - 1]
mov ecx, 0x103
cmp ecx, eax
mov ecx, dword [ebp - 4]
pop edi
sbb al, al
xor ecx, ebp
inc al
pop esi
call fcn.0046a342
leave
ret
Function at 0x405a83
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xc
mov eax, 0x49124e
call fcn.0046aef2
mov edi, ecx
call fcn.0040767f
mov esi, eax
cmp esi, 1
je 0x405aa9
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x405af3
test esi, esi
je 0x405af0
lea ecx, [ebp - 0x18]
call fcn.00402a89
and dword [ebp - 4], 0
lea edx, [ebp - 0x18]
cmp esi, 1
mov ecx, edi
setne al
movzx eax, al
push eax
call fcn.00407ac3
pop ecx
push dword [ebp - 0x18]
test al, al
je 0x405aea
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push dword [ebp - 0x18]
mov esi, eax
call fcn.0046a358
pop ecx
mov eax, esi
jmp 0x405af3
call fcn.0046a358
pop ecx
or eax, 0xffffffff
call fcn.0046aebb
ret

Function at 0x4061ae
Capabilities:
Get disk information

Disassembly:
push 0x24
mov eax, 0x49148f
call fcn.0046aef2
mov eax, ecx
mov dword [ebp - 0x1c], eax
call fcn.00401b00
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
mov dword [ebp - 0x18], edi
test edi, edi
jne 0x4061de
xor al, al
jmp 0x406284
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046a477
mov esi, eax
pop ecx
mov dword [ebp - 0x24], esi
push esi
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
test edi, edi
je 0x40627b
cmp edi, dword [ebp - 0x18]
ja 0x40627b
lea ecx, [ebp - 0x30]
call fcn.00402a89
mov byte [ebp - 4], 1
mov edx, ebx
mov dword [ebp - 0x18], edx
mov ecx, ebx
mov dword [ebp - 0x10], ecx
test edi, edi
je 0x40626d
push 2
pop eax
mov dword [ebp - 0x14], eax
cmp word [esi + eax - 2], bx
jne 0x40625c
lea eax, [edx + esi]
push eax
lea ecx, [ebp - 0x30]
call fcn.00402bcc
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x30]
push eax
call fcn.00401b4b
mov eax, dword [ebp - 0x14]
mov edx, eax
mov ecx, dword [ebp - 0x10]
inc ecx
add eax, 2
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
cmp ecx, edi
jb 0x40622e
mov edx, dword [ebp - 0x18]
push dword [ebp - 0x30]
cmp edx, edi
sete bl
call fcn.0046a358
pop ecx
push esi
call fcn.0046a358
pop ecx
mov al, bl
call fcn.0046aebb
ret

Function at 0x406359
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [ecx + 4], 0
je 0x40637b
cmp byte [ecx + 5], 0
je 0x40637b
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 8]
mov dword [edx], eax
mov eax, dword [ecx + 0xc]
mov dword [edx + 4], eax
mov al, 1
jmp 0x4063b2
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40639d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40639d
xor al, al
jmp 0x4063b1
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x40684b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov edx, 0x400000
push esi
mov esi, dword [ebp + 0xc]
push edi
and dword [ebx], 0
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
cmp esi, edx
mov eax, esi
push 0
cmova eax, edx
and dword [ebp + 0x10], 0
lea edx, [ebp + 0x10]
push edx
push eax
push edi
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x10]
add dword [ebx], ecx
test eax, eax
je 0x4068a0
test ecx, ecx
je 0x40689c
add edi, ecx
mov edx, 0x400000
sub esi, ecx
mov ecx, dword [ebp - 4]
jne 0x406866
mov al, 1
jmp 0x4068a2
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x407473
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4c403c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
xor ecx, ecx
mov eax, dword [edi]
and dword [edi + 4], 0
mov word [eax], cx
xor eax, eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
mov ecx, edi
lea eax, [ebp - 0x210]
push eax
call fcn.00402bcc
lea eax, [esi - 1]
mov ecx, 0x103
cmp ecx, eax
mov ecx, dword [ebp - 4]
pop edi
sbb al, al
xor ecx, ebp
inc al
pop esi
call fcn.0046a342
leave
ret

Function at 0x407d15
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
push str.GetDiskFreeSpaceExW
push 0x4a43c0
mov esi, edx
mov dword [ebp - 8], ecx
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x407d75
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push dword [ebp - 8]
call eax
test eax, eax
mov eax, dword [ebp - 0x20]
mov dword [ebx], eax
mov eax, dword [ebp - 0x1c]
setne byte [ebp - 1]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [edi], eax
mov eax, dword [ebp - 0x24]
mov dword [edi + 4], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
jne 0x407d96
xor al, al
jmp 0x407dd4
mov eax, dword [ebp - 0x14]
mul dword [ebp - 0x18]
cmp byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
mov dword [esi], eax
mov dword [esi + 4], edx
jne 0x407dd2
mov eax, edx
mul dword [ebp - 0xc]
mov ecx, eax
mov eax, dword [ebp - 0x18]
mul dword [ebp - 0xc]
add ecx, edx
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov eax, dword [esi + 4]
mul dword [ebp - 0x10]
mov ecx, eax
mov eax, dword [esi]
mul dword [ebp - 0x10]
add ecx, edx
mov dword [edi], eax
mov dword [edi + 4], ecx
mov al, 1
pop edi
pop esi
pop ebx
leave
ret