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

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, 0x20
mov r10, qword [0x14006e030]
xor ebx, ebx
movzx ebp, r9b
mov r14b, r8b
mov rdi, rdx
mov rsi, rcx
test r10, r10
jne 0x14002183f
cmp byte [0x14006e028], bl
jne 0x14002183f
lea rcx, str.Crypt32.dll
call fcn.140023cac
mov qword [0x14006e020], rax
test rax, rax
je 0x140021828
lea rdx, str.CryptProtectMemory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14006e020]
lea rdx, str.CryptUnprotectMemory
mov qword [0x14006e030], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14006e038], rax
jmp 0x14002182f
mov rax, qword [0x14006e038]
mov r10, qword [0x14006e030]
mov byte [0x14006e028], 1
jmp 0x140021846
mov rax, qword [0x14006e038]
mov rcx, rdi
mov r8d, ebp
and rcx, 0xfffffffffffffff0
test r14b, r14b
je 0x140021899
test r10, r10
je 0x1400218b6
mov edx, ecx
mov rax, r10
mov rcx, rsi
call qword [0x140047518]
test eax, eax
jne 0x1400218d1
lea rdx, str.CryptProtectMemory_failed
lea rbx, [0x140066ee8]
mov rcx, rbx
call fcn.14000cd88
mov rcx, rbx
call fcn.14000d0a0
mov edx, 2
mov rcx, rbx
call fcn.14000cd5c
jmp 0x1400218d1
test rax, rax
je 0x1400218b6
mov edx, ecx
mov rcx, rsi
call qword [0x140047518]
test eax, eax
jne 0x1400218d1
lea rdx, str.CryptUnprotectMemory_failed
jmp 0x140021873
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
test rdi, rdi
je 0x1400218d1
lea ecx, [rax + 0x4b]
add cl, bl
xor byte [rbx + rsi], cl
inc rbx
cmp rbx, rdi
jb 0x1400218c1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140022b50
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x14005c318]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov edi, dword [rcx + 0x18]
mov ebp, 0x38
mov r14, qword [rcx + 0x18]
and edi, 0x3f
shl r14, 3
mov rsi, rdx
mov rbx, rcx
mov byte [rdi + rcx + 0x20], 0x80
inc edi
cmp edi, ebp
je 0x140022bde
jbe 0x140022bc9
lea edx, [rbp + 8]
cmp edi, edx
jae 0x140022bb3
sub edx, edi
mov ecx, edi
add rcx, 0x20
mov r8d, edx
add rcx, rbx
xor edx, edx
call fcn.1400329c0
xor edi, edi
lea r8, [rbx + 0x20]
mov r9b, 1
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14002196c
sub ebp, edi
mov ecx, edi
add rcx, 0x20
mov r8d, ebp
add rcx, rbx
xor edx, edx
call fcn.1400329c0
mov rax, r14
lea r8, [rbx + 0x20]
shr rax, 0x20
lea rdx, [rsp + 0x20]
bswap eax
bswap r14d
mov r9b, 1
mov dword [rbx + 0x58], eax
mov rcx, rbx
mov dword [rbx + 0x5c], r14d
call fcn.14002196c
mov rdx, rbx
mov ecx, 5
sub rdx, rsi
mov eax, dword [rdx + rsi]
mov dword [rsi], eax
lea rsi, [rsi + 4]
sub rcx, 1
jne 0x140022c10
and qword [rbx + 0x18], rcx
mov dword [rbx], 0x67452301
mov dword [rbx + 4], 0xefcdab89
mov dword [rbx + 8], 0x98badcfe
mov dword [rbx + 0xc], 0x10325476
mov dword [rbx + 0x10], 0xc3d2e1f0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140030c60
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140022c68
Capabilities:
Hash data using sha1

Disassembly:
and qword [rcx + 0x18], 0
mov dword [rcx], 0x67452301
mov dword [rcx + 4], 0xefcdab89
mov dword [rcx + 8], 0x98badcfe
mov dword [rcx + 0xc], 0x10325476
mov dword [rcx + 0x10], 0xc3d2e1f0
ret
Function at 0x140022e6c
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov r8d, dword [rcx + 0x20]
mov edi, 0x38
mov rsi, qword [rcx + 0x20]
and r8d, 0x3f
shl rsi, 3
mov r14, rdx
mov rbx, rcx
mov byte [r8 + rcx + 0x28], 0x80
inc r8d
cmp r8d, edi
je 0x140022eed
jbe 0x140022ed6
lea edx, [rdi + 8]
cmp r8d, edx
jae 0x140022ecb
mov ecx, r8d
sub edx, r8d
add rcx, 0x28
mov r8d, edx
add rcx, rbx
xor edx, edx
call fcn.1400329c0
mov rcx, rbx
call fcn.140023070
xor r8d, r8d
mov ecx, r8d
sub edi, r8d
add rcx, 0x28
mov r8d, edi
add rcx, rbx
xor edx, edx
call fcn.1400329c0
mov rax, rsi
mov rcx, rbx
shr rax, 0x20
bswap eax
bswap esi
mov dword [rbx + 0x60], eax
mov dword [rbx + 0x64], esi
call fcn.140023070
mov eax, dword [rbx]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
bswap eax
mov dword [r14], eax
mov eax, dword [rbx + 4]
bswap eax
mov dword [r14 + 4], eax
mov eax, dword [rbx + 8]
bswap eax
mov dword [r14 + 8], eax
mov eax, dword [rbx + 0xc]
bswap eax
mov dword [r14 + 0xc], eax
mov eax, dword [rbx + 0x10]
bswap eax
mov dword [r14 + 0x10], eax
mov eax, dword [rbx + 0x14]
bswap eax
mov dword [r14 + 0x14], eax
mov eax, dword [rbx + 0x18]
bswap eax
mov dword [r14 + 0x18], eax
mov eax, dword [rbx + 0x1c]
bswap eax
mov dword [r14 + 0x1c], eax
and qword [rbx + 0x20], 0
mov dword [rbx], 0x6a09e667
mov dword [rbx + 4], 0xbb67ae85
mov dword [rbx + 8], 0x3c6ef372
mov dword [rbx + 0xc], 0xa54ff53a
mov dword [rbx + 0x10], 0x510e527f
mov dword [rbx + 0x14], 0x9b05688c
mov dword [rbx + 0x18], 0x1f83d9ab
mov dword [rbx + 0x1c], 0x5be0cd19
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop r14
ret

Function at 0x140022fa0
Capabilities:
Hash data using sha256

Disassembly:
and qword [rcx + 0x20], 0
mov dword [rcx], 0x6a09e667
mov dword [rcx + 4], 0xbb67ae85
mov dword [rcx + 8], 0x3c6ef372
mov dword [rcx + 0xc], 0xa54ff53a
mov dword [rcx + 0x10], 0x510e527f
mov dword [rcx + 0x14], 0x9b05688c
mov dword [rcx + 0x18], 0x1f83d9ab
mov dword [rcx + 0x1c], 0x5be0cd19
ret
Function at 0x140023070
Capabilities:
Encode data using xor
Hash data using murmur3

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 - 0x68]
sub rsp, 0x140
mov rax, qword [0x14005c318]
xor rax, rsp
mov qword [rbp + 0x30], rax
xor edi, edi
mov qword [rsp + 0x20], rcx
mov r9, rcx
lea r8, [rsp + 0x30]
mov ecx, edi
lea eax, [rcx*4]
inc ecx
mov eax, dword [rax + r9 + 0x28]
bswap eax
mov dword [r8], eax
lea r8, [r8 + 4]
cmp ecx, 0x10
jb 0x1400230b2
lea r11, [rsp + 0x70]
mov ebx, 0x30
lea r10, [rsp + 0x68]
mov ecx, dword [r10 - 0x34]
mov r8d, ecx
mov edx, dword [r10]
mov eax, ecx
rol r8d, 0xe
lea r10, [r10 + 4]
shr ecx, 3
ror eax, 7
xor r8d, eax
mov eax, edx
xor r8d, ecx
rol eax, 0xd
mov ecx, edx
shr edx, 0xa
rol ecx, 0xf
xor ecx, eax
xor ecx, edx
add r8d, ecx
add r8d, dword [r10 - 0x3c]
add r8d, dword [r10 - 0x18]
mov dword [r11], r8d
lea r11, [r11 + 4]
sub rbx, 1
jne 0x1400230dd
movups xmm0, xmmword [r9]
lea r12d, [rbx + 0x40]
movups xmm1, xmmword [r9 + 0x10]
movups xmmword [rsp], xmm0
mov ebx, dword [rsp + 8]
mov esi, dword [rsp + 4]
mov r11d, dword [rsp]
mov r9d, dword [rsp + 0xc]
movups xmmword [rsp + 0x10], xmm1
mov r13d, dword [rsp + 0x1c]
mov r14d, dword [rsp + 0x18]
mov r15d, dword [rsp + 0x14]
mov r10d, dword [rsp + 0x10]
mov eax, r10d
mov r8d, r10d
rol eax, 7
mov ecx, r10d
ror r8d, 0xb
not ecx
xor r8d, eax
and ecx, r14d
mov eax, r10d
mov edx, r11d
ror eax, 6
xor r8d, eax
ror edx, 0xd
mov eax, r15d
and eax, r10d
xor ecx, eax
lea rax, [0x14004b280]
add r8d, ecx
mov ecx, esi
add r8d, dword [rdi + rax]
xor ecx, ebx
add r8d, dword [rsp + rdi + 0x30]
lea rdi, [rdi + 4]
add r8d, r13d
and ecx, r11d
mov eax, r11d
mov r13d, r14d
rol eax, 0xa
mov r14d, r15d
xor edx, eax
mov r15d, r10d
mov eax, r11d
lea r10d, [r9 + r8]
ror eax, 2
mov r9d, ebx
xor edx, eax
mov eax, esi
and eax, ebx
mov ebx, esi
xor ecx, eax
mov esi, r11d
add edx, ecx
lea r11d, [rdx + r8]
sub r12, 1
jne 0x140023161
mov dword [rsp + 0xc], r9d
lea rcx, [rsp]
mov r9, qword [rsp + 0x20]
lea edx, [r12 + 8]
sub rcx, r9
mov dword [rsp + 0x10], r10d
mov dword [rsp], r11d
mov dword [rsp + 8], ebx
mov dword [rsp + 4], esi
mov dword [rsp + 0x18], r14d
mov dword [rsp + 0x14], r15d
mov dword [rsp + 0x1c], r13d
mov eax, dword [rcx + r9]
add dword [r9], eax
lea r9, [r9 + 4]
sub rdx, 1
jne 0x140023222
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140030c60
lea r11, [rsp + 0x140]
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
Function at 0x140023c04
Capabilities:
Get token membership

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14005c318]
xor rax, rsp
mov qword [rbp - 8], rax
and dword [rbp - 0x10], 0
lea rax, [rbp - 0x18]
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x10]
and dword [rsp + 0x48], 0
mov r9d, 0x220
and dword [rsp + 0x40], 0
mov r8d, 0x20
and dword [rsp + 0x38], 0
mov dl, 2
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov word [rbp - 0xc], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rbp - 0x20], eax
test eax, eax
je 0x140023c94
mov rdx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb ecx, ecx
and dword [rbp - 0x20], ecx
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rbp - 0x20]
test eax, eax
setne al
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140030c60
add rsp, 0x80
pop rbp
ret

Function at 0x140023cac
Capabilities:
Get common file path

Disassembly:
push rbx
mov eax, 0x1030
call fcn.140030c00
sub rsp, rax
mov rax, qword [0x14005c318]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rbx, rcx
mov edx, 0x800
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x140023ce8
xor eax, eax
jmp 0x140023d0b
mov r9d, 0x800
lea r8, [rsp + 0x20]
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.1400182b0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140030c60
add rsp, 0x1030
pop rbx
ret

Function at 0x140023e24
Capabilities:
Shutdown system

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14005c318]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140023e9d
lea r8, [rsp + 0x3c]
xor ecx, ecx
lea rdx, str.SeShutdownPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
and qword [rsp + 0x28], 0
lea r8, [rsp + 0x38]
and qword [rsp + 0x20], 0
xor r9d, r9d
mov rcx, qword [rsp + 0x30]
xor edx, edx
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x44], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp ebx, 1
jne 0x140023ea7
lea ecx, [rbx + 4]
jmp 0x140023ed0
cmp ebx, 3
jne 0x140023eb5
xor r8d, r8d
xor edx, edx
xor ecx, ecx
jmp 0x140023ec1
cmp ebx, 2
jne 0x140023ec8
xor r8d, r8d
mov cl, 1
xor edx, edx
call sub.POWRPROF.dll_SetSuspendState
jmp 0x140023edb
cmp ebx, 4
jne 0x140023edb
lea ecx, [rbx + 2]
mov edx, 0x80000000
call qword [sym.imp.USER32.dll_ExitWindowsEx]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140030c60
add rsp, 0x50
pop rbx
ret
Function at 0x140024254
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
cmp dword [rcx], edi
jbe 0x1400242f6
lea rax, [rsp + 0x40]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x140024400]
and dword [rsp + 0x20], 0
mov edx, 0x10000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
jne 0x1400242cc
lea rdx, str.CreateThread_failed
lea rcx, [0x140066ee8]
call fcn.14000cd88
lea rcx, [0x140066ee8]
call fcn.14000d0a0
lea edx, [rsi + 2]
lea rcx, [0x140066ee8]
call fcn.14000cd5c
mov qword [rbx + rdi*8 + 8], rsi
inc dword [rbx + 0x208]
mov edx, dword [0x140072060]
test edx, edx
je 0x1400242ec
mov rcx, qword [rbx + rdi*8 + 8]
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc edi
cmp edi, dword [rbx]
jb 0x140024270
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140031a6c
Capabilities:
Parse pe header

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

Function at 0x140039734
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140039508
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140039508
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140039508
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140039508
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140039508
cmp dword [rcx + 0x84], 0xe
jbe 0x140039508
cmp dword [rcx + 0xf8], esi
je 0x140039508
mov ecx, r14d
call fcn.140039650
mov ecx, 2
call fcn.14003db88
nop
cmp byte [0x140072a68], 0
jne 0x1400395d2
mov r15d, 1
mov eax, r15d
xchg dword [0x140072a58], eax
test ebx, ebx
jne 0x14003957b
mov rdi, qword [0x14005c318]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140072a60]
cmp rcx, rax
je 0x140039572
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.14000ea80]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140072bc8]
jmp 0x140039587
cmp ebx, r15d
jne 0x14003958d
lea rcx, [0x140072be0]
call fcn.14003b720
nop
test ebx, ebx
jne 0x1400395a4
lea rdx, [0x140047610]
lea rcx, [0x1400475f0]
call fcn.14003ba20
lea rdx, [0x140047620]
lea rcx, [0x140047618]
call fcn.14003ba20
movzx eax, byte [0x140072a68]
test esi, esi
cmove eax, r15d
mov byte [0x140072a68], al
jmp 0x1400395d2
mov ecx, 2
call fcn.14003dbe8
test esi, esi
jne 0x1400395e9
mov ecx, r14d
call fcn.140039604
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140039498
Function at 0x14146f7ac
Capabilities:
Encode data using xor

Disassembly:
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x14146f7d5
pop rbp
sub rbp, 0x29
sub rbp, 0x146f7ac
jmp 0x14146f835
sub rsp, 0x20
jmp 0x14146f845
mov rax, 0x146f7ac
add rax, rbp
add rax, 0xcb
mov rcx, 0x64a
mov rdx, 0xfffffffff295ff00
xor byte [rax], dl
inc rax
dec rcx
jne 0x14146f864
jmp 0x14146f87b
mov rcx, rbp
mov ecx, dword [rcx + 0x3c]
add rcx, 0x108
add rcx, rbp
mov rax, 0xe
mov rdx, 0x28
mul rdx
add rcx, rax
mov eax, dword [rcx + 0xc]
add rax, rbp
push rax
push rax
movabs rax, 0x129ac8
movabs rcx, 0x1345ce4
add rcx, rbp
movabs rdx, 0x18dae687
call fcn.14146f8d8
jmp 0x14146f8ee
pop rax
pop rdx
push rdx
push rax
movabs rax, 0x129ac8
movabs rcx, 0x1345ce4
add rcx, rbp
call fcn.14146f913
jmp 0x14146fba0
pop rdi
pop rsi
jmp 0x14146fbab
mov rax, 0x146f7ac
add rax, rbp
add rax, 0x431
mov rcx, 0x2e4
mov rdx, 0x347dce09
xor byte [rax], dl
inc rax
dec rcx
jne 0x14146fbca
jmp 0x14146fbe1
pop rdi
xor r15b, 0x56
invalid

Function at 0x14146f8d8
Capabilities:
Encode data using xor

Disassembly:
shr eax, 2
xor dword [rcx], edx
add rcx, 4
dec rax
jne 0x14146f8db
ret
Function at 0x14146f996
Capabilities:
Decompress data using aplib

Disassembly:
push rsi
push rdi
push rbp
push rdx
mov rdi, rdx
mov rsi, rcx
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
add rsi, 1
mov byte [rdi], al
add rdi, 1
mov rbx, 2
add dl, dl
jne 0x14146f9cb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14146f9a3
add dl, dl
jne 0x14146f9e0
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14146fa65
xor rax, rax
add dl, dl
jne 0x14146f9f8
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14146fb64
add dl, dl
jne 0x14146fa0d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc rax, rax
add dl, dl
jne 0x14146fa1f
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc rax, rax
add dl, dl
jne 0x14146fa31
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc rax, rax
add dl, dl
jne 0x14146fa43
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc rax, rax
je 0x14146fa54
mov rbx, rdi
sub rbx, rax
mov al, byte [rbx]
mov byte [rdi], al
inc rdi
mov rbx, 2
jmp 0x14146f9bc
mov rax, 1
add dl, dl
jne 0x14146fa7b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc rax, rax
add dl, dl
jne 0x14146fa8d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14146fa6c
sub rax, rbx
mov rbx, 1
jne 0x14146fae0
mov rcx, 1
add dl, dl
jne 0x14146fab9
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc rcx, rcx
add dl, dl
jne 0x14146facb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14146faaa
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14146f9bc
dec rax
shl rax, 8
mov al, byte [rsi]
inc rsi
mov rbp, rax
mov rcx, 1
add dl, dl
jne 0x14146fb05
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc rcx, rcx
add dl, dl
jne 0x14146fb17
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14146faf6
cmp rax, 0x7d00
sbb rcx, 0xffffffffffffffff
cmp rax, 0x500
sbb rcx, 0xffffffffffffffff
cmp rax, 0x80
adc rcx, 0
cmp rax, 0x80
adc rcx, 0
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14146f9bc
mov al, byte [rsi]
inc rsi
xor rcx, rcx
shr al, 1
je 0x14146fb95
adc rcx, 2
mov rbp, rax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov rbx, 1
jmp 0x14146f9bc
pop rdx
sub rdi, rdx
mov rax, rdi
pop rbp
pop rdi
pop rsi
ret
Function at 0x140011302
Capabilities:
Terminate process

Disassembly:
jmp 0x140016420
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400113ca
Capabilities:
Parse pe header

Disassembly:
jmp 0x140017770
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140017790
xor al, al
jmp 0x140017811
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400177a3
xor al, al
jmp 0x140017811
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400177cd
xor al, al
jmp 0x140017811
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400177e1
xor al, al
jmp 0x140017811
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400177f3
xor al, al
jmp 0x140017811
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001780f
xor al, al
jmp 0x140017811
mov al, 1
add rsp, 0x38
ret
Function at 0x1400051ac
Capabilities:
Parse pe header

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

Function at 0x14000e458
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000e248
Function at 0x14001247c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140012503
mov rsi, rbx
cmp word [rax], bp
je 0x1400124c2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400124ac
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400124a8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14000f488
mov rdi, rax
test rax, rax
je 0x1400124f0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400062a0
mov rbp, rdi
xor ecx, ecx
call fcn.14000f44c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140003860
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x1400054e4
cmp word [rcx], 0x5a4d
jne 0x1400054e4
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x1400054e4
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400054e4
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.1400053f0
test eax, eax
jne 0x140005500
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140005460
test rax, rax
je 0x1400054f5
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.140005caf
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140005bb0
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140005b50
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140006014
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x140567058]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x140567054]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140006062
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000605a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140006149
inc ebx
add rax, 0x28
jmp 0x14000603a
mov rcx, r12
call fcn.140006841
mov rbp, rax
test rax, rax
jne 0x140006081
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140005fb0
movsxd rbx, ebx
mov rax, qword [0x140567058]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.1400068ef
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140567058]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1400060e3
mov rax, qword [0x140567058]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140005fb0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140006143
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140006143
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140567058]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140006143
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140005fb0
inc dword [0x140567054]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret