joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400081c0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14000821d
lea rbx, [0x140048810]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140008204
cmp r10, 2
jb 0x140008204
cmp byte [r9], r8b
jne 0x140008204
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x1400081e0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000825f
lea rbx, [0x140048810]
cmp r8b, 0x23
jne 0x140008243
cmp byte [r9], r8b
jne 0x140008243
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140008230
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x1400083a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x1400083ba
mov qword [r8], 0
lea rdx, [0x14004cbbc]
call fcn.140008270
mov rbx, rax
test rax, rax
jne 0x1400083da
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x1400084b1
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400084b1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x1400084b1
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400084b1
cmp rdi, 0xffffffffffffffff
je 0x1400084b1
mov rax, qword [0x1400559c8]
test rax, rax
je 0x14000844e
inc dword [rax + 0x3b0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x1400084b1
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x14000849e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1400559c8]
test rax, rax
je 0x140008493
dec dword [rax + 0x3b0]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1400084ba
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x1400084ac
mov qword [r14], rdi
mov rax, rsi
jmp 0x1400084bc
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140016390
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x28
mov rax, qword [0x1400559c8]
lea r10, [0x140048810]
mov r9, qword [rax + 0x1d18]
movsxd rdx, dword [r9 + 0x108]
mov rax, qword [r9 + 0x110]
mov r8d, dword [rax + rdx*4 - 4]
not r8d
movzx eax, cl
movzx edx, r8b
shr r8d, 8
xor rdx, rax
movzx eax, byte [rsp + 0x31]
xor r8d, dword [r10 + rdx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0x32]
xor r8d, dword [r10 + rcx*4]
movzx ecx, r8b
shr r8d, 8
xor rcx, rax
movzx eax, byte [rsp + 0x33]
xor r8d, dword [r10 + rcx*4]
lea rcx, [r9 + 0x108]
movzx edx, r8b
xor rdx, rax
shr r8d, 8
xor r8d, dword [r10 + rdx*4]
lea rdx, [rsp + 0x30]
not r8d
mov dword [rsp + 0x30], r8d
call fcn.140027b20
add rsp, 0x28
ret

Function at 0x140016f10
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140055040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x1400559c8]
mov edi, edx
cmp byte [rbx + 0x20d5], 0
jne 0x140016f70
cmp byte [rbx + 0x20d6], 0
jne 0x140016f70
mov r9d, dword [rbx + 0x3178]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140008140
test dil, 1
je 0x140017096
jmp 0x140016fff
movss xmm1, dword [rbx + 0x16ec]
lea r8, str.Tooltip__02d
mov r9d, dword [rbx + 0x3178]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x14004d344]
mulss xmm1, dword [0x14004d338]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0x120]
addss xmm1, dword [rbx + 0x124]
mov qword [rbx + 0x1ddc], rax
mov dword [rbx + 0x1dc4], 1
movss dword [rbx + 0x1dd4], xmm0
mov byte [rbx + 0x1dfc], 1
movss dword [rbx + 0x1dd8], xmm1
movss xmm0, dword [rbx + 0x1748]
mulss xmm0, dword [0x14004d298]
or dword [rbx + 0x1dc0], 0x41
movss dword [rbx + 0x1e20], xmm0
call fcn.140008140
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140017050
lea r11, [0x140048810]
nop
cmp r9b, 0x23
jne 0x140017033
cmp byte [r8], r9b
jne 0x140017033
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140017020
not ecx
call fcn.14000feb0
test rax, rax
je 0x140017096
cmp byte [rax + 0xcf], 0
je 0x140017096
mov byte [rax + 0xd6], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xf0], 1
lea rcx, [rsp + 0x20]
inc dword [rbx + 0x3178]
mov edx, 0x10
mov r9d, dword [rbx + 0x3178]
call fcn.140008140
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x22c0347
call fcn.140012950
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140045c90
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14001bc30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x3260], 0
lea rbx, [rcx + 0x3268]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x14001bcd7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14001bc8a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.140028390
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140008a60
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x3260]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x3270]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x14005596f]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14001bcdf
mov rcx, rbx
call fcn.140008a60
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x14001c030
Capabilities:
Hash data with crc32

