joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46a998
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 0x46a9fa
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.0046b1d1
mov ecx, dword [ebp - 4]
call fcn.00469c0b
push ecx
push 2
push 0
push edi
call esi
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.0046b1d1
mov ecx, dword [ebp - 4]
call fcn.00469bf4
pop esi
pop edi
mov al, bl
pop ebx
leave
ret 8

Function at 0x46aa02
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 0x46aae9
cmp bl, 0x14
je 0x46aae9
cmp bl, 0x90
je 0x46aae9
cmp bl, 0x91
je 0x46aae9
cmp bl, 0xff
je 0x46aad6
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x46aa79
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.00469e38
cmp al, 1
jne 0x46aa9b
mov edx, dword [ebp + 8]
or edx, 0x1000001
cmp byte [esi + 0x17], 0
jne 0x46aaac
cmp byte [esi + 0x1d], 0
jne 0x46aaac
cmp bl, 0x12
jne 0x46aaca
cmp byte [esi + 0x16], 0
jne 0x46aaca
cmp byte [esi + 0x1c], 0
jne 0x46aaca
or edx, 0x20000000
movzx eax, bl
push edx
push eax
push 0x104
jmp 0x46aade
push edx
movzx eax, bl
push eax
push 0x100
jmp 0x46aade
push 1
push eax
push 0x102
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x46ab39
cmp bl, 0xff
je 0x46ab0f
mov ecx, edi
call fcn.00469e38
push ecx
mov ecx, esi
cmp al, 1
jne 0x46ab00
push 1
jmp 0x46ab02
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.0046b1d1
jmp 0x46ab39
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.00469c0b
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x46ab47
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 0x46ac27
cmp bl, 0x14
je 0x46ac27
cmp bl, 0x90
je 0x46ac27
cmp bl, 0x91
je 0x46ac27
cmp bl, 0xff
je 0x46ac77
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x46abbe
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.00469e38
cmp al, 1
jne 0x46abe3
mov edx, dword [ebp + 8]
or edx, 0xc1000001
cmp byte [esi + 0x17], 0
jne 0x46abf4
cmp byte [esi + 0x1d], 0
jne 0x46abf4
cmp bl, 0x12
jne 0x46ac12
cmp byte [esi + 0x16], 0
jne 0x46ac12
cmp byte [esi + 0x1c], 0
jne 0x46ac12
or edx, 0x20000000
movzx eax, bl
push edx
push eax
push 0x105
jmp 0x46ac1c
push edx
movzx eax, bl
push eax
push 0x101
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x46ac77
cmp bl, 0xff
je 0x46ac4d
mov ecx, edi
call fcn.00469e38
push ecx
mov ecx, esi
cmp al, 1
jne 0x46ac3e
push 3
jmp 0x46ac40
push 2
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.0046b1d1
jmp 0x46ac77
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.00469bf4
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x46ac85
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 0x46acb6
cmp byte [esi + 1], 0
jne 0x46acb6
cmp byte [esi + 2], 0
jne 0x46acb6
cmp byte [esi + 3], 0
jne 0x46acb6
cmp byte [esi + 4], 0
je 0x46ae5f
cmp dword [edi + 0x20], 0
push ebx
je 0x46ade7
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x46ade7
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x46ad40
cmp byte [esi], 0
mov ecx, 0x80
mov al, byte [ebp - 0xf0]
je 0x46acfe
or al, cl
or byte [ebp - 0x60], cl
mov byte [ebp - 0xf0], al
cmp byte [esi + 1], 0
je 0x46ad0f
or al, cl
or byte [ebp - 0x5f], cl
mov byte [ebp - 0xf0], al
cmp byte [esi + 2], 0
je 0x46ad1b
or byte [ebp - 0xef], cl
cmp byte [esi + 3], 0
je 0x46ad27
or byte [ebp - 0xee], cl
cmp byte [esi + 4], 0
je 0x46ad33
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 0x46ad51
cmp byte [esi + 1], 0
je 0x46ad68
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 0x46ad85
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 0x46adc4
cmp byte [esi + 2], 0
jne 0x46adad
cmp byte [edi + 0x1c], 0
jne 0x46adad
movzx eax, byte [edi + 0x25]
shl eax, 0x10
or eax, 0x20000001
push eax
push 0x12
push 0x104
jmp 0x46adbf
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 0x46ae57
movzx eax, byte [edi + 0x29]
shl eax, 0x10
or eax, 1
push eax
push 0x5b
push 0x100
push dword [edi + 0x20]
call ebx
jmp 0x46ae57
xor ebx, ebx
cmp byte [esi], bl
je 0x46ae00
movzx eax, byte [edi + 0x27]
push ecx
push ebx
push eax
push 0xa0
mov ecx, edi
call fcn.0046b1d1
cmp byte [esi + 1], bl
je 0x46ae18
movzx eax, byte [edi + 0x28]
push ecx
push ebx
push eax
push 0xa1
mov ecx, edi
call fcn.0046b1d1
cmp byte [esi + 2], bl
je 0x46ae2d
movzx eax, byte [edi + 0x24]
push ecx
push ebx
push eax
push 0x11
mov ecx, edi
call fcn.0046b1d1
cmp byte [esi + 3], bl
je 0x46ae42
movzx eax, byte [edi + 0x25]
push ecx
push ebx
push eax
push 0x12
mov ecx, edi
call fcn.0046b1d1
cmp byte [esi + 4], bl
je 0x46ae57
movzx eax, byte [edi + 0x29]
push ecx
push ebx
push eax
push 0x5b
mov ecx, edi
call fcn.0046b1d1
mov ecx, edi
call fcn.00469c0b
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x46ae65
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 0x46ae96
cmp byte [esi + 1], 0
jne 0x46ae96
cmp byte [esi + 2], 0
jne 0x46ae96
cmp byte [esi + 3], 0
jne 0x46ae96
cmp byte [esi + 4], 0
je 0x46b04d
cmp dword [edi + 0x20], 0
push ebx
je 0x46afcf
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x46afcf
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x46af20
cmp byte [esi], 0
mov ecx, 0x80
mov al, byte [ebp - 0xf0]
je 0x46aede
xor al, cl
xor byte [ebp - 0x60], cl
mov byte [ebp - 0xf0], al
cmp byte [esi + 1], 0
je 0x46aeef
xor al, cl
xor byte [ebp - 0x5f], cl
mov byte [ebp - 0xf0], al
cmp byte [esi + 2], 0
je 0x46aefb
xor byte [ebp - 0xef], cl
cmp byte [esi + 3], 0
je 0x46af07
xor byte [ebp - 0xee], cl
cmp byte [esi + 4], 0
je 0x46af13
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 0x46af31
cmp byte [esi + 1], 0
je 0x46af4a
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 0x46af69
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 0x46afaa
cmp byte [esi + 2], 0
jne 0x46af91
cmp byte [edi + 0x1c], 0
jne 0x46af91
movzx eax, byte [edi + 0x25]
shl eax, 0x10
or eax, 0xe0000001
push eax
push 0x12
push 0x105
jmp 0x46afa5
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 0x46b045
movzx eax, byte [edi + 0x29]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x5b
push 0x101
push dword [edi + 0x20]
call ebx
jmp 0x46b045
cmp byte [esi], 0
push 2
pop ebx
je 0x46afea
movzx eax, byte [edi + 0x27]
push ecx
push ebx
push eax
push 0xa0
mov ecx, edi
call fcn.0046b1d1
cmp byte [esi + 1], 0
je 0x46b003
movzx eax, byte [edi + 0x28]
push ecx
push ebx
push eax
push 0xa1
mov ecx, edi
call fcn.0046b1d1
cmp byte [esi + 2], 0
je 0x46b019
movzx eax, byte [edi + 0x24]
push ecx
push ebx
push eax
push 0x11
mov ecx, edi
call fcn.0046b1d1
cmp byte [esi + 3], 0
je 0x46b02f
movzx eax, byte [edi + 0x25]
push ecx
push ebx
push eax
push 0x12
mov ecx, edi
call fcn.0046b1d1
cmp byte [esi + 4], 0
je 0x46b045
movzx eax, byte [edi + 0x29]
push ecx
push ebx
push eax
push 0x5b
mov ecx, edi
call fcn.0046b1d1
mov ecx, edi
call fcn.00469bf4
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x46b053
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 0x46b0d7
jne 0x46b066
push 0
jmp 0x46b0d1
cmp esi, 0xf
jae 0x46b0d0
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x46b0d0
mov dword [ebp - 4], esi
fild dword [ebp - 4]
test esi, esi
jns 0x46b089
fadd qword [0x4c81b0]
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.0041e40b
fdivr qword [ebp - 0x20]
fcomp qword [ebp - 0x28]
fnstsw ax
test ah, 5
jnp 0x46b092
jmp 0x46b0d7
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
call fcn.00469f29
mov eax, dword [ebp + 8]
mov word [esi + 8], ax
test ax, ax
je 0x46b283
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
movzx eax, ax
cmp ax, 0xffff
je 0x46b283
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 0x46b26c
mov byte [esi + 1], 1
test bl, 2
je 0x46b275
mov byte [esi + 3], 1
test bl, 4
pop ebx
je 0x46b27f
mov byte [esi + 4], 1
mov al, 1
jmp 0x46b285
xor al, al
pop esi
pop ebp
ret 4

Function at 0x46cb8e
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 0x46cba8
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
call fcn.0046cac6
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 0x46cd8f
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20034
call fcn.00442000
push ebx
push esi
lea eax, [ebp - 0x20034]
mov esi, edx
push eax
mov edx, 0x7fff
call fcn.0046dc5f
lea eax, [ebp - 0x10034]
mov edx, 0x7fff
push eax
mov ecx, esi
call fcn.0046dc5f
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 0x46ce19
cmp byte [ebp + 8], al
je 0x46ce3d
lea eax, [ebp - 0x10034]
push eax
lea eax, [ebp - 0x20034]
push eax
call fcn.004252e2
pop ecx
pop ecx
test eax, eax
je 0x46cefe
lea eax, [ebp - 0x10034]
push eax
lea eax, [ebp - 0x20034]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x46cefe
lea ecx, [ebp - 0x20034]
call fcn.0046e018
test al, al
je 0x46ce3d
lea ecx, [ebp - 0x10034]
call fcn.0046e018
test al, al
je 0x46ce43
cmp byte [ebp + 8], 0
jne 0x46ce7c
xor al, al
pop esi
pop ebx
leave
ret
lea eax, [ebp - 0x10034]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040b661
lea ecx, [ebp - 0x34]
call fcn.0046d150
mov bl, al
lea ecx, [ebp - 0x34]
neg bl
sbb bl, bl
call fcn.0040b276
add bl, 1
jne 0x46ce3d
lea ecx, [ebp - 0x10034]
call fcn.0046e018
test al, al
je 0x46ce3d
lea eax, [ebp - 0x20034]
push str..
push eax
call fcn.004290e8
lea eax, [ebp - 0x20034]
push eax
call fcn.00424a13
xor ecx, ecx
mov word [ebp + eax*2 - 0x20032], cx
lea eax, [ebp - 0x10034]
push eax
call fcn.00424a13
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 0x46ce3d
mov al, 1
jmp 0x46ce3f
Function at 0x46d150
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 0x49d034
mov dword [esp + 0x18], eax
inc dword [eax]
call fcn.00405655
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x46d21d
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 2
jne 0x46d1b4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x46d1b9
jmp 0x46d221
cmp eax, 3
jne 0x46d225
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 0x49d034
inc dword [eax]
call fcn.00406450
cmp eax, 0xffffffff
je 0x46d212
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x20]
call fcn.0040ada2
lea ecx, [esp + 0x18]
call fcn.0046d150
test al, al
je 0x46d210
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.0040b276
jmp 0x46d227
test al, 0x10
je 0x46d225
mov bl, 1
jmp 0x46d227
xor bl, bl
lea ecx, [esp + 8]
call fcn.0040b276
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46d238
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.0040c29d
lea ecx, [esp + 0x30]
call fcn.0040c29d
lea ecx, [esp + 0x20]
call fcn.0040c29d
lea edx, [esp + 0x10]
mov ecx, esi
call fcn.0040583b
mov ecx, dword [esp + 0x10]
call fcn.0046e018
test al, al
je 0x46d28f
push str..
lea ecx, [esp + 0x14]
call fcn.004052e1
push ebx
lea eax, [esp + 0x24]
push ebx
push eax
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x1c]
call fcn.00406c1f
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 0x46d32f
cmp al, 1
jne 0x46d32f
test byte [esp + 0x40], 0x10
jne 0x46d30a
mov byte [esp + 0xf], al
lea ecx, [esp + 0x10]
lea eax, [esp + 0x30]
push eax
call fcn.0040c203
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
call fcn.00407d10
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x14]
call fcn.004052e1
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x46d326
lea eax, [esp + 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov al, byte [esp + 0xe]
jne 0x46d2c2
mov al, bl
mov byte [esp + 0xe], al
jmp 0x46d2c2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x46d33a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, byte [esp + 0xf]
lea ecx, [esp + 0x20]
call fcn.0040b276
lea ecx, [esp + 0x30]
call fcn.0040b276
lea ecx, [esp + 0x10]
call fcn.0040b276
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46d36b
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.0046dd76
mov ebx, eax
jmp 0x46d461
lea eax, [esp + 0x48]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x46d46a
lea ecx, [esp + 0x18]
call fcn.0040c29d
lea ecx, [esp + 0x28]
call fcn.0040c29d
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x3c]
call fcn.0040b661
lea eax, [esp + 0x28]
xor edx, edx
push eax
lea eax, [esp + 0x1c]
push eax
push 0
lea ecx, [esp + 0x44]
call fcn.00406c1f
add esp, 0xc
lea ecx, [esp + 0x38]
call fcn.0040b276
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
call fcn.00407d10
mov eax, dword [esp + 0x10]
push 0
push dword [eax + 4]
push dword [eax]
push dword [esp + 0x28]
push dword [esp + 0x28]
call fcn.0041d65c
test eax, eax
mov eax, dword [esp + 0x50]
je 0x46d446
test ebx, ebx
je 0x46d44f
cmp ebx, eax
jne 0x46d44f
mov ecx, dword [esp + 0x14]
mov byte [esi], 1
mov dword [ecx], eax
lea ecx, [esp + 0x28]
call fcn.0040b276
lea ecx, [esp + 0x18]
call fcn.0040b276
cmp byte [esi], 0
je 0x46d3b8
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 0x46d47a
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 0x46d4f2
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 0x46d4f2
mov eax, dword [ebp - 0x20]
mov dword [ebx], eax
mov al, 1
jmp 0x46d4f4
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46d4f9
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 0x46d56c
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 0x46d56c
xor eax, eax
cmp byte [ebp - 0x14], al
setne al
jmp 0x46d571
mov eax, 0x80004005
pop esi
pop ebx
leave
ret

Function at 0x46da4d
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 0x46da88
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x46da7d
or eax, eax
jmp 0x46da88
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 8]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46da8d
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0x18]
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
jne 0x46dab2
xor al, al
jmp 0x46dc5a
push esi
call fcn.0041febb
pop ecx
push eax
mov dword [ebp - 4], eax
xor eax, eax
push esi
push eax
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov esi, dword [ebp + 8]
push esi
call fcn.00424a13
xor ecx, ecx
add eax, 0x1a
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041febb
mov edi, eax
push 0x49d034
push edi
call fcn.00424a33
push 0x49d034
push esi
call fcn.004252e2
add esp, 0x18
test eax, eax
je 0x46db9e
push str.StringFileInfo_
push edi
call fcn.004290e8
push 0x49d034
push esi
call fcn.0042254a
add esp, 0x10
test eax, eax
jne 0x46db95
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 4]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x46db71
mov eax, dword [ebp - 0x10]
lea ecx, [edi + 0x20]
push 0
mov esi, dword [eax]
push esi
push 4
pop edx
call fcn.0040b6c7
push 0
shr esi, 0x10
lea ecx, [edi + 0x28]
push esi
push 4
pop edx
call fcn.0040b6c7
mov esi, dword [ebp + 8]
add esp, 0x10
jmp 0x46db7e
push str.04090000
push edi
call fcn.004290e8
pop ecx
pop ecx
push 0x49d034
push edi
call fcn.004290e8
push esi
push edi
call fcn.004290e8
add esp, 0x10
jmp 0x46db9e
push esi
push edi
call fcn.004290e8
pop ecx
pop ecx
push str.DefaultLangCodepage
push esi
call fcn.00424ad8
pop ecx
pop ecx
test eax, eax
jne 0x46dbd9
push 8
lea eax, [edi + 0x20]
push eax
push ebx
call fcn.0042d39b
push dword [ebp - 4]
xor eax, eax
mov word [ebx + 0x10], ax
call fcn.0041fec4
push edi
call fcn.0041fec4
add esp, 0x14
mov al, 1
jmp 0x46dc5a
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 4]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x46dc47
push 0x49d034
push esi
call fcn.004252e2
pop ecx
pop ecx
test eax, eax
jne 0x46dc29
mov eax, dword [ebp - 8]
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx eax, dx
push eax
shr edx, 0x10
push edx
push str._u._u._u._u
push ebx
call fcn.0041fbc8
add esp, 0x18
jmp 0x46dc43
push 0x200
push dword [ebp - 8]
push ebx
call fcn.0042d39b
add esp, 0xc
xor eax, eax
mov word [ebx + 0x400], ax
mov byte [ebp - 0xc], 1
push dword [ebp - 4]
call fcn.0041fec4
push edi
call fcn.0041fec4
mov al, byte [ebp - 0xc]
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret