joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452e30
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
jne 0x452e63
push 0x452edc
call sub.kernel32.dll_GetLastError_2
mov ecx, eax
mov eax, dword [0x590ea0]
mov eax, dword [eax]
mov dl, 2
call fcn.00435400
jmp 0x452ecc
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x452ec5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xd
call sub.user32.dll_GetClipboardData
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x452e9b
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GlobalLock
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.00407320
jmp 0x452ea3
mov eax, dword [ebp - 8]
call fcn.004065f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452ecc
call sub.user32.dll_CloseClipboard
cmp dword [ebp - 0xc], 0
je 0x452ec4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov esp, ebp
pop ebp
ret

Function at 0x4534e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov al, byte [0x453548]
mov byte [ebp - 5], al
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x453501
or byte [ebp - 5], 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x453511
or byte [ebp - 5], 4
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x453521
or byte [ebp - 5], 2
push 0x5b
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x453531
or byte [ebp - 5], 8
push 0x5c
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x453541
or byte [ebp - 5], 8
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret

Function at 0x453740
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x453870
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
cmp dword [ebp - 8], 0
je 0x453840
lea eax, [ebp - 0x14]
call fcn.00428910
xor eax, eax
push ebp
push 0x4537f4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
call fcn.00428860
mov eax, dword [ebp - 0x18]
call fcn.004072c8
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x19], al
push 0
push 1
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, 0x45388c
call fcn.00443fa0
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4537fb
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x14]
call fcn.00406a04
mov eax, dword [ebp - 0x20]
call fcn.004072c8
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x21], al
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453877
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.00406658
lea eax, [ebp - 0x20]
call fcn.004065f8
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00406658
ret
Function at 0x457720
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov al, byte [eax + 0xc5]
mov byte [ebp - 0x11], al
xor eax, eax
push ebp
push 0x4577cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov byte [eax + 0xc5], 1
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00457650
mov eax, dword [ebp - 4]
mov byte [eax + 0x30], 1
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
jge 0x4577b0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004576b0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jne 0x4577a8
mov ecx, 0x4577e4
mov dl, 1
mov eax, dword [0x41ab4c]
call fcn.00423378
call fcn.00405cf0
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
jl 0x457779
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4577d4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dl, byte [ebp - 0x11]
mov byte [eax + 0xc5], dl
ret
Function at 0x45ffe0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x460072
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, edi
mov eax, dword [ebx + 4]
call fcn.00429450
mov esi, eax
mov edx, edi
mov eax, dword [ebx + 4]
call fcn.00429340
lea ecx, [ebp - 8]
lea edx, [esi + 4]
mov eax, dword [ebx + 8]
call fcn.0042d260
test al, al
je 0x460033
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 8]
call fcn.00429340
lea edx, [ebp - 4]
mov eax, esi
call fcn.004605f0
mov eax, dword [ebp - 4]
call fcn.004072c8
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
mov eax, esi
call fcn.00404fec
mov byte [ebx + 0x10], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460079
lea eax, [ebp - 4]
call fcn.004065f8
ret
Function at 0x46ee60
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
xor eax, eax
mov ecx, edx
test ecx, ecx
je 0x46ee6f
sub ecx, 4
mov ecx, dword [ecx]
test ecx, ecx
jle 0x46ee90
mov ebx, 1
mov esi, eax
add esi, esi
add esi, esi
shr eax, 0x1e
or esi, eax
movzx eax, word [edx + ebx*2 - 2]
xor esi, eax
mov eax, esi
inc ebx
dec ecx
jne 0x46ee78
pop esi
pop ebx
ret
Function at 0x46f670
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov esi, eax
xor eax, eax
push ebp
push 0x46f898
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0046f290
cmp dword [esi + 8], 0
je 0x46f875
mov ebx, 1
mov eax, dword [esi + 8]
mov edx, 1
call fcn.0042b7e0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x46f6fa
lea eax, [ebp - 0xc]
mov edx, dword [esi + 8]
call fcn.00406a04
mov eax, dword [ebp - 0xc]
call fcn.004072c8
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x46f6e5
test al, 0x10
sete al
jmp 0x46f6e7
xor eax, eax
test al, al
je 0x46f6fa
lea eax, [ebx + ebx*2]
push eax
call sub.kernel32.dll_Sleep_2
inc ebx
cmp ebx, 0xb
jne 0x46f6aa
cmp dword [ebp - 0x14], 0
je 0x46f875
xor ecx, ecx
push ebp
push 0x46f86e
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx]
mov edx, eax
lea eax, [ebp - 4]
xor ecx, ecx
call fcn.0040706c
mov byte [esi + 0xc], 0
lea eax, [ebp - 8]
call fcn.004065f8
mov eax, dword [ebp - 4]
test eax, eax
je 0x46f73d
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x46f809
lea eax, [ebp - 4]
call fcn.00406b9c
mov edx, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x46f75b
sub eax, 4
mov eax, dword [eax]
mov ecx, eax
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 4]
test eax, eax
je 0x46f771
sub eax, 4
mov eax, dword [eax]
cmp eax, 2
jle 0x46f78b
mov eax, dword [ebp - 4]
cmp byte [eax], 0xff
jne 0x46f78b
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0xfe
jne 0x46f78b
mov byte [esi + 0xc], 1
movzx eax, byte [esi + 0xc]
sub al, 1
jb 0x46f797
je 0x46f7a4
jmp 0x46f809
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00407390
jmp 0x46f809
mov eax, dword [ebp - 4]
test eax, eax
je 0x46f7b0
sub eax, 4
mov eax, dword [eax]
mov edx, eax
sub edx, 2
sar edx, 1
jns 0x46f7bc
adc edx, 0
lea eax, [ebp - 8]
call fcn.004073e0
mov eax, dword [ebp - 8]
test eax, eax
je 0x46f7d0
sub eax, 4
mov eax, dword [eax]
mov edi, eax
test edi, edi
jle 0x46f809
mov ebx, 1
lea eax, [ebp - 4]
call fcn.00406b9c
mov edx, ebx
dec edx
add edx, edx
add edx, 3
lea eax, [eax + edx - 1]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
call fcn.00406b94
mov edx, dword [ebp - 0x18]
movzx edx, word [edx]
mov word [eax + ebx*2 - 2], dx
inc ebx
dec edi
jne 0x46f7db
mov dl, 1
mov eax, dword [0x4277d8]
call fcn.0042bdf0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x46f851
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.0042c580
mov edx, dword [ebp - 0x10]
mov eax, esi
call fcn.0046fd70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f858
mov eax, dword [ebp - 0x10]
call fcn.00404fec
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f89f
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00406658
lea eax, [ebp - 4]
call fcn.0040661c
ret
Function at 0x470af0
Capabilities:
Hash data with md5

