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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x142a7a170]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14001bbbf
cmp word [rdx], r13w
jne 0x14001bbbf
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001bbc4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001bce9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001bd0a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001bbfd
mov rdx, r9
mov word [rbx], cx
jmp 0x14001bc24
cmp r9, r8
jae 0x14001bc34
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14001bbde
jmp 0x14001bce9
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001bcde
cmp dword [rsp + 0x80], esi
je 0x14001bcde
lea r8, [0x142a7a170]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001bcb6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001bc86
mov word [rbx], r13w
jmp 0x14001bce6
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14001bc93
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001bce6
cmp word [rsp + 0x70], r13w
jne 0x14001bcc3
cmp rbx, r14
je 0x14001bc80
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001c7d0
cmp word [rsp + 0x70], r13w
je 0x14001bce9
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x142a7a170]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001bce3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001bce9
Function at 0x140020514
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 0x140020544
xor eax, eax
jmp 0x140020607
mov rbp, rbx
cmp word [rax], si
je 0x140020569
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140020550
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002054c
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.14001eb14
movsxd r14, eax
test eax, eax
jne 0x1400205a7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002053d
mov rcx, r14
call fcn.14001843c
mov rdi, rax
test rax, rax
jne 0x1400205c0
xor ecx, ecx
call fcn.140018400
jmp 0x14002059c
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.14001eb14
test eax, eax
jne 0x1400205f1
mov rcx, rdi
call fcn.140018400
jmp 0x1400205fb
xor ecx, ecx
call fcn.140018400
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 0x1400234d0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140017e2c
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140023571
cmp ebx, dword [rsp + 0x30]
je 0x14002356a
test esi, esi
je 0x14002356a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140023545
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140023552
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002352f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140023556
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140023573
mov eax, 1
jmp 0x140023573
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140027534
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.1400110c0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400275be
cmp byte [rbp - 0x21], r15b
je 0x1400275b9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400275f4
call fcn.14001ad2c
test eax, eax
jne 0x1400275e0
cmp byte [rbp - 0x21], r15b
je 0x1400275d8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400275f4
cmp byte [rbp - 0x21], r15b
je 0x1400275f1
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.140013c68
test eax, eax
jne 0x140027694
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400110c0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140027633
cmp byte [rbp - 0x21], r15b
je 0x140027668
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140027668
call fcn.14001ad2c
test eax, eax
jne 0x140027654
cmp byte [rbp - 0x21], r15b
je 0x14002764d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140027668
cmp byte [rbp - 0x21], r15b
je 0x140027665
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.140013c68
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140027694
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140027697
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400276a5
mov rcx, rdi
call fcn.140018400
cmp byte [rbp + 0x3f], r15b
je 0x1400276b4
mov rcx, qword [rbp + 0x27]
call fcn.140018400
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 0x1400284c0
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.14001c7d0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c7d0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140028610
cmp rax, 0xffffffffffffffff
je 0x140028610
xor edi, edi
test rbp, rbp
jle 0x1400285bb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001a9ec
mov rbx, rax
test rax, rax
jne 0x140028548
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400285b1
mov edx, 0x8000
mov ecx, r14d
call fcn.140014ef0
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.14001a134
cmp eax, 0xffffffff
je 0x140028591
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140028558
mov edx, r15d
mov ecx, r14d
call fcn.140014ef0
jmp 0x1400285b1
cmp byte [rsi + 0x38], dil
je 0x1400285a8
cmp dword [rsi + 0x34], 5
jne 0x1400285a8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400285b1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140018400
jmp 0x140028624
jns 0x140028624
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c7d0
cmp rax, 0xffffffffffffffff
jne 0x1400285dc
cmp byte [rsi + 0x30], dil
je 0x140028624
mov edi, dword [rsi + 0x2c]
jmp 0x140028624
mov ecx, r14d
call fcn.140020f7c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140028624
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 0x140028624
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14002861d
mov eax, dword [rsi + 0x2c]
jmp 0x140028622
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c7d0
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 0x1400039a0
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 [0x14000c080]
test r10d, r10d
jne 0x140003b7e
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx + 0x30]
test rax, rax
je 0x140003b8e
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 0x140003a1f
lea r9, [rdx + rax]
mov eax, dword [r9 + 0xc]
add rax, rdx
mov r8d, dword [rax]
or r8d, 0x20202020
cmp r8d, 0x6c64746e
jne 0x140003a1f
mov eax, dword [rax + 4]
or eax, 0x20202020
cmp eax, 0x6c642e6c
je 0x140003a34
mov rcx, qword [rcx]
mov rax, qword [rcx + 0x30]
test rax, rax
jne 0x1400039e0
test r9, r9
je 0x140003b8e
mov eax, dword [r9 + 0x18]
lea r13, [0x14000c084]
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 0x140003a7c
lea rax, [rbx - 2]
sub rsi, 4
cmp rdi, rbx
je 0x140003b00
mov rbx, rax
mov eax, dword [rsi]
add rax, rdx
cmp word [rax], 0x775a
jne 0x140003a68
cmp byte [rax], 0
mov ecx, r11d
lea rbp, [r13 + rcx*8]
je 0x140003b9b
cmp byte [rax + 1], 0
mov r8d, 0x4fa455e8
mov ecx, 1
mov r9d, 1
je 0x140003ace
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 0x140003ab0
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 0x140003a68
mov dword [0x14000c080], 0x1f4
mov r9d, 0x1f3
jmp 0x140003b11
lea r9d, [r11 - 1]
cmp r11d, 1
mov dword [0x14000c080], r11d
je 0x140003b7e
lea esi, [r11 - 2]
lea rbx, [0x14000c08c]
nop dword [rax]
mov eax, r11d
sub eax, r10d
cmp eax, 1
je 0x140003b75
lea rax, [0x14000c084]
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 0x140003b6c
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 0x140003b40
add r10d, 1
cmp r10d, r9d
jb 0x140003b20
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, 0x1abf6355
jmp 0x140003ace

Function at 0x140003c10
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.140003bb0
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 0x140004060
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.14000a160
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.14000a160
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 0x1400040d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140011094]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x140004260
mov rax, qword [0x140011098]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x14000411c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x1400041a5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x140004100
mov rcx, rdi
call fcn.140004f70
test rax, rax
mov r12, rax
je 0x1400042b2
mov rax, qword [0x140011098]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.1400050b0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x140011098]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140004295
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000419e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140004210
add dword [0x140011094], 1
cmp ebx, 8
jae 0x1400041d1
test bl, 4
jne 0x140004270
test ebx, ebx
je 0x1400041c6
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x140004284
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 0x1400041c6
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 0x1400041ea
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 [0x140011098]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000419e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140004060
xor esi, esi
jmp 0x140004127
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x1400041c6
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x1400041c6
mov rax, qword [0x140011098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.140004060
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.140004060
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x140004880
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140011100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400110e0]
test rbx, rbx
je 0x1400048d4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400048cb
test rsi, rsi
je 0x1400048cb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400048b0
lea rcx, [0x140011100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

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

Disassembly:
jmp 0x140004da0
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [0x140011148]
test eax, eax
mov rdi, rcx
mov rsi, rdx
je 0x140004e30
test r8, r8
je 0x140004de1
lea rax, [0x140011c30]
cmp r8, rax
je 0x140004de1
lea rdx, str..._.._src_mingw_w64_mingw_w64_crt_crt_tls_atexit.c
mov r8d, 0x46
lea rcx, str._dso__dso____dso_handle
call sub.msvcrt.dll__assert
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
test rax, rax
mov rbx, rax
je 0x140004e30
mov qword [rax], rdi
mov ecx, dword [0x14000d080]
mov qword [rax + 8], rsi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x14000d080]
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 0x140004da0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x140004da0
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [0x140011148]
test eax, eax
mov rdi, rcx
mov rsi, rdx
je 0x140004e30
test r8, r8
je 0x140004de1
lea rax, [0x140011c30]
cmp r8, rax
je 0x140004de1
lea rdx, str..._.._src_mingw_w64_mingw_w64_crt_crt_tls_atexit.c
mov r8d, 0x46
lea rcx, str._dso__dso____dso_handle
call sub.msvcrt.dll__assert
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
test rax, rax
mov rbx, rax
je 0x140004e30
mov qword [rax], rdi
mov ecx, dword [0x14000d080]
mov qword [rax + 8], rsi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x14000d080]
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 0x140004f70
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14000ea60]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x140004fdf
mov rcx, r9
call fcn.140004e40
test eax, eax
je 0x140004fdf
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 0x140004fdd
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 0x140004fd4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140004fdf
add rdx, 0x28
cmp rdx, r9
jne 0x140004fc0
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret

Function at 0x140005360
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [0x1400111e0], 0xffffffff
mov r8d, 0xffff
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x1400111e8], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1400053b0
lea rdx, [0x140005270]
mov ecx, eax
mov dword [0x1400111d8], eax
call fcn.14000a700
test eax, eax
jne 0x1400053b8
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400053a7
call sub.msvcrt.dll_abort
nop
nop
Function at 0x1400053c0
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 [0x14000ea00]
mov r11d, dword [rsi]
mov rbx, rcx
test r11d, r11d
jne 0x1400053f8
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x140005460
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 0x140005470
mov esi, dword [0x1400111d8]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
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 0x1400054e0
mov rbp, qword [rsi]
cmp rbp, r12
jb 0x140005528
sub r12, 1
mov rax, qword [rsi + r12*8 + 8]
test rax, rax
jne 0x1400053e7
mov rcx, rbx
call fcn.1400052c0
mov qword [rsi + r12*8 + 8], rax
jmp 0x1400053e7
call fcn.1400052c0
mov qword [rbx + 0x10], rax
jmp 0x1400053e7
mov r10d, dword [rsi]
test r10d, r10d
je 0x14000558a
mov r9d, dword [0x14000d090]
test r9d, r9d
je 0x1400055b8
lock add dword [0x1400111e0], 1
jne 0x1400055ec
mov r12, qword [rbx + 0x10]
test r12, r12
je 0x140005597
mov eax, dword [rsi]
test eax, eax
je 0x140005401
lock sub dword [0x1400111e0], 1
js 0x140005401
mov rcx, qword [0x1400111e8]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x140005401
lea rcx, [r12 + 0x21]
mov edx, 8
call sub.msvcrt.dll_calloc
lea rdi, [r12 + 0x20]
test rax, rax
mov rsi, rax
je 0x140005613
mov qword [rax], rdi
mov ecx, dword [0x1400111d8]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x14000543b
call r13
jmp 0x14000543b
lea rdi, [rbp + rbp]
mov rcx, rsi
lea rax, [r12 + 0x20]
cmp rdi, r12
cmovb rdi, rax
lea rdx, [rdi*8 + 8]
call sub.msvcrt.dll_realloc
test rax, rax
mov rsi, rax
je 0x140005613
mov qword [rax], rdi
lea rcx, [rax + rbp*8 + 8]
sub rdi, rbp
xor edx, edx
lea r8, [rdi*8]
call sub.msvcrt.dll_memset
jmp 0x140005503
call fcn.140005360
mov dword [0x14000d090], 1
mov edx, dword [rsi]
test edx, edx
jne 0x14000548c
mov r12, qword [rbx + 0x10]
test r12, r12
jne 0x140005401
mov rax, qword [0x1400111d0]
lea r12, [rax + 1]
mov qword [0x1400111d0], r12
mov qword [rbx + 0x10], r12
jmp 0x1400054a7
lock add dword [0x14000d094], 1
je 0x140005571
mov r8d, dword [0x14000d090]
lea rdi, [0x14000d090]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
test r8d, r8d
jne 0x140005580
nop dword [rax]
xor ecx, ecx
call rbp
mov ecx, dword [rdi]
test ecx, ecx
je 0x1400055e0
jmp 0x140005580
mov rcx, qword [0x1400111e8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000549a
lock sub dword [0x1400111e0], 1
jmp 0x14000549a
call sub.msvcrt.dll_abort
nop
nop dword [rax]
cmp qword [rcx], rdx
jae 0x140005630
mov qword [rcx], rdx
mov qword [rcx + 0x18], 0
cmp qword [rcx + 8], r8
jae 0x14000563a
mov qword [rcx + 8], r8
test r9, r9
je 0x140005644
cmp qword [rcx], rdx
je 0x140005648
ret
mov qword [rcx + 0x18], r9
ret
Function at 0x14007e9d0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
sub rsp, 0x108
movdqa xmm0, xmmword [0x1402e24a0]
movdqa xmm1, xmmword [0x1402e2330]
movdqa xmmword [rsp + 0x20], xmm0
movdqa xmm0, xmmword [0x1402e2400]
movdqa xmmword [rsp + 0x30], xmm1
movdqa xmm1, xmmword [0x1402e2240]
movdqa xmmword [rsp + 0x40], xmm0
movdqa xmm0, xmmword [0x1402e21f0]
movdqa xmmword [rsp + 0x50], xmm1
movdqa xmm1, xmmword [0x1402e2100]
movdqa xmmword [rsp + 0x60], xmm0
movdqa xmm0, xmmword [0x1402e21c0]
movdqa xmmword [rsp + 0x70], xmm1
movdqa xmm1, xmmword [0x1402e20c0]
movdqa xmmword [rax - 0x88], xmm0
movdqa xmm0, xmmword [0x1402e2030]
movdqa xmmword [rax - 0x78], xmm1
movdqa xmm1, xmmword [0x1402e1f90]
movdqa xmmword [rax - 0x68], xmm0
movdqa xmm0, xmmword [0x1402e1ff0]
movdqa xmmword [rax - 0x58], xmm1
movdqa xmm1, xmmword [0x1402e1f50]
movdqa xmmword [rax - 0x48], xmm0
movdqa xmm0, xmmword [0x1402e1f40]
movdqa xmmword [rax - 0x38], xmm1
movdqa xmmword [rax - 0x28], xmm0
mov word [rax - 0x18], 0x31
mov byte [rax - 0x16], 1
xor eax, eax
mov byte [0x1406c9df9], 1
nop
lea ecx, [rax - 0x77]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp rax, 0xd1
jb 0x14007eaa0
mov byte [rsp + 0xf2], 0
lea rax, [rsp + 0x20]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x14007eac6
lea rdx, [rsp + 0x20]
lea rcx, [0x1406c7180]
call fcn.1400890f0
add rsp, 0x108
ret