joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443200
Capabilities:
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4a4278
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x4d7488]
xor eax, esp
mov dword [esp + 0x418], eax
push edi
mov eax, dword [0x4d7488]
xor eax, esp
push eax
lea eax, [esp + 0x424]
mov dword fs:[0], eax
lea eax, [esp + 0x218]
push eax
xor edi, edi
push 0x104
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x443270
mov edx, dword [0x4d967c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4d967c
call eax
add eax, 0x10
mov dword [esi], eax
jmp 0x4432b9
lea ecx, [esp + 0x10]
push ecx
push edi
push 0x4b83e0
lea edx, [esp + 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x4432a3
mov eax, dword [0x4d967c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4d967c
call edx
add eax, 0x10
mov dword [esi], eax
jmp 0x4432b9
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x10]
push ecx
push esi
call fcn.00411bf8
mov dword [esp + 0x42c], edi
mov dword [esp + 8], 1
mov eax, esi
mov ecx, dword [esp + 0x424]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.0048297b
add esp, 0x428
ret
Function at 0x443a20
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x4d7488]
xor eax, esp
mov dword [esp + 0x410], eax
push esi
lea eax, [esp + 0x20c]
push eax
push 0x104
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x443a66
xor al, al
pop esi
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.0048297b
add esp, 0x414
ret
mov esi, dword [esi]
lea ecx, [esp + 4]
push ecx
push 0
push esi
lea edx, [esp + 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x443a4e
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 4]
push ecx
call fcn.00482f7b
add esp, 4
push eax
lea edx, [esp + 8]
push edx
mov eax, edi
call fcn.00409e86
mov ecx, dword [esp + 0x414]
pop esi
xor ecx, esp
mov al, 1
call fcn.0048297b
add esp, 0x414
ret
Function at 0x446cd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49b9a3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4d7488]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.std::locale::_Locimp.0
mov dword [esp + 0x14], 1
push esi
call fcn.00482128
add esp, 4
mov byte [esp + 0x14], 0
cmp dword [esi + 0x30], 0x10
jb 0x446d26
mov eax, dword [esi + 0x1c]
push eax
call fcn.00482970
add esp, 4
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], 0
mov byte [esi + 0x1c], 0
mov dword [esp + 0x14], 0xffffffff
mov dword [esi], vtable.std::locale::facet.0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x4474f0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x49da48
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push edi
mov eax, dword [0x4d7488]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [0x4da890], ebx
je 0x447595
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x14], ebx
call fcn.004410d0
add esp, 4
mov dword [esp + 0x38], ebx
cmp dword [eax + 0x18], 0x10
mov edi, dword [edi + 0x14]
jb 0x447544
mov eax, dword [eax + 4]
jmp 0x447547
add eax, 4
mov edx, dword [0x4da890]
push ebx
lea ecx, [esp + 0x14]
push ecx
push edi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x2c], 0x10
jb 0x447578
mov eax, dword [esp + 0x18]
push eax
call fcn.00482970
add esp, 4
mov ecx, dword [0x4da890]
push ecx
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x30
ret
Function at 0x4478c0
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x4992a8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
mov eax, dword [0x4d7488]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x28], ebx
lea eax, [esp + 0x18]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x447982
push esi
lea ecx, [esp + 0x14]
push ecx
call fcn.0044a750
test al, al
jne 0x44792d
mov dword [esp + 0x28], 0xffffffff
mov edx, dword [esp + 0x10]
push edx
call fcn.00482a4b
lea eax, [ebx + 8]
jmp 0x44799a
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
push ebx
push esi
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x447982
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
push 0x4b7910
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x44798a
cmp dword [esp + 0x1c], 0
je 0x44798a
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
test eax, eax
je 0x447973
mov edx, dword [ecx + 8]
mov dword [eax], edx
mov eax, dword [esp + 0x34]
test eax, eax
je 0x44798a
mov ecx, dword [ecx + 0xc]
mov dword [eax], ecx
jmp 0x44798a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov dword [esp + 0x28], 0xffffffff
push ebx
call fcn.00482a4b
mov eax, ebp
mov dword [esp + 0x14], 0
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x447f70
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4a3fa8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebp
push esi
push edi
mov eax, dword [0x4d7488]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [esp + 0x10], 0xc8
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00481e65
add esp, 4
mov esi, eax
mov eax, dword [edi]
lea ecx, [esp + 0x10]
push ecx
push esi
lea edx, [esp + 0x20]
push edx
push 0
push eax
push ebx
mov dword [esp + 0x2c], esi
call ebp
cmp eax, 0xea
jne 0x447ff3
inc dword [esp + 0x10]
jmp 0x447fb0
test eax, eax
jne 0x44808d
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x448030
cmp eax, 4
jne 0x447fb0
mov eax, dword [esi]
mov ecx, dword [esp + 0x30]
push eax
push 0x4b869c
push ecx
call fcn.00436b7a
mov dword [esp + 0x34], 0xffffffff
push esi
call fcn.00482a4b
add esp, 0x10
mov al, 1
jmp 0x4480a0
mov ecx, dword [esp + 0x10]
push esi
lea edx, [esp + 0x20]
xor eax, eax
push edx
mov word [esi + ecx*2], ax
call fcn.00411bf8
mov byte [esp + 0x28], 1
mov edi, dword [esp + 0x30]
call fcn.00407ece
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x448078
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
push esi
call fcn.00482a4b
add esp, 4
mov al, 1
jmp 0x4480a0
mov dword [esp + 0x28], 0xffffffff
push esi
call fcn.00482a4b
add esp, 4
xor al, al
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret

Function at 0x448710
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x499278
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4d7488]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
xor edi, edi
push edi
push 0x80
push 3
push edi
push edi
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], edi
cmp esi, 0xffffffff
jne 0x44878b
mov dword [esp + 0x20], eax
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x10], edi
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov dword [esp + 0x20], 0xffffffff
cmp esi, edi
je 0x4487ac
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x10], edi
mov eax, ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x4488c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a3f71
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d7488]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x14], ebp
mov eax, dword [0x4d967c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4d967c
call edx
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x24], ebp
fild dword [esp + 0x30]
cmp dword [esp + 0x30], 0x100000
mov dword [esp + 0x14], 1
jle 0x448987
fmul qword [0x4bf588]
fld st(0)
call fcn.00498d30
mov ebx, eax
mov dword [esp + 0x18], ebx
fisub dword [esp + 0x18]
fmul qword [0x4bf548]
call fcn.00498d30
mov edi, eax
lea eax, [esp + 0x18]
push edi
push eax
call fcn.00448a30
mov dword [esp + 0x2c], 2
mov eax, dword [eax]
push 0x4b8748
push edi
push ebx
push eax
push esi
call fcn.00436b7a
add esp, 0x1c
mov dword [esp + 0x24], ebp
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x448a03
fmul qword [0x4bf520]
fld st(0)
call fcn.00498d30
mov ebx, eax
mov dword [esp + 0x18], ebx
fisub dword [esp + 0x18]
fmul qword [0x4bf548]
call fcn.00498d30
mov edi, eax
cmp ebx, ebp
je 0x4489c5
push 0x4b41a8
push ebx
push 0x4b8750
push esi
call fcn.00436b7a
add esp, 0x10
jmp 0x448a0f
lea ecx, [esp + 0x18]
push edi
push ecx
call fcn.00448a30
mov dword [esp + 0x2c], 4
mov eax, dword [eax]
push 0x4b41a8
push edi
push ebp
push eax
push esi
call fcn.00436b7a
add esp, 0x1c
mov dword [esp + 0x24], ebp
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x448a0f
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
pop ebx
add esp, 0x14
ret
Function at 0x448b50
Capabilities:
Get file size
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49aec6
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x4d7488]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
mov eax, dword [0x4d7488]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push SysReAllocStringLen
push eax
mov byte [esp + 0xb0], 0
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x48], 0x67452301
mov dword [esp + 0x4c], 0xefcdab89
mov dword [esp + 0x50], 0x98badcfe
mov dword [esp + 0x54], 0x10325476
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0xb0], ebx
cmp edi, 0xffffffff
jne 0x448c09
mov dword [esp + 0xb0], eax
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x20], ebx
xor eax, eax
jmp 0x448cf3
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
sub eax, dword [ebp + 0xc]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], eax
mov byte [esp + 0xb0], 1
push 0xc000
lea eax, [esp + 0x1c]
push eax
call fcn.0042f797
mov edx, dword [esp + 0x18]
push ebx
lea ecx, [esp + 0x20]
push ecx
push 0xc000
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x448caa
mov edi, edi
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x448caa
mov eax, dword [esp + 0x28]
lea ecx, [esi + ebx]
mov byte [esp + 0x17], 0
cmp ecx, eax
jbe 0x448c75
mov esi, eax
sub esi, ebx
mov dword [esp + 0x1c], esi
mov byte [esp + 0x17], 1
mov edx, dword [esp + 0x18]
push edx
mov eax, esi
lea ecx, [esp + 0x30]
call fcn.004422c0
cmp byte [esp + 0x17], 0
jne 0x448caa
mov ecx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x20]
push eax
push 0xc000
push ecx
push edi
add ebx, esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x448c50
lea esi, [esp + 0x2c]
call fcn.00442380
mov eax, esi
call fcn.00442450
mov esi, eax
mov byte [esp + 0xb0], 0
mov edx, dword [esp + 0x18]
push edx
call fcn.00482a4b
xor ebx, ebx
add esp, 4
mov dword [esp + 0x18], ebx
mov dword [esp + 0xb0], 0xffffffff
cmp edi, ebx
je 0x448cf1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x20], ebx
mov eax, esi
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.0048297b
mov esp, ebp
pop ebp
ret
Function at 0x448e20
Capabilities:
Access peb ldr_data
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x49ae88
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
mov eax, dword [0x4d7488]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov esi, ecx
push 0x40
xor ebx, ebx
lea eax, [esp + 0x2c]
push ebx
push eax
mov dword [esp + 0x30], 0x44
call fcn.00483240
xor eax, eax
add esp, 0xc
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0xc], ebx
mov byte [esp + 0x10], bl
mov dword [esp + 0x7c], ebx
cmp byte [esp + 0x8c], bl
je 0x448ea2
call fcn.0044ad00
mov eax, dword [0x4da5e4]
cmp eax, ebx
je 0x448ea2
lea ecx, [esp + 0xc]
push ecx
call eax
mov byte [esp + 0x10], 1
mov eax, dword [esi]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x448eb7
mov edx, dword [eax + 4]
push edx
push esi
call fcn.004036c5
mov eax, dword [esi]
mov ecx, dword [esp + 0x84]
mov ecx, dword [ecx]
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x90]
push ebx
push ebx
push edx
push ebx
push ebx
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
cmp byte [esp + 0x8c], bl
je 0x448f0b
cmp byte [esp + 0x10], bl
je 0x448f0b
call fcn.0044ad00
mov eax, dword [0x4da5e8]
cmp eax, ebx
je 0x448f0b
lea ecx, [esp + 0xc]
push ecx
call eax
mov byte [esp + 0x10], bl
cmp esi, ebx
jne 0x448f4a
mov dword [esp + 0x7c], 0xffffffff
cmp byte [esp + 0x10], bl
je 0x448f36
call fcn.0044ad00
mov eax, dword [0x4da5e8]
cmp eax, ebx
je 0x448f36
lea edx, [esp + 0xc]
push edx
call eax
mov byte [esp + 0x10], bl
xor al, al
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x74
ret
cmp edi, ebx
je 0x448f67
mov eax, dword [esp + 0x14]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x14]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x7c], 0xffffffff
cmp byte [esp + 0x10], bl
je 0x448f99
call fcn.0044ad00
mov eax, dword [0x4da5e8]
cmp eax, ebx
je 0x448f99
lea ecx, [esp + 0xc]
push ecx
call eax
mov byte [esp + 0x10], bl
mov al, 1
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x74
ret
Function at 0x448fc0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push 0x38
lea eax, [esp + 8]
push 0
push eax
call fcn.00483240
add esp, 0xc
mov dword [esp], 0x3c
test ebx, ebx
je 0x448fe7
mov dword [esp + 4], 0x40
push esi
mov esi, dword [edi]
mov ecx, edi
call fcn.004443c0
test al, al
je 0x448ff8
add esi, 8
mov edx, dword [esp + 0x44]
mov eax, dword [edx]
xor ecx, ecx
cmp byte [esp + 0x48], cl
mov dword [esp + 0x14], esi
sete cl
mov dword [esp + 0x10], 0x4b38ec
pop esi
mov dword [esp + 0x1c], ecx
cmp dword [eax - 0xc], 0
je 0x449022
mov dword [esp + 0x14], eax
lea eax, [esp]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x449036
xor al, al
add esp, 0x3c
ret
test ebx, ebx
je 0x449057
mov eax, dword [esp + 0x38]
test eax, eax
je 0x449057
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x38]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov al, 1
add esp, 0x3c
ret
Function at 0x449c50
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a1611
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x4d7488]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d7488]
xor eax, esp
push eax
lea eax, [esp + 0x434]
mov dword fs:[0], eax
mov eax, dword [esp + 0x444]
mov eax, dword [eax]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocStringLen
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x43c], ebx
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [esp + 0x1c]
push eax
push 0x3ff
lea ecx, [esp + 0x38]
push ecx
push edi
mov dword [esp + 0x2c], ebx
call ebp
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x449d0e
lea edx, [esp + 0x2c]
push edx
mov byte [esp + eax + 0x30], bl
call fcn.0044a510
push ebx
lea eax, [esp + 0x1c]
push eax
push 0x3ff
lea ecx, [esp + 0x38]
push ecx
push edi
call ebp
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x449ce5
mov edx, dword [esi]
mov eax, dword [edx - 0xc]
cmp eax, 2
jl 0x449dad
lea ecx, [eax - 2]
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.004313ba
mov byte [esp + 0x43c], 1
mov ecx, dword [eax]
mov ebp, dword [esi]
lea eax, [ecx - 0x10]
sub ebp, 0x10
cmp eax, ebp
je 0x449d86
cmp dword [ebp + 0xc], ebx
jl 0x449d7a
mov edx, dword [eax]
cmp edx, dword [ebp]
jne 0x449d7a
call fcn.00409c07
mov dword [esp + 0x20], eax
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x449d6f
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
mov ecx, dword [esp + 0x20]
add ecx, 0x10
mov dword [esi], ecx
jmp 0x449d86
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov eax, esi
call fcn.00409e86
mov byte [esp + 0x43c], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x449dad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x43c], 0xffffffff
cmp edi, ebx
je 0x449dc7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x24], ebx
mov ecx, dword [esp + 0x434]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.0048297b
add esp, 0x42c
ret
Function at 0x44bb4f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x4d7488]
xor eax, ebp
mov dword [ebp + 0x94], eax
push 0x110
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.00483240
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x44bba8
cmp dword [ebp - 0x7c], 5
jae 0x44bba4
cmp dword [ebp - 0x7c], 4
jne 0x44bba8
cmp dword [ebp - 0x78], 0x5a
jb 0x44bba8
xor eax, eax
jmp 0x44bbab
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.0048297b
add ebp, 0x98
leave
ret
Function at 0x44d3da
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4d7488]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test byte [eax + 0x60], 1
jne 0x44d3f7
xor al, al
jmp 0x44d46c
push edi
call fcn.0044dcfd
mov edi, eax
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
cmp ecx, 3
jl 0x44d435
test ecx, ecx
jge 0x44d417
push 0x80070057
call fcn.00403856
cmp word [eax], 0x5c
jne 0x44d439
cmp ecx, 1
jl 0x44d40d
cmp word [eax + 2], 0x5c
jne 0x44d439
cmp ecx, 2
jl 0x44d40d
cmp word [eax + 4], 0x5c
je 0x44d439
xor al, al
jmp 0x44d46b
push esi
xor esi, esi
test esi, esi
jl 0x44d40d
mov ecx, esi
mov eax, edi
call fcn.00441d20
mov word [ebp + esi*2 - 0xc], ax
inc esi
cmp esi, 3
jl 0x44d43c
xor eax, eax
mov word [ebp - 6], ax
pop esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
setne al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048297b
leave
ret 4

Function at 0x44d47a
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
call fcn.0044dcfd
lea esi, [ebp - 4]
mov edi, eax
call fcn.00442f30
push 0x5c
mov esi, edi
call fcn.00431363
lea edx, [eax + 1]
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.00431381
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.0043164c
lea ecx, [ebp - 0xc]
call fcn.00403833
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44d4d9
push 0x80
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [edi]
xor esi, esi
push esi
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x44d4f2
inc esi
mov dword [ebx + 8], esi
jmp 0x44d547
lea eax, [ebp - 8]
push eax
call fcn.004038ab
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 8]
push dword [edi]
push dword [ebp - 4]
push str.__s___OriginalPath:__s__s
push eax
call fcn.00436b7a
add esp, 0x14
lea eax, [ebx + 0x110]
call fcn.0045332e
push esi
lea eax, [ebp - 4]
push 0x20
push eax
xor edi, edi
lea ecx, [ebp - 8]
call fcn.00448e20
add esp, 0xc
test al, al
jne 0x44d53f
xor esi, esi
inc esi
mov dword [ebx + 8], esi
lea ecx, [ebp - 8]
call fcn.00403833
lea ecx, [ebp - 4]
call fcn.00403833
pop edi
mov eax, esi
pop esi
leave
ret 4