Disassembly:
push ebx
mov ebx, eax
mov byte [ebx + 0x18], 0
lea eax, [ebx + 0x18]
xor ecx, ecx
mov edx, 0x40
call fcn.00404c74
xor eax, eax
mov dword [ebx + 0x10], eax
xor eax, eax
mov dword [ebx + 0x14], eax
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
pop ebx
ret

Function at 0x480f80
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48104b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
call fcn.00480e80
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x481026
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
mov edx, 0x105
call fcn.004073e0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00406acc
push eax
mov eax, dword [ebp - 0x1c]
call fcn.004072c8
push eax
mov eax, dword [ebp - 0xc]
call fcn.004072c8
push eax
call sub.kernel32.dll_GetVolumeInformationW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48102d
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x48e8b0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, ebx
mov edx, 0x158
call fcn.0042a710
lea eax, [ebp - 0x46]
mov edx, 0x40
call fcn.0042a710
cmp dword [ebp - 4], 0
je 0x48e96e
mov eax, dword [ebp - 4]
mov dword [ebx + 0x154], eax
movzx eax, word [ebp + 8]
mov edx, dword [ebp - 4]
movzx edx, word [edx]
mov word [ebp - 6], dx
cmp ax, word [ebp - 6]
jbe 0x48e92a
movzx eax, ax
push eax
lea edx, [ebp - 0x46]
mov ecx, esi
mov eax, dword [ebp - 4]
call fcn.0048e860
mov eax, dword [ebp - 4]
movzx eax, word [eax + 2]
movzx ecx, ax
lea edx, [ebx + 0xd4]
lea eax, [ebp - 0x46]
call fcn.00404860
jmp 0x48e93a
movzx ecx, ax
lea edx, [ebx + 0xd4]
mov eax, esi
call fcn.00404860
movzx edx, word [ebp - 6]
dec edx
test dx, dx
jb 0x48e954
inc edx
lea eax, [ebx + 0xd4]
xor byte [eax], 0x36
inc eax
dec dx
jne 0x48e94b
mov eax, ebx
mov esi, dword [ebp - 4]
call dword [esi + 4]
movzx ecx, word [ebp - 6]
lea edx, [ebx + 0xd4]
mov eax, ebx
mov ebx, dword [ebp - 4]
call dword [ebx + 0xc]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x48e990
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov dword [esp], edx
mov ebx, eax
mov eax, dword [ebx + 0x154]
test eax, eax
je 0x48ea11
movzx edx, word [eax]
mov word [esp + 4], dx
mov esi, eax
mov edx, dword [esp]
mov eax, ebx
call dword [esi + 8]
movzx edx, word [esp + 4]
dec edx
test edx, edx
jl 0x48e9ce
inc edx
lea eax, [ebx + 0xd4]
xor byte [eax], 0x6a
inc eax
dec edx
jne 0x48e9c7
mov esi, dword [ebx + 0x154]
mov eax, ebx
call dword [esi + 4]
mov esi, dword [ebx + 0x154]
movzx ecx, word [esp + 4]
lea edx, [ebx + 0xd4]
mov eax, ebx
call dword [esi + 0xc]
mov eax, dword [ebx + 0x154]
mov esi, eax
movzx ecx, word [eax + 2]
mov edx, dword [esp]
mov eax, ebx
call dword [esi + 0xc]
mov esi, dword [ebx + 0x154]
mov edx, dword [esp]
mov eax, ebx
call dword [esi + 8]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x48eab0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push esi
push edi
push ebx
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, 0x10
mov eax, dword [edx]
xchg ah, al
rol eax, 0x10
xchg ah, al
mov dword [esi], eax
add esi, 4
add edx, 4
dec ecx
jne 0x48eaca
mov ecx, 0x30
mov edi, dword [esi - 0x1c]
mov eax, dword [esi - 8]
mov ebx, eax
mov edx, eax
ror eax, 0x11
ror edx, 0x13
shr ebx, 0xa
xor eax, edx
xor eax, ebx
add edi, eax
mov eax, dword [esi - 0x3c]
mov ebx, eax
mov edx, eax
ror eax, 7
ror edx, 0x12
shr ebx, 3
xor eax, edx
xor eax, ebx
add eax, edi
add eax, dword [esi - 0x40]
mov dword [esi], eax
add esi, 4
dec ecx
jne 0x48eae3
pop ebx
pop edi
pop esi
pop ecx
pop ecx
pop ebp
ret
Function at 0x4940a0
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
call fcn.0040538c
mov ebx, edx
mov esi, eax
cmp byte [esi + 0xd], 0
jne 0x4940ca
mov edx, dword [esi + 0x24]
mov eax, esi
call fcn.00494150
test al, al
jne 0x4940ca
push 1
mov eax, dword [esi + 4]
push eax
call sub.kernel32.dll_TerminateThread
mov dl, 0xfc
and dl, bl
mov eax, esi
call fcn.004942a0
lea eax, [esi + 0x1c]
mov edx, dword [eax]
xor ecx, ecx
mov dword [eax], ecx
mov eax, edx
call fcn.00404fec
lea eax, [esi + 0x20]
mov edx, dword [eax]
xor ecx, ecx
mov dword [eax], ecx
mov eax, edx
call fcn.00404fec
test bl, bl
jle 0x494100
mov eax, esi
call fcn.00405334
pop esi
pop ebx
ret

