joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101a5a5
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 0x101a607
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
je 0x101a5e7
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
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

Function at 0x101a612
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [0x1038250]
cmp ebx, 0x1038250
je 0x101a689
push esi
push edi
mov edi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov esi, ebx
mov eax, dword [esi + 8]
mov ebx, dword [ebx]
cmp eax, dword [ebp + 8]
jne 0x101a67f
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ecx], eax
mov dword [eax + 4], ecx
mov eax, dword [esi + 0x28]
test al, 2
je 0x101a664
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
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
cmp ebx, 0x1038250
jne 0x101a62e
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x101ad9f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push esi
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x101adde
cmp dword [ebp - 8], 2
jne 0x101adde
movzx eax, word [ebp - 4]
push 1
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x101adde
inc esi
mov eax, esi
pop esi
leave
ret 4

Function at 0x101adea
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x101ae30
cmp dword [ebp - 4], 4
jne 0x101ae30
mov eax, dword [ebp - 8]
cmp eax, 4
jbe 0x101ae30
push 1
push esi
add eax, 0xfffffffc
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x101ae30
inc esi
mov eax, esi
pop esi
leave
ret 4
Function at 0x101ae3c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push esi
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x101ae92
cmp dword [ebp - 8], 2
jne 0x101ae92
mov eax, 0x104
cmp word [ebp - 4], ax
ja 0x101ae92
movzx ecx, word [ebp - 4]
xor eax, eax
cmp dword [ebp + 0xc], esi
push 1
setne al
push esi
inc eax
imul eax, ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x101ae92
inc esi
mov eax, esi
pop esi
leave
ret 8

Function at 0x101ae9e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x1038008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
and dword [ebp - 0x11c], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push 0
mov dword [ebp - 0x118], eax
lea eax, [ebp - 0x114]
push eax
push 2
lea eax, [ebp - 0x110]
push eax
push ebx
call esi
test eax, eax
je 0x101afa9
cmp dword [ebp - 0x114], 2
jne 0x101afa9
mov eax, 0x104
cmp word [ebp - 0x110], ax
ja 0x101afa9
movzx edi, word [ebp - 0x110]
cmp edi, dword [ebp + 0x14]
jae 0x101afa9
xor eax, eax
cmp dword [ebp + 0xc], eax
push eax
lea eax, [ebp - 0x114]
push eax
je 0x101af57
add edi, edi
push edi
push dword [ebp - 0x118]
push ebx
call esi
test eax, eax
je 0x101afa9
cmp dword [ebp - 0x114], edi
jne 0x101afa9
movzx eax, word [ebp - 0x110]
mov edx, dword [ebp - 0x118]
xor ecx, ecx
mov word [edx + eax*2], cx
jmp 0x101af9d
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
call esi
test eax, eax
je 0x101afa9
cmp dword [ebp - 0x114], edi
jne 0x101afa9
push dword [ebp + 0x14]
movzx eax, word [ebp - 0x110]
push dword [ebp - 0x118]
mov byte [ebp + eax - 0x10c], 0
push 0xffffffffffffffff
lea eax, [ebp - 0x10c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x101afa9
mov dword [ebp - 0x11c], 1
jmp 0x101afba
cmp dword [ebp + 0x14], 0
jbe 0x101afba
mov ecx, dword [ebp - 0x118]
xor eax, eax
mov word [ecx], ax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x11c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100158a
leave
ret 0x10

Function at 0x101afd6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0
lea eax, [ebp + 0xc]
push eax
mov edi, 0xc4
push edi
lea eax, [esi + 8]
push eax
push dword [ebp + 8]
mov dword [esi], 0xcc
mov dword [esi + 4], 0xa0000002
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x101b040
cmp dword [ebp + 0xc], edi
jne 0x101b040
mov eax, 0x7fff
cmp dword [esi + 0x80], eax
ja 0x101b040
cmp dword [esi + 0x84], eax
ja 0x101b040
cmp word [esi + 0xc], 0
jl 0x101b040
cmp word [esi + 0xe], 0
jl 0x101b040
mov dword [ebp - 4], 1
jmp 0x101b050
push 0xcc
push 0
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x101b05e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
xor esi, esi
push esi
lea ecx, [ebp + 0xc]
push ecx
mov dword [eax], 0xc
mov dword [eax + 4], 0xa0000004
push 4
add eax, 8
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x101b095
cmp dword [ebp + 0xc], 4
jne 0x101b095
inc esi
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x101b1e7
Capabilities:
Query environment variable
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1038008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x214], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov dword [ebp - 0x210], eax
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.010054b6
test eax, eax
jl 0x101b368
mov edi, dword [sym.imp.msvcrt.dll_wcsrchr]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call edi
pop ecx
pop ecx
test eax, eax
jne 0x101b24d
mov word [ebp - 0x20c], ax
jmp 0x101b25e
xor ecx, ecx
push 0x5c
push esi
mov word [eax + 2], cx
call edi
mov esi, eax
pop ecx
inc esi
pop ecx
inc esi
push 0x101b3b4
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.0101b171
test eax, eax
jl 0x101b368
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x210]
push 0
push esi
push 0x101b38c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x101b32d
mov eax, dword [ebp - 0x210]
cmp word [eax], 0x40
jne 0x101b368
push ebx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x101b368
cmp eax, ebx
ja 0x101b368
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0101ad4e
test eax, eax
je 0x101b368
push 2
push 0
lea eax, [ebp - 0x20a]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x101b368
push dword [ebp + 0x10]
push dword [ebp - 0x210]
push dword [ebp - 0x218]
push esi
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x101b324
mov dword [ebp - 0x214], 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x101b35f
push esi
push dword [ebp + 0x10]
push dword [ebp - 0x210]
call fcn.010054b6
test eax, eax
jl 0x101b368
push 0x2e
push dword [ebp - 0x210]
call edi
pop ecx
pop ecx
test eax, eax
je 0x101b355
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 0x214], 1
cmp dword [ebp - 0x214], 0
jne 0x101b379
cmp dword [ebp + 0x10], 0
jbe 0x101b379
mov ecx, dword [ebp - 0x210]
xor eax, eax
mov word [ecx], ax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100158a
leave
ret 0xc
Function at 0x101b625
Capabilities:
Accept command line arguments

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp word [eax], 0x22
push 2
pop edx
jne 0x101b64f
add eax, edx
movzx ecx, word [eax]
test cx, cx
je 0x101b64a
cmp cx, 0x22
jne 0x101b634
cmp word [eax], 0
jne 0x101b64d
xor eax, eax
ret
add eax, edx
movzx ecx, word [eax]
test cx, cx
je 0x101b64a
cmp cx, 0x22
je 0x101b667
add eax, edx
movzx ecx, word [eax]
test cx, cx
jne 0x101b657
cmp word [eax], 0
je 0x101b64a
add eax, edx
cmp word [eax], 0
mov ecx, eax
je 0x101b68b
cmp word [ecx], 0x22
je 0x101b686
add ecx, edx
cmp word [ecx], 0
jne 0x101b677
ret
xor edx, edx
mov word [ecx], dx
ret

Function at 0x101bce8
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x1038008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x14
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
push dword [0x1038040]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp dword [ebp + 0xc], 0
mov edi, eax
je 0x101bd4c
push 0
push 0
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x100
lea eax, [ebp - 0x22c]
push eax
call fcn.0101bb8e
mov esi, dword [ebp - 0x230]
push 0x20
pop eax
mov word [esi], ax
inc esi
inc esi
jmp 0x101bd52
lea esi, [ebp - 0x22c]
mov eax, 0xff
sub eax, edi
push eax
push esi
push dword [0x1038260]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x101bda0
cmp dword [ebp + 0xc], 0
je 0x101bd79
lea eax, [ebp - 0x22c]
jmp 0x101bd93
push edi
lea eax, [ebp - 0x2c]
push esi
push eax
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x101bda0
lea eax, [ebp + edi*2 - 0x22a]
push eax
push dword [0x1038260]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0100158a
leave
ret 8
Function at 0x101bf31
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2d8
mov eax, dword [0x1038008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x2d4]
cmp dword [ebp + 0xc], ebx
je 0x101bf6a
push 0xc4
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
jmp 0x101bf77
push eax
call fcn.0101bdb5
and dword [ebp - 0x274], 0xffffffbf
mov eax, dword [ebp + 0xc]
shl eax, 7
xor eax, dword [ebp - 0x274]
mov dword [ebp - 0x224], edi
and eax, 0x80
xor dword [ebp - 0x274], eax
call fcn.01001505
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
jae 0x101c01e
push 0x101c050
sub esi, eax
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.0101b171
test eax, eax
jl 0x101c01e
xor eax, eax
mov word [ebp - 8], ax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x2d8], eax
cmp eax, ebx
je 0x101c01e
push 0x101c06c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x101c012
push ebx
push ebx
push 1
push edi
call esi
push ebx
lea eax, [ebp - 0x2d4]
push eax
push 5
push edi
call esi
push ebx
push ebx
push 7
push edi
call esi
push dword [ebp - 0x2d8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.01001579
cmp dword [ebp + 0xc], ebx
pop edi
pop esi
pop ebx
jne 0x101c040
test byte [ebp - 0x274], 0x40
je 0x101c040
lea eax, [ebp - 0x2d4]
push eax
call fcn.0101b836
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100158a
leave
ret 8

Function at 0x101dda3
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp dword [edi], ebx
je 0x101de02
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push dword [edi + 4]
mov esi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
push ebx
push dword [eax + 0x18]
call esi
push dword [edi + 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call esi
push dword [edi + 0xc]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call esi
push dword [edi]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call esi
pop esi
xor eax, eax
pop edi
inc eax
pop ebx
pop ebp
ret 4
Function at 0x1020401
Capabilities:
Map section object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push esi
push 0x4000000
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x20]
push eax
push 0xf001f
push edi
mov dword [ebp - 0x20], 0x18
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], 0x40
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ntdll.dll_NtCreateSection]
cmp eax, esi
jl 0x10204c8
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x14]
push 4
push esi
push 2
push ebx
push esi
push dword [ebp + 0xc]
mov dword [eax], esi
push esi
push eax
push 0xffffffffffffffff
mov dword [ebx], esi
push dword [edi]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
cmp eax, esi
mov dword [ebp + 8], eax
jge 0x1020488
push dword [edi]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [ebp + 8]
jmp 0x10204c7
mov eax, dword [ebp + 0x1c]
push 4
push 0x100000
push 2
push ebx
push esi
push dword [ebp + 0xc]
mov dword [eax], esi
push esi
push eax
push dword [ebp + 0x18]
mov dword [ebx], esi
push dword [edi]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov ebx, eax
cmp ebx, esi
jge 0x10204c5
mov eax, dword [ebp + 0x10]
push dword [eax]
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
push dword [edi]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 0x18

Function at 0x102079e
Capabilities:
Log keystrokes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
movzx eax, word [esi + 2]
push 1
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
movzx ecx, word [esi]
pop esi
test cl, 3
je 0x10207c2
or eax, 0x100
test cl, 4
je 0x10207cc
or eax, 0x200
test cl, 8
je 0x10207d6
or eax, 0x400
pop ebp
ret 4
Function at 0x1023f99
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address
Get number of processors

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp byte [0x1038416], 0
je 0x1023fad
pop ebp
jmp fcn.01033763
pop ebp
jmp fcn.01002d10

Function at 0x1024003
Capabilities:
Get number of processors

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp byte [0x1038416], 0
je 0x1024017
pop ebp
jmp fcn.0103540a
pop ebp
jmp fcn.010022f1
Function at 0x1029fed
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x1038008]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [0x1038f18], 1
push ebx
push esi
push edi
jne 0x102a01c
or dword [0x1038f18], 1
call fcn.01029f89
mov dword [0x1038f14], eax
push 4
pop eax
call fcn.0100ba47
mov esi, esp
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x102a03e
xor eax, eax
jmp 0x102a0fb
mov ebx, dword [ebp - 0x28]
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x4c]
lea edi, [eax - 1]
not edi
and edi, esi
sub edi, eax
mov dword [ebp - 0xc], eax
mov eax, dword [0x1038f10]
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xffff1000
add esi, 0x11000
add esi, ebx
cmp edi, esi
jb 0x102a037
cmp eax, 1
je 0x102a0dc
mov dword [ebp - 8], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x102a037
mov eax, dword [ebp - 0x20]
add dword [ebp - 8], eax
test dword [ebp - 0x1c], ebx
je 0x102a085
test dword [ebp - 0x18], 0x100
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 8], eax
je 0x102a0b7
xor eax, eax
inc eax
jmp 0x102a0fb
cmp edi, eax
jb 0x102a037
cmp eax, esi
jae 0x102a0c6
mov dword [ebp - 8], esi
push 4
push ebx
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x1038f10]
jmp 0x102a0df
mov dword [ebp - 8], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0x10]
push ecx
inc eax
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100158a
leave
ret
Function at 0x102d625
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
push edi
push dword [eax + 0x38]
call fcn.01029c3e
mov dword [ebp + 8], eax
mov eax, dword [esi + 4]
push dword [eax + 0x3c]
call fcn.01029cac
push 2
mov dword [ebp - 4], eax
mov eax, dword [esi + 4]
mov esi, dword [ebp + 0xc]
pop ebx
test byte [eax + 0x30], bl
je 0x102d7a0
mov al, byte [ebp + 8]
xor edx, edx
lea ecx, [esi + 8]
test al, 8
je 0x102d6b7
mov edi, ebx
test al, 1
je 0x102d6a1
test bl, al
je 0x102d68b
mov ax, word [edx + 0x1038ef8]
mov word [ecx], ax
add edx, ebx
add ecx, 4
cmp edx, 4
jae 0x102d702
jmp 0x102d675
mov ax, word [edx + str.hQB0hQ]
mov word [ecx], ax
add edx, ebx
add ecx, 4
cmp edx, 4
jae 0x102d702
jmp 0x102d68b
mov ax, word [edx + 0x1038ef0]
mov word [ecx], ax
add edx, ebx
add ecx, 4
cmp edx, 4
jae 0x102d702
jmp 0x102d6a1
push 3
pop edi
test al, 1
je 0x102d6ee
test bl, al
je 0x102d6d8
mov ax, word [edx + 0x1038ee8]
mov word [ecx], ax
add edx, ebx
add ecx, 4
cmp edx, 6
jae 0x102d702
jmp 0x102d6c2
mov ax, word [edx + 0x1038ee0]
mov word [ecx], ax
add edx, ebx
add ecx, 4
cmp edx, 6
jae 0x102d702
jmp 0x102d6d8
mov ax, word [edx + 0x1038ed8]
mov word [ecx], ax
add edx, ebx
add ecx, 4
cmp edx, 6
jb 0x102d6ee
mov eax, dword [ebp - 4]
test eax, eax
jne 0x102d711
mov ax, word [0x1038eb0]
jmp 0x102d74a
test al, 1
je 0x102d71d
mov ax, word [0x1038eb2]
jmp 0x102d74a
test bl, al
je 0x102d729
mov ax, word [0x1038eb4]
jmp 0x102d74a
test al, 4
je 0x102d735
mov ax, word [0x1038eb6]
jmp 0x102d74a
test al, 8
je 0x102d741
mov ax, word [0x1038eb8]
jmp 0x102d74a
push 0x20
pop eax
mov word [esi + edi*4 + 8], ax
inc edi
mov word [esi + edi*4 + 8], ax
push 0x15
inc edi
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x102d77b
lea eax, [esi + edi*4 + 8]
xor ecx, ecx
add edi, 4
mov dx, word [ecx + 0x1038ed0]
mov word [eax], dx
add ecx, ebx
add eax, 4
cmp ecx, 8
jae 0x102d7a2
jmp 0x102d765
test byte [ebp + 8], 0x10
je 0x102d7a2
lea eax, [esi + edi*4 + 8]
xor ecx, ecx
add edi, 4
mov dx, word [ecx + 0x1038ec8]
mov word [eax], dx
add ecx, ebx
add eax, 4
cmp ecx, 8
jae 0x102d7a2
jmp 0x102d78a
xor edi, edi
test edi, edi
jle 0x102d7b7
lea eax, [esi + 0xa]
mov ecx, edi
push 7
pop edx
mov word [eax], dx
add eax, 4
dec ecx
jne 0x102d7ab
xor eax, eax
mov dword [esi], edi
inc eax
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
leave
ret 8
Function at 0x1032005
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
push eax
call fcn.010089ee
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], eax
jbe 0x103206d
mov dword [ebp - 8], eax
mov eax, dword [0x1038080]
mov ecx, dword [ebp - 8]
add eax, ecx
test byte [eax + 0x14], 4
jne 0x1032052
mov al, byte [eax + 0x15]
cmp al, 0x80
je 0x1032077
cmp al, 0x81
je 0x1032077
cmp al, 0x88
je 0x1032077
xor ecx, ecx
cmp al, 0x86
sete cl
mov eax, ecx
test eax, eax
jne 0x1032077
mov eax, dword [0x10383d0]
inc dword [ebp - 0xc]
add dword [ebp - 8], 0x18
mov dword [eax + 4], 1
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jb 0x1032026
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
call fcn.0101c110
push 1
push dword [ebp - 4]
call fcn.01026cf3
mov ecx, dword [0x1038030]
mov esi, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
lea ebx, [esi + 0xc]
push ebx
add ecx, 0x300000
push ecx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
test edi, edi
je 0x103213f
mov eax, dword [0x1038080]
mov ecx, dword [ebp - 8]
push dword [eax + ecx]
push dword [0x1038268]
call dword [sym.imp.GDI32.dll_SelectObject]
test eax, eax
je 0x1032169
xor esi, esi
push edi
xor eax, eax
push ebx
mov word [ebp - 0xe], ax
push 1
lea eax, [ebp - 0x10]
push eax
push dword [0x1038268]
mov word [ebp - 0x10], si
call sub.GDI32.dll_GetStringBitmapW
test eax, eax
je 0x1032169
mov ax, word [edi]
mov word [ebp - 4], ax
mov ax, word [edi + 4]
mov word [ebp - 2], ax
lea eax, [edi + 8]
push eax
push dword [ebp - 4]
push esi
call fcn.01026865
test eax, eax
jl 0x1032169
inc esi
cmp si, 0x20
jb 0x10320dd
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 0x1032052
add esi, 0xc
push esi
mov esi, dword [sym.imp.ntdll.dll_DbgPrintEx]
push 0x1011c28
push 1
push 0x70
call esi
push 0x1009bd0
push 1
push 0x70
call esi
add esp, 0x1c
xor eax, eax
jmp 0x1032070
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 0x1032162
Function at 0x103267c
Capabilities:
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword fs:[0x18]
mov edx, dword [ebp + 0xc]
mov ecx, dword [0x1038030]
mov eax, dword [eax + 0x30]
push esi
movsx esi, word [ebp + 0xc]
shr edx, 0x10
movsx edx, dx
imul edx, esi
push edi
shl edx, 3
push edx
add ecx, 0x300000
push ecx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
jne 0x10326cc
mov eax, 0xc0000017
jmp 0x10327e7
mov eax, dword [0x1038258]
push ebx
push 4
pop ebx
test byte [eax], bl
je 0x1032701
test byte [0x10382f8], 1
jne 0x1032701
cmp byte [section..data], 0
mov eax, dword [0x1038044]
je 0x1032706
cmp dword [0x1038334], eax
je 0x1032706
mov dword [ebp - 8], 0x4e4
jmp 0x1032709
mov eax, dword [0x1038334]
mov dword [ebp - 8], eax
movsx eax, word [ebp + 0xe]
movsx ecx, word [ebp + 0xc]
mov esi, dword [ebp + 8]
imul eax, ecx
shl eax, 2
push eax
push esi
push edi
call dword [sym.imp.msvcrt.dll_memmove]
and dword [ebp - 0xc], 0
xor eax, eax
add esp, 0xc
cmp ax, word [ebp + 0xe]
jge 0x10327cd
movsx eax, word [ebp + 0xc]
and dword [ebp + 8], 0
test eax, eax
jle 0x10327bd
movzx ecx, word [edi + 2]
test ecx, 0x100
je 0x103278f
dec eax
cmp dword [ebp + 8], eax
jge 0x103277e
inc dword [ebp + 8]
push 2
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebp - 8]
call fcn.0101c3ca
mov ax, word [ebp - 4]
mov byte [esi], al
mov cx, word [edi + 2]
mov word [esi + 2], cx
add esi, ebx
add edi, ebx
mov byte [esi], ah
jmp 0x10327a5
mov byte [esi], 0x20
mov ax, word [edi + 2]
mov ecx, 0xfcff
and ax, cx
jmp 0x10327a9
test ecx, 0x300
jne 0x10327b1
push 1
push esi
push 1
push edi
push dword [ebp - 8]
call fcn.0101c3ca
mov ax, word [edi + 2]
mov word [esi + 2], ax
add esi, ebx
add edi, ebx
movsx eax, word [ebp + 0xc]
inc dword [ebp + 8]
cmp dword [ebp + 8], eax
jl 0x1032742
movsx eax, word [ebp + 0xe]
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], eax
jl 0x1032736
push dword [ebp - 0x10]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 8