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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov ebx, ecx
test ebx, ebx
js 0x49f9c5
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x49f9be
mov edx, esp
mov dword [ebp - 4], edx
mov ebx, eax
mov dword [ebp - 8], 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dl, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 8]
jne 0x49f9d9
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0049f370
test bl, bl
jne 0x49faac
mov dword [ebp - 8], 0x10
mov dword [ebp - 0x14], 0x526e38
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x49fa10
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x49fa24
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0049f884
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov bl, byte [edx]
xor bl, byte [esi]
mov byte [ecx], bl
inc ecx
inc esi
inc edx
dec eax
jne 0x49fa56
add dword [ebp - 0x14], 6
dec dword [ebp - 8]
jne 0x49fa05
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ecx, [ebp - 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x49fa79
mov eax, 4
mov edx, dword [ebp + 0xc]
mov cl, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x49fa8a
mov eax, 4
lea edx, [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x49fa9e
jmp 0x49fb67
cmp bl, 1
jne 0x49fb67
mov dword [ebp - 8], 0xfffffff0
mov ebx, 0x526e92
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x49facc
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x49fae0
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov ecx, ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0049f884
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp - 0x18], ecx
mov cl, byte [edx]
xor cl, byte [esi]
mov edi, dword [ebp - 0x18]
mov byte [edi], cl
inc dword [ebp - 0x18]
inc esi
inc edx
dec eax
jne 0x49fb12
sub ebx, 6
inc dword [ebp - 8]
jne 0x49fac1
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ebx, [ebp - 0xc]
mov cl, byte [edx]
mov byte [ebx], cl
inc ebx
inc edx
dec eax
jne 0x49fb39
mov eax, 4
mov ebx, dword [ebp + 0xc]
mov dl, byte [ebx]
mov byte [ebx + 4], dl
inc ebx
dec eax
jne 0x49fb4a
mov eax, 4
lea ebx, [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov cl, byte [ebx]
mov byte [edx], cl
inc edx
inc ebx
dec eax
jne 0x49fb5e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0049f3f4
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 8
Function at 0x4a18d8
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
mov edx, 0x40
call fcn.004079cc
ret

Function at 0x4a1a00
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d40
xor eax, eax
push ebp
push 0x4a1b4e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x6c]
call fcn.004a18d8
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00404d50
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x4a1b2d
xor eax, eax
push ebp
push 0x4a1b26
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4a1b0f
xor eax, eax
push ebp
push 0x4a1b08
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4a1af1
xor eax, eax
push ebp
push 0x4a1aea
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize_1
mov ecx, eax
lea eax, [ebp - 0x6c]
mov edx, dword [ebp - 0x14]
call fcn.004a190c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1af1
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1b0f
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1b2d
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x6c]
call fcn.004a198c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1b55
lea eax, [ebp - 4]
call fcn.00404890
ret

Function at 0x4a44bc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 4]
inc ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.0042a900
cmp ebx, dword [ebp - 8]
jge 0x4a451f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.0042acfc
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.0042acfc
xor edi, eax
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.0042ad28
add ebx, 2
cmp ebx, dword [ebp - 8]
jl 0x4a44e5
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4a4528
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp - 4]
inc ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.0042a900
cmp ebx, dword [ebp - 8]
jge 0x4a458b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.0042acfc
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.0042acfc
xor edi, eax
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.0042ad28
add ebx, 2
cmp ebx, dword [ebp - 8]
jl 0x4a4551
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4a98dc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a9b3c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4a993f
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004a9584
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040dc30
cmp al, 1
jne 0x4a993f
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004a984c
test al, al
je 0x4a9acb
cmp dword [ebp - 8], 0
jge 0x4a995d
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.004a9584
mov eax, dword [ebp - 0x210]
call fcn.00404b50
cmp ebx, eax
jge 0x4a99a7
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004a9584
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x525db0]
and eax, 0xff
bt dword [edx], eax
jae 0x4a99a7
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4a99bb
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004a98b8
cmp ebx, dword [ebp - 8]
je 0x4a9abd
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4a99e7
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403c78
and eax, 0x7f
movzx eax, word [eax*2 + 0x52127c]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x4a9aaa
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403c78
and eax, 0x7f
movzx eax, word [eax*2 + 0x52127c]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00462700
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403c78
and eax, 0x7f
movzx eax, word [eax*2 + 0x52127c]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00462700
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a9ab1
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4a9b1e
cmp dword [ebp - 8], 0
jge 0x4a9ad6
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004a9584
mov eax, dword [ebp - 0x218]
call fcn.00404b50
cmp eax, dword [ebp - 8]
jg 0x4a9b10
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004a9584
mov eax, dword [ebp - 0x21c]
call fcn.00404b50
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004a98b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a9b43
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.004048b4
ret
Function at 0x4d4728
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4d4730
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4d4922
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x4d4938
mov eax, esi
call fcn.004d25b4
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.004048e4
lea ecx, [ebp - 0x10]
mov edx, 0x4d494c
mov eax, esi
call fcn.004d25b4
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.004048e4
lea ecx, [ebp - 0x14]
mov edx, 0x4d4964
mov eax, esi
call fcn.004d25b4
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.004048e4
lea ecx, [ebp - 0x18]
mov edx, 0x4d4980
mov eax, esi
call fcn.004d25b4
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.004048e4
lea ecx, [ebp - 0x1c]
mov edx, 0x4d499c
mov eax, esi
call fcn.004d25b4
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.004048e4
lea ecx, [ebp - 0x24]
mov edx, 0x4d49b4
mov eax, esi
call fcn.004d25b4
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408f90
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.004094d8
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x4d49cc
mov eax, esi
call fcn.004d25b4
mov eax, dword [ebp - 0x28]
call fcn.004c6a74
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x4d49dc
mov eax, esi
call fcn.004d25b4
mov eax, dword [ebp - 0x2c]
call fcn.004c6a74
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x4d49f4
mov eax, esi
call fcn.004d25b4
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.004094d8
inc eax
je 0x4d48c5
lea ecx, [ebp - 0x34]
mov edx, 0x4d49f4
mov eax, esi
call fcn.004d25b4
mov eax, dword [ebp - 0x34]
call fcn.0040949c
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040b078
fstp qword [ebp - 0x3c]
wait
call fcn.0040b3dc
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x4d48e0
lea ecx, [ebp - 0x40]
mov edx, 0x4d49f4
mov eax, esi
call fcn.004d25b4
mov eax, dword [ebp - 0x40]
call fcn.004c6a74
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x4d4a04
mov eax, esi
call fcn.004d25b4
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.004048e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d4929
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004048b4
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.004048b4
ret
Function at 0x4db410
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4db46a
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004db400
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004c5688
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004c5288
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4db471
lea eax, [ebp - 4]
call fcn.00404890
ret

Function at 0x4e0954
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4e0ac5
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e0aa0
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.00404a78
lea eax, [ebp - 0x118]
mov edx, 0x4e0adc
call fcn.00404b58
mov eax, dword [ebp - 0x118]
call fcn.00404d50
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x4e0a12
lea eax, [ebp - 0x111]
call fcn.0040a090
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.00404980
jmp 0x4e0a19
mov eax, esi
call fcn.00404890
cmp bl, 0x61
jae 0x4e0a3a
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040e0fc
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.004048e4
jmp 0x4e0a54
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040e070
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.004048e4
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
lea edx, [ebp - 0x12c]
xor ecx, ecx
mov eax, 0x4e0ae8
call fcn.0040a76c
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.004048e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e0aa7
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x4e415c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffecc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d40
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x4e4248
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor edx, edx
mov eax, 2
call fcn.004a1ec8
mov esi, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, esi
call fcn.004a1ee8
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x4e421e
lea eax, [ebp - 0x134]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00404b00
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00409ed8
mov eax, dword [ebp - 0x130]
mov edx, dword [ebp - 4]
call fcn.00404c9c
jne 0x4e420f
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov ebx, eax
push 0
push ebx
call sub.kernel32.dll_TerminateProcess
push ebx
call sub.kernel32.dll_CloseHandle_1
mov bl, 1
mov edx, edi
mov eax, esi
call fcn.004a1f08
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4e41bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e424f
lea eax, [ebp - 0x134]
mov edx, 2
call fcn.004048b4
lea eax, [ebp - 4]
call fcn.00404890
ret
Function at 0x4fee88
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 7
push 0
push 0
dec ecx
jne 0x4fee91
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404d40
mov eax, dword [ebp - 0xc]
call fcn.00404d40
xor eax, eax
push ebp
push 0x4ff0ce
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x310]
mov byte [eax + 0x38], 0
mov dl, 1
mov eax, dword [0x41b288]
call fcn.00403a4c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4ff049
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x314]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.004dc124
lea eax, [ebp - 0x14]
push eax
xor ecx, ecx
mov edx, 0x4ff0e4
mov eax, dword [ebp - 0xc]
call fcn.0043a3b8
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
call fcn.00404c9c
je 0x4ff004
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.00409dbc
mov eax, dword [ebp - 0x18]
call fcn.004099ac
test al, al
jne 0x4ff004
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.00409dbc
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
mov edx, 1
call fcn.0043a454
mov eax, dword [ebp - 0x1c]
mov edx, 0x4ff0e4
call fcn.00404c9c
jne 0x4fefca
lea edx, [ebp - 0x28]
mov eax, dword [0x525a98]
mov eax, dword [eax]
call fcn.0047bf14
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.00409dbc
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0xc]
call fcn.00409dbc
mov eax, dword [ebp - 0x30]
call fcn.00404b50
dec eax
push eax
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0xc]
call fcn.00409dbc
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x2c]
pop edx
call fcn.0043a3e4
mov edx, dword [ebp - 0x2c]
pop eax
call fcn.00404b58
mov eax, dword [ebp - 0x24]
call fcn.004099d0
jmp 0x4ff004
lea edx, [ebp - 0x3c]
mov eax, dword [0x525a98]
mov eax, dword [eax]
call fcn.0047bf14
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.00409dbc
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0xc]
call fcn.00409dbc
mov edx, dword [ebp - 0x40]
pop eax
call fcn.00404b58
mov eax, dword [ebp - 0x38]
call fcn.004099d0
push 0x80
mov eax, dword [ebp - 0xc]
call fcn.00404d50
push eax
call sub.kernel32.dll_SetFileAttributesA
mov edx, 0x20
mov eax, dword [ebp - 0xc]
call fcn.00409b74
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.004204dc
mov eax, dword [ebp - 0x10]
call fcn.00403a7c
mov eax, dword [ebp - 4]
call fcn.004781c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ff0a6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ff0d5
lea eax, [ebp - 0x40]
mov edx, 0xc
call fcn.004048b4
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004048b4
ret
Function at 0x501704
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404d40
xor eax, eax
push ebp
push 0x5017fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov ax, word [esi + 4]
mov word [ebx + 4], ax
mov ax, word [esi + 6]
mov word [ebx + 6], ax
mov ax, word [esi + 8]
mov word [ebx + 8], ax
mov ax, word [esi + 0xa]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xc]
call fcn.00503078
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
mov ax, word [esi + 0x1c]
mov word [ebx + 0x1c], ax
mov ax, word [esi + 0x1e]
mov word [ebx + 0x1e], ax
mov ax, word [esi + 0x20]
mov word [ebx + 0x22], ax
mov ax, word [esi + 0x22]
mov word [ebx + 0x24], ax
mov ax, word [esi + 0x24]
mov word [ebx + 0x26], ax
mov eax, dword [esi + 0x26]
mov dword [ebx + 0x28], eax
mov eax, dword [esi + 0x2a]
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00409ed8
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.005020c4
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00409dbc
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00502138
xor eax, eax
mov dword [ebx + 0x44], eax
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x4a], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x501804
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004048b4
ret
Function at 0x50180c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404d40
xor eax, eax
push ebp
push 0x501915
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebx + 4], 0
mov ax, word [esi + 4]
mov word [ebx + 6], ax
mov ax, word [esi + 6]
mov word [ebx + 8], ax
mov ax, word [esi + 8]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xa]
call fcn.00503078
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0xe]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x12]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x16]
mov dword [ebx + 0x18], eax
mov ax, word [esi + 0x1a]
mov word [ebx + 0x1c], ax
mov ax, word [esi + 0x1c]
mov word [ebx + 0x20], ax
mov word [ebx + 0x22], 0
mov word [ebx + 0x24], 0
mov word [ebx + 0x26], 0
xor eax, eax
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
cmp dword [ebp - 4], 0
je 0x5018db
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00409ed8
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.005020c4
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00409dbc
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00502138
jmp 0x5018ed
xor edx, edx
mov eax, ebx
call fcn.005020c4
xor edx, edx
mov eax, ebx
call fcn.00502138
xor eax, eax
mov dword [ebx + 0x44], eax
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x4a], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50191c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004048b4
ret

Function at 0x5032d4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d40
xor eax, eax
push ebp
push 0x503332
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
call fcn.005033b0
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
je 0x50331a
lea eax, [ebp - 4]
call fcn.005033b0
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x50331c
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x503339
lea eax, [ebp - 4]
call fcn.00404890
ret

Function at 0x503340
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404d40
xor eax, eax
push ebp
push 0x5033a4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xe
lea eax, [ebp - 0x1a]
push eax
lea eax, [ebp - 4]
call fcn.005033b0
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, ebx
lea eax, [ebp - 0x1a]
call fcn.0040a27c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5033ab
lea eax, [ebp - 4]
call fcn.00404890
ret