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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404d30
mov eax, dword [ebp - 8]
call fcn.00404d30
xor eax, eax
push ebp
push 0x4e6ddc
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
jne 0x4e6cb5
lea eax, [ebp - 4]
mov edx, 0x4e6df4
call fcn.00404928
cmp dword [ebp - 8], 0
jne 0x4e6cc8
lea eax, [ebp - 8]
mov edx, 0x4e6e00
call fcn.00404928
xor eax, eax
push ebp
push 0x4e6dad
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0xe4]
call fcn.00404b48
test eax, eax
jne 0x4e6d09
mov eax, dword [ebp - 0xc]
push eax
push 0
call sub.kernel32.dll_GetTempPathA
mov ebx, eax
lea eax, [ebx + 0xc]
call fcn.00402774
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
push ebx
call sub.kernel32.dll_GetTempPathA
jmp 0x4e6d59
lea ecx, [ebp - 0x10]
mov eax, dword [ebx + 0xe4]
mov dl, 1
call fcn.004e0be0
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0xe4]
call fcn.004048e4
mov eax, dword [ebx + 0xe4]
call fcn.00404b48
add eax, 0xd
call fcn.00402774
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0xe4]
call fcn.00404b48
mov ecx, eax
inc ecx
mov edx, dword [ebx + 0xe4]
mov eax, dword [ebp - 0xc]
call fcn.0040a03c
mov eax, dword [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00404d40
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetTempFileNameA
test eax, eax
je 0x4e6d97
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
call fcn.00404a80
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
call fcn.00409940
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e6db4
mov eax, dword [ebp - 0xc]
call fcn.00402794
ret

Function at 0x4e7444
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4e74e3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0xe4]
mov edx, esi
call fcn.00404c8c
je 0x4e74c8
test esi, esi
je 0x4e74bb
lea edx, [ebp - 8]
mov eax, esi
call fcn.00409a08
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, 0x4e74f8
call fcn.00404b94
mov eax, dword [ebp - 4]
call fcn.00404d40
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
je 0x4e74bb
cmp eax, 6
je 0x4e74bb
push esi
mov ecx, 0x2b2b
mov dl, 1
mov eax, dword [0x4e2610]
call fcn.004e28ec
call fcn.0040426c
lea eax, [ebx + 0xe4]
mov edx, esi
call fcn.004048e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e74ea
lea eax, [ebp - 8]
mov edx, 2
call fcn.004048b4
ret
Function at 0x4e8380
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404d30
xor eax, eax
push ebp
push 0x4e8698
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x100]
test eax, eax
jbe 0x4e83c2
push eax
call sub.kernel32.dll_FreeLibrary_1
mov eax, dword [ebp - 4]
call fcn.004e7dd0
push 3
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4e856a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00404d40
push eax
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x100], ebx
cmp ebx, 0x20
jbe 0x4e84e5
push 0x4e86a8
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x118], esi
test esi, esi
je 0x4e843b
push 0x4e86b4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x100]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x120], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x120], 0
je 0x4e8464
push 0x4e86c0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x100]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x11c], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x11c], 0
je 0x4e848d
push 0x4e86cc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x100]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x110], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x110], 0
je 0x4e84b6
push 0x4e86dc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x100]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 4]
mov dword [edx + 0xec], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0xec], 0
je 0x4e8553
push 0x4e86e8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x100]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x108], eax
jmp 0x4e8553
mov eax, dword [ebp - 4]
cmp byte [eax + 0xea], 0
jne 0x4e84fd
mov eax, dword [ebp - 4]
cmp byte [eax + 0xe8], 0
je 0x4e8553
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x28], 0
lea edx, [ebp - 0x30]
mov eax, ebx
call fcn.0040ca58
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
lea edx, [ebp - 0x2c]
mov ecx, 2
mov eax, 0x4e86f8
call fcn.0040a6f4
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0
xor ecx, ecx
mov dl, 4
mov eax, dword [ebp - 4]
call fcn.004e6e08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e8571
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x4e8c8c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404d30
xor eax, eax
push ebp
push 0x4e8da7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xfffffffd
mov eax, dword [ebp - 4]
call fcn.00404b48
dec eax
jle 0x4e8d91
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0x3a
jne 0x4e8d91
mov eax, dword [ebp - 4]
mov al, byte [eax]
call fcn.00402bac
add al, 0xbf
sub al, 0x1a
jae 0x4e8d91
mov eax, dword [ebp - 4]
call fcn.00404d40
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
jne 0x4e8d91
mov eax, dword [ebp - 4]
mov al, byte [eax]
call fcn.00402bac
mov esi, eax
and esi, 0xff
sub esi, 0x41
push 3
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0x10], eax
push 0x4e8db8
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4e8d91
push 0x4e8dc0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edi, eax
mov dword [0x4fdbc8], edi
test edi, edi
je 0x4e8d88
xor eax, eax
push ebp
push 0x4e8d81
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0xffff
push esi
push ebx
call dword [0x4fdbc8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e8d88
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_SetErrorMode
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e8dae
lea eax, [ebp - 4]
call fcn.00404890
ret
Function at 0x4e9e7c
Capabilities:
Get disk size

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov edi, edx
mov esi, eax
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], 0xffffffff
push 0x4e9fd8
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
test ebx, ebx
je 0x4e9f0c
push 0x4e9fe4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov ebp, eax
test ebp, ebp
je 0x4e9f06
push 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [esi + 0x158]
call fcn.00404d40
push eax
call ebp
test eax, eax
jne 0x4e9f06
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], 0xffffffff
push ebx
call sub.kernel32.dll_FreeLibrary_1
cmp dword [esp + 0x14], 0xffffffff
jne 0x4e9f97
cmp dword [esp + 0x10], 0xffffffff
jne 0x4e9f97
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x158]
call fcn.00404d40
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
je 0x4e9f97
mov eax, dword [esp + 8]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 8]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x14]
xor edx, edx
call fcn.00405818
call fcn.00405818
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0xc]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 8]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x14]
xor edx, edx
call fcn.00405818
call fcn.00405818
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
test edi, 1
je 0x4e9fb3
mov eax, dword [esp + 0x10]
mov dword [esi + 0x180], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x184], eax
test edi, 2
je 0x4e9fcf
mov eax, dword [esp + 0x18]
mov dword [esi + 0x1e8], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x1ec], eax
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4eb798
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x118], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4eb948
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xff
mov dword [ebp - 0x10], 0xff
mov dword [esi + 0x1e8], 0
mov dword [esi + 0x1ec], 0
mov dword [esi + 0x148], 0
mov dword [esi + 0x14c], 0
lea eax, [esi + 0x20c]
call fcn.00404890
mov byte [ebp - 0x114], 0
mov byte [ebp - 1], 0
lea edx, [ebp - 0x118]
mov eax, dword [esi + 0x158]
call fcn.00408d00
mov eax, dword [ebp - 0x118]
mov bl, byte [eax]
cmp bl, 0x5c
je 0x4eb882
cmp bl, 0x41
jb 0x4eb830
cmp bl, 0x5a
jbe 0x4eb84d
mov eax, dword [esi + 0x158]
push eax
mov ecx, 0x2afb
mov dl, 1
mov eax, dword [0x4e2610]
call fcn.004e28ec
call fcn.0040426c
call sub.kernel32.dll_GetLogicalDrives
mov edi, eax
xor eax, eax
mov al, bl
sub eax, 0x41
cmp eax, 0x1f
ja 0x4eb863
bt edi, eax
jb 0x4eb882
mov eax, dword [esi + 0x158]
push eax
mov ecx, 0x2afc
mov dl, 1
mov eax, dword [0x4e2610]
call fcn.004e28ec
call fcn.0040426c
push 1
call sub.kernel32.dll_SetErrorMode
mov edi, eax
push 0
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x114]
push eax
mov eax, dword [esi + 0x158]
call fcn.00404d40
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
jne 0x4eb8da
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x1f
jne 0x4eb8d2
test byte [esi + 0x12e], 2
je 0x4eb8d2
mov byte [ebp - 1], 1
push edi
call sub.kernel32.dll_SetErrorMode
jmp 0x4eb92f
lea eax, [esi + 0x20c]
lea edx, [ebp - 0x114]
mov ecx, pe_nt_image_headers32
call fcn.00404af8
test byte [ebp - 6], 8
setne al
mov byte [esi + 0x210], al
mov edx, 3
mov eax, esi
call fcn.004e9e7c
push edi
call sub.kernel32.dll_SetErrorMode
cmp bl, 0x5c
je 0x4eb92b
cmp bl, 0x5c
je 0x4eb92f
cmp dword [esi + 0x1ec], 0xffffffff
jne 0x4eb929
cmp dword [esi + 0x1e8], 0xffffffff
je 0x4eb92f
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4eb94f
lea eax, [ebp - 0x118]
call fcn.00404890
ret
Function at 0x4ec2bc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe8c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x164], ebx
mov dword [ebp - 8], ebx
mov byte [ebp - 1], cl
mov ebx, edx
mov esi, eax
lea eax, [ebp - 0x160]
mov edx, dword [0x407ff0]
call fcn.0040526c
xor eax, eax
push ebp
push 0x4ec4af
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 2], 0
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00409db4
lea edx, [ebp - 0x164]
mov eax, dword [ebp - 8]
call fcn.00409a08
mov edx, dword [ebp - 0x164]
lea eax, [esi + 0x158]
mov ecx, 0x4ec4c8
call fcn.00404b94
mov eax, dword [esi + 0x158]
call fcn.00404d40
push eax
call sub.kernel32.dll_GetDriveTypeA
mov edi, eax
mov eax, esi
call fcn.004eb798
call fcn.004e13d4
mov ebx, eax
push 0
call sub.kernel32.dll_SetLastError
test bl, bl
je 0x4ec389
cmp byte [esi + 0x210], 0
je 0x4ec389
cmp byte [ebp - 1], 0
jne 0x4ec47d
mov eax, dword [ebp - 8]
push eax
mov ecx, 0x2b2b
mov dl, 1
mov eax, dword [0x4e2610]
call fcn.004e28ec
call fcn.0040426c
jmp 0x4ec47d
test bl, bl
jne 0x4ec396
cmp edi, 5
je 0x4ec47d
lea ecx, [ebp - 0x160]
mov edx, 0x3f
mov eax, dword [ebp - 8]
call fcn.004097f4
test eax, eax
jne 0x4ec3ee
test byte [ebp - 0x158], 1
sete byte [ebp - 2]
lea eax, [ebp - 0x160]
call fcn.00409868
cmp byte [ebp - 2], 0
je 0x4ec451
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00409400
cmp eax, 0xffffffff
setg byte [ebp - 2]
cmp byte [ebp - 2], 0
je 0x4ec451
call fcn.00409524
jmp 0x4ec451
mov eax, dword [ebp - 8]
call fcn.0040945c
cmp eax, 0xffffffff
jle 0x4ec451
mov byte [ebp - 2], 1
call fcn.00409524
mov eax, dword [ebp - 8]
call fcn.00409884
test al, al
jne 0x4ec451
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x174], eax
mov byte [ebp - 0x170], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x16c], eax
mov byte [ebp - 0x168], 0xb
lea eax, [ebp - 0x174]
push eax
push 1
mov ecx, 0x4ec4d4
mov dl, 1
mov eax, dword [0x408010]
call fcn.0040d28c
call fcn.0040426c
cmp byte [ebp - 2], 0
jne 0x4ec47d
cmp byte [ebp - 1], 0
jne 0x4ec47d
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetLastError_1
push eax
mov ecx, 0x2b2b
mov dl, 1
mov eax, dword [0x4e2610]
call fcn.004e29b0
call fcn.0040426c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ec4b6
lea eax, [ebp - 0x164]
call fcn.00404890
lea eax, [ebp - 0x160]
mov edx, dword [0x407ff0]
call fcn.0040533c
lea eax, [ebp - 8]
call fcn.00404890
ret
Function at 0x4ee898
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 1], cl
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4eea66
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.004e6c68
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.004048e4
cmp byte [ebx + 0xea], 0
je 0x4ee929
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0xc], eax
cmp word [ebp - 0xe], 0
je 0x4ee929
lea eax, [ebp - 0x18]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0xb
lea edx, [ebp - 0x20]
xor ecx, ecx
mov eax, 0x277f
call fcn.004e24c0
mov eax, dword [ebp - 0x18]
push eax
xor ecx, ecx
mov edx, dword [ebx + 0xd0]
mov eax, dword [ebp - 0xc]
call dword [ebp - 0x10]
cmp byte [ebp - 1], 0
je 0x4eea3c
lea edx, [ebp - 0x28]
mov eax, dword [ebx + 0x224]
call fcn.00409b1c
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.00409a08
mov edx, dword [ebp - 0x24]
lea eax, [ebx + 0x158]
mov ecx, 0x4eea80
call fcn.00404b94
mov eax, dword [ebx + 0x158]
call fcn.00404d40
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x4ee9ac
mov eax, dword [ebx + 0x224]
call fcn.00409754
test al, 1
je 0x4ee9ac
push 0
mov eax, dword [ebx + 0x224]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0xb
lea ecx, [ebp - 0x20]
mov edx, 0x2b2b
mov eax, ebx
call fcn.004e7574
mov ebx, 0xfffffff9
jmp 0x4eea3e
mov eax, dword [ebx + 0x224]
call fcn.00409594
test al, al
je 0x4ee9f6
mov eax, dword [ebx + 0x224]
call fcn.004e0e88
and eax, dword [0x4fdbc4]
cmp eax, 0x91
jne 0x4ee9f6
lea ecx, [ebp - 0x2c]
mov edx, 0x4eea8c
mov eax, dword [ebx + 0x224]
call fcn.00409940
mov edx, dword [ebp - 0x2c]
lea eax, [ebx + 0x1ac]
call fcn.004048e4
jmp 0x4eea07
lea eax, [ebx + 0x1ac]
mov edx, dword [ebx + 0x224]
call fcn.004048e4
push 1
mov ecx, esi
mov edx, dword [ebx + 0x1ac]
mov eax, ebx
call fcn.004ed768
test eax, eax
jge 0x4eea2b
mov eax, ebx
call fcn.004e7d20
mov ebx, dword [ebx + 0xc0]
jmp 0x4eea3e
mov al, byte [0x4eea94]
or al, byte [ebx + 0xbb]
mov byte [ebx + 0xbb], al
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4eea6d
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.004048b4
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004048b4
ret
Function at 0x4f99f0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4f99f8
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4f9b84
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
call fcn.00404890
mov bl, 0x43
lea eax, [ebp - 4]
call fcn.00404890
lea eax, [ebp - 0x18]
mov edx, ebx
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x1c]
call fcn.00403030
mov edx, 0x4f9b94
lea eax, [ebp - 0x1c]
mov cl, 2
call fcn.00403000
lea edx, [ebp - 0x1c]
lea eax, [ebp - 4]
call fcn.00404aec
lea eax, [ebp - 0x20]
mov ecx, 0x4f9ba0
mov edx, dword [ebp - 4]
call fcn.00404b94
mov eax, dword [ebp - 0x20]
call fcn.00404d40
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
jne 0x4f9b0a
lea eax, [ebp - 0x24]
mov ecx, 0x4f9bac
mov edx, dword [ebp - 4]
call fcn.00404b94
mov eax, dword [ebp - 0x24]
call fcn.00409594
test al, al
je 0x4f9b0a
mov eax, dword [esi + 0x318]
mov eax, dword [eax + 0x220]
mov edx, dword [eax]
call dword [edx + 0x44]
lea eax, [ebp - 0x28]
mov ecx, 0x4f9bac
mov edx, dword [ebp - 4]
call fcn.00404b94
mov edx, dword [ebp - 0x28]
mov eax, dword [esi + 0x318]
mov eax, dword [eax + 0x220]
mov ecx, dword [eax]
call dword [ecx + 0x68]
lea ecx, [ebp - 0x10]
mov eax, dword [esi + 0x318]
mov eax, dword [eax + 0x220]
xor edx, edx
mov esi, dword [eax]
call dword [esi + 0xc]
lea ecx, [ebp - 0x14]
mov edx, 0x4f9bc4
mov eax, dword [ebp - 0x10]
call fcn.004e0078
lea eax, [ebp - 0xc]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404da0
jmp 0x4f9b14
inc ebx
cmp bl, 0x5b
jne 0x4f9a1c
lea eax, [ebp - 0x2c]
mov ecx, 0x4f9bec
mov edx, dword [ebp - 0xc]
call fcn.00404b94
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 8]
call fcn.004e0244
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x14]
call fcn.00408f50
mov eax, dword [ebp - 0x30]
push eax
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 8]
call fcn.00408f50
mov edx, dword [ebp - 0x34]
pop eax
call fcn.00404c8c
jne 0x4f9b58
mov al, 1
jmp 0x4f9b5a
xor eax, eax
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f9b8b
lea eax, [ebp - 0x34]
mov edx, 6
call fcn.004048b4
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.004048b4
ret
Function at 0x405eb0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x426e9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x40418c
call fcn.00406b11
push 4
mov dword [esp + 0x18], 0
call fcn.00407a08
mov edi, eax
add esp, 4
test edi, edi
je 0x405f24
push ebx
call fcn.004069e9
mov dword [edi], eax
call fcn.004067a8
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00406ad2
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x405f18
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.00406afa
pop ebx
jmp 0x405f26
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x408481
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42ac88]
jne 0x40848b
repz ret
jmp fcn.0040cfac
Function at 0x4106a5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42ac88]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040a5aa
and dword [ebp - 0x14], 0
cmp dword [0x42f62c], 0
mov dword [ebp - 0x18], eax
jne 0x410758
push 0x40377c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x410800
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403770
push ebx
call edi
test eax, eax
je 0x410800
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403760
push ebx
mov dword [0x42f62c], eax
call edi
push eax
call esi
push 0x40374c
push ebx
mov dword [0x42f630], eax
call edi
push eax
call esi
push 0x403730
push ebx
mov dword [0x42f634], eax
call edi
push eax
call esi
mov dword [0x42f63c], eax
test eax, eax
je 0x410758
push 0x403718
push ebx
call edi
push eax
call esi
mov dword [0x42f638], eax
mov eax, dword [0x42f638]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4107b1
cmp dword [0x42f63c], ecx
je 0x4107b1
push eax
call esi
push dword [0x42f63c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4107b1
test ebx, ebx
je 0x4107b1
call edi
test eax, eax
je 0x4107a8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4107a8
test byte [ebp - 8], 1
jne 0x4107b1
or dword [ebp + 0x10], 0x200000
jmp 0x4107e4
mov eax, dword [0x42f630]
cmp eax, dword [ebp - 0x18]
je 0x4107e4
push eax
call esi
test eax, eax
je 0x4107e4
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4107e4
mov eax, dword [0x42f634]
cmp eax, dword [ebp - 0x18]
je 0x4107e4
push eax
call esi
test eax, eax
je 0x4107e4
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42f62c]
call esi
test eax, eax
je 0x410800
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x410802
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408481
leave
ret
Function at 0x424db0
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
sub esp, 0x80c
cmp dword [0x7b33c4], 0x37
jne 0x424e46
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCommState]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea edx, [esp + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
lea eax, [esp + 0x410]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov ecx, dword [0x7b43b8]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x434414]
mov byte [ecx + esi], al
add esp, 0x80c
ret