joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140012fbc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
mov dword [rax + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r13, rcx
mov r12, r9
mov rcx, rdx
mov r15, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
or r10d, 0xffffffff
lea rbp, [0x14003fcd0]
mov r11d, eax
xor ebx, ebx
add r11d, r11d
mov rsi, r15
cmp dword [0x14003fcbc], ebx
jne 0x140013052
mov dword [0x14003fcbc], 1
mov edx, ebx
mov r9, rbp
mov r8d, edx
mov edi, 8
mov ecx, r8d
mov eax, r8d
shr ecx, 1
mov r8d, ecx
xor r8d, 0xedb88320
test al, 1
cmove r8d, ecx
dec edi
test edi, edi
jg 0x140013023
mov dword [r9], r8d
inc edx
add r9, 4
cmp edx, 0xff
jle 0x14001301b
test r11d, r11d
je 0x140013078
mov r8d, r11d
movzx ecx, byte [rsi]
mov eax, r10d
xor rcx, rax
shr r10d, 8
movzx edx, cl
inc rsi
xor r10d, dword [rbp + rdx*4]
sub r8, 1
jne 0x14001305a
xor edx, edx
not r10d
mov eax, r10d
mov r14d, ebx
div dword [r13 + 0x18]
mov edi, edx
cmp dword [r13 + 0x18], ebx
jbe 0x1400130c3
mov rbp, qword [r13 + 0x10]
mov eax, edi
lea rsi, [rax + rax*2]
mov rcx, qword [rbp + rsi*8 + 8]
cmp dword [rsp + 0x60], ebx
je 0x1400130e7
test rcx, rcx
je 0x1400130b6
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140013118
cmp qword [rbp + rsi*8 + 8], rbx
jne 0x1400130f9
cmp dword [rbp + rsi*8], ebx
jne 0x1400130f9
mov ebx, 1
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
test rcx, rcx
je 0x140013118
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140013118
lea eax, [rdi + 1]
inc r14d
mov edi, eax
sub edi, dword [r13 + 0x18]
cmp eax, dword [r13 + 0x18]
cmovb edi, eax
cmp r14d, dword [r13 + 0x18]
jb 0x14001308f
jmp 0x1400130c3
mov dword [r12], edi
jmp 0x1400130c8

Function at 0x1400140dc
Capabilities:
Read http header

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x14003e008]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rdx
mov dword [rsp + 0x30], 0x10
xorps xmm0, xmm0
lea rax, [r11 - 0x28]
xor ebx, ebx
lea r9, [r11 - 0x20]
and qword [r11 - 0x30], rbx
xor r8d, r8d
mov edx, 0x4000000b
mov qword [r11 - 0x38], rax
movups xmmword [rsp + 0x38], xmm0
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x140014146
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14001416c
mov rdx, rdi
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
jne 0x14001416c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140015940
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x14001496c
Capabilities:
Get hostname

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r14
mov qword [rax + 0x20], r15
push rbp
lea rbp, [rax - 0x388]
sub rsp, 0x480
mov rax, qword [0x14003e008]
xor rax, rsp
mov qword [rbp + 0x370], rax
xor ebx, ebx
lea rdi, str.unknown
cmp qword [0x14003e9d8], 0xffffffffffffffff
mov r8d, 0x104
mov dword [rsp + 0x48], r8d
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x44], ebx
je 0x140014af9
cmp qword [0x14003fcc0], rbx
je 0x140014af9
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x1400149f9
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call fcn.140017680
lea r8, [rsp + 0x44]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.140012468
test eax, eax
jns 0x140014a19
mov r14d, ebx
mov r15d, ebx
jmp 0x140014a23
mov r14d, dword [rsp + 0x40]
mov r15d, dword [rsp + 0x44]
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x140014a4d
xor edx, edx
lea rcx, [rbp + 0x160]
mov r8d, 0x208
call fcn.140017680
call fcn.1400151e4
mov r8, rax
lea rdx, str._Logging_started:__S_
mov ecx, 1
call fcn.1400148c4
movzx ecx, r15w
lea rdx, [rbp + 0x160]
mov qword [rsp + 0x38], rdx
lea r8, [rsp + 0x50]
mov dword [rsp + 0x30], ecx
lea rdx, str.Executable:__S_v_d._d._d._d_r_nComputer__:__S
movzx eax, r14w
mov ecx, 1
shr r15d, 0x10
shr r14d, 0x10
mov dword [rsp + 0x28], r15d
mov r9d, r14d
mov dword [rsp + 0x20], eax
call fcn.1400148c4
mov ecx, dword [0x14003e9e0]
test ecx, ecx
je 0x140014adc
sub ecx, 1
je 0x140014ad3
sub ecx, 1
je 0x140014aca
cmp ecx, 1
jne 0x140014ae3
lea rdi, str.debug
jmp 0x140014ae3
lea rdi, str.verbose
jmp 0x140014ae3
lea rdi, str.standard
jmp 0x140014ae3
lea rdi, str.none
mov r8, rdi
lea rdx, str.____logging_level:__s____
mov ecx, 1
call fcn.1400148c4
jmp 0x140014afe
mov ebx, 1
mov eax, ebx
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.140015940
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov r15, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140014b54
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov dword [r11 + 0x20], r9d
mov qword [r11 + 0x18], r8
push rdi
sub rsp, 0x50
lea rax, [r11 + 0x18]
xor ebx, ebx
and qword [r11 - 0x18], rbx
mov r8d, edx
and dword [rsp + 0x78], ebx
mov rdx, rcx
mov qword [r11 - 0x28], rax
xor r9d, r9d
and dword [rsp + 0x28], ebx
lea rax, [r11 - 0x18]
mov ecx, 0x900
mov qword [r11 - 0x38], rax
xor edi, edi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov esi, eax
test eax, eax
jne 0x140014bc2
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140014c4c
test esi, esi
je 0x140014c0f
mov rcx, qword [0x14003e9d8]
lea r9, [rsp + 0x78]
and qword [rsp + 0x20], 0
mov r8d, esi
mov edx, edi
sub r8d, edi
add rdx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140014c07
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140014c4c
add edi, dword [rsp + 0x78]
cmp edi, esi
jb 0x140014bc6
mov rcx, qword [0x14003e9d8]
lea r9, [rsp + 0x78]
and qword [rsp + 0x20], 0
lea rdx, [0x1400389a0]
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140014c4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140014c5c
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x140014c70
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov dword [rax + 0x18], r8d
push rdi
sub rsp, 0x30
and qword [rax + 0x20], 0
mov r8, rdx
mov rdx, rcx
xor edi, edi
and dword [rax + 0x18], edi
lea rcx, [rax + 0x20]
call fcn.140011b44
mov ebx, eax
test eax, eax
js 0x140014d3e
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
test eax, eax
je 0x140014d01
mov rcx, qword [0x14003e9d8]
lea r9, [rsp + 0x50]
and qword [rsp + 0x20], 0
mov r8d, ebp
mov edx, edi
sub r8d, edi
add rdx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140014cf9
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140014d3e
add edi, dword [rsp + 0x50]
cmp edi, ebp
jb 0x140014cb8
mov rcx, qword [0x14003e9d8]
lea r9, [rsp + 0x50]
and qword [rsp + 0x20], 0
lea rdx, [0x1400389a0]
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140014d3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp qword [rsp + 0x58], 0
je 0x140014d50
mov rcx, qword [rsp + 0x58]
call fcn.1400152f4
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140014dc0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x178]
sub rsp, 0x270
mov rax, qword [0x14003e008]
xor rax, rsp
mov qword [rbp + 0x160], rax
and qword [rsp + 0x40], 0
mov rdi, rcx
mov r14d, 0x80070000
lea rax, [rsp + 0x50]
mov dword [rsp + 0x48], 0x100
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x48]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x60]
and qword [rsp + 0x28], 0
xor edx, edx
and qword [rsp + 0x20], 0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
jne 0x140014ebf
lea rax, [rsp + 0x40]
mov r9d, 0x2001f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140014ed2
mov rcx, qword [rsp + 0x40]
call fcn.140014dc0
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140014ed2
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x40], 0
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140014ed2
jmp 0x140014ec7
cmp ebx, 0x80070103
je 0x140014ed0
test ebx, ebx
jne 0x140014ed2
jmp 0x140014dfe
xor ebx, ebx
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140014ee2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140015940
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x140014f0c
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x14003e008]
xor rax, rsp
mov qword [rsp + 0x230], rax
or r9, 0xffffffffffffffff
lea r8, str.SOFTWAREMicrosoftOfficeDeliverySourceEngineDownloads
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.14001b968
cmp eax, 0x50
jne 0x140014f4d
mov eax, 0x8007007a
jmp 0x140014f92
xor ebx, ebx
lea rdx, [rsp + 0x20]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, eax
test eax, eax
jne 0x140014fab
mov edx, 0x5c
lea rcx, [rsp + 0x20]
call fcn.14001749c
test rax, rax
je 0x140014f84
mov word [rax], bx
cmp bx, word [rax + 2]
je 0x140014f67
cmp word [rsp + 0x20], bx
je 0x140014f90
test rax, rax
jne 0x140014f4f
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140015940
add rsp, 0x240
pop rbx
ret
add eax, 0xfffffffe
cmp eax, 1
jbe 0x140014fc2
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x140014fc4
mov eax, ebx
cmp eax, 1
jne 0x140014f92
jmp 0x140014f4f
Function at 0x140014fcc
Capabilities:
Delete registry key

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x30
and qword [r11 + 0x18], 0
lea rax, [r11 + 0x18]
mov r9d, 0x2001f
mov qword [r11 - 0x18], rax
xor r8d, r8d
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x140015008
lea ebx, [rax - 1]
jmp 0x140015055
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140015055
mov rcx, qword [rsp + 0x50]
call fcn.140014dc0
mov ebx, eax
test eax, eax
js 0x140015055
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x50], 0
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140015065
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14001512c
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
xor ecx, ecx
call qword [sym.imp.RPCRT4.dll_RpcImpersonateClient]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400151a4
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r9, rdi
xor r8d, r8d
mov rcx, rax
mov edx, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x140015185
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
call qword [sym.imp.RPCRT4.dll_RpcRevertToSelf]
test eax, eax
je 0x1400151a4
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14001615c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400161a6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400161a6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400161a6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400161a6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400161a6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400161a8
xor al, al
add rsp, 0x28
ret

Function at 0x140021f14
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140021d08
Function at 0x1400261d4
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140026204
xor eax, eax
jmp 0x1400262c7
mov rbp, rbx
cmp word [rax], si
je 0x140026229
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140026210
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002620c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140026124
movsxd r14, eax
test eax, eax
jne 0x140026267
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400261fd
mov rcx, r14
call fcn.140023108
mov rdi, rax
test rax, rax
jne 0x140026280
xor ecx, ecx
call fcn.1400230cc
jmp 0x14002625c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140026124
test eax, eax
jne 0x1400262b1
mov rcx, rdi
call fcn.1400230cc
jmp 0x1400262bb
xor ecx, ecx
call fcn.1400230cc
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14002d50c
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x14002d584
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x14002d584
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x14002d584
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x14002d578
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x14002d596
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x14002d566
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x14002d586

Function at 0x14002dae0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002db08
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002db08
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140e25058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140e251df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140e25089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e2506f
add dl, dl
jne 0x140e25096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e250f6
xor eax, eax
add dl, dl
jne 0x140e250a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e251ad
add dl, dl
jne 0x140e250b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e250c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e250d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e250dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140e250ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140e2507e
mov eax, 1
add dl, dl
jne 0x140e25106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e25113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e250fb
sub eax, ebx
mov ebx, 1
jne 0x140e2514c
mov ecx, 1
add dl, dl
jne 0x140e2512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140e2513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e25123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e2507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140e25168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140e25175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e2515d
cmp eax, 0x7d00
jae 0x140e2519b
cmp eax, 0x500
jb 0x140e25196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e2507e
cmp eax, 0x7f
ja 0x140e2519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e2507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140e251d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140e2507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400087bc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140008808
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140008800
cmp dword [rcx + 0x3c], edx
jl 0x140008800
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140008800
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140008808
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140919058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1409191df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140919089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14091906f
add dl, dl
jne 0x140919096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409190f6
xor eax, eax
add dl, dl
jne 0x1409190a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409191ad
add dl, dl
jne 0x1409190b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409190c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409190d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409190dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1409190ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14091907e
mov eax, 1
add dl, dl
jne 0x140919106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140919113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409190fb
sub eax, ebx
mov ebx, 1
jne 0x14091914c
mov ecx, 1
add dl, dl
jne 0x14091912e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14091913b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140919123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14091907e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140919168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140919175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14091915d
cmp eax, 0x7d00
jae 0x14091919b
cmp eax, 0x500
jb 0x140919196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14091907e
cmp eax, 0x7f
ja 0x14091919e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14091907e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1409191d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14091907e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001700
Capabilities:
Create thread

Disassembly:
mov r11, rsp
sub rsp, 0x48
and qword [r11 - 0x18], 0
lea rax, [0x1400020b0]
and qword [r11 + 0x18], 0
lea rcx, [r11 + 0x18]
mov qword [r11 - 0x20], rax
xor r9d, r9d
and qword [r11 - 0x28], 0
xor r8d, r8d
mov edx, 0x10000000
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
test eax, eax
jns 0x14000174f
mov edx, eax
lea rcx, [0x140002670]
call fcn.1400016b4
mov eax, 0xc0000001
jmp 0x14000175c
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor eax, eax
add rsp, 0x48
ret

Function at 0x1400017a4
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1c8]
sub rsp, 0x2a0
mov ecx, dword [rcx]
mov r12d, edx
xor r13d, r13d
lea rdx, [rbp + 0x1d0]
mov qword [rbp + 0x1d0], r13
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x14000196c
mov rcx, qword [rbp + 0x1d0]
lea rdx, [rsp + 0x30]
call sub.ntoskrnl.exe_KeStackAttachProcess
mov rcx, qword [rbp + 0x1d0]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessPeb]
mov r14, rax
test rax, rax
jne 0x140001823
lea rcx, [rsp + 0x30]
call sub.ntoskrnl.exe_KeUnstackDetachProcess
jmp 0x14000196c
mov rax, qword [rax + 0x18]
add rax, 0x20
mov rsi, qword [rax]
cmp rsi, rax
je 0x140001916
mov eax, 1
lea r15, [rsi - 0x10]
test r15, r15
je 0x1400018fd
cmp qword [r15 + 0x30], r13
je 0x1400018fd
movzx ebx, word [r15 + 0x58]
xor ecx, ecx
mov r8d, 0x6c6f6f50
lea rdx, [rax + rbx]
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
inc bx
mov word [rsp + 0x20], r13w
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rdx, [r15 + 0x58]
mov word [rsp + 0x22], bx
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlUnicodeStringToAnsiString]
movzx ecx, word [rsp + 0x20]
mov rax, qword [rsp + 0x28]
mov byte [rcx + rax], r13b
lea rcx, [rsp + 0x78]
mov rax, qword [r15 + 0x30]
movzx r8d, word [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
inc r8d
mov qword [rsp + 0x68], rax
mov eax, dword [r15 + 0x40]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x60], 0x12345568
mov dword [rsp + 0x64], 5
call fcn.1400023c0
xor r9d, r9d
lea rdx, [rsp + 0x60]
mov r8d, 0x118
mov ecx, r12d
call fcn.140001108
mov rcx, qword [rsp + 0x28]
mov edx, 0x6c6f6f50
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [r14 + 0x18]
mov rsi, qword [rsi]
add rax, 0x20
cmp rsi, rax
mov eax, 1
jne 0x14000183c
xor r9d, r9d
mov dword [rbp + 0x80], 0x12345568
mov r8d, 0x118
mov dword [rbp + 0x84], 5
lea rdx, [rbp + 0x80]
mov qword [rbp + 0x88], r13
mov ecx, r12d
mov qword [rbp + 0x90], r13
call fcn.140001108
lea rcx, [rsp + 0x30]
call sub.ntoskrnl.exe_KeUnstackDetachProcess
mov rcx, qword [rbp + 0x1d0]
test rcx, rcx
je 0x14000196c
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
lea r11, [rsp + 0x2a0]
xor eax, eax
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret