joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140043410
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x248
mov rsi, rcx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor ecx, ecx
mov edx, 0x23
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x140043468
lea rax, str.C:ProgramData
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], recv
call fcn.140055cf8
lea r8, [rsp + 0x30]
mov rcx, rsi
mov edx, eax
call fcn.14000a4d0
jmp 0x14004348d
lea rdi, [rsp + 0x40]
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm0
mov rcx, rsi
mov rdx, rdi
mov r8, rax
call fcn.14000a9b0
mov rax, rsi
add rsp, 0x248
pop rdi
pop rsi
ret
Function at 0x14004ce00
Capabilities:
Encode data using xor

Disassembly:
mov r8, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 0x10
jb 0x14004ce0e
mov rcx, qword [rcx]
test r8, r8
je 0x14004cef3
mov eax, r8d
and eax, 3
cmp r8, 4
jae 0x14004ce2b
xor r9d, r9d
jmp 0x14004ceb8
and r8, 0xfffffffffffffffc
xor r9d, r9d
nop word cs:[rax + rax]
movsx r10d, byte [rcx + r9]
add r10d, edx
mov edx, r10d
shl edx, 0xa
add edx, r10d
mov r10d, edx
shr r10d, 6
xor r10d, edx
movsx edx, byte [rcx + r9 + 1]
add edx, r10d
mov r10d, edx
shl r10d, 0xa
add r10d, edx
mov edx, r10d
shr edx, 6
xor edx, r10d
movsx r10d, byte [rcx + r9 + 2]
add r10d, edx
mov edx, r10d
shl edx, 0xa
add edx, r10d
mov r10d, edx
shr r10d, 6
xor r10d, edx
movsx edx, byte [rcx + r9 + 3]
add r9, 4
add edx, r10d
mov r10d, edx
shl r10d, 0xa
add r10d, edx
mov edx, r10d
shr edx, 6
xor edx, r10d
cmp r8, r9
jne 0x14004ce40
test rax, rax
je 0x14004cef3
add rcx, r9
xor r8d, r8d
nop word cs:[rax + rax]
movsx r9d, byte [rcx + r8]
add r9d, edx
mov r10d, r9d
shl r10d, 0xa
add r10d, r9d
mov edx, r10d
shr edx, 6
xor edx, r10d
inc r8
cmp rax, r8
jne 0x14004ced0
lea eax, [rdx + rdx*8]
mov ecx, eax
shr ecx, 0xb
xor ecx, eax
mov eax, ecx
shl eax, 0xf
add eax, ecx
ret
Function at 0x14004dea0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rdi, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x14004debc
mov rsi, qword [rsi]
movabs r9, 0xcbf29ce484222325
test rdi, rdi
je 0x14004dee5
movabs rax, 0x100000001b3
mov edx, edi
and edx, 3
cmp rdi, 4
jae 0x14004deea
xor r8d, r8d
jmp 0x14004df3c
mov r10, r9
jmp 0x14004df67
mov r10, rdi
and r10, 0xfffffffffffffffc
xor r8d, r8d
nop word cs:[rax + rax]
movzx r11d, byte [rsi + r8]
xor r11, r9
imul r11, rax
movzx r9d, byte [rsi + r8 + 1]
xor r9, r11
imul r9, rax
movzx r11d, byte [rsi + r8 + 2]
xor r11, r9
imul r11, rax
movzx r9d, byte [rsi + r8 + 3]
xor r9, r11
imul r9, rax
add r8, 4
cmp r10, r8
jne 0x14004df00
mov r10, r9
test rdx, rdx
je 0x14004df67
add r8, rsi
xor r11d, r11d
nop word [rax + rax]
movzx r10d, byte [r8 + r11]
xor r10, r9
imul r10, rax
inc r11
mov r9, r10
cmp rdx, r11
jne 0x14004df50
and r10, qword [rcx + 0x30]
mov rbx, qword [rcx + 8]
mov rax, qword [rcx + 0x18]
mov rcx, r10
shl rcx, 4
mov r14, qword [rax + rcx + 8]
cmp r14, rbx
je 0x14004dfd4
add r10, r10
mov r15, qword [rax + r10*8]
cmp rdi, qword [r14 + 0x20]
jne 0x14004dfc3
nop word cs:[rax + rax]
cmp qword [r14 + 0x28], 0x10
jb 0x14004dfb0
mov rdx, qword [r14 + 0x10]
jmp 0x14004dfb4
lea rdx, [r14 + 0x10]
mov rcx, rsi
mov r8, rdi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14004dfd7
cmp r14, r15
je 0x14004dfd4
mov r14, qword [r14 + 8]
cmp rdi, qword [r14 + 0x20]
je 0x14004dfa0
jmp 0x14004dfc3
xor r14d, r14d
test r14, r14
cmove r14, rbx
lea rcx, [r14 + 0x30]
xor eax, eax
cmp r14, rbx
cmovne rax, rcx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14004fb50
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x130
mov rsi, r9
mov rdi, rdx
mov rbx, rcx
mov r14, qword [rsp + 0x180]
mov rax, qword [0x1400c0e18]
xor rax, rsp
mov qword [rsp + 0x128], rax
lea rcx, [rsp + 0x30]
mov rdx, r8
mov r8, r9
call fcn.14004fc10
movups xmm0, xmmword [r14]
movaps xmmword [rsp + 0x20], xmm0
and rdi, 0xfffffffffffffff0
je 0x14004fbf0
shr rsi, 2
add esi, 6
lea r14, [rsp + 0x20]
lea r15, [rsp + 0x30]
nop word cs:[rax + rax]
movups xmm0, xmmword [rbx]
xorps xmm0, xmmword [rsp + 0x20]
movaps xmmword [rsp + 0x20], xmm0
mov rcx, r14
mov rdx, rbx
mov r8, r15
mov r9d, esi
call fcn.14004ffc0
movups xmm0, xmmword [rbx]
movaps xmmword [rsp + 0x20], xmm0
add rbx, 0x10
add rdi, 0xfffffffffffffff0
jne 0x14004fbc0
mov rcx, qword [rsp + 0x128]
xor rcx, rsp
call fcn.1400556d0
nop
add rsp, 0x130
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140050500
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x138
mov rsi, r9
mov rdi, rdx
mov rbx, rcx
mov r14, qword [rsp + 0x190]
mov rax, qword [0x1400c0e18]
xor rax, rsp
mov qword [rsp + 0x130], rax
lea rcx, [rsp + 0x40]
mov rdx, r8
mov r8, r9
call fcn.14004fc10
movups xmm0, xmmword [r14]
movaps xmmword [rsp + 0x30], xmm0
and rdi, 0xfffffffffffffff0
je 0x14005061c
shr rsi, 2
add esi, 6
lea r15, [rsp + 0x30]
lea rax, [rsp + 0x20]
lea r14, [rsp + 0x40]
nop dword [rax]
mov r12, rax
movups xmm0, xmmword [rbx]
movups xmmword [rax], xmm0
mov rcx, rbx
mov rdx, rbx
mov r8, r14
mov r9d, esi
call fcn.140050640
movzx eax, byte [r15]
xor byte [rbx], al
movzx eax, byte [r15 + 1]
xor byte [rbx + 1], al
movzx eax, byte [r15 + 2]
xor byte [rbx + 2], al
movzx eax, byte [r15 + 3]
xor byte [rbx + 3], al
movzx eax, byte [r15 + 4]
xor byte [rbx + 4], al
movzx eax, byte [r15 + 5]
xor byte [rbx + 5], al
movzx eax, byte [r15 + 6]
xor byte [rbx + 6], al
movzx eax, byte [r15 + 7]
xor byte [rbx + 7], al
movzx eax, byte [r15 + 8]
xor byte [rbx + 8], al
movzx eax, byte [r15 + 9]
xor byte [rbx + 9], al
movzx eax, byte [r15 + 0xa]
xor byte [rbx + 0xa], al
movzx eax, byte [r15 + 0xb]
xor byte [rbx + 0xb], al
movzx eax, byte [r15 + 0xc]
xor byte [rbx + 0xc], al
movzx eax, byte [r15 + 0xd]
xor byte [rbx + 0xd], al
movzx eax, byte [r15 + 0xe]
xor byte [rbx + 0xe], al
movzx eax, byte [r15 + 0xf]
xor byte [rbx + 0xf], al
add rbx, 0x10
mov rax, r15
mov r15, r12
add rdi, 0xfffffffffffffff0
jne 0x140050570
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400556d0
nop
add rsp, 0x138
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140050fa0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov ebx, r9d
mov r14, r8
mov rsi, rdx
mov rdi, rcx
mov rax, qword [rsp + 0xb0]
mov rcx, qword [0x1400c0e18]
xor rcx, rsp
mov qword [rsp + 0x40], rcx
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
mov rbp, rdx
xor r13d, r13d
and rbp, 0xfffffffffffffff0
je 0x140051037
lea r15, [rsp + 0x30]
lea r12, [rsp + 0x20]
nop word cs:[rax + rax]
mov rcx, r15
mov rdx, r12
mov r8, r14
mov r9d, ebx
call fcn.14004ffc0
movups xmm0, xmmword [rdi + r13]
xorps xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi + r13], xmm0
mov eax, dword [rsp + 0x3c]
bswap eax
inc eax
bswap eax
mov dword [rsp + 0x3c], eax
add r13, 0x10
cmp r13, rbp
jb 0x140051000
mov r15, rsi
and r15, 0xf
je 0x1400510bf
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov r8, r14
mov r9d, ebx
call fcn.14004ffc0
and esi, 3
cmp r15d, 4
jae 0x140051062
xor eax, eax
jmp 0x14005109c
sub r15, rsi
lea rcx, [rdi + r13]
add rcx, 3
xor eax, eax
nop
movzx edx, byte [rsp + rax + 0x20]
xor byte [rcx + rax - 3], dl
movzx edx, byte [rsp + rax + 0x21]
xor byte [rcx + rax - 2], dl
movzx edx, byte [rsp + rax + 0x22]
xor byte [rcx + rax - 1], dl
movzx edx, byte [rsp + rax + 0x23]
xor byte [rcx + rax], dl
add rax, 4
cmp r15, rax
jne 0x140051070
test rsi, rsi
je 0x1400510bf
add r13, rax
add rdi, r13
add rax, rsp
add rax, 0x20
xor ecx, ecx
movzx edx, byte [rax + rcx]
xor byte [rdi + rcx], dl
inc rcx
cmp rsi, rcx
jne 0x1400510b0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400556d0
nop
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400516a0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov rdx, qword [rcx]
movzx r8d, byte [rdx]
mov r9d, r8d
and r9d, 0xf
and r8d, 0xfffffff0
lea rax, str.cw
add r8, rax
movzx r8d, byte [r9 + r8]
mov byte [rdx], r8b
mov rdx, qword [rcx]
movzx r8d, byte [rdx + 1]
mov r9d, r8d
and r9d, 0xf
and r8d, 0xfffffff0
add r8, rax
movzx r8d, byte [r9 + r8]
mov byte [rdx + 1], r8b
mov rdx, qword [rcx]
movzx r8d, byte [rdx + 2]
mov r9d, r8d
and r9d, 0xf
and r8d, 0xfffffff0
add r8, rax
movzx r8d, byte [r9 + r8]
mov byte [rdx + 2], r8b
mov rdx, qword [rcx]
movzx r8d, byte [rdx + 3]
mov r9d, r8d
and r9d, 0xf
and r8d, 0xfffffff0
add r8, rax
movzx r8d, byte [r9 + r8]
mov byte [rdx + 3], r8b
mov rdx, qword [rcx + 8]
movzx r8d, byte [rdx]
mov r9d, r8d
and r9d, 0xf
and r8d, 0xfffffff0
add r8, rax
movzx r8d, byte [r9 + r8]
mov byte [rdx], r8b
mov rdx, qword [rcx + 8]
movzx r8d, byte [rdx + 1]
mov r9d, r8d
and r9d, 0xf
and r8d, 0xfffffff0
add r8, rax
movzx r8d, byte [r9 + r8]
mov byte [rdx + 1], r8b
mov rdx, qword [rcx + 8]
movzx r8d, byte [rdx + 2]
mov r9d, r8d
and r9d, 0xf
and r8d, 0xfffffff0
add r8, rax
movzx r8d, byte [r9 + r8]
mov byte [rdx + 2], r8b
mov rdx, qword [rcx + 8]
movzx r8d, byte [rdx + 3]
mov r9d, r8d
and r9d, 0xf
and r8d, 0xfffffff0
add r8, rax
movzx r8d, byte [r9 + r8]
mov byte [rdx + 3], r8b
mov rdx, qword [rcx + 0x10]
movzx r8d, byte [rdx]
mov r9d, r8d
and r9d, 0xf
and r8d, 0xfffffff0
add r8, rax
movzx r8d, byte [r9 + r8]
mov byte [rdx], r8b
mov rdx, qword [rcx + 0x10]
movzx r8d, byte [rdx + 1]
mov r9d, r8d
and r9d, 0xf
and r8d, 0xfffffff0
add r8, rax
movzx r8d, byte [r9 + r8]
mov byte [rdx + 1], r8b
mov rdx, qword [rcx + 0x10]
movzx r8d, byte [rdx + 2]
mov r9d, r8d
and r9d, 0xf
and r8d, 0xfffffff0
add r8, rax
movzx r8d, byte [r9 + r8]
mov byte [rdx + 2], r8b
mov rdx, qword [rcx + 0x10]
movzx r8d, byte [rdx + 3]
mov r9d, r8d
and r9d, 0xf
and r8d, 0xfffffff0
add r8, rax
movzx r8d, byte [r9 + r8]
mov byte [rdx + 3], r8b
mov rdx, qword [rcx + 0x18]
movzx r8d, byte [rdx]
mov r9d, r8d
and r9d, 0xf
and r8d, 0xfffffff0
add r8, rax
movzx r8d, byte [r9 + r8]
mov byte [rdx], r8b
mov rdx, qword [rcx + 0x18]
movzx r8d, byte [rdx + 1]
mov r9d, r8d
and r9d, 0xf
and r8d, 0xfffffff0
add r8, rax
movzx r8d, byte [r9 + r8]
mov byte [rdx + 1], r8b
mov rdx, qword [rcx + 0x18]
movzx r8d, byte [rdx + 2]
mov r9d, r8d
and r9d, 0xf
and r8d, 0xfffffff0
add r8, rax
movzx r8d, byte [r9 + r8]
mov byte [rdx + 2], r8b
mov rcx, qword [rcx + 0x18]
movzx edx, byte [rcx + 3]
mov r8d, edx
and r8d, 0xf
and edx, 0xfffffff0
add rdx, rax
movzx eax, byte [r8 + rdx]
mov byte [rcx + 3], al
ret
Function at 0x1400519a0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov rdx, qword [rcx]
movzx r8d, byte [rdx]
mov r9d, r8d
and r9d, 0xf
and r8d, 0xfffffff0
lea rax, [0x14005d950]
add r8, rax
movzx r8d, byte [r9 + r8]
mov byte [rdx], r8b
mov rdx, qword [rcx]
movzx r8d, byte [rdx + 1]
mov r9d, r8d
and r9d, 0xf
and r8d, 0xfffffff0
add r8, rax
movzx r8d, byte [r9 + r8]
mov byte [rdx + 1], r8b
mov rdx, qword [rcx]
movzx r8d, byte [rdx + 2]
mov r9d, r8d
and r9d, 0xf
and r8d, 0xfffffff0
add r8, rax
movzx r8d, byte [r9 + r8]
mov byte [rdx + 2], r8b
mov rdx, qword [rcx]
movzx r8d, byte [rdx + 3]
mov r9d, r8d
and r9d, 0xf
and r8d, 0xfffffff0
add r8, rax
movzx r8d, byte [r9 + r8]
mov byte [rdx + 3], r8b
mov rdx, qword [rcx + 8]
movzx r8d, byte [rdx]
mov r9d, r8d
and r9d, 0xf
and r8d, 0xfffffff0
add r8, rax
movzx r8d, byte [r9 + r8]
mov byte [rdx], r8b
mov rdx, qword [rcx + 8]
movzx r8d, byte [rdx + 1]
mov r9d, r8d
and r9d, 0xf
and r8d, 0xfffffff0
add r8, rax
movzx r8d, byte [r9 + r8]
mov byte [rdx + 1], r8b
mov rdx, qword [rcx + 8]
movzx r8d, byte [rdx + 2]
mov r9d, r8d
and r9d, 0xf
and r8d, 0xfffffff0
add r8, rax
movzx r8d, byte [r9 + r8]
mov byte [rdx + 2], r8b
mov rdx, qword [rcx + 8]
movzx r8d, byte [rdx + 3]
mov r9d, r8d
and r9d, 0xf
and r8d, 0xfffffff0
add r8, rax
movzx r8d, byte [r9 + r8]
mov byte [rdx + 3], r8b
mov rdx, qword [rcx + 0x10]
movzx r8d, byte [rdx]
mov r9d, r8d
and r9d, 0xf
and r8d, 0xfffffff0
add r8, rax
movzx r8d, byte [r9 + r8]
mov byte [rdx], r8b
mov rdx, qword [rcx + 0x10]
movzx r8d, byte [rdx + 1]
mov r9d, r8d
and r9d, 0xf
and r8d, 0xfffffff0
add r8, rax
movzx r8d, byte [r9 + r8]
mov byte [rdx + 1], r8b
mov rdx, qword [rcx + 0x10]
movzx r8d, byte [rdx + 2]
mov r9d, r8d
and r9d, 0xf
and r8d, 0xfffffff0
add r8, rax
movzx r8d, byte [r9 + r8]
mov byte [rdx + 2], r8b
mov rdx, qword [rcx + 0x10]
movzx r8d, byte [rdx + 3]
mov r9d, r8d
and r9d, 0xf
and r8d, 0xfffffff0
add r8, rax
movzx r8d, byte [r9 + r8]
mov byte [rdx + 3], r8b
mov rdx, qword [rcx + 0x18]
movzx r8d, byte [rdx]
mov r9d, r8d
and r9d, 0xf
and r8d, 0xfffffff0
add r8, rax
movzx r8d, byte [r9 + r8]
mov byte [rdx], r8b
mov rdx, qword [rcx + 0x18]
movzx r8d, byte [rdx + 1]
mov r9d, r8d
and r9d, 0xf
and r8d, 0xfffffff0
add r8, rax
movzx r8d, byte [r9 + r8]
mov byte [rdx + 1], r8b
mov rdx, qword [rcx + 0x18]
movzx r8d, byte [rdx + 2]
mov r9d, r8d
and r9d, 0xf
and r8d, 0xfffffff0
add r8, rax
movzx r8d, byte [r9 + r8]
mov byte [rdx + 2], r8b
mov rcx, qword [rcx + 0x18]
movzx edx, byte [rcx + 3]
mov r8d, edx
and r8d, 0xf
and edx, 0xfffffff0
add rdx, rax
movzx eax, byte [r8 + rdx]
mov byte [rcx + 3], al
ret
Function at 0x140051ba0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov rax, qword [0x1400c0e18]
xor rax, rsp
mov qword [rsp + 0x90], rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x80], xmm0
mov rax, qword [rcx + 0x10]
movzx edx, byte [rax]
mov qword [rsp + 0x78], rdx
movzx edx, byte [rax + 1]
mov qword [rsp + 0x70], rdx
movzx edx, byte [rax + 2]
mov qword [rsp + 0x68], rdx
movzx eax, byte [rax + 3]
mov qword [rsp + 0x60], rax
mov rax, qword [rcx]
mov rdx, qword [rcx + 8]
movzx r8d, byte [rdx]
mov qword [rsp + 0x58], r8
movzx r8d, byte [rdx + 1]
mov qword [rsp + 0x50], r8
movzx r8d, byte [rdx + 2]
mov qword [rsp + 0x48], r8
movzx edx, byte [rdx + 3]
mov qword [rsp + 0x40], rdx
movzx edx, byte [rax]
mov qword [rsp + 0x38], rdx
movzx edx, byte [rax + 1]
mov qword [rsp + 0x30], rdx
movzx r15d, byte [rax + 2]
movzx r12d, byte [rax + 3]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rcx + 0x18]
movzx r13d, byte [rcx]
movzx ebp, byte [rcx + 1]
movzx eax, byte [rcx + 2]
movzx ecx, byte [rcx + 3]
mov edx, 3
lea r8, [0x14005da50]
lea r9, [0x14005ca50]
nop dword [rax + rax]
movzx ebx, byte [rdx + r8 - 3]
shl rbx, 8
add rbx, r9
movzx r10d, byte [rsp + rdx + 0x7d]
movzx r11d, byte [rsp + rdx + 0x7e]
mov rsi, qword [rsp + 0x38]
xor r10b, byte [rsi + rbx]
mov rsi, qword [rsp + 0x30]
xor r11b, byte [rsi + rbx]
movzx esi, byte [rsp + rdx + 0x7f]
xor sil, byte [r15 + rbx]
movzx edi, byte [rsp + rdx + 0x80]
xor dil, byte [r12 + rbx]
movzx ebx, byte [rdx + r8 - 2]
shl rbx, 8
add rbx, r9
mov r14, qword [rsp + 0x58]
xor r10b, byte [r14 + rbx]
mov r14, qword [rsp + 0x50]
xor r11b, byte [r14 + rbx]
mov r14, qword [rsp + 0x48]
xor sil, byte [r14 + rbx]
mov r14, qword [rsp + 0x40]
xor dil, byte [r14 + rbx]
movzx ebx, byte [rdx + r8 - 1]
shl rbx, 8
add rbx, r9
mov r14, qword [rsp + 0x78]
xor r10b, byte [r14 + rbx]
mov r14, qword [rsp + 0x70]
xor r11b, byte [r14 + rbx]
mov r14, qword [rsp + 0x68]
xor sil, byte [r14 + rbx]
mov r14, qword [rsp + 0x60]
xor dil, byte [r14 + rbx]
movzx ebx, byte [rdx + r8]
shl rbx, 8
add rbx, r9
xor r10b, byte [r13 + rbx]
xor r11b, byte [rbp + rbx]
xor sil, byte [rax + rbx]
xor dil, byte [rcx + rbx]
mov byte [rsp + rdx + 0x7d], r10b
mov byte [rsp + rdx + 0x7e], r11b
mov byte [rsp + rdx + 0x7f], sil
mov byte [rsp + rdx + 0x80], dil
add rdx, 4
cmp rdx, 0x13
jne 0x140051c70
mov rdx, qword [rsp + 0x28]
mov rax, qword [rdx]
mov ecx, dword [rsp + 0x80]
mov dword [rax], ecx
mov rax, qword [rdx + 8]
mov ecx, dword [rsp + 0x84]
mov dword [rax], ecx
mov rax, qword [rdx + 0x10]
mov ecx, dword [rsp + 0x88]
mov dword [rax], ecx
mov rax, qword [rdx + 0x18]
mov ecx, dword [rsp + 0x8c]
mov dword [rax], ecx
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400556d0
nop
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140052ce0
Capabilities:
Read file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1400c0e18]
xor rax, rsp
mov qword [rsp + 0x30], rax
movzx r14d, word [rcx + 8]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
mov rcx, qword [rdi + 0x18]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x2c]
mov rdx, rax
mov r8d, r14d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140052d48
mov edi, dword [rsp + 0x2c]
test rbx, rbx
je 0x140052d66
mov rcx, rbx
mov rdx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
jmp 0x140052d6f
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
test rbx, rbx
je 0x140052da2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140052da2
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rdi, rdi
je 0x140052d94
cmp byte [rbx], 0
mov r14, rdi
jne 0x140052d97
lea rdx, [rbx + 1]
lea r14, [rdi - 1]
mov rcx, rbx
mov r8, r14
call sub.VCRUNTIME140.dll_memmove
jmp 0x140052d97
xor r14d, r14d
mov qword [rsi], rbx
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], rdi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400556d0
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14005626c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400562f0
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14005c230]
cmp byte [rcx + rax], 0
je 0x1400562f0
dec r8
sub rdx, 1
jne 0x1400562d6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140056e10
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140056e5a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140056e5a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140056e5a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140056e5a
cmp dword [rcx + 0x84], 0xe
jbe 0x140056e5a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140056e5c
xor al, al
add rsp, 0x28
ret
Function at 0x140003fb3
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
cmp qword [rbp + 0x18], 0
je 0x140003fe3
mov rax, qword [rbp + 0x18]
mov rcx, rax
call fcn.140003f75
mov rcx, rax
jmp 0x140003fe8
mov ecx, 0
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov r9, rdx
mov r8, rcx
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sub.msvcrt.dll_fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14000dcb0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140013cf0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140013cf0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x14000dd20
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400231a4]
mov rbx, rcx
test esi, esi
jle 0x14000de50
mov rax, qword [0x1400231a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000dd6b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000ddf5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000dd50
mov rcx, rbx
call fcn.14000e770
mov rdi, rax
test rax, rax
je 0x14000de72
mov rax, qword [0x1400231a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000e8b0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400231a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000de57
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000ddee
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000de00
add dword [0x1400231a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
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 [0x1400231a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000ddee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000dcb0
nop dword [rax]
xor esi, esi
jmp 0x14000dd78
mov rax, qword [0x1400231a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000dcb0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000dcb0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x14000e3e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140023200]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400231e0]
test rbx, rbx
je 0x14000e43c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14000e433
test rsi, rsi
je 0x14000e433
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000e418
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14000e770
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14001caf0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000e790
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000e798
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000e790
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000e7ed
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000e7e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000e790
add rax, 0x28
cmp rax, r9
jne 0x14000e7d0
xor eax, eax
ret

Function at 0x14000e7f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001caf0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000e80f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000e818
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000e80f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14000e8b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001caf0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000e8cf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000e8d8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret