joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461341
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push edi
movzx edi, al
push edi
mov dword [ebp - 4], ecx
call dword [sym.imp.USER32.dll_GetKeyState]
mov bx, ax
and bl, 1
cmp byte [ebp + 0xc], bl
je 0x4613a2
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push ecx
push 0
push 0
push edi
call esi
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.00461b9d
mov ecx, dword [ebp - 4]
call fcn.004605c4
push ecx
push 2
push 0
push edi
call esi
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.00461b9d
mov ecx, dword [ebp - 4]
call fcn.004605ab
pop esi
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4613ac
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
cmp dword [esi + 0x20], 0
mov bl, byte [edi]
mov bh, byte [edi + 7]
movzx eax, word [edi + 8]
mov byte [ebp - 4], bl
mov byte [ebp + 8], bh
je 0x461487
cmp bl, 0x14
je 0x461487
cmp bl, 0x90
je 0x461487
cmp bl, 0x91
je 0x461487
cmp bl, 0xff
je 0x461474
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x46141f
movzx eax, bl
or byte [ebp + eax - 0x120], 0x80
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
movzx edx, bh
mov ecx, edi
shl edx, 0x10
or edx, 1
call fcn.004607f4
cmp al, 1
jne 0x461439
or edx, 0x1000000
cmp byte [esi + 0x17], 0
jne 0x46144a
cmp byte [esi + 0x1d], 0
jne 0x46144a
cmp bl, 0x12
jne 0x461468
cmp byte [esi + 0x16], 0
jne 0x461468
cmp byte [esi + 0x1c], 0
jne 0x461468
or edx, 0x20000000
movzx eax, bl
push edx
push eax
push 0x104
jmp 0x46147c
push edx
movzx eax, bl
push eax
push 0x100
jmp 0x46147c
push 1
push eax
push 0x102
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4614d7
cmp bl, 0xff
je 0x4614ad
mov ecx, edi
call fcn.004607f4
push ecx
mov ecx, esi
cmp al, 1
jne 0x46149e
push 1
jmp 0x4614a0
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.00461b9d
jmp 0x4614d7
mov word [ebp - 0x1a], ax
xor edx, edx
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], 4
inc edx
xor ecx, ecx
and dword [ebp - 0x14], ecx
and dword [ebp - 0x10], ecx
push eax
push edx
mov dword [ebp - 0x20], edx
mov word [ebp - 0x1c], cx
call dword [sym.imp.USER32.dll_SendInput]
mov ecx, esi
call fcn.004605c4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4614e7
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
cmp dword [esi + 0x20], 0
mov bl, byte [edi]
mov bh, byte [edi + 7]
movzx eax, word [edi + 8]
mov byte [ebp - 4], bl
mov byte [ebp + 8], bh
je 0x4615bf
cmp bl, 0x14
je 0x4615bf
cmp bl, 0x90
je 0x4615bf
cmp bl, 0x91
je 0x4615bf
cmp bl, 0xff
je 0x46160f
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x46155e
movzx eax, bl
xor byte [ebp + eax - 0x120], 0x80
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
movzx edx, bh
mov ecx, edi
shl edx, 0x10
or edx, 0xc0000001
call fcn.004607f4
cmp al, 1
jne 0x46157b
or edx, 0x1000000
cmp byte [esi + 0x17], 0
jne 0x46158c
cmp byte [esi + 0x1d], 0
jne 0x46158c
cmp bl, 0x12
jne 0x4615aa
cmp byte [esi + 0x16], 0
jne 0x4615aa
cmp byte [esi + 0x1c], 0
jne 0x4615aa
or edx, 0x20000000
movzx eax, bl
push edx
push eax
push 0x105
jmp 0x4615b4
push edx
movzx eax, bl
push eax
push 0x101
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x46160f
cmp bl, 0xff
je 0x4615e5
mov ecx, edi
call fcn.004607f4
push ecx
mov ecx, esi
cmp al, 1
jne 0x4615d6
push 3
jmp 0x4615d8
push 2
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.00461b9d
jmp 0x46160f
mov word [ebp - 0x1a], ax
xor edx, edx
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], 6
inc edx
xor ecx, ecx
and dword [ebp - 0x14], ecx
and dword [ebp - 0x10], ecx
push eax
push edx
mov dword [ebp - 0x20], edx
mov word [ebp - 0x1c], cx
call dword [sym.imp.USER32.dll_SendInput]
mov ecx, esi
call fcn.004605ab
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x46163c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp byte [esi], 0
jne 0x46166d
cmp byte [esi + 1], 0
jne 0x46166d
cmp byte [esi + 2], 0
jne 0x46166d
cmp byte [esi + 3], 0
jne 0x46166d
cmp byte [esi + 4], 0
je 0x46181b
cmp dword [edi + 0x20], 0
push ebx
je 0x4617a3
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x4617a3
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x4616f7
cmp byte [esi], 0
mov ecx, 0x80
mov al, byte [ebp - 0xf0]
je 0x4616b5
or al, cl
or byte [ebp - 0x60], cl
mov byte [ebp - 0xf0], al
cmp byte [esi + 1], 0
je 0x4616c6
or al, cl
or byte [ebp - 0x5f], cl
mov byte [ebp - 0xf0], al
cmp byte [esi + 2], 0
je 0x4616d2
or byte [ebp - 0xef], cl
cmp byte [esi + 3], 0
je 0x4616de
or byte [ebp - 0xee], cl
cmp byte [esi + 4], 0
je 0x4616ea
or byte [ebp - 0xa5], cl
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
cmp byte [esi], 0
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
jne 0x461708
cmp byte [esi + 1], 0
je 0x46171f
movzx eax, byte [edi + 0x26]
shl eax, 0x10
or eax, 1
push eax
push 0x10
push 0x100
push dword [edi + 0x20]
call ebx
cmp byte [esi + 2], 0
je 0x46173c
movzx eax, byte [edi + 0x24]
shl eax, 0x10
or eax, 1
push eax
push 0x11
push 0x100
push dword [edi + 0x20]
call ebx
mov al, byte [esi + 3]
test al, al
je 0x461780
cmp byte [esi + 2], 0
jne 0x461765
cmp byte [edi + 0x1c], 0
jne 0x461765
movzx eax, byte [edi + 0x25]
shl eax, 0x10
or eax, 0x20000001
push eax
push 0x12
push 0x104
jmp 0x46177b
test al, al
je 0x461780
movzx eax, byte [edi + 0x25]
shl eax, 0x10
or eax, 1
push eax
push 0x12
push 0x100
push dword [edi + 0x20]
call ebx
cmp byte [esi + 4], 0
je 0x461813
movzx eax, byte [edi + 0x29]
shl eax, 0x10
or eax, 1
push eax
push 0x5b
push 0x100
push dword [edi + 0x20]
call ebx
jmp 0x461813
xor ebx, ebx
cmp byte [esi], bl
je 0x4617bc
movzx eax, byte [edi + 0x27]
push ecx
push ebx
push eax
push 0xa0
mov ecx, edi
call fcn.00461b9d
cmp byte [esi + 1], bl
je 0x4617d4
movzx eax, byte [edi + 0x28]
push ecx
push ebx
push eax
push 0xa1
mov ecx, edi
call fcn.00461b9d
cmp byte [esi + 2], bl
je 0x4617e9
movzx eax, byte [edi + 0x24]
push ecx
push ebx
push eax
push 0x11
mov ecx, edi
call fcn.00461b9d
cmp byte [esi + 3], bl
je 0x4617fe
movzx eax, byte [edi + 0x25]
push ecx
push ebx
push eax
push 0x12
mov ecx, edi
call fcn.00461b9d
cmp byte [esi + 4], bl
je 0x461813
movzx eax, byte [edi + 0x29]
push ecx
push ebx
push eax
push 0x5b
mov ecx, edi
call fcn.00461b9d
mov ecx, edi
call fcn.004605c4
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x461823
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp byte [esi], 0
jne 0x461854
cmp byte [esi + 1], 0
jne 0x461854
cmp byte [esi + 2], 0
jne 0x461854
cmp byte [esi + 3], 0
jne 0x461854
cmp byte [esi + 4], 0
je 0x461a10
cmp dword [edi + 0x20], 0
push ebx
je 0x461992
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x461992
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x4618de
cmp byte [esi], 0
mov ecx, 0x80
mov al, byte [ebp - 0xf0]
je 0x46189c
xor al, cl
xor byte [ebp - 0x60], cl
mov byte [ebp - 0xf0], al
cmp byte [esi + 1], 0
je 0x4618ad
xor al, cl
xor byte [ebp - 0x5f], cl
mov byte [ebp - 0xf0], al
cmp byte [esi + 2], 0
je 0x4618b9
xor byte [ebp - 0xef], cl
cmp byte [esi + 3], 0
je 0x4618c5
xor byte [ebp - 0xee], cl
cmp byte [esi + 4], 0
je 0x4618d1
xor byte [ebp - 0xa5], cl
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
cmp byte [esi], 0
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
jne 0x4618ef
cmp byte [esi + 1], 0
je 0x461908
movzx eax, byte [edi + 0x26]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x10
push 0x101
push dword [edi + 0x20]
call ebx
cmp byte [esi + 2], 0
je 0x461927
movzx eax, byte [edi + 0x24]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x11
push 0x101
push dword [edi + 0x20]
call ebx
mov al, byte [esi + 3]
test al, al
je 0x46196d
cmp byte [esi + 2], 0
jne 0x461950
cmp byte [edi + 0x1c], 0
jne 0x461950
movzx eax, byte [edi + 0x25]
shl eax, 0x10
or eax, 0xe0000001
push eax
push 0x12
push 0x105
jmp 0x461968
test al, al
je 0x46196d
movzx eax, byte [edi + 0x25]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x12
push 0x101
push dword [edi + 0x20]
call ebx
cmp byte [esi + 4], 0
je 0x461a08
movzx eax, byte [edi + 0x29]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x5b
push 0x101
push dword [edi + 0x20]
call ebx
jmp 0x461a08
cmp byte [esi], 0
push 2
pop ebx
je 0x4619ad
movzx eax, byte [edi + 0x27]
push ecx
push ebx
push eax
push 0xa0
mov ecx, edi
call fcn.00461b9d
cmp byte [esi + 1], 0
je 0x4619c6
movzx eax, byte [edi + 0x28]
push ecx
push ebx
push eax
push 0xa1
mov ecx, edi
call fcn.00461b9d
cmp byte [esi + 2], 0
je 0x4619dc
movzx eax, byte [edi + 0x24]
push ecx
push ebx
push eax
push 0x11
mov ecx, edi
call fcn.00461b9d
cmp byte [esi + 3], 0
je 0x4619f2
movzx eax, byte [edi + 0x25]
push ecx
push ebx
push eax
push 0x12
mov ecx, edi
call fcn.00461b9d
cmp byte [esi + 4], 0
je 0x461a08
movzx eax, byte [edi + 0x29]
push ecx
push ebx
push eax
push 0x5b
mov ecx, edi
call fcn.00461b9d
mov ecx, edi
call fcn.004605ab
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x461a18
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, dword [ebp + 8]
test esi, esi
js 0x461a9d
jne 0x461a2c
push 0
jmp 0x461a97
cmp esi, 0xf
jae 0x461a96
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x461a96
mov dword [ebp + 8], esi
fild dword [ebp + 8]
test esi, esi
jns 0x461a4f
fadd qword [0x4b9e28]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fstp qword [ebp - 0x28]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
sbb eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
fild qword [ebp - 0x18]
fstp qword [ebp - 0x20]
call fcn.00420fa4
fdivr qword [ebp - 0x20]
fcomp qword [ebp - 0x28]
fnstsw ax
test ah, 5
jnp 0x461a58
jmp 0x461a9d
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x461bf7
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
xor eax, eax
mov dword [esi + 4], eax
mov byte [esi + 0xa], al
mov eax, dword [ebp + 8]
mov dword [esi], 0xff
mov word [esi + 8], ax
test ax, ax
jne 0x461c1b
xor al, al
jmp 0x461c60
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
movzx eax, ax
cmp ax, 0xffff
je 0x461c17
push ebx
mov ebx, eax
mov byte [esi], al
push 0
movzx eax, al
push eax
sar ebx, 8
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov byte [esi + 7], al
test bl, 1
je 0x461c4b
mov byte [esi + 1], 1
test bl, 2
je 0x461c54
mov byte [esi + 3], 1
test bl, 4
pop ebx
je 0x461c5e
mov byte [esi + 4], 1
mov al, 1
pop esi
pop ebp
ret 4

Function at 0x46377c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
call fcn.0046367b
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
add dword [esi + 0x10], eax
adc dword [esi + 0x14], 0
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x463993
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x20030
call fcn.00432370
push ebx
push esi
lea eax, [esp + 0x10038]
mov esi, edx
push eax
mov edx, 0x7fff
call fcn.0046498d
lea eax, [esp + 0x3c]
mov edx, 0x7fff
push eax
mov ecx, esi
call fcn.0046498d
pop ecx
pop ecx
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x1003c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x463a21
cmp byte [ebp + 8], al
je 0x463a1a
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x1003c]
push eax
call fcn.00423f7c
pop ecx
pop ecx
test eax, eax
je 0x463a13
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x1003c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov al, 1
jmp 0x463acd
xor al, al
jmp 0x463acd
lea ecx, [esp + 0x10038]
call fcn.00464d50
test al, al
je 0x463a1a
lea ecx, [esp + 0x38]
call fcn.00464d50
test al, al
je 0x463ad3
cmp byte [ebp + 8], 0
je 0x463a1a
lea eax, [esp + 0x10038]
push str..
push eax
call fcn.004237bd
lea eax, [esp + 0x10040]
push eax
call fcn.0042362c
xor ecx, ecx
mov word [esp + eax*2 + 0x10046], cx
lea eax, [esp + 0x44]
push eax
call fcn.0042362c
xor ecx, ecx
mov dword [esp + 0x1c], 2
add esp, 0x10
mov word [esp + eax*2 + 0x3a], cx
lea eax, [esp + 0x10038]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x1a], eax
mov dword [esp + 8], eax
mov eax, 0x614
mov word [esp + 0x18], ax
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x2c]
call fcn.00407da1
lea ecx, [esp + 0x28]
call fcn.00463d4c
mov bl, al
lea ecx, [esp + 0x28]
neg bl
sbb bl, bl
call fcn.004058c3
inc bl
jne 0x463a1a
lea ecx, [esp + 0x38]
call fcn.00464d50
test al, al
jmp 0x463a46
Function at 0x463b11
Capabilities:
Delete file
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [ebp - 0x34]
mov byte [ebp - 1], bl
mov edi, edx
call fcn.00407627
lea ecx, [ebp - 0x44]
call fcn.00407627
lea ecx, [ebp - 0x24]
call fcn.00407627
lea ecx, [ebp - 0x14]
call fcn.00407627
lea edx, [ebp - 0x34]
mov ecx, esi
call fcn.00404712
lea edx, [ebp - 0x44]
mov ecx, edi
call fcn.00404712
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x34]
call fcn.00464ce6
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 3], al
call fcn.00464d50
mov esi, str..
test al, al
je 0x463b82
push esi
lea ecx, [ebp - 0x34]
call fcn.00407c6b
mov ecx, dword [ebp - 0x44]
call fcn.00464d50
test al, al
je 0x463b97
push esi
lea ecx, [ebp - 0x44]
call fcn.00407c6b
lea ecx, [ebp - 0x54]
call fcn.00407627
lea ecx, [ebp - 0x64]
call fcn.00407627
push ebx
lea eax, [ebp - 0x64]
push ebx
push eax
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x34]
call fcn.0040455d
add esp, 0xc
lea eax, [ebp - 0x2c8]
push eax
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov al, 1
mov byte [ebp - 2], al
cmp esi, 0xffffffff
je 0x463ce3
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp al, 1
jne 0x463ce3
test byte [ebp - 0x2c8], 0x10
jne 0x463cb7
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x74]
call fcn.00407da1
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x74]
call fcn.00464390
pop ecx
lea ecx, [ebp - 0x74]
call fcn.004058c3
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x14]
call fcn.00408007
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x14]
call fcn.00407aee
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00407c6b
lea ecx, [ebp - 0x24]
call fcn.00463f59
test al, al
je 0x463c6f
cmp byte [ebp + 8], bl
je 0x463cda
push ebx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
call fcn.004078c8
push dword [ebp - 0x24]
test eax, eax
je 0x463c7d
call edi
cmp byte [ebp + 0xc], 1
jne 0x463ca1
cmp byte [ebp - 3], bl
jne 0x463c88
push dword [ebp - 0x24]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x463caf
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x14]
call fcn.00463d26
movzx eax, al
test eax, eax
je 0x463cda
push dword [ebp - 0x14]
call edi
jmp 0x463caf
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x14]
call fcn.00463d26
movzx eax, al
test eax, eax
je 0x463cda
mov byte [ebp - 1], 1
lea eax, [ebp - 0x2c8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov al, byte [ebp - 2]
jne 0x463be1
mov al, bl
mov byte [ebp - 2], al
jmp 0x463be1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x463ced
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, byte [ebp - 1]
lea ecx, [ebp - 0x64]
call fcn.004058c3
lea ecx, [ebp - 0x54]
call fcn.004058c3
lea ecx, [ebp - 0x14]
call fcn.004058c3
lea ecx, [ebp - 0x24]
call fcn.004058c3
lea ecx, [ebp - 0x44]
call fcn.004058c3
lea ecx, [ebp - 0x34]
call fcn.004058c3
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x463d4c
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [ecx]
mov dword [esp], eax
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
mov eax, dword [ecx + 8]
push ebx
mov dword [esp + 0xc], eax
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 4]
push esi
push 0x48fac0
mov dword [esp + 0x18], eax
inc dword [eax]
call fcn.004076e6
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x463e19
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 2
jne 0x463db0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x463db5
jmp 0x463e1d
cmp eax, 3
jne 0x463e21
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], eax
push 0x48fac0
inc dword [eax]
call fcn.00407c8f
cmp eax, 0xffffffff
je 0x463e0e
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x20]
call fcn.00407cec
lea ecx, [esp + 0x18]
call fcn.00463d4c
test al, al
je 0x463e0c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
mov bl, al
lea ecx, [esp + 0x18]
call fcn.004058c3
jmp 0x463e23
test al, 0x10
je 0x463e21
mov bl, 1
jmp 0x463e23
xor bl, bl
lea ecx, [esp + 8]
call fcn.004058c3
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x463e34
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x288
push ebx
push esi
mov esi, ecx
xor ebx, ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0xf], bl
call fcn.00407627
lea ecx, [esp + 0x20]
call fcn.00407627
lea ecx, [esp + 0x30]
call fcn.00407627
lea edx, [esp + 0x10]
mov ecx, esi
call fcn.00404712
mov ecx, dword [esp + 0x10]
call fcn.00464d50
test al, al
je 0x463e8b
push str..
lea ecx, [esp + 0x14]
call fcn.00407c6b
push ebx
lea eax, [esp + 0x34]
push ebx
push eax
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x1c]
call fcn.0040455d
add esp, 0xc
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov al, 1
mov byte [esp + 0xe], al
cmp esi, 0xffffffff
je 0x463f2b
cmp al, 1
jne 0x463f2b
test byte [esp + 0x40], 0x10
jne 0x463f06
mov byte [esp + 0xf], al
lea ecx, [esp + 0x10]
lea eax, [esp + 0x20]
push eax
call fcn.00408007
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
call fcn.00407aee
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x14]
call fcn.00407c6b
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x463f22
lea eax, [esp + 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov al, byte [esp + 0xe]
jne 0x463ebe
mov al, bl
mov byte [esp + 0xe], al
jmp 0x463ebe
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x463f36
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, byte [esp + 0xf]
lea ecx, [esp + 0x30]
call fcn.004058c3
lea ecx, [esp + 0x20]
call fcn.004058c3
lea ecx, [esp + 0x10]
call fcn.004058c3
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x463f77
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
push ebx
push esi
push edi
push 0
mov ebx, ecx
mov dword [esp + 0x14], edx
push 2
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x50], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
lea eax, [esp + 0x48]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov esi, dword [ebp + 8]
mov ecx, dword [ebx]
mov byte [esi], 0
call fcn.00464aac
mov ebx, eax
jmp 0x46406a
lea eax, [esp + 0x48]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x464073
lea ecx, [esp + 0x18]
call fcn.00407627
lea ecx, [esp + 0x28]
call fcn.00407627
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x3c]
call fcn.00407da1
lea eax, [esp + 0x28]
xor edx, edx
push eax
lea eax, [esp + 0x1c]
push eax
push 0
lea ecx, [esp + 0x44]
call fcn.0040455d
add esp, 0xc
lea ecx, [esp + 0x38]
call fcn.004058c3
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
call fcn.00407aee
push 0
push dword [esp + 0x18]
lea ecx, [esp + 0x20]
call fcn.004078c8
test eax, eax
jne 0x464043
mov eax, dword [esp + 0x50]
jmp 0x46404f
test ebx, ebx
je 0x464058
mov eax, dword [esp + 0x50]
cmp ebx, eax
jne 0x464058
mov ecx, dword [esp + 0x10]
mov byte [esi], 1
mov dword [ecx], eax
lea ecx, [esp + 0x28]
call fcn.004058c3
lea ecx, [esp + 0x18]
call fcn.004058c3
cmp byte [esi], 0
je 0x463fc4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x464083
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
xor esi, esi
mov eax, 0x80
push esi
push eax
push 3
push esi
push 3
mov ebx, edx
push eax
push ecx
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, eax
mov dword [ebp - 8], edx
cmp edx, 0xffffffff
jne 0x4640b4
xor al, al
jmp 0x4640fd
push 0xa
pop ecx
xor eax, eax
mov dword [ebp - 0x14], esi
push esi
lea edi, [ebp - 0x3c]
mov dword [ebp - 0x10], esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
mov dword [ebp - 0xc], esi
push eax
push 0x28
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], esi
push eax
push 0xc
lea eax, [ebp - 0x14]
push eax
push 0x2d1400
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4640b0
mov eax, dword [ebp - 0x20]
mov dword [ebx], eax
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x464104
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4c6428]
sub esp, 0x1c
cmp byte [eax + 0x25], 0
jne 0x46411c
mov eax, 0x80004005
jmp 0x464190
push ebx
push esi
xor esi, esi
mov eax, 0x80
push esi
push eax
push 3
push esi
push 3
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x46417f
push edi
xor eax, eax
mov dword [ebp - 0x10], 7
lea edi, [ebp - 0x1c]
mov dword [ebp - 0xc], esi
stosd dword es:[edi], eax
push esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push 0xc
lea eax, [ebp - 0x1c]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
test esi, esi
jne 0x464186
mov eax, 0x80004005
jmp 0x46418e
xor eax, eax
cmp byte [ebp - 0x14], al
setne al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4647b4
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x4647a9
or eax, eax
jmp 0x4647b4
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 8]
pop esi
mov esp, ebp
pop ebp
ret