joyce8/EMBER2024-capa huggingface dataset:
Function at 0x520ca0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
mov byte [ebp - 9], 1
cmp dword [ebp - 4], 0xffffffff
je 0x520ddf
xor eax, eax
push ebp
push 0x520dd1
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00415d58
lea edx, [ebp - 0x58]
mov ecx, 0x40
mov eax, dword [ebp - 4]
call fcn.00415d00
mov ebx, eax
cmp ebx, 0x40
jne 0x520dc7
cmp word [ebp - 0x58], 0x5a4d
jne 0x520dc7
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00415d58
test eax, eax
jl 0x520dc7
lea edx, [ebp - 0x10]
mov ecx, 4
mov eax, dword [ebp - 4]
call fcn.00415d00
mov ebx, eax
cmp ebx, 4
jne 0x520dc7
cmp dword [ebp - 0x10], 0x4550
jne 0x520dc7
lea edx, [ebp - 0x6c]
mov ecx, 0x14
mov eax, dword [ebp - 4]
call fcn.00415d00
mov ebx, eax
cmp ebx, 0x14
jne 0x520dc7
cmp word [ebp - 0x6c], 0x14c
jne 0x520dc7
movzx eax, word [ebp - 0x6a]
mov dword [ebp - 0x18], eax
mov ecx, 1
mov edx, 0xe0
mov eax, dword [ebp - 4]
call fcn.00415d58
test eax, eax
jl 0x520dc7
mov byte [ebp - 9], 0
mov edi, dword [ebp - 0x18]
test edi, edi
jle 0x520cdc
lea edx, [ebp - 0x94]
mov ecx, 0x28
mov eax, dword [ebp - 4]
call fcn.00415d00
mov ebx, eax
cmp ebx, 0x28
je 0x520dae
mov byte [ebp - 9], 1
jmp 0x520cdc
mov esi, dword [ebp - 0x80]
add esi, dword [ebp - 0x84]
cmp esi, dword [ebp - 8]
jbe 0x520dbf
mov dword [ebp - 8], esi
dec edi
jne 0x520d8b
jmp 0x520cdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x520ddf
cmp byte [ebp - 9], 0
je 0x520dea
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x521ca0
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffeb8
mov dword [esp], ecx
mov esi, edx
mov ebx, eax
mov byte [esp + 4], 0
xor ecx, ecx
xor edx, edx
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x14]
lea edx, [esp + 0x10]
mov ecx, 0x40
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
cmp eax, 0x40
jne 0x521cdf
cmp word [esp + 0x10], 0x5a4d
je 0x521cf7
push 1
mov ecx, 0xe1eb475
mov dl, 1
mov eax, dword [0x54e714]
call fcn.0054e8e0
call fcn.00406258
xor ecx, ecx
mov edx, dword [esp + 0x4c]
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x14]
lea edx, [esp + 0x50]
mov ecx, 0xf8
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
cmp eax, 0xf8
jne 0x521d25
cmp dword [esp + 0x50], 0x4550
je 0x521d3d
push 1
mov ecx, 0xe1ec875
mov dl, 1
mov eax, dword [0x54e714]
call fcn.0054e8e0
call fcn.00406258
lea eax, [esp + 0xd8]
mov edx, dword [eax]
test edx, edx
je 0x521d50
cmp dword [eax + 4], 0
jne 0x521d6a
push 1
mov ecx, 0xe1ee093
mov dl, 1
mov eax, dword [0x54e714]
call fcn.0054e8e0
call fcn.00406258
jmp 0x521d6e
mov dword [esp + 8], edx
movzx edi, word [esp + 0x56]
dec edi
test edi, edi
jl 0x521db7
inc edi
mov edx, esi
mov ecx, 0x28
mov eax, ebx
mov ebp, dword [eax]
call dword [ebp + 0xc]
cmp eax, 0x28
je 0x521da4
push 1
mov ecx, 0xe1f0090
mov dl, 1
mov eax, dword [0x54e714]
call fcn.0054e8e0
call fcn.00406258
mov eax, dword [esi + 0xc]
cmp eax, dword [esp + 8]
jne 0x521db4
mov byte [esp + 4], 1
jmp 0x521db7
dec edi
jne 0x521d79
cmp byte [esp + 4], 0
jne 0x521dd6
push 1
mov ecx, 0xe1f2c93
mov dl, 1
mov eax, dword [0x54e714]
call fcn.0054e8e0
call fcn.00406258
mov eax, dword [esi + 0x14]
xor edx, edx
push edx
push eax
xor edx, edx
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x18]
push ebx
mov ecx, dword [esi + 0x14]
mov eax, dword [esp + 4]
xor edx, edx
call fcn.00521b0c
test al, al
jne 0x521e11
push 1
mov ecx, 0xe1f4892
mov dl, 1
mov eax, dword [0x54e714]
call fcn.0054e8e0
call fcn.00406258
add esp, 0x148
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x522390
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x5223ec
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0051f180
test esi, esi
je 0x5223d6
mov eax, dword [ebp - 4]
call fcn.00407880
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x5223d0
test al, 0x10
jne 0x5223d4
xor ebx, ebx
jmp 0x5223d6
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5223f3
lea eax, [ebp - 4]
call fcn.004077e4
ret
Function at 0x526ec8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov byte [ebp - 0xd], dl
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x527056
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x52703b
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
cmp ebx, 0
jl 0x527030
lea ecx, [ebp - 4]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x1c]
mov edx, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 4]
test eax, eax
je 0x526f43
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x526f43
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00406c0c
test eax, eax
je 0x526f4c
sub eax, 4
mov eax, dword [eax]
cmp eax, 2
jl 0x527026
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x1c]
mov edx, ebx
mov ecx, dword [eax]
call dword [ecx + 0x18]
test eax, eax
setne al
or al, byte [ebp - 0xd]
je 0x527026
mov esi, dword [ebp - 4]
test esi, esi
je 0x526f8f
mov eax, esi
sub eax, 0xa
cmp word [eax], 2
je 0x526f8f
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00406c0c
mov esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x526fac
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x526fac
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00406c0c
test eax, eax
je 0x526fb5
sub eax, 4
mov eax, dword [eax]
mov edx, 0x527064
mov dword [ebp - 0x14], edx
cmp word [esi + eax*2 - 2], 0x100
jae 0x526fd6
movzx eax, byte [esi + eax*2 - 2]
mov edx, dword [ebp - 0x14]
movzx eax, al
bt dword [edx], eax
jb 0x526fda
xor eax, eax
jmp 0x526fdc
mov al, 1
test al, al
je 0x52700c
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0041d0a8
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00407848
mov eax, dword [ebp - 4]
call fcn.00522390
test al, al
je 0x527026
mov eax, dword [ebp - 4]
call fcn.00416e58
jmp 0x527026
mov eax, dword [ebp - 4]
call fcn.00415df4
test al, al
je 0x527026
mov eax, dword [ebp - 4]
call fcn.00407880
push eax
call sub.kernel32.dll_DeleteFileW
dec ebx
cmp ebx, 0xffffffff
jne 0x526f16
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x1c]
mov edx, dword [eax]
call dword [edx + 0x44]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52705d
lea eax, [ebp - 8]
mov edx, 2
call fcn.004077ec
ret
Function at 0x5298fc
Capabilities:
Get disk information

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf4
mov byte [esp], dl
mov ebp, eax
mov esi, 0xff
mov dword [esp + 8], 0xff
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0
mov dword [ebp + 0x38], 0
mov dword [ebp + 0x3c], 0
lea eax, [ebp + 4]
xor edx, edx
call fcn.004077f4
xor eax, eax
mov dword [ebp + 0xc], eax
mov word [esp + 0xc], 0
xor ebx, ebx
cmp word [ebp + 0x12], 0
je 0x5299af
movzx eax, word [ebp + 0x12]
cmp ax, 0x41
jb 0x529963
cmp ax, 0x5a
jbe 0x52997d
mov eax, dword [ebp + 0x14]
push eax
mov ecx, 0x682f87c
mov dl, 1
mov eax, dword [0x54e714]
call fcn.0054e988
call fcn.00406258
call sub.kernel32.dll_GetLogicalDrives
mov edi, eax
movzx eax, word [ebp + 0x12]
sub eax, 0x41
cmp eax, 0x1f
ja 0x529993
bt edi, eax
jb 0x5299af
mov eax, dword [ebp + 0x14]
push eax
mov ecx, 0x6830c78
mov dl, 1
mov eax, dword [0x54e714]
call fcn.0054e988
call fcn.00406258
push 1
call sub.kernel32.dll_SetErrorMode
mov edi, eax
push 0
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [esp + 0x24]
push eax
mov eax, dword [ebp + 0x14]
call fcn.00407880
push eax
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
jne 0x5299f6
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x1f
jne 0x529a17
cmp byte [esp], 0
je 0x529a17
mov bl, 1
jmp 0x529a17
lea eax, [ebp + 4]
lea edx, [esp + 0xc]
mov ecx, pe_nt_image_headers32
call fcn.004079f4
mov byte [ebp + 8], 0
mov edx, 7
mov eax, ebp
call fcn.00529c1c
push edi
call sub.kernel32.dll_SetErrorMode
cmp word [ebp + 0x12], 0
je 0x529a37
cmp word [ebp + 0x12], 0
je 0x529a39
cmp dword [ebp + 0x34], 0xffffffff
jne 0x529a35
cmp dword [ebp + 0x30], 0xffffffff
je 0x529a39
mov bl, 1
mov eax, ebx
add esp, 0x20c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x529a98
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x529bdc
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00416bf0
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.0041652c
lea eax, [ebp - 8]
mov edx, 0x529bf8
call fcn.00407c08
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.00414744
mov eax, dword [ebp - 4]
mov edx, dword [ebx + 0x1c]
call fcn.00407ecc
je 0x529bc1
mov eax, ebx
call fcn.00529888
mov eax, dword [ebp - 4]
test eax, eax
je 0x529b17
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x529b17
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00406c0c
test eax, eax
je 0x529b20
sub eax, 4
mov eax, dword [eax]
cmp eax, 3
jne 0x529b4c
mov eax, dword [ebp - 4]
test eax, eax
je 0x529b42
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x529b42
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00406c0c
cmp word [eax + 2], 0x3a
sete al
jmp 0x529b4e
xor eax, eax
test al, al
je 0x529ba4
mov eax, dword [ebp - 4]
test eax, eax
je 0x529b6f
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x529b6f
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00406c0c
movzx eax, word [eax]
mov word [ebx + 0x12], ax
mov eax, dword [ebp - 4]
call fcn.00407880
push eax
call sub.kernel32.dll_GetDriveTypeW
mov esi, eax
mov dword [ebx + 0x18], esi
cmp esi, 2
jne 0x529bab
movzx eax, word [ebx + 0x12]
cmp ax, 0x41
je 0x529b9e
cmp ax, 0x42
jne 0x529bab
mov byte [ebx + 0x10], 1
jmp 0x529bab
mov eax, ebx
call fcn.00529888
lea eax, [ebx + 0x1c]
mov edx, dword [ebp - 4]
call fcn.004077f4
lea eax, [ebx + 0x14]
mov edx, dword [ebp - 4]
call fcn.004077f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x529be3
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004077ec
ret
Function at 0x529c1c
Capabilities:
Get disk size

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe8
mov esi, edx
mov ebx, eax
mov dword [esp + 8], 0xffffffff
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], 0xffffffff
xor edi, edi
lea eax, [ebx + 0x40]
push eax
lea eax, [ebx + 0x20]
push eax
lea eax, [esp + 8]
push eax
lea eax, [ebx + 0x28]
push eax
mov eax, dword [ebx + 0x14]
call fcn.00407880
push eax
call sub.kernel32.dll_GetDiskFreeSpaceW
test eax, eax
je 0x529c6e
mov edi, dword [esp]
push 0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [ebx + 0x14]
call fcn.00407880
push eax
mov eax, dword [0x5bd74c]
mov eax, dword [eax]
call eax
test eax, eax
jne 0x529d00
mov dword [esp + 8], 0xffffffff
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], 0xffffffff
test edi, edi
je 0x529d00
mov eax, dword [ebx + 0x20]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x28]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x10]
xor edx, edx
call fcn.00408cc0
call fcn.00408cc0
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov eax, dword [ebx + 0x40]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x28]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x10]
xor edx, edx
call fcn.00408cc0
call fcn.00408cc0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
test esi, 1
je 0x529d16
mov eax, dword [esp + 8]
mov dword [ebx + 0x38], eax
mov eax, dword [esp + 0xc]
mov dword [ebx + 0x3c], eax
test esi, 2
je 0x529d2c
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x30], eax
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x34], eax
test esi, 4
je 0x529d37
mov dword [ebx + 0x24], edi
add esp, 0x18
pop edi
pop esi
pop ebx
ret

