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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
cmp word [eax], 0x2a
push ebx
push esi
lea eax, [ebp + 8]
push edi
push eax
sete byte [ebp - 4]
call fcn.00403c51
mov edi, dword [ebp + 8]
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 2]
push eax
lea eax, [ebp - 5]
push eax
lea eax, [ebp - 6]
push eax
lea eax, [ebp - 3]
push eax
lea ebx, [ebp + 8]
mov byte [ebp - 2], 0x2a
mov byte [ebp - 3], 0
mov byte [ebp - 1], 0
call fcn.0041519d
mov eax, dword [ebp + 8]
add esp, 0x18
xor ebx, ebx
cmp word [eax], bx
mov esi, 0x4975e4
push esi
je 0x41c59c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [ebp - 4], bl
je 0x41c50c
cmp dword [0x496dd0], ebx
jne 0x41c609
mov eax, dword [ebp + 8]
movsx ecx, byte [ebp - 2]
mov byte [0x495271], 0xff
movzx edx, word [eax]
cmp ecx, edx
mov byte [0x496e0c], 1
jne 0x41c537
movzx eax, word [eax + 2]
cmp ecx, eax
jne 0x41c537
mov byte [0x495271], 0
push 0x496b6c
push 0x10000
push edi
push 0x41c485
push 0x100000
push ebx
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 - 0x18], eax
cmp word [edi], bx
jne 0x41c57e
cmp byte [0x496e0c], 0
je 0x41c697
call esi
sub eax, dword [ebp - 0x18]
cmp eax, 0x7d0
jae 0x41c697
push 0x14
mov ecx, 0x496eb8
call fcn.0040b65c
jmp 0x41c56c
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], 0xbb8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x496dd0]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
push str.LogohWnd
mov ebx, str.SOFTWAREPELOGON
push ebx
mov edi, 0x80000002
push edi
mov dword [ebp - 0x1c], 4
call fcn.00427d32
push str.LogohWnd
push ebx
push edi
call fcn.00427e20
xor ecx, ecx
add esp, 0x24
cmp dword [ebp - 0x10], ecx
jne 0x41c615
mov eax, dword [ebp - 0x14]
cmp eax, ecx
mov dword [ebp - 0x10], eax
jne 0x41c615
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x41c697
mov edx, dword [ebp - 0x10]
cmp edx, dword [0x496dd0]
mov al, byte [ebp - 3]
jne 0x41c632
test al, al
jne 0x41c62f
cmp byte [ebp - 1], al
jne 0x41c62f
xor ecx, ecx
inc ecx
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0xc]
neg ecx
sbb ecx, ecx
lea edi, [ebp - 0xc]
and ecx, edi
neg al
push ecx
sbb eax, eax
add eax, 0x67
push eax
push 0x111
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
cmp byte [ebp - 1], 0
mov ebx, eax
je 0x41c678
mov edi, 0x496dd0
mov dword [ebp - 0x18], 0xfa0
jmp 0x41c692
mov edi, dword [ebp - 0x24]
jmp 0x41c692
call esi
sub eax, ebx
cmp eax, dword [ebp - 0x18]
jae 0x41c697
push 0xa
mov ecx, 0x496eb8
call fcn.0040b65c
cmp dword [edi], 0
jne 0x41c67d
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x41cc89
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x9c
push ebx
push esi
mov esi, dword [ebp + 0x7c]
push edi
push 0x481fac
lea ecx, [ebp + 0x64]
sar esi, 0x10
call fcn.004361de
mov ebx, dword [ebp + 0x74]
push esi
push dword [ebx]
call fcn.0040c61c
pop ecx
pop ecx
push 0x20a
lea ecx, [ebp + 0x68]
mov dword [ebp + 0x74], eax
call fcn.0042c415
push dword [ebp + 0x68]
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, dword [ebp + 0x78]
push edi
lea ecx, [ebp - 0x30]
call fcn.0040a725
push edi
lea ecx, [ebp - 0x30]
call fcn.0040adf5
push dword [ebp + 0x68]
mov eax, dword [edi + 0x18]
push 0x483344
mov dword [ebp - 0x18], eax
call fcn.0042af0d
movzx eax, si
push eax
lea ecx, [ebp - 0x30]
mov word [ebp - 0x28], si
call fcn.0042a69e
mov ecx, dword [ebp + 0x7c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 0x64]
push eax
push dword [ebp + 0x74]
push 0
push ebx
call fcn.0041bc7f
movzx esi, ax
or esi, dword [ebp + 0x7c]
add esp, 0x14
mov ebx, 0x4975e4
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0xffffffffffffffff
push 0
push 0x4833b8
mov ecx, edi
call fcn.0040f12a
test eax, eax
je 0x41cd5b
push dword [eax]
lea ecx, [ebp - 0x30]
push 0x483348
call fcn.0042af0d
and dword [ebp + 0x10], 0
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
lea ecx, [ebp - 0x30]
call fcn.0041c401
lea ecx, [ebp + 0xc]
call fcn.0042704a
lea ecx, [ebp + 0x68]
call fcn.0042704a
lea ecx, [ebp + 0x64]
call fcn.0042704a
pop edi
mov eax, esi
pop esi
pop ebx
add ebp, 0x6c
leave
ret
Function at 0x41e033
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 0x20a
lea ecx, [ebp - 4]
call fcn.0042c415
mov eax, dword [ebp - 4]
mov word [eax], 0x20
mov eax, dword [ebp - 4]
and word [eax + 2], 0
mov eax, dword [ebp - 4]
push 0x208
add eax, 2
push eax
push str.SystemRoot
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push str.System32OnShutdown.wcs
lea ecx, [ebp - 4]
call fcn.0042c465
mov cl, byte [ebp + 0xc]
test cl, 0x20
mov eax, str.unknown
je 0x41e08c
mov eax, 0x480eec
test cl, 0x10
je 0x41e096
mov eax, str.reboot
test cl, 2
je 0x41e0a0
mov eax, str.logout
test cl, 4
je 0x41e0aa
mov eax, str.suspend
test cl, 8
je 0x41e0b4
mov eax, str.hiber
test cl, 0x40
je 0x41e0be
mov eax, str.poweroff
test cl, cl
jns 0x41e0c7
mov eax, str.lock
push ebx
push esi
push edi
push eax
lea ecx, [ebp - 4]
call fcn.0042c465
push 0x4810a0
lea ecx, [ebp - 4]
call fcn.0042c465
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.0042c465
push dword [ebp - 4]
mov ebx, 0x496eb8
mov ecx, ebx
call fcn.0041cfc7
test byte [ebp + 0xc], 0x70
push 6
pop ecx
mov esi, str._25INDATA
lea edi, [ebp - 0x1c]
rep movsd dword es:[edi], dword [esi]
je 0x41e118
lea eax, [ebp - 0x1c]
push eax
mov ecx, ebx
call fcn.0041cfc7
lea ecx, [ebp - 4]
call fcn.0042704a
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41e125
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
push edi
and eax, 0xfffffffe
push eax
push dword [ebp + 0x10]
call fcn.0041e033
push 2
push str.SeShutdownPrivilege
and esi, 0x4000
call fcn.0040d3a0
push 2
push str.SeRemoteShutdownPrivilege
call fcn.0040d3a0
add esp, 0x18
call fcn.0040b9f7
xor edi, edi
test byte [ebp + 0xc], 1
jne 0x41e189
cmp eax, 0x60002
jb 0x41e189
xor eax, eax
cmp dword [ebp + 8], edi
setne al
push eax
push 1
push edi
push 0x480934
push edi
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
cmp esi, edi
mov dword [ebp - 4], edi
jne 0x41e1a8
lea eax, [ebp - 4]
push eax
push 1
push 2
push edi
push 1
push 0x16
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
push str.NtShutdownSystem
push str.NTDLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
xor eax, eax
inc eax
cmp ecx, edi
je 0x41e1d4
xor eax, eax
cmp dword [ebp + 8], edi
sete al
inc eax
push eax
call ecx
pop edi
pop esi
leave
ret
Function at 0x41f272
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov ecx, dword [ebp + 8]
mov ax, word [ecx]
cmp ax, 0x40
jne 0x41f29c
add ecx, 2
push ecx
call fcn.0040ce49
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call fcn.0040a910
jmp 0x41f2e5
cmp ax, 0x23
jne 0x41f2b1
add ecx, 2
push 0
push ecx
call fcn.0041dbfb
pop ecx
pop ecx
jmp 0x41f2e5
xor edx, edx
cmp ax, dx
je 0x41f2c1
push ecx
call fcn.00415c5b
pop ecx
leave
ret
push esi
push edi
push 0x10
pop ecx
mov esi, str.PATH____SystemRoot_SYSTEM32
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
push edx
push edx
push edx
lea eax, [ebp - 0x44]
push eax
mov ecx, 0x496eb8
movsw word es:[edi], word [esi]
call fcn.00420c52
pop edi
pop esi
xor eax, eax
leave
ret
Function at 0x427d32
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ax, word [0x496b68]
push esi
xor esi, esi
cmp ax, si
jne 0x427d5e
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x496d5c]
jmp 0x427da6
push esi
lea ecx, [ebp - 4]
push ecx
push esi
movzx eax, ax
or eax, 0x20019
push eax
push esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x427da6
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
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]
mov eax, esi
pop esi
leave
ret

Function at 0x427da9
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ax, word [0x496b68]
push esi
xor esi, esi
cmp ax, si
jne 0x427dd5
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x496fd0]
jmp 0x427e1d
push esi
lea ecx, [ebp - 4]
push ecx
push esi
movzx eax, ax
or eax, 0x20006
push eax
push esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x427e1d
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x427e20
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ax, word [0x496b68]
test ax, ax
jne 0x427e40
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x496fd4]
leave
ret
and dword [ebp - 4], 0
movzx eax, ax
lea ecx, [ebp - 4]
push ecx
or eax, 2
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x427e7c
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x42842a
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x497030], 0
push edi
mov edi, ecx
jne 0x428659
and dword [ebp - 4], 0
test byte [0x4971a8], 4
jne 0x428460
or byte [0x4971a8], 8
push 2
push str.SeDebugPrivilege
call fcn.0040d3a0
pop ecx
pop ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x49702c
mov esi, str.WS2_32.DLL
push esi
push str.WSAStartup
call fcn.00427f74
lea eax, [ebp - 4]
push eax
push 0x497034
push esi
push str.shutdown
call fcn.00427f74
lea eax, [ebp - 4]
push eax
push 0x497038
push esi
push str.closesocket
call fcn.00427f74
lea eax, [ebp - 4]
push eax
push 0x49703c
push esi
push str.connect
call fcn.00427f74
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x497040
push esi
push str.send
call fcn.00427f74
lea eax, [ebp - 4]
push eax
push 0x497044
push esi
push str.select
call fcn.00427f74
lea eax, [ebp - 4]
push eax
push 0x497048
push esi
push str.recvfrom
call fcn.00427f74
lea eax, [ebp - 4]
push eax
push 0x49704c
push esi
push str.sendto
call fcn.00427f74
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x497050
push esi
push str.bind
call fcn.00427f74
lea eax, [ebp - 4]
push eax
push 0x497054
push esi
push str.listen
call fcn.00427f74
lea eax, [ebp - 4]
push eax
push 0x497058
push esi
push str.accept
call fcn.00427f74
lea eax, [ebp - 4]
push eax
push 0x497060
push esi
push str.getsockname
call fcn.00427f74
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x49705c
push esi
push str.getpeername
call fcn.00427f74
lea eax, [ebp - 4]
push eax
push 0x497064
push esi
push str.ioctlsocket
call fcn.00427f74
lea eax, [ebp - 4]
push eax
push 0x497068
push esi
push str.setsockopt
call fcn.00427f74
lea eax, [ebp - 4]
push eax
push 0x49706c
push esi
push str.ntohl
call fcn.00427f74
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x497070
push esi
push str.htonl
call fcn.00427f74
lea eax, [ebp - 4]
push eax
push 0x497074
push esi
push str.htons
call fcn.00427f74
lea eax, [ebp - 4]
push eax
push 0x497078
push esi
push str.inet_addr
call fcn.00427f74
lea eax, [ebp - 4]
push eax
push 0x49707c
push esi
push str.gethostbyname
call fcn.00427f74
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x497080
push esi
push str.inet_ntoa
call fcn.00427f74
lea eax, [ebp - 4]
push eax
push 0x497084
push esi
push str.WSAGetLastError
call fcn.00427f74
lea eax, [ebp - 4]
push eax
push 0x497088
push esi
push str.__WSAFDIsSet
call fcn.00427f74
lea eax, [ebp - 4]
push eax
push 0x497030
push esi
push str.socket
call fcn.00427f74
add esp, 0x40
pop esi
mov eax, edi
pop edi
leave
ret
Function at 0x428c7c
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 0x428ce7
cmp edi, dword [esp + 0xc]
je 0x428ce7
mov eax, dword [0x49715c]
cmp eax, edi
je 0x428ce7
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 0x428cce
push ebp
push ebp
push dword [0x49715c]
call esi
push eax
push ebp
push dword [esp + 0x20]
call esi
push eax
call ebx
push 1
push ebp
push edi
mov dword [0x49715c], 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 0x42922b
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 0x4294c6
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 0x4294d7
lea edi, [ebp + 0x10]
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
jl 0x429503
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 0x429523
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 0x429528
and dword [edi], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4298e2
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 0x429941
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
jmp 0x42995e
mov eax, dword [esi + 0x14]
mul dword [esi + 0x10]
push edi
push dword [esi + 0xc]
push edx
push eax
call fcn.0046d500
push dword [esi + 4]
push dword [esi]
push edx
push eax
call fcn.0046d500
pop edi
pop ebx
leave
ret
Function at 0x429b49
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
push 0xc0
push esi
push ebx
mov dword [edi], esi
call fcn.0046c4e0
add esp, 0xc
push esi
lea eax, [ebp + 0x10]
push eax
push 0x100000
push ebx
push esi
push esi
push 0x70050
push dword [ebp + 8]
mov dword [ebp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x429b91
mov eax, dword [ebx + 4]
mov dword [edi], eax
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x429d91
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x429dee
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.0046c720
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 0x429e24
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 0x484f34
push edi
call fcn.0046c720
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 0x429e88
push edi
push 0xfffffffffffffffc
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x429e88
mov dword [ecx], eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x42a480
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 0x42a50f
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 0x42a4d9
mov eax, dword [ebp - 4]
test eax, eax
jne 0x42a4cf
cmp dword [ebp + 0x14], eax
jg 0x42a4cc
mov eax, edi
jmp 0x42a4cf
dec dword [ebp + 0x14]
add dword [esi], eax
add dword [ebp + 0xc], eax
sub dword [ebp + 0x10], eax
jmp 0x42a508
and dword [ebp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x70
jne 0x42a50e
cmp edi, ebx
jbe 0x42a50e
cmp dword [ebp + 0x10], ebx
jbe 0x42a505
add edi, 0x1ff
shr edi, 1
cmp edi, ebx
jbe 0x42a508
and edi, 0xfffffe00
jmp 0x42a508
mov edi, dword [ebp + 0x10]
cmp dword [ebp + 0x10], 0
ja 0x42a4a0
pop ebx
xor eax, eax
cmp eax, dword [esi]
pop edi
sbb eax, eax
neg eax
pop esi
leave
ret

Function at 0x42a58a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
and dword [0x49718c], 0
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test byte [ebp - 0xef], 0x80
je 0x42a5b7
or dword [0x49718c], 2
test byte [ebp - 0xf0], 0x80
je 0x42a5c7
or dword [0x49718c], 4
test byte [ebp - 0xee], 0x80
je 0x42a5d7
or dword [0x49718c], 1
test byte [ebp - 0xa5], 0x80
je 0x42a5e7
or dword [0x49718c], 8
test byte [ebp - 0xa4], 0x80
je 0x42a5f7
or dword [0x49718c], 8
leave
ret
Function at 0x42ac6b
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 0x42ade4
cmp dword [ebp + 0xc], 3
jbe 0x42ac9a
cmp dword [ebp + 0xc], 5
jne 0x42ade4
mov dword [ebp - 8], 0x48155c
jmp 0x42aca1
mov dword [ebp - 8], 0x48156c
push 0x12
xor esi, esi
push esi
push esi
push dword [ebp - 8]
call dword [0x496d98]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
je 0x42ade4
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 0x42addb
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 0x42adc0
cmp dword [ebp - 4], 0x400
ja 0x42adc0
push 0x1c
lea eax, [ebp - 0x74]
push esi
push eax
mov dword [ebp - 0x474], 6
call fcn.0046c4e0
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 0x42adc0
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 0x42adc0
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 0x42adb7
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x38]
je 0x42adeb
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 0x42acfa
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 0x42ade6

Function at 0x42af5d
Capabilities:
Set environment variable

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, dword [esp + 0xc]
push esi
call fcn.0042af0d
push dword [esp + 0xc]
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop esi
ret 8