joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000548c
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword gs:[0x60]
mov ebp, ecx
mov r14, qword [rax + 0x18]
add r14, 0x10
mov rsi, qword [r14]
jmp 0x14000553a
test rsi, rsi
je 0x140005537
and qword [rsp + 0x38], 0
or r9d, 0xffffffff
mov rdi, qword [rsi + 0x60]
xor edx, edx
and qword [rsp + 0x30], 0
mov r8, rdi
and dword [rsp + 0x28], 0
mov ecx, 0xfde9
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
mov rcx, rbx
call fcn.140005640
and qword [rsp + 0x38], 0
or r9d, 0xffffffff
and qword [rsp + 0x30], 0
mov r8, rdi
mov dword [rsp + 0x28], ebx
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
mov r15, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x140005543
mov rcx, r15
call fcn.1400013f8
cmp eax, ebp
je 0x14000555e
mov rsi, qword [rsi]
cmp rsi, r14
jne 0x1400054bc
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
mov rax, qword [rsi + 0x30]
jmp 0x140005545

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov eax, 0x5a4d
mov r15d, edx
mov r11, rcx
cmp word [rcx], ax
jne 0x1400055db
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400055db
mov ecx, dword [rax + rcx + 0x88]
add rcx, r11
je 0x1400055db
mov ebp, dword [rcx + 0x20]
xor ebx, ebx
mov edi, dword [rcx + 0x24]
add rbp, r11
mov esi, dword [rcx + 0x1c]
add rdi, r11
mov r14d, dword [rcx + 0x18]
add rsi, r11
test r14, r14
je 0x1400055db
mov ecx, dword [rbp + rbx*4]
add rcx, r11
call fcn.1400013f8
cmp eax, r15d
je 0x1400055f6
inc rbx
cmp rbx, r14
jb 0x1400055c2
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
movzx eax, word [rdi + rbx*2]
mov eax, dword [rsi + rax*4]
add rax, r11
jmp 0x1400055dd

Function at 0x1400061a0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400061ea
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400061ea
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400061ea
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400061ea
cmp dword [rcx + 0x84], 0xe
jbe 0x1400061ea
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400061ec
xor al, al
add rsp, 0x28
ret
Function at 0x1400013e8
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
xor edx, edx
mov ebx, ecx
lea rcx, [rbp - 0x69]
lea r8d, [rdx + 0x40]
call fcn.140001060
cmp ebx, 6
jne 0x14000141f
lea rcx, [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbp - 0x25]
jmp 0x14000149e
lea rcx, [rbp - 0x69]
mov dword [rbp - 0x69], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x140001477
mov ecx, ebx
test ebx, ebx
je 0x140001471
sub ecx, 1
je 0x14000146b
sub ecx, 1
je 0x140001465
sub ecx, 1
je 0x14000145f
sub ecx, 1
je 0x140001459
cmp ecx, 1
jne 0x140001477
mov rax, qword [rbp - 0x49]
jmp 0x14000149e
mov rax, qword [rbp - 0x51]
jmp 0x14000149e
mov rax, qword [rbp - 0x39]
jmp 0x14000149e
mov rax, qword [rbp - 0x41]
jmp 0x14000149e
mov rax, qword [rbp - 0x59]
jmp 0x14000149e
mov rax, qword [rbp - 0x61]
jmp 0x14000149e
cmp ebx, 7
jne 0x14000149c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8d, [rbx + 0x49]
lea rdx, [rbp + 7]
call sub.KERNEL32.dll_K32GetProcessMemoryInfo
test eax, eax
je 0x14000149c
mov rax, qword [rbp + 0x4f]
jmp 0x14000149e
xor eax, eax
mov rbx, qword [rsp + 0xf0]
add rsp, 0xe0
pop rbp
ret

Function at 0x14000fc78
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.140006348
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 0x14000fd19
cmp ebx, dword [rsp + 0x30]
je 0x14000fd12
test esi, esi
je 0x14000fd12
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14000fced
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14000fcfa
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14000fcd7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14000fcfe
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14000fd1b
mov eax, 1
jmp 0x14000fd1b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140010204
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001034c
Function at 0x14001ad78
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 0x14001ada8
xor eax, eax
jmp 0x14001ae6b
mov rbp, rbx
cmp word [rax], si
je 0x14001adcd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001adb4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001adb0
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.14000b798
movsxd r14, eax
test eax, eax
jne 0x14001ae0b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001ada1
mov rcx, r14
call fcn.1400059b8
mov rdi, rax
test rax, rax
jne 0x14001ae24
xor ecx, ecx
call fcn.14000597c
jmp 0x14001ae00
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.14000b798
test eax, eax
jne 0x14001ae55
mov rcx, rdi
call fcn.14000597c
jmp 0x14001ae5f
xor ecx, ecx
call fcn.14000597c
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 0x14002c714
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
xor rax, rax
push rax
push rax
push rax
push rax
push rax
push rax
sub rsp, 0x28
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.140001e50
add rsp, 0x10
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x30]
sub rsp, 0x10
call fcn.140001e50
add rsp, 0x10
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x48], 8
sub rsp, 8
lea rax, [rsp + 0x40]
push rax
push 0x20019
push 0
push qword [rsp + 0x48]
movsxd rax, dword [rsp + 0x88]
mov rcx, rax
pop rdx
pop r8
pop r9
sub rsp, 0x20
call sub.ADVAPI32.dll_RegOpenKeyExW
add rsp, 0x30
and rax, rax
je 0x14002c7bf
mov dword [rsp + 0x40], 0
jmp 0x14002c811
lea rax, [rsp + 0x48]
push rax
lea rax, [rsp + 0x48]
push rax
lea rax, [rsp + 0x88]
push rax
push 0
push qword [rsp + 0x50]
movsxd rax, dword [rsp + 0x60]
mov rcx, rax
pop rdx
pop r8
pop r9
sub rsp, 0x20
call sub.ADVAPI32.dll_RegQueryValueExW
add rsp, 0x30
and rax, rax
je 0x14002c804
mov dword [rsp + 0x40], 0
movsxd rax, dword [rsp + 0x38]
mov rcx, rax
call sub.ADVAPI32.dll_RegCloseKey
movsxd rax, dword [rsp + 0x40]
movsxd rax, eax
jmp 0x14002c81e
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.140001f70
add rsp, 0x28
mov rcx, qword [rsp + 0x38]
sub rsp, 0x28
call fcn.140001f70
add rsp, 0x28
pop rax
add rsp, 0x58
ret
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x141d18140]
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rdi
xor eax, eax
lock cmpxchg qword [rbx], rsi
jne 0x1400011b0
mov rsi, qword [0x141d18150]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x141d1d008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x141d180b0]
mov rax, qword [rax]
test rax, rax
je 0x14000121f
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call fcn.14005c070
mov rcx, qword [0x141d181d0]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x141d18130]
lea rcx, section..text
mov qword [rdx], rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.14005be80
mov ebx, dword [0x141d1d028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r12, qword [0x141d1d020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
nop dword [rax]
mov rcx, qword [r12 + rbx]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x141d1d020], rbp
call fcn.14005bc80
mov rax, qword [0x141d180c0]
mov r8, qword [0x141d1d018]
mov ecx, dword [0x141d1d028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x141d1d020]
call fcn.140013380
mov ecx, dword [0x141d1d00c]
mov dword [0x141d1d010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x141d1d008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x141d18150]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011dd
mov ecx, 0x1f
call fcn.14005b960
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011fc
mov rdx, qword [0x141d18170]
mov rcx, qword [0x141d18160]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001204
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001204
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x141d1d010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x141d18190]
mov rcx, qword [0x141d18180]
mov dword [rsi], 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x1400011f1
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
Function at 0x1400059d0
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rdx
mov rdi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x20
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
cmp eax, 0xc0000000
jb 0x140005a25
mov ebx, eax
lea rcx, [rsp + 0x20]
mov edx, 0x20
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140005ad6
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x50], xmm1
movaps xmmword [rsp + 0x40], xmm0
mov rax, qword [0x141d1d100]
test rax, rax
je 0x140005b09
and eax, 0x4000
xor ecx, ecx
lea rbx, [rsp + 0x70]
or rax, rcx
je 0x140005a70
lea r8, [0x141d169b0]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140028980
jmp 0x140005a92
movaps xmm0, xmmword [rsp + 0x40]
movaps xmm1, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x80], xmm1
xorps xmm0, xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmm0, xmmword [rbx]
movaps xmm1, xmmword [rbx + 0x10]
movaps xmm2, xmmword [rbx + 0x20]
movaps xmmword [rdi + 0x20], xmm2
movaps xmmword [rdi + 0x10], xmm1
movaps xmmword [rdi], xmm0
mov qword [rdi + 0x40], 0
mov rax, 0xffffffffffffff00
add rax, qword [rdi + 0x30]
mov qword [rdi + 0x38], rax
mov rcx, rdi
mov rdx, rsi
call fcn.1400289a0
nop
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
movzx eax, byte [0x141d1d110]
mov edx, 4
xor ecx, ecx
call fcn.140040a50
test rax, rax
je 0x140005b13
and ebx, 0x7fffffff
mov dword [rax], ebx
mov rcx, qword [0x141d1d0f0]
xor edx, edx
mov r8, rax
call fcn.14004dc58
jmp 0x140005aa8
call fcn.1400411e0
jmp 0x140005a49
ud2

Function at 0x140008260
Capabilities:
Set registry value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov r15, r9
mov rbx, r8
mov r14, rdx
mov rdi, rcx
movzx eax, byte [0x141d1d110]
mov edx, 4
xor ecx, ecx
call fcn.140040a50
test rax, rax
je 0x14000833a
mov rsi, rax
mov eax, dword [r15]
mov dword [rsi], eax
add rbx, r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x48], 0
mov dword [rsp + 0x50], 1
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x38]
call fcn.14002fa30
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x28], 4
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
mov r9d, 4
call sub.ADVAPI32.dll_RegSetValueExW
mov edi, eax
cmp qword [rsp + 0x58], 0
je 0x140008307
mov rcx, qword [0x141d1d0f0]
xor edx, edx
mov r8, rbx
call fcn.14004dc58
mov rcx, qword [0x141d1d0f0]
xor ebx, ebx
xor edx, edx
mov r8, rsi
call fcn.14004dc58
mov rax, rdi
shl rax, 0x20
or rax, 2
test edi, edi
cmovne rbx, rax
mov rax, rbx
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
ud2
Function at 0x140008340
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x140008382
mov r10d, 8
sub r10, r11
cmp r10, r8
mov rdi, r8
cmovb rdi, r10
cmp rdi, 4
jb 0x14000838a
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x14000839b
jmp 0x1400083b2
xor r10d, r10d
jmp 0x14000843d
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x1400083b2
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x1400083c9
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x1400083e9
add r11, r8
jmp 0x140008519
mov rcx, qword [rax + 0x18]
xor rcx, rsi
mov rdi, qword [rax + 0x10]
mov r9, qword [rax]
add r9, rdi
mov r11, qword [rax + 8]
add r11, rcx
rol rdi, 0xd
xor rdi, r9
rol rcx, 0x10
rol r9, 0x20
xor rcx, r11
add r11, rdi
rol rdi, 0x11
add r9, rcx
xor rdi, r11
rol rcx, 0x15
mov qword [rax + 0x10], rdi
xor rcx, r9
rol r11, 0x20
mov qword [rax + 0x18], rcx
mov qword [rax + 8], r11
xor r9, rsi
mov qword [rax], r9
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x1400084b2
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
mov rbx, qword [rdx + r10]
xor rdi, rbx
add rcx, rsi
rol rsi, 0xd
add r9, rdi
xor rsi, rcx
rol rdi, 0x10
xor rdi, r9
rol rcx, 0x20
add r9, rsi
add rcx, rdi
rol rsi, 0x11
xor rsi, r9
rol rdi, 0x15
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x140008460
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 4
jb 0x1400084cf
mov r9d, dword [rdx + r10]
mov r8d, 4
mov ecx, r8d
or ecx, 1
cmp ecx, r11d
jb 0x1400084e0
jmp 0x1400084fb
xor r9d, r9d
xor r8d, r8d
mov ecx, r8d
or ecx, 1
cmp ecx, r11d
jae 0x1400084fb
lea rcx, [rdx + r8]
movzx esi, word [r10 + rcx]
lea ecx, [r8*8]
invalid
add byte [rax], al
add byte [rax], al
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8d, r11d
jae 0x140008515
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret
Function at 0x14002bd80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x828
mov esi, dword [0x14005d0e8]
test esi, esi
je 0x14002bf56
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14002bf49
je 0x14002bf47
mov eax, dword [0x141d1d038]
cmp eax, 3
jne 0x14002bf77
mov rdi, qword [0x141d1d030]
lock inc qword [rdi]
jle 0x14002bf8d
mov eax, 0x60
movups xmm0, xmmword [0x141d16990]
movups xmm1, xmmword [0x141d16980]
nop word cs:[rax + rax]
movups xmmword [rsp + rax - 0x30], xmm0
movups xmmword [rsp + rax - 0x40], xmm1
movups xmmword [rsp + rax - 0x20], xmm1
movups xmmword [rsp + rax - 0x10], xmm0
movups xmmword [rsp + rax], xmm1
movups xmmword [rsp + rax + 0x10], xmm0
movups xmmword [rsp + rax + 0x20], xmm1
movups xmmword [rsp + rax + 0x30], xmm0
sub rax, 0xffffffffffffff80
cmp rax, 0x860
jne 0x14002bdf0
movzx eax, byte [0x141d1d110]
mov edx, 0x980
xor ecx, ecx
call fcn.140040a50
test rax, rax
je 0x14002bf8d
mov r14, rax
and r14, 0xffffffffffffff80
lea rbx, [r14 + 0x80]
mov qword [r14 + 0x78], rax
mov qword [r14 + 0x80], 0
mov qword [r14 + 0x88], rdi
lea rcx, [r14 + 0x90]
lea rdx, [rsp + 0x20]
mov r8d, 0x800
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
xorps xmm0, xmm0
movaps xmmword [r14 + 0x890], xmm0
mov qword [r14 + 0x8a0], 1
mov qword [r14 + 0x8a8], 0
mov qword [r14 + 0x900], 0
mov rax, qword [rdi + 0x200]
mov qword [r14 + 0x80], rax
lock cmpxchg qword [rdi + 0x200], rbx
je 0x14002bece
nop
mov qword [rbx], rax
lock cmpxchg qword [rdi + 0x200], rbx
jne 0x14002bec0
movzx eax, byte [0x141d1d110]
mov edx, 0x10
xor ecx, ecx
call fcn.140040a50
test rax, rax
je 0x14002bf8d
mov qword [rax], rbx
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x14002bf42
mov rcx, qword [rdi]
mov rax, qword [rcx + 0x820]
lea rdx, [rax - 1]
mov qword [rcx + 0x820], rdx
xor rax, 1
or rax, qword [rcx + 0x818]
je 0x14002bf8f
mov rcx, qword [0x141d1d0f0]
xor edx, edx
mov r8, rdi
call fcn.14004dc58
mov rax, rsi
jmp 0x14002bf49
xor eax, eax
add rsp, 0x828
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x14005d0d0]
call fcn.140031460
mov esi, eax
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14002bdad
jmp 0x14002bf49
call fcn.1400232a0
mov rdi, qword [0x141d1d030]
lock inc qword [rdi]
jg 0x14002bdd3
ud2
call fcn.140022690
jmp 0x14002bf31
Function at 0x14002c5f0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [rdx + 0x28]
mov qword [rsp + 0x30], rax
movzx eax, byte [rdx + 0x30]
mov byte [rsp + 0x27], al
movzx eax, byte [0x141d1d110]
mov edx, 0x5f0
xor ecx, ecx
call fcn.140040a50
test rax, rax
je 0x14002c84a
mov rbx, rax
lea r15, [rsi + 0x38]
movabs r12, 0x800000000000000
mov r8d, 0x5f0
mov rcx, rax
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov rax, qword [rsi + 0x60]
mov qword [rsp + 0x28], rax
movabs rcx, 0x7465646279746573
movabs rdx, 0x6c7967656e657261
movabs r8, 0xded7d4e2d7dedfc6
movabs r9, 0xa60c596fc19fead0
movabs r10, 0xe414a674f0de7325
nop
mov ebp, 1
lock xadd qword [0x141d1d050], rbp
mov r11, rbp
xor r11, rcx
mov rax, r11
rol rax, 0x10
lea r14, [r11 + rdx]
xor rax, r14
lea r14, [rax + r8]
xor rbp, r14
add r11, r9
mov r13, r11
rol r13, 0x20
rol rax, 0x15
xor r11, r10
xor r14, r12
xor r14, rax
add rbp, r11
rol r11, 0xd
add r13, r14
xor r11, rbp
rol r14, 0x10
xor r14, r13
rol rbp, 0x20
add r13, r11
add rbp, r14
rol r11, 0x11
xor r11, r13
rol r14, 0x15
rol r13, 0x20
xor r14, rbp
xor rbp, r12
xor r13, 0xff
add rbp, r11
add r13, r14
rol r11, 0xd
xor r11, rbp
rol r14, 0x10
rol rbp, 0x20
xor r14, r13
add r13, r11
rol r11, 0x11
add rbp, r14
xor r11, r13
rol r14, 0x15
xor r14, rbp
rol r13, 0x20
add rbp, r11
add r13, r14
rol r11, 0xd
xor r11, rbp
rol r14, 0x10
rol rbp, 0x20
xor r14, r13
add r13, r11
rol r11, 0x11
add rbp, r14
xor r11, r13
rol r14, 0x15
xor r14, rbp
rol r13, 0x20
add rbp, r11
add r13, r14
rol r11, 0xd
xor r11, rbp
rol r14, 0x10
xor r14, r13
add r13, r11
rol r11, 0x11
rol r14, 0x15
mov rbp, r13
rol rbp, 0x20
xor rbp, r11
xor rbp, r14
cmp rbp, r13
je 0x14002c690
xor rbp, r13
mov rax, qword [rsi + 0x58]
movups xmm0, xmmword [r15]
movups xmm1, xmmword [r15 + 0x10]
movups xmmword [rdi + 0x128], xmm1
movups xmmword [rdi + 0x118], xmm0
mov rcx, qword [rsp + 0x30]
mov qword [rdi + 0x138], rcx
movzx ecx, byte [rsp + 0x27]
mov byte [rdi + 0x140], cl
mov qword [rdi], 0
mov qword [rdi + 8], rbx
mov qword [rdi + 0x80], 0
mov qword [rdi + 0x88], rbx
mov rcx, qword [rsp + 0x28]
mov qword [rdi + 0x100], rcx
mov qword [rdi + 0x108], rbp
mov qword [rdi + 0x110], rax
mov rax, qword [rsi + 0x10]
shl rax, 1
test rax, rax
jne 0x14002c828
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r8, qword [rsi + 0x18]
mov rcx, qword [0x141d1d0f0]
xor edx, edx
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.14004dc58
ud2
Function at 0x14002c850
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov esi, dword [0x14005d0a8]
test esi, esi
je 0x14002c8d3
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14002c8cb
je 0x14002c8c9
movzx eax, byte [0x141d1d110]
mov edx, 0x10
xor ecx, ecx
call fcn.140040a50
test rax, rax
je 0x14002c8f0
mov qword [rax], 0
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x14002c8c4
mov rcx, qword [0x141d1d0f0]
xor edx, edx
mov r8, rdi
call fcn.14004dc58
mov rax, rsi
jmp 0x14002c8cb
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x14005d090]
call fcn.140031460
mov esi, eax
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14002c870
jmp 0x14002c8cb
ud2
Function at 0x140030810
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov esi, dword [0x14005d068]
test esi, esi
je 0x1400308b2
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x1400308aa
je 0x140030853
test rdi, rdi
je 0x140030857
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x140030859
mov rbx, qword [rdi + 8]
jmp 0x140030859
xor eax, eax
jmp 0x1400308aa
xor ebx, ebx
movzx eax, byte [0x141d1d110]
mov edx, 0x10
xor ecx, ecx
call fcn.140040a50
test rax, rax
je 0x1400308d3
mov qword [rax], rbx
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x1400308a7
mov rcx, qword [0x141d1d0f0]
xor edx, edx
mov r8, rdi
call fcn.14004dc58
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x14005d050]
call fcn.140031460
mov esi, eax
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140030837
jmp 0x1400308aa
ud2

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov esi, dword [0x14005d088]
test esi, esi
je 0x140030981
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x140030979
je 0x140030977
movzx eax, byte [0x141d1d110]
mov edx, 0x10
xor ecx, ecx
call fcn.140040a50
test rax, rax
je 0x1400309a2
mov qword [rax], 0
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.KERNEL32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x140030972
mov rax, qword [rdi]
test rax, rax
je 0x140030961
lock dec qword [rax]
jne 0x140030961
mov rcx, qword [rdi]
call fcn.14002fe90
mov rcx, qword [0x141d1d0f0]
xor edx, edx
mov r8, rdi
call fcn.14004dc58
mov rax, rsi
jmp 0x140030979
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x14005d070]
call fcn.140031460
mov esi, eax
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140030904
jmp 0x140030979
ud2