joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45fa30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x74b738]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [ebp + 8]
mov eax, dword [ebp + 0x48]
push esi
movups xmmword [ebp - 0x48], xmm0
mov esi, dword [ebp + 0x8c]
movups xmm0, xmmword [ebp + 0x18]
push edi
mov edi, ecx
mov dword [ebp - 8], eax
movups xmmword [ebp - 0x38], xmm0
xor eax, eax
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0x4c], esi
mov dword [edi + 0x40], esi
movups xmm0, xmmword [ebp + 0x28]
movups xmmword [ebp - 0x28], xmm0
movups xmm0, xmmword [ebp + 0x38]
movups xmmword [ebp - 0x18], xmm0
movups xmm0, xmmword [ebp + 0x4c]
movups xmmword [ebp - 0x8c], xmm0
movups xmm0, xmmword [ebp + 0x5c]
movups xmmword [ebp - 0x7c], xmm0
movups xmm0, xmmword [ebp + 0x6c]
movups xmmword [ebp - 0x6c], xmm0
movups xmm0, xmmword [ebp + 0x7c]
movups xmmword [ebp - 0x5c], xmm0
test esi, esi
jle 0x45fbb4
cmp esi, 0x40
jb 0x45fb9d
lea edx, [esi - 1]
lea ecx, [ebp + esi - 0x49]
add edx, edi
cmp edi, ecx
ja 0x45fad3
lea ecx, [ebp - 0x48]
cmp edx, ecx
jae 0x45fb9d
lea ecx, [ebp + esi - 0x8d]
cmp edi, ecx
ja 0x45faec
lea ecx, [ebp - 0x8c]
cmp edx, ecx
jae 0x45fb9d
mov ecx, esi
push ebx
and ecx, 0x8000003f
jns 0x45fafc
dec ecx
or ecx, 0xffffffc0
inc ecx
mov ebx, esi
lea edx, [edi + 0x20]
sub ebx, ecx
mov dword [ebp - 0x98], edx
mov esi, edi
lea ecx, [ebp - 0x38]
sub esi, ecx
sub ecx, edi
mov dword [ebp - 0x90], ecx
lea ecx, [ebp - 0x7c]
sub ecx, edi
mov edi, dword [ebp - 0x90]
mov dword [ebp - 0x94], ecx
nop dword [eax]
movups xmm0, xmmword [ebp + eax - 0x48]
lea ecx, [ebp - 0x38]
add edx, eax
movups xmm1, xmmword [ebp + eax - 0x8c]
add ecx, eax
pxor xmm1, xmm0
movups xmm0, xmmword [ecx]
movups xmmword [esi + ecx], xmm1
mov ecx, dword [ebp - 0x94]
movups xmm1, xmmword [ebp + eax - 0x7c]
pxor xmm1, xmm0
movups xmm0, xmmword [ebp + eax - 0x6c]
movups xmmword [edx - 0x10], xmm1
movups xmm1, xmmword [ebp + eax - 0x28]
add eax, 0x40
pxor xmm1, xmm0
movups xmm0, xmmword [edi + edx]
movups xmmword [edx], xmm1
movups xmm1, xmmword [ecx + edx]
pxor xmm1, xmm0
movups xmmword [edx + 0x10], xmm1
mov edx, dword [ebp - 0x98]
cmp eax, ebx
jl 0x45fb30
mov esi, dword [ebp - 0x9c]
mov edi, dword [ebp - 0xa0]
pop ebx
cmp eax, esi
jge 0x45fbb4
mov cl, byte [ebp + eax - 0x8c]
xor cl, byte [ebp + eax - 0x48]
mov byte [edi + eax], cl
inc eax
cmp eax, esi
jl 0x45fba1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00669a1e
mov esp, ebp
pop ebp
ret
Function at 0x464f80
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x670f6f
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x74b738]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 5
push dword [esi - 0x20]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x20]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [0x758f8c]
test eax, eax
jne 0x465016
push 0x74c144
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x758f8c], 0
jne 0x465006
push 0x70
call fcn.00669e77
add esp, 4
mov dword [ebp + 8], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.004709e0
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
xchg dword [ebp + 8], eax
mov dword [0x758f8c], ecx
push 0x74c144
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x758f8c]
cmp dword [eax + 0x34], 0
je 0x465020
push 0
jmp 0x46502d
call fcn.00465320
cmp dword [eax + 0x54], 0
je 0x465036
push 1
mov eax, dword [esi + 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x46f2c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x74b738]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx + 4]
mov edx, dword [ebp + 8]
or eax, 0x2001f
push esi
push edi
push eax
push edx
push dword [ecx]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.0046f210
mov esi, eax
test esi, esi
jne 0x46f3b7
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x100
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x46f389
nop dword [eax]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.0046f2c0
mov esi, eax
test esi, esi
jne 0x46f3b7
lea eax, [esp + 0x20]
mov dword [esp + 8], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
je 0x46f350
mov eax, dword [esp + 0xc]
test eax, eax
je 0x46f3a0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
push dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], 0
call fcn.0046f530
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x46f3c6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.00669a1e
mov esp, ebp
pop ebp
ret 4
Function at 0x4701b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x671c96
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x74b738]
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 eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x47025c
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x47025c
call fcn.0045a8f0
mov edi, eax
jmp 0x47037b
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x47027f
call fcn.0045a8f0
jmp 0x47036e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x47029d
call fcn.0045a8f0
jmp 0x47036e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x4702be
mov edi, 0x8007000e
jmp 0x470370
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x4703b4
jb 0x4702dc
cmp eax, 0xffffffff
ja 0x4703b4
cmp eax, 0x400
jbe 0x4702f1
push eax
lea ecx, [ebp - 0x418]
call fcn.0046de10
jmp 0x470317
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x470317
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
jne 0x47032e
mov edi, 0x8007000e
jmp 0x470370
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x47034e
call fcn.0045a8f0
jmp 0x47036e
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00470000
mov edi, eax
test esi, esi
je 0x47037b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x470394
lea ecx, [ebp - 0x418]
call fcn.0046ddf0
mov eax, edi
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.00669a1e
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.00422220
int3
Function at 0x476880
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2024
call fcn.0066af60
mov eax, dword [0x74b738]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x4768af
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00669a1e
mov esp, ebp
pop ebp
ret
push 0x2000
xorps xmm0, xmm0
mov dword [ebp - 0x200c], 0
lea eax, [ebp - 0x2004]
movq qword [ebp - 0x2014], xmm0
push 0
movups xmmword [ebp - 0x2024], xmm0
push eax
mov word [ebp - 0x2008], 0
mov dword [ebp - 0x2020], 3
call sub.VCRUNTIME140.dll_memset
push 0x1000
lea eax, [ebp - 0x2004]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
lea eax, [ebp - 0x2004]
add esp, 0x18
mov dword [ebp - 0x201c], eax
mov eax, 0x614
mov word [ebp - 0x2014], ax
lea eax, [ebp - 0x2024]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.00669a1e
mov esp, ebp
pop ebp
ret
Function at 0x476940
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x74b738]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x476b4f
mov edx, esi
lea ecx, [edx + 2]
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x476970
sub edx, ecx
sar edx, 1
cmp edx, 3
jbe 0x476b4f
push ebx
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov edi, 1
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
add esp, 0x18
push esi
push eax
call ebx
push 0x6ec280
lea eax, [ebp - 0x414]
push eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4769f1
test al, 1
je 0x4769f1
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x668], eax
cmp eax, 0xffffffff
je 0x476b35
lea ecx, [ebp - 0x664]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x476b29
nop word [eax + eax]
test byte [ebp - 0x664], 0x10
je 0x476aa4
cmp word [ebp - 0x638], 0x2e
jne 0x476a67
mov ax, word [ebp - 0x636]
test ax, ax
je 0x476b0e
cmp ax, 0x2e
jne 0x476a67
cmp word [ebp - 0x634], 0
je 0x476b0e
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call ebx
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
lea ecx, [ebp - 0x20c]
call fcn.00476940
jmp 0x476b0c
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call ebx
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x476afb
test al, 1
je 0x476afb
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
and edi, eax
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x476a30
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
and eax, edi
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00669a1e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00669a1e
mov esp, ebp
pop ebp
ret
Function at 0x476e10
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x476e53
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x476e53
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x476e44
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x476e53
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
pop esi
ret
mov eax, 1
pop esi
ret
Function at 0x476e60
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6724d6
mov eax, dword fs:[0]
push eax
sub esp, 0x880
mov eax, dword [0x74b738]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
test ebx, ebx
jne 0x476e9b
xor eax, eax
jmp 0x47709c
cmp word [ebx], 0
je 0x476e94
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x476ea4
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
jge 0x476e94
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x6ec28c
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x476eff
test al, 1
je 0x476eff
and eax, 0xfffffffe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, 0x5c
mov dword [ebp - 0x428], 0
mov word [ebp - 0x42c], ax
mov dword [ebp - 0x424], 0
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x884]
call fcn.004775c0
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x47704e
cmp dword [ebp - 0x424], 0
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
je 0x476fae
mov eax, dword [ebp - 0x884]
shr eax, 4
and eax, 1
je 0x476fae
cmp word [ebp - 0x858], 0x2e
jne 0x476fae
mov ax, word [ebp - 0x856]
test ax, ax
je 0x476f89
cmp ax, 0x2e
jne 0x476fae
cmp word [ebp - 0x854], 0
jne 0x476fae
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x4770b8
lea ecx, [ebp - 0x884]
push ecx
push eax
call edi
mov edi, eax
mov dword [ebp - 0x424], edi
jmp 0x477040
lea eax, [ebp - 0x888]
push eax
lea ecx, [ebp - 0x884]
call fcn.00477280
mov byte [ebp - 4], 1
cmp dword [ebp - 0x424], 0
je 0x476fea
mov eax, dword [ebp - 0x884]
shr eax, 4
and eax, 1
je 0x476fea
mov esi, dword [ebp - 0x888]
mov ecx, esi
call fcn.00476e60
jmp 0x476ff7
mov esi, dword [ebp - 0x888]
mov ecx, esi
call fcn.00476e10
mov eax, dword [ebp - 0x428]
test eax, eax
jne 0x477005
xor edi, edi
jmp 0x477024
cmp dword [ebp - 0x424], 0
jne 0x477012
xor edi, edi
jmp 0x477024
lea ecx, [ebp - 0x884]
push ecx
push eax
call edi
mov edi, eax
mov dword [ebp - 0x424], edi
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x477040
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x476f46
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x424], 0
test eax, eax
je 0x477074
cmp eax, 0xffffffff
je 0x477074
push eax
call esi
mov dword [ebp - 0x428], 0
mov ecx, ebx
call fcn.00476880
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x424], 0
test eax, eax
je 0x477097
cmp eax, 0xffffffff
je 0x477097
push eax
call esi
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00669a1e
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x424], 0
jmp 0x477074
Function at 0x4777a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x672590
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x74b738]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push esi
lea ecx, [ebp - 0x10]
call fcn.00441f70
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.004375f0
lea ecx, [ebp - 0x10]
call fcn.00437540
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x4777fc
mov esi, 3
jmp 0x477931
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x477800
sub esi, ecx
sar esi, 1
cmp esi, 0x102
jbe 0x477821
mov esi, 8
jmp 0x477931
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x477838
mov esi, 5
jmp 0x477931
push dword [ebp - 0x10]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
je 0x47785c
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x47785c
lea esi, [eax + 4]
jmp 0x477931
lea ecx, [ebp - 0x10]
call fcn.00477980
test eax, eax
je 0x477872
mov esi, 6
jmp 0x477931
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jl 0x477966
movzx ecx, word [eax]
call fcn.00477bc0
shrd eax, edx, 0x14
shr edx, 0x14
test edx, edx
ja 0x4778a5
jb 0x47789b
cmp eax, 0x12c
jae 0x4778a5
mov esi, 1
jmp 0x477931
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x477904
push eax
push eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
call fcn.00479930
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
push ecx
mov esi, esp
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.00441300
add esp, 4
lea ecx, [ebp - 0x1c]
add eax, 0x10
mov dword [esi], eax
call fcn.004782c0
lea ecx, [ebp - 0x1c]
test eax, eax
jne 0x4778fb
call fcn.00478210
mov esi, 9
jmp 0x477931
mov byte [ebp - 4], 0
call fcn.00478210
push ecx
mov esi, esp
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.00441300
add esp, 4
add eax, 0x10
mov dword [esi], eax
call fcn.00478070
add esp, 4
test eax, eax
jne 0x47792f
lea esi, [eax + 2]
jmp 0x477931
xor esi, esi
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edi, dword [ebp - 0x10]
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x477953
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00422220
int3
Function at 0x477ab0
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x81c
mov eax, dword [0x74b738]
xor eax, esp
mov dword [esp + 0x818], eax
push ebx
push esi
push edi
push 0x800
lea eax, [esp + 0x24]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ax, word [esp + 0x20]
lea esi, [esp + 0x20]
test ax, ax
je 0x477b90
mov ebx, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov edi, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
movzx ecx, ax
mov eax, dword [0x6ec298]
mov dword [esp + 0x18], eax
mov eax, dword [0x6ec29c]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
mov word [esp + 0x1c], cx
call ebx
cmp eax, 3
jne 0x477b65
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
push 0
push 0
lea eax, [esp + 0x24]
movlpd qword [esp + 0x1c], xmm0
push eax
call edi
test eax, eax
je 0x477b65
cmp dword [esp + 0x14], 0
ja 0x477ba7
jb 0x477b65
cmp dword [esp + 0x10], 0x12c00000
ja 0x477ba7
mov eax, esi
lea edx, [eax + 2]
nop word [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x477b70
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2]
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x477b12
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x818]
xor ecx, esp
call fcn.00669a1e
mov esp, ebp
pop ebp
ret
mov ax, word [esi]
mov ecx, dword [esp + 0x824]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00669a1e
mov esp, ebp
pop ebp
ret

Function at 0x477bc0
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x74b738]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x6ec298]
mov dword [ebp - 0xc], eax
mov eax, dword [0x6ec29c]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xc], cx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x477c25
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
push eax
push 0
push 0
lea eax, [ebp - 0xc]
movlpd qword [ebp - 0x18], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x477c25
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00669a1e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
xor edx, edx
call fcn.00669a1e
mov esp, ebp
pop ebp
ret
Function at 0x477e60
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6725fe
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x74b738]
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 ebx, ecx
mov dword [ebp - 0x128], ebx
xor edi, edi
mov dword [ebp - 4], 0
push edi
push edi
mov dword [ebp - 0x130], edi
mov dword [ebp - 0x12c], edi
call fcn.00479930
mov dword [ebp - 0x130], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
push ebx
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
mov dword [ebp - 0x124], esi
call fcn.00441300
add esp, 4
lea ecx, [ebp - 0x130]
add eax, 0x10
mov dword [esi], eax
call fcn.004782c0
or ebx, 0xffffffff
test eax, eax
je 0x478017
push 0x102
lea eax, [ebp - 0x11c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x11c]
call fcn.00478690
call fcn.004225c0
mov ecx, eax
test ecx, ecx
je 0x47805f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x11c]
mov byte [ebp - 4], 2
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x120]
push str._s_s.tf
push eax
call fcn.004383f0
mov esi, dword [ebp - 0x120]
add esp, 0x10
push 0
push 0x80
push 2
push 0
push 2
push 0x120116
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
mov dword [ebp - 0x124], ecx
cmp ecx, 0xffffffff
je 0x477fee
lea edi, [ebp - 0x11c]
lea edx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x477f85
push 0
sub edi, edx
mov dword [ebp - 0x120], 0
lea eax, [ebp - 0x120]
sar edi, 1
push eax
push edi
lea eax, [ebp - 0x11c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x477fc9
cmp edi, dword [ebp - 0x120]
jne 0x477fd7
mov edi, 1
jmp 0x477fd9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x128]
mov dword [ecx], eax
xor edi, edi
push dword [ebp - 0x124]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x477ffc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x128]
mov dword [ecx], eax
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x478017
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x130]
call fcn.00478210
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x478041
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.00669a1e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00422220
int3