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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x527acd
dec al
je 0x527b08
dec al
je 0x527b4d
dec al
je 0x527bb6
jmp 0x527c40
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x527c40
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x527add
jmp 0x527c40
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x527c40
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x527b18
jmp 0x527c40
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x527c40
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x527b7c
xor ebp, ebp
jmp 0x527b8c
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x527b95
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x527b5d
jmp 0x527c40
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x527c40
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x527c0f
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.00525204
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x527bca
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x52dde8
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [ebp - 0x84], 2
jne 0x52de2b
cmp dword [ebp - 0x90], 5
ja 0x52de2f
cmp dword [ebp - 0x90], 5
jne 0x52de2b
cmp dword [ebp - 0x8c], 1
jae 0x52de2f
xor eax, eax
jmp 0x52de31
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x52f170
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov ebx, edx
xor eax, eax
push ebp
push 0x52f29f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4304dc]
call fcn.00430648
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x52f272
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000001
mov eax, dword [ebp - 4]
call fcn.00430724
mov cl, 1
mov edx, 0x52f2b8
mov eax, dword [ebp - 4]
call fcn.00430868
test al, al
je 0x52f268
test bl, bl
je 0x52f22e
xor eax, eax
push ebp
push 0x52f222
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x52f2f0
lea edx, [ebp - 0xc]
xor eax, eax
call fcn.0040348c
push dword [ebp - 0xc]
push 0x52f2fc
lea eax, [ebp - 8]
mov edx, 3
call fcn.004052f0
mov eax, dword [ebp - 8]
push eax
call fcn.0052e7d8
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 4]
pop ecx
call fcn.00430f8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52f260
xor eax, eax
push ebp
push 0x52f256
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0052e7d8
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 4]
call fcn.00430cd4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52f260
mov eax, dword [ebp - 4]
call fcn.004306f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52f27c
mov eax, dword [ebp - 4]
call fcn.00403fe4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52f2a6
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404f80
ret

Function at 0x52fb28
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004053dc
xor eax, eax
push ebp
push 0x52fbc5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.00404f5c
mov eax, dword [ebp - 4]
test eax, eax
je 0x52fb6b
sub eax, 4
mov eax, dword [eax]
mov edi, eax
test edi, edi
jle 0x52fb97
mov esi, 1
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
movzx edx, byte [edx + esi - 1]
xor dl, bl
call fcn.00405144
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
call fcn.00405228
inc esi
dec edi
jne 0x52fb76
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00404fb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52fbcc
lea eax, [ebp - 0x10]
call fcn.00404f5c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404f80
ret
Function at 0x5344b4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004053dc
xor eax, eax
push ebp
push 0x534673
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00510178
test al, al
jne 0x5344f1
mov byte [ebp - 0xd], 0
jmp 0x53464b
mov eax, dword [ebp - 4]
call fcn.00513118
cmp eax, 0x40
jge 0x534537
xor eax, eax
push ebp
push 0x534524
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004053ec
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x53452e
mov byte [ebp - 0xd], 0
jmp 0x53464b
mov byte [ebp - 0xd], 1
xor eax, eax
push ebp
push 0x534607
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
call fcn.00511f7c
lea ecx, [ebp - 8]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00510d14
lea ecx, [ebp - 0x18]
mov dl, 0x4c
mov eax, dword [ebp - 8]
call fcn.005102a0
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 8]
call fcn.00404ff4
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.005101f0
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4b4494]
call fcn.004c6da8
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x5345d6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
add eax, 0x3c
mov edx, dword [ebp - 0xc]
call fcn.00405928
mov eax, dword [ebp - 0x14]
call fcn.004c60f0
mov eax, dword [ebp - 0x14]
call fcn.004c6360
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5345dd
mov eax, dword [ebp - 0x14]
call fcn.00403fe4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53467a
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404f80
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404f80
ret
Function at 0x535544
Capabilities:
Query service configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004053dc
mov eax, dword [ebp - 8]
call fcn.004053dc
xor eax, eax
push ebp
push 0x5356df
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [esi], eax
xor eax, eax
push ebp
push 0x5356bd
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
mov eax, dword [ebp - 4]
call fcn.004053ec
push eax
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x5356a8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x14], 0
jne 0x5355c5
call fcn.00404960
call fcn.00404960
jmp 0x5356c4
push 0xf01ff
mov eax, dword [ebp - 8]
call fcn.004053ec
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x5355f4
call fcn.00404960
call fcn.00404960
jmp 0x5356c4
xor eax, eax
push ebp
push 0x53568a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
push 0
push 0
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_QueryServiceConfigA
mov eax, dword [ebp - 0x10]
inc eax
call fcn.00403010
mov ebx, eax
mov edi, dword [ebp - 0x10]
inc edi
mov dword [esi], edi
xor eax, eax
push ebp
push 0x53566c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
push edi
push ebx
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_QueryServiceConfigA
test eax, eax
jne 0x53565b
call fcn.00404960
call fcn.00404960
call fcn.00404960
call fcn.00404960
jmp 0x5356c4
mov dword [ebp - 0xc], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x535673
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5356e6
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404f80
ret
Function at 0x5357bc
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004053dc
xor eax, eax
push ebp
push 0x5358bc
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0xf003f
push 0
mov eax, dword [ebp - 4]
call fcn.004053ec
push eax
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x535899
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, 0x24024
call fcn.00403010
mov esi, eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x24024
push esi
mov eax, dword [ebp - 8]
push eax
push edi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_EnumServicesStatusA
mov edi, dword [ebp - 0x14]
dec edi
test edi, edi
jl 0x535882
inc edi
xor ebx, ebx
lea edx, [ebp - 0x1c]
lea eax, [ebx + ebx*8]
mov eax, dword [esi + eax*4 + 4]
call fcn.0040c318
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea edx, [ebp - 0x20]
lea eax, [ebx + ebx*8]
mov eax, dword [esi + eax*4]
call fcn.0040c318
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc ebx
dec edi
jne 0x53584b
mov bl, 1
mov edx, 0x24024
mov eax, esi
call fcn.0040302c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5358c3
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00404f80
lea eax, [ebp - 4]
call fcn.00404f5c
ret

Function at 0x5358d0
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004053dc
mov eax, dword [ebp - 8]
call fcn.004053dc
xor eax, eax
push ebp
push 0x53599f
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.004053ec
push eax
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jbe 0x53597d
push 0x24
mov eax, dword [ebp - 8]
call fcn.004053ec
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
jbe 0x535977
lea eax, [ebp - 0x24]
push eax
push 1
push esi
call sub.advapi32.dll_ControlService
test eax, eax
je 0x535971
lea eax, [ebp - 0x24]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x535971
jmp 0x53596b
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_Sleep_2
lea eax, [ebp - 0x24]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x535971
cmp edi, dword [ebp - 0x10]
ja 0x535971
cmp dword [ebp - 0x20], 1
jne 0x53594c
push esi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
cmp dword [ebp - 0x20], 1
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5359a6
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404f80
ret
Function at 0x5359b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004053dc
xor eax, eax
push ebp
push 0x535ab1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x41fc3c]
call fcn.00403fb4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x535a82
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x535ac8
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor edx, edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0x535af8
push dword [ebp - 4]
push 0x535b38
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004052f0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 8]
call fcn.00511f7c
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x74]
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 8]
mov edx, 0x535b44
call fcn.00405274
mov eax, dword [ebp - 0x18]
call fcn.00512024
mov eax, dword [ebp - 8]
call fcn.004053ec
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x535a89
mov eax, dword [ebp - 0x10]
call fcn.00403fe4
ret
Function at 0x536300
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004053dc
xor eax, eax
push ebp
push 0x536399
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, 0x5363ac
call fcn.00404ff4
push 0
push 0x5363b4
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov edx, 0x5363c0
call fcn.00405274
mov eax, dword [ebp - 0xc]
call fcn.004053ec
push eax
push 0x5363d0
push dword [ebp - 8]
push 0x5363dc
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004052f0
mov eax, dword [ebp - 0x10]
call fcn.004053ec
push eax
push 0x5363e4
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5363a0
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404f80
ret

Function at 0x5371c8
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
call fcn.004053dc
mov eax, dword [ebp - 8]
call fcn.004053dc
xor eax, eax
push ebp
push 0x5372dd
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0040be48
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.0040a4f8
mov eax, dword [ebp - 0x10]
mov edx, 0x5372f8
call fcn.00405384
jne 0x537248
lea eax, [ebp - 0x18]
call fcn.0050fd4c
lea eax, [ebp - 0x18]
mov edx, 0x537308
call fcn.00405228
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.00537bb0
xor eax, eax
push ebp
push 0x537269
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
push eax
call fcn.00535ba0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x537273
push 0
mov eax, dword [ebp - 4]
call fcn.004053ec
mov esi, eax
push esi
call sub.kernel32.dll_SetFileAttributesA
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.00536af8
mov eax, dword [ebp - 4]
call fcn.004053ec
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x5372b5
push 4
push 0
push esi
call sub.kernel32.dll_MoveFileExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5372e4
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404f80
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404f80
ret
Function at 0x537320
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004053dc
xor eax, eax
push ebp
push 0x5373e2
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
push ebp
push 0x5373bb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00510178
test al, al
jne 0x53736d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5373c7
lea ecx, [ebp - 8]
mov edx, 0x5373fc
mov eax, dword [ebp - 4]
call fcn.0040bc3c
mov eax, dword [ebp - 8]
call fcn.00510178
test al, al
jne 0x537393
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5373c7
mov eax, dword [ebp - 4]
call fcn.004053ec
push eax
call sub.kernel32.dll_DeleteFileA
mov eax, dword [ebp - 8]
call fcn.004053ec
push eax
call sub.kernel32.dll_DeleteFileA
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5373c7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5373e9
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404f80
ret
Function at 0x53a914
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdac
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x254], ecx
mov dword [ebp - 0x250], ecx
mov esi, edx
lea edi, [ebp - 2]
movzx ecx, byte [esi]
cmp cl, 1
jb 0x53a93d
mov cl, 1
mov byte [edi], cl
inc esi
inc edi
rep movsb byte es:[edi], byte [esi]
mov ebx, eax
xor eax, eax
push ebp
push 0x53ab2c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebx + 0x28]
lea edx, [ebp - 2]
mov cl, 1
call fcn.00403720
lea eax, [ebx + 0x2c]
call fcn.00404f5c
lea eax, [ebx + 0x30]
call fcn.00404f5c
lea eax, [ebx + 0x34]
call fcn.00404f5c
xor eax, eax
mov dword [ebx + 4], eax
xor eax, eax
mov dword [ebx + 8], eax
xor eax, eax
mov dword [ebx + 0xc], eax
xor eax, eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
lea edx, [ebp - 0x248]
mov eax, ebx
call fcn.0053ab48
lea eax, [ebp - 0x248]
mov edx, 0x53ab3c
movzx ecx, byte [eax]
inc ecx
call fcn.004037c0
je 0x53ab0e
lea edx, [ebp - 2]
lea eax, [ebp - 0x24c]
call fcn.00403714
mov edx, 0x53ab44
lea eax, [ebp - 0x24c]
mov cl, 3
call fcn.004036e4
lea edx, [ebp - 0x24c]
lea eax, [ebp - 6]
mov cl, 3
call fcn.00403720
lea eax, [ebp - 0x250]
lea edx, [ebp - 6]
call fcn.004051c0
mov edx, dword [ebp - 0x250]
lea eax, [ebp - 9]
call fcn.0040c130
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 9]
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
je 0x53aa96
mov eax, dword [ebp - 0x10]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x10]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x14]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x18]
xor edx, edx
call fcn.00406320
call fcn.00406320
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], edx
mov eax, dword [ebp - 0x10]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x14]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x1c]
xor edx, edx
call fcn.00406320
call fcn.00406320
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], edx
push 0xff
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push 0xff
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 9]
push eax
call sub.kernel32.dll_GetVolumeInformationA
lea eax, [ebx + 0x2c]
lea edx, [ebp - 0x128]
mov ecx, pe_nt_image_headers32
call fcn.004051cc
mov eax, dword [ebp - 0x20]
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x254]
mov eax, 8
call fcn.0040b348
mov edx, dword [ebp - 0x254]
lea eax, [ebx + 0x30]
call fcn.00404fb0
lea eax, [ebx + 0x34]
lea edx, [ebp - 0x228]
mov ecx, pe_nt_image_headers32
call fcn.004051cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53ab33
lea eax, [ebp - 0x254]
mov edx, 2
call fcn.00404f80
ret
Function at 0x53ab48
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x53ac47
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebx + 0x28]
lea eax, [ebp - 0xc]
call fcn.00403714
mov edx, 0x53ac58
lea eax, [ebp - 0xc]
mov cl, 3
call fcn.004036e4
lea edx, [ebp - 0xc]
lea eax, [ebp - 4]
mov cl, 3
call fcn.00403720
lea eax, [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004051c0
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 7]
call fcn.0040c130
lea eax, [ebp - 7]
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 6
ja case.default.0x53abb3
jmp dword [eax*4 + 0x53abba]
mov edi, esi
mov esi, 0x53ac5c
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp case.default.0x53abb3
mov edi, esi
mov esi, 0x53ac70
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp case.default.0x53abb3
mov edi, esi
mov esi, 0x53ac90
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp case.default.0x53abb3
mov edi, esi
mov esi, 0x53ac9c
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp case.default.0x53abb3
mov edi, esi
mov esi, 0x53aca4
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jmp case.default.0x53abb3
mov edi, esi
mov esi, 0x53acac
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp case.default.0x53abb3
mov edi, esi
mov esi, 0x53acb4
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53ac4e
lea eax, [ebp - 0x10]
call fcn.00404f5c
ret