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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
mov esi, dword [ebp + 8]
push edi
cmp byte [esi], 0
mov edi, ecx
jne 0x443a5c
cmp byte [esi + 1], 0
jne 0x443a5c
cmp byte [esi + 2], 0
jne 0x443a5c
cmp byte [esi + 3], 0
jne 0x443a5c
cmp byte [esi + 4], 0
je 0x443c0a
cmp dword [edi + 0x20], 0
push ebx
je 0x443b92
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x443b92
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x443ae6
cmp byte [esi], 0
mov al, byte [ebp - 0xf0]
mov ecx, 0x80
je 0x443aa4
or al, cl
or byte [ebp - 0x60], cl
mov byte [ebp - 0xf0], al
cmp byte [esi + 1], 0
je 0x443ab5
or al, cl
or byte [ebp - 0x5f], cl
mov byte [ebp - 0xf0], al
cmp byte [esi + 2], 0
je 0x443ac1
or byte [ebp - 0xef], cl
cmp byte [esi + 3], 0
je 0x443acd
or byte [ebp - 0xee], cl
cmp byte [esi + 4], 0
je 0x443ad9
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 0x443af7
cmp byte [esi + 1], 0
je 0x443b0e
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 0x443b2b
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 0x443b6f
cmp byte [esi + 2], 0
jne 0x443b54
cmp byte [edi + 0x1c], 0
jne 0x443b54
movzx eax, byte [edi + 0x25]
shl eax, 0x10
or eax, 0x20000001
push eax
push 0x12
push 0x104
jmp 0x443b6a
test al, al
je 0x443b6f
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 0x443c02
movzx eax, byte [edi + 0x29]
shl eax, 0x10
or eax, 1
push eax
push 0x5b
push 0x100
push dword [edi + 0x20]
call ebx
jmp 0x443c02
xor ebx, ebx
cmp byte [esi], bl
je 0x443bab
movzx eax, byte [edi + 0x27]
push ecx
push ebx
push eax
push 0xa0
mov ecx, edi
call fcn.00443f84
cmp byte [esi + 1], bl
je 0x443bc3
movzx eax, byte [edi + 0x28]
push ecx
push ebx
push eax
push 0xa1
mov ecx, edi
call fcn.00443f84
cmp byte [esi + 2], bl
je 0x443bd8
movzx eax, byte [edi + 0x24]
push ecx
push ebx
push eax
push 0x11
mov ecx, edi
call fcn.00443f84
cmp byte [esi + 3], bl
je 0x443bed
movzx eax, byte [edi + 0x25]
push ecx
push ebx
push eax
push 0x12
mov ecx, edi
call fcn.00443f84
cmp byte [esi + 4], bl
je 0x443c02
movzx eax, byte [edi + 0x29]
push ecx
push ebx
push eax
push 0x5b
mov ecx, edi
call fcn.00443f84
mov ecx, edi
call fcn.00442984
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x443c10
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
mov esi, dword [ebp + 8]
push edi
cmp byte [esi], 0
mov edi, ecx
jne 0x443c41
cmp byte [esi + 1], 0
jne 0x443c41
cmp byte [esi + 2], 0
jne 0x443c41
cmp byte [esi + 3], 0
jne 0x443c41
cmp byte [esi + 4], 0
je 0x443dfd
cmp dword [edi + 0x20], 0
push ebx
je 0x443d7f
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x443d7f
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x443ccb
cmp byte [esi], 0
mov al, byte [ebp - 0xf0]
mov ecx, 0x80
je 0x443c89
xor al, cl
xor byte [ebp - 0x60], cl
mov byte [ebp - 0xf0], al
cmp byte [esi + 1], 0
je 0x443c9a
xor al, cl
xor byte [ebp - 0x5f], cl
mov byte [ebp - 0xf0], al
cmp byte [esi + 2], 0
je 0x443ca6
xor byte [ebp - 0xef], cl
cmp byte [esi + 3], 0
je 0x443cb2
xor byte [ebp - 0xee], cl
cmp byte [esi + 4], 0
je 0x443cbe
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 0x443cdc
cmp byte [esi + 1], 0
je 0x443cf5
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 0x443d14
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 0x443d5a
cmp byte [esi + 2], 0
jne 0x443d3d
cmp byte [edi + 0x1c], 0
jne 0x443d3d
movzx eax, byte [edi + 0x25]
shl eax, 0x10
or eax, 0xe0000001
push eax
push 0x12
push 0x105
jmp 0x443d55
test al, al
je 0x443d5a
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 0x443df5
movzx eax, byte [edi + 0x29]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x5b
push 0x101
push dword [edi + 0x20]
call ebx
jmp 0x443df5
cmp byte [esi], 0
push 2
pop ebx
je 0x443d9a
movzx eax, byte [edi + 0x27]
push ecx
push ebx
push eax
push 0xa0
mov ecx, edi
call fcn.00443f84
cmp byte [esi + 1], 0
je 0x443db3
movzx eax, byte [edi + 0x28]
push ecx
push ebx
push eax
push 0xa1
mov ecx, edi
call fcn.00443f84
cmp byte [esi + 2], 0
je 0x443dc9
movzx eax, byte [edi + 0x24]
push ecx
push ebx
push eax
push 0x11
mov ecx, edi
call fcn.00443f84
cmp byte [esi + 3], 0
je 0x443ddf
movzx eax, byte [edi + 0x25]
push ecx
push ebx
push eax
push 0x12
mov ecx, edi
call fcn.00443f84
cmp byte [esi + 4], 0
je 0x443df5
movzx eax, byte [edi + 0x29]
push ecx
push ebx
push eax
push 0x5b
mov ecx, edi
call fcn.00443f84
mov ecx, edi
call fcn.0044296b
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x443e03
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 0x443e88
jne 0x443e17
push 0
jmp 0x443e82
cmp esi, 0xf
jae 0x443e81
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x443e81
mov dword [ebp + 8], esi
fild dword [ebp + 8]
test esi, esi
jns 0x443e3a
fadd qword [0x4b6a10]
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.0041e55e
fdivr qword [ebp - 0x20]
fcomp qword [ebp - 0x28]
fnstsw ax
test ah, 5
jnp 0x443e43
jmp 0x443e88
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push esi
mov esi, ecx
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 0x443ffd
xor al, al
jmp 0x444042
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
movzx eax, ax
cmp ax, 0xffff
je 0x443ff9
push ebx
mov ebx, eax
mov byte [esi], al
movzx eax, al
push 0
push eax
sar ebx, 8
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov byte [esi + 7], al
test bl, 1
je 0x44402d
mov byte [esi + 1], 1
test bl, 2
je 0x444036
mov byte [esi + 3], 1
test bl, 4
pop ebx
je 0x444040
mov byte [esi + 4], 1
mov al, 1
pop esi
pop ebp
ret 4

Function at 0x445c7f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
call fcn.00445a50
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
leave
ret 8
Function at 0x445e26
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20020
call fcn.0042fa80
push esi
lea eax, [ebp - 0x20020]
mov esi, edx
push eax
mov edx, 0x7fff
call fcn.00446dac
lea eax, [ebp - 0x10020]
push eax
mov edx, 0x7fff
mov ecx, esi
call fcn.00446dac
pop ecx
pop ecx
lea eax, [ebp - 0x10020]
push eax
lea eax, [ebp - 0x20020]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
pop esi
test eax, eax
jne 0x445eaf
cmp byte [ebp + 8], al
je 0x445eab
lea eax, [ebp - 0x10020]
push eax
lea eax, [ebp - 0x20020]
push eax
call fcn.004217b3
pop ecx
pop ecx
test eax, eax
je 0x445ea7
lea eax, [ebp - 0x10020]
push eax
lea eax, [ebp - 0x20020]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov al, 1
leave
ret
xor al, al
leave
ret
lea ecx, [ebp - 0x20020]
call fcn.004471bc
test al, al
je 0x445eab
lea ecx, [ebp - 0x10020]
call fcn.004471bc
test al, al
je 0x445f59
cmp byte [ebp + 8], 0
je 0x445eab
lea eax, [ebp - 0x20020]
push str..
push eax
call fcn.00420ec4
lea eax, [ebp - 0x20020]
push eax
call fcn.00420eab
xor ecx, ecx
mov word [ebp + eax*2 - 0x2001e], cx
lea eax, [ebp - 0x10020]
push eax
call fcn.00420eab
xor ecx, ecx
mov word [ebp + eax*2 - 0x1001e], cx
lea eax, [ebp - 0x20020]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10020]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0xa], eax
mov dword [ebp - 6], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0x20], eax
mov eax, 0x614
add esp, 0x10
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 2
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
leave
ret
lea ecx, [ebp - 0x10020]
call fcn.004461b9
test al, al
je 0x445eab
lea ecx, [ebp - 0x10020]
call fcn.004471bc
test al, al
jmp 0x445ed5
Function at 0x445f7e
Capabilities:
Copy file
Delete file
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x40864
call fcn.0042fa80
push ebx
push esi
push edi
lea eax, [ebp - 0x20860]
mov esi, edx
mov edi, 0x7fff
xor ebx, ebx
push eax
mov edx, edi
mov byte [ebp - 1], bl
call fcn.00446dac
pop ecx
lea eax, [ebp - 0x40860]
push eax
mov edx, edi
mov ecx, esi
call fcn.00446dac
pop ecx
lea edx, [ebp - 0x40860]
lea ecx, [ebp - 0x20860]
call fcn.0044714f
lea ecx, [ebp - 0x20860]
mov byte [ebp - 3], al
call fcn.004471bc
mov esi, str..
test al, al
je 0x445ff1
lea eax, [ebp - 0x20860]
push esi
push eax
call fcn.00420ec4
pop ecx
pop ecx
lea ecx, [ebp - 0x40860]
call fcn.004471bc
test al, al
je 0x44600f
lea eax, [ebp - 0x40860]
push esi
push eax
call fcn.00420ec4
pop ecx
pop ecx
lea eax, [ebp - 0x860]
push eax
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x660]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x20860]
push eax
call fcn.00421fcc
add esp, 0x14
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x20860]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov al, 1
mov byte [ebp - 2], al
cmp esi, 0xffffffff
je 0x4461a8
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp al, 1
jne 0x4461a8
test byte [ebp - 0x260], 0x10
jne 0x44617a
lea eax, [ebp - 0x30860]
push eax
lea eax, [ebp - 0x40860]
push eax
lea eax, [ebp - 0x860]
push eax
lea edx, [ebp - 0x460]
lea ecx, [ebp - 0x234]
call fcn.004467ac
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10860]
push eax
call fcn.00420ef3
lea eax, [ebp - 0x660]
push eax
lea eax, [ebp - 0x10860]
push eax
call fcn.00420ec4
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x10860]
push eax
call fcn.00420ec4
add esp, 0x18
lea ecx, [ebp - 0x30860]
call fcn.004463c5
test al, al
je 0x446111
cmp byte [ebp + 8], bl
je 0x44619d
lea eax, [ebp - 0x30860]
push eax
lea eax, [ebp - 0x10860]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
lea eax, [ebp - 0x30860]
push eax
je 0x446132
call edi
cmp byte [ebp + 0xc], 1
lea eax, [ebp - 0x30860]
jne 0x446163
cmp byte [ebp - 3], bl
jne 0x446145
push eax
lea eax, [ebp - 0x10860]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x446172
lea eax, [ebp - 0x10860]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x4461ab
jmp 0x446176
push ebx
push eax
lea eax, [ebp - 0x10860]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x44619d
lea eax, [ebp - 0x10860]
push eax
call edi
jmp 0x446172
push ebx
push eax
lea eax, [ebp - 0x10860]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x44619d
mov byte [ebp - 1], 1
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov al, byte [ebp - 2]
jne 0x446061
mov al, bl
mov byte [ebp - 2], al
jmp 0x446061
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x4461b4
mov bl, byte [ebp - 1]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4461b9
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10000
call fcn.0042fa80
push ebx
push esi
mov edx, ecx
push 0x7fff
lea ecx, [ebp - 0x10000]
call fcn.00404cf1
lea eax, [ebp - 0x10000]
push eax
call fcn.00420eab
pop ecx
pop ecx
push 0x5c
pop ebx
test eax, eax
je 0x446203
cmp word [ebp + eax*2 - 0x10002], bx
jne 0x446203
xor ecx, ecx
mov word [ebp + eax*2 - 0x10002], cx
lea eax, [ebp - 0x10000]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x446290
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x446237
push 0
lea eax, [ebp - 0x10000]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x44623c
mov al, 1
jmp 0x446296
cmp eax, 3
jne 0x446294
lea ecx, [ebp - 0x10000]
call fcn.0040795d
mov esi, eax
push ebx
push esi
call fcn.004226b6
pop ecx
pop ecx
test eax, eax
jne 0x44625f
push esi
call fcn.0041f72e
pop ecx
jmp 0x446294
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
call fcn.004461b9
push esi
mov bl, al
call fcn.0041f72e
pop ecx
test bl, bl
je 0x44628c
push 0
lea eax, [ebp - 0x10000]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
mov al, bl
jmp 0x446296
test al, 0x10
jne 0x446233
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x44629a
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x10460
call fcn.0042fa80
push ebx
lea eax, [esp + 0x464]
push esi
xor ebx, ebx
push eax
mov edx, 0x7fff
mov byte [esp + 0x13], bl
call fcn.00446dac
pop ecx
lea ecx, [esp + 0x468]
call fcn.004471bc
test al, al
je 0x4462e9
lea eax, [esp + 0x468]
push str..
push eax
call fcn.00420ec4
pop ecx
pop ecx
push ebx
push ebx
lea eax, [esp + 0x270]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x478]
push eax
call fcn.00421fcc
add esp, 0x14
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov al, 1
mov byte [esp + 0xe], al
cmp esi, 0xffffffff
je 0x4463a2
cmp al, 1
jne 0x4463a2
test byte [esp + 0x18], 0x10
jne 0x446386
mov byte [esp + 0xf], al
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x46c]
push eax
call fcn.00420ef3
lea eax, [esp + 0x270]
push eax
lea eax, [esp + 0x474]
push eax
call fcn.00420ec4
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x47c]
push eax
call fcn.00420ec4
add esp, 0x18
lea eax, [esp + 0x468]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x4463a6
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov al, byte [esp + 0xe]
jne 0x446328
mov al, bl
mov byte [esp + 0xe], al
jmp 0x446328
mov bl, byte [esp + 0xf]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4463d3
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x63c
push ebx
push esi
push edi
push 0
mov ebx, ecx
push 2
mov dword [ebp - 4], edx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x234], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
lea eax, [ebp - 0x234]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov esi, dword [ebp + 8]
mov ecx, ebx
mov byte [esi], 0
call fcn.00446f0e
mov ebx, eax
jmp 0x446494
lea eax, [ebp - 0x234]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x446499
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x438]
push eax
push 0
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00421fcc
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.00420ec4
push dword [ebp - 8]
lea eax, [ebp - 0x438]
push eax
call fcn.00421177
add esp, 0x24
test eax, eax
jne 0x44647e
mov eax, dword [ebp - 0x22c]
jmp 0x44648c
test ebx, ebx
je 0x446494
mov eax, dword [ebp - 0x22c]
cmp ebx, eax
jne 0x446494
mov ecx, dword [ebp - 4]
mov byte [esi], 1
mov dword [ecx], eax
cmp byte [esi], 0
je 0x44641c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
leave
ret

Function at 0x4464a7
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
xor esi, esi
push esi
mov eax, 0x80
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 0x4464d8
xor al, al
jmp 0x446521
push 0xa
pop ecx
xor eax, eax
push esi
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push 0x28
lea eax, [ebp - 0x3c]
push eax
push 0xc
lea eax, [ebp - 0x14]
push eax
push 0x2d1400
push edx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov esi, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4464d4
mov eax, dword [ebp - 0x20]
mov dword [ebx], eax
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x446526
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4c218c]
sub esp, 0x1c
cmp byte [eax + 0x25], 0
jne 0x44653e
mov eax, 0x80004005
leave
ret
push ebx
push esi
xor esi, esi
push esi
mov eax, 0x80
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 0x4465a1
push edi
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push esi
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
mov dword [ebp - 0x10], 7
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
test esi, esi
jne 0x4465a8
mov eax, 0x80004005
jmp 0x4465b0
xor eax, eax
cmp byte [ebp - 0x14], al
setne al
pop esi
pop ebx
leave
ret

Function at 0x446b4a
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 0x446b85
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x446b7a
or eax, eax
jmp 0x446b85
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 8]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x446b8a
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
push eax
push edi
mov ebx, edx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
jne 0x446baf
xor al, al
jmp 0x446d57
push esi
call fcn.0041f6ba
pop ecx
push eax
mov dword [ebp - 4], eax
push esi
xor eax, eax
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.00420eab
xor ecx, ecx
push 2
add eax, 0x1a
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041f6ba
mov edi, eax
push 0x49dc1c
push edi
call fcn.00420ef3
push 0x49dc1c
push esi
call fcn.004217b3
add esp, 0x18
test eax, eax
je 0x446c9b
push str.StringFileInfo_
push edi
call fcn.00420ec4
push 0x49dc1c
push esi
call fcn.00421bd6
add esp, 0x10
test eax, eax
jne 0x446c92
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 0x446c6e
mov eax, dword [ebp - 0x10]
push 0
mov esi, dword [eax]
push esi
push 4
lea ecx, [edi + 0x20]
pop edx
call fcn.0040cc6a
push 0
shr esi, 0x10
push esi
push 4
lea ecx, [edi + 0x28]
pop edx
call fcn.0040cc6a
mov esi, dword [ebp + 8]
add esp, 0x10
jmp 0x446c7b
push str.04090000
push edi
call fcn.00420ec4
pop ecx
pop ecx
push 0x49dc1c
push edi
call fcn.00420ec4
push esi
push edi
call fcn.00420ec4
add esp, 0x10
jmp 0x446c9b
push esi
push edi
call fcn.00420ec4
pop ecx
pop ecx
push str.DefaultLangCodepage
push esi
call fcn.00421177
pop ecx
pop ecx
test eax, eax
jne 0x446cd6
push 8
lea eax, [edi + 0x20]
push eax
push ebx
call fcn.0042257c
push dword [ebp - 4]
xor eax, eax
mov word [ebx + 0x10], ax
call fcn.0041f72e
push edi
call fcn.0041f72e
add esp, 0x14
mov al, 1
jmp 0x446d57
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 0x446d44
push 0x49dc1c
push esi
call fcn.004217b3
pop ecx
pop ecx
test eax, eax
jne 0x446d26
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
movzx eax, cx
push eax
movzx eax, dx
shr ecx, 0x10
push ecx
push eax
shr edx, 0x10
push edx
push str._u._u._u._u
push ebx
call fcn.004218fb
add esp, 0x18
jmp 0x446d40
push 0x200
push dword [ebp - 8]
push ebx
call fcn.0042257c
add esp, 0xc
xor eax, eax
mov word [ebx + 0x400], ax
mov byte [ebp - 0xc], 1
push dword [ebp - 4]
call fcn.0041f72e
push edi
call fcn.0041f72e
mov al, byte [ebp - 0xc]
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x446df3
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
lea eax, [ebp - 0x298]
push esi
push edi
push eax
push 0x101
mov edi, edx
mov esi, ecx
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x446eb6
push 0x100
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.WSOCK32.dll_gethostname]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x446eb6
mov edx, dword [eax + 0xc]
xor ecx, ecx
cmp dword [edx], ecx
je 0x446e53
mov eax, edx
lea eax, [eax + 4]
inc ecx
cmp dword [eax], 0
jne 0x446e4a
cmp esi, ecx
jle 0x446e66
push str.0.0.0.0
push edi
call fcn.00420ef3
pop ecx
pop ecx
jmp 0x446eae
push 4
push dword [edx + esi*4 - 4]
lea eax, [ebp - 4]
push eax
call fcn.0041f050
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00422760
or edx, 0xffffffff
lea ecx, [ebp - 0x108]
call fcn.00447b47
mov esi, eax
push esi
push edi
call fcn.00420ef3
push esi
call fcn.0041f72e
add esp, 0x14
call dword [sym.imp.WSOCK32.dll_WSACleanup]
jmp 0x446ec3
push 0x49dbc8
push edi
call fcn.00420ef3
pop ecx
pop ecx
pop edi
pop esi
leave
ret

Function at 0x4470eb
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], ebx
mov word [ebp - 0xc], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov ecx, eax
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x447144
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 8]
neg eax
sbb eax, eax
and dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp ecx, 1
sete al
pop ebx
leave
ret

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

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4471cf
test al, 0x10
je 0x4471cf
mov al, 1
ret
xor al, al
ret