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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x10c
cmp byte [eax], 0
push esi
mov esi, ecx
je 0xcc9fad
mov byte [esi + 0x14], 1
mov cl, 1
jmp 0xcc9fb0
mov cl, byte [esi + 0x14]
cmp byte [eax + 2], 0
je 0xcc9fba
mov byte [esi + 0x16], 1
cmp byte [eax + 3], 0
je 0xcc9fc4
mov byte [esi + 0x17], 1
xor eax, eax
test cl, cl
je 0xcc9fd2
cmp byte [esi + 0x1a], al
je 0xcc9fd2
mov byte [esi + 0x14], al
cmp byte [esi + 0x15], al
je 0xcc9fdf
cmp byte [esi + 0x1b], al
je 0xcc9fdf
mov byte [esi + 0x15], al
cmp byte [esi + 0x16], al
je 0xcc9fec
cmp byte [esi + 0x1c], al
je 0xcc9fec
mov byte [esi + 0x16], al
cmp byte [esi + 0x17], al
je 0xcc9ff9
cmp byte [esi + 0x1d], al
je 0xcc9ff9
mov byte [esi + 0x17], al
cmp byte [esi + 0x18], al
je 0xcca006
cmp byte [esi + 0x1e], al
je 0xcca006
mov byte [esi + 0x18], al
cmp dword [esi + 0x20], eax
je 0xcca088
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0xcca1c0
mov cl, byte [esi + 0x1a]
mov dl, byte [esi + 0x1b]
test cl, cl
sete al
dec al
and byte [ebp - 0x6c], al
test dl, dl
sete al
dec al
and byte [ebp - 0x6b], al
test cl, cl
jne 0xcca04b
test dl, dl
sete al
dec al
and byte [ebp - 0xfc], al
cmp byte [esi + 0x1c], 0
sete al
dec al
and byte [ebp - 0xfb], al
cmp byte [esi + 0x1d], 0
sete al
dec al
and byte [ebp - 0xfa], al
test cl, cl
sete al
dec al
and byte [ebp - 0xb1], al
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0xcca1c0
push ebx
push edi
lea ecx, [ebp - 0xc]
call fcn.00cc9c06
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
call ebx
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0xcca0c0
push 0xa0
call edi
mov ecx, 0x8000
test cx, ax
je 0xcca0de
cmp byte [esi + 0x1a], 0
jne 0xcca0de
push 0xa0
lea ecx, [ebp - 0xc]
call fcn.00ccb2df
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.00ccab9c
push 0xa1
call ebx
mov ecx, 0x8000
test cx, ax
jne 0xcca100
push 0xa1
call edi
mov ecx, 0x8000
test cx, ax
je 0xcca11e
cmp byte [esi + 0x1b], 0
jne 0xcca11e
push 0xa1
lea ecx, [ebp - 0xc]
call fcn.00ccb2df
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.00ccab9c
push 0x11
call ebx
mov ecx, 0x8000
test cx, ax
jne 0xcca13a
push 0x11
call edi
mov ecx, 0x8000
test cx, ax
je 0xcca155
cmp byte [esi + 0x1c], 0
jne 0xcca155
push 0x11
lea ecx, [ebp - 0xc]
call fcn.00ccb2df
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.00ccab9c
push 0x12
call ebx
mov ecx, 0x8000
test cx, ax
jne 0xcca171
push 0x12
call edi
mov ecx, 0x8000
test cx, ax
je 0xcca18c
cmp byte [esi + 0x1d], 0
jne 0xcca18c
push 0x12
lea ecx, [ebp - 0xc]
call fcn.00ccb2df
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.00ccab9c
push 0x5b
call ebx
mov ebx, 0x8000
test bx, ax
jne 0xcca1a3
push 0x5b
call edi
test bx, ax
je 0xcca1be
cmp byte [esi + 0x1e], 0
jne 0xcca1be
push 0x5b
lea ecx, [ebp - 0xc]
call fcn.00ccb2df
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.00ccab9c
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0xcca9ed
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 bx, 1
cmp byte [ebp + 0xc], bl
je 0xccaa4f
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.00ccb226
mov ecx, dword [ebp - 4]
call fcn.00cc9c60
push ecx
push 2
push 0
push edi
call esi
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.00ccb226
mov ecx, dword [ebp - 4]
call fcn.00cc9c49
pop esi
pop edi
mov al, bl
pop ebx
leave
ret 8

Function at 0xccaa57
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 0xccab3e
cmp bl, 0x14
je 0xccab3e
cmp bl, 0x90
je 0xccab3e
cmp bl, 0x91
je 0xccab3e
cmp bl, 0xff
je 0xccab2b
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0xccaace
movzx eax, bl
or byte [ebp + eax - 0x120], 0x80
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
movzx eax, bh
mov ecx, edi
shl eax, 0x10
mov edx, eax
mov dword [ebp + 8], eax
or edx, 1
call fcn.00cc9e8d
cmp al, 1
jne 0xccaaf0
mov edx, dword [ebp + 8]
or edx, 0x1000001
cmp byte [esi + 0x17], 0
jne 0xccab01
cmp byte [esi + 0x1d], 0
jne 0xccab01
cmp bl, 0x12
jne 0xccab1f
cmp byte [esi + 0x16], 0
jne 0xccab1f
cmp byte [esi + 0x1c], 0
jne 0xccab1f
or edx, 0x20000000
movzx eax, bl
push edx
push eax
push 0x104
jmp 0xccab33
push edx
movzx eax, bl
push eax
push 0x100
jmp 0xccab33
push 1
push eax
push 0x102
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0xccab8e
cmp bl, 0xff
je 0xccab64
mov ecx, edi
call fcn.00cc9e8d
push ecx
mov ecx, esi
cmp al, 1
jne 0xccab55
push 1
jmp 0xccab57
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.00ccb226
jmp 0xccab8e
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.00cc9c60
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0xccab9c
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 0xccac7c
cmp bl, 0x14
je 0xccac7c
cmp bl, 0x90
je 0xccac7c
cmp bl, 0x91
je 0xccac7c
cmp bl, 0xff
je 0xccaccc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0xccac13
movzx eax, bl
xor byte [ebp + eax - 0x120], 0x80
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
movzx eax, bh
mov ecx, edi
shl eax, 0x10
mov edx, eax
mov dword [ebp + 8], eax
or edx, 0xc0000001
call fcn.00cc9e8d
cmp al, 1
jne 0xccac38
mov edx, dword [ebp + 8]
or edx, 0xc1000001
cmp byte [esi + 0x17], 0
jne 0xccac49
cmp byte [esi + 0x1d], 0
jne 0xccac49
cmp bl, 0x12
jne 0xccac67
cmp byte [esi + 0x16], 0
jne 0xccac67
cmp byte [esi + 0x1c], 0
jne 0xccac67
or edx, 0x20000000
movzx eax, bl
push edx
push eax
push 0x105
jmp 0xccac71
push edx
movzx eax, bl
push eax
push 0x101
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0xccaccc
cmp bl, 0xff
je 0xccaca2
mov ecx, edi
call fcn.00cc9e8d
push ecx
mov ecx, esi
cmp al, 1
jne 0xccac93
push 3
jmp 0xccac95
push 2
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.00ccb226
jmp 0xccaccc
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.00cc9c49
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0xccacda
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 0xccad0b
cmp byte [esi + 1], 0
jne 0xccad0b
cmp byte [esi + 2], 0
jne 0xccad0b
cmp byte [esi + 3], 0
jne 0xccad0b
cmp byte [esi + 4], 0
je 0xccaeb4
cmp dword [edi + 0x20], 0
push ebx
je 0xccae3c
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0xccae3c
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0xccad95
cmp byte [esi], 0
mov ecx, 0x80
mov al, byte [ebp - 0xf0]
je 0xccad53
or al, cl
or byte [ebp - 0x60], cl
mov byte [ebp - 0xf0], al
cmp byte [esi + 1], 0
je 0xccad64
or al, cl
or byte [ebp - 0x5f], cl
mov byte [ebp - 0xf0], al
cmp byte [esi + 2], 0
je 0xccad70
or byte [ebp - 0xef], cl
cmp byte [esi + 3], 0
je 0xccad7c
or byte [ebp - 0xee], cl
cmp byte [esi + 4], 0
je 0xccad88
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 0xccada6
cmp byte [esi + 1], 0
je 0xccadbd
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 0xccadda
movzx eax, byte [edi + 0x24]
shl eax, 0x10
or eax, 1
push eax
push 0x11
push 0x100
push dword [edi + 0x20]
call ebx
cmp byte [esi + 3], 0
je 0xccae19
cmp byte [esi + 2], 0
jne 0xccae02
cmp byte [edi + 0x1c], 0
jne 0xccae02
movzx eax, byte [edi + 0x25]
shl eax, 0x10
or eax, 0x20000001
push eax
push 0x12
push 0x104
jmp 0xccae14
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 0xccaeac
movzx eax, byte [edi + 0x29]
shl eax, 0x10
or eax, 1
push eax
push 0x5b
push 0x100
push dword [edi + 0x20]
call ebx
jmp 0xccaeac
xor ebx, ebx
cmp byte [esi], bl
je 0xccae55
movzx eax, byte [edi + 0x27]
push ecx
push ebx
push eax
push 0xa0
mov ecx, edi
call fcn.00ccb226
cmp byte [esi + 1], bl
je 0xccae6d
movzx eax, byte [edi + 0x28]
push ecx
push ebx
push eax
push 0xa1
mov ecx, edi
call fcn.00ccb226
cmp byte [esi + 2], bl
je 0xccae82
movzx eax, byte [edi + 0x24]
push ecx
push ebx
push eax
push 0x11
mov ecx, edi
call fcn.00ccb226
cmp byte [esi + 3], bl
je 0xccae97
movzx eax, byte [edi + 0x25]
push ecx
push ebx
push eax
push 0x12
mov ecx, edi
call fcn.00ccb226
cmp byte [esi + 4], bl
je 0xccaeac
movzx eax, byte [edi + 0x29]
push ecx
push ebx
push eax
push 0x5b
mov ecx, edi
call fcn.00ccb226
mov ecx, edi
call fcn.00cc9c60
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0xccaeba
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 0xccaeeb
cmp byte [esi + 1], 0
jne 0xccaeeb
cmp byte [esi + 2], 0
jne 0xccaeeb
cmp byte [esi + 3], 0
jne 0xccaeeb
cmp byte [esi + 4], 0
je 0xccb0a2
cmp dword [edi + 0x20], 0
push ebx
je 0xccb024
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0xccb024
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0xccaf75
cmp byte [esi], 0
mov ecx, 0x80
mov al, byte [ebp - 0xf0]
je 0xccaf33
xor al, cl
xor byte [ebp - 0x60], cl
mov byte [ebp - 0xf0], al
cmp byte [esi + 1], 0
je 0xccaf44
xor al, cl
xor byte [ebp - 0x5f], cl
mov byte [ebp - 0xf0], al
cmp byte [esi + 2], 0
je 0xccaf50
xor byte [ebp - 0xef], cl
cmp byte [esi + 3], 0
je 0xccaf5c
xor byte [ebp - 0xee], cl
cmp byte [esi + 4], 0
je 0xccaf68
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 0xccaf86
cmp byte [esi + 1], 0
je 0xccaf9f
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 0xccafbe
movzx eax, byte [edi + 0x24]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x11
push 0x101
push dword [edi + 0x20]
call ebx
cmp byte [esi + 3], 0
je 0xccafff
cmp byte [esi + 2], 0
jne 0xccafe6
cmp byte [edi + 0x1c], 0
jne 0xccafe6
movzx eax, byte [edi + 0x25]
shl eax, 0x10
or eax, 0xe0000001
push eax
push 0x12
push 0x105
jmp 0xccaffa
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 0xccb09a
movzx eax, byte [edi + 0x29]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x5b
push 0x101
push dword [edi + 0x20]
call ebx
jmp 0xccb09a
cmp byte [esi], 0
push 2
pop ebx
je 0xccb03f
movzx eax, byte [edi + 0x27]
push ecx
push ebx
push eax
push 0xa0
mov ecx, edi
call fcn.00ccb226
cmp byte [esi + 1], 0
je 0xccb058
movzx eax, byte [edi + 0x28]
push ecx
push ebx
push eax
push 0xa1
mov ecx, edi
call fcn.00ccb226
cmp byte [esi + 2], 0
je 0xccb06e
movzx eax, byte [edi + 0x24]
push ecx
push ebx
push eax
push 0x11
mov ecx, edi
call fcn.00ccb226
cmp byte [esi + 3], 0
je 0xccb084
movzx eax, byte [edi + 0x25]
push ecx
push ebx
push eax
push 0x12
mov ecx, edi
call fcn.00ccb226
cmp byte [esi + 4], 0
je 0xccb09a
movzx eax, byte [edi + 0x29]
push ecx
push ebx
push eax
push 0x5b
mov ecx, edi
call fcn.00ccb226
mov ecx, edi
call fcn.00cc9c49
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0xccb0a8
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, ecx
test esi, esi
js 0xccb12c
jne 0xccb0bb
push 0
jmp 0xccb126
cmp esi, 0xf
jae 0xccb125
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0xccb125
mov dword [ebp - 4], esi
fild dword [ebp - 4]
test esi, esi
jns 0xccb0de
fadd qword [0xd281c0]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fstp qword [ebp - 0x28]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
sbb eax, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
fild qword [ebp - 8]
fstp qword [ebp - 0x20]
call fcn.00c7e398
fdivr qword [ebp - 0x20]
fcomp qword [ebp - 0x28]
fnstsw ax
test ah, 5
jnp 0xccb0e7
jmp 0xccb12c
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
call fcn.00cc9f7e
mov eax, dword [ebp + 8]
mov word [esi + 8], ax
test ax, ax
je 0xccb2d8
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
movzx eax, ax
cmp ax, 0xffff
je 0xccb2d8
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 0xccb2c1
mov byte [esi + 1], 1
test bl, 2
je 0xccb2ca
mov byte [esi + 3], 1
test bl, 4
pop ebx
je 0xccb2d4
mov byte [esi + 4], 1
mov al, 1
jmp 0xccb2da
xor al, al
pop esi
pop ebp
ret 4

Function at 0xccccff
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 8], edi
je 0xcccd19
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
call fcn.00cccc37
push edi
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], edi
pop edi
pop esi
leave
ret 8
Function at 0xcccf00
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20034
call fcn.00ca1f50
push ebx
push esi
lea eax, [ebp - 0x20034]
mov esi, edx
push eax
mov edx, 0x7fff
call fcn.00ccdde0
lea eax, [ebp - 0x10034]
mov edx, 0x7fff
push eax
mov ecx, esi
call fcn.00ccdde0
pop ecx
pop ecx
lea eax, [ebp - 0x10034]
push eax
lea eax, [ebp - 0x20034]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0xcccf8a
cmp byte [ebp + 8], al
je 0xcccfae
lea eax, [ebp - 0x10034]
push eax
lea eax, [ebp - 0x20034]
push eax
call fcn.00c85232
pop ecx
pop ecx
test eax, eax
je 0xccd06f
lea eax, [ebp - 0x10034]
push eax
lea eax, [ebp - 0x20034]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0xccd06f
lea ecx, [ebp - 0x20034]
call fcn.00cce199
test al, al
je 0xcccfae
lea ecx, [ebp - 0x10034]
call fcn.00cce199
test al, al
je 0xcccfb4
cmp byte [ebp + 8], 0
jne 0xcccfed
xor al, al
pop esi
pop ebx
leave
ret
lea eax, [ebp - 0x10034]
push eax
lea ecx, [ebp - 0x34]
call fcn.00c69cb3
lea ecx, [ebp - 0x34]
call fcn.00ccd2c1
mov bl, al
lea ecx, [ebp - 0x34]
neg bl
sbb bl, bl
call fcn.00c6988f
add bl, 1
jne 0xcccfae
lea ecx, [ebp - 0x10034]
call fcn.00cce199
test al, al
je 0xcccfae
lea eax, [ebp - 0x20034]
push 0xd268d8
push eax
call fcn.00c89038
lea eax, [ebp - 0x20034]
push eax
call fcn.00c84963
xor ecx, ecx
mov word [ebp + eax*2 - 0x20032], cx
lea eax, [ebp - 0x10034]
push eax
call fcn.00c84963
xor ecx, ecx
mov dword [ebp - 0x20], 2
add esp, 0x10
mov word [ebp + eax*2 - 0x10032], cx
lea eax, [ebp - 0x20034]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10034]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0x24], eax
mov eax, 0x614
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0xcccfae
mov al, 1
jmp 0xcccfb0
Function at 0xccd2c1
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 0xcfcb68
mov dword [esp + 0x18], eax
inc dword [eax]
call fcn.00c637a0
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0xccd38e
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 2
jne 0xccd325
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0xccd32a
jmp 0xccd392
cmp eax, 3
jne 0xccd396
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 0xcfcb68
inc dword [eax]
call fcn.00c64518
cmp eax, 0xffffffff
je 0xccd383
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x20]
call fcn.00c693b2
lea ecx, [esp + 0x18]
call fcn.00ccd2c1
test al, al
je 0xccd381
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.00c6988f
jmp 0xccd398
test al, 0x10
je 0xccd396
mov bl, 1
jmp 0xccd398
xor bl, bl
lea ecx, [esp + 8]
call fcn.00c6988f
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xccd3a9
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.00c6a961
lea ecx, [esp + 0x30]
call fcn.00c6a961
lea ecx, [esp + 0x20]
call fcn.00c6a961
lea edx, [esp + 0x10]
mov ecx, esi
call fcn.00c63aa2
mov ecx, dword [esp + 0x10]
call fcn.00cce199
test al, al
je 0xccd400
push 0xd268d8
lea ecx, [esp + 0x14]
call fcn.00c633c6
push ebx
lea eax, [esp + 0x24]
push ebx
push eax
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x1c]
call fcn.00c6525f
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 0xccd4a0
cmp al, 1
jne 0xccd4a0
test byte [esp + 0x40], 0x10
jne 0xccd47b
mov byte [esp + 0xf], al
lea ecx, [esp + 0x10]
lea eax, [esp + 0x30]
push eax
call fcn.00c6a8c7
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
call fcn.00c66350
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x14]
call fcn.00c633c6
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0xccd497
lea eax, [esp + 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov al, byte [esp + 0xe]
jne 0xccd433
mov al, bl
mov byte [esp + 0xe], al
jmp 0xccd433
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0xccd4ab
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, byte [esp + 0xf]
lea ecx, [esp + 0x20]
call fcn.00c6988f
lea ecx, [esp + 0x30]
call fcn.00c6988f
lea ecx, [esp + 0x10]
call fcn.00c6988f
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xccd4dc
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 + 0x18], edx
push 2
mov dword [esp + 0x18], 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.00ccdef7
mov ebx, eax
jmp 0xccd5d2
lea eax, [esp + 0x48]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0xccd5db
lea ecx, [esp + 0x18]
call fcn.00c6a961
lea ecx, [esp + 0x28]
call fcn.00c6a961
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x3c]
call fcn.00c69cb3
lea eax, [esp + 0x28]
xor edx, edx
push eax
lea eax, [esp + 0x1c]
push eax
push 0
lea ecx, [esp + 0x44]
call fcn.00c6525f
add esp, 0xc
lea ecx, [esp + 0x38]
call fcn.00c6988f
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
call fcn.00c66350
mov eax, dword [esp + 0x10]
push 0
push dword [eax + 4]
push dword [eax]
push dword [esp + 0x28]
push dword [esp + 0x28]
call fcn.00c7ce60
test eax, eax
mov eax, dword [esp + 0x50]
je 0xccd5b7
test ebx, ebx
je 0xccd5c0
cmp ebx, eax
jne 0xccd5c0
mov ecx, dword [esp + 0x14]
mov byte [esi], 1
mov dword [ecx], eax
lea ecx, [esp + 0x28]
call fcn.00c6988f
lea ecx, [esp + 0x18]
call fcn.00c6988f
cmp byte [esi], 0
je 0xccd529
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 0xccd5eb
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
je 0xccd663
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 0xccd663
mov eax, dword [ebp - 0x20]
mov dword [ebx], eax
mov al, 1
jmp 0xccd665
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0xccd66a
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, 0x80
push ebx
push esi
xor esi, esi
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 0xccd6dd
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
je 0xccd6dd
xor eax, eax
cmp byte [ebp - 0x14], al
setne al
jmp 0xccd6e2
mov eax, 0x80004005
pop esi
pop ebx
leave
ret

Function at 0xccdbbe
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_lstrlenW]
cmp word [esi + eax*2 - 2], 0x22
je 0xccdc06
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0xccdc09
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0xccdc06
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 8]
jmp 0xccdc09
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret