joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100eb1d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], edx
mov ecx, dword [ebp + 0x10]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [ecx], eax
test edi, edi
je 0x100eb333
mov ebx, dword [ebp + 0xc]
lea esi, [eax + 0xd]
lea edx, [ebx - 1]
test edx, edx
js 0x100eb227
mov ebx, dword [ebp + 8]
nop word [eax + eax]
movsx ecx, byte [edx + ebx]
lea eax, [esi*8]
xor ecx, eax
xor esi, ecx
sub edx, 1
jns 0x100eb210
mov ebx, dword [ebp + 0xc]
mov ecx, dword [esp + 0xc]
lea eax, [esi*8]
xor eax, esi
xor eax, ecx
and eax, 0x1ff
lea eax, [edi + eax*4]
mov edi, dword [eax]
mov dword [esp + 0x14], eax
test edi, edi
je 0x100eb2ae
cmp dword [edi + 8], ecx
jne 0x100eb2a7
cmp dword [edi + 4], ebx
jne 0x100eb2a7
mov edx, dword [edi]
mov ecx, ebx
mov esi, dword [ebp + 8]
sub ecx, 4
jb 0x100eb271
nop
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x100eb276
add edx, 4
add esi, 4
sub ecx, 4
jae 0x100eb260
cmp ecx, 0xfffffffc
je 0x100eb2be
mov al, byte [edx]
cmp al, byte [esi]
jne 0x100eb2a3
cmp ecx, 0xfffffffd
je 0x100eb2be
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x100eb2a3
cmp ecx, 0xfffffffe
je 0x100eb2be
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x100eb2a3
cmp ecx, 0xffffffff
je 0x100eb2be
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x100eb2be
mov ecx, dword [esp + 0xc]
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x100eb248
lea edi, [ebx + 0x10]
xor esi, esi
call fcn.100be130
test eax, eax
je 0x100eb2d0
jmp 0x100eb2e0
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
call fcn.1001cb50
mov esi, eax
add esp, 8
test esi, esi
jne 0x100eb2fc
test edi, edi
je 0x100eb2ef
mov eax, 7
mov dword [esp + 0x10], eax
jmp 0x100eb2f1
xor eax, eax
test esi, esi
jne 0x100eb308
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 0
push esi
call fcn.101062c0
add esp, 0xc
mov edx, dword [esp + 0xc]
lea eax, [esi + 0x10]
push ebx
push dword [ebp + 8]
mov dword [esi], eax
push eax
mov dword [esi + 4], ebx
mov dword [esi + 8], edx
call fcn.10107750
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [ecx]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x10]
mov dword [ecx], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10102b50
Capabilities:
Encrypt data using rc4 prga
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
mov dword [esp + 4], edx
cmp ecx, 0x80
jge 0x10102b6f
lea edx, [ecx - 0x41]
cmp edx, 0x19
lea eax, [ecx + 0x20]
cmova eax, ecx
add esp, 8
ret
cmp ecx, 0x10000
jge 0x10102c1a
push ebx
push ebp
xor edx, edx
mov ebx, 0xa2
push esi
push edi
mov dword [esp + 0x10], edx
or ebp, 0xffffffff
nop dword [eax]
lea eax, [edx + ebx]
mov esi, ecx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
movzx edx, word [edi*4 + 0x1012a1b0]
lea eax, [edi - 1]
sub esi, edx
mov edx, edi
cmovs edx, ebp
test esi, esi
mov ebp, edx
lea edx, [edi + 1]
cmovs edx, dword [esp + 0x10]
cmovs ebx, eax
mov dword [esp + 0x10], edx
cmp ebx, edx
jge 0x10102b90
movzx edx, word [ebp*4 + 0x1012a1b0]
movzx eax, byte [ebp*4 + 0x1012a1b3]
add eax, edx
cmp ecx, eax
jge 0x10102bfe
movzx eax, byte [ebp*4 + 0x1012a1b2]
xor edx, ecx
and edx, eax
test edx, 1
jne 0x10102bfe
shr eax, 1
movzx eax, word [eax*2 + 0x1012b618]
add eax, ecx
movzx ecx, ax
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
test eax, eax
je 0x10102c28
xor edx, edx
cmp eax, 2
sete dl
add esp, 8
jmp fcn.100dbdd0
lea eax, [ecx - 0x10400]
cmp eax, 0x27
lea eax, [ecx + 0x28]
jbe 0x10102c2a
mov eax, ecx
add esp, 8
ret

Function at 0x10111206
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10110e83
Function at 0x1b7b3
Capabilities:
Find process by pid

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jl 0x1b7ea
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.0001d7fa
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x3fffffff
add eax, 0xc0000001
leave
ret 8

Function at 0x1baf9
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
xor edi, edi
push edi
push eax
push 0xb
mov dword [ebp - 4], edi
call sub.ntoskrnl.exe_ZwQuerySystemInformation
push dword [ebp - 4]
mov esi, dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
push edi
call esi
mov ebx, eax
cmp ebx, edi
jne 0x1bb31
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
push edi
push dword [ebp - 4]
push ebx
push 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edi
cmp eax, edi
jbe 0x1bb77
lea eax, [ebx + 4]
mov dword [ebp - 8], eax
mov edi, 0x11c
mov eax, dword [ebp - 8]
push dword [ebp + 8]
add eax, 0x1c
push eax
call sub.ntoskrnl.exe_strstr
pop ecx
pop ecx
test eax, eax
jne 0x1bb7b
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], edi
cmp eax, dword [ebp - 0x10]
jb 0x1bb54
xor esi, esi
jmp 0x1bb8c
push edi
push 0
call esi
mov esi, dword [ebp - 8]
push 0x47
pop ecx
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov esi, eax
push 0
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, esi
jmp 0x1bb2a

Function at 0x1bfa8
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
lea eax, [ebp - 4]
push eax
xor edi, edi
push edi
push eax
push 0xb
mov dword [ebp - 4], edi
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, edi
je 0x1bfcc
cmp eax, 0xc0000004
jne 0x1bfe3
push ebx
push dword [ebp - 4]
push edi
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov ebx, eax
cmp ebx, edi
jne 0x1bfe8
mov eax, 0xc000009a
pop ebx
pop edi
leave
ret 8
push esi
push edi
push dword [ebp - 4]
push ebx
push 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, edi
je 0x1c008
mov esi, eax
push edi
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, esi
pop esi
jmp 0x1bfe2
mov edx, dword [ebx]
xor esi, esi
cmp edx, edi
jbe 0x1c06b
lea eax, [ebx + 0xc]
mov ecx, dword [eax]
cmp dword [ebp + 8], ecx
jb 0x1c024
mov edi, dword [eax + 4]
add edi, ecx
cmp dword [ebp + 8], edi
jb 0x1c030
inc esi
add eax, 0x11c
cmp esi, edx
jb 0x1c013
jmp 0x1c06b
lea esi, [eax + 0x14]
mov edi, esi
xor ecx, ecx
mov dl, byte [esi + ecx]
test dl, dl
je 0x1c050
cmp dl, 0x5c
jne 0x1c047
lea edi, [ecx + eax + 0x15]
inc ecx
cmp ecx, 0xff
jb 0x1c037
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1c055
sub eax, edx
push eax
push edi
push dword [ebp + 0xc]
call sub.ntoskrnl.exe_strncpy
add esp, 0xc
xor edi, edi
xor esi, esi
jmp 0x1bffb
Function at 0x1c2b6
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
lea ecx, [eax - 1]
push esi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp + 0x14], ecx
cmp dword [ebp + 0x10], ebx
je 0x1c3f0
cmp eax, ebx
je 0x1c3f0
push eax
push ebx
push dword [ebp + 0x10]
call sub.ntoskrnl.exe_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push ebx
push eax
push 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
push dword [ebp - 4]
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov esi, eax
mov dword [ebp - 0x10], esi
cmp esi, ebx
jne 0x1c319
mov eax, 0xc000009a
jmp 0x1c3f5
push ebx
push dword [ebp - 4]
push esi
push 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], ebx
cmp eax, ebx
jbe 0x1c3e4
push edi
lea edi, [esi + 4]
xor edx, edx
cmp dword [ebp + 0xc], ebx
jle 0x1c3c7
mov eax, dword [ebp + 8]
mov eax, dword [eax + edx*4]
cmp eax, ebx
je 0x1c3c7
mov ecx, dword [edi + 8]
cmp eax, ecx
jb 0x1c360
mov ebx, dword [edi + 0xc]
add ebx, ecx
cmp eax, ebx
jb 0x1c368
xor ebx, ebx
inc edx
cmp edx, dword [ebp + 0xc]
jl 0x1c344
jmp 0x1c3c7
lea ecx, [edi + 0x1c]
mov ebx, ecx
xor eax, eax
mov dl, byte [ecx + eax]
test dl, dl
je 0x1c387
cmp dl, 0x5c
jne 0x1c37f
lea ebx, [edi + eax + 0x1d]
inc eax
cmp eax, 0xff
jb 0x1c36f
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
push ebx
push 0xb829c
push dword [ebp + 0x14]
lea esi, [eax + ecx]
push esi
call fcn.0001c14e
add esp, 0x10
test eax, eax
jl 0x1c3de
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1c3ab
sub eax, edx
js 0x1c3c2
sub dword [ebp + 0x14], eax
add dword [ebp - 8], eax
cmp dword [ebp + 0x14], 0
jle 0x1c3de
mov esi, dword [ebp - 0x10]
xor ebx, ebx
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add edi, 0x11c
cmp eax, dword [ebp - 0x14]
jb 0x1c339
jmp 0x1c3e3
mov esi, dword [ebp - 0x10]
xor ebx, ebx
pop edi
push ebx
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
jmp 0x1c3f5
mov eax, 0xc000000d
pop esi
pop ebx
leave
ret 0x10

Function at 0x1f767
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
and dword [ebp - 0x14], 0
and dword [ebp - 8], 0
and dword [ebp - 4], 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x20019
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x18], 0x18
mov dword [ebp - 0xc], 0x40
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jge 0x1f7aa
xor al, al
jmp 0x1f7d3
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x18]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
test edi, edi
setge al
pop edi
leave
ret 0x14
Function at 0x1f7dc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0xbbc3c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
push eax
xor esi, esi
push 0x20019
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x3c], 0x18
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], 0x40
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jge 0x1f839
xor eax, eax
jmp 0x1f8d1
push edi
mov edi, dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
lea eax, [ebp - 0x18]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push 2
push ebx
push dword [ebp - 0x1c]
call edi
test eax, eax
jge 0x1f864
cmp eax, 0x80000005
je 0x1f864
cmp eax, 0xc0000023
jne 0x1f8b8
mov eax, dword [ebp - 0x18]
add eax, 0x10
push eax
push 0
call fcn.0001f6f7
mov esi, eax
test esi, esi
je 0x1f8b8
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x18]
add eax, 0x10
push eax
push esi
push 2
push ebx
push dword [ebp - 0x1c]
call edi
test eax, eax
jl 0x1f8b8
push dword [ebp - 0x18]
push 0
call fcn.0001f6f7
mov edi, eax
test edi, edi
je 0x1f8bb
mov eax, dword [esi + 8]
mov ecx, dword [ebp - 0x20]
push eax
mov dword [ecx], eax
lea eax, [esi + 0xc]
push eax
push edi
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
jmp 0x1f8bb
mov edi, dword [ebp - 0x24]
push dword [ebp - 0x1c]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
test esi, esi
je 0x1f8ce
push esi
call fcn.0001f715
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00017ece
leave
ret 0xc

Function at 0x1f8e6
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
cmp byte [ebp + 0x14], 0
mov edi, dword [ebp + 0x10]
je 0x1f936
push edi
push 0
call fcn.0001f6f7
mov esi, eax
test esi, esi
jne 0x1f91a
xor al, al
jmp 0x1f959
push edi
push dword [ebp + 0xc]
push esi
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
xor eax, eax
test edi, edi
jbe 0x1f936
xor byte [eax + esi], 0x27
inc eax
cmp eax, edi
jb 0x1f92d
push ebx
push 3
push edi
push esi
lea eax, [ebp - 8]
push eax
push 0xb4360
call fcn.0001f767
mov bl, al
cmp esi, dword [ebp + 0xc]
je 0x1f956
push esi
call fcn.0001f715
mov al, bl
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x1f964
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov esi, dword [ebp + 0x10]
push esi
lea eax, [ebp - 8]
push eax
push 0xb4360
call fcn.0001f7dc
xor ecx, ecx
cmp eax, ecx
jne 0x1f995
xor al, al
jmp 0x1f9ae
cmp byte [ebp + 0x14], cl
je 0x1f9a7
cmp dword [esi], ecx
jbe 0x1f9a7
xor byte [ecx + eax], 0x27
inc ecx
cmp ecx, dword [esi]
jb 0x1f99e
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov al, 1
pop esi
leave
ret 0x10

Function at 0x1fd80
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0xb9488
call fcn.00039994
and dword [ebp - 0x1c], 0
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x1fd9c
or eax, 0xffffffff
jmp 0x1fdd9
and dword [ebp - 4], 0
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov edx, 0x5a4d
cmp word [ecx], dx
jne 0x1fdbf
cmp dword [eax], 0x4550
jne 0x1fdbf
mov eax, dword [eax + 8]
mov dword [ebp - 0x1c], eax
jmp 0x1fdcf
mov dword [ebp - 4], 0xfffffffe
jmp 0x1fd97
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
call fcn.000399d9
ret 8
Function at 0x1fde6
Capabilities:
Map section object

Disassembly:
push 0x4c
push 0xb94a8
call fcn.00039994
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x5c], ebx
xor eax, eax
lea edi, [ebp - 0x58]
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 dword [ebp - 0x34], ebx
xor eax, eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
push dword [ebp + 0x10]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
push 1
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
cmp eax, ebx
jl 0x1ff66
mov dword [ebp - 0x5c], 0x18
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], 0x40
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
push 0x20
push 1
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x5c]
push eax
push 0x100020
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwOpenFile]
mov esi, eax
cmp esi, ebx
jl 0x1ff28
mov dword [ebp - 0x54], ebx
push dword [ebp - 0x24]
push 0x1000000
push 0x10
push ebx
lea eax, [ebp - 0x5c]
push eax
push 0xd
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwCreateSection]
mov esi, eax
cmp esi, ebx
jl 0x1ff28
push 4
push 0x100000
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0x1000
push ebx
lea eax, [ebp - 0x1c]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x20]
call dword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
mov esi, eax
cmp esi, ebx
jl 0x1ff28
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x1c]
mov esi, dword [eax + 0x3c]
add esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0001fd80
cmp dword [esi + 8], eax
je 0x1fefa
mov esi, 0xc0000001
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x1ff28
push dword [ebp + 0x18]
push dword [ebp - 0x28]
push dword [ebp - 0x1c]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [ebp + 0x14]
mov esi, eax
jmp 0x1feee
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
cmp dword [ebp - 0x1c], ebx
je 0x1ff45
push dword [ebp - 0x1c]
push 0xffffffffffffffff
call dword [sym.imp.ntoskrnl.exe_ZwUnmapViewOfSection]
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x20], ebx
je 0x1ff56
push dword [ebp - 0x20]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov dword [ebp - 0x20], ebx
cmp dword [ebp - 0x24], ebx
je 0x1ff64
push dword [ebp - 0x24]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, esi
call fcn.000399d9
ret 0x14
Function at 0x1ff73
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push 0x14
push 0xb94c8
call fcn.00039994
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 8]
cmp ecx, edx
je 0x20001
cmp dword [ebp + 0xc], edx
je 0x20001
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov esi, 0x5a4d
cmp word [ecx], si
jne 0x20001
cmp dword [eax], 0x4550
jne 0x20001
mov esi, dword [eax + 0x78]
add esi, ecx
cmp dword [eax + 0x7c], edx
je 0x20001
cmp dword [esi + 0x18], edx
je 0x20001
cmp dword [esi + 0x14], edx
je 0x20001
mov ebx, dword [esi + 0x1c]
add ebx, ecx
mov edi, dword [esi + 0x20]
add edi, ecx
mov eax, dword [esi + 0x24]
add eax, ecx
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp eax, dword [esi + 0x18]
jae 0x20001
push dword [ebp + 0xc]
mov eax, dword [edi + eax*4]
add eax, ecx
push eax
call sub.ntoskrnl.exe__stricmp
pop ecx
pop ecx
test eax, eax
jne 0x2000d
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
movzx eax, word [eax + ecx*2]
mov ebx, dword [ebx + eax*4]
add ebx, dword [ebp + 8]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
jmp 0x20028
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
jmp 0x1ffd5
call fcn.000399d9
ret 8

Function at 0x208cb
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
mov al, byte [edi + 0x20]
xor esi, esi
test al, al
je 0x20921
cmp al, 1
jbe 0x2092d
cmp al, 4
jbe 0x2091a
cmp al, 8
je 0x2090f
cmp al, 9
jne 0x2092d
movzx eax, word [edi + 0x22]
cmp ax, 0x20
je 0x2090a
cmp ax, 0x40
je 0x2090a
push str.RCD_ASSERT_FAILED:decodedInst__ops_0_.size__32__decodedInst__ops_0_.size__64
call sub.ntoskrnl.exe_DbgPrint
pop ecx
int3
mov esi, dword [edi + 4]
jmp 0x2092d
movzx esi, byte [edi + 0x40]
add esi, dword [edi]
add esi, dword [ebp + 8]
jmp 0x2092d
push str.RCD_ASSERT_FAILED:__RcdCallTarget32:_ERR:_operator_type_is_incorrect._r_n_
jmp 0x20926
push str.RCD_ASSERT_FAILED:__RcdCallTarget32:_ERR:_Call_without_an_opt__r_n_
call sub.ntoskrnl.exe_DbgPrint
pop ecx
int3
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x20a3d
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0xbbc3c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
and dword [ebp - 0xb4], 0
and dword [ebp - 0xc4], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0xb0], eax
xor eax, eax
push 6
pop ecx
lea edi, [ebp - 0xe0]
rep stosd dword es:[edi], eax
mov dword [ebx], eax
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xec], eax
mov dword [edx], eax
mov eax, esi
mov dword [ebp - 0xd8], esi
xor esi, esi
xor edi, edi
mov dword [ebp - 0xc8], edx
inc esi
jmp 0x20be1
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.000180ad
cmp dword [ebp - 0xb0], edi
jne 0x20ae6
mov dword [ebp - 0xbc], edi
jmp 0x20b00
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax]
sub eax, dword [ebp - 0xb0]
add eax, dword [ebp - 0xf0]
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0xbc]
push eax
push dword [ebp - 0xb0]
movzx eax, byte [ebp - 0x100]
push eax
push dword [ebp - 0xb8]
call fcn.0002022f
cmp eax, esi
je 0x20c43
cmp eax, 2
jne 0x20b66
movzx eax, byte [ebp - 0x100]
mov ecx, dword [ebp - 0xbc]
add dword [ebx], eax
add dword [ebp - 0xb4], ecx
add dword [ebp - 0xb8], eax
cmp dword [ebp - 0xb0], edi
je 0x20bd3
add dword [ebp - 0xb0], ecx
jmp 0x20bd3
cmp eax, edi
je 0x20b76
push str.RCD_ASSERT_FAILED:encodeRet__RCD_DO_NOTHING
call sub.ntoskrnl.exe_DbgPrint
pop ecx
int3
movzx esi, byte [ebp - 0x100]
mov edi, dword [ebp - 0xb0]
lea eax, [ebp - 0xc4]
push eax
push dword [ebp - 0xb8]
lea ecx, [ebp - 0xac]
lea eax, [ebp - 0x140]
call fcn.0002096b
test eax, eax
jne 0x20c5a
mov eax, dword [ebp - 0xc4]
test edi, edi
je 0x20bb9
add dword [ebp - 0xb0], eax
add dword [ebp - 0xb4], eax
movzx eax, byte [ebp - 0x100]
add dword [ebp - 0xb8], eax
add dword [ebx], eax
xor esi, esi
inc esi
xor edi, edi
mov ecx, dword [ebp - 0xb8]
mov eax, ecx
mov dword [ebp - 0xd8], ecx
cdq
mov dword [ebp - 0xe8], eax
lea eax, [ebp - 0xc0]
push eax
push esi
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0xe8]
push eax
mov dword [ebp - 0xe4], edx
mov dword [ebp - 0xd4], 0x10000
mov dword [ebp - 0xcc], edi
mov dword [ebp - 0xd0], esi
call fcn.00017f31
cmp dword [ebp - 0xc0], esi
je 0x20abc
push str.RCD_ASSERT_FAILED:__decoder_failed._
call sub.ntoskrnl.exe_DbgPrint
int3
movzx eax, byte [ebp - 0x100]
add dword [ebx], eax
mov eax, dword [ebp - 0xb4]
add eax, dword [ebp - 0xbc]
jmp 0x20c75
movzx eax, byte [ebp - 0x100]
add dword [ebx], eax
mov eax, dword [ebp - 0xc4]
add dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0xc8]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00017ece
leave
ret 0x10
Function at 0x27bda
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
xor edx, edx
cmp dword [ebp + 0x10], edx
jbe 0x27c12
mov ecx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ecx]
mov esi, dword [ebp + 0xc]
movzx esi, byte [edx + esi]
mov edi, eax
and edi, 0xff
xor esi, edi
shr eax, 8
xor eax, dword [esi*4 + 0xc3020]
inc edx
mov dword [ecx], eax
cmp edx, dword [ebp + 0x10]
jb 0x27beb
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x27da6
Capabilities:
Print debug messages

Disassembly:
push 0xc
push 0xb9570
call fcn.00039994
xor edi, edi
mov ecx, dword [ebp + 0x14]
cmp ecx, edi
je 0x27e31
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x27e31
mov dword [eax], edi
mov dword [ecx], edi
push edi
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_IoAllocateMdl]
mov esi, eax
mov dword [ebp + 0xc], esi
cmp esi, edi
jne 0x27df0
push str.IoAllocateMdl_FAILED._n
call sub.ntoskrnl.exe_DbgPrint
pop ecx
mov eax, 0xc000009a
jmp 0x27e36
mov dword [ebp - 4], edi
push 2
push edi
push esi
call dword [sym.imp.ntoskrnl.exe_MmProbeAndLockPages]
mov dword [ebp - 4], 0xfffffffe
push 0x10
push edi
push edi
push 1
push edi
push esi
call dword [sym.imp.ntoskrnl.exe_MmMapLockedPagesSpecifyCache]
mov ebx, eax
cmp ebx, edi
jne 0x27e3e
push esi
call dword [sym.imp.ntoskrnl.exe_MmUnlockPages]
push esi
call dword [sym.imp.ntoskrnl.exe_IoFreeMdl]
push str.MmMapLockedPagesSpecifyCache_FAILED._n
call sub.ntoskrnl.exe_DbgPrint
pop ecx
mov eax, 0xc000000d
call fcn.000399d9
ret 0x10
push 0x40
push esi
call dword [sym.imp.ntoskrnl.exe_MmProtectMdlSystemAddress]
mov dword [ebp + 0xc], eax
cmp eax, edi
jge 0x27e73
push esi
push ebx
call dword [sym.imp.ntoskrnl.exe_MmUnmapLockedPages]
xor ebx, ebx
push esi
call dword [sym.imp.ntoskrnl.exe_MmUnlockPages]
push esi
call dword [sym.imp.ntoskrnl.exe_IoFreeMdl]
xor esi, esi
push str.MmProtectMdlSystemAddress._n
call sub.ntoskrnl.exe_DbgPrint
pop ecx
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
jmp 0x27e36