joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400acec0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov rdi, r8
mov rsi, rdx
mov r14, rcx
mov rbx, qword [rdx]
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400acf12
nop dword [rax]
cmp qword [rax], rbx
je 0x1400ad07e
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400acf00
mov qword [rbp + 0x27], rdi
mov rdx, rdi
mov ecx, 0x68
call fcn.1400227f0
mov rbx, rax
xor r15d, r15d
mov qword [rax + 0x20], r15
lea rax, [0x1400ad0b0]
mov qword [rbx + 0x28], rax
mov qword [rbx], r15
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r15
mov dword [rbx + 0x30], r15d
movups xmm0, xmmword [rdi]
movups xmmword [rbx + 0x38], xmm0
movsd xmm1, qword [rdi + 0x10]
movsd qword [rbx + 0x48], xmm1
movups xmm0, xmmword [rdi + 0x18]
movups xmmword [rbx + 0x50], xmm0
mov rax, qword [rdi + 0x28]
mov qword [rbx + 0x60], rax
mov r8, rbx
mov rdx, rsi
mov rcx, r14
call fcn.140025350
mov qword [rbp + 0x37], r15
mov qword [rbp + 0x2f], r15
test al, al
je 0x1400ad061
mov rax, qword [rsi]
mov qword [rbp - 0x49], rax
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rbp - 0x39], rax
lea rax, [rbp - 0x49]
mov qword [rbp - 0x41], rax
lea rdx, [rbp - 0x49]
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rdi, qword [r14 + 0x28]
mov qword [rbp - 0x19], rdi
mov rax, qword [rsi]
mov qword [rbp - 0x11], rax
mov qword [rbp - 0x29], rbx
mov qword [rbp - 0x21], rbx
movups xmm0, xmmword [rbx + 0x38]
movups xmmword [rbp - 9], xmm0
movsd xmm1, qword [rbx + 0x48]
movsd qword [rbp + 7], xmm1
movups xmm0, xmmword [rbx + 0x50]
movups xmmword [rbp + 0xf], xmm0
mov rax, qword [rbx + 0x60]
mov qword [rbp + 0x1f], rax
lea rax, [rbp - 9]
mov qword [rbp - 0x31], rax
test rbx, rbx
je 0x1400ad01b
mov qword [rbp - 0x21], r15
lea r8, [rbp - 9]
lea edx, [r15 + 0x68]
mov rcx, rbx
call fcn.140022880
mov ebx, r15d
mov qword [rbp - 0x29], rbx
test rdi, rdi
je 0x1400ad02f
lea rdx, [rbp - 9]
lea rcx, [rbp - 9]
call fcn.1400adb10
nop
nop
test rbx, rbx
je 0x1400ad046
lea r8, [rbp - 9]
mov edx, 0x68
mov rcx, rbx
call fcn.140022880
nop
lea rcx, [rbp - 0x19]
call fcn.140025130
nop
mov rdx, qword [rbp - 0x39]
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
cmp qword [rax + 8], 0
je 0x1400acf12
nop
mov rdx, rdi
mov rcx, rdi
call fcn.1400adb10
nop
nop
jmp 0x1400ad061
Function at 0x1400ad160
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 0x10]
mov rdi, rcx
test rbx, rbx
je 0x1400ad1bd
mov rbx, qword [rbx + 0x30]
test rbx, rbx
je 0x1400ad1b5
mov qword [rsp + 0x30], rsi
mov esi, 0xffffffff
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400ad1b0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x1400ad1b0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rsi, qword [rsp + 0x30]
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x1400ad214
mov ecx, dword [0x140312328]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400ad204
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x1400ad204
cmp qword [rcx + 0x10], 0
jne 0x1400ad204
movzx eax, byte [rbx + 0x50]
mov byte [rbx], al
mov qword [rcx + 0x10], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call fcn.140219624
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400ad300
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov r8, rdx
mov rax, qword [rcx + 0x10]
mov qword [rbp - 0x39], rax
mov rax, qword [rcx + 0x18]
mov qword [rbp - 0x31], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
mov rdx, qword [rcx + 0x28]
test rdx, rdx
je 0x1400ad34d
lock inc dword [rdx + 8]
mov rdx, qword [rcx + 0x28]
mov rax, qword [rcx + 0x20]
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], rdx
movups xmm0, xmmword [r8]
movups xmmword [rbp - 0x19], xmm0
mov rsi, qword [rcx]
lea rdi, [rcx + 8]
mov rbx, qword [rdi]
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400ad392
nop dword [rax]
cmp qword [rax], rbx
je 0x1400ad4de
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400ad380
lea rax, [rbp - 0x39]
mov qword [rbp + 0x1f], rax
lea rdx, [rbp - 0x39]
mov ecx, 0x68
call fcn.1400227f0
mov rbx, rax
xor r14d, r14d
mov qword [rax + 0x20], r14
lea rax, [fcn.1400ae1a0]
mov qword [rbx + 0x28], rax
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
mov dword [rbx + 0x30], r14d
mov rcx, qword [rbp - 0x39]
mov qword [rbx + 0x38], rcx
mov rax, qword [rbp - 0x31]
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x48], r14
mov qword [rbx + 0x50], r14
mov rax, qword [rbp - 0x29]
mov qword [rbx + 0x48], rax
mov rax, qword [rbp - 0x21]
mov qword [rbx + 0x50], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
movups xmm0, xmmword [rbp - 0x19]
movups xmmword [rbx + 0x58], xmm0
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.140025350
mov qword [rbp + 0x2f], r14
mov qword [rbp + 0x27], r14
test al, al
je 0x1400ad48c
mov rax, qword [rdi]
mov qword [rbp - 9], rax
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rbp + 7], rax
lea rax, [rbp - 9]
mov qword [rbp - 1], rax
lea rdx, [rbp - 9]
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rsi + 0x28]
mov qword [rbp + 0xf], rcx
mov rax, qword [rdi]
mov qword [rbp + 0x17], rax
xor r9d, r9d
lea r8, [rbp + 0x37]
mov rdx, rbx
call fcn.1400ae1a0
nop
lea rcx, [rbp + 0xf]
call fcn.140025130
nop
mov rdx, qword [rbp + 7]
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rbx, qword [rbp - 0x21]
test rbx, rbx
je 0x1400ad4c1
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400ad4c1
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1400ad4c1
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
cmp qword [rax + 8], 0
je 0x1400ad392
nop
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x39]
call fcn.1400ae5b0
nop
nop
jmp 0x1400ad48c
Function at 0x1400adb40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x80
mov rdi, r8
mov rsi, rdx
mov rbp, rcx
mov rbx, qword [rdx]
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400adb92
nop word [rax + rax]
cmp qword [rax], rbx
je 0x1400adcf2
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400adb80
mov qword [rsp + 0x58], rdi
mov rdx, rdi
mov ecx, 0x98
call fcn.1400227f0
mov rbx, rax
xor r14d, r14d
mov qword [rax + 0x20], r14
lea rax, [fcn.1400adfd0]
mov qword [rbx + 0x28], rax
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
mov dword [rbx + 0x30], r14d
mov rcx, qword [rdi]
mov qword [rbx + 0x38], rcx
mov rax, qword [rdi + 8]
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x48], r14
mov qword [rbx + 0x50], r14
mov rax, qword [rdi + 0x10]
mov qword [rbx + 0x48], rax
mov rax, qword [rdi + 0x18]
mov qword [rbx + 0x50], rax
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r14
movups xmm0, xmmword [rdi + 0x20]
movups xmmword [rbx + 0x58], xmm0
mov rax, qword [rdi + 0x30]
mov qword [rbx + 0x68], rax
mov rax, qword [rdi + 0x38]
mov qword [rbx + 0x70], rax
mov qword [rbx + 0x78], r14
mov qword [rbx + 0x80], r14
mov rax, qword [rdi + 0x40]
mov qword [rbx + 0x78], rax
mov rax, qword [rdi + 0x48]
mov qword [rbx + 0x80], rax
mov qword [rdi + 0x40], r14
mov qword [rdi + 0x48], r14
movups xmm0, xmmword [rdi + 0x50]
movups xmmword [rbx + 0x88], xmm0
mov r8, rbx
mov rdx, rsi
mov rcx, rbp
call fcn.140025350
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x60], r14
test al, al
je 0x1400adcd4
mov rax, qword [rsi]
mov qword [rsp + 0x40], rax
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rbp + 0x28]
mov qword [rsp + 0x20], rcx
mov rax, qword [rsi]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea r8, [rsp + 0x30]
mov rdx, rbx
call fcn.1400adfd0
nop
lea rcx, [rsp + 0x20]
call fcn.140025130
nop
mov rdx, qword [rsp + 0x50]
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
cmp qword [rax + 8], 0
je 0x1400adb92
nop
mov rdx, rdi
mov rcx, rdi
call fcn.1400ae680
nop
nop
jmp 0x1400adcd4
Function at 0x1400ae680
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
add rcx, 0x20
lea rdx, [rcx + 0x30]
add rsp, 0x28
jmp fcn.1400ad300

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x80
mov rdi, rdx
mov rbp, qword [r8]
lea rsi, [r8 + 8]
mov rbx, qword [rsi]
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400ae702
nop dword [rax + rax]
cmp qword [rax], rbx
je 0x1400ae86d
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400ae6f0
mov qword [rsp + 0x58], rdi
mov rdx, rdi
mov ecx, 0xd0
call fcn.1400227f0
mov rbx, rax
xor r14d, r14d
mov qword [rax + 0x20], r14
lea rax, [fcn.1400ae8d0]
mov qword [rbx + 0x28], rax
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
mov dword [rbx + 0x30], r14d
movups xmm0, xmmword [rdi]
movups xmmword [rbx + 0x38], xmm0
movsd xmm1, qword [rdi + 0x10]
movsd qword [rbx + 0x48], xmm1
mov rax, qword [rdi + 0x18]
mov qword [rbx + 0x50], rax
movups xmm0, xmmword [rdi + 0x20]
movups xmmword [rbx + 0x58], xmm0
movsd xmm1, qword [rdi + 0x30]
movsd qword [rbx + 0x68], xmm1
mov eax, dword [rdi + 0x38]
mov dword [rbx + 0x70], eax
mov rax, qword [rdi + 0x40]
mov qword [rbx + 0x78], rax
mov rax, qword [rdi + 0x48]
mov qword [rbx + 0x80], rax
movups xmm0, xmmword [rdi + 0x58]
movups xmmword [rbx + 0x90], xmm0
movups xmm0, xmmword [rdi + 0x68]
movups xmmword [rbx + 0xa0], xmm0
movsd xmm1, qword [rdi + 0x78]
movsd qword [rbx + 0xb0], xmm1
movups xmm0, xmmword [rdi + 0x80]
movups xmmword [rbx + 0xb8], xmm0
mov rax, qword [rdi + 0x90]
mov qword [rbx + 0xc8], rax
mov r8, rbx
mov rdx, rsi
mov rcx, rbp
call fcn.140025350
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x60], r14
test al, al
je 0x1400ae84f
mov rax, qword [rsi]
mov qword [rsp + 0x40], rax
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov rcx, qword [rbp + 0x28]
mov qword [rsp + 0x20], rcx
mov rax, qword [rsi]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea r8, [rsp + 0x30]
mov rdx, rbx
call fcn.1400ae8d0
nop
lea rcx, [rsp + 0x20]
call fcn.140025130
nop
mov rdx, qword [rsp + 0x50]
mov ecx, dword [0x140312360]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
cmp qword [rax + 8], 0
je 0x1400ae702
nop
mov rdx, rdi
mov rcx, rdi
call fcn.1400ae9f0
nop
nop
jmp 0x1400ae84f
Function at 0x1400c9220
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140304470]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r15, r8
mov rsi, rdx
mov rdi, rcx
mov rcx, rdx
cmp qword [rdx + 0x18], 8
jb 0x1400c9254
mov rcx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14d, eax
cmp eax, 0xffffffff
jne 0x1400c9275
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call fcn.1400c90f0
jmp 0x1400c93ed
mov edx, r14d
mov rcx, rsi
call fcn.1400c8fc0
mov r12d, eax
xor ebp, ebp
bt r14d, 0xa
jae 0x1400c93aa
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x1400c929d
mov rdx, qword [rsi]
mov qword [rsp + 0x48], rbp
movdqa xmm0, xmmword [0x1402c5790]
movdqu xmmword [rsp + 0x58], xmm0
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], bp
jne 0x1400c92c0
lea rcx, [rsp + 0x48]
call fcn.14005a1e0
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x1400c9356
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c9351
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400c9351
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14021962c
movdqa xmm0, xmmword [0x1402c5790]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], bp
cmp rbx, 0xffffffffffffffff
jne 0x1400c9380
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call fcn.1400c90f0
nop
jmp 0x1400c93ed
mov rcx, rsi
call fcn.1400c8ee0
test al, al
jne 0x1400c93a1
mov dword [rdi], 9
mov dword [rdi + 4], r12d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400c93ed
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r15, r15
je 0x1400c93c2
mov dword [r15], ebp
mov byte [r15 + 4], 0
lea rax, [0x1402b2d00]
mov qword [r15 + 8], rax
and r14d, 0x10
je 0x1400c93ce
mov eax, dword [rsp + 0x40]
jmp 0x1400c93d6
mov eax, r12d
mov r12d, dword [rsp + 0x40]
test r14d, r14d
setne bpl
add ebp, 2
mov dword [rdi], ebp
test r14d, r14d
cmove r12d, eax
mov dword [rdi + 4], r12d
mov rax, rdi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140219010
add rsp, 0x70
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140122e10
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.140219dd0
sub rsp, rax
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x14012dd60
Capabilities:
Get thread local storage value

Disassembly:
mov eax, 0x28
call fcn.140219dd0
sub rsp, rax
lea rcx, [0x14030edb8]
add rsp, 0x28
jmp fcn.140122c70
Function at 0x140142650
Capabilities:
Encode data using xor

Disassembly:
xor r9b, r9b
mov r10, rdx
test r8, r8
je 0x140142677
sub r10, rcx
nop
movzx edx, byte [r10 + rcx]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
xor dl, al
or r9b, dl
sub r8, 1
jne 0x140142660
movzx eax, r9b
ret
Function at 0x140157900
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, gethostname
call fcn.140219dd0
sub rsp, rax
mov r10, r8
mov r11, rcx
test r9, r9
jne 0x14015793f
mov edx, 0xe2
mov dword [rsp + 0x20], 0x9a
lea r9, str.crypto_asn1_a_int.c
lea ecx, [rax - 0x2b]
lea r8d, [rdx - 4]
call fcn.140118ac0
xor eax, eax
add rsp, 0x38
ret
movzx r8d, byte [r8]
and r8d, 0x80
test rdx, rdx
je 0x140157952
mov dword [rdx], r8d
cmp r9, 1
jne 0x140157974
test r11, r11
je 0x14015796a
movzx eax, byte [r10]
test r8d, r8d
je 0x140157968
neg al
mov byte [rcx], al
mov eax, 1
add rsp, 0x38
ret
movzx ecx, byte [r10]
mov qword [rsp + 0x40], rbx
xor ebx, ebx
mov eax, ebx
test cl, cl
jne 0x140157991
mov eax, 1
mov ebx, eax
jmp 0x140157a3f
cmp cl, 0xff
jne 0x140157a7d
mov eax, 1
lea rcx, [r9 - 1]
mov edx, ebx
cmp r9, rax
jbe 0x140157a2f
cmp rcx, 8
jb 0x140157a20
and ecx, 7
mov rdx, r9
sub rdx, rcx
xorps xmm2, xmm2
xorps xmm3, xmm3
movd xmm1, dword [rax + r10]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
por xmm2, xmm1
movd xmm1, dword [rax + r10 + 4]
punpcklbw xmm1, xmm0
add rax, 8
punpcklwd xmm1, xmm0
por xmm1, xmm3
movdqa xmm3, xmm1
cmp rax, rdx
jb 0x1401579c3
por xmm2, xmm1
movdqa xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movd edx, xmm2
cmp rax, r9
jae 0x140157a2f
nop
movzx ecx, byte [rax + r10]
inc rax
or edx, ecx
cmp rax, r9
jb 0x140157a20
test edx, edx
mov eax, ebx
setne al
test edx, edx
setne bl
test edx, edx
je 0x140157a7d
movzx ecx, byte [r10 + 1]
and ecx, 0x80
cmp r8d, ecx
jne 0x140157a7d
mov edx, 0xe2
mov dword [rsp + 0x20], 0xbb
lea r9, str.crypto_asn1_a_int.c
mov ecx, reloc.WS2_32.dll_listen
lea r8d, [rdx - 5]
call fcn.140118ac0
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x38
ret
mov ecx, eax
sub r9, rcx
test r11, r11
je 0x140157ad1
neg r8d
mov qword [rsp + 0x30], rdi
lea r8, [rbx + r10]
sbb edi, edi
add r8, r9
movzx edi, dil
mov ecx, edi
and ecx, 1
test r9, r9
je 0x140157acc
mov rdx, r8
sub rdx, rbx
sub rdx, r10
nop
movzx eax, byte [r8 - 1]
lea r8, [r8 - 1]
dec rdx
xor eax, edi
add ecx, eax
mov byte [rdx + r11], cl
shr ecx, 8
test rdx, rdx
jne 0x140157ab0
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
mov rax, r9
add rsp, 0x38
ret
Function at 0x140189bd0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x30
call fcn.140219dd0
sub rsp, rax
mov r10, r9
mov rbx, r8
mov r9, qword [rsp + 0xa0]
mov r14, rdx
mov rbp, rcx
mov edi, dword [r9]
mov dword [rsp + 0x80], edi
test edi, edi
je 0x140189c48
mov rdx, qword [rsp + 0x98]
nop dword [rax]
test rbx, rbx
je 0x140189c41
mov eax, edi
dec rbx
movzx ecx, byte [rax + rdx]
xor cl, byte [rbp]
inc rbp
mov byte [r14], cl
inc r14
inc edi
and edi, 0xf
jne 0x140189c20
mov dword [rsp + 0x80], edi
mov r8, qword [rsp + 0x90]
mov esi, 1
movzx r12d, byte [r8 + 0xc]
lea r15, [r8 + 0xc]
mov r11, qword [rsp + 0xa8]
shl r12d, 8
movzx eax, byte [r8 + 0xd]
lea r13d, [rsi + 0xb]
or r12d, eax
movzx eax, byte [r8 + 0xe]
shl r12d, 8
or r12d, eax
movzx eax, byte [r8 + 0xf]
shl r12d, 8
or r12d, eax
cmp rbx, 0x10
jb 0x140189d7e
mov eax, 0x10000000
mov edi, r13d
mov qword [rsp + 0x20], r8
mov rdx, rbx
shr rdx, 4
mov r9, r10
cmp rdx, rax
cmova rdx, rax
add r12d, edx
mov r13, rdx
mov eax, r12d
mov ecx, r12d
sub r13, rax
cmp rax, rdx
cmovae r13, rdx
xor r12d, r12d
cmp rax, rdx
mov r8, r13
mov rdx, r14
cmovae r12d, ecx
mov rcx, rbp
call r11
mov r8, qword [rsp + 0x90]
mov eax, r12d
shr eax, 0x18
mov byte [r15], al
mov eax, r12d
shr eax, 0x10
mov byte [r8 + 0xd], al
mov eax, r12d
shr eax, 8
mov byte [r8 + 0xe], al
mov byte [r8 + 0xf], r12b
test r12d, r12d
jne 0x140189d3d
mov r8d, edi
mov eax, esi
mov rdx, r15
nop dword [rax + rax]
movzx ecx, byte [rdx - 1]
lea rdx, [rdx - 1]
add eax, ecx
mov byte [rdx], al
shr eax, 8
add r8d, 0xffffffff
jne 0x140189d20
mov r8, qword [rsp + 0x90]
mov r10, qword [rsp + 0x88]
mov eax, 0x10000000
mov r11, qword [rsp + 0xa8]
shl r13, 4
sub rbx, r13
add r14, r13
add rbp, r13
cmp rbx, 0x10
jae 0x140189ca0
mov edi, dword [rsp + 0x80]
mov r13d, listen
mov r9, qword [rsp + 0xa0]
test rbx, rbx
je 0x140189e21
mov rax, qword [rsp + 0x98]
xorps xmm0, xmm0
mov qword [rsp + 0x20], r8
mov r9, r10
mov r8, rsi
mov rdx, rax
mov rcx, rax
movups xmmword [rax], xmm0
call r11
mov rcx, qword [rsp + 0x90]
inc r12d
mov eax, r12d
shr eax, 0x18
mov byte [r15], al
mov eax, r12d
shr eax, 0x10
mov byte [rcx + 0xd], al
mov eax, r12d
shr eax, 8
mov byte [rcx + 0xe], al
mov byte [rcx + 0xf], r12b
test r12d, r12d
jne 0x140189df7
nop dword [rax + rax]
movzx eax, byte [r15 - 1]
lea r15, [r15 - 1]
add esi, eax
mov byte [r15], sil
shr esi, 8
add r13d, 0xffffffff
jne 0x140189de0
mov rdx, qword [rsp + 0x98]
nop
mov ecx, edi
inc edi
movzx eax, byte [rcx + rbp]
xor al, byte [rcx + rdx]
mov byte [rcx + r14], al
sub rbx, 1
jne 0x140189e00
mov rax, qword [rsp + 0xa0]
mov dword [rax], edi
jmp 0x140189e24
mov dword [r9], edi
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14018a5a0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push r14
mov eax, 0x20
call fcn.140219dd0
sub rsp, rax
cmp qword [rcx + 0x38], 0
mov rbx, r8
mov r14, rdx
mov rbp, rcx
je 0x14018a5d0
mov eax, 0xfffffffe
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
mov rcx, qword [rcx + 0x30]
movabs rax, 0x2000000000000000
add rcx, rbx
cmp rcx, rax
ja 0x14018a6c2
cmp rcx, rbx
jb 0x14018a6c2
mov qword [rsp + 0x40], rsi
mov esi, dword [rbp + 0x174]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r12
mov qword [rbp + 0x30], rcx
test esi, esi
je 0x14018a645
test rbx, rbx
je 0x14018a6a2
movzx eax, byte [r14]
dec rbx
mov ecx, esi
inc r14
xor byte [rcx + rbp + 0x40], al
inc esi
and esi, 0xf
jne 0x14018a610
lea r12, [rbp + 0x60]
lea rdi, [rbp + 0x40]
mov rdx, r12
mov rcx, rdi
call fcn.14018bc50
jmp 0x14018a64d
lea r12, [rbp + 0x60]
lea rdi, [rbp + 0x40]
mov qword [rsp + 0x58], r15
mov r15, rbx
and r15, 0xfffffffffffffff0
je 0x14018a672
mov r9, r15
mov r8, r14
mov rdx, r12
mov rcx, rdi
call fcn.14018ba90
add r14, r15
sub rbx, r15
mov r15, qword [rsp + 0x58]
test rbx, rbx
je 0x14018a6a2
mov esi, ebx
sub r14, rbp
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r14 + rdi - 0x40]
xor byte [rdi], al
lea rdi, [rdi + 1]
sub rbx, 1
jne 0x14018a690
mov rdi, qword [rsp + 0x48]
xor eax, eax
mov r12, qword [rsp + 0x50]
mov dword [rbp + 0x174], esi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
mov eax, 0xffffffff
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret