joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c7ea
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0
jne 0x41c811
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.0040ebda
test eax, eax
je 0x41c811
call fcn.0040ec61
test eax, eax
mov dword [esp + 0xc], eax
jne 0x41c818
xor eax, eax
jmp 0x41c8da
mov ecx, dword [esi + 0x10]
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 0x41c850
push 0x40
push ebp
push dword [esp + 0x20]
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x41c850
xor eax, eax
jmp 0x41c8d7
push dword [esp + 0x14]
mov ecx, esi
push edi
call fcn.00412be5
mov eax, dword [esi + 0x10]
xor ebx, ebx
cmp dword [eax + 0xa0], ebx
jbe 0x41c87d
cmp dword [eax + 0xa4], ebx
jbe 0x41c87d
push edi
mov ecx, esi
call fcn.0040ea90
test eax, eax
je 0x41c849
push edi
mov ecx, esi
call fcn.0040eaef
test eax, eax
jne 0x41c898
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
jmp 0x41c849
mov eax, dword [esi + 0x10]
mov dword [eax + 0x34], edi
mov eax, dword [esi + 0x10]
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 0x41c8d0
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 0x41c849
mov dword [esi], ebp
mov dword [esi + 8], edi
mov eax, ebp
pop edi
pop ebp
pop ebx
pop esi
ret 8
Function at 0x42c3cb
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
mov byte [ebp - 1], bl
jmp 0x42c3e6
inc byte [ebp - 1]
inc eax
inc eax
mov dword [ebp + 8], eax
cmp word [eax], 0x2a
je 0x42c3de
lea eax, [ebp + 8]
push eax
call fcn.00407fcf
mov al, byte [ebp - 1]
mov byte [0x4bdeca], al
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 2]
push eax
lea eax, [ebp - 6]
push eax
lea eax, [ebp - 5]
push eax
lea edi, [ebp - 3]
lea esi, [ebp - 4]
lea eax, [ebp + 8]
mov byte [ebp - 3], 0x2a
mov byte [ebp - 5], bl
mov byte [ebp - 4], 1
mov byte [ebp - 2], bl
call fcn.0041a9ec
mov eax, dword [ebp + 8]
add esp, 0x10
cmp word [eax], bx
je 0x42c50f
mov esi, 0x4beb4c
push esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp byte [ebp - 1], bl
je 0x42c45f
cmp dword [0x4bde7c], ebx
je 0x42c45f
push esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
jmp 0x42c56b
mov eax, dword [ebp + 8]
movsx ecx, byte [ebp - 3]
mov byte [0x4bc2a5], 0xff
movzx edx, word [eax]
cmp ecx, edx
mov byte [0x4bdebd], 1
jne 0x42c489
movzx eax, word [eax + 2]
cmp ecx, eax
jne 0x42c489
mov byte [0x4bc2a5], bl
mov edi, dword [ebp - 0x10]
push 0x4bdbcc
push 0x10000
push edi
push 0x42c3ba
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 - 0x10], eax
cmp word [edi], bx
jne 0x42c4ce
cmp byte [0x4bdebd], bl
je 0x42c4ea
call esi
sub eax, dword [ebp - 0x10]
cmp eax, 0x7d0
jae 0x42c4ea
push ebx
push ebx
push 0x14
mov ecx, 0x4bdfa0
call fcn.004137db
jmp 0x42c4c1
cmp byte [ebp - 2], bl
je 0x42c56b
test byte [ebp - 4], 0x40
je 0x42c56b
jmp 0x42c505
push ebx
push ebx
push 1
mov ecx, 0x4bdfa0
call fcn.004137db
cmp dword [0x4bde7c], ebx
jne 0x42c4f7
jmp 0x42c56b
movsx eax, byte [ebp - 2]
push eax
movsx eax, byte [ebp - 5]
push eax
lea esi, [ebp - 0xc]
mov eax, esi
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], 0xbb8
call fcn.00410f73
mov edi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
add esp, 0xc
call edi
cmp byte [ebp - 2], bl
mov dword [ebp - 0x14], eax
je 0x42c567
mov esi, 0x4bde7c
mov dword [ebp - 0x10], 0xfa0
jmp 0x42c567
call edi
sub eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
jae 0x42c56b
push ebx
push ebx
push 0xa
mov ecx, 0x4bdfa0
call fcn.004137db
cmp dword [esi], ebx
jne 0x42c54f
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x42ea75
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xa4
push ebx
push esi
mov esi, dword [ebp + 0x7c]
push edi
push 0x4a733c
lea ecx, [ebp + 0x64]
sar esi, 0x10
call fcn.00445746
mov ebx, dword [ebp + 0x74]
push esi
push dword [ebx]
call fcn.00410abb
pop ecx
pop ecx
push 0x20a
lea ecx, [ebp + 0x68]
mov dword [ebp + 0x74], eax
call fcn.0043d3c3
push dword [ebp + 0x68]
push 0x208
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
mov edi, dword [ebp + 0x78]
push edi
lea ecx, [ebp - 0x38]
call fcn.0040e79e
push edi
lea ecx, [ebp - 0x38]
call fcn.0040ed87
push dword [ebp + 0x68]
mov eax, dword [edi + 0x14]
push 0x4a7214
mov dword [ebp - 0x24], eax
call fcn.0043cc80
movzx eax, si
push eax
lea ecx, [ebp - 0x38]
mov word [ebp - 0xc], si
call fcn.0043bff5
mov ecx, dword [ebp + 0x7c]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp + 0x64]
push eax
push dword [ebp + 0x74]
push 0
push ebx
call fcn.0042456b
movzx esi, ax
or esi, dword [ebp + 0x7c]
add esp, 0x14
mov edi, 0x4beb4c
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 - 0x38]
call fcn.0042e9eb
lea ecx, [ebp + 8]
call fcn.00437884
lea ecx, [ebp + 0x68]
call fcn.00437884
lea ecx, [ebp + 0x64]
call fcn.00437884
pop edi
mov eax, esi
pop esi
pop ebx
add ebp, 0x6c
leave
ret
Function at 0x4331ed
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.0048fff0
mov eax, dword [ebp + 0xc]
push 0xb
mov dword [ebp - 0x3f0], eax
lea eax, [ebp - 0x3e1]
push str.NO_NAME
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.0048fff0
push 8
lea eax, [ebp - 0x3d6]
push str.FAT12
push eax
call fcn.0048fff0
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.0048f820
push edx
push eax
push dword [ebp + 8]
call fcn.004389fe
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.0048f710
movzx eax, word [ebp - 0x3fe]
add esp, 0xc
sub eax, 2
js 0x4333b0
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 0x433398
mov eax, dword [ebp - 8]
test eax, eax
mov dword [ebp - 0x40c], 0xfffff8
jbe 0x433406
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 0x433401
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 0x4333e9
dec dword [ebp - 8]
jne 0x4333cb
push 0x400
lea eax, [ebp - 0x40c]
push 0
push eax
call fcn.0048f710
push 0x1a
lea eax, [ebp - 0x40c]
push str.____________b
push eax
call fcn.0048fff0
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 0x43345e
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 0x433448
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4379bf
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 0x4379e8
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
pop esi
pop ebp
ret

Function at 0x43890f
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.004388be
mov esi, eax
add esp, 0x14
cmp esi, 5
je 0x438965
test esi, esi
jne 0x43896d
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 0x43896d
test edi, edi
je 0x43896d
xor edi, edi
jmp 0x43891c
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x438973
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.004388be
add esp, 0x14
test eax, eax
jne 0x4389bd
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 0x4389bf
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.004388be
add esp, 0x14
test eax, eax
jne 0x4389fc
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 0x43a231
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.0043a212
mov edi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
pop ecx
call edi
cmp dword [ebp + 0x10], 0
mov dword [ebp - 4], eax
je 0x43a2ad
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_WaitNamedPipeW]
jmp 0x43a2a1
test ebx, ebx
jle 0x43a2ab
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
jne 0x43a2ab
call edi
sub eax, dword [ebp - 4]
cmp ebx, eax
jbe 0x43a2ab
push 1
call dword [sym.imp.KERNEL32.DLL_Sleep]
push ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x43a281
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 0x43a2cd
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 0x43a6a1
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 0x43a6b5
lea ebx, [ebp + 0x10]
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
jl 0x43a6f8
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 0x43a6ee
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x6d
je 0x43a6f8
cmp dword [ebp + 0x10], edi
jne 0x43a6f8
dec dword [esi + 0x14]
jns 0x43a6bd
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
jge 0x43a718
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 0x43a71c
mov dword [ebx], edi
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x43ac23
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 0x43aed0
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 0x43af2f
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
jmp 0x43af4c
mov eax, dword [esi + 0x14]
mul dword [esi + 0x10]
push edi
push dword [esi + 0xc]
push edx
push eax
call fcn.0048f820
push dword [esi + 4]
push dword [esi]
push edx
push eax
call fcn.0048f820
pop edi
pop ebx
leave
ret

Function at 0x43b124
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.0048f710
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 0x43b16c
mov eax, dword [ebx + 4]
mov dword [edi], eax
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x43b4d6
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 0x43b51d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
mov dword [ebp - 4], edi
je 0x43b520
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 0x43b54d
xor eax, eax
jmp 0x43b5d5
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.00491ef5
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 0x43b5cc
cmp dword [ebp - 4], esi
jne 0x43b5ca
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 0x43b603
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x43b660
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.0041255f
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 0x43b696
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 0x4aa3cc
push edi
call fcn.0041255f
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 0x43b6fa
push edi
push 0xfffffffffffffffc
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x43b6fa
mov dword [ecx], eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x43bd8f
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 0x43be1e
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 0x43bde8
mov eax, dword [ebp - 4]
test eax, eax
jne 0x43bdde
cmp dword [ebp + 0x14], eax
jg 0x43bddb
mov eax, edi
jmp 0x43bdde
dec dword [ebp + 0x14]
add dword [esi], eax
add dword [ebp + 0xc], eax
sub dword [ebp + 0x10], eax
jmp 0x43be17
and dword [ebp + 0x14], 0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x70
jne 0x43be1d
cmp edi, ebx
jbe 0x43be1d
cmp dword [ebp + 0x10], ebx
jbe 0x43be14
add edi, 0x1ff
shr edi, 1
cmp edi, ebx
jbe 0x43be17
and edi, 0xfffffe00
jmp 0x43be17
mov edi, dword [ebp + 0x10]
cmp dword [ebp + 0x10], 0
ja 0x43bdaf
pop ebx
xor eax, eax
cmp eax, dword [esi]
pop edi
sbb eax, eax
neg eax
pop esi
leave
ret

Function at 0x43be99
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
and dword [0x4be31c], 0
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test byte [ebp - 0xef], 0x80
je 0x43bec6
or dword [0x4be31c], 2
test byte [ebp - 0xf0], 0x80
je 0x43bed6
or dword [0x4be31c], 4
test byte [ebp - 0xee], 0x80
je 0x43bee6
or dword [0x4be31c], 1
test byte [ebp - 0xa5], 0x80
je 0x43bef6
or dword [0x4be31c], 8
test byte [ebp - 0xa4], 0x80
je 0x43bf06
or dword [0x4be31c], 8
leave
ret
Function at 0x43ca77
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 0x43caaf
cmp dword [ebp + 0xc], 2
jb 0x43cac4
cmp dword [ebp + 0xc], 3
jbe 0x43caa8
cmp dword [ebp + 0xc], 5
jne 0x43cac4
mov dword [ebp - 4], 0x4a4bd4
jmp 0x43caaf
mov dword [ebp - 4], 0x4a4be4
push 0x12
push esi
push esi
push dword [ebp - 4]
call dword [0x4bde48]
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
jne 0x43cacb
xor eax, eax
jmp 0x43cc10
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 0x43cbec
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 0x43cbd1
cmp dword [ebp - 8], 0x400
ja 0x43cbd1
push 0x1c
lea eax, [ebp - 0x74]
push esi
push eax
mov dword [ebp - 0x474], 6
call fcn.0048f710
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 0x43cbd1
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 0x43cbd1
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 0x43cbc8
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x38]
je 0x43cbf9
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 0x43cb0b
push dword [ebp + 0x10]
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
xor eax, eax
jmp 0x43cc0e
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 0x43ccd0
Capabilities:
Set environment variable

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