Function at 0x52aa7c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x52ab0f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x24]
cmp byte [ebx + 0x51], 0
je 0x52aaed
mov eax, dword [ebx + 0x48]
call fcn.00415df4
test al, al
je 0x52aaed
mov eax, ebx
call fcn.00559eec
cmp al, 2
jb 0x52aadf
lea ecx, [ebp - 8]
mov dl, 1
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x34]
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, 0x52ab28
call fcn.00407cc8
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00527084
mov eax, dword [ebx + 0x48]
call fcn.00407880
push eax
call sub.kernel32.dll_DeleteFileW
mov eax, ebx
call fcn.00526e64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52ab16
lea eax, [ebp - 8]
mov edx, 2
call fcn.004077ec
ret
Function at 0x52b978
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov byte [ebp - 1], cl
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x52bab5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00559eec
cmp al, 2
jb 0x52b9db
push 0x52bad4
lea ecx, [ebp - 0xc]
mov dl, 1
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x34]
push dword [ebp - 0xc]
push 0x52bb00
push esi
lea eax, [ebp - 8]
mov edx, 4
call fcn.00407dac
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00527084
mov byte [ebx + 0x51], 0
cmp byte [ebx + 0x50], 0
je 0x52b9ec
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x24]
mov eax, dword [ebx + 0x48]
call fcn.00415df4
test al, al
je 0x52ba6b
mov eax, esi
call fcn.00415df4
test al, al
je 0x52ba6b
mov eax, ebx
call fcn.00559eec
cmp al, 2
jb 0x52ba27
lea eax, [ebp - 0x10]
mov ecx, esi
mov edx, 0x52bb18
call fcn.00407cc8
mov edx, dword [ebp - 0x10]
mov eax, ebx
call fcn.00527084
movzx edx, byte [ebp - 1]
xor dl, 1
mov eax, esi
call fcn.005223fc
test eax, eax
je 0x52ba6b
push 0x52bb44
push esi
push 0x52bb7c
lea ecx, [ebp - 0x18]
or edx, 0xffffffff
mov eax, ebx
call fcn.0055a0dc
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00407dac
mov edx, dword [ebp - 0x14]
mov eax, ebx
call fcn.00527084
mov eax, esi
call fcn.00407880
push eax
mov eax, dword [ebx + 0x48]
call fcn.00407880
push eax
call sub.kernel32.dll_MoveFileW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 2], al
cmp byte [ebp - 2], 0
je 0x52ba9a
lea eax, [ebx + 0x48]
mov edx, esi
call fcn.004077f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52babc
lea eax, [ebp - 0x18]
mov edx, 5
call fcn.004077ec
ret
Function at 0x52ce84
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
call fcn.004077dc
xor eax, eax
push ebp
push 0x52d02e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xfffffffd
mov eax, dword [ebp - 4]
test eax, eax
je 0x52cecd
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x52cecd
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00406c0c
test eax, eax
je 0x52ced6
sub eax, 4
mov eax, dword [eax]
dec eax
jle 0x52cf00
mov eax, dword [ebp - 4]
test eax, eax
je 0x52cef6
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x52cef6
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00406c0c
cmp word [eax + 2], 0x3a
sete al
jmp 0x52cf02
xor eax, eax
test al, al
je 0x52cf44
mov eax, dword [ebp - 4]
test eax, eax
je 0x52cf23
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x52cf23
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00406c0c
mov edx, 0x52d040
movzx esi, word [eax]
cmp si, 0x100
jae 0x52cf3c
mov eax, esi
movzx eax, al
bt dword [edx], eax
jb 0x52cf40
xor eax, eax
jmp 0x52cf46
mov al, 1
jmp 0x52cf46
xor eax, eax
test al, al
je 0x52d018
mov eax, dword [ebp - 4]
call fcn.00407880
push eax
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 2
jne 0x52d018
mov eax, dword [ebp - 4]
test eax, eax
je 0x52cf82
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x52cf82
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00406c0c
movzx ecx, word [eax]
mov edx, ecx
mov ebx, ecx
add ebx, 0xffffff9f
sub bx, 0x1a
jae 0x52cf99
mov edx, ecx
and dx, 0xffdf
movzx esi, dx
sub esi, 0x41
push 3
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0x14], eax
push 0x52d060
call sub.kernel32.dll_LoadLibraryW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x52d018
push 0x52d070
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040d10c
mov edi, eax
mov ebx, edi
test edi, edi
je 0x52d00f
xor eax, eax
push ebp
push 0x52d008
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0xffff
push esi
mov eax, dword [ebp - 8]
push eax
call ebx
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52d00f
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_SetErrorMode
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52d035
lea eax, [ebp - 4]
call fcn.004077e4
ret
Function at 0x52d56c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x52d61c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x24]
cmp byte [ebx + 0x51], 0
je 0x52d5db
mov eax, dword [ebx + 0x84]
call fcn.00415df4
test al, al
je 0x52d5db
mov eax, ebx
call fcn.00559eec
cmp al, 2
jb 0x52d5c6
lea eax, [ebp - 4]
mov ecx, dword [ebx + 0x84]
mov edx, 0x52d634
call fcn.00407cc8
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00527084
mov eax, dword [ebx + 0x84]
call fcn.00407880
push eax
call sub.kernel32.dll_DeleteFileW
mov byte [ebx + 0x51], 0
lea eax, [ebx + 0x9c]
mov edx, dword [eax]
xor ecx, ecx
mov dword [eax], ecx
mov eax, edx
call fcn.00405780
lea eax, [ebx + 0xa4]
mov edx, dword [0x52c310]
call fcn.004095f0
mov eax, ebx
call fcn.0052aa7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52d623
lea eax, [ebp - 4]
call fcn.004077e4
ret

Function at 0x52db54
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd7c
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x27c], ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x278]
mov edx, dword [0x40f7d8]
call fcn.004085a8
xor eax, eax
push ebp
push 0x52dce9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x27c]
mov ecx, 0x52dd04
mov edx, esi
call fcn.00407cc8
mov eax, dword [ebp - 0x27c]
lea ecx, [ebp - 0x278]
mov edx, 0x1ff
call fcn.004160b4
test eax, eax
jne 0x52dcac
lea eax, [ebp - 4]
mov ecx, dword [ebp - 0x264]
mov edx, esi
call fcn.00407cc8
test byte [ebp - 0x268], 0x10
je 0x52dc53
mov eax, dword [ebp - 0x264]
mov edx, 0x52dd18
call fcn.00407ecc
je 0x52dc53
mov eax, dword [ebp - 0x264]
mov edx, 0x52dd28
call fcn.00407ecc
je 0x52dc53
lea eax, [ebp - 4]
mov edx, 0x52dd3c
call fcn.00407c08
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0052db54
mov eax, ebx
call fcn.00559eec
cmp al, 2
jb 0x52dc42
push 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x284], eax
mov byte [ebp - 0x280], 0x11
lea ecx, [ebp - 0x284]
mov edx, 0xd8
mov eax, ebx
call fcn.00559f54
jmp 0x52dc49
mov eax, ebx
call fcn.00559f3c
mov eax, dword [ebp - 4]
call fcn.00416e58
jmp 0x52dc99
mov eax, ebx
call fcn.00559eec
cmp al, 2
jb 0x52dc84
push 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x284], eax
mov byte [ebp - 0x280], 0x11
lea ecx, [ebp - 0x284]
mov edx, 0xd7
mov eax, ebx
call fcn.00559f54
jmp 0x52dc8b
mov eax, ebx
call fcn.00559f3c
mov eax, dword [ebp - 4]
call fcn.00407880
push eax
call sub.kernel32.dll_DeleteFileW
lea eax, [ebp - 0x278]
call fcn.00522538
test eax, eax
je 0x52dbbd
lea eax, [ebp - 0x278]
call fcn.00416128
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52dcf0
lea eax, [ebp - 0x27c]
call fcn.004077e4
lea eax, [ebp - 0x278]
mov edx, dword [0x40f7d8]
call fcn.00408680
lea eax, [ebp - 4]
call fcn.004077e4
ret
Function at 0x53dadc
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov esi, edx
mov dword [esp], eax
xor eax, eax
mov dword [esp + 4], eax
test esi, esi
je 0x53db99
mov eax, esi
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x53db0d
cmp eax, 0x2ee0
jbe 0x53db99
jmp 0x53db13
jle 0x53db99
xor ebx, ebx
mov eax, dword [esi + 4]
mov edx, eax
cmp word [edx], 0x5a4d
jne 0x53db99
mov dword [esp + 4], 0xf5f7174e
mov edx, dword [edx + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
jne 0x53db99
add eax, 4
movzx edx, word [eax + 2]
add eax, 0xf4
mov ecx, edx
test ecx, ecx
jle 0x53db5e
mov edx, eax
mov edi, dword [edx + 0x14]
add edi, dword [edx + 0x10]
mov edx, edi
cmp ebx, edx
jae 0x53db58
mov ebx, edx
add eax, 0x28
dec ecx
jne 0x53db48
mov eax, dword [esi + 4]
add eax, ebx
mov edx, eax
mov ecx, dword [edx]
cmp ecx, 0xc005a44
jne 0x53db81
mov ecx, esi
mov edx, eax
mov eax, dword [esp]
call fcn.0053ddc4
mov dword [esp + 4], eax
jmp 0x53db99
cmp ecx, 0x1005a44
jne 0x53db99
mov ecx, esi
mov edx, eax
mov eax, dword [esp]
call fcn.0053dba4
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x53e130
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov byte [esp], 0
test edi, edi
je 0x53e1d2
mov eax, edi
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x53e157
cmp eax, 0x2ee0
jbe 0x53e1d2
jmp 0x53e159
jle 0x53e1d2
xor esi, esi
mov eax, dword [edi + 4]
mov edx, eax
cmp word [edx], 0x5a4d
jne 0x53e1d2
mov edx, dword [edx + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
jne 0x53e1d2
add eax, 4
movzx edx, word [eax + 2]
add eax, 0xf4
mov ebp, edx
test ebp, ebp
jle 0x53e19a
mov edx, eax
mov ecx, dword [edx + 0x14]
add ecx, dword [edx + 0x10]
cmp esi, ecx
jae 0x53e194
mov esi, ecx
add eax, 0x28
dec ebp
jne 0x53e186
mov eax, dword [edi + 4]
add eax, esi
mov edx, eax
cmp dword [edx], 0xc005a44
jne 0x53e1d2
movzx ecx, word [edx + 4]
movzx ebx, cx
add esi, ebx
movzx edx, cx
add eax, edx
mov edx, eax
cmp dword [edx], 0x2014b50
jne 0x53e1d2
mov eax, esi
xor edx, edx
push edx
push eax
mov eax, edi
call fcn.0043e46c
mov byte [esp], 1
movzx eax, byte [esp]
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret