joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41fa31
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xa8
push ebx
push esi
mov esi, dword [ebp + 0x7c]
push edi
push 0x490104
lea ecx, [ebp + 0x64]
sar esi, 0x10
call fcn.0043ccfc
mov ebx, dword [ebp + 0x74]
push esi
push dword [ebx]
call fcn.0040deff
pop ecx
pop ecx
push 0x20a
lea ecx, [ebp + 0x68]
mov dword [ebp + 0x74], eax
call fcn.00432cd5
push dword [ebp + 0x68]
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, dword [ebp + 0x78]
push edi
lea ecx, [ebp - 0x3c]
call fcn.0040bd26
push edi
lea ecx, [ebp - 0x3c]
call fcn.0040c3c6
push dword [ebp + 0x68]
mov eax, dword [edi + 0x18]
push 0x4902f4
mov dword [ebp - 0x24], eax
call fcn.00432698
movzx eax, si
push eax
lea ecx, [ebp - 0x3c]
mov word [ebp - 0x34], si
call fcn.00431b8e
mov ecx, dword [ebp + 0x7c]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp + 0x64]
push eax
push dword [ebp + 0x74]
push 0
push ebx
call fcn.0041d22a
movzx esi, ax
or esi, dword [ebp + 0x7c]
add esp, 0x14
mov edi, 0x4a6658
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp + 0xc], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
lea ecx, [ebp - 0x3c]
call fcn.0041f0e9
lea ecx, [ebp + 8]
call fcn.0042dd2d
lea ecx, [ebp + 0x68]
call fcn.0042dd2d
lea ecx, [ebp + 0x64]
call fcn.0042dd2d
pop edi
mov eax, esi
pop esi
pop ebx
add ebp, 0x6c
leave
ret
Function at 0x4214ab
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 0x20a
lea ecx, [ebp - 4]
call fcn.00432cd5
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.00432d25
mov cl, byte [ebp + 0xc]
test cl, 0x20
mov eax, str.unknown
je 0x421504
mov eax, 0x48ef64
test cl, 0x10
je 0x42150e
mov eax, str.reboot
test cl, 2
je 0x421518
mov eax, str.logout
test cl, 4
je 0x421522
mov eax, str.suspend
test cl, 8
je 0x42152c
mov eax, str.hiber
test cl, 0x40
je 0x421536
mov eax, str.poweroff
test cl, cl
jns 0x42153f
mov eax, str.lock
push ebx
push esi
push edi
push eax
lea ecx, [ebp - 4]
call fcn.00432d25
push 0x48f120
lea ecx, [ebp - 4]
call fcn.00432d25
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.00432d25
push dword [ebp - 4]
mov ebx, 0x4a5f08
mov ecx, ebx
call fcn.0041fd16
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 0x421590
lea eax, [ebp - 0x1c]
push eax
mov ecx, ebx
call fcn.0041fd16
lea ecx, [ebp - 4]
call fcn.0042dd2d
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42159d
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.004214ab
push 2
push str.SeShutdownPrivilege
and esi, 0x4000
call fcn.0040ee29
push 2
push str.SeRemoteShutdownPrivilege
call fcn.0040ee29
add esp, 0x18
call fcn.0040d1b1
xor edi, edi
test byte [ebp + 0xc], 1
jne 0x421601
cmp eax, 0x60002
jb 0x421601
xor eax, eax
cmp dword [ebp + 8], edi
setne al
push eax
push 1
push edi
push 0x48e984
push edi
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
cmp esi, edi
mov dword [ebp - 4], edi
jne 0x421620
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 0x42164c
xor eax, eax
cmp dword [ebp + 8], edi
sete al
inc eax
push eax
call ecx
pop edi
pop esi
leave
ret
Function at 0x429c65
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push ebx
push esi
push edi
xor eax, eax
mov ecx, 0xff
lea edi, [ebp - 0x40b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 8
lea eax, [ebp - 0x409]
push str.MSWIN4.1
push eax
mov byte [ebp - 0x40c], 0xeb
mov byte [ebp - 0x40b], 0x3c
mov byte [ebp - 0x40a], 0x90
call fcn.0047a010
mov eax, dword [ebp + 0xc]
push 0xb
mov dword [ebp - 0x3f0], eax
lea eax, [ebp - 0x3e1]
push 0x492d04
mov esi, 0x200
xor ebx, ebx
push eax
mov word [ebp - 0x401], si
mov word [ebp - 0x3fe], 1
mov byte [ebp - 0x3fc], 2
mov word [ebp - 0x3fb], 0xf0
mov byte [ebp - 0x3f7], 0xf0
mov word [ebp - 0x3f4], 0x3f
mov word [ebp - 0x3f2], 0xff
mov byte [ebp - 0x3e8], 0x80
mov byte [ebp - 0x3e6], 0x29
mov dword [ebp - 0x3e5], ebx
call fcn.0047a010
push 8
lea eax, [ebp - 0x3d6]
push 0x492cf8
push eax
call fcn.0047a010
movzx eax, word [ebp - 0x3fb]
movzx edi, word [ebp - 0x401]
shl eax, 5
lea eax, [eax + edi - 1]
cdq
idiv edi
movzx ecx, byte [ebp - 0x3fc]
add ecx, 0x100
add esp, 0x24
push ebx
push ebx
push esi
push dword [ebp + 0x10]
mov word [ebp - 0x20e], 0xaa55
push dword [ebp + 0xc]
mov word [ebp - 0x3f9], 0x11
mov byte [ebp - 0x3ff], 1
mov edx, eax
mov eax, ecx
sub eax, edx
movzx edx, word [ebp - 0x3fe]
sub eax, edx
add eax, 0x10
xor edx, edx
div ecx
mov word [ebp - 0x3f6], ax
call fcn.00479e00
push edx
push eax
push dword [ebp + 8]
call fcn.0042ec1a
add esp, 0x10
push ebx
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x40c]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
call ebx
movzx eax, byte [ebp - 0x3fc]
movzx edi, word [ebp - 0x3fb]
mov dword [ebp - 8], eax
movzx eax, word [ebp - 0x3f6]
shl edi, 5
add edi, 0x1ff
sar edi, 9
dec eax
push 0x400
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x40c]
push 0
push eax
call fcn.00479cf0
movzx eax, word [ebp - 0x3fe]
add esp, 0xc
sub eax, 2
js 0x429e28
inc eax
mov dword [ebp + 0x10], eax
push 0
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call ebx
dec dword [ebp + 0x10]
jne 0x429e10
mov eax, dword [ebp - 8]
test eax, eax
mov dword [ebp - 0x40c], 0xfffff8
jbe 0x429e7e
mov ecx, dword [ebp - 0xc]
dec ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
push 0
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x40c]
push eax
push dword [ebp + 8]
call ebx
mov eax, dword [ebp - 0xc]
test eax, eax
jl 0x429e79
inc eax
mov dword [ebp + 0x10], eax
push 0
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call ebx
dec dword [ebp + 0x10]
jne 0x429e61
dec dword [ebp - 8]
jne 0x429e43
push 0x400
lea eax, [ebp - 0x40c]
push 0
push eax
call fcn.00479cf0
push 0x1a
lea eax, [ebp - 0x40c]
push str.____________b
push eax
call fcn.0047a010
add esp, 0x18
push 0
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x40c]
push eax
push dword [ebp + 8]
call ebx
add edi, 0xfffffffe
js 0x429ed6
inc edi
push 0
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call ebx
dec edi
jne 0x429ec0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42dd93
Capabilities:
Acquire debug privileges

