joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e6e2
Capabilities:
Acquire debug privileges

Disassembly:
xor eax, eax
cmp byte [esp + 4], al
push esi
mov esi, ecx
mov byte [esi], al
je 0x43e712
test byte [0x4dcdac], 4
jne 0x43e712
push eax
push 2
mov byte [esi], 1
or byte [0x4dcdac], 4
push str.SeDebugPrivilege
call fcn.004134e4
add esp, 0xc
mov eax, esi
pop esi
ret 4

Function at 0x43e79f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x43e7c8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebp
ret

Function at 0x43f8c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push edi
push 4
pop edi
push edi
push 0x20019
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043f809
mov esi, eax
add esp, 0x14
cmp esi, 5
je 0x43f91a
test esi, esi
jne 0x43f922
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 5
jne 0x43f922
test edi, edi
je 0x43f922
xor edi, edi
jmp 0x43f8d1
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x43f928
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
mov ecx, dword [ebp + 8]
je 0x43f957
push 4
push 0x20006
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push ecx
call fcn.0043f809
mov ecx, dword [ebp - 4]
add esp, 0x14
test eax, eax
jne 0x43f981
push esi
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 4], 0
mov esi, eax
je 0x43f97e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x43f983
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
mov ecx, dword [ebp + 8]
je 0x43f9af
push 4
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push ecx
call fcn.0043f809
mov ecx, dword [ebp - 4]
add esp, 0x14
test eax, eax
jne 0x43f9ce
push esi
push dword [ebp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp dword [ebp - 4], 0
mov esi, eax
je 0x43f9cb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x4400f8
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4dc2e8], 0
push edi
mov edi, ecx
jne 0x440317
and dword [ebp - 4], 0
push esi
push 4
push 2
push str.SeDebugPrivilege
call fcn.004134e4
lea eax, [ebp - 4]
push eax
push 0x4dc2e4
mov esi, str.WS2_32.DLL
push esi
push str.WSAStartup
call fcn.0043fb6c
lea eax, [ebp - 4]
push eax
push 0x4dc2ec
push esi
push str.shutdown
call fcn.0043fb6c
lea eax, [ebp - 4]
push eax
push 0x4dc2f0
push esi
push str.closesocket
call fcn.0043fb6c
lea eax, [ebp - 4]
push eax
push 0x4dc2f4
push esi
push str.connect
call fcn.0043fb6c
add esp, 0x4c
lea eax, [ebp - 4]
push eax
push 0x4dc2f8
push esi
push str.send
call fcn.0043fb6c
lea eax, [ebp - 4]
push eax
push 0x4dc2fc
push esi
push str.select
call fcn.0043fb6c
lea eax, [ebp - 4]
push eax
push 0x4dc300
push esi
push str.recvfrom
call fcn.0043fb6c
lea eax, [ebp - 4]
push eax
push 0x4dc304
push esi
push str.sendto
call fcn.0043fb6c
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x4dc308
push esi
push str.bind
call fcn.0043fb6c
lea eax, [ebp - 4]
push eax
push 0x4dc30c
push esi
push str.listen
call fcn.0043fb6c
lea eax, [ebp - 4]
push eax
push 0x4dc310
push esi
push str.accept
call fcn.0043fb6c
lea eax, [ebp - 4]
push eax
push 0x4dc318
push esi
push str.getsockname
call fcn.0043fb6c
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x4dc314
push esi
push str.getpeername
call fcn.0043fb6c
lea eax, [ebp - 4]
push eax
push 0x4dc31c
push esi
push str.ioctlsocket
call fcn.0043fb6c
lea eax, [ebp - 4]
push eax
push 0x4dc320
push esi
push str.setsockopt
call fcn.0043fb6c
lea eax, [ebp - 4]
push eax
push 0x4dc324
push esi
push str.ntohl
call fcn.0043fb6c
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x4dc328
push esi
push str.htonl
call fcn.0043fb6c
lea eax, [ebp - 4]
push eax
push 0x4dc32c
push esi
push str.htons
call fcn.0043fb6c
lea eax, [ebp - 4]
push eax
push 0x4dc330
push esi
push str.inet_addr
call fcn.0043fb6c
lea eax, [ebp - 4]
push eax
push 0x4dc334
push esi
push str.gethostbyname
call fcn.0043fb6c
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x4dc338
push esi
push str.inet_ntoa
call fcn.0043fb6c
lea eax, [ebp - 4]
push eax
push 0x4dc33c
push esi
push str.WSAGetLastError
call fcn.0043fb6c
lea eax, [ebp - 4]
push eax
push 0x4dc340
push esi
push str.__WSAFDIsSet
call fcn.0043fb6c
lea eax, [ebp - 4]
push eax
push 0x4dc2e8
push esi
push str.socket
call fcn.0043fb6c
add esp, 0x40
pop esi
mov eax, edi
pop edi
leave
ret
Function at 0x44139c
Capabilities:
Check for time delay via gettickcount
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
xor eax, eax
mov byte [ebp - 0x24], 0
and dword [ebp - 8], 0
lea edi, [ebp - 0x23]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x24]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x10], 0xc
call fcn.0044137d
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
pop ecx
call edi
cmp dword [ebp + 0x10], 0
mov dword [ebp - 4], eax
je 0x441418
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
jmp 0x44140c
test ebx, ebx
jle 0x441416
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x441416
call edi
sub eax, dword [ebp - 4]
cmp ebx, eax
jbe 0x441416
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x4413ec
pop esi
pop ebx
push 0
push 0x80
push 3
lea eax, [ebp - 0x10]
push eax
push 3
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
pop edi
leave
ret

Function at 0x441438
Capabilities:
Find taskbar

Disassembly:
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
push 0
push str.TrayNotifyWnd
push 0
push eax
call dword [sym.imp.USER32.dll_FindWindowExA]
ret

Function at 0x4414d2
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4dc428]
mov edx, dword [0x4dc42c]
mov ecx, eax
or ecx, edx
jne 0x4415f0
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0x12c]
push edi
push eax
call fcn.004adaa0
add esp, 0xc
lea eax, [ebp - 0x12c]
push eax
mov dword [ebp - 0x12c], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x128]
mov ecx, 0x50000
cmp ecx, eax
sbb cl, cl
inc cl
mov byte [0x4da35d], cl
xor ecx, ecx
shld ecx, eax, 0x10
shl eax, 0x10
mov esi, eax
movzx eax, word [ebp - 0x124]
cdq
or esi, eax
movzx eax, word [ebp - 0x120]
or ecx, edx
shld ecx, esi, 0x10
cdq
shl esi, 0x10
or ecx, edx
or esi, eax
cmp ecx, 6
mov dword [0x4dc428], esi
mov dword [0x4dc42c], ecx
jb 0x4415ea
ja 0x441579
cmp esi, 0x20000
jb 0x4415ea
lea eax, [ebp - 0x10]
push eax
push 0x4dc41c
push str.NTDLL.DLL
push str.RtlGetNtVersionNumbers
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
call fcn.0043fb6c
mov eax, dword [0x4dc41c]
add esp, 0x10
cmp eax, edi
je 0x4415b7
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
call eax
mov eax, dword [ebp - 8]
xor ecx, ecx
shld ecx, eax, 0x10
shl eax, 0x10
mov esi, eax
movzx eax, word [ebp - 0xc]
cdq
or esi, eax
movzx eax, word [ebp - 4]
or ecx, edx
shld ecx, esi, 0x10
cdq
shl esi, 0x10
or esi, eax
or ecx, edx
mov dword [0x4dc428], esi
mov dword [0x4dc42c], ecx
pop edi
mov eax, esi
mov edx, ecx
pop esi
leave
ret
Function at 0x4419a2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
cmp ebx, edi
mov esi, ecx
jne 0x4419b6
lea ebx, [ebp + 0x10]
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
jl 0x4419f9
mov eax, dword [esi + 4]
push edi
lea ecx, [ebp + 0x10]
push ecx
push 0x1000
push eax
push dword [esi]
mov dword [esi + 8], edi
mov dword [ebp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0xc], ecx
jne 0x4419ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x4419f9
cmp dword [ebp + 0x10], edi
jne 0x4419f9
dec dword [esi + 0x14]
jns 0x4419be
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
jge 0x441a19
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 [ebx], eax
jmp 0x441a1d
mov dword [ebx], edi
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x441e70
Capabilities:
Delete registry key

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x108
push esi
push edi
mov ax, word [ebp + 0x7c]
push 0x20
pop ecx
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionExplorerMountPoints_
lea edi, [ebp - 0x10]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x21
pop ecx
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionExplorerMountPoints2_
lea edi, [ebp - 0x94]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov word [ebp + 0x6e], ax
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x10]
push eax
mov edi, 0x80000001
push edi
call esi
lea eax, [ebp - 0x94]
push eax
push edi
call esi
pop edi
pop esi
add ebp, 0x74
leave
ret

Function at 0x44212c
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 0x44218b
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
jmp 0x4421a8
mov eax, dword [esi + 0x14]
mul dword [esi + 0x10]
push edi
push dword [esi + 0xc]
push edx
push eax
call fcn.004adbb0
push dword [esi + 4]
push dword [esi]
push edx
push eax
call fcn.004adbb0
pop edi
pop ebx
leave
ret
Function at 0x44239f
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor ebx, ebx
push 0xc0
push ebx
push esi
mov dword [eax], ebx
mov edi, esi
call fcn.004adaa0
add esp, 0xc
push ebx
lea eax, [ebp + 0xc]
push eax
push 0x100000
push esi
push ebx
push ebx
push 0x70050
push dword [ebp + 8]
mov dword [ebp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x442491
push ebx
lea eax, [ebp + 0xc]
push eax
push 0xfff70
push esi
push ebx
push ebx
push 0x7400c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x44249b
mov eax, dword [esi]
mov ecx, dword [ebp + 0x10]
lea edx, [eax - 1]
cmp edx, ebx
mov dword [ecx], eax
lea edi, [esi + 0x90]
jl 0x44247f
lea eax, [edx + edx*8]
mov ecx, edx
shl eax, 4
shl ecx, 5
inc edx
lea eax, [eax + edi + 0x40]
lea ecx, [ecx + esi + 0x10]
mov dword [ebp - 4], edx
mov edx, dword [ecx - 8]
mov dword [eax - 8], edx
mov edx, dword [ecx - 4]
mov dword [eax - 4], edx
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 0xc]
mov dword [eax + 8], edx
mov dl, byte [ecx + 0x13]
mov byte [eax + 0xc], dl
mov dword [eax - 0x10], ebx
mov dl, byte [ecx + 0x11]
mov byte [eax + 0x11], dl
mov edx, dword [ecx + 8]
mov dword [eax + 0x14], edx
mov dl, byte [ecx + 0x10]
mov byte [eax + 0x10], dl
mov dl, byte [ecx + 0x12]
mov byte [eax + 0x12], dl
sub ecx, 0x20
sub eax, 0x90
dec dword [ebp - 4]
jne 0x442435
mov eax, dword [esi + 4]
mov dword [edi + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [edi], ebx
mov eax, dword [eax]
mov dword [edi + 4], eax
jmp 0x442499
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x442905
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
push ebx
push esi
push edi
xor esi, esi
push esi
push dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x318], esi
mov ecx, 0xc3
lea edi, [ebp - 0x314]
rep stosd dword es:[edi], eax
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor edi, edi
inc edi
test eax, eax
jne 0x44294c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov dword [ebp - 4], edi
je 0x44294f
mov dword [ebp - 4], esi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push 0x2200000
push 3
push esi
push esi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x44297c
xor eax, eax
jmp 0x442a04
push dword [ebp + 0xc]
mov dword [ebp - 0x318], 0xa0000003
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push dword [ebp + 0xc]
shl eax, 1
mov word [ebp - 0x30e], ax
mov eax, dword [ebp - 0x30e]
add eax, 2
mov word [ebp - 0x30c], ax
lea eax, [ebp - 0x308]
push eax
call fcn.004afff5
movzx eax, word [ebp - 0x30e]
pop ecx
pop ecx
push esi
lea ecx, [ebp - 8]
push ecx
push esi
add eax, 0xc
push esi
mov dword [ebp - 0x314], eax
add eax, 8
push eax
lea eax, [ebp - 0x318]
push eax
push 0x900a4
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4429fb
cmp dword [ebp - 4], esi
jne 0x4429f9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x442abf
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x442b1c
push esi
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
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.00414409
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 0x442b1d
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 2
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
jle 0x442b44
push dword [ebp + 0x10]
push edi
push esi
call fcn.00402cff
add esp, 0xc
test al, al
je 0x442b44
mov eax, dword [ebp + 0x10]
jmp 0x442b63
mov ax, word [esi]
cmp ax, word [edi]
jne 0x442b61
mov ax, word [edi + 2]
cmp word [esi + 2], ax
jne 0x442b61
cmp ax, 0x3a
jne 0x442b61
push 2
pop eax
jmp 0x442b63
xor eax, eax
push 0
lea eax, [esi + eax*2]
push eax
push edi
call fcn.00442a09
add esp, 0xc
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
pop edi
pop esi
pop ebp
ret
Function at 0x442bbf
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 0x4c7a6c
push edi
call fcn.00414409
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 0x442c23
push edi
push 0xfffffffffffffffc
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x442c23
mov dword [ecx], eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x44321d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
and dword [esi], 0
push edi
mov dword [ebp + 0x10], 0x80
mov edi, ebx
test ebx, ebx
ja 0x443246
xor eax, eax
cmp eax, dword [esi]
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
pop ebp
ret
and dword [ebp + 0x14], 0
push 0
lea eax, [ebp + 0x14]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44327d
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x443274
cmp dword [ebp + 0x10], eax
jg 0x443271
mov eax, edi
jmp 0x443274
dec dword [ebp + 0x10]
add dword [esi], eax
add dword [ebp + 0xc], eax
sub ebx, eax
jmp 0x443235
and dword [ebp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x70
jne 0x443239
mov eax, dword [ebp + 0x18]
cmp edi, eax
jbe 0x443239
cmp ebx, eax
jbe 0x443233
lea edi, [edi + eax - 1]
shr edi, 1
cmp edi, eax
jbe 0x443235
and edi, 0xfffffe00
jmp 0x443235

Function at 0x443331
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
and dword [0x4dc4bc], 0
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test byte [ebp - 0xef], 0x80
je 0x44335e
or dword [0x4dc4bc], 2
test byte [ebp - 0xf0], 0x80
je 0x44336e
or dword [0x4dc4bc], 4
test byte [ebp - 0xee], 0x80
je 0x44337e
or dword [0x4dc4bc], 1
test byte [ebp - 0xa5], 0x80
je 0x44338e
or dword [0x4dc4bc], 8
test byte [ebp - 0xa4], 0x80
je 0x44339e
or dword [0x4dc4bc], 8
leave
ret
Function at 0x444264
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
mov eax, dword [ebp + 0x10]
push esi
xor esi, esi
cmp eax, esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], esi
jne 0x44429f
cmp dword [ebp + 0xc], 2
jb 0x4442b4
cmp dword [ebp + 0xc], 3
jbe 0x444298
cmp dword [ebp + 0xc], 5
jne 0x4442b4
mov dword [ebp - 4], 0x4c2018
jmp 0x44429f
mov dword [ebp - 4], 0x4c2028
push 0x12
push esi
push esi
push dword [ebp - 4]
call dword [0x4dbf70]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x4442bb
xor eax, eax
jmp 0x4443fb
push edi
push 0x1c
pop ecx
xor eax, eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], esi
lea edi, [ebp - 0x2c]
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 - 0x34]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
push esi
push dword [ebp - 8]
mov dword [ebp + 0x10], esi
mov dword [ebp - 0x5c], ecx
call edi
test eax, eax
je 0x4443ee
push ebx
mov ebx, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
push esi
push dword [ebp - 8]
call edi
push esi
lea eax, [ebp + 0x10]
push eax
push esi
push esi
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 8]
mov dword [ebp + 0x10], esi
call ebx
cmp dword [ebp + 0x10], esi
je 0x4443c1
cmp dword [ebp + 0x10], 0x400
ja 0x4443c1
push 0x1c
lea eax, [ebp - 0x78]
push esi
push eax
mov dword [ebp - 0x478], 6
call fcn.004adaa0
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 8]
mov dword [ebp - 0x78], 0x1c
call ebx
test eax, eax
je 0x4443c1
push esi
push esi
push 3
push esi
push 3
push esi
lea eax, [ebp - 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x4443c1
push esi
lea ecx, [ebp - 0x18]
push ecx
push 0xc
lea ecx, [ebp - 0x40]
push ecx
push esi
push esi
push 0x2d1080
push eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4443b8
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x3c]
je 0x4443de
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0xc]
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
push esi
push dword [ebp - 8]
call edi
test eax, eax
jne 0x4442fb
jmp 0x4443ed
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x14], eax
pop ebx
push dword [ebp - 8]
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
leave
ret

Function at 0x44456e
Capabilities:
Set environment variable

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, dword [esp + 0xc]
push esi
call fcn.0044451e
push dword [esp + 0xc]
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop esi
ret 8
Function at 0x44561a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
mov esi, dword [ebp + 8]
cmp word [esi], 0x7a
push edi
jbe 0x4456d8
cmp word [esi + 2], 0x3a
jne 0x4456d8
cmp word [esi + 4], 0
jne 0x4456d8
mov eax, dword [ebp + 0x14]
and word [ebp - 0x20c], 0
test eax, eax
je 0x44565a
and dword [eax], 0
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ax, word [esi]
cmp ax, word [ebp - 0x20c]
jne 0x4456b1
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
inc edi
cmp edi, 4
jbe 0x4456b1
cmp dword [ebp + 0xc], edi
jae 0x445696
mov eax, edi
jmp 0x4456e8
lea eax, [edi + edi]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x10]
call fcn.00414409
add esp, 0xc
lea eax, [edi - 1]
jmp 0x4456e8
push 4
pop eax
cmp dword [ebp + 0xc], eax
jb 0x4456e8
mov eax, dword [ebp + 0x10]
mov cx, word [esi]
and word [eax + 6], 0
push 3
mov word [eax], cx
mov word [eax + 2], 0x3a
mov word [eax + 4], 0x5c
pop eax
jmp 0x4456e8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
pop edi
pop esi
leave
ret