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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rbx, rdx
lea r9, [rcx + 0xb0]
mov rsi, rcx
test r8d, r8d
je 0x140001e79
dec rdi
shr rdi, 4
inc rdi
nop dword [rax]
nop word [rax + rax]
mov rax, rbx
sub r9, rbx
mov edx, 0x10
nop dword [rax + rax]
movzx ecx, byte [r9 + rax]
xor byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x140001e50
mov rdx, rsi
mov rcx, rbx
call fcn.1400018e0
mov r9, rbx
add rbx, 0x10
sub rdi, 1
jne 0x140001e40
movups xmm0, xmmword [r9]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
movups xmmword [rsi + 0xb0], xmm0
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140001ea0
Capabilities:
Encode data using xor

Disassembly:
test r8d, r8d
je 0x140001f34
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
mov qword [rsp + 0x30], rdi
mov rbx, rdx
mov rdi, rcx
mov esi, r8d
sub rdi, rdx
mov rbp, rcx
add rdi, 0xb0
dec rsi
shr rsi, 4
inc rsi
nop dword [rax]
movups xmm0, xmmword [rbx]
mov rdx, rbp
mov rcx, rbx
call fcn.140001be0
mov ecx, 0x10
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdi + rbx]
xor byte [rbx], al
inc rbx
sub rcx, 1
jne 0x140001f00
sub rdi, 0x10
movups xmmword [rbp + 0xb0], xmm0
sub rsi, 1
jne 0x140001ee0
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
Function at 0x140003010
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x140003028
mov rcx, rax
jmp 0x140003059
mov ecx, 0x5a4d
cmp word [rax], cx
je 0x140003038
xor eax, eax
mov ecx, eax
jmp 0x140003059
movsxd rcx, dword [rax + 0x3c]
cmp ecx, 0x400
jle 0x14000304a
xor eax, eax
mov ecx, eax
jmp 0x140003059
add rcx, rax
xor eax, eax
cmp dword [rcx], 0x4550
cmovne rcx, rax
movzx r11d, word [rcx + 6]
lea rbx, [rcx + 0x108]
mov r10d, dword [rcx + 0x54]
mov edx, eax
cmp r11d, 8
jb 0x140003120
mov ecx, 0xfffffff8
mov r8d, r11d
and r8, rcx
xorps xmm5, xmm5
lea rcx, [rbx + 0x60]
xorps xmm4, xmm4
mov r9, rax
nop dword [rax]
movd xmm1, dword [rcx + 0x28]
add edx, 8
movd xmm0, dword [rcx - 0x28]
add r9, 8
movd xmm2, dword [rcx]
movd xmm3, dword [rcx - 0x50]
lea rcx, [rcx + 0x140]
punpckldq xmm3, xmm0
movd xmm0, dword [rcx - 0xc8]
punpckldq xmm2, xmm1
movd xmm1, dword [rcx - 0x78]
punpcklqdq xmm3, xmm2
movd xmm2, dword [rcx - 0xa0]
paddd xmm3, xmm5
punpckldq xmm2, xmm1
movdqa xmm5, xmm3
movd xmm3, dword [rcx - 0xf0]
punpckldq xmm3, xmm0
punpcklqdq xmm3, xmm2
paddd xmm3, xmm4
movdqa xmm4, xmm3
cmp r9, r8
jl 0x140003090
paddd xmm4, xmm5
movdqa xmm0, xmm4
psrldq xmm0, 8
paddd xmm4, xmm0
movdqa xmm0, xmm4
psrldq xmm0, 4
paddd xmm4, xmm0
movd ecx, xmm4
add r10d, ecx
movsxd r9, edx
mov r8d, eax
cmp r9, r11
jge 0x14000318a
mov rcx, r11
sub rcx, r9
cmp rcx, 2
jl 0x140003170
lea rcx, [r9*4 + 7]
add rcx, r9
lea rdx, [rbx + rcx*8]
mov rcx, r11
sub rcx, r9
sub rcx, 2
shr rcx, 1
inc rcx
lea r9, [r9 + rcx*2]
nop word [rax + rax]
add eax, dword [rdx - 0x28]
add r8d, dword [rdx]
lea rdx, [rdx + 0x50]
sub rcx, 1
jne 0x140003160
cmp r9, r11
jge 0x14000317e
lea rcx, [r9 + r9*4]
add r10d, dword [rbx + rcx*8 + 0x10]
add eax, r8d
add eax, r10d
add rsp, 0x20
pop rbx
ret
mov eax, r10d
add rsp, 0x20
pop rbx
ret
Function at 0x1400031a0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x170
mov rax, qword [0x14003c010]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov r14, rcx
lea rdx, [rsp + 0x50]
xor ecx, ecx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor ebp, ebp
mov qword [rsp + 0x30], rbp
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 4
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400031d6
mov qword [rsp + 0x198], rsi
mov qword [rsp + 0x1a0], rdi
test rax, rax
je 0x140003275
call fcn.140003010
movsxd rsi, eax
mov rcx, rsi
call fcn.14000f1dc
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], ebp
mov r8d, esi
mov qword [rsp + 0x20], rbp
mov rdx, rax
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140003264
mov rcx, rbx
mov dword [r14], esi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
jmp 0x140003277
mov rcx, rdi
call fcn.14000ef1c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rdi, qword [rsp + 0x1a0]
mov rsi, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140007a40
add rsp, 0x170
pop r14
pop rbp
pop rbx
ret
Function at 0x140010c2c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140010a58
Function at 0x140001610
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
movabs r8, 0x938babc9b5d9db1d
mov rdx, rcx
nop
mov rcx, rax
mov r9, r8
and ecx, 7
shl rcx, 3
shr r9, cl
xor byte [rdx + rax], r9b
add rax, 1
cmp rax, 0x16
jne 0x140001620
mov byte [rdx + 0x16], 0
ret

Function at 0x140001670
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
movabs r8, 0x4971799d23e9f97b
mov rdx, rcx
nop
mov rcx, rax
mov r9, r8
and ecx, 7
shl rcx, 3
shr r9, cl
xor word [rdx + rax*2], r9w
add rax, 1
cmp rax, 0x23
jne 0x140001680
mov byte [rdx + 0x46], 0
ret

Function at 0x140002390
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x70], xmm7
mov ebp, edx
mov r14, rcx
test ebp, ebp
je 0x1400024b5
lea rcx, [0x140015580]
xor ebx, ebx
movabs rsi, 0x1cdc31f65f3d5f1
call fcn.140007d60
lea rcx, [0x140015560]
mov r15, rax
call fcn.140007d60
movdqa xmm7, xmmword [0x1403b7220]
mov r12, rax
movdqa xmm6, xmmword [0x1403b7230]
lea rax, [0x14000d1b0]
mov qword [rsp + 0x28], rax
cmp byte [r15], 0
mov r13d, ebx
movaps xmmword [rsp + 0x30], xmm7
movzx edi, byte [r14 + rbx]
movaps xmmword [rsp + 0x40], xmm6
mov byte [rsp + 0x50], 0xf1
jne 0x140002468
mov rax, qword [rsp + 0x30]
mov byte [r12 + 0x21], 1
xor r8d, r8d
mov rdx, r12
mov rcx, qword [rsp + 0x28]
mov qword [r12], rax
mov rax, qword [rsp + 0x38]
mov qword [r12 + 8], rax
mov rax, qword [rsp + 0x40]
mov qword [r12 + 0x10], rax
mov rax, qword [rsp + 0x48]
mov qword [r12 + 0x18], rax
mov eax, 0xfffffff1
mov byte [r12 + 0x20], al
mov byte [r15], 1
call fcn.1400074a0
cmp byte [r12 + 0x21], 0
je 0x14000249c
xor eax, eax
nop word [rax + rax]
mov rcx, rax
mov rdx, rsi
and ecx, 7
shl rcx, 3
shr rdx, cl
xor byte [r12 + rax], dl
add rax, 1
cmp rax, 0x21
jne 0x140002478
mov byte [r12 + 0x21], 0
and r13d, 0x1f
xor dil, byte [r12 + r13]
mov byte [r14 + rbx], dil
add rbx, 1
cmp rbp, rbx
jne 0x140002400
movaps xmm6, xmmword [rsp + 0x60]
movaps xmm7, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400060c0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
xor edx, edx
test rcx, rcx
mov rbx, r8
je 0x1400060f4
cmp word [rcx], 0x5a4d
jne 0x1400060f4
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x1400060f4
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400060f4
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140006000
test eax, eax
jne 0x140006110
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140006070
test rax, rax
je 0x140006105
mov rcx, qword [rbx]
lea rdx, [rax + 0x10]
mov r9d, 8
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
call fcn.140006699
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret
Function at 0x140006330
Capabilities:
Access peb ldr_data
Encode data using xor
Get ntdll base address
Populate syswhispers2 syscall list
Resolve function by parsing pe exports

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
mov r10d, dword [0x1403b59a0]
test r10d, r10d
jne 0x14000650e
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx + 0x30]
test rax, rax
je 0x14000651e
xor r9d, r9d
nop dword [rax + rax]
mov rdx, rax
movsxd rax, dword [rax + 0x3c]
mov eax, dword [rdx + rax + 0x88]
test eax, eax
je 0x1400063af
lea r9, [rdx + rax]
mov eax, dword [r9 + 0xc]
add rax, rdx
mov r8d, dword [rax]
or r8d, 0x20202020
cmp r8d, 0x6c64746e
jne 0x1400063af
mov eax, dword [rax + 4]
or eax, 0x20202020
cmp eax, 0x6c642e6c
je 0x1400063c4
mov rcx, qword [rcx]
mov rax, qword [rcx + 0x30]
test rax, rax
jne 0x140006370
test r9, r9
je 0x14000651e
mov eax, dword [r9 + 0x18]
lea r13, [0x1403b59a4]
xor r11d, r11d
mov edi, dword [r9 + 0x24]
mov r12d, dword [r9 + 0x1c]
lea ecx, [rax - 1]
mov eax, dword [r9 + 0x20]
add rdi, rdx
lea rbx, [rdi + rcx*2]
add r12, rdx
add rax, rdx
lea rsi, [rax + rcx*4]
jmp 0x14000640c
lea rax, [rbx - 2]
sub rsi, 4
cmp rdi, rbx
je 0x140006490
mov rbx, rax
mov eax, dword [rsi]
add rax, rdx
cmp word [rax], 0x775a
jne 0x1400063f8
cmp byte [rax], 0
mov ecx, r11d
lea rbp, [r13 + rcx*8]
je 0x14000652b
cmp byte [rax + 1], 0
mov r8d, 0x1a8a81fe
mov ecx, 1
mov r9d, 1
je 0x14000645e
movzx ecx, word [rax + rcx]
mov r14d, r8d
add r9d, 1
ror r14d, 8
add ecx, r14d
xor r8d, ecx
mov ecx, r9d
cmp byte [rax + rcx], 0
jne 0x140006440
movzx eax, word [rbx]
mov dword [rbp], r8d
add r11d, 1
cmp r11d, 0x1f4
mov eax, dword [r12 + rax*4]
mov dword [rbp + 4], eax
jne 0x1400063f8
mov dword [0x1403b59a0], 0x1f4
mov r9d, 0x1f3
jmp 0x1400064a1
lea r9d, [r11 - 1]
cmp r11d, 1
mov dword [0x1403b59a0], r11d
je 0x14000650e
lea esi, [r11 - 2]
lea rbx, [0x1403b59ac]
nop dword [rax]
mov eax, r11d
sub eax, r10d
cmp eax, 1
je 0x140006505
lea rax, [0x1403b59a4]
mov edx, esi
sub edx, r10d
lea r8, [rbx + rdx*8]
nop dword [rax + rax]
mov edx, dword [rax + 4]
mov ecx, dword [rax + 0xc]
cmp ecx, edx
jae 0x1400064fc
movd xmm0, dword [rax]
movd xmm2, edx
movd xmm3, ecx
movd xmm1, dword [rax + 8]
punpckldq xmm0, xmm2
movq qword [rax + 8], xmm0
punpckldq xmm1, xmm3
movq qword [rax], xmm1
add rax, 8
cmp r8, rax
jne 0x1400064d0
add r10d, 1
cmp r10d, r9d
jb 0x1400064b0
mov eax, 1
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
xor eax, eax
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov r8d, 0x850f079f
jmp 0x14000645e

Function at 0x1400065a0
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.140006540
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 0x140006a70
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1403bb0a4]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x140006c00
mov rax, qword [0x1403bb0a8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x140006abc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x140006b45
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x140006aa0
mov rcx, rdi
call fcn.140007910
test rax, rax
mov r12, rax
je 0x140006c52
mov rax, qword [0x1403bb0a8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.140007a50
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1403bb0a8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140006c35
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140006b3e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140006bb0
add dword [0x1403bb0a4], 1
cmp ebx, 8
jae 0x140006b71
test bl, 4
jne 0x140006c10
test ebx, ebx
je 0x140006b66
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x140006c24
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x140006b66
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x140006b8a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x1403bb0a8]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140006b3e
call qword [0x1403bc26c]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140006a00
xor esi, esi
jmp 0x140006ac7
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x140006b66
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x140006b66
mov rax, qword [0x1403bb0a8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.140006a00
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.140006a00
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x1400074a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x140007740
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [0x1403bb148]
test eax, eax
mov rdi, rcx
mov rsi, rdx
je 0x1400077d0
test r8, r8
je 0x140007781
lea rax, [0x1403bbc30]
cmp r8, rax
je 0x140007781
lea rdx, str..._.._src_mingw_w64_mingw_w64_crt_crt_tls_atexit.c
mov r8d, 0x46
lea rcx, str._dso__dso____dso_handle
call fcn.14000cf00
mov edx, 0x18
mov ecx, 1
call fcn.14000cf40
test rax, rax
mov rbx, rax
je 0x1400077d0
mov qword [rax], rdi
mov ecx, dword [0x1403b69a0]
mov qword [rax + 8], rsi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x1403b69a0]
mov rdx, rbx
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140007740
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x140007740
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [0x1403bb148]
test eax, eax
mov rdi, rcx
mov rsi, rdx
je 0x1400077d0
test r8, r8
je 0x140007781
lea rax, [0x1403bbc30]
cmp r8, rax
je 0x140007781
lea rdx, str..._.._src_mingw_w64_mingw_w64_crt_crt_tls_atexit.c
mov r8d, 0x46
lea rcx, str._dso__dso____dso_handle
call fcn.14000cf00
mov edx, 0x18
mov ecx, 1
call fcn.14000cf40
test rax, rax
mov rbx, rax
je 0x1400077d0
mov qword [rax], rdi
mov ecx, dword [0x1403b69a0]
mov qword [rax + 8], rsi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x1403b69a0]
mov rdx, rbx
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140007910
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [sym.MZ_GRHM.LLe___oXnCKGHL_EuU_vABHzJ_M_X_F]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14000797f
mov rcx, r9
call fcn.1400077e0
test eax, eax
je 0x14000797f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x14000797d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140007974
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14000797f
add rdx, 0x28
cmp rdx, r9
jne 0x140007960
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret

Function at 0x140007d00
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [0x1403bb1e0], 0xffffffff
mov r8d, 0xffff
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x1403bb1e8], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140007d50
lea rdx, [0x140007c10]
mov ecx, eax
mov dword [0x1403bb1d8], eax
call fcn.14000d0c0
test eax, eax
jne 0x140007d58
add rsp, 0x28
ret
call qword [0x1403bc26c]
jmp 0x140007d47
call sub.msvcrt.dll_abort
nop
nop
Function at 0x140007d60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x1403b7da0]
mov r11d, dword [rsi]
mov rbx, rcx
test r11d, r11d
jne 0x140007d98
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x140007e00
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [rcx + 0x10]
test r12, r12
je 0x140007e10
mov esi, dword [0x1403bb1d8]
mov r13, qword [0x1403bc26c]
call r13
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x140007e80
mov rbp, qword [rsi]
cmp rbp, r12
jb 0x140007ec8
sub r12, 1
mov rax, qword [rsi + r12*8 + 8]
test rax, rax
jne 0x140007d87
mov rcx, rbx
call fcn.140007c60
mov qword [rsi + r12*8 + 8], rax
jmp 0x140007d87
call fcn.140007c60
mov qword [rbx + 0x10], rax
jmp 0x140007d87
mov r10d, dword [rsi]
test r10d, r10d
je 0x140007f2a
mov r9d, dword [0x1403b69b0]
test r9d, r9d
je 0x140007f58
lock add dword [0x1403bb1e0], 1
jne 0x140007f8c
mov r12, qword [rbx + 0x10]
test r12, r12
je 0x140007f37
mov eax, dword [rsi]
test eax, eax
je 0x140007da1
lock sub dword [0x1403bb1e0], 1
js 0x140007da1
mov rcx, qword [0x1403bb1e8]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x140007da1
lea rcx, [r12 + 0x21]
mov edx, 8
call fcn.14000cf40
lea rdi, [r12 + 0x20]
test rax, rax
mov rsi, rax
je 0x140007fb3
mov qword [rax], rdi
mov ecx, dword [0x1403bb1d8]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x140007ddb
call r13
jmp 0x140007ddb
lea rdi, [rbp + rbp]
mov rcx, rsi
lea rax, [r12 + 0x20]
cmp rdi, r12
cmovb rdi, rax
lea rdx, [rdi*8 + 8]
call fcn.14000cf98
test rax, rax
mov rsi, rax
je 0x140007fb3
mov qword [rax], rdi
lea rcx, [rax + rbp*8 + 8]
sub rdi, rbp
xor edx, edx
lea r8, [rdi*8]
call fcn.14000cf90
jmp 0x140007ea3
call fcn.140007d00
mov dword [0x1403b69b0], 1
mov edx, dword [rsi]
test edx, edx
jne 0x140007e2c
mov r12, qword [rbx + 0x10]
test r12, r12
jne 0x140007da1
mov rax, qword [0x1403bb1d0]
lea r12, [rax + 1]
mov qword [0x1403bb1d0], r12
mov qword [rbx + 0x10], r12
jmp 0x140007e47
lock add dword [0x1403b69b4], 1
je 0x140007f11
mov r8d, dword [0x1403b69b0]
lea rdi, [0x1403b69b0]
mov rbp, qword [0x1403bc2bc]
test r8d, r8d
jne 0x140007f20
nop dword [rax]
xor ecx, ecx
call rbp
mov ecx, dword [rdi]
test ecx, ecx
je 0x140007f80
jmp 0x140007f20
mov rcx, qword [0x1403bb1e8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140007e3a
lock sub dword [0x1403bb1e0], 1
jmp 0x140007e3a
call sub.msvcrt.dll_abort
nop
nop dword [rax]
cmp qword [rcx], rdx
jae 0x140007fd0
mov qword [rcx], rdx
mov qword [rcx + 0x18], 0
cmp qword [rcx + 8], r8
jae 0x140007fda
mov qword [rcx + 8], r8
test r9, r9
je 0x140007fe4
cmp qword [rcx], rdx
je 0x140007fe8
ret
mov qword [rcx + 0x18], r9
ret
Function at 0x1403c7540
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x1403c756d
xor al, al
jmp 0x1403c76cf
mov rax, qword [0x1403e76c0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x1403e76c8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x1403e76d0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x1403e76d8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x1403e76e0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x1403e76e8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x1403e76f0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x1403e76f8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x1403e7700]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x1403c76c1
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x1403c7619
mov r11d, 2
jmp 0x1403c763d
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x1403c7633
mov r11d, 1
jmp 0x1403c763d
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x1403c76e5
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x1403c7682
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x1403c769a
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x1403c76aa
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x1403c76b8
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x1403c7600
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x1403c76ca

Function at 0x1404a6c06
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffa8e44873
call fcn.1405a1cd9
invalid
Function at 0x180003758
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x18011a010]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rdi, rdx
mov rbp, rcx
mov rcx, r8
mov rax, 0xfffffffffffff000
and rcx, rax
mov rsi, r8
mov qword [rdx], rcx
mov rdx, r8
sub rdx, rcx
lea r9, [rdi + 0x10]
add rdx, 0x1004
mov r8d, 0x40
and rdx, rax
mov qword [rdi + 8], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800037e2
mov r9, qword [rdi + 8]
lea rdx, str.__unprotect_memory__p__size_llu______p__size_llu__n
mov r8, qword [rdi]
mov rcx, rbp
mov qword [rsp + 0x28], 5
mov qword [rsp + 0x20], rsi
call fcn.180002db4
xor eax, eax
jmp 0x18000382f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, [rsp + 0x40]
call fcn.180003464
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, qword [rdi + 8]
lea rdx, str.Failed_to_unprotect_memory__p__size_llu______p__size_llu__error_lu__s__
mov r8, qword [rdi]
mov rcx, rbp
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], 5
mov qword [rsp + 0x20], rsi
call fcn.180002ddc
mov eax, 9
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.18009d0f0
mov rbx, qword [rsp + 0x108]
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
ret

Function at 0x1800081fc
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
not r8d
mov r10, rcx
mov r9d, r8d
test rdx, rdx
je 0x180008256
mov r11b, 0x23
lea rdi, [0x1800a7290]
movzx ebx, byte [r10]
dec rdx
inc r10
cmp bl, r11b
jne 0x180008240
cmp rdx, 2
jb 0x180008240
cmp byte [r10], r11b
jne 0x180008240
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
xor rcx, rbx
shr r9d, 8
xor r9d, dword [rdi + rcx*4]
test rdx, rdx
jne 0x18000821e
jmp 0x180008297
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x180008297
mov r11b, 0x23
lea rdi, [0x1800a7290]
cmp dl, r11b
jne 0x18000827b
cmp byte [r10], r11b
jne 0x18000827b
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
movzx eax, dl
mov dl, byte [r10]
xor rcx, rax
shr r9d, 8
inc r10
xor r9d, dword [rdi + rcx*4]
test dl, dl
jne 0x180008269
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret