joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006a39
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x1038008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0x5a
pop eax
push 0x5c
mov word [ebp - 0x138], ax
pop eax
mov word [ebp - 0x136], ax
lea eax, [ebp - 0x138]
mov dword [ebp - 0x150], eax
lea eax, [ebp - 0x158]
push eax
xor esi, esi
push 0x20019
lea eax, [ebp - 0x128]
push eax
mov dword [edi], 0x10000
mov dword [ebp - 0x134], 0x1006c18
mov dword [ebp - 0x158], 0x18
mov dword [ebp - 0x154], esi
mov dword [ebp - 0x14c], 0x40
mov dword [ebp - 0x148], esi
mov dword [ebp - 0x144], esi
call dword [sym.imp.ntdll.dll_NtOpenKey]
cmp eax, esi
jl 0x1006bc0
push 0x14
pop eax
push 0x16
mov word [ebp - 0x130], ax
pop eax
mov word [ebp - 0x12e], ax
lea eax, [ebp - 0x164]
push eax
push 0x11c
lea eax, [ebp - 0x120]
push eax
push 1
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x128]
mov dword [ebp - 0x12c], 0x1006c00
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
push dword [ebp - 0x128]
mov dword [ebp - 0x124], eax
call dword [sym.imp.ntdll.dll_NtClose]
cmp dword [ebp - 0x124], esi
jl 0x1006bba
cmp dword [ebp - 0x114], esi
je 0x1012033
mov eax, dword [ebp - 0x118]
mov esi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp + eax - 0x120]
push eax
lea eax, [ebp - 0x140]
push eax
call esi
push 0x1006be4
lea eax, [ebp - 0x160]
push eax
call esi
push 0x1006bd0
lea eax, [ebp - 0x16c]
push eax
call esi
mov esi, dword [sym.imp.ntdll.dll_RtlPrefixUnicodeString]
push 1
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x160]
push eax
call esi
test al, al
jne 0x1012028
push 1
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x16c]
push eax
call esi
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x10001
add eax, 0x10000
mov dword [edi], eax
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.010015a8
leave
ret 4
mov dword [edi], 0x40002
jmp 0x1006bba
mov dword [ebp - 0x124], 0xc0000034
jmp 0x1006bba
Function at 0x1007422
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
push edi
cmp byte [0x1038416], bl
jne 0x100e321
mov eax, dword [ebp + 0xc]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax], ebx
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword fs:[0x18]
mov edx, dword [ebp + 8]
movsx esi, word [ebp + 8]
mov ecx, dword [0x1038030]
mov eax, dword [eax + 0x30]
mov edi, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
shr edx, 0x10
movsx edx, dx
imul edx, esi
lea edx, [edx + edx + 2]
push edx
add ecx, 0x340000
push ecx
push dword [eax + 0x18]
call edi
mov esi, dword [ebp + 0xc]
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x100e368
xor eax, eax
jmp 0x1007449
mov eax, dword fs:[0x18]
movsx edx, word [ebp + 0xa]
movsx ebx, word [ebp + 8]
mov ecx, dword [0x1038030]
imul edx, ebx
mov eax, dword [eax + 0x30]
add ecx, 0x340000
inc edx
push edx
push ecx
push dword [eax + 0x18]
call edi
mov dword [esi + 8], eax
test eax, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
jne 0x100e3b0
push dword [esi + 4]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x100e361
movsx edx, word [ebp + 0xa]
movsx ebx, word [ebp + 8]
mov ecx, dword [0x1038030]
imul edx, ebx
lea edx, [edx + edx + 2]
push edx
add ecx, 0x340000
push ecx
push dword [eax + 0x18]
call edi
mov dword [esi + 0xc], eax
test eax, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
jne 0x100e40a
push dword [esi + 8]
mov edi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
push 0
push dword [eax + 0x18]
call edi
push dword [esi + 4]
push 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call edi
jmp 0x100e361
movsx edx, word [ebp + 0xa]
movsx ebx, word [ebp + 8]
mov ecx, dword [0x1038030]
imul edx, ebx
push edx
add ecx, 0x340000
push ecx
push dword [eax + 0x18]
call edi
xor ebx, ebx
mov dword [esi], eax
cmp eax, ebx
jne 0x1007446
push dword [esi + 0xc]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
push ebx
push dword [eax + 0x18]
call edi
push dword [esi + 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call edi
push dword [esi + 4]
push ebx
jmp 0x100e3f7
Function at 0x1007970
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
mov ebx, eax
mov eax, dword [eax]
push esi
test eax, eax
je 0x10079ba
mov esi, eax
mov ecx, dword [ebp + 0xc]
lea eax, [esi + 8]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10079c2
test dx, dx
je 0x10079ac
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10079c2
add eax, 4
add ecx, 4
test dx, dx
jne 0x100798a
xor eax, eax
test eax, eax
jne 0x10079c9
mov eax, dword [ebx]
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 2]
jmp 0x10079d3
sbb eax, eax
sbb eax, 0xffffffff
jmp 0x10079ae
mov ebx, esi
mov esi, dword [ebx]
test esi, esi
je 0x10079ba
jmp 0x1007984
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x10079d3
sub eax, ecx
mov ecx, dword [0x1038030]
push edi
sar eax, 1
lea edi, [eax + eax + 2]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
lea edx, [edi + 8]
push edx
add ecx, 0x280000
push ecx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
je 0x1007a27
push dword [ebp + 0xc]
and dword [esi], 0
and dword [esi + 4], 0
push edi
lea eax, [esi + 8]
push eax
call fcn.010034ff
mov dword [ebx], esi
mov eax, esi
pop edi
jmp 0x10079b4
Function at 0x10096f7
Capabilities:
Query environment variable
Query or enumerate registry value
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x1038008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x220], 0x1009888
mov dword [ebp - 0x21c], 0x100986c
mov dword [ebp - 0x218], 0x100984c
mov dword [ebp - 0x214], 0x1009824
xor edi, edi
mov esi, dword [ebp + edi*8 - 0x21c]
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x10097a5
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 2
push dword [ebp + edi*8 - 0x220]
mov dword [ebp - 0x210], 0x208
push 0x10097d0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegGetValueW]
test eax, eax
jne 0x10097a5
mov eax, dword [ebp - 0x210]
shr eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0x20e], cx
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
inc edi
cmp edi, 2
jb 0x1009738
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.010098ad
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.010015a8
leave
ret

Function at 0x10098ad
Capabilities:
Get number of processors

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
xor ebx, ebx
push 7
mov dword [ebp - 0x24], ebx
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
cmp dword [eax + 0x200], ebx
jne 0x1009962
cmp dword [eax + 0x1f8], ebx
jne 0x1009962
mov edi, dword [ebp + 0xc]
xor eax, eax
push edi
push esi
mov word [esi], ax
mov word [esi + 2], ax
mov word [esi + 4], ax
mov word [esi + 6], ax
mov word [esi + 8], ax
mov word [esi + 0xa], ax
mov word [esi + 0xc], ax
push ebx
mov word [esi + edi*2 - 4], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x100c9a2
cmp word [esi + edi*2 - 4], bx
jne 0x100c9b0
cmp word [esi], 0x5c
je 0x100c9b8
mov eax, ebx
lea eax, [esi + eax*2]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0x20
mov dword [ebp - 0x20], 0x18
mov dword [ebp - 0x10], 0x64
call dword [sym.imp.KERNEL32.dll_CreateActCtxW]
cmp eax, 0xffffffff
je 0x100c9f7
xor eax, eax
pop edi
mov word [esi], ax
pop esi
pop ebx
leave
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100caac
jmp 0x100ca03
push edi
push 0x100ca68
jmp 0x100ca03
cmp word [esi + 2], 0x3f
jne 0x1009932
cmp word [esi + 4], 0x3f
jne 0x1009932
cmp word [esi + 6], 0x5c
jne 0x1009932
cmp word [esi + 0xa], 0x3a
jne 0x1009932
cmp word [esi + 0xc], 0x5c
jne 0x1009932
push 4
pop eax
jmp 0x1009934
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100ca24
mov edi, dword [sym.imp.ntdll.dll_DbgPrintEx]
push 1
push 0x70
call edi
push 0x100aa2c
push 1
push 0x70
call edi
add esp, 0x1c
jmp 0x1009962
Function at 0x1009a8f
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1f8
mov eax, dword [0x1038008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov esi, 0xdc
push esi
lea eax, [ebp - 0x1e8]
push edi
push eax
mov dword [ebp - 0x1ec], edi
mov dword [ebp - 0x1f4], edi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1e8]
push eax
push edi
mov ebx, 0x1009b08
mov dword [ebp - 0x1f0], edi
mov edi, dword [sym.imp.USER32.dll_EnumDisplaySettingsW]
push ebx
mov word [ebp - 0x1a4], si
call edi
test eax, eax
jne 0x100f968
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010015a8
leave
ret
mov esi, 0x8000
xor ecx, ecx
mov dword [ebp - 0x1f8], ecx
cmp dword [0x1038e6c], ecx
jbe 0x100f9da
mov eax, dword [0x1038e48]
mov dx, word [ebp - 0x13c]
add eax, ecx
cmp dx, word [eax + 8]
jne 0x100f9c3
mov dx, word [ebp - 0x138]
cmp dx, word [eax + 0xa]
jne 0x100f9c3
test byte [ebp - 0x134], 4
je 0x100f9b6
test byte [eax], 1
je 0x100f9c3
or dword [eax], esi
inc dword [ebp - 0x1ec]
jmp 0x100f9c3
test byte [eax], 2
je 0x100f9c3
or dword [eax], esi
inc dword [ebp - 0x1f4]
inc dword [ebp - 0x1f8]
mov eax, dword [ebp - 0x1f8]
add ecx, 0x10
cmp eax, dword [0x1038e6c]
jb 0x100f97d
inc dword [ebp - 0x1f0]
lea eax, [ebp - 0x1e8]
push eax
push dword [ebp - 0x1f0]
push ebx
call edi
test eax, eax
jne 0x100f96d
cmp dword [ebp - 0x1ec], 2
jb 0x1009af6
xor edi, edi
xor ebx, ebx
inc edi
cmp dword [ebp - 0x1f4], ebx
jbe 0x100fa18
mov dword [0x1038f2c], edi
mov esi, 0x105
push esi
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, ebx
je 0x100faa6
cmp eax, esi
jae 0x100faa6
push 0x100fb34
sub esi, eax
push esi
lea eax, [ebp + eax - 0x10c]
push eax
call fcn.0102281a
cmp eax, ebx
jge 0x100fa6f
push eax
push 0x10120b0
mov esi, dword [sym.imp.ntdll.dll_DbgPrintEx]
push edi
push 0x70
call esi
push 0x100aa2c
push edi
push 0x70
call esi
add esp, 0x1c
jmp 0x1009af6
push ebx
push ebx
push 3
push ebx
push edi
push SysAllocStringLen
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x1038f24], eax
cmp eax, 0xffffffff
jne 0x100fa9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100fb08
jmp 0x100fa52
mov eax, edi
jmp 0x1009af8
mov esi, dword [sym.imp.ntdll.dll_DbgPrintEx]
push 0x100fac8
push edi
push 0x70
call esi
push 0x100aa2c
push edi
push 0x70
call esi
add esp, 0x18
jmp 0x1009af6
Function at 0x1009e4c
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0xa4
xor ebx, ebx
call esi
mov edi, 0x8000
mov ecx, edi
test cx, ax
jne 0x100a7d3
push 0xa5
call esi
mov ecx, edi
test cx, ax
jne 0x100cacb
push 0xa2
call esi
mov ecx, edi
test cx, ax
jne 0x100cad3
push 0xa3
call esi
mov ecx, edi
test cx, ax
jne 0x100cadb
push 0x10
call esi
test di, ax
jne 0x100cae3
push 0x90
call esi
test al, 1
jne 0x100caeb
push 0x91
call esi
test al, 1
jne 0x100caf3
push 0x14
call esi
test al, 1
jne 0x100cafb
mov eax, dword [ebp + 8]
test eax, 0x1000000
jne 0x100bd0c
pop edi
and eax, 0x4000000
pop esi
or eax, ebx
pop ebx
pop ebp
ret 4
push 2
pop ebx
jmp 0x1009e73
or ebx, 0x100
jmp 0x1009eee
or ebx, 1
jmp 0x1009e85
or ebx, 8
jmp 0x1009e97
or ebx, 4
jmp 0x1009ea9
or ebx, 0x10
jmp 0x1009eb6
or ebx, 0x20
jmp 0x1009ec5
or ebx, 0x40
jmp 0x1009ed4
or ebx, 0x80
jmp 0x1009ee0
Function at 0x100a1cd
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebx + 0x10]
test esi, esi
je 0x100a21a
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ecx], eax
mov dword [eax + 4], ecx
mov eax, dword [esi + 0x28]
push edi
mov edi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
test al, 2
jne 0x100c44b
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.ntdll.dll_RtlDeleteCriticalSection]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call edi
and dword [ebx + 0x10], 0
pop edi
pop esi
pop ebx
pop ebp
ret 4
push dword [esi + 0x34]
and eax, 0xfffffffd
mov dword [esi + 0x28], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call edi
jmp 0x100a1fa

Function at 0x100a2f9
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push 0x14
pop ecx
lea eax, [esi + 1]
mul ecx
push edx
push eax
call fcn.01005077
test eax, eax
jl 0x100cd3d
mov eax, dword fs:[0x18]
mov ecx, dword [0x1038030]
mov eax, dword [eax + 0x30]
push edi
push dword [ebp - 4]
add ecx, 0x200000
push ecx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
test edi, edi
je 0x100cd47
push ebx
push 1
lea eax, [ebp - 0xc]
push eax
push 0
push 1
lea eax, [ebp - 8]
push eax
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.0100a225
mov ebx, eax
test ebx, ebx
jl 0x100cd51
mov eax, dword [ebp - 8]
push dword [esi]
imul eax, eax, 0x14
add eax, edi
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 4]
add eax, edi
mov dword [esi + 0x18], eax
mov eax, dword fs:[0x18]
mov dword [esi + 0x14], edi
mov dword [esi + 0xc], edi
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov dword [esi], edi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 8
mov eax, 0xc0000095
jmp 0x100a3ac
mov eax, 0xc0000017
jmp 0x100a3ab
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x100a3a8
Function at 0x100af82
Capabilities:
Get number of processors

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp byte [ebp + 0x1c], 0
push esi
je 0x100b646
mov eax, 0xc0030001
pop esi
pop ebp
ret 0x18
mov ecx, dword [0x1038030]
push dword [ebp + 0x18]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
add ecx, 0x240000
push ecx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
je 0x100ccdc
push edi
push dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
push edi
push esi
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
cmp dword [ebp + 0x18], 0x64
jne 0x100b698
cmp dword [0x10383cc], edi
jne 0x100b698
mov dword [0x10383cc], esi
mov eax, dword [ebp + 8]
push esi
push dword [ebp + 0xc]
add eax, 0x1c
push dword [ebp + 0x10]
push eax
call fcn.0100b6be
pop edi
test eax, eax
jne 0x100af92
jmp 0x100cce6
mov eax, 0xc0000017
jmp 0x100af97
push esi
push eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
and dword [0x10383cc], 0
jmp 0x100ccdc
Function at 0x100b0ed
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x2c]
sub esp, 0x14
push ebx
push esi
xor esi, esi
push edi
cmp eax, esi
je 0x100b104
mov byte [eax], 0
mov eax, dword [ebp + 0x30]
cmp eax, esi
jne 0x1010246
mov eax, dword [ebp + 0x34]
cmp eax, esi
je 0x100b119
mov byte [eax], 0
mov eax, dword [ebp + 0x38]
cmp eax, esi
je 0x100b122
mov dword [eax], esi
movzx edi, byte [ebp + 0x10]
xor ebx, ebx
inc ebx
mov dword [ebp + 0x34], ebx
push ebx
push dword [ebp + 0x28]
lea eax, [ebp + 0x34]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
push edi
push esi
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call fcn.0100afa1
cmp eax, esi
jl 0x100b166
cmp dword [ebp + 0x34], esi
je 0x100b16d
cmp word [ebp - 0x14], bx
jne 0x100b12c
jmp 0x101024e
pop edi
pop esi
pop ebx
leave
ret 0x34
mov eax, 0xc0000001
jmp 0x100b166
mov byte [eax], 0
jmp 0x100b10f
cmp dword [ebp + 0x2c], esi
je 0x101025e
lea eax, [ebp - 0x10]
push eax
call fcn.0101430f
jmp 0x1010270
cmp dword [ebp + 0x30], esi
je 0x101026e
lea eax, [ebp - 0x10]
push eax
call fcn.010142b9
jmp 0x1010270
xor eax, eax
mov ecx, dword [ebp + 0x38]
mov edx, dword [ebp - 4]
cmp ecx, esi
je 0x101027c
mov dword [ecx], edx
mov cx, word [ebp - 6]
cmp cx, si
je 0x10102e9
cmp eax, esi
jne 0x10102e9
cmp dword [ebp - 0x10], esi
jne 0x10102d8
cmp word [ebp - 0xa], 0x12
jne 0x100b12c
test edx, 0x4000000
je 0x1010396
mov al, byte [0x1038415]
test al, al
je 0x101034a
mov dx, cx
shr dx, 8
test dl, dl
je 0x101034a
push 2
lea eax, [ebp + 0x10]
push eax
push dword [0x1038330]
mov byte [ebp + 0x10], dl
mov byte [ebp + 0x11], cl
jmp 0x1010374
cmp word [ebp - 0xa], 0x1b
je 0x10102e9
cmp cx, 0xa
jne 0x1010396
cmp dword [ebp - 0x10], esi
je 0x100b12c
mov ecx, dword [ebp + 0x2c]
cmp ecx, esi
je 0x1010301
cmp eax, esi
jne 0x1010381
mov ecx, dword [ebp + 0x30]
cmp ecx, esi
je 0x101030c
cmp eax, esi
jne 0x1010389
push esi
call dword [sym.imp.USER32.dll_VkKeyScanW]
movzx eax, ax
movzx cx, al
cmp cx, word [ebp - 0xa]
jne 0x100b12c
mov ecx, dword [ebp - 4]
shr eax, 8
movzx eax, al
mov eax, dword [eax*4 + 0x1038e70]
test ecx, eax
je 0x100b12c
not eax
and eax, ecx
test al, 0x1f
jne 0x100b12c
jmp 0x1010392
mov edx, dword [0x1038330]
mov byte [ebp + 0x13], cl
test al, al
je 0x101036e
movsx ax, cl
movzx eax, ax
push eax
push edx
call fcn.010232f1
test eax, eax
je 0x101036e
mov edx, 0x4e4
push ebx
lea eax, [ebp + 0x13]
push eax
push edx
call fcn.010241af
mov ecx, dword [ebp + 0xc]
mov word [ecx], ax
jmp 0x101039c
mov byte [ecx], bl
mov cx, word [ebp - 0xa]
jmp 0x1010396
movsx ax, byte [ebp - 0xa]
mov byte [ecx], bl
jmp 0x1010379
mov cx, word [ebp - 6]
mov eax, dword [ebp + 0xc]
mov word [eax], cx
xor eax, eax
jmp 0x100b166
Function at 0x1012cd5
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
test byte [0x10382cc], 0x20
jne 0x1012e56
push dword [0x1038260]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1012e56
mov eax, dword [0x1038258]
test byte [eax], 1
push esi
push edi
je 0x1012d41
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x1012e4e
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalSize]
shr eax, 1
push eax
push edi
call fcn.0101293c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x1012e4e
push ebx
push 2
call dword [sym.imp.USER32.dll_GetClipboardData]
xor ebx, ebx
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x1012e4d
mov esi, dword [0x1038258]
push ebx
push ebx
push dword [esi + 0x50]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
push dword [esi + 0x58]
mov eax, dword [esi + 0x40]
push eax
push dword [esi + 0x44]
push 4
push eax
push dword [0x1038268]
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x1012e43
push dword [0x1038268]
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
call edi
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x1012e2c
push dword [0x1038268]
call edi
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x1012e23
push dword [ebp - 8]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 4]
call edi
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call edi
mov edi, dword [sym.imp.GDI32.dll_GetObjectW]
lea eax, [ebp - 0x28]
push eax
push 0x18
push dword [ebp - 0x10]
call edi
push 0xcc0020
push ebx
push ebx
push dword [ebp - 0xc]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_BitBlt]
lea eax, [ebp - 0x28]
push eax
push 0x18
push dword [ebp - 8]
call edi
push dword [esi + 0x58]
push dword [esi + 0x40]
push dword [esi + 0x44]
push dword [ebp - 0x20]
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_GetDIBits]
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
push ebx
push dword [0x1038260]
call dword [sym.imp.USER32.dll_InvalidateRect]
push ebx
push dword [esi + 0x50]
call dword [sym.imp.ntdll.dll_NtReleaseMutant]
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
leave
ret
Function at 0x10151b6
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x1015328
cmp word [ebx + 0x18], 0
je 0x1015328
mov cx, word [ebp + 0x10]
test cx, cx
jne 0x10151e4
xor eax, eax
jmp 0x101532d
cmp word [ebx + 0x10], 0
je 0x101520b
movsx eax, word [ebx + 0x12]
mov eax, dword [ebx + eax*4 + 0x28]
cmp word [eax], cx
jne 0x101520b
mov edi, dword [ebp + 0xc]
movzx ecx, cx
lea esi, [eax + 2]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x101534d
xor esi, esi
mov dword [ebp + 8], esi
cmp dword [ebp + 0x14], esi
je 0x101523d
movzx eax, word [ebx + 0x14]
push 1
push eax
movzx eax, word [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push ebx
call fcn.010149ed
movzx eax, ax
cmp ax, 0xffff
je 0x101523d
push eax
push ebx
call fcn.0101489c
mov dword [ebp + 8], eax
movzx eax, word [ebx + 0x10]
movzx ecx, word [ebx + 0x18]
inc word [ebx + 0x12]
cmp ax, cx
jge 0x1015255
inc eax
mov word [ebx + 0x10], ax
jmp 0x10152a5
movzx eax, word [ebx + 0x12]
cmp ax, cx
jl 0x1015264
xor eax, eax
mov word [ebx + 0x12], ax
inc word [ebx + 0x16]
movzx eax, word [ebx + 0x16]
cmp ax, cx
jl 0x1015277
xor eax, eax
mov word [ebx + 0x16], ax
movsx eax, word [ebx + 0x12]
push dword [ebx + eax*4 + 0x28]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ax, word [ebx + 0x14]
cmp ax, word [ebx + 0x12]
jne 0x10152a5
mov eax, 0xffffffff
mov word [ebx + 0x14], ax
movzx eax, word [ebx + 0x14]
cmp ax, 0xffff
je 0x10152cc
mov cx, word [ebp + 0x10]
cwde
mov eax, dword [ebx + eax*4 + 0x28]
cmp word [eax], cx
jne 0x10152cc
mov edi, dword [ebp + 0xc]
movzx ecx, cx
lea esi, [eax + 2]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x10152d2
push ebx
call fcn.01015195
movsx eax, word [ebx + 0x12]
lea esi, [ebx + eax*4 + 0x28]
mov eax, dword [ebp + 8]
test eax, eax
je 0x10152e5
mov dword [esi], eax
jmp 0x101534d
movzx edi, word [ebp + 0x10]
mov ecx, dword [0x1038030]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
lea edx, [edi + 2]
push edx
add ecx, 0xc0000
push ecx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esi], eax
test eax, eax
jne 0x1015334
cmp word [ebx + 0x12], ax
jg 0x1015320
mov ax, word [ebx + 0x10]
mov word [ebx + 0x12], ax
dec word [ebx + 0x12]
dec word [ebx + 0x10]
mov eax, 0xc0000017
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
mov cx, word [ebp + 0x10]
mov word [eax], cx
mov eax, dword [esi]
push edi
push dword [ebp + 0xc]
inc eax
inc eax
push eax
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
or dword [ebx + 8], 2
jmp 0x10151dd