Disassembly:
cmp byte [esp + 4], 0
push esi
mov esi, ecx
mov byte [esi], 0
je 0x42ddc1
test byte [0x4a6a4c], 4
jne 0x42ddc1
push 2
mov byte [esi], 1
or byte [0x4a6a4c], 4
push str.SeDebugPrivilege
call fcn.0040ee29
pop ecx
pop ecx
mov eax, esi
pop esi
ret 4

Function at 0x42eace
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ax, word [0x4a5b68]
push esi
xor esi, esi
cmp ax, si
jne 0x42eafa
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 [0x4a5d68]
jmp 0x42eb42
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 0x42eb42
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 0x42eb45
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ax, word [0x4a5b68]
push esi
xor esi, esi
cmp ax, si
jne 0x42eb71
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 [0x4a604c]
jmp 0x42ebb9
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 0x42ebb9
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 0x42ebbc
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ax, word [0x4a5b68]
test ax, ax
jne 0x42ebdc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x4a6050]
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 0x42ec18
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 0x42f1c6
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4a60b0], 0
push edi
mov edi, ecx
jne 0x42f3f5
and dword [ebp - 4], 0
test byte [0x4a6a4c], 4
jne 0x42f1fc
or byte [0x4a6a4c], 8
push 2
push str.SeDebugPrivilege
call fcn.0040ee29
pop ecx
pop ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x4a60ac
mov esi, str.WS2_32.DLL
push esi
push str.WSAStartup
call fcn.0042ed10
lea eax, [ebp - 4]
push eax
push 0x4a60b4
push esi
push str.shutdown
call fcn.0042ed10
lea eax, [ebp - 4]
push eax
push 0x4a60b8
push esi
push str.closesocket
call fcn.0042ed10
lea eax, [ebp - 4]
push eax
push 0x4a60bc
push esi
push str.connect
call fcn.0042ed10
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x4a60c0
push esi
push str.send
call fcn.0042ed10
lea eax, [ebp - 4]
push eax
push 0x4a60c4
push esi
push str.select
call fcn.0042ed10
lea eax, [ebp - 4]
push eax
push 0x4a60c8
push esi
push str.recvfrom
call fcn.0042ed10
lea eax, [ebp - 4]
push eax
push 0x4a60cc
push esi
push str.sendto
call fcn.0042ed10
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x4a60d0
push esi
push str.bind
call fcn.0042ed10
lea eax, [ebp - 4]
push eax
push 0x4a60d4
push esi
push str.listen
call fcn.0042ed10
lea eax, [ebp - 4]
push eax
push 0x4a60d8
push esi
push str.accept
call fcn.0042ed10
lea eax, [ebp - 4]
push eax
push 0x4a60e0
push esi
push str.getsockname
call fcn.0042ed10
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x4a60dc
push esi
push str.getpeername
call fcn.0042ed10
lea eax, [ebp - 4]
push eax
push 0x4a60e4
push esi
push str.ioctlsocket
call fcn.0042ed10
lea eax, [ebp - 4]
push eax
push 0x4a60e8
push esi
push str.setsockopt
call fcn.0042ed10
lea eax, [ebp - 4]
push eax
push 0x4a60ec
push esi
push str.ntohl
call fcn.0042ed10
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x4a60f0
push esi
push str.htonl
call fcn.0042ed10
lea eax, [ebp - 4]
push eax
push 0x4a60f4
push esi
push str.htons
call fcn.0042ed10
lea eax, [ebp - 4]
push eax
push 0x4a60f8
push esi
push str.inet_addr
call fcn.0042ed10
lea eax, [ebp - 4]
push eax
push 0x4a60fc
push esi
push str.gethostbyname
call fcn.0042ed10
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x4a6100
push esi
push str.inet_ntoa
call fcn.0042ed10
lea eax, [ebp - 4]
push eax
push 0x4a6104
push esi
push str.WSAGetLastError
call fcn.0042ed10
lea eax, [ebp - 4]
push eax
push 0x4a6108
push esi
push str.__WSAFDIsSet
call fcn.0042ed10
lea eax, [ebp - 4]
push eax
push 0x4a60b0
push esi
push str.socket
call fcn.0042ed10
add esp, 0x40
pop esi
mov eax, edi
pop edi
leave
ret

