joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100970a
Capabilities:
Log keystrokes via polling

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 0x80000002
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 0x1009afe
Capabilities:
Hide graphical window
Log keystrokes
Log keystrokes via polling

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 fcn.01001852
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 0x100f918
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 0x100f98a
mov eax, dword [0x1038e48]
mov dx, word [ebp - 0x13c]
add eax, ecx
cmp dx, word [eax + 8]
jne 0x100f973
mov dx, word [ebp - 0x138]
cmp dx, word [eax + 0xa]
jne 0x100f973
test byte [ebp - 0x134], 4
je 0x100f966
test byte [eax], 1
je 0x100f973
or dword [eax], esi
inc dword [ebp - 0x1ec]
jmp 0x100f973
test byte [eax], 2
je 0x100f973
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 0x100f92d
inc dword [ebp - 0x1f0]
lea eax, [ebp - 0x1e8]
push eax
push dword [ebp - 0x1f0]
push ebx
call edi
test eax, eax
jne 0x100f91d
cmp dword [ebp - 0x1ec], 2
jb 0x1009af6
xor edi, edi
xor ebx, ebx
inc edi
cmp dword [ebp - 0x1f4], ebx
jbe 0x100f9c8
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 0x100fa56
cmp eax, esi
jae 0x100fa56
push 0x100fae4
sub esi, eax
push esi
lea eax, [ebp + eax - 0x10c]
push eax
call fcn.01022802
cmp eax, ebx
jge 0x100fa1f
push eax
push 0x1012060
mov esi, dword [sym.imp.ntdll.dll_DbgPrintEx]
push edi
push 0x70
call esi
push 0x100aba8
push edi
push 0x70
call esi
add esp, 0x1c
jmp 0x1009af6
push ebx
push ebx
push 3
push ebx
push edi
push 0x80000000
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x1038f24], eax
cmp eax, 0xffffffff
jne 0x100fa4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100fab8
jmp 0x100fa02
mov eax, edi
jmp 0x1009af8
mov esi, dword [sym.imp.ntdll.dll_DbgPrintEx]
push 0x100fa78
push edi
push 0x70
call esi
push 0x100aba8
push edi
push 0x70
call esi
add esp, 0x18
jmp 0x1009af6
Function at 0x1009edf
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
test edi, edi
je 0x1004564
imul edi, edi, 0x14
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_memmove]
push esi
mov esi, dword [ebp + 8]
sub edi, 0x14
cmp word [esi], 1
je 0x1009eba
add esi, 0x14
dec dword [ebp - 4]
sub edi, 0x14
cmp dword [ebp - 4], 0
jne 0x1004549
pop esi
pop ebx
mov eax, dword [ebp + 0xc]
pop edi
leave
ret 8
cmp dword [esi + 4], 0
je 0x1004553
test byte [0x10382cc], 2
jne 0x100c8ba
test byte [0x10381e8], 2
je 0x1004553
cmp word [esi + 0xa], 0x13
je 0x100c8e6
lea eax, [esi + 4]
push eax
call fcn.0100a2f3
test eax, eax
je 0x1004553
jmp 0x100c8e6
movzx eax, word [esi + 0xa]
push eax
call fcn.0101aa30
test eax, eax
jne 0x1009ed1
push 2
call fcn.01023477
push edi
lea eax, [esi + 0x14]
push eax
push esi
call ebx
add esp, 0xc
dec dword [ebp + 0xc]
jmp 0x1004556
or dword [0x10382cc], 2
jmp 0x100c8d3
Function at 0x1011e49
Capabilities:
Map section object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x1038008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x1011e1e
cmp dword [ebp + 0xc], ebx
je 0x1011e57
push edi
lea eax, [ebp - 0x420]
push eax
mov edi, 0x1007dc8
push edi
push ebx
call fcn.010058ac
test eax, eax
jl 0x1011e29
xor eax, eax
push 0xa
mov word [ebp - 0x428], ax
pop eax
mov word [ebp - 0x426], ax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x428]
push eax
push 0xa
push dword [0x1038044]
call dword [sym.imp.ntdll.dll_RtlIntegerToUnicodeString]
push 0
lea eax, [ebp - 0x418]
push eax
push 0x400
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x420]
call fcn.01005995
test eax, eax
jge 0x1011e5e
push dword [ebp - 0x420]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.010015a8
leave
ret 8
cmp dword [ebp + 0xc], ebx
je 0x1007d32
jmp 0x1011e57
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.ntdll.dll_DbgPrintEx]
push eax
push edi
push 0x1011f88
push 1
push 0x70
call esi
push 0x100aba8
push 1
push 0x70
call esi
add esp, 0x20
xor eax, eax
jmp 0x1007db2
xor eax, eax
jmp 0x1007db3
lea eax, [ebp - 0x418]
cmp word [eax], 0
je 0x1011ef6
push eax
call fcn.010269c3
lea ecx, [ebp - 0x41c]
push ecx
push eax
mov dword [ebp - 0x41c], eax
call fcn.010269ef
push dword [ebp - 0x41c]
movzx edi, ax
call fcn.010269c3
cmp word [eax], 0x2d
jne 0x1011f04
add eax, 2
push eax
call fcn.010269c3
lea ecx, [ebp - 0x41c]
push ecx
push eax
mov dword [ebp - 0x41c], eax
call fcn.010269ef
movzx edx, ax
cmp di, dx
ja 0x1011f2a
push dword [ebp - 0x41c]
call fcn.010269c3
cmp word [eax], 0x2c
jne 0x1011ed9
add eax, 2
push eax
call fcn.010269c3
inc ebx
cmp dword [ebp + 0xc], 3
jb 0x1011eee
mov word [esi], di
inc esi
inc esi
mov word [esi], dx
inc esi
inc esi
sub dword [ebp + 0xc], 2
test eax, eax
jne 0x1011e64
xor eax, eax
mov word [esi], ax
lea ebx, [ebx + ebx + 1]
jmp 0x1007da4
push 0x1011f64
mov esi, dword [sym.imp.ntdll.dll_DbgPrintEx]
push 1
push 0x70
call esi
push 0x100aba8
push 1
push 0x70
call esi
add esp, 0x18
xor ebx, ebx
jmp 0x1007da4
push 0x1011f34
jmp 0x1011f09
Function at 0x101249b
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 1
call fcn.01002f2e
mov esi, dword [ebp + 8]
push 0
push 0
push dword [esi + 0x50]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov ebx, dword [esi + 0x40]
mov edi, dword [ebx + 8]
mov ecx, dword [ebp + 0xc]
movsx edx, word [ecx + 6]
test edi, edi
jge 0x10124d7
or eax, 0xffffffff
sub eax, edx
sub eax, edi
mov dword [ebp + 0xc], eax
jmp 0x10124da
mov dword [ebp + 0xc], edx
push dword [esi + 0x58]
movsx edi, word [ecx + 2]
movsx eax, word [ecx]
movsx ecx, word [ecx + 4]
push ebx
push dword [esi + 0x44]
movsx ebx, word [esi + 0xa]
push ebx
push 0
push dword [ebp + 0xc]
sub edx, edi
push eax
sub ecx, eax
inc edx
push edx
inc ecx
push ecx
movsx ecx, word [esi + 0xe]
sub edi, ecx
movsx ecx, word [esi + 0xc]
push edi
sub eax, ecx
push eax
push dword [0x1038268]
call dword [sym.imp.GDI32.dll_SetDIBitsToDevice]
push 0
push dword [esi + 0x50]
mov edi, eax
call dword [sym.imp.ntdll.dll_NtReleaseMutant]
push 0
call fcn.01002f2e
mov eax, edi
neg eax
sbb eax, eax
pop edi
and eax, 0x3fffffff
pop esi
add eax, 0xc0000001
pop ebx
pop ebp
ret 8
Function at 0x1014a83
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
movzx eax, word [esi + 8]
mov cx, word [esi + 0xa]
mov word [ebp + 0xa], cx
mov cx, word [esi + 0xc]
sub cx, ax
mov word [ebp + 8], ax
dec cx
movsx eax, cx
inc eax
push edi
mov edi, dword [ebp + 0xc]
inc eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
movzx eax, word [esi + 0x10]
push 3
push dword [ebp + 8]
push eax
push edi
call fcn.0100ab7c
lea eax, [ebp - 4]
push eax
movzx eax, word [edi + 0xe4]
push 2
push dword [ebp + 8]
xor ebx, ebx
push eax
inc ebx
push edi
mov dword [ebp - 4], ebx
call fcn.0100ab7c
mov ax, word [esi + 0xc]
sub ax, word [esi + 8]
inc word [ebp + 8]
dec ax
cwde
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
movzx eax, word [edi + 0xe8]
push 2
push dword [ebp + 8]
push eax
push edi
call fcn.0100ab7c
mov ax, word [esi + 0xc]
mov word [ebp + 8], ax
lea eax, [ebp - 4]
push eax
movzx eax, word [edi + 0xe6]
push 2
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push eax
push edi
call fcn.0100ab7c
mov ax, word [esi + 0xe]
sub ax, word [esi + 0xa]
and dword [ebp + 0xc], 0
dec ax
xor ecx, ecx
cmp cx, ax
jge 0x1014bb1
movzx eax, word [esi + 8]
mov cx, word [esi + 0xc]
inc word [ebp + 0xa]
sub cx, ax
mov word [ebp + 8], ax
dec cx
movsx eax, cx
inc eax
inc eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
movzx eax, word [esi + 0x10]
push 3
push dword [ebp + 8]
push eax
push edi
call fcn.0100ab7c
lea eax, [ebp - 4]
push eax
movzx eax, word [edi + 0xea]
push 2
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push eax
push edi
call fcn.0100ab7c
mov ax, word [esi + 0xc]
mov word [ebp + 8], ax
lea eax, [ebp - 4]
push eax
movzx eax, word [edi + 0xea]
push 2
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push eax
push edi
call fcn.0100ab7c
mov ax, word [esi + 0xe]
sub ax, word [esi + 0xa]
inc dword [ebp + 0xc]
dec ax
cmp word [ebp + 0xc], ax
jl 0x1014b31
movzx eax, word [esi + 8]
mov cx, word [esi + 0xe]
mov word [ebp + 0xa], cx
mov cx, word [esi + 0xc]
sub cx, ax
mov word [ebp + 8], ax
dec cx
movsx eax, cx
inc eax
inc eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
movzx eax, word [esi + 0x10]
push 3
push dword [ebp + 8]
push eax
push edi
call fcn.0100ab7c
mov ax, word [esi + 8]
mov word [ebp + 8], ax
lea eax, [ebp - 4]
push eax
movzx eax, word [edi + 0xec]
push 2
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push eax
push edi
call fcn.0100ab7c
mov ax, word [esi + 0xc]
sub ax, word [esi + 8]
inc word [ebp + 8]
dec ax
cwde
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
movzx eax, word [edi + 0xe8]
push 2
push dword [ebp + 8]
push eax
push edi
call fcn.0100ab7c
mov ax, word [esi + 0xc]
mov word [ebp + 8], ax
lea eax, [ebp - 4]
push eax
movzx eax, word [edi + 0xee]
push 2
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push eax
push edi
call fcn.0100ab7c
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1014ca2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
movzx edx, word [esi + 0xe]
movzx eax, word [esi + 0xa]
movzx ecx, word [esi + 0x18]
push edi
mov edi, edx
sub edi, eax
dec edi
cmp cx, di
jge 0x1014c84
xor edi, edi
jmp 0x1014c8d
sub ecx, edx
lea ecx, [ecx + eax + 2]
movzx edi, cx
movzx ecx, word [esi + 8]
lea edx, [ecx + 1]
mov word [ebp + 8], dx
mov dx, word [esi + 0xc]
sub dx, cx
dec dx
movsx ecx, dx
sub eax, edi
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0xc]
lea eax, [eax + ecx + 1]
mov word [ebp + 0xa], ax
lea eax, [ebp - 4]
push eax
movzx eax, word [esi + 0x10]
push 3
push dword [ebp + 8]
push eax
push dword [ebp + 0x14]
call fcn.0100ab7c
mov ax, word [esi + 0xa]
sub ax, di
add ax, word [ebp + 0x10]
lea ecx, [ebp - 4]
inc ax
mov word [ebp + 0xa], ax
movzx eax, word [esi + 0x10]
push ecx
mov ecx, eax
push 3
push dword [ebp + 8]
shr ecx, 4
and eax, 0xf
and ecx, 0xf
shl eax, 4
or ecx, eax
push ecx
push dword [ebp + 0x14]
call fcn.0100ab7c
pop edi
pop esi
leave
ret 0x10
Function at 0x10150d5
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test ax, ax
je 0x1015109
push ebx
push esi
mov esi, dword [ebp + 0x10]
movsx edx, word [esi + 0x16]
push edi
mov edi, dword [ebp + 0x14]
mov cx, word [edi + 0xe]
sub cx, word [edi + 0xa]
dec cx
test byte [ebp + 0x1c], 1
movzx ecx, cx
mov dword [ebp + 0x14], ecx
je 0x1015033
mov ecx, dword [ebp + 0xc]
movzx ecx, word [ecx]
movzx ebx, cx
movsx ecx, word [esi + 0x18]
add eax, ebx
cwde
sub eax, edx
add eax, ecx
cdq
idiv ecx
movsx eax, bx
movsx ebx, word [esi + 0x18]
movzx ecx, dx
movsx edx, word [esi + 0x16]
sub eax, edx
add eax, ebx
cdq
idiv ebx
movzx eax, dx
jmp 0x1015066
mov eax, dword [ebp + 0xc]
movzx eax, word [eax]
movsx ecx, word [esi + 0x18]
cwde
sub eax, edx
add eax, ecx
cdq
idiv ecx
mov ecx, dword [ebp + 8]
movzx eax, dx
movzx edx, word [esi + 0x10]
add ecx, eax
movzx ecx, cx
cmp cx, dx
jl 0x101505f
dec edx
movzx ecx, dx
jmp 0x1015066
test cx, cx
jge 0x1015066
xor ecx, ecx
mov edx, ecx
sub edx, eax
movzx eax, dx
movsx edx, word [ebp + 0x14]
mov dword [ebp + 8], eax
movzx eax, word [edi + 0x18]
movsx ebx, ax
sub ebx, edx
movsx edx, cx
cmp edx, ebx
mov dword [ebp + 0x10], edx
jg 0x101509b
mov ecx, dword [ebp + 8]
add eax, ecx
mov ecx, dword [ebp + 0x14]
dec ecx
cmp ax, cx
mov word [edi + 0x18], ax
jl 0x10150b3
jmp 0x10150b7
cmp cx, ax
jle 0x10150d1
mov ecx, dword [ebp + 8]
add eax, ecx
mov word [edi + 0x18], ax
movzx ecx, word [esi + 0x10]
cmp ax, cx
jl 0x10150b7
dec ecx
mov word [edi + 0x18], cx
movsx eax, word [esi + 0x16]
movsx ecx, word [esi + 0x18]
add eax, edx
cdq
idiv ecx
push dword [ebp + 0x18]
push esi
push edx
push edi
call fcn.01014d0c
jmp 0x10150f2
push dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
movzx eax, word [eax]
movsx ebx, word [esi + 0x18]
push ecx
movsx ecx, word [esi + 0x16]
cwde
sub eax, ecx
add eax, ebx
cdq
idiv ebx
push edx
push edi
call fcn.01014c5f
movsx eax, word [esi + 0x16]
add eax, dword [ebp + 0x10]
movsx ecx, word [esi + 0x18]
cdq
idiv ecx
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov word [eax], dx
pop ebp
ret 0x18

Function at 0x10157a4
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [0x1038030]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
movzx ebx, word [ebp + 0x10]
push edi
push ebx
add ecx, 0x80000
push ecx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
test edi, edi
jne 0x1015793
mov eax, 0xc0000017
jmp 0x10157ca
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
mov esi, dword [ebp + 8]
push dword [esi + 0x10]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ax, word [ebp + 0x10]
push ebx
push dword [ebp + 0xc]
mov dword [esi + 0x10], edi
push edi
mov word [esi + 0xa], ax
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x101a8df
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [0x103825c]
mov dword [eax + 0xdc], ecx
mov dword [0x103825c], eax
pop ebp
ret 4

Function at 0x101aa17
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push dword [eax + 0x2c]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
call dword [sym.imp.ntdll.dll_NtClearEvent]
pop ebp
ret 4

Function at 0x101aa9f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor eax, eax
mov edx, dword [eax*8 + 0x1038960]
test edx, edx
je 0x101aa86
cmp edx, dword [ecx]
je 0x101aa86
inc eax
cmp eax, 0x20
jb 0x101aa71
cmp eax, 0x20
je 0x101aaaf
mov edx, dword [ecx]
shl eax, 3
mov dword [eax + 0x1038960], edx
mov dx, word [ecx + 8]
mov word [eax + 0x1038964], dx
movzx cx, byte [ecx + 0xe]
mov word [eax + 0x1038966], cx
jmp 0x101aad0
push esi
mov esi, dword [sym.imp.ntdll.dll_DbgPrintEx]
push 0x101aad4
push 1
push 0x70
call esi
push 0x100aba8
push 1
push 0x70
call esi
add esp, 0x18
pop esi
pop ebp
ret 4

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x10381f0]
sub esp, 0xc
push ebx
push esi
cmp eax, dword [0x10381f4]
je 0x101ad2e
lea eax, [ebp - 4]
push eax
mov eax, dword [0x10381e4]
push 0x14
pop ecx
inc eax
mul ecx
push edx
push eax
call fcn.01005077
test eax, eax
jge 0x101ac67
mov eax, 0xc0000095
jmp 0x101ad30
mov eax, dword fs:[0x18]
push dword [ebp - 4]
mov eax, dword [eax + 0x30]
push dword [0x1038030]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
test ebx, ebx
jne 0x101ac92
mov eax, 0xc0000017
jmp 0x101ad30
push 1
lea eax, [ebp - 0xc]
push eax
push 0
push 1
lea eax, [ebp - 8]
push eax
push dword [0x10381e4]
mov dword [ebp - 4], ebx
push ebx
push 0x10381e0
call fcn.0100a50b
mov esi, eax
test esi, esi
jge 0x101acd3
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
jmp 0x101ad30
mov edx, dword [ebp - 8]
mov eax, dword [0x10381e0]
mov dword [0x10381f4], eax
test edx, edx
jbe 0x101acfe
push edi
cmp word [ebx], 1
jne 0x101acf7
push 5
mov edi, eax
pop ecx
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
add eax, 0x14
add ebx, 0x14
dec edx
jne 0x101ace5
pop edi
mov dword [0x10381f0], eax
cmp eax, dword [0x10381f4]
jne 0x101ad17
push dword [0x103820c]
call dword [sym.imp.ntdll.dll_NtClearEvent]
push dword [ebp - 4]
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 esi
pop ebx
leave
ret
Function at 0x101ae11
Capabilities:
Check for software breakpoints
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.01004527
xor edi, edi
mov dword [ebp + 0x10], eax
cmp eax, edi
jne 0x101ad5d
xor eax, eax
jmp 0x101ae57
push ebx
mov ebx, dword [ebp + 8]
push esi
lea eax, [ebp + 8]
push eax
push ebx
call fcn.0101a9c9
mov eax, dword [ebp + 8]
cmp eax, edi
je 0x101adfd
lea ecx, [ebp - 4]
push ecx
push 0x14
pop ecx
mul ecx
push edx
push eax
call fcn.01005077
test eax, eax
jge 0x101ad95
mov eax, 0xc0000095
jmp 0x101ae55
mov eax, dword fs:[0x18]
mov ecx, dword [0x1038030]
push dword [ebp - 4]
mov eax, dword [eax + 0x30]
add ecx, 0x200000
push ecx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
cmp esi, edi
jne 0x101adc7
mov eax, 0xc0000017
jmp 0x101ae55
push 1
lea eax, [ebp - 0xc]
push eax
push edi
push edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
push esi
push ebx
call fcn.0100a50b
cmp eax, edi
mov dword [ebp - 8], eax
jge 0x101adff
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp - 8]
jmp 0x101ae55
xor esi, esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.01004571
cmp esi, edi
je 0x101ae3d
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push esi
push ebx
call fcn.01004571
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 0x18], edi
je 0x101ae4c
push edi
push dword [ebx + 0x2c]
call dword [sym.imp.ntdll.dll_NtSetEvent]
push ebx
call fcn.0100468e
mov eax, dword [ebp + 0x10]
pop esi
pop ebx
pop edi
leave
ret 0xc
Function at 0x101b065
Capabilities:
Accept command line arguments

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 0x101b0ea
cmp dword [ebp - 0x114], 2
jne 0x101b0ea
mov eax, 0x104
cmp word [ebp - 0x110], ax
ja 0x101b0ea
movzx edi, word [ebp - 0x110]
cmp edi, dword [ebp + 0x14]
jae 0x101b0ea
xor eax, eax
cmp dword [ebp + 0xc], eax
push eax
lea eax, [ebp - 0x114]
push eax
je 0x101b098
add edi, edi
push edi
push dword [ebp - 0x118]
push ebx
call esi
test eax, eax
je 0x101b0ea
cmp dword [ebp - 0x114], edi
jne 0x101b0ea
movzx eax, word [ebp - 0x110]
mov edx, dword [ebp - 0x118]
xor ecx, ecx
mov word [edx + eax*2], cx
jmp 0x101b0de
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
call esi
test eax, eax
je 0x101b0ea
cmp dword [ebp - 0x114], edi
jne 0x101b0ea
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 0x101b0ea
mov dword [ebp - 0x11c], 1
jmp 0x101b0fb
cmp dword [ebp + 0x14], 0
jbe 0x101b0fb
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.010015a8
leave
ret 0x10
Function at 0x102080f
Capabilities:
Access peb ldr_data
Get process heap flags
Read file on windows

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 0x10207fa
or eax, 0x100
test cl, 4
je 0x1020804
or eax, 0x200
test cl, 8
je 0x102080e
or eax, 0x400
pop ebp
ret 4

Function at 0x1020b96
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
mov ax, word [ecx + 0x10]
sub ax, word [ecx + 0xc]
sub esp, 0x18
inc ax
movzx edx, ax
mov ax, word [ecx + 0x12]
sub ax, word [ecx + 0xe]
push esi
mov si, word [ebp + 8]
inc ax
cmp si, word [ebp + 0xc]
push edi
movzx eax, ax
movsx edi, si
jg 0x1020b8e
movsx edi, word [ebp + 0xc]
push ebx
movsx ebx, word [ebp + 0x10]
add ebx, edi
movsx edi, ax
cmp ebx, edi
pop ebx
jle 0x1020bb6
cmp si, word [ebp + 0xc]
movsx edi, si
jg 0x1020baa
movsx edi, word [ebp + 0xc]
sub eax, edi
movzx edi, ax
test di, di
jg 0x1020bb9
jmp 0x1020c0d
mov edi, dword [ebp + 0x10]
xor eax, eax
mov word [ebp - 0x18], ax
mov ax, word [ecx + 0x12]
sub ax, word [ecx + 0xe]
mov word [ebp - 0x16], si
inc ax
movsx ecx, dx
movsx esi, di
imul ecx, esi
push 0xc
mov word [ebp - 0x12], ax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
xor esi, esi
push 0xc
lea eax, [ebp - 0x18]
mov word [ebp - 0xc], si
mov si, word [ebp + 0xc]
push eax
push 0xe
mov word [ebp - 0x14], dx
mov dword [ebp - 0x10], ecx
mov word [ebp - 0xa], si
mov word [ebp - 8], dx
mov dword [ebp - 4], ecx
call fcn.0102779a
pop edi
pop esi
leave
ret 0x10