joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e6b1
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 8], eax
push edi
lea eax, [ebp - 2]
push eax
lea eax, [ebp - 3]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 1]
push eax
lea ebx, [ebp + 8]
mov byte [ebp - 1], 0
mov byte [ebp - 2], 0
call fcn.0041b722
mov eax, dword [ebp + 8]
add esp, 0x10
xor edi, edi
cmp word [eax], di
mov esi, 0x48b5d4
push esi
je 0x41e78e
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [ebp + 8]
mov byte [0x4892a9], 0xff
cmp word [eax], 0x2a
mov byte [0x48ae14], 1
jne 0x41e722
cmp word [eax + 2], 0x2a
jne 0x41e722
mov byte [0x4892a9], 0
push 0x48ab6c
push 0x10000
push dword [ebp - 8]
push 0x41e5a9
push 0x100000
push edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call esi
mov dword [ebp - 0xc], eax
mov ebx, 0x7d0
mov eax, dword [ebp - 8]
cmp word [eax], di
jne 0x41e773
cmp byte [0x48ae14], 0
je 0x41e847
call esi
sub eax, dword [ebp - 0xc]
cmp eax, ebx
jae 0x41e847
push 0x14
mov ecx, 0x48aec0
call fcn.0040ac88
jmp 0x41e75e
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [0x48adcc]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push str.LogohWnd
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], edi
mov ebx, str.SOFTWAREPELOGON
push ebx
mov edi, 0x80000002
push edi
mov dword [ebp - 0x10], 4
call fcn.0042548c
push str.LogohWnd
push ebx
push edi
call fcn.0042557a
xor edi, edi
add esp, 0x24
cmp dword [ebp - 8], edi
jne 0x41e7eb
mov eax, dword [ebp - 0xc]
cmp eax, edi
mov dword [ebp - 8], eax
je 0x41e805
mov al, byte [ebp - 1]
neg al
push edi
sbb eax, eax
add eax, 0x67
push eax
push 0x111
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_PostMessageW]
push esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
cmp dword [ebp - 8], edi
je 0x41e847
cmp byte [ebp - 2], 0
je 0x41e847
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call esi
mov edi, eax
call esi
mov ebx, 0x7d0
jmp 0x41e841
cmp dword [0x48adcc], 0
je 0x41e847
push 0xa
mov ecx, 0x48aec0
call fcn.0040ac88
call esi
sub eax, edi
cmp eax, ebx
jb 0x41e82a
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x426565
Capabilities:
Log keystrokes

Disassembly:
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, dword [sym.imp.USER32.dll_IsWindow]
mov edi, eax
push edi
call esi
test eax, eax
je 0x4265d0
cmp edi, dword [esp + 0xc]
je 0x4265d0
mov eax, dword [0x48b114]
cmp eax, edi
je 0x4265d0
push ebx
push ebp
push eax
call esi
mov ebx, dword [sym.imp.USER32.dll_AttachThreadInput]
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
xor ebp, ebp
test eax, eax
je 0x4265b7
push ebp
push ebp
push dword [0x48b114]
call esi
push eax
push ebp
push dword [esp + 0x20]
call esi
push eax
call ebx
push 1
push ebp
push edi
mov dword [0x48b114], edi
call esi
push eax
push ebp
push dword [esp + 0x20]
call esi
push eax
call ebx
pop ebp
pop ebx
pop edi
pop esi
ret

Function at 0x426ccc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
mov esi, ecx
jne 0x426cdd
lea edi, [ebp + 0x10]
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
jl 0x426d09
and dword [esi + 8], 0
and dword [ebp + 0x10], 0
push 0
lea eax, [ebp + 0x10]
push eax
push 0x1000
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [ebp + 0x10]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
jge 0x426d29
lea ecx, [eax + 1]
mov dword [esi + 8], ecx
mov ecx, dword [esi + 4]
mov al, byte [eax + ecx]
mov ecx, dword [ebp + 8]
mov byte [ecx], al
xor eax, eax
inc eax
mov dword [edi], eax
jmp 0x426d2e
and dword [edi], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x426f12
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
xor eax, eax
push edi
inc eax
xor ebx, ebx
push 0x100000
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
mov word [ebp - 0x21c], bx
call fcn.0042465d
mov edi, dword [ebp + 0x14]
cmp edi, ebx
jne 0x426f69
lea eax, [ebp - 0x21c]
push eax
push 0x104
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
cmp eax, ebx
mov dword [ebp - 4], eax
lea edi, [ebp - 0x21c]
je 0x427079
cmp dword [ebp - 0xc], ebx
push esi
mov esi, 0xa0000000
mov dword [ebp - 8], ebx
je 0x426f7c
mov esi, 0xe0000000
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 3
push esi
push dword [ebp + 0xc]
call dword [0x48afb0]
cmp eax, ebx
mov dword [ebp + 0x14], eax
jne 0x426fcf
cmp dword [ebp - 0xc], 1
jne 0x426fc1
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 3
and esi, 0xbfffffff
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
call dword [0x48afb0]
cmp eax, ebx
mov dword [ebp + 0x14], eax
je 0x426f95
cmp dword [ebp + 0x14], ebx
jne 0x426fcf
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], ebx
je 0x42706a
push edi
push dword [ebp + 0x14]
call dword [0x48afb4]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x426ff6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], 1
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call dword [0x48afb8]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x427012
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], ebx
je 0x42705c
xor esi, esi
cmp dword [ebp - 0xc], ebx
mov edi, 0x200
jne 0x427025
mov esi, edi
push esi
push dword [ebp + 8]
push dword [ebp - 8]
call dword [0x48afbc]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x42705c
cmp dword [ebp - 0xc], 2
jne 0x427051
or esi, edi
push esi
push dword [ebp + 8]
push dword [ebp - 8]
call dword [0x48afbc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
jne 0x42705c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp dword [ebp - 8], ebx
je 0x42706a
push dword [ebp - 8]
call dword [0x48afc0]
cmp dword [ebp + 0x14], ebx
pop esi
je 0x427079
push dword [ebp + 0x14]
call dword [0x48afc0]
lea ecx, [ebp - 0x10]
call fcn.00424686
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret
Function at 0x427137
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
or dword [ebp - 8], 0xffffffff
push ebx
push esi
push edi
lea eax, [ebp + 8]
push eax
movzx eax, word [0x48ab68]
or eax, 0x20019
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4271dc
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
push 0xffe
mov ecx, edi
mov dword [esi], 0xffa
call fcn.0042459d
mov eax, dword [edi]
push esi
mov byte [eax], bl
push dword [edi]
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 8]
call ebx
cmp eax, 0xea
mov dword [ebp - 4], eax
jne 0x4271c7
add dword [esi], 0xa
mov eax, dword [esi]
add eax, 4
push eax
mov ecx, edi
call fcn.0042459d
push esi
push dword [edi]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 8]
call ebx
mov dword [ebp - 4], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or ebx, 0xffffffff
cmp dword [ebp - 4], 0
je 0x4271ea
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x4271e5
mov dword [ecx], eax
lea eax, [ebx - 1]
jmp 0x427215
xor ecx, ecx
cmp dword [esi], ecx
jge 0x4271f2
mov dword [esi], ecx
mov eax, dword [edi]
mov edx, dword [esi]
mov byte [eax + edx], 0
mov eax, dword [edi]
add eax, dword [esi]
mov word [eax + 2], cx
mov word [eax], cx
mov eax, dword [esi]
add eax, 5
push eax
mov ecx, edi
call fcn.0042459d
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4274a5
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
push edi
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push 0x7405c
push dword [ebp + 8]
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call ebx
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x18
push esi
push edi
push edi
push 0x70000
push dword [ebp + 8]
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
call ebx
cmp dword [ebp - 8], edi
je 0x427504
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
jmp 0x427521
mov eax, dword [esi + 0x14]
mul dword [esi + 0x10]
push edi
push dword [esi + 0xc]
push edx
push eax
call fcn.00462a80
push dword [esi + 4]
push dword [esi]
push edx
push eax
call fcn.00462a80
pop edi
pop ebx
leave
ret
Function at 0x427525
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
xor esi, esi
push 0xc0
push esi
push dword [ebp + 0xc]
mov dword [eax], esi
call fcn.00461780
mov edi, dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
add esp, 0xc
push esi
lea eax, [ebp - 4]
push eax
mov ebx, 0x100000
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push esi
push esi
push 0x70050
push dword [ebp + 8]
call edi
test eax, eax
je 0x427572
mov eax, dword [ebp + 0xc]
cmp dword [eax], esi
jne 0x42758b
push esi
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0xc]
push esi
push esi
push 0x7400c
push dword [ebp + 8]
call edi
test eax, eax
jne 0x42758f
xor eax, eax
jmp 0x427599
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4275c8
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 4], ebx
push edi
push dword [ebp + 8]
call fcn.0042572e
add esp, 0x10
cmp eax, edi
jne 0x427689
cmp edx, dword [ebp + 0x10]
jne 0x427689
push esi
push ebx
lea eax, [ebp - 4]
push eax
mov esi, 0x200
push esi
lea eax, [ebp - 0x204]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x427688
push esi
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.00461a50
push 0x10
push dword [ebp + 0x14]
lea eax, [ebp - 0x36]
push eax
call fcn.00461a50
push ebx
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call fcn.0042572e
add esp, 0x28
cmp eax, edi
jne 0x427688
cmp edx, dword [ebp + 0x10]
jne 0x427688
push esi
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.00461880
add esp, 0xc
test eax, eax
je 0x427688
push ebx
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x204]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop esi
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret
Function at 0x42774b
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x134
mov ecx, edi
call fcn.00424699
push 0xca
lea ecx, [ebp - 0x10]
call fcn.0042465d
mov eax, dword [ebp + 0x18]
movzx esi, byte [ebp + 0x18]
and eax, 0x100
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
mov edi, dword [edi]
test esi, esi
sete bl
neg esi
sbb esi, esi
and esi, 0x19
cmp dword [ebp + 0x14], 0
mov dword [ebp - 4], eax
mov byte [ebp + 0x1b], 0
lea ebx, [ebx + ebx - 1]
mov edx, esi
je 0x427820
cmp dword [ebp + 0x14], 1
not dword [ebp - 4]
jle 0x427820
and dword [ebp - 4], 0xfffffffc
jmp 0x427820
test edx, edx
jl 0x427825
xor eax, eax
mov ecx, edx
inc eax
shl eax, cl
movsx esi, bl
mov cl, dl
add edx, esi
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
add cl, 0x41
test edx, eax
mov byte [ebp + 0x17], cl
je 0x42781d
cmp dword [ebp - 8], 0
je 0x4277ef
movsx ax, cl
push eax
call fcn.004612e9
test eax, eax
pop ecx
je 0x42781d
mov cl, byte [ebp + 0x17]
cmp byte [ebp + 0x1b], 0
je 0x427803
mov ax, word [ebp + 0xc]
test ax, ax
je 0x427803
mov word [edi], ax
inc edi
inc edi
movsx ax, cl
mov word [edi], ax
inc edi
inc edi
cmp dword [ebp + 0x10], 0
mov byte [ebp + 0x1b], 1
je 0x42781d
mov word [edi], 0x3a
inc edi
inc edi
mov edx, dword [ebp - 0xc]
cmp edx, 0x1a
jl 0x4277b5
mov eax, dword [ebp + 8]
and word [edi], 0
mov esi, dword [eax]
lea ecx, [ebp - 0x10]
call fcn.00424686
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x427912
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
cmp byte [esi], 0x23
push edi
sete byte [ebp + 0xb]
cmp byte [ebp + 0xb], 0
je 0x427929
inc esi
push esi
call fcn.004617f0
mov edi, dword [ebp + 0xc]
pop ecx
lea eax, [eax + eax*2 + 3]
push eax
mov ecx, edi
call fcn.0042459d
mov eax, dword [edi]
xor ebx, ebx
mov byte [eax], 0
mov dword [ebp + 0xc], eax
xor cl, cl
jmp 0x427960
mov dl, byte [esi]
cmp dl, 0x3d
jne 0x42799f
test cl, cl
jle 0x42795f
mov byte [eax], bl
inc eax
xor ebx, ebx
xor cl, cl
inc esi
cmp byte [esi], 0
jne 0x42794d
push dword [ebp + 0xc]
mov byte [eax], 0
call fcn.004617f0
cmp byte [ebp + 0xb], 0
pop ecx
mov esi, eax
je 0x427998
xor ecx, ecx
test esi, esi
jle 0x427998
mov eax, ecx
cdq
push 0x14
pop ebx
idiv ebx
mov eax, dword [ebp + 0xc]
mov dl, byte [edx + 0x479884]
xor byte [ecx + eax], dl
inc ecx
cmp ecx, esi
jl 0x42797f
mov eax, dword [edi]
pop edi
pop esi
pop ebx
pop ebp
ret
cmp dl, 0x2b
jne 0x4279a8
xor dl, dl
jmp 0x4279ce
cmp dl, 0x2f
jne 0x4279b2
add dl, 0xd2
jmp 0x4279ce
cmp dl, 0x39
ja 0x4279bc
add dl, 0xd2
jmp 0x4279ce
cmp dl, 0x5a
ja 0x4279c6
add dl, 0xcb
jmp 0x4279ce
cmp dl, 0x7a
ja 0x4279d3
add dl, 0xc5
movzx edx, dl
jmp 0x4279d6
or edx, 0xffffffff
test edx, edx
jl 0x427a02
shl edx, cl
or ebx, edx
add cl, 6
cmp cl, 8
jge 0x4279f7
test cl, cl
jle 0x42795f
cmp byte [esi], 0
jne 0x42795f
mov byte [eax], bl
inc eax
shr ebx, 8
add cl, 0xf8
jmp 0x4279e1
xor eax, eax
jmp 0x42799a
Function at 0x427ae4
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x427b41
push esi
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [esp + 0xc]
call fcn.0046176a
pop ecx
lea esi, [eax + eax + 2]
push esi
push 0x2000
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push esi
push dword [esp + 0x10]
push eax
call fcn.00461a50
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
pop edi
pop esi
jmp dword [sym.imp.USER32.dll_CloseClipboard]
ret

Function at 0x427cca
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_VirtualProtect]
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x40
mov esi, ecx
push 0xc
push dword [esi]
lea edi, [esi + 4]
call ebx
lea eax, [ebp - 4]
push eax
push 0x40
push 0x12
push edi
call ebx
push 0x12
push 0x47989c
push edi
call fcn.00461a50
mov ecx, dword [ebp + 8]
lea eax, [edi + 0xe]
sub ecx, eax
sub ecx, 4
mov dword [eax], ecx
mov esi, dword [esi + 0x18]
add esp, 0xc
test esi, esi
je 0x427d2e
push edi
push 0xfffffffffffffffc
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x427d2e
mov dword [ecx], eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4283b4
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
push 0x500000
lea ecx, [ebp - 8]
call fcn.00424576
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
add eax, 0x100000
xor ecx, ecx
and eax, 0xfff00000
cmp byte [ebp + 0x1c], cl
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ecx
jne 0x4283f3
mov dword [ebp + 0x18], ecx
mov eax, dword [ebp + 0x18]
mov bl, byte [ebp + 0x1c]
cdq
add eax, edi
push ecx
mov edi, 0x200
push edi
adc edx, esi
push edx
push eax
call fcn.00463ab0
neg bl
sbb ebx, ebx
and ebx, eax
mov dword [ebp - 0xc], ebx
xor ebx, ebx
cmp esi, ebx
jl 0x428510
jle 0x428507
cmp dword [ebp + 0x18], ebx
jne 0x42843e
mov eax, dword [ebp - 0xc]
cdq
cmp dword [ebp + 0x14], edx
jl 0x42843e
jg 0x42843a
cmp dword [ebp + 0x10], eax
jbe 0x42843e
xor dl, dl
jmp 0x428440
mov dl, 1
cmp dword [ebp + 0x14], ebx
jl 0x428457
jg 0x428450
cmp dword [ebp + 0x10], 0x10000000
jbe 0x428457
mov esi, 0x10000000
jmp 0x42845a
mov esi, dword [ebp + 0x10]
test dl, dl
mov ecx, dword [ebp + 0xc]
mov eax, esi
je 0x4284cf
mov esi, edi
sub esi, dword [ebp + 0x18]
xor eax, eax
cmp eax, dword [ebp + 0x14]
jl 0x428479
jg 0x428476
cmp esi, dword [ebp + 0x10]
jbe 0x428479
mov esi, dword [ebp + 0x10]
push 1
push ebx
push ebx
push dword [ebp + 8]
call fcn.0042572e
add esp, 0x10
push ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 4]
push eax
push edi
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x18], edx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [ebp + 0x18]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
add ebx, eax
push ebx
call fcn.00461a50
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp + 8]
call fcn.0042572e
mov ecx, dword [ebp - 0x14]
add esp, 0x1c
mov eax, edi
xor ebx, ebx
jmp 0x4284dd
cmp byte [ebp + 0x1c], 0
je 0x4284dd
and esi, 0xfffffe00
mov eax, esi
push ebx
lea edx, [ebp - 4]
push edx
push eax
push ecx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
sub dword [ebp + 0x10], esi
mov dword [ebp + 0x18], ebx
sbb dword [ebp + 0x14], ebx
add dword [ebp + 0xc], esi
cmp dword [ebp + 0x14], ebx
jg 0x428425
jl 0x428510
cmp dword [ebp + 0x10], ebx
ja 0x428425
lea ecx, [ebp - 8]
call fcn.00424686
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x428523
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x14]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
mov dword [ebp + 0x14], 0x80
jbe 0x4285b2
push ebx
mov ebx, 0x200
push dword [ebp + 0x18]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x42857c
mov eax, dword [ebp - 4]
test eax, eax
jne 0x428572
cmp dword [ebp + 0x14], eax
jg 0x42856f
mov eax, edi
jmp 0x428572
dec dword [ebp + 0x14]
add dword [esi], eax
add dword [ebp + 0xc], eax
sub dword [ebp + 0x10], eax
jmp 0x4285ab
and dword [ebp + 0x14], 0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x70
jne 0x4285b1
cmp edi, ebx
jbe 0x4285b1
cmp dword [ebp + 0x10], ebx
jbe 0x4285a8
add edi, 0x1ff
shr edi, 1
cmp edi, ebx
jbe 0x4285ab
and edi, 0xfffffe00
jmp 0x4285ab
mov edi, dword [ebp + 0x10]
cmp dword [ebp + 0x10], 0
ja 0x428543
pop ebx
xor eax, eax
cmp eax, dword [esi]
pop edi
sbb eax, eax
neg eax
pop esi
leave
ret

Function at 0x4287a8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
and dword [0x48b150], 0
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test byte [ebp - 0xef], 0x80
je 0x4287d5
or dword [0x48b150], 2
test byte [ebp - 0xf0], 0x80
je 0x4287e5
or dword [0x48b150], 4
test byte [ebp - 0xee], 0x80
je 0x4287f5
or dword [0x48b150], 1
test byte [ebp - 0xa5], 0x80
je 0x428805
or dword [0x48b150], 8
test byte [ebp - 0xa4], 0x80
je 0x428815
or dword [0x48b150], 8
leave
ret

Function at 0x428baa
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, 0x104
push edi
mov ecx, esi
call fcn.00424699
mov eax, dword [esi]
and word [eax], 0
mov eax, dword [esi]
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
push eax
push dword [esp + 0x18]
call edi
mov ebx, eax
test ebx, ebx
jle 0x428bf7
mov eax, dword [esi]
cmp word [eax], 0
jne 0x428bf7
lea eax, [ebx + 2]
push eax
mov ecx, esi
call fcn.00424699
inc ebx
push ebx
push dword [esi]
push dword [esp + 0x18]
call edi
pop edi
pop esi
pop ebx
ret
Function at 0x428bfb
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
cmp dword [ebp + 0xc], 2
push ebx
push esi
push edi
jb 0x428d74
cmp dword [ebp + 0xc], 3
jbe 0x428c2a
cmp dword [ebp + 0xc], 5
jne 0x428d74
mov dword [ebp - 8], 0x479204
jmp 0x428c31
mov dword [ebp - 8], 0x479214
push 0x12
xor esi, esi
push esi
push esi
push dword [ebp - 8]
call dword [0x48ad94]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
je 0x428d74
push 0x1c
pop ecx
xor eax, eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], esi
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
lea eax, [ebp - 0x30]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 0xc], esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov dword [ebp - 0x58], ecx
call edi
test eax, eax
je 0x428d6b
mov ebx, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
push esi
push dword [ebp + 0xc]
call edi
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
call ebx
cmp dword [ebp - 4], esi
je 0x428d50
cmp dword [ebp - 4], 0x400
ja 0x428d50
push 0x1c
lea eax, [ebp - 0x74]
push esi
push eax
mov dword [ebp - 0x474], 6
call fcn.00461780
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x474]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x74], 0x1c
call ebx
test eax, eax
je 0x428d50
push esi
push esi
push 3
push esi
push 3
push esi
lea eax, [ebp - 0x470]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x428d50
push esi
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x3c]
push ecx
push esi
push esi
push 0x2d1080
push eax
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x428d47
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x38]
je 0x428d7b
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
inc dword [ebp - 0xc]
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
push esi
push dword [ebp + 0xc]
call edi
test eax, eax
jne 0x428c8a
push dword [ebp + 0xc]
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp + 0xc]
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [ebp - 0x60]
jmp 0x428d76
Function at 0x429279
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
adc ecx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0x14]
push edi
push 0
push eax
push ecx
push esi
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
mov edi, eax
test edi, edi
je 0x4292c6
push 0
push dword [ebp + 0x18]
and esi, 4
push dword [ebp + 0x1c]
or esi, 8
shr esi, 1
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
ret