Function at 0x4300b5
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 0x4303af
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 0x4303c0
lea edi, [ebp + 0x10]
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
jl 0x4303ec
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 0x43040c
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 0x430411
and dword [edi], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x43091a
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 0x430bab
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 0x430c0a
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
jmp 0x430c27
mov eax, dword [esi + 0x14]
mul dword [esi + 0x10]
push edi
push dword [esi + 0xc]
push edx
push eax
call fcn.00479e00
push dword [esi + 4]
push dword [esi]
push edx
push eax
call fcn.00479e00
pop edi
pop ebx
leave
ret

Function at 0x430e12
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.00479cf0
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 0x430e5a
mov eax, dword [ebx + 4]
mov dword [edi], eax
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x431203
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 0x43124a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov dword [ebp - 4], edi
je 0x43124d
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 0x43127a
xor eax, eax
jmp 0x431302
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.0047c585
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 0x4312f9
cmp dword [ebp - 4], esi
jne 0x4312f7
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 0x431330
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x43138d
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.0047a010
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 0x4313c3
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 0x4936ac
push edi
call fcn.0047a010
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 0x431427
push edi
push 0xfffffffffffffffc
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x431427
mov dword [ecx], eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x431928
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 0x4319b7
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 0x431981
mov eax, dword [ebp - 4]
test eax, eax
jne 0x431977
cmp dword [ebp + 0x14], eax
jg 0x431974
mov eax, edi
jmp 0x431977
dec dword [ebp + 0x14]
add dword [esi], eax
add dword [ebp + 0xc], eax
sub dword [ebp + 0x10], eax
jmp 0x4319b0
and dword [ebp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x70
jne 0x4319b6
cmp edi, ebx
jbe 0x4319b6
cmp dword [ebp + 0x10], ebx
jbe 0x4319ad
add edi, 0x1ff
shr edi, 1
cmp edi, ebx
jbe 0x4319b0
and edi, 0xfffffe00
jmp 0x4319b0
mov edi, dword [ebp + 0x10]
cmp dword [ebp + 0x10], 0
ja 0x431948
pop ebx
xor eax, eax
cmp eax, dword [esi]
pop edi
sbb eax, eax
neg eax
pop esi
leave
ret

Function at 0x431a32
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
and dword [0x4a6230], 0
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test byte [ebp - 0xef], 0x80
je 0x431a5f
or dword [0x4a6230], 2
test byte [ebp - 0xf0], 0x80
je 0x431a6f
or dword [0x4a6230], 4
test byte [ebp - 0xee], 0x80
je 0x431a7f
or dword [0x4a6230], 1
test byte [ebp - 0xa5], 0x80
je 0x431a8f
or dword [0x4a6230], 8
test byte [ebp - 0xa4], 0x80
je 0x431a9f
or dword [0x4a6230], 8
leave
ret
Function at 0x43237c
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [ebp + 0x10]
push esi
xor esi, esi
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x4323b4
cmp dword [ebp + 0xc], 2
jb 0x4323c9
cmp dword [ebp + 0xc], 3
jbe 0x4323ad
cmp dword [ebp + 0xc], 5
jne 0x4323c9
mov dword [ebp - 4], 0x48f708
jmp 0x4323b4
mov dword [ebp - 4], 0x48f718
push 0x12
push esi
push esi
push dword [ebp - 4]
call dword [0x4a5dc0]
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
jne 0x4323d0
xor eax, eax
jmp 0x432515
push ebx
push edi
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 - 4]
mov dword [ebp - 0xc], esi
push esi
push dword [ebp + 0x10]
mov dword [ebp - 8], esi
mov dword [ebp - 0x58], ecx
call edi
test eax, eax
je 0x4324f1
mov ebx, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
push esi
push dword [ebp + 0x10]
call edi
push esi
lea eax, [ebp - 8]
push eax
push esi
push esi
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 8], esi
call ebx
cmp dword [ebp - 8], esi
je 0x4324d6
cmp dword [ebp - 8], 0x400
ja 0x4324d6
push 0x1c
lea eax, [ebp - 0x74]
push esi
push eax
mov dword [ebp - 0x474], 6
call fcn.00479cf0
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x474]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x74], 0x1c
call ebx
test eax, eax
je 0x4324d6
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 0x4324d6
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 0x4324cd
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x38]
je 0x4324fe
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 - 4]
push esi
push dword [ebp + 0x10]
call edi
test eax, eax
jne 0x432410
push dword [ebp + 0x10]
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
xor eax, eax
jmp 0x432513
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0x10]
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [ebp - 0x60]
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4326e8
Capabilities:
Set environment variable

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