Function at 0x494310
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4943a8
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x49436c
cmp byte [ebx + 0x18], 0
jne 0x49436c
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xc], 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x49438d
lea edx, [ebp - 4]
mov eax, dword [0x591408]
call fcn.0040a0b0
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x427414]
call fcn.00423378
call fcn.00405cf0
jmp 0x49438d
lea edx, [ebp - 8]
mov eax, dword [0x591408]
call fcn.0040a0b0
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x427414]
call fcn.00423378
call fcn.00405cf0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4943af
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406658
ret

Function at 0x4943c0
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00494500
dec esi
jne 0x4943e2
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x498370
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x498486
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.0041e14c
mov eax, dword [ebp - 0x1c]
call fcn.0041ddd4
push 9
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004072c8
push eax
mov eax, dword [ebp - 4]
call fcn.004072c8
push eax
call sub.kernel32.dll_MoveFileWithProgressW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xa], al
cmp byte [ebp - 0xa], 0
je 0x498403
cmp word [ebp + 0xa], 0
je 0x49846b
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004985b0
test al, al
je 0x49846b
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
call dword [ebp + 8]
jmp 0x49846b
cmp byte [ebp - 9], 0
je 0x49842c
push dword [ebp + 0xc]
push dword [ebp + 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004981f0
test al, al
je 0x49842c
mov eax, dword [ebp - 4]
call fcn.0041dfe8
mov byte [ebp - 0xa], 1
jmp 0x49846b
call sub.kernel32.dll_GetLastError_2
mov dword [ebp - 0x10], eax
push 0x4984a4
push dword [ebp - 4]
push 0x4984d4
push dword [ebp - 8]
push 0x4984f0
lea eax, [ebp - 0x20]
mov edx, 5
call fcn.00407540
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [0x590ea0]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
mov dl, 2
call fcn.00435400
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49848d
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00406658
ret
Function at 0x498e40
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov word [ebp - 2], ax
xor eax, eax
push ebp
push 0x498fef
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x498fc0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.004069bc
cmp dword [ebp - 8], 0
jne 0x498f54
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x2c]
mov dx, word [ebp - 2]
call fcn.004072e0
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x20]
mov ecx, 0x499008
call fcn.004074b8
lea eax, [ebp - 0x24]
mov edx, 0x105
call fcn.004073e0
lea eax, [ebp - 0x24]
call fcn.00406b94
mov word [eax], 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 0x24]
call fcn.00406acc
push eax
mov eax, dword [ebp - 0x24]
call fcn.004072c8
push eax
mov eax, dword [ebp - 0x20]
call fcn.004072c8
push eax
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x498f54
mov eax, dword [ebp - 0x24]
call fcn.00406acc
test eax, eax
jle 0x498f49
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x14]
cmp word [eax + edx*2 - 2], 0
jne 0x498f41
mov edx, dword [ebp - 0x14]
dec edx
lea eax, [ebp - 0x24]
call fcn.004073e0
jmp 0x498f49
inc dword [ebp - 0x14]
dec dword [ebp - 0x28]
jne 0x498f25
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
call fcn.004069bc
cmp word [ebp - 2], 0x61
jae 0x498f75
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.0041d0a4
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0xc]
call fcn.004069bc
jmp 0x498f8d
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.0041d0e0
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0xc]
call fcn.004069bc
push 0x49901c
mov eax, dword [ebp - 0xc]
push dword [eax]
push 0x49902c
mov eax, dword [ebp - 0xc]
mov edx, 3
call fcn.00407540
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498fc7
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x49a970
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x49a978
xor eax, eax
push ebp
push 0x49aafe
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetLogicalDrives
mov dword [ebp - 0xd], eax
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, 0x1f
ja 0x49a9a6
bt dword [ebp - 0xd], eax
jae case.0x49a9f3.0
mov ax, word [ebp - 8]
add ax, 0x41
mov word [ebp - 2], ax
lea eax, [ebp - 0x18]
mov dx, word [ebp - 2]
call fcn.004072e0
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov ecx, 0x49ab18
call fcn.004074b8
mov eax, dword [ebp - 0x14]
call fcn.004072c8
push eax
call sub.kernel32.dll_GetDriveTypeW
mov byte [ebp - 9], al
xor eax, eax
mov al, byte [ebp - 9]
cmp eax, 6
ja case.0x49a9f3.0
jmp dword [eax*4 + 0x49a9fa]
push ebp
lea edx, [ebp - 0x20]
mov eax, dword [0x5917dc]
mov eax, dword [eax]
call fcn.0044e5c0
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
mov ax, word [ebp - 2]
call fcn.00498e40
mov eax, dword [ebp - 0x1c]
call fcn.0049a850
pop ecx
jmp case.0x49a9f3.0
push ebp
lea ecx, [ebp - 0x24]
xor edx, edx
mov ax, word [ebp - 2]
call fcn.00498e40
mov eax, dword [ebp - 0x24]
call fcn.0049a850
pop ecx
jmp case.0x49a9f3.0
push ebp
lea edx, [ebp - 0x28]
mov ax, word [ebp - 2]
call fcn.00499030
mov eax, dword [ebp - 0x28]
call fcn.0049a850
pop ecx
jmp case.0x49a9f3.0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x24]
test byte [eax + 0x2c], 1
jne case.0x49a9f3.0
push ebp
lea edx, [ebp - 0x30]
mov eax, dword [0x591048]
mov eax, dword [eax]
call fcn.0044e5c0
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
mov ax, word [ebp - 2]
call fcn.00498e40
mov eax, dword [ebp - 0x2c]
call fcn.0049a850
pop ecx
jmp case.0x49a9f3.0
push ebp
lea edx, [ebp - 0x38]
mov eax, dword [0x5913f4]
mov eax, dword [eax]
call fcn.0044e5c0
mov edx, dword [ebp - 0x38]
lea ecx, [ebp - 0x34]
mov ax, word [ebp - 2]
call fcn.00498e40
mov eax, dword [ebp - 0x34]
call fcn.0049a850
pop ecx
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x1a
jne 0x49a99a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49ab05
lea eax, [ebp - 0x38]
mov edx, 0xa
call fcn.00406658
ret
Function at 0x4a1cb0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
jne 0x4a1cda
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004072c8
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
call sub.advapi32.dll_RegDeleteKeyW
pop ecx
pop ebp
ret
mov eax, dword [ebp - 4]
add eax, 4
push eax
push 2
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004072c8
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4a1d47
xor eax, eax
push ebp
push 0x4a1d40
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.004072c8
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegDeleteValueW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1d47
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
pop ecx
pop ebp
ret
Function at 0x4a2790
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
xor ebx, ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a2868
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp - 5], 0
je 0x4a27c6
or dword [ebp - 4], 0x8000
call fcn.004a2350
test al, al
je 0x4a27f5
test byte [ebp - 3], 0x80
je 0x4a27f5
lea eax, [ebp - 0x218]
push eax
push 0
push 0
mov eax, dword [ebp - 4]
and eax, 0xffff7fff
push eax
push 0
call sub.shell32.dll_SHGetFolderPathW
mov dword [ebp - 0x10], eax
jmp 0x4a27fc
mov dword [ebp - 0x10], 0x80004005
cmp dword [ebp - 0x10], 0
je 0x4a281b
lea eax, [ebp - 0x218]
push eax
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0
call sub.shell32.dll_SHGetFolderPathW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4a2847
lea eax, [ebp - 0x21c]
lea edx, [ebp - 0x218]
mov ecx, 0x104
call fcn.00407374
mov eax, dword [ebp - 0x21c]
mov edx, dword [ebp - 0xc]
call fcn.00428200
jmp 0x4a284f
mov eax, dword [ebp - 0xc]
call fcn.004065f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a286f
lea eax, [ebp - 0x21c]
call fcn.004065f8
ret