Disassembly:
push rbx
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov rbx, rcx
mov eax, r10d
test r9b, r9b
je 0x14001c082
lea r11, [0x140048810]
cmp r9b, 0x23
jne 0x14001c065
cmp byte [r8], r9b
jne 0x14001c065
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x14001c052
mov r11, qword [0x1400559c8]
mov r10, qword [r11 + 0x3228]
test r10, r10
je 0x14001c0c9
lea r9, [r10 + 4]
test r9, r9
je 0x14001c0c9
not eax
cmp dword [r9], eax
je 0x14001c0d2
movsxd r8, dword [r9 - 4]
movsxd rdx, dword [r11 + 0x3220]
add r8, r9
add rdx, 4
xor r9d, r9d
add rdx, r10
cmp r8, rdx
cmovne r9, r8
test r9, r9
jne 0x14001c0a0
mov rcx, rbx
pop rbx
jmp fcn.14001bf40
mov rax, r9
pop rbx
ret
Function at 0x14001f560
Capabilities:
Hash data with crc32

Disassembly:
test r8d, r8d
jle 0x14001f79e
mov r11, rsp
push rbp
push rsi
sub rsp, 0x58
mov rax, qword [0x140055040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [r11 - 0x18], rdi
mov rbp, rcx
mov qword [r11 - 0x20], r14
lea rdi, [rdx + 0x1a]
mov qword [r11 - 0x28], r15
mov r14d, 0xffffffff
lea r15, [0x140048810]
mov qword [r11 + 0x18], rbx
movsxd rsi, r8d
nop dword [rax + rax]
mov edx, dword [rdi - 0x1a]
test edx, edx
je 0x14001f766
mov rcx, rbp
call fcn.14001ec40
mov r9d, dword [rdi - 0x16]
mov rbx, rax
test r9d, r9d
je 0x14001f631
movsxd rdx, dword [rbp + 0x31c0]
mov r8, qword [rbp + 0x31c8]
mov r10, rdx
shl r10, 4
add r10, r8
test rdx, rdx
je 0x14001f621
nop dword [rax]
mov rcx, rdx
shr rcx, 1
mov rax, rcx
add rax, rax
cmp dword [r8 + rax*8], r9d
jae 0x14001f619
lea r8, [r8 + rax*8]
mov rax, 0xffffffffffffffff
sub rax, rcx
add r8, 0x10
add rdx, rax
jmp 0x14001f61c
mov rdx, rcx
test rdx, rdx
jne 0x14001f5f0
cmp r8, r10
je 0x14001f631
cmp dword [r8], r9d
jne 0x14001f631
mov rcx, qword [r8 + 8]
jmp 0x14001f633
xor ecx, ecx
mov qword [rbx + 0x10], rcx
movsx eax, word [rdi - 2]
movd xmm1, eax
movsx eax, word [rdi]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
movss dword [rbx + 0x40], xmm1
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x44], xmm0
movsx eax, word [rdi + 2]
movd xmm1, eax
movsx eax, word [rdi + 4]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
movss dword [rbx + 0x48], xmm1
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x4c], xmm0
movsx eax, word [rdi + 6]
movd xmm1, eax
movsx eax, word [rdi + 8]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
mov eax, dword [rbx + 0xb8]
and eax, 0xfffffe49
movss dword [rbx + 0x50], xmm1
or eax, 0x49
mov dword [rbx + 0xb8], eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x54], xmm0
test rcx, rcx
je 0x14001f6c7
cmp qword [rcx + 0x18], 0
jne 0x14001f6bc
mov qword [rcx + 0x18], rbx
jmp 0x14001f6c7
cmp qword [rcx + 0x20], 0
jne 0x14001f6c7
mov qword [rcx + 0x20], rbx
mov eax, dword [rdi - 0xe]
mov r9, rbx
mov dword [rbx + 0xb0], eax
movsx eax, byte [rdi - 0xa]
mov dword [rbx + 0x58], eax
mov eax, dword [rdi - 6]
and eax, 0x61fc20
or dword [rbx + 8], eax
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x14001f6fc
nop
mov r9, rax
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14001f6f0
mov r9d, dword [r9]
lea r8, str.DockNode__02X
mov edx, 0x14
lea rcx, [rsp + 0x20]
call fcn.140008140
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov ecx, r14d
test r9b, r9b
je 0x14001f758
cmp r9b, 0x23
jne 0x14001f73b
cmp byte [r8], r9b
jne 0x14001f73b
cmp byte [r8 + 1], r9b
cmove ecx, r14d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r15 + rdx*4]
test r9b, r9b
jne 0x14001f728
not ecx
call fcn.14000feb0
mov qword [rbx + 0x80], rax
add rdi, 0x24
sub rsi, 1
jne 0x14001f5b0
mov r15, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140045c90
add rsp, 0x58
pop rsi
pop rbp
ret
Function at 0x1400467d8
Capabilities:
Parse pe header

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

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 rdi, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1400cd12d
xor eax, eax
jmp 0x1400cd227
cmp qword [rcx + 0x68], 0
je 0x1400cd141
lfence
call fcn.140020730
jmp 0x1400cd227
mov rax, qword [rcx + 0x38]
mov rbp, rdi
mov rdx, qword [rax]
test rdx, rdx
je 0x1400cd158
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400cd15a
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400cd18c
cmp rax, rdi
mov rbx, rdi
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1400ebf80
mov rax, qword [rsi + 0x50]
add r14, rbx
sub rbp, rbx
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400cd21e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400cd1c7
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov rbx, rbp
mov r15d, 0xfff
jmp 0x1400cd1f7
mov r9, qword [rsi + 0x80]
mov r8, r15
mov edx, 1
mov rcx, r14
call fcn.14010ca04
sub rbp, rax
add r14, rax
mov rbx, rbp
cmp rax, r15
jne 0x1400cd21e
cmp rbp, r15
ja 0x1400cd1d2
test rbx, rbx
je 0x1400cd21e
mov r9, qword [rsi + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, r14
call fcn.14010ca04
mov rbp, rbx
sub rbp, rax
sub rdi, rbp
mov rax, rdi
lfence
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

Function at 0x14011152c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14011131c
Function at 0x14003f6c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1028
call fcn.140110990
sub rsp, rax
mov ecx, dword [0x140117018]
test ecx, ecx
je 0x14003f6fc
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14003f715
mov rdi, rax
cmp qword [rax + 8], 0
je 0x14003f715
add rdi, 0x10
jmp 0x14003f931
lea rcx, section..data
call fcn.1400f37b0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14003f6e9
mov ecx, dword [0x140117018]
test ecx, ecx
je 0x14003f912
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14003f92f
mov rsi, rax
test rax, rax
jne 0x14003f785
movzx eax, byte [0x140188180]
mov edx, 0x18
xor ecx, ecx
call fcn.1400f2120
test rax, rax
je 0x14003f957
mov rsi, rax
lea rax, section..data
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140117018]
test ecx, ecx
je 0x14003f959
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov rax, qword [0x140188080]
cmp rax, 3
jne 0x14003f941
mov rdi, qword [0x140188088]
lock inc qword [rdi]
jle 0x14003f957
mov eax, 0x60
movups xmm0, xmmword [0x140123b98]
movups xmm1, xmmword [0x140123b88]
nop word [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 0x14003f7c0
lea rcx, [rsp + 0x820]
lea rdx, [rsp + 0x20]
mov r8d, 0x800
call sub.msvcrt.dll_memcpy
movzx eax, byte [0x140188180]
mov edx, 0x980
xor ecx, ecx
call fcn.1400f2120
test rax, rax
je 0x14003f957
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 + 0x820]
mov r8d, 0x800
call sub.msvcrt.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 rcx, qword [0x140188088]
mov rax, qword [rcx + 0x200]
mov qword [r14 + 0x80], rax
lock cmpxchg qword [rcx + 0x200], rbx
je 0x14003f8ce
nop word cs:[rax + rax]
mov qword [rbx], rax
lock cmpxchg qword [rcx + 0x200], rbx
jne 0x14003f8c0
lea rdi, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 8], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], rbx
je 0x14003f931
mov rax, qword [rcx + 0x820]
lea rdx, [rax - 1]
mov qword [rcx + 0x820], rdx
cmp qword [rcx + 0x818], 0
jne 0x14003f931
cmp rax, 1
jne 0x14003f931
call fcn.14003f000
jmp 0x14003f931
lea rcx, section..data
call fcn.1400f37b0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14003f734
xor edi, edi
mov rax, rdi
add rsp, 0x1028
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.14003e9c0
mov rdi, qword [0x140188088]
lock inc qword [rdi]
jg 0x14003f7a7
ud2
lea rcx, section..data
call fcn.1400f37b0
mov ecx, eax
jmp 0x14003f77d
Function at 0x140044dd0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov ecx, dword [0x140117160]
test ecx, ecx
je 0x140044e00
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140044e19
cmp qword [rax + 8], 0
je 0x140044e19
add rax, 0x10
jmp 0x140044ed2
lea rcx, [0x140117148]
call fcn.1400f37b0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x140044df0
mov ecx, dword [0x140117160]
test ecx, ecx
je 0x140044eb3
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140044ed0
mov rdi, rax
test rax, rax
jne 0x140044e85
movzx eax, byte [0x140188180]
mov edx, 0x18
xor ecx, ecx
call fcn.1400f2120
test rax, rax
je 0x140044ee9
mov rdi, rax
lea rax, [0x140117148]
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x140117160]
test ecx, ecx
je 0x140044ed9
dec ecx
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
test rsi, rsi
je 0x140044e9f
mov rcx, qword [rsi]
mov qword [rsi], 0
test rcx, rcx
je 0x140044ea1
mov rcx, qword [rsi + 8]
jmp 0x140044ea1
xor ecx, ecx
lea rax, [rdi + 0x10]
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rcx
jmp 0x140044ed2
lea rcx, [0x140117148]
call fcn.1400f37b0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x140044e38
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x140117148]
call fcn.1400f37b0
mov ecx, eax
jmp 0x140044e7d
ud2
Function at 0x140079f30
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 0x140079f72
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 4
jb 0x140079f7a
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x140079f8b
jmp 0x140079fa2
xor r10d, r10d
jmp 0x14007a02d
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x140079fa2
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x140079fb9
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 0x140079fd9
add r11, r8
jmp 0x14007a10a
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x14007a0a2
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x14007a050
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 4
jb 0x14007a0c0
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x14007a0d2
jmp 0x14007a0ec
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x14007a0ec
lea rcx, [r8 + r10]
movzx esi, word [rdx + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x14007a106
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 0x1400842d0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov r13, rdx
mov r14, rcx
mov rdi, qword [rcx + 8]
mov r12, qword [rcx + 0x10]
test r12, r12
je 0x14008431f
mov rax, r12
shr rax, 0x3d
jne 0x14008431d
lea r15, [r12*4]
movzx eax, byte [0x140188180]
xor ecx, ecx
mov rdx, r15
call fcn.1400f2120
mov rbx, rax
test rax, rax
jne 0x14008432c
ud2
lea r15, [r12*4]
mov ebx, 4
mov rcx, rbx
mov rdx, rdi
mov r8, r15
call sub.msvcrt.dll_memcpy
mov r8, qword [r13 + 0x28]
mov rax, qword [r13 + 0x158]
and eax, 0x3f
mov r9, r8
mov ecx, eax
shr r9, cl
lea rcx, [r14 + 0x18]
test r9, r9
je 0x140084460
mov rcx, qword [rcx]
and ecx, 0x3f
xor edx, edx
jmp 0x140084378
inc rdx
cmp rdx, r9
je 0x1400843ab
mov r10, rdx
shl r10, cl
cmp rdx, r12
je 0x14008431d
mov esi, dword [rbx + rdx*4]
cmp esi, r10d
je 0x140084370
nop dword [rax + rax]
mov r11d, esi
mov esi, esi
shr rsi, cl
cmp rsi, r12
jae 0x14008431d
mov esi, dword [rbx + rsi*4]
cmp esi, r10d
jne 0x140084390
mov dword [rdi + rdx*4], r11d
jmp 0x140084370
lea rcx, [r14 + 0x18]
test r9, r9
je 0x140084460
mov rdx, qword [r13 + 0x150]
mov qword [rsp + 0x40], rdx
test rdx, rdx
je 0x140084460
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r13
mov r15, qword [r13 + 0x20]
mov qword [rsp + 0x28], rcx
mov rdx, qword [rcx]
and edx, 0x3f
xor esi, esi
movabs rbp, 0x7ffffffffff
nop word cs:[rax + rax]
mov r13, rsi
inc rsi
mov ecx, eax
shl r13, cl
mov r11, qword [rsp + 0x40]
cmp r13, r8
jae 0x14008431d
mov r14, qword [r15 + r13*8]
mov r10, r14
shr r10, 0x2b
mov ecx, edx
shr r10, cl
cmp r10, r12
jae 0x14008431d
mov ecx, dword [rdi + r10*4]
shl rcx, 0x2b
and r14, rbp
or r14, rcx
mov qword [r15 + r13*8], r14
inc r13
dec r11
jne 0x140084410
cmp rsi, r9
jne 0x140084400
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
mov rax, qword [r13 + 0x40]
test rax, rax
je 0x1400844a2
mov rdx, qword [r13 + 0x38]
mov rcx, qword [rcx]
and ecx, 0x3f
xor r8d, r8d
nop word cs:[rax + rax]
mov r9d, dword [rdx + r8*4]
shr r9, cl
cmp r9, r12
jae 0x14008431d
mov r9d, dword [rdi + r9*4]
mov dword [rdx + r8*4], r9d
inc r8
cmp rax, r8
jne 0x140084480
jmp 0x1400844a7
test r12, r12
je 0x1400844b8
mov rcx, qword [0x140188170]
xor edx, edx
mov r8, rbx
call sub.KERNEL32.dll_HeapFree
cmp qword [r14], 0
je 0x1400844e0
mov r8, qword [r14 + 8]
mov rcx, qword [0x140188170]
xor edx, edx
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp sub.KERNEL32.dll_HeapFree
nop
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400bfe60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov ecx, dword [0x140117078]
test ecx, ecx
je 0x1400bfe90
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400bfea9
cmp qword [rax + 8], 0
je 0x1400bfea9
add rax, 0x10
jmp 0x1400bff6f
lea rcx, [0x140117060]
call fcn.1400f37b0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x1400bfe80
mov ecx, dword [0x140117078]
test ecx, ecx
je 0x1400bff50
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400bff6d
mov rdi, rax
test rax, rax
jne 0x1400bff15
movzx eax, byte [0x140188180]
mov edx, 0x18
xor ecx, ecx
leave
call fcn.1400f2120
test rax, rax
je 0x1400bff86
mov rdi, rax
lea rax, [0x140117060]
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x140117078]
test ecx, ecx
leave
je 0x1400bff76
dec ecx
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
test rsi, rsi
je 0x1400bff2b
mov rcx, qword [rsi + 8]
cmp qword [rsi], 0
mov qword [rsi], 0
jne 0x1400bff3e
mov ecx, 1
lock xadd qword [0x140117058], rcx
test rcx, rcx
je 0x1400bff86
lea rax, [rdi + 0x10]
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rcx
jmp 0x1400bff6f
lea rcx, [0x140117060]
call fcn.1400f37b0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x1400bfec8
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x140117060]
call fcn.1400f37b0
mov ecx, eax
jmp 0x1400bff0d
ud2