joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ad8a
Capabilities:
Check for time delay via gettickcount
Log keystrokes via application hook

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, 0x4c1b94
push edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
xor ebx, ebx
test byte [esp + 0x32], 1
jne 0x41adb3
cmp dword [0x4c0f44], ebx
jne 0x41adb3
mov dword [0x4c0f40], ebx
movzx eax, byte [esp + 0x30]
add dword [0x4c0f44], 1
cmp dword [0x4c0f3c], ebx
mov dword [esp + 0x30], eax
jne 0x41adf8
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push eax
push 0x41ac8b
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
cmp eax, ebx
mov dword [0x4c0f3c], eax
jne 0x41adf8
sub dword [0x4c0f44], 1
xor esi, esi
jmp 0x41aee9
push ebp
push edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov ebp, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call ebp
mov esi, dword [esp + 0x30]
mov edi, eax
add edi, esi
cmp esi, 0x4e20
jb 0x41ae20
push 1
call fcn.00439b12
pop ecx
cmp dword [esp + 0x34], 2
jne 0x41aeb6
cmp esi, ebx
jne 0x41aeb6
push 0xa
pop esi
jmp 0x41aeb6
cmp dword [esp + 0x34], 2
je 0x41ae49
call ebp
mov esi, edi
sub esi, eax
cmp esi, ebx
jle 0x41aec2
cmp byte [0x4bf2c0], bl
jle 0x41aec2
push 0xa
pop eax
cmp esi, eax
ja 0x41ae5a
mov eax, esi
push 0x4ff
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
jmp 0x41aeae
cmp dword [0x4c0f40], ebx
jne 0x41aec2
cmp dword [esp + 0x34], 2
je 0x41ae84
call ebp
mov esi, edi
sub esi, eax
cmp esi, ebx
jle 0x41aeb6
push 1
push ebx
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x41aeb6
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp byte [0x4bf2c0], bl
jg 0x41ae6b
cmp dword [0x4c0f40], ebx
je 0x41ae38
push 0x4c1b94
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [0x4c0f40]
sub dword [0x4c0f44], 1
pop ebp
jne 0x41aee2
mov dword [0x4c0f40], ebx
mov esi, eax
mov edi, 0x4c1b94
push edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x41c06b
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xd0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
mov dword [0x4c10e8], eax
call fcn.0040e814
call fcn.00433127
call fcn.00412808
xor ebx, ebx
mov esi, 0x4c0fb8
push ebx
mov ecx, esi
call fcn.0040f28c
call fcn.0040574a
mov edi, 0x4c1b94
push edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [0x4c0cb8]
or eax, dword [0x4c0cbc]
jne 0x41c0cb
push 0x4c0cb8
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceFrequency]
push edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
push 0x4c0cc0
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
push 0x4c0f1c
call dword [sym.imp.KERNEL32.DLL_GetSystemTimeAsFileTime]
push ebx
push 0x3534
call fcn.00411936
push 0xd6fc6
push 0x311f1
lea eax, [ebp - 0x60]
push str._06lu_06lu
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x60]
push eax
push 0x4aa5ce
mov ecx, esi
call fcn.0043d658
lea eax, [ebp - 0x60]
push eax
push str.PECMDVER
mov ecx, esi
call fcn.0043d658
push str.X86_U
lea ecx, [ebp + 0x68]
call fcn.00446497
push dword [0x4bf0f0]
lea ecx, [ebp + 0x68]
call fcn.0043ddea
push dword [ebp + 0x68]
mov ecx, esi
push 0x4aa5a4
call fcn.0043d658
push 0x4aa5a0
push 0x4aa590
mov ecx, esi
call fcn.0043d6a8
push ebx
push 0x3541
call fcn.00411936
call fcn.00411794
push ebx
push 0x3543
call fcn.00411936
mov eax, dword [ebp + 0x78]
mov dword [0x4c0ea0], eax
mov eax, dword [ebp + 0x7c]
mov dword [0x4bf290], eax
call fcn.004387a7
push str.WM_TaskbarRestart
push dword [0x4c1110]
mov esi, 0x4c0fb8
push esi
call fcn.0044023a
mov edi, dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
add esp, 0x1c
push str.__PID
call edi
push eax
push esi
call fcn.0044023a
add esp, 0xc
push str.__PPID
call edi
push eax
call fcn.00404afa
pop ecx
push eax
push esi
call fcn.0044023a
push str.__HINST
push dword [0x4c0ea0]
push esi
call fcn.0044023a
add esp, 0x18
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
mov dword [0x4c0de0], eax
push 0x4aa524
push eax
push esi
call fcn.0044023a
add esp, 0xc
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
add eax, 0x354c
push ebx
push eax
call fcn.00411936
movzx eax, word [0x4c4010]
push str.SYSCODEPAGE
push eax
push esi
call fcn.0044023a
add esp, 0x14
push 0x20a
lea ecx, [ebp + 0x6c]
call fcn.0043dd9c
push dword [ebp + 0x6c]
mov edi, 0x208
push edi
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
push dword [ebp + 0x6c]
mov ecx, esi
push 0x4aa164
call fcn.0043d6a8
push dword [ebp + 0x6c]
mov ecx, esi
push str._CD
call fcn.0043d6a8
mov eax, dword [ebp + 0x6c]
mov word [eax + 4], bx
push dword [ebp + 0x6c]
mov ecx, esi
push str.CurDrv
call fcn.0043d6a8
mov eax, dword [ebp + 0x6c]
push edi
push eax
push ebx
mov word [eax], bx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push dword [ebp + 0x6c]
mov ecx, esi
push str.CurFile
call fcn.0043d6a8
call fcn.00411946
lea ecx, [ebp + 0x6c]
call fcn.00437e1a
lea ecx, [ebp + 0x68]
call fcn.00437e1a
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret
Function at 0x41cc55
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
jne 0x41cc7c
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.0040f0df
test eax, eax
je 0x41cc7c
call fcn.0040f166
test eax, eax
mov dword [esp + 0xc], eax
jne 0x41cc83
xor eax, eax
jmp 0x41cd45
mov ecx, dword [esi + 0x14]
mov ecx, dword [ecx + 0x34]
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
push ebp
push edi
push 0x40
mov ebp, 0x3000
push ebp
push eax
push ecx
call ebx
mov edi, eax
test edi, edi
jne 0x41ccbb
push 0x40
push ebp
push dword [esp + 0x20]
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x41ccbb
xor eax, eax
jmp 0x41cd42
push dword [esp + 0x14]
mov ecx, esi
push edi
call fcn.00412f3b
mov eax, dword [esi + 0x14]
xor ebx, ebx
cmp dword [eax + 0xa0], ebx
jbe 0x41cce8
cmp dword [eax + 0xa4], ebx
jbe 0x41cce8
push edi
mov ecx, esi
call fcn.0040ef95
test eax, eax
je 0x41ccb4
push edi
mov ecx, esi
call fcn.0040eff4
test eax, eax
jne 0x41cd03
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
jmp 0x41ccb4
mov eax, dword [esi + 0x14]
mov dword [eax + 0x34], edi
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 0x28]
push ebx
xor ebp, ebp
inc ebp
push ebp
add eax, edi
push edi
mov dword [esi + 4], eax
call eax
test eax, eax
jne 0x41cd3b
push ebx
push ebx
push edi
call dword [esi + 4]
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
mov dword [esi + 4], ebx
jmp 0x41ccb4
mov dword [esi], ebp
mov dword [esi + 0xc], edi
mov eax, edi
pop edi
pop ebp
pop ebx
pop esi
ret 8
Function at 0x437ee7
Capabilities:
Acquire debug privileges

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

Function at 0x437fa4
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 0x437fcd
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
pop esi
pop ebp
ret

Function at 0x438f9c
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.00438f4b
mov esi, eax
add esp, 0x14
cmp esi, 5
je 0x438ff2
test esi, esi
jne 0x438ffa
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 0x438ffa
test edi, edi
je 0x438ffa
xor edi, edi
jmp 0x438fa9
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x439000
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push 4
push 0x20006
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00438f4b
add esp, 0x14
test eax, eax
jne 0x43904a
push esi
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_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x43904c
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push 4
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00438f4b
add esp, 0x14
test eax, eax
jne 0x439089
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 0x43a9be
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.0043a99f
mov edi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
pop ecx
call edi
cmp dword [ebp + 0x10], 0
mov dword [ebp - 4], eax
je 0x43aa3a
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_WaitNamedPipeW]
jmp 0x43aa2e
test ebx, ebx
jle 0x43aa38
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
jne 0x43aa38
call edi
sub eax, dword [ebp - 4]
cmp ebx, eax
jbe 0x43aa38
push 1
call dword [sym.imp.KERNEL32.DLL_Sleep]
push ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x43aa0e
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 0x43aa5a
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 0x43aaf4
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4c1bc0]
mov edx, dword [0x4c1bc4]
mov ecx, eax
or ecx, edx
jne 0x43abfa
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0x12c]
push edi
push eax
call fcn.00492e00
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]
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 [0x4c1bc0], esi
mov dword [0x4c1bc4], ecx
jb 0x43abf4
ja 0x43ab8a
cmp esi, 0x20000
jb 0x43abf4
lea eax, [ebp - 0x10]
push eax
push 0x4c12cc
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.004391ea
mov eax, dword [0x4c12cc]
add esp, 0x10
cmp eax, edi
je 0x43abc8
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
call eax
movzx ecx, word [ebp - 0xc]
mov eax, dword [ebp - 8]
shl eax, 0x10
or eax, ecx
mov esi, eax
movzx eax, word [ebp - 4]
xor ecx, ecx
shld ecx, esi, 0x10
cdq
shl esi, 0x10
or esi, eax
or ecx, edx
mov dword [0x4c1bc0], esi
mov dword [0x4c1bc4], ecx
pop edi
mov eax, esi
mov edx, ecx
pop esi
leave
ret
Function at 0x43ae8b
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 0x43ae9f
lea ebx, [ebp + 0x10]
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
jl 0x43aee2
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 0x43aed8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x6d
je 0x43aee2
cmp dword [ebp + 0x10], edi
jne 0x43aee2
dec dword [esi + 0x14]
jns 0x43aea7
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
jge 0x43af02
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 0x43af06
mov dword [ebx], edi
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x43b543
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 0x43b7fd
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 0x43b85c
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
jmp 0x43b879
mov eax, dword [esi + 0x14]
mul dword [esi + 0x10]
push edi
push dword [esi + 0xc]
push edx
push eax
call fcn.00492f10
push dword [esi + 4]
push dword [esi]
push edx
push eax
call fcn.00492f10
pop edi
pop ebx
leave
ret
Function at 0x43ba51
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.00492e00
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 0x43ba99
mov eax, dword [ebx + 4]
mov dword [edi], eax
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x43be10
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 0x43be57
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
mov dword [ebp - 4], edi
je 0x43be5a
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 0x43be87
xor eax, eax
jmp 0x43bf0f
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.00495345
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 0x43bf06
cmp dword [ebp - 4], esi
jne 0x43bf04
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 0x43bf6f
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x43bfcc
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.004128b6
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 0x43bfcd
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 0x43bff4
push dword [ebp + 0x10]
push edi
push esi
call fcn.0040e1aa
add esp, 0xc
test al, al
je 0x43bff4
mov eax, dword [ebp + 0x10]
jmp 0x43c013
mov ax, word [esi]
cmp ax, word [edi]
jne 0x43c011
mov ax, word [edi + 2]
cmp word [esi + 2], ax
jne 0x43c011
cmp ax, 0x3a
jne 0x43c011
push 2
pop eax
jmp 0x43c013
xor eax, eax
push 0
lea eax, [esi + eax*2]
push eax
push edi
call fcn.0043bf14
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 0x43c06f
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 0x4acea4
push edi
call fcn.004128b6
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 0x43c0d3
push edi
push 0xfffffffffffffffc
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x43c0d3
mov dword [ecx], eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x43c700
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 0x43c729
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 0x43c760
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x43c757
cmp dword [ebp + 0x10], eax
jg 0x43c754
mov eax, edi
jmp 0x43c757
dec dword [ebp + 0x10]
add dword [esi], eax
add dword [ebp + 0xc], eax
sub ebx, eax
jmp 0x43c718
and dword [ebp + 0x10], 0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x70
jne 0x43c71c
mov eax, dword [ebp + 0x18]
cmp edi, eax
jbe 0x43c71c
cmp ebx, eax
jbe 0x43c716
lea edi, [edi + eax - 1]
shr edi, 1
cmp edi, eax
jbe 0x43c718
and edi, 0xfffffe00
jmp 0x43c718

Function at 0x43c7fb
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
and dword [0x4c1348], 0
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test byte [ebp - 0xef], 0x80
je 0x43c828
or dword [0x4c1348], 2
test byte [ebp - 0xf0], 0x80
je 0x43c838
or dword [0x4c1348], 4
test byte [ebp - 0xee], 0x80
je 0x43c848
or dword [0x4c1348], 1
test byte [ebp - 0xa5], 0x80
je 0x43c858
or dword [0x4c1348], 8
test byte [ebp - 0xa4], 0x80
je 0x43c868
or dword [0x4c1348], 8
leave
ret
Function at 0x43d3d9
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 0x43d411
cmp dword [ebp + 0xc], 2
jb 0x43d426
cmp dword [ebp + 0xc], 3
jbe 0x43d40a
cmp dword [ebp + 0xc], 5
jne 0x43d426
mov dword [ebp - 4], 0x4a7ce0
jmp 0x43d411
mov dword [ebp - 4], 0x4a7cf0
push 0x12
push esi
push esi
push dword [ebp - 4]
call dword [0x4c0e64]
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
jne 0x43d42d
xor eax, eax
jmp 0x43d572
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 0x43d54e
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 0x43d533
cmp dword [ebp - 8], 0x400
ja 0x43d533
push 0x1c
lea eax, [ebp - 0x74]
push esi
push eax
mov dword [ebp - 0x474], 6
call fcn.00492e00
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 0x43d533
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 0x43d533
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 0x43d52a
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x38]
je 0x43d55b
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 0x43d46d
push dword [ebp + 0x10]
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
xor eax, eax
jmp 0x43d570
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 0x43d6a8
Capabilities:
Set environment variable

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