joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5d0760
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
movd xmm0, dword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
movdqu xmm1, xmmword [rsi]
movdqu xmm2, xmmword [rsi + 0x10]
movdqu xmm3, xmmword [rsi + 0x20]
movdqu xmm4, xmmword [rsi + 0x30]
pxor xmm1, xmm0
add rsi, 0x40
sub rcx, 0x40
cmp rcx, 0x40
jb 0x5d0835
movdqa xmm0, xmmword [0x0070b270]
movdqa xmm5, xmm1
movdqa xmm6, xmm2
movdqa xmm7, xmm3
movdqa xmm8, xmm4
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm2, xmm0, 0
pclmulqdq xmm3, xmm0, 0
pclmulqdq xmm4, xmm0, 0
movdqu xmm11, xmmword [rsi]
movdqu xmm12, xmmword [rsi + 0x10]
movdqu xmm13, xmmword [rsi + 0x20]
movdqu xmm14, xmmword [rsi + 0x30]
pclmulqdq xmm5, xmm0, 0x11
pclmulqdq xmm6, xmm0, 0x11
pclmulqdq xmm7, xmm0, 0x11
pclmulqdq xmm8, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm2, xmm6
pxor xmm3, xmm7
pxor xmm4, xmm8
pxor xmm1, xmm11
pxor xmm2, xmm12
pxor xmm3, xmm13
pxor xmm4, xmm14
add rdi, 0x40
add rsi, 0x40
sub rcx, 0x40
cmp rcx, 0x40
jge 0x5d07a1
movdqa xmm0, xmmword [0x0070b280]
movdqa xmm5, xmm1
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm5, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm1, xmm2
movdqa xmm5, xmm1
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm5, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm1, xmm3
movdqa xmm5, xmm1
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm5, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm1, xmm4
cmp rcx, 0x10
jb 0x5d08b7
movdqu xmm10, xmmword [rsi]
movdqa xmm5, xmm1
pclmulqdq xmm1, xmm0, 0
pclmulqdq xmm5, xmm0, 0x11
pxor xmm1, xmm5
pxor xmm1, xmm10
sub rcx, 0x10
add rsi, 0x10
cmp rcx, 0x10
jge 0x5d088b
pcmpeqb xmm3, xmm3
pclmulqdq xmm0, xmm1, 1
psrldq xmm1, 8
pxor xmm1, xmm0
movdqa xmm2, xmm1
movq xmm0, qword [0x0070af68]
psrlq xmm3, 0x20
psrldq xmm2, 4
pand xmm1, xmm3
pclmulqdq xmm1, xmm0, 0
pxor xmm1, xmm2
movdqa xmm0, xmmword [0x0070b290]
movdqa xmm2, xmm1
pand xmm1, xmm3
pclmulqdq xmm1, xmm0, 0x10
pand xmm1, xmm3
pclmulqdq xmm1, xmm0, 0
pxor xmm1, xmm2
pextrd eax, xmm1, 1
mov dword [rsp + 0x28], eax
ret
Function at 0x5dd3c0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x5dd55b
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rsp + 0x80], rax
xor ecx, ecx
jmp 0x5dd3e1
inc rcx
cmp rbx, rcx
jle 0x5dd551
movzx edx, byte [rax + rcx]
cmp dl, 0x80
jb 0x5dd3de
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x80], rax
call fcn.00554c40
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x48], rdi
mov rdx, qword [0x0088ac10]
test rsi, rsi
mov r8, qword [rsp + 0x88]
cmovne rbx, r8
mov r8, qword [rsp + 0x80]
cmovne rax, r8
mov r8, rax
mov rax, rdx
mov r9, rbx
mov rbx, r8
mov rcx, r9
mov edi, 1
call fcn.005d9700
mov rdx, qword [rsp + 0x58]
test rdx, rdx
mov rdx, qword [rsp + 0x48]
mov esi, 0
cmovne rdx, rsi
mov r8, qword [rsp + 0x60]
mov r9d, 0
cmovne r8, r9
nop word [rax + rax]
test rcx, rcx
jne 0x5dd545
test rdx, rdx
je 0x5dd53a
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x68], rax
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0x3a
call fcn.00403de0
xorps xmm15, xmm15
mov r14, qword [0x008eb268]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0
jl 0x5dd509
xor eax, eax
lea rbx, [0x0069565c]
mov ecx, 1
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x50]
lea r8, [0x00695675]
mov r9d, 2
mov r10, qword [rsp + 0x60]
mov r11, qword [rsp + 0x48]
call fcn.0044faa0
jmp 0x5dd530
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
lea rdi, [0x00709998]
mov esi, 1
mov r8, qword [rsp + 0x60]
mov r9, qword [rsp + 0x48]
call fcn.0044f9e0
xor ecx, ecx
xor edi, edi
add rsp, 0x70
pop rbp
ret
xor ecx, ecx
mov rdi, r9
add rsp, 0x70
pop rbp
ret
mov rax, r9
mov rbx, rsi
add rsp, 0x70
pop rbp
ret
xor ecx, ecx
xor edi, edi
add rsp, 0x70
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00464aa0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.005dd3c0
Function at 0x61b6e0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x61b7e2
push rbp
mov rbp, rsp
sub rsp, 0x68
mov qword [rsp + 0x78], rax
mov rcx, qword [rax + 0x28]
mov rbx, qword [rax + 0x30]
nop
mov rax, rcx
call fcn.005689e0
test rdi, rdi
jne 0x61b733
mov rbx, qword [0x00895d48]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rdx]
mov rdi, qword [rdx + 8]
lea rax, [0x006510e0]
call fcn.00412480
mov rdi, qword [rax + 8]
mov rcx, qword [rax]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x48], rdi
mov rax, qword [rsp + 0x78]
call fcn.0061b680
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x50], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0x3a
nop
call fcn.00403de0
xorps xmm15, xmm15
mov r14, qword [0x008eb268]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0
jl 0x61b7b5
xor eax, eax
lea rbx, [0x0069565c]
mov ecx, 1
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x50]
lea r8, [0x00695675]
mov r9d, 2
mov r10, qword [rsp + 0x58]
mov r11, qword [rsp + 0x48]
call fcn.0044faa0
jmp 0x61b7dc
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
lea rdi, [0x00709998]
mov esi, 1
mov r8, qword [rsp + 0x58]
mov r9, qword [rsp + 0x48]
call fcn.0044f9e0
add rsp, 0x68
pop rbp
ret
mov qword [rsp + 8], rax
call fcn.00464aa0
mov rax, qword [rsp + 8]
jmp fcn.0061b6e0
Function at 0x14013201a
Capabilities:
Execute anti-debugging instructions

Disassembly:
out dx, al
fsub st(0), st(0)
pop rdi
idiv bh
dec dword [rcx + rcx*4 + 0x4c]
and al, 0x40
pause
jb 0x140130bf6
pause
rol r10d, 0xcf
jmp 0x14013203b
add byte [rax], al
ror r9d, 0x4f
cpuid
test r15, rcx
call rcx
call rcx
and ebp, 0xb5760508
and r13d, 0xc473bffd
jmp 0x140132355
lea r10d, [rbx + 0xbdd5]
jne 0x140131cf6
cmp r15d, 0xf727dc69
lea r10d, [rbp + 0x798]
lea edi, [rbx - 0xfd0a]
lea r12d, [rcx - 0x4c4c]
popf
cmp r8d, 0x2a4cbce
jmp 0x140132004

Function at 0x140133cb7
Capabilities:
Access peb ldr_data
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
jl 0x140133d35
jns 0x140133c81
and al, 0x34
mul byte [rsi - 0x39]
and al, 0x3a
jl 0x140133cc6
add byte [rax], al
Function at 0x216512160
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rdi, qword [fcn.216589340]
xor ebx, ebx
mov rbp, rcx
mov rsi, rdx
test rdx, rdx
jle 0x2165121a3
nop
mov r12, qword [rbp + rbx*8]
mov ecx, 1
add rbx, 1
call rdi
xor r8d, r8d
mov rcx, rax
mov rdx, r12
call fcn.216512030
cmp rsi, rbx
jne 0x216512180
mov ecx, 1
call rdi
mov r8d, 1
mov edx, 1
lea rcx, [0x21658b13c]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rdi
mov rcx, rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.216588c28

Function at 0x216512250
Capabilities:
Write file on windows

Disassembly:
push r12
sub rsp, 0x20
xor r8d, r8d
mov r12, rcx
mov rcx, rdx
test rdx, rdx
je 0x21651227b
cmp byte [rdx], 0
je 0x21651227b
nop dword [rax]
add r8, 1
cmp byte [rcx + r8], 0
jne 0x216512270
mov r9, r12
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, r12
add rsp, 0x20
pop r12
jmp fcn.216588c28
Function at 0x21651f780
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov r9, rcx
test rcx, rcx
je 0x21651f7f2
mov rcx, qword [0x21769d840]
mov r8, qword [0x21769d848]
cmp r9, 0xffffffffffffffff
je 0x21651f800
mov rax, 0xffffffffffffffff
xor edx, edx
div r9
not rdx
nop
lea rax, [rcx + r8]
xor r8, rcx
ror rcx, 9
mov r10, r8
xor rcx, r8
ror r8, 0x1c
shl r10, 0xe
xor rcx, r10
cmp rax, rdx
ja 0x21651f7b0
add r9, 1
movq xmm1, r8
movq xmm0, rcx
xor edx, edx
div r9
punpcklqdq xmm0, xmm1
movups xmmword [0x21769d840], xmm0
mov r8, rdx
mov rax, r8
ret
mov rax, rcx
mov rdx, rcx
xor rax, r8
ror rdx, 9
add r8, rcx
mov r9, rax
xor rdx, rax
ror rax, 0x1c
shl r9, 0xe
mov qword [0x21769d848], rax
mov rax, r8
xor rdx, r9
mov qword [0x21769d840], rdx
ret
Function at 0x21651f890
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov r12, rcx
lea rcx, [0x217693380]
mov rdi, rdx
call fcn.216515ff0
mov rcx, r12
mov rbx, rax
call fcn.216515ff0
mov qword [rsp + 0x28], rax
test rax, rax
je 0x21651fa6e
mov r12, qword [rax]
test r12, r12
jle 0x21651fa6e
lea r14, [rax + 0x10]
lea rbp, [0x217693380]
add r12, r14
nop dword [rax]
lea r13, [0x217693360]
mov rsi, qword [r13]
test rbx, rbx
je 0x21651fa88
mov rax, qword [rbx]
lea rcx, [rax + 1]
call fcn.2165161e0
mov rcx, qword [rbx]
lea r10, [rbx + 0x10]
mov r8, rax
mov rax, qword [rax]
lea r9, [rcx + 1]
lea rdx, [r8 + rax + 0x10]
test r9, r9
jle 0x21651fa2f
lea r11, [rbx + 0x11]
mov rax, rdx
sub rax, r11
cmp rax, 0xe
jbe 0x21651faa0
cmp rcx, 6
jbe 0x21651faa0
cmp rcx, 0xe
jbe 0x21651fac3
mov r11, r9
xor eax, eax
and r11, 0xfffffffffffffff0
nop dword [rax + rax]
movdqu xmm0, xmmword [rbx + rax + 0x10]
movups xmmword [rdx + rax], xmm0
add rax, 0x10
cmp rax, r11
jne 0x21651f960
mov r11, r9
and r11, 0xfffffffffffffff0
mov rax, r11
cmp r9, r11
je 0x21651fa29
mov r15, rcx
sub r15, r11
lea r9, [r15 + 1]
cmp r15, 6
jbe 0x21651f9ad
mov r15, qword [r10 + r11]
mov qword [rdx + r11], r15
mov r11, r9
and r11, 0xfffffffffffffff8
add rax, r11
cmp r11, r9
je 0x21651fa29
movzx r9d, byte [r10 + rax]
mov byte [rdx + rax], r9b
lea r9, [rax + 1]
cmp rcx, rax
jle 0x21651fa29
movzx r11d, byte [r10 + rax + 1]
mov byte [rax + rdx + 1], r11b
lea r11, [rax + 2]
cmp rcx, r9
jle 0x21651fa29
movzx r9d, byte [r10 + rax + 2]
mov byte [rax + rdx + 2], r9b
lea r9, [rax + 3]
cmp rcx, r11
jle 0x21651fa29
movzx r11d, byte [r10 + rax + 3]
mov byte [rax + rdx + 3], r11b
lea r11, [rax + 4]
cmp rcx, r9
jle 0x21651fa29
movzx r9d, byte [r10 + rax + 4]
mov byte [rax + rdx + 4], r9b
lea r9, [rax + 5]
cmp rcx, r11
jle 0x21651fa29
movzx r11d, byte [r10 + rax + 5]
mov byte [rax + rdx + 5], r11b
cmp rcx, r9
jle 0x21651fa29
movzx ecx, byte [r10 + rax + 6]
mov byte [rax + rdx + 6], cl
mov rax, qword [r8]
mov rcx, qword [rbx]
add rax, rcx
mov rbx, r8
mov qword [r8], rax
mov edx, 0x20
mov ecx, esi
add r13, 8
mov word [rbx + rax + 0x10], dx
mov rax, rdi
sar rax, cl
add qword [rbx], 1
and eax, 0xffffffee
xor byte [r14], al
cmp r13, rbp
jne 0x21651f8ef
add r14, 1
cmp r12, r14
jne 0x21651f8e8
mov rax, qword [rsp + 0x28]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 1
call fcn.2165161e0
mov rbx, rax
mov rax, qword [rax]
jmp 0x21651fa38
xor eax, eax
nop word [rax + rax]
movzx r10d, byte [rbx + rax + 0x10]
mov r9, rax
mov byte [rdx + rax], r10b
add rax, 1
cmp rcx, r9
jne 0x21651faa8
jmp 0x21651fa29
xor r11d, r11d
xor eax, eax
jmp 0x21651f996
Function at 0x2165203e0
Capabilities:
Access peb ldr_data

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
lea rsi, [0x216602740]
mov r12, rcx
mov ebp, edx
lea rcx, [0x216602780]
mov edx, 0x3a38db06
call fcn.21651f890
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov r13, qword [rax + 0x20]
lea rdi, [rax + 0x20]
movzx eax, word [r12]
mov rdx, r12
test ax, ax
je 0x216520450
nop dword [rax]
lea ecx, [rax - 0x41]
cmp cx, 0x19
ja 0x216520590
add eax, 0x20
add rdx, 2
mov word [rdx - 2], ax
movzx eax, word [rdx]
test ax, ax
jne 0x216520430
mov r10, qword [r13 + 0x50]
movzx ebx, word [r10]
test bx, bx
je 0x2165205b2
mov rax, r10
nop dword [rax]
lea edx, [rbx - 0x41]
cmp dx, 0x19
ja 0x2165205c0
add ebx, 0x20
add rax, 2
mov word [rax - 2], bx
movzx ebx, word [rax]
test bx, bx
jne 0x216520468
movzx r14d, word [r12]
movzx ebx, word [r10]
test r14w, r14w
je 0x2165204e3
mov eax, r14d
xor ecx, ecx
nop dword [rax]
movzx edx, word [r10 + rcx]
test dx, dx
je 0x2165204e3
lea r9d, [rax - 0x41]
lea r8d, [rax + 0x20]
cmp r9w, 0x1a
lea r9d, [rdx - 0x41]
cmovb eax, r8d
lea r8d, [rdx + 0x20]
cmp r9w, 0x1a
cmovb edx, r8d
cmp ax, dx
jne 0x2165205e0
add rcx, 2
movzx eax, word [r12 + rcx]
test ax, ax
jne 0x2165204a0
mov edx, 0x17abdc06
mov rcx, rsi
call fcn.21651f890
cmp r14w, bx
je 0x2165205f2
mov r13, qword [r13]
cmp rdi, r13
jne 0x216520420
test ebp, ebp
je 0x216520605
lea rbx, [rsp + 0x30]
mov edx, 0x28640146
lea rcx, [0x216602620]
call fcn.21651f890
mov rdx, r12
mov rcx, rbx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x28], 0
call qword [0x21769da10]
mov r8, rbx
lea r9, [rsp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [0x21769d9e8]
mov edx, 0x5b6e0122
lea rcx, [0x2166025e0]
mov ebx, eax
call fcn.21651f890
test ebx, ebx
mov eax, 0
cmove rax, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
movzx eax, word [rdx + 2]
add rdx, 2
test ax, ax
jne 0x216520430
mov r10, qword [r13 + 0x50]
movzx ebx, word [r10]
test bx, bx
jne 0x216520461
movzx r14d, word [r12]
jmp 0x2165204e3
movzx ebx, word [rax + 2]
add rax, 2
test bx, bx
jne 0x216520468
jmp 0x216520488
mov edx, 0x17abdc06
mov rcx, rsi
call fcn.21651f890
jmp 0x2165204fa
mov rax, qword [r13 + 0x20]
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov edx, 0x498b5d62
lea rcx, [0x216602700]
call fcn.21651f890
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x216583420
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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.216589340
mov r8d, 0x1b
mov edx, 1
lea rcx, [0x2176934e0]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.216589340
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x216583490
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x21769dff4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x216583640
mov rax, qword [0x21769dff8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x2165834dc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x216583567
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x2165834c0
mov rcx, r12
call fcn.216583d30
mov rbp, rax
test rax, rax
je 0x21658369d
mov rax, qword [0x21769dff8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.216583e60
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x21769dff8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x216583682
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x216583560
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x2165835f0
add dword [0x21769dff4], 1
cmp ebx, 8
jae 0x216583598
test bl, 4
jne 0x216583650
test ebx, ebx
je 0x216583589
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x216583670
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x216583589
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x2165835ca
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x21769dff8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x216583560
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x217693558]
mov edx, eax
call fcn.216583420
xor edi, edi
jmp 0x2165834e7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x216583589
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x216583589
mov rax, qword [0x21769dff8]
mov edx, dword [rbp + 8]
lea rcx, [0x217693520]
mov r8, qword [rax + rdi + 0x18]
call fcn.216583420
mov rdx, r12
lea rcx, [0x217693500]
call fcn.216583420
nop
nop dword [rax]
Function at 0x2165839a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x21769e020]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x21769e000]
test rbx, rbx
je 0x2165839f4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x2165839eb
test r12, r12
je 0x2165839eb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x2165839d0
lea rcx, [0x21769e020]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x216583d30
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x217693d20]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x216583da9
mov rcx, r10
call fcn.216583c00
test eax, eax
je 0x216583da9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x216583da6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x216583d9d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x216583da9
add r8, 0x28
cmp r8, r9
jne 0x216583d88
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x140001073
Capabilities:
Parse pe header

Disassembly:
jmp 0x14004d7e8
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14004d5b3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004d5b3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004d5b3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004d5b3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004d5b3
cmp dword [rcx + 0x84], 0xe
jbe 0x14004d5b3
cmp dword [rcx + 0xf8], 0
je 0x14004d5b3
mov ecx, ebx
call fcn.14004d744
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14004d2c4
cmp dword [rbp + 0x20], 0
je 0x14004d600
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14004d638
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14004d54c

Function at 0x140001127
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140061b00
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x140087ef8]
mov ecx, 5
lea r8, [0x140087ef0]
lea rdx, str.FlsGetValue
call fcn.1400610f8
mov ecx, ebx
test rax, rax
je 0x140061b3a
add rsp, 0x20
pop rbx
jmp qword [case.0x14001ab2e.0]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x140001285
Capabilities:
Check if file exists

Disassembly:
jmp 0x140015ea0
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x30
mov rbx, rcx
xor ebp, ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x1400160ce
xor edx, edx
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], dx
jne 0x140015ed0
test rax, rax
je 0x140015f04
xor ecx, ecx
movzx r8d, word [rbx + rcx*2]
cmp r8w, 0x5c
je 0x1400160ce
cmp r8w, 0x2f
je 0x1400160ce
inc edx
mov ecx, edx
cmp rcx, rax
jb 0x140015ee0
mov qword [rsp + 0x40], rsi
mov rcx, rbx
mov qword [rsp + 0x48], rdi
call fcn.140001852
mov rsi, rax
test rax, rax
je 0x140015ffe
mov qword [rsp + 0x50], r14
call fcn.140001988
mov r14, rax
test rax, rax
je 0x140015feb
mov rcx, rsi
call fcn.140010370
test eax, eax
je 0x140015fd4
lea rax, str.system32_
mov qword [rsp + 0x20], rax
lea rdi, [rsp + 0x20]
lea rax, str.SystemRoot_system32_
mov qword [rsp + 0x28], rax
nop word [rax + rax]
mov rdx, qword [rdi]
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rdx + rbx*2], bp
jne 0x140015f80
mov r8, rbx
mov rcx, rsi
call fcn.1400021c6
test eax, eax
je 0x140015fa8
add rdi, 8
lea rax, [rsp + 0x30]
cmp rdi, rax
jb 0x140015f70
jmp 0x140015fb7
lea rdx, [rsi + rbx*2]
mov rcx, r14
call fcn.140014240
mov rbp, rax
lea rax, [rsp + 0x30]
cmp rdi, rax
jne 0x140015fe2
mov rcx, rsi
call fcn.140010300
test eax, eax
je 0x140015fe2
mov rbp, rsi
xor esi, esi
jmp 0x140015fe2
mov rdx, rsi
mov rcx, r14
call fcn.140014240
mov rbp, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r14, qword [rsp + 0x50]
jmp 0x14001609a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7e
jne 0x1400160a3
mov rcx, rbx
call fcn.1400101d0
mov rdi, rax
test rax, rax
je 0x1400160a3
mov ecx, 0x37e4
call fcn.140013b00
test eax, eax
je 0x140016038
xor ecx, ecx
call fcn.140001df7
jmp 0x14001603d
call fcn.140001988
mov rbx, rax
test rax, rax
je 0x140016091
mov rdx, rdi
mov rcx, rax
call fcn.140014240
mov rbp, rax
test rax, rax
je 0x140016088
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001606a
test al, 0x50
je 0x140016088
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14001607d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor ebp, ebp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbp, rbp
je 0x1400160a3
xor ecx, ecx
jmp 0x1400160b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400160b6
lea ecx, [rax + 0x7e]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsp + 0x48]
mov rax, rbp
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop rbp
ret
Function at 0x14000197e
Capabilities:
Terminate process

Disassembly:
jmp 0x14001b004
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x140001988
Capabilities:
Get common file path

Disassembly:
jmp 0x1400173c0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov ecx, 0x40
add rdx, rdx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140017422
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140017417
cmp edi, eax
jb 0x140017417
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret