joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140047b84
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14002f620
sub rsp, rax
mov rax, qword [0x140078080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140044f54
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140047bd3
mov rax, rbp
jmp 0x140047cdb
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x7a6c0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140048af4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x7a6c0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140047cd7
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140047cd7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140048af4
test rax, rax
js 0x140047cd7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140047cd7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140047cc9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140047cc9
cmp byte [rcx], 0xd
jne 0x140047caf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140047cbe
cmp byte [rcx + 1], 0xa
jne 0x140047cbe
inc rcx
jmp 0x140047cbe
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x784e0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140047c91
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140047cdb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14002ec30
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140047e70
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14007a6c0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x140047ece
cmp word [rdx], r12w
jne 0x140047ece
or byte [rax + r8*8 + 0x38], cl
jmp 0x140047ed4
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14004802f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14004800a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140047f0d
mov rcx, r9
jmp 0x140047f30
cmp r9, rdx
jae 0x140047f47
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x140047ef1
jmp 0x14004802f
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140048004
cmp dword [rsp + 0x80], edi
je 0x140048004
mov rdx, r14
lea r11, [0x14007a6c0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140047fdd
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140047fb0
mov word [rbx], r12w
jmp 0x14004802b
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x140047fb9
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14004802b
cmp word [rsp + 0x70], r12w
jne 0x140047fea
cmp rbx, rsi
je 0x140047faa
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140048afc
cmp word [rsp + 0x70], r12w
je 0x14004802f
mov word [rbx], r13w
jmp 0x14004802b
lea r11, [0x14007a6c0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140048027
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14004802f
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14004c034
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 0x14004c064
xor eax, eax
jmp 0x14004c127
mov rbp, rbx
cmp word [rax], si
je 0x14004c089
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14004c070
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14004c06c
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.14004a660
movsxd r14, eax
test eax, eax
jne 0x14004c0c7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14004c05d
mov rcx, r14
call fcn.140043cdc
mov rdi, rax
test rax, rax
jne 0x14004c0e0
xor ecx, ecx
call fcn.140042edc
jmp 0x14004c0bc
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.14004a660
test eax, eax
jne 0x14004c111
mov rcx, rdi
call fcn.140042edc
jmp 0x14004c11b
xor ecx, ecx
call fcn.140042edc
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 0x14005287c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14003ae68
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140052906
cmp byte [rbp - 0x21], r15b
je 0x140052901
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14005293c
call fcn.1400431e0
test eax, eax
jne 0x140052928
cmp byte [rbp - 0x21], r15b
je 0x140052920
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14005293c
cmp byte [rbp - 0x21], r15b
je 0x140052939
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14003fcec
test eax, eax
jne 0x1400529dc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14003ae68
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14005297b
cmp byte [rbp - 0x21], r15b
je 0x1400529b0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400529b0
call fcn.1400431e0
test eax, eax
jne 0x14005299c
cmp byte [rbp - 0x21], r15b
je 0x140052995
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400529b0
cmp byte [rbp - 0x21], r15b
je 0x1400529ad
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14003fcec
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400529dc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400529df
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400529ed
mov rcx, rdi
call fcn.140042edc
cmp byte [rbp + 0x3f], r15b
je 0x1400529fc
mov rcx, qword [rbp + 0x27]
call fcn.140042edc
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400537f0
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140048afc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140048afc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140053940
cmp rax, 0xffffffffffffffff
je 0x140053940
xor edi, edi
test rbp, rbp
jle 0x1400538eb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140042e64
mov rbx, rax
test rax, rax
jne 0x140053878
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400538e1
mov edx, 0x8000
mov ecx, r14d
call fcn.140040d9c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140046ff4
cmp eax, 0xffffffff
je 0x1400538c1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140053888
mov edx, r15d
mov ecx, r14d
call fcn.140040d9c
jmp 0x1400538e1
cmp byte [rsi + 0x38], dil
je 0x1400538d8
cmp dword [rsi + 0x34], 5
jne 0x1400538d8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400538e1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140042edc
jmp 0x140053954
jns 0x140053954
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140048afc
cmp rax, 0xffffffffffffffff
jne 0x14005390c
cmp byte [rsi + 0x30], dil
je 0x140053954
mov edi, dword [rsi + 0x2c]
jmp 0x140053954
mov ecx, r14d
call fcn.14004ca38
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140053954
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140053954
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14005394d
mov eax, dword [rsi + 0x2c]
jmp 0x140053952
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140048afc
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1400547b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400547d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400547d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140007b8c
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x140138040]
xor rax, rsp
mov qword [rbp - 8], rax
xor r12d, r12d
mov r15, r8
mov qword [rdx], r12
mov rbx, rdx
mov qword [rdx + 8], r12
mov r14d, r12d
mov dword [rdx + 0x10], r12d
movsxd rsi, dword [r8 + 0x3c]
add rsi, r8
movzx eax, word [rsi + 0x14]
lea rdi, [rsi + 0x18]
add rdi, rax
cmp r12w, word [rsi + 6]
jae 0x140007cc1
xorps xmm0, xmm0
mov qword [rbp - 0x18], r12
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x10], r12
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdi + r8], r12b
jne 0x140007bfa
mov rdx, rdi
lea rcx, [rbp - 0x28]
call fcn.140004068
mov rdx, qword [rbp - 0x10]
lea rax, [rbp - 0x28]
mov rcx, qword [rbp - 0x28]
cmp rdx, 0xf
cmova rax, rcx
cmp qword [rbp - 0x18], 5
jne 0x140007c7e
cmp dword [rax], 0x7865742e
jne 0x140007c7e
cmp byte [rax + 4], 0x74
jne 0x140007c7e
mov r9d, dword [rdi + 0xc]
mov r8d, r12d
mov r11d, dword [rdi + 8]
add r9, r15
mov qword [rbp - 0x40], rdi
mov r10, r12
mov qword [rbp - 0x38], r9
test r11, r11
je 0x140007c69
movzx eax, byte [r9 + r10]
inc r10
crc32 r8d, eax
cmp r10, r11
jb 0x140007c56
movups xmm0, xmmword [rbp - 0x40]
mov dword [rbp - 0x30], r8d
movsd xmm1, qword [rbp - 0x30]
movups xmmword [rbx], xmm0
movsd qword [rbx + 0x10], xmm1
cmp rdx, 0xf
jbe 0x140007cad
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007ca8
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007ce9
call fcn.1400e0dd8
movzx eax, word [rsi + 6]
inc r14d
add rdi, 0x28
cmp r14d, eax
jl 0x140007be7
mov rax, rbx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400e0c90
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x1400097a0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
mov ecx, 8
call fcn.1400e0de0
mov qword [rax], rbx
mov qword [rsp + 0x40], rax
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
and dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140009828]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x1400097fa
mov rax, rdi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
and dword [rbx], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x140009854
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140138040]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rax, qword gs:[0x58]
mov rbx, rcx
mov ecx, 0x10
mov rdi, r9
mov rax, qword [rax]
mov eax, dword [rcx + rax]
cmp dword [0x14019f2ec], eax
jle 0x1400098f3
lea rcx, [0x14019f2ec]
call fcn.1400e0d58
cmp dword [0x14019f2ec], 0xffffffff
jne 0x1400098f3
movdqa xmm0, xmmword [0x140124a60]
xor ecx, ecx
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x50], 1
lea eax, [rcx - 0x1f]
xor byte [rsp + rcx + 0x40], al
inc rcx
cmp rcx, 0xf
jb 0x1400098b9
mov rcx, qword [0x14019dd30]
lea rdx, [rsp + 0x40]
mov byte [rsp + 0x50], 0
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x14019f2ec]
mov qword [0x14019f310], rax
call fcn.1400e0cec
mov rax, qword [0x14019f310]
test rax, rax
je 0x140009927
and qword [rsp + 0x30], 0
mov r9, rdi
mov dword [rsp + 0x28], 0x8400000
xor r8d, r8d
mov edx, 0xf001f
mov dword [rsp + 0x20], 0x40
mov rcx, rbx
call rax
jmp 0x140009937
mov ecx, 0x7f
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 0xc000007a
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400e0c90
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x140009950
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140138040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rax, qword gs:[0x58]
mov rbx, rcx
mov rsi, qword [rsp + 0xb8]
mov rdi, r8
mov rbp, qword [rsp + 0xc0]
mov ecx, 0x10
mov rax, qword [rax]
mov eax, dword [rcx + rax]
cmp dword [0x14019f2f0], eax
jle 0x140009a04
lea rcx, [0x14019f2f0]
call fcn.1400e0d58
cmp dword [0x14019f2f0], 0xffffffff
jne 0x140009a04
movdqa xmm0, xmmword [0x140124ce0]
xor ecx, ecx
movdqu xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x60], 0x1009f9f
lea eax, [rcx - 0x20]
xor byte [rsp + rcx + 0x50], al
inc rcx
cmp rcx, 0x12
jb 0x1400099ca
mov rcx, qword [0x14019dd30]
lea rdx, [rsp + 0x50]
mov byte [rsp + 0x63], 0
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x14019f2f0]
mov qword [0x14019f300], rax
call fcn.1400e0cec
mov r10, qword [0x14019f300]
test r10, r10
je 0x140009a4e
mov rax, qword [rsp + 0xb0]
xor r9d, r9d
mov dword [rsp + 0x48], 4
mov r8, rdi
and dword [rsp + 0x40], 0
or rdx, 0xffffffffffffffff
mov dword [rsp + 0x38], 2
mov rcx, rbx
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call r10
jmp 0x140009a5e
mov ecx, 0x7f
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 0xc000007a
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400e0c90
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret

Function at 0x140009a7c
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
xor edi, edi
mov rbx, rdx
test rcx, rcx
je 0x140009b7e
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140009b7e
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x140009b7e
mov edx, 0x20b
cmp word [rax + rcx + 0x18], dx
jne 0x140009b7e
mov qword [rbx], rcx
lea r8, [rbx + 0x20]
movsxd rax, dword [rcx + 0x3c]
lea r9d, [rdi + 0x10]
add rcx, rax
mov edx, edi
mov qword [rbx + 8], rcx
lea rax, [rcx + 4]
mov qword [rbx + 0x10], rax
lea rax, [rcx + 0x18]
mov qword [rbx + 0x18], rax
mov rcx, qword [rbx + 8]
add rcx, 0x88
add rcx, rdx
add rdx, 8
mov qword [r8], rcx
lea r8, [r8 + 8]
sub r9, 1
jne 0x140009af6
mov rcx, qword [rbx + 8]
movzx eax, word [rcx + 0x14]
lea r14, [rcx + 0x18]
add r14, rax
mov rax, qword [rbx + 0x10]
cmp di, word [rax + 2]
jae 0x140009b7a
mov rdx, qword [rbx + 0xa8]
movsxd rax, edi
lea rcx, [rax + rax*4]
lea rax, [r14 + rcx*8]
mov qword [rsp + 0x30], rax
cmp rdx, qword [rbx + 0xb0]
je 0x140009b5b
mov qword [rdx], rax
add qword [rbx + 0xa8], 8
jmp 0x140009b6c
lea r8, [rsp + 0x30]
lea rcx, [rbx + 0xa0]
call fcn.140009b98
mov rcx, qword [rbx + 0x10]
inc edi
movzx edx, word [rcx + 2]
cmp edi, edx
jl 0x140009b2e
mov al, 1
jmp 0x140009b80
xor al, al
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14000a290
Capabilities:
Encode data using xor
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x140138040]
xor rax, rsp
mov qword [rbp + 0x20], rax
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x10], xmm0
and qword [rbp], 0
lea rdx, [rsp + 0x50]
call fcn.140009a7c
mov rbx, qword [rbp - 0x10]
test al, al
je 0x14000a41a
mov dword [rbp + 0x10], 0x9d8197cc
mov word [rbp + 0x14], 0x92
mov edi, 1
mov byte [rbp + 0x16], dil
xor ecx, ecx
lea eax, [rcx - 0x1e]
xor byte [rbp + rcx + 0x10], al
add rcx, rdi
cmp rcx, 5
jb 0x14000a2f7
mov byte [rbp + 0x16], 0
mov rsi, rbx
mov r14d, 8
cmp rbx, qword [rbp - 8]
je 0x14000a33a
mov r12, qword [rsi]
mov r8, r14
lea rdx, [rbp + 0x10]
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x14000a33d
add rsi, r14
cmp rsi, qword [rbp - 8]
jne 0x14000a31a
xor r12d, r12d
mov dword [rbp + 0x18], 0x848091cc
mov dword [rbp + 0x1c], 0x1008692
xor ecx, ecx
lea eax, [rcx - 0x1e]
xor byte [rbp + rcx + 0x18], al
add rcx, rdi
cmp rcx, 6
jb 0x14000a34d
mov byte [rbp + 0x1f], 0
mov rsi, rbx
cmp rbx, qword [rbp - 8]
je 0x14000a38a
mov r13, qword [rsi]
mov r8, r14
lea rdx, [rbp + 0x18]
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x14000a38d
add rsi, r14
cmp rsi, qword [rbp - 8]
jne 0x14000a36a
xor r13d, r13d
mov dword [rbp + 0x10], 0x918587cc
mov word [rbp + 0x14], 0x87
mov byte [rbp + 0x16], dil
xor ecx, ecx
lea eax, [rcx - 0x1e]
xor byte [rbp + rcx + 0x10], al
add rcx, rdi
cmp rcx, 5
jb 0x14000a3a0
mov byte [rbp + 0x16], 0
mov rsi, rbx
cmp rbx, qword [rbp - 8]
je 0x14000a3e1
mov r14, qword [rsi]
mov r8d, 8
lea rdx, [rbp + 0x10]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x14000a3e4
add rsi, 8
cmp rsi, qword [rbp - 8]
jne 0x14000a3bd
xor r14d, r14d
test r12, r12
je 0x14000a41a
cmp r12, r13
jae 0x14000a41a
cmp r13, r14
jae 0x14000a41a
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor edx, edx
mov eax, dword [r13 + 0xc]
div dword [rsp + 0x48]
test edx, edx
jne 0x14000a41a
xor edx, edx
mov eax, dword [r14 + 0xc]
div dword [rsp + 0x48]
test edx, edx
je 0x14000a41d
xor dil, dil
test rbx, rbx
je 0x14000a45d
mov rdx, qword [rbp]
sub rdx, rbx
and rdx, 0xfffffffffffffff8
mov rax, rbx
cmp rdx, 0x1000
jb 0x14000a455
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000a455
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.1400e0dd8
mov al, dil
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1400e0c90
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
Function at 0x14000a488
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r14
lea rbp, [rax - 0x48]
sub rsp, 0x130
mov rax, qword [0x140138040]
xor rax, rsp
mov qword [rbp + 0x20], rax
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x40], xmm0
and qword [rbp - 0x30], 0
lea rdx, [rsp + 0x20]
call fcn.140009a7c
test al, al
je 0x14000a61d
mov dword [rbp - 0x20], 0x9d8197cc
mov word [rbp - 0x1c], 0x92
mov byte [rbp - 0x1a], 1
xor ecx, ecx
lea eax, [rcx - 0x1e]
xor byte [rbp + rcx - 0x20], al
inc rcx
cmp rcx, 5
jb 0x14000a4e7
mov byte [rbp - 0x1a], 0
mov rbx, qword [rbp - 0x40]
mov rdi, rbx
mov r12d, 8
mov rsi, qword [rbp - 0x38]
cmp rbx, rsi
je 0x14000a530
mov r14, qword [rdi]
mov r8, r12
lea rdx, [rbp - 0x20]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x14000a533
add rdi, r12
cmp rdi, rsi
jne 0x14000a511
xor r14d, r14d
mov dword [rbp - 0x18], 0x848091cc
mov dword [rbp - 0x14], 0x1008692
xor ecx, ecx
lea eax, [rcx - 0x1e]
xor byte [rbp + rcx - 0x18], al
inc rcx
cmp rcx, 6
jb 0x14000a543
mov byte [rbp - 0x11], 0
jmp 0x14000a573
mov rdi, qword [rbx]
mov r8, r12
lea rdx, [rbp - 0x18]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x14000a57a
add rbx, r12
cmp rbx, rsi
jne 0x14000a559
xor edi, edi
test r14, r14
je 0x14000a61d
cmp r14, rdi
jae 0x14000a61d
mov dword [rbp - 0x10], 1
mov dword [rbp - 0xc], 2
mov dword [rbp - 8], 4
mov dword [rbp - 4], r12d
mov dword [rbp], 0x10
mov dword [rbp + 4], 0x20
mov dword [rbp + 8], 0x40
mov dword [rbp + 0xc], 0x80
mov dword [rbp + 0x10], 0x100
mov dword [rbp + 0x14], 0x200
mov dword [rbp + 0x18], 0x400
mov dword [rbp + 0x1c], 0x80000000
lea rbx, [rbp - 0x10]
mov rsi, qword [rsp + 0x38]
mov r8d, dword [r14 + 8]
add r8d, 0x1000
mov r9d, dword [rbx]
mov rdx, qword [rsi + 0x18]
call fcn.14000a650
mov r8d, dword [rdi + 8]
mov edx, dword [rdi + 0xc]
add rdx, qword [rsi + 0x18]
mov r9d, dword [rbx]
call fcn.14000a650
add rbx, 4
lea rax, [rbp + 0x20]
cmp rbx, rax
jne 0x14000a5e6
lea rcx, [rsp + 0x20]
call fcn.14000a220
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1400e0c90
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rbp
ret
Function at 0x14000a650
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140138040]
xor rax, rsp
mov qword [rbp - 0x10], rax
and dword [rbp - 0x40], 0
mov ebx, r9d
mov qword [rbp - 0x30], rdx
mov qword [rbp - 0x38], r8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, qword gs:[0x58]
mov rdi, rax
mov edx, 0x10
mov rcx, qword [rcx]
mov edx, dword [rdx + rcx]
cmp dword [0x14019f308], edx
jle 0x14000a707
lea rcx, [0x14019f308]
call fcn.1400e0d58
cmp dword [0x14019f308], 0xffffffff
jne 0x14000a707
movdqa xmm0, xmmword [0x140124dc0]
xor edx, edx
movdqu xmmword [rbp - 0x28], xmm0
mov dword [rbp - 0x18], 0x9b9e97bc
mov dword [rbp - 0x14], 0x1008f87
lea eax, [rdx - 0x1f]
xor byte [rbp + rdx - 0x28], al
inc rdx
cmp rdx, 0x16
jb 0x14000a6cf
mov rcx, qword [0x14019dd30]
lea rdx, [rbp - 0x28]
mov byte [rbp - 0x11], 0
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x14019f308]
mov qword [0x14019f2f8], rax
call fcn.1400e0cec
mov rax, qword [0x14019f2f8]
test rax, rax
je 0x14000a72e
lea rcx, [rbp - 0x40]
mov r9d, ebx
mov qword [rsp + 0x20], rcx
lea r8, [rbp - 0x38]
mov rcx, rdi
lea rdx, [rbp - 0x30]
call rax
jmp 0x14000a739
mov ecx, 0x7f
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400e0c90
add rsp, 0x70
pop rdi
pop rbx
pop rbp
ret