joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14016b160
Capabilities:
Query environment variable

Disassembly:
push r15
mov eax, 0x10088
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.1401d5e90
sub rsp, rax
xor edx, edx
mov rbp, rcx
xor ecx, ecx
mov word [rsp + 0x80], dx
lea r15, [rsp + 0x30]
movzx eax, byte [rbp]
mov word [rsp + 0x30], cx
test al, al
je 0x14016b225
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1401e6da2
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14016b206
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x14016b1f8
test rsi, rsi
je 0x1401e6da2
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x14016b1b8
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x14016b254
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10088
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14016b270
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
movzx eax, byte [rcx]
mov qword [rsp + 0xd8], rdx
xor edx, edx
mov rbp, rcx
lea r15, [rsp + 0x30]
mov word [rsp + 0x30], dx
test al, al
je 0x14016b32d
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1401e6da8
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14016b30e
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x14016b300
test rsi, rsi
je 0x1401e6da8
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x14016b2c0
mov rdx, qword [rsp + 0xd8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140194dc0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rbx, qword [0x140223908]
mov rsi, rcx
test rbx, rbx
je 0x140194e40
mov rax, qword [0x1402000f0]
mov rcx, qword [rax + 0x48]
cmp rbx, rcx
je 0x140194e30
mov rdx, qword [0x140223b48]
test rdx, rdx
je 0x140194f38
mov rcx, rbx
mov rbx, qword [sym.imp.python311.dll_PyNumber_InPlaceAdd]
call rbx
mov rcx, rax
mov rdx, rsi
mov rax, rbx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp rax
mov rbx, qword [sym.imp.python311.dll_PyNumber_InPlaceAdd]
jmp 0x140194e11
lea r15, str.NUITKA_ONEFILE_BINARY
mov rcx, r15
call fcn.14016b160
test rax, rax
je 0x140194f58
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python311.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r13, r14
lea r12, [r15 + 0x28]
mov word [rsp + 0x40], cx
lea rbp, [rsp + 0x3a]
lea rdi, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov eax, 0x4e
nop
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, r15
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1401e6e48
cmp word [r13], 0
movzx edx, word [rsp + 0x3c]
mov rax, r13
je 0x140194ede
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x140194ed0
test rbx, rbx
je 0x1401e6e48
mov word [rax], dx
add r15, 1
xor edx, edx
add r13, 2
mov word [rax + 2], dx
movzx eax, byte [r15]
test al, al
jne 0x140194e90
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python311.dll__PyRuntime]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rax + 0x1f8]
call fcn.140194c70
mov rbx, rax
mov qword [0x140223908], rbx
jmp 0x140194de2
lea rcx, [0x1401fc608]
call qword [sym.imp.python311.dll_PyUnicode_FromString]
mov qword [0x140223b48], rax
mov rdx, rax
jmp 0x140194e02
mov rbx, qword [0x140223920]
test rbx, rbx
jne 0x140194f26
cmp byte [0x140223b42], 0
je 0x140194f96
mov rdx, 0xffffffffffffffff
lea rcx, [0x140223940]
call qword [sym.imp.python311.dll_PyUnicode_FromWideChar]
mov qword [0x140223920], rax
mov rbx, rax
test rax, rax
je 0x140194fa2
add qword [rax], 1
jmp 0x140194f26
mov ecx, 1
call fcn.14016bd80
jmp 0x140194f6d
call qword [sym.imp.python311.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop
call sub.msvcrt.dll_abort
nop
Function at 0x1401966f0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rsi, str.NUITKA_ONEFILE_BINARY
mov ebx, ecx
mov rcx, rsi
call fcn.14016b160
test rax, rax
je 0x140196848
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python311.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r15, r14
lea r12, [rsi + 0x28]
mov word [rsp + 0x40], cx
mov r13, rax
lea rbp, [rsp + 0x3a]
mov eax, 0x4e
lea rdi, [rsp + 0x3c]
nop word [rax + rax]
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, rsi
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1401e6e66
cmp word [r15], 0
movzx edx, word [rsp + 0x3c]
mov rax, r15
je 0x1401967a6
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x140196798
test rbx, rbx
je 0x1401e6e66
mov word [rax], dx
add rsi, 1
xor edx, edx
add r15, 2
mov word [rax + 2], dx
movzx eax, byte [rsi]
test al, al
jne 0x140196758
mov rcx, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python311.dll__PyRuntime]
mov rcx, qword [0x140224280]
mov rsi, qword [rax + 0x1f8]
mov rax, qword [0x1402000f0]
mov rbx, qword [rax + 0x1c0]
test rcx, rcx
je 0x140196898
mov rdx, rbx
call fcn.140151900
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.140188850
sub qword [rbx], 1
jne 0x140196831
mov rdx, qword [rbx + 8]
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [rdx + 0x30]
mov rax, qword [rsp + 0x28]
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x140223918]
lea rsi, [0x140223918]
test bl, bl
je 0x140196868
mov rax, qword [0x140223920]
lea rsi, [0x140223920]
test rax, rax
jne 0x140196831
cmp byte [0x140223b42], 0
je 0x1401968c2
mov rdx, 0xffffffffffffffff
lea rcx, [0x140223940]
call qword [sym.imp.python311.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x1401968cc
add qword [rax], 1
jmp 0x140196831
mov rcx, qword [0x1402241f8]
mov rdi, qword [rax + 0x1b0]
test rcx, rcx
je 0x1401968d7
mov rdx, rdi
call fcn.140151900
mov qword [0x140224280], rax
mov rcx, rax
jmp 0x1401967fe
movzx ecx, bl
call fcn.14016bd80
jmp 0x140196876
call qword [sym.imp.python311.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x1401f795b]
call qword [sym.imp.python311.dll_PyImport_ImportModule]
mov qword [0x1402241f8], rax
mov rcx, rax
test rax, rax
je 0x1401e6e66
jmp 0x1401968ab
Function at 0x1401cc100
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x140223901], 0
mov rbp, rcx
mov rdi, rdx
mov r12, r8
je 0x1401cc1a8
lea rdx, [0x1401fbd32]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1401cc210
mov rbx, qword [0x1402237a0]
jmp 0x1401cc145
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, r12
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x1401cc140
movzx eax, word [rdx + 4]
lea r8, [rdx + 6]
test ax, ax
je 0x1401cc197
lea rbx, [rdi + rax*8]
nop word cs:[rax + rax]
mov rdx, rdi
mov rcx, rbp
add rdi, 8
call fcn.1401bb4e0
mov r8, rax
cmp rdi, rbx
jne 0x1401cc180
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x1402237a0], rax
mov ebx, dword [rax]
mov qword [0x1402237a0], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1402237a0], rdx
call fcn.1401cb230
cmp eax, ebx
jne 0x1401cc278
mov byte [0x140223901], 1
jmp 0x1401cc120
cmp byte [0x140223900], 0
jne 0x1401cc137
mov rbx, qword [sym.imp.python311.dll_PyDict_New]
call rbx
mov qword [0x1402244a8], rax
call rbx
mov qword [0x1402244a0], rax
call rbx
mov qword [0x140224498], rax
call rbx
mov qword [0x140224490], rax
call rbx
mov qword [0x140224488], rax
call rbx
mov qword [0x140224480], rax
call rbx
mov qword [0x140224478], rax
call rbx
mov byte [0x140223900], 1
mov qword [0x140224470], rax
jmp 0x1401cc137
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x1401d4b70
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.1401e6300
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1401e6300
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x1401d5842
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140224968]
test eax, eax
je 0x1401d58da
lea rax, [0x140224940]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140224970]
mov qword [rbp - 8], rax
jmp 0x1401d58be
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1401d58b2
cmp qword [rbp - 0x10], 0
je 0x1401d58b2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1401d5878
lea rax, [0x140224940]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1401d58db
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1401d59e0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1401d5a08
mov eax, 0
jmp 0x1401d5a56
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1401d5a31
mov eax, 0
jmp 0x1401d5a56
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1401d5a51
mov eax, 0
jmp 0x1401d5a56
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1401d5a5c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1401d5ada
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1401d5ad1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1401d5ad1
mov rax, qword [rbp - 8]
jmp 0x1401d5aef
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1401d5aa4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400010e0
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx], 0x3644748
mov rdi, rcx
jne 0x140001142
movsxd rax, dword [rcx + 4]
xor ebx, ebx
test eax, eax
je 0x140001142
mov rcx, rax
mov qword [rsp + 0x30], rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140001142
mov rcx, qword [rsp + 0x30]
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
test rax, rax
jne 0x14000112c
mov ebx, 0xc0000001
jmp 0x140001133
mov rcx, qword [rdi + 8]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
jmp 0x140001147
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140001154
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [rcx], 0x3644748
mov rsi, rcx
je 0x140001178
mov eax, 0xc0000001
jmp 0x140001230
xor edi, edi
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], edi
lea rdx, [rsp + 0x30]
mov ebx, edi
lea ecx, [rdi + 0x42]
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
jne 0x14000122e
test rbx, rbx
je 0x1400011b0
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov edx, dword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rax
mov ecx, 0x42
mov rbx, rax
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
je 0x1400011a0
test rbx, rbx
je 0x14000122e
mov r8d, dword [rbx]
test r8d, r8d
je 0x140001223
mov edx, edi
shl rdx, 5
test byte [rdx + rbx + 0x10], 1
je 0x14000121c
cmp qword [rdx + rbx + 0x18], 0x200000
jne 0x14000121c
mov ecx, dword [0x140002120]
mov r9b, byte [0x140002124]
cmp dword [rdx + rbx + 0x20], ecx
jne 0x14000121c
cmp byte [rdx + rbx + 0x24], r9b
je 0x140001240
inc edi
cmp edi, r8d
jb 0x1400011ea
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rsi + 8]
mov rax, qword [rdx + rbx + 8]
mov qword [rcx], rax
jmp 0x14000122e
Function at 0x140001250
Capabilities:
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x20
cmp dword [rcx], 0x3644748
mov rbx, rcx
jne 0x1400012f3
movsxd rax, dword [rcx + 4]
test eax, eax
je 0x1400012f3
and qword [r11 + 8], 0
lea rdx, [r11 + 8]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400012f3
mov rdi, qword [0x140004060]
test rdi, rdi
je 0x1400012f3
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rdx, qword [rbx + 8]
mov rcx, rdi
mov rsi, qword [rbx + 0x18]
call fcn.140001af4
test rax, rax
je 0x1400012f3
mov ecx, eax
lea r9, [rsp + 0x38]
and ecx, 0xfff
mov edx, 0x1000
sub edx, ecx
mov rcx, rax
cmp edx, esi
cmovl esi, edx
cmp byte [rbx + 0x20], 0
mov rdx, qword [rbx + 0x10]
movsxd r8, esi
je 0x1400012ea
call fcn.140001c8c
jmp 0x1400012ef
call fcn.1400018ec
xor eax, eax
jmp 0x1400012f8
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x1400013a4
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
lea rax, [rsp + 0x58]
mov r13, rcx
mov r12, qword [rax]
and qword [rax], 0
cmp qword [0x140004068], 0
jne 0x1400013d6
call fcn.140001550
cmp qword [0x140004090], 0
jne 0x1400013e5
call fcn.140001500
call qword [sym.imp.ntoskrnl.exe_MmGetPhysicalMemoryRanges]
mov rdx, qword [0x140004088]
xor r15d, r15d
mov rcx, qword [0x140004080]
lea rsi, [rax + 8]
lea rcx, [rcx + rdx*8]
mov qword [rsp + 0x68], rcx
mov rbx, qword [rsi - 8]
test rbx, rbx
jne 0x14000141b
cmp qword [rsi], rbx
je 0x1400014e0
mov rbp, qword [rsi]
sar rbp, 0xc
sar rbx, 0xc
add rbp, rbx
cmp rbx, rbp
jge 0x1400014b3
lea rdi, [rbx + rbx*2]
shl rdi, 4
mov rax, qword [0x140004090]
mov r14, qword [rdi + rax]
cmp r14, 2
jb 0x140001499
cmp qword [rdi + rax + 8], rcx
jne 0x140001499
movabs rax, 0xffff800000000000
shr r14, 0xd
or r14, rax
lea rdx, [rsp + 0x70]
mov rax, rbx
shl rax, 0xc
mov qword [0x140004060], rax
mov ecx, dword [r13]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140001494
cmp r14, qword [rsp + 0x70]
je 0x1400014a7
mov rcx, qword [rsp + 0x68]
inc rbx
add rdi, 0x30
cmp rbx, rbp
jl 0x14000143a
jmp 0x1400014b3
mov rcx, qword [0x140004060]
test rcx, rcx
jne 0x1400014cd
inc r15d
add rsi, 0x10
cmp r15d, 0xc8
jge 0x1400014e0
mov rcx, qword [rsp + 0x68]
jmp 0x140001409
mov rax, qword [r13 + 8]
mov qword [rax], rcx
lea rax, [rsp + 0x58]
mov qword [rax], r12
xor eax, eax
jmp 0x1400014e8
lea rax, [rsp + 0x58]
mov qword [rax], r12
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400018f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov dword [rsp + 4], 0
mov dword [rsp + 8], 0
mov qword [rsp + 0x10], 0
jmp 0x14000192b
mov rax, qword [rsp + 0x10]
inc rax
mov qword [rsp + 0x10], rax
mov eax, dword [rsp + 0x40]
cmp qword [rsp + 0x10], rax
jae 0x140001a2a
mov eax, dword [rsp + 4]
inc eax
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 4], eax
movsxd rax, dword [rsp + 4]
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp + 8]
add ecx, eax
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 8], eax
movsxd rax, dword [rsp + 4]
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
mov byte [rsp], al
movsxd rax, dword [rsp + 8]
movsxd rcx, dword [rsp + 4]
mov rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x30]
movzx eax, byte [r8 + rax]
mov byte [rdx + rcx], al
movsxd rax, dword [rsp + 8]
mov rcx, qword [rsp + 0x30]
movzx edx, byte [rsp]
mov byte [rcx + rax], dl
movsxd rax, dword [rsp + 4]
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
movsxd rcx, dword [rsp + 8]
mov rdx, qword [rsp + 0x30]
movzx ecx, byte [rdx + rcx]
add eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 0xc], eax
movsxd rax, dword [rsp + 0xc]
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
mov rcx, qword [rsp + 0x10]
mov rdx, qword [rsp + 0x38]
add rdx, rcx
mov rcx, rdx
movzx ecx, byte [rcx]
xor ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x10]
mov rdx, qword [rsp + 0x38]
add rdx, rcx
mov rcx, rdx
mov byte [rcx], al
jmp 0x14000191e
add rsp, 0x28
ret
Function at 0x140002aa0
Capabilities:
Check os version
Parse pe header
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x48
cmp qword [0x140005748], 0
je 0x140002acc
cmp qword [0x140005750], 0
je 0x140002acc
cmp qword [0x140005758], 0
je 0x140002acc
mov eax, 1
jmp 0x140002c7b
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], 0
mov edx, 0x38
lea rcx, [0x140005728]
call fcn.1400028b0
mov rax, qword gs:[0x60]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140002b1c
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x118], 0xa
je 0x140002b23
xor eax, eax
jmp 0x140002c7b
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov rax, qword [rax]
sub rax, 0x10
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140002b4b
xor eax, eax
jmp 0x140002c7b
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [0x140005728], rax
mov rax, qword [rsp + 0x20]
mov qword [0x140005730], rax
mov rax, qword [0x140005730]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140002b89
xor eax, eax
jmp 0x140002c7b
mov rax, qword [0x140005730]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [0x140005738], rax
mov rax, qword [0x140005738]
cmp dword [rax], 0x4550
je 0x140002bbc
xor eax, eax
jmp 0x140002c7b
mov eax, 8
imul rax, rax, 0
mov rcx, qword [0x140005738]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [0x140005740], rax
cmp qword [0x140005740], 0
je 0x140002bfc
mov rax, qword [0x140005740]
cmp dword [rax + 0x10], 0
jne 0x140002c00
xor eax, eax
jmp 0x140002c7b
mov rax, qword [0x140005740]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [0x140005748], rax
mov rax, qword [0x140005740]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [0x140005750], rax
mov rax, qword [0x140005740]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [0x140005758], rax
cmp qword [0x140005748], 0
je 0x140002c72
cmp qword [0x140005750], 0
je 0x140002c72
cmp qword [0x140005758], 0
jne 0x140002c76
xor eax, eax
jmp 0x140002c7b
mov eax, 1
add rsp, 0x48
ret
Function at 0x140002ef0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov dword [rsp + 0xc], 0
mov dword [rsp + 0x10], 0
mov dword [rsp], 0xffffffff
mov dword [rsp + 8], 0
mov dword [rsp + 4], 0
movsxd rax, dword [rsp + 8]
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
test eax, eax
je 0x140002f9c
movsxd rax, dword [rsp + 8]
mov rcx, qword [rsp + 0x30]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 0xc]
mov ecx, dword [rsp]
xor ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov dword [rsp + 4], 7
jmp 0x140002f66
mov eax, dword [rsp + 4]
dec eax
mov dword [rsp + 4], eax
cmp dword [rsp + 4], 0
jl 0x140002f90
mov eax, dword [rsp]
and eax, 1
imul eax, eax, 0xffffffff
mov dword [rsp + 0x10], eax
mov eax, dword [rsp]
shr eax, 1
mov ecx, dword [rsp + 0x10]
and ecx, 0xedb88320
xor eax, ecx
mov dword [rsp], eax
jmp 0x140002f5c
mov eax, dword [rsp + 8]
inc eax
mov dword [rsp + 8], eax
jmp 0x140002f20
mov eax, dword [rsp]
not eax
add rsp, 0x28
ret