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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rax, qword [rcx + 0x18]
mov rsi, qword [rcx + 0x10]
mov r14, rdx
mov rdx, qword [rcx + 0x40]
mov ebx, 0x64
mov qword [rcx + 0x20], rax
test rdx, rdx
je 0x10010570f
mov rax, qword [r14]
movzx r9d, byte [rdx + 6]
lea r8d, [rbx - 0x63]
mov rcx, r14
call qword [rax + reloc.WS2_32.dll_htonl]
test rsi, rsi
je 0x100105812
mov qword [rsp + 0x30], rbp
movabs rbp, 0x7fffffffffffffff
mov qword [rsp + 0x38], rdi
nop dword [rax]
mov r8, qword [rsi + 0x30]
mov rax, qword [r14]
mov rdx, rsi
movzx r9d, byte [rdx + 6]
mov rsi, qword [rsi + 0x40]
mov rcx, r14
call qword [rax + reloc.WS2_32.dll_htonl]
dec rbx
jne 0x1001057ff
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rdi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x10010577d
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x10010578e
mov rcx, qword [rbx + 0xd8]
test rcx, rcx
jne 0x1001057c5
call fcn.100063d30
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rdi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x1001057be
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rcx, qword [rbx + 0xd8]
rdtsc
mov r8, qword [rcx + 0x2f8]
shl rdx, 0x20
or rax, rdx
cmp rax, r8
ja 0x1001057f5
mov rdx, r8
sub rdx, rax
mov rax, qword [rcx + 0x218]
cmp rdx, qword [rax + 0xab0]
jbe 0x1001057fa
cmp r8, rbp
je 0x1001057fa
call fcn.1000655c0
mov ebx, 0x64
test rsi, rsi
jne 0x100105730
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x100105830
Capabilities:
Get thread local storage value

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
mov rdi, qword [rcx + 0x10]
mov qword [rsp + 0x40], rbp
mov r15, rdx
mov qword [rsp + 0x58], r14
mov ebp, 0x64
mov rbx, rcx
test rdx, rdx
jne 0x10010585b
mov r15, qword [rcx + 0x18]
mov r14, qword [rcx + 0x20]
lea rcx, [rdi + 0x40]
sub r14, 0x11
cmp qword [rcx], 0
je 0x1001059d8
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], r12
movabs r12, 0x7fffffffffffffff
nop word [rax + rax]
mov rsi, qword [rdi + 0x30]
mov rax, qword [rdi + 0x10]
imul rax, rsi
add rax, rdi
cmp rax, r14
jbe 0x1001058ad
cmp rdi, r14
jb 0x1001059ce
mov rdi, qword [rcx]
cmp rsi, 1
jne 0x1001058d0
cmp qword [rbx + 0x40], 0
jne 0x1001058d0
mov rax, qword [rdi + 0x38]
cmp byte [rax + 6], 2
je 0x1001058d0
mov qword [rbx + 0x40], rax
jmp 0x1001059bf
mov rcx, qword [rbx + 8]
mov rdx, qword [rdi + 0x38]
mov r8, rsi
mov rax, qword [rcx]
call qword [rax + 0x108]
neg rsi
add qword [rbx + 0x28], rsi
mov rax, qword [rbx + 0x28]
cmp rsi, 1
jg 0x1001058fb
cmp rsi, 0xffffffffffffffff
jge 0x1001058ff
add qword [rbx + 0x30], rsi
cmp rax, qword [rbx + 0x48]
jle 0x100105909
mov qword [rbx + 0x48], rax
dec rbp
jne 0x1001059bf
call fcn.100068a00
mov rsi, qword gs:[0x30]
mov rcx, rax
mov rbp, rax
add rsi, rax
call fcn.10006c530
test eax, eax
jne 0x10010593d
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rsi, rsi
je 0x10010594e
mov rcx, qword [rsi + 0xd8]
test rcx, rcx
jne 0x100105985
call fcn.100063d30
call fcn.100068a00
mov rsi, qword gs:[0x30]
mov rcx, rax
mov rbp, rax
add rsi, rax
call fcn.10006c530
test eax, eax
jne 0x10010597e
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov rcx, qword [rsi + 0xd8]
rdtsc
mov r8, qword [rcx + 0x2f8]
shl rdx, 0x20
or rax, rdx
cmp rax, r8
ja 0x1001059b5
mov rdx, r8
sub rdx, rax
mov rax, qword [rcx + 0x218]
cmp rdx, qword [rax + 0xab0]
jbe 0x1001059ba
cmp r8, r12
je 0x1001059ba
call fcn.1000655c0
mov ebp, 0x64
cmp qword [rdi + 0x40], 0
lea rcx, [rdi + 0x40]
jne 0x100105890
mov rsi, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
cmp qword [rdi + 0x30], 1
mov r14, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x40]
mov qword [rdi + 0x38], 0
jg 0x100105a01
mov rax, qword [rbx + 0x20]
mov qword [rdi + 0x20], rax
add rax, 0xfffffffffffffff0
mov qword [rdi + 0x28], rax
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x20], r15
call fcn.10006bc40
and dword [rbx + 0x38], 0xfffffffe
and eax, 1
or dword [rbx + 0x38], eax
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
add rcx, 0x38
jmp 0x100105830
Function at 0x100106650
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r14, rcx
mov r15, rdx
and r14, 0xffffffffffffe000
je 0x100106686
mov eax, 0x200
cmp word [r14 + 4], ax
jne 0x100106686
mov r14, qword [r14 + 0x28]
xor r12d, r12d
lea rsi, [rcx + 0x18]
movabs r13, 0x7fffffffffffffff
mov ebp, r12d
mov qword [rsp + 0x50], rdi
mov ebx, 0x64
nop word [rax + rax]
mov rdx, qword [rsi]
lea rax, [rsi - 8]
cmp rdx, rax
je 0x1001067bd
test rdx, rdx
je 0x1001067bd
add rdx, 0xfffffffffffffff0
je 0x1001067bd
mov rax, qword [rdx + 0x10]
mov rcx, qword [rdx + 0x18]
mov qword [rax + 8], rcx
mov qword [rcx], rax
mov qword [rdx + 0x18], r12
mov qword [rdx + 0x10], r12
cmp rdx, r14
je 0x100106703
mov rax, qword [r15]
movzx r9d, byte [rdx + 6]
mov r8d, 1
mov rcx, r15
call qword [rax + reloc.WS2_32.dll_htonl]
dec rbx
jne 0x1001066b0
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rdi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x100106733
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x100106744
mov rcx, qword [rbx + 0xd8]
test rcx, rcx
jne 0x10010677b
call fcn.100063d30
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rdi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x100106774
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rcx, qword [rbx + 0xd8]
rdtsc
mov r8, qword [rcx + 0x2f8]
shl rdx, 0x20
or rax, rdx
cmp rax, r8
ja 0x1001067b3
mov rdx, r8
sub rdx, rax
mov rax, qword [rcx + 0x218]
cmp rdx, qword [rax + 0xab0]
jbe 0x10010669f
cmp r8, r13
je 0x10010669f
call fcn.1000655c0
jmp 0x10010669f
inc ebp
add rsi, 0x10
cmp ebp, 9
jb 0x1001066b0
mov rax, qword [r15]
movzx r9d, byte [r14 + 6]
mov r8d, 1
mov rdx, r14
mov rcx, r15
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rsi
jmp qword [rax + reloc.WS2_32.dll_htonl]
Function at 0x1001072e0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r14, rcx
mov r15, rdx
mov rsi, rcx
mov ebx, 0x64
and r14, 0xffffffffffffe000
je 0x100107323
mov eax, 0x200
cmp word [r14 + 4], ax
jne 0x100107323
mov r14, qword [r14 + 0x28]
mov r13d, 7
lea r12, [rcx + 8]
mov qword [rsp + 0x50], r13
mov rbp, qword [r12]
test rbp, rbp
je 0x10010746e
movabs r13, 0x7fffffffffffffff
nop dword [rax]
mov rdx, rbp
mov rbp, qword [rbp + 0x28]
movsxd rax, dword [rdx + 0x10]
neg rax
add qword [rsi + 0x80], rax
mov rcx, qword [rsi + 0x80]
cmp rax, 1
jg 0x100107378
cmp rax, 0xffffffffffffffff
jge 0x10010737f
add qword [rsi + 0x88], rax
cmp rcx, qword [rsi + 0x98]
jle 0x10010738f
mov qword [rsi + 0x98], rcx
cmp rdx, r14
je 0x100107460
mov rax, qword [r15]
movzx r9d, byte [rdx + 6]
movsxd r8, dword [rdx + 0x10]
mov rcx, r15
call qword [rax + reloc.WS2_32.dll_htonl]
dec rbx
jne 0x100107460
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rdi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x1001073de
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x1001073ef
mov rcx, qword [rbx + 0xd8]
test rcx, rcx
jne 0x100107426
call fcn.100063d30
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rdi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x10010741f
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rcx, qword [rbx + 0xd8]
rdtsc
mov r8, qword [rcx + 0x2f8]
shl rdx, 0x20
or rax, rdx
cmp rax, r8
ja 0x100107456
mov rdx, r8
sub rdx, rax
mov rax, qword [rcx + 0x218]
cmp rdx, qword [rax + 0xab0]
jbe 0x10010745b
cmp r8, r13
je 0x10010745b
call fcn.1000655c0
mov ebx, 0x64
test rbp, rbp
jne 0x100107350
mov r13, qword [rsp + 0x50]
add r12, 8
dec r13
mov qword [rsp + 0x50], r13
jne 0x100107332
mov rax, qword [r15]
movzx r9d, byte [r14 + 6]
movsxd r8, dword [r14 + 0x10]
mov rdx, r14
mov rcx, r15
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
jmp qword [rax + reloc.WS2_32.dll_htonl]
Function at 0x100107cc0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov ebx, 0x64
mov r15, rdx
mov rsi, rcx
lea r14, [rcx + 8]
movabs r13, 0x7fffffffffffffff
lea r12d, [rbx - 0x5d]
nop dword [rax]
mov rbp, qword [r14]
test rbp, rbp
je 0x100107e24
nop dword [rax]
mov rdx, rbp
mov rbp, qword [rbp + 0x28]
movsxd rax, dword [rdx + 0x10]
neg rax
add qword [rsi + 0x80], rax
mov rcx, qword [rsi + 0x80]
cmp rax, 0x800
jg 0x100107d3c
cmp rax, 0xfffffffffffff800
jge 0x100107d43
add qword [rsi + 0x88], rax
cmp rcx, qword [rsi + 0x98]
jle 0x100107d53
mov qword [rsi + 0x98], rcx
mov rax, qword [r15]
movzx r9d, byte [rdx + 6]
movsxd r8, dword [rdx + 0x10]
mov rcx, r15
call qword [rax + reloc.WS2_32.dll_htonl]
dec rbx
jne 0x100107e1b
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rdi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x100107d99
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x100107daa
mov rcx, qword [rbx + 0xd8]
test rcx, rcx
jne 0x100107de1
call fcn.100063d30
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rdi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x100107dda
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rcx, qword [rbx + 0xd8]
rdtsc
mov r8, qword [rcx + 0x2f8]
shl rdx, 0x20
or rax, rdx
cmp rax, r8
ja 0x100107e11
mov rdx, r8
sub rdx, rax
mov rax, qword [rcx + 0x218]
cmp rdx, qword [rax + 0xab0]
jbe 0x100107e16
cmp r8, r13
je 0x100107e16
call fcn.1000655c0
mov ebx, 0x64
test rbp, rbp
jne 0x100107d10
add r14, 8
dec r12
jne 0x100107d00
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1001081b0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
mov rdi, qword [rcx + 0x10]
mov qword [rsp + 0x40], rbp
mov r15, rdx
mov qword [rsp + 0x58], r14
mov ebp, 0x64
mov rbx, rcx
test rdx, rdx
jne 0x10010585b
mov r15, qword [rcx + 0x18]
mov r14, qword [rcx + 0x20]
lea rcx, [rdi + 0x40]
sub r14, 0x11
cmp qword [rcx], 0
je 0x1001059d8
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], r12
movabs r12, 0x7fffffffffffffff
nop word [rax + rax]
mov rsi, qword [rdi + 0x30]
mov rax, qword [rdi + 0x10]
imul rax, rsi
add rax, rdi
cmp rax, r14
jbe 0x1001058ad
cmp rdi, r14
jb 0x1001059ce
mov rdi, qword [rcx]
cmp rsi, 1
jne 0x1001058d0
cmp qword [rbx + 0x40], 0
jne 0x1001058d0
mov rax, qword [rdi + 0x38]
cmp byte [rax + 6], 2
je 0x1001058d0
mov qword [rbx + 0x40], rax
jmp 0x1001059bf
mov rcx, qword [rbx + 8]
mov rdx, qword [rdi + 0x38]
mov r8, rsi
mov rax, qword [rcx]
call qword [rax + 0x108]
neg rsi
add qword [rbx + 0x28], rsi
mov rax, qword [rbx + 0x28]
cmp rsi, 1
jg 0x1001058fb
cmp rsi, 0xffffffffffffffff
jge 0x1001058ff
add qword [rbx + 0x30], rsi
cmp rax, qword [rbx + 0x48]
jle 0x100105909
mov qword [rbx + 0x48], rax
dec rbp
jne 0x1001059bf
call fcn.100068a00
mov rsi, qword gs:[0x30]
mov rcx, rax
mov rbp, rax
add rsi, rax
call fcn.10006c530
test eax, eax
jne 0x10010593d
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rsi, rsi
je 0x10010594e
mov rcx, qword [rsi + 0xd8]
test rcx, rcx
jne 0x100105985
call fcn.100063d30
call fcn.100068a00
mov rsi, qword gs:[0x30]
mov rcx, rax
mov rbp, rax
add rsi, rax
call fcn.10006c530
test eax, eax
jne 0x10010597e
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov rcx, qword [rsi + 0xd8]
rdtsc
mov r8, qword [rcx + 0x2f8]
shl rdx, 0x20
or rax, rdx
cmp rax, r8
ja 0x1001059b5
mov rdx, r8
sub rdx, rax
mov rax, qword [rcx + 0x218]
cmp rdx, qword [rax + 0xab0]
jbe 0x1001059ba
cmp r8, r12
je 0x1001059ba
call fcn.1000655c0
mov ebp, 0x64
cmp qword [rdi + 0x40], 0
lea rcx, [rdi + 0x40]
jne 0x100105890
mov rsi, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
cmp qword [rdi + 0x30], 1
mov r14, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x40]
mov qword [rdi + 0x38], 0
jg 0x100105a01
mov rax, qword [rbx + 0x20]
mov qword [rdi + 0x20], rax
add rax, 0xfffffffffffffff0
mov qword [rdi + 0x28], rax
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x20], r15
call fcn.10006bc40
and dword [rbx + 0x38], 0xfffffffe
and eax, 1
or dword [rbx + 0x38], eax
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
add rcx, 0x38
jmp 0x100105830
Function at 0x10010a8b0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
mov qword [rcx], rdx
mov dword [rcx + 8], 0
mov dword [rcx + 0xc], r8d
test rdx, rdx
je 0x10010a9d2
test r8d, r8d
jne 0x10010a9b0
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
call fcn.100068a00
mov rsi, qword gs:[0x30]
mov rcx, rax
mov rbp, rax
add rsi, rax
call fcn.10006c530
test eax, eax
jne 0x10010a915
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rsi, rsi
je 0x10010a926
mov rax, qword [rsi + 0xd8]
test rax, rax
jne 0x10010a95d
call fcn.100063d30
call fcn.100068a00
mov rsi, qword gs:[0x30]
mov rcx, rax
mov rbp, rax
add rsi, rax
call fcn.10006c530
test eax, eax
jne 0x10010a956
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov rax, qword [rsi + 0xd8]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
cmp qword [rbx], rax
je 0x10010a9d2
xchg qword [rbx], rax
test rax, rax
je 0x10010a99b
lea r8, [0x1004df5e0]
lea rdx, [0x1004df5d0]
mov r9d, 0xf5f
mov ecx, 1
mov qword [rsp + 0x20], 0
call fcn.1001522c0
mov dword [rdi + 8], 1
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
prefetchw byte [rdx]
nop word [rax + rax]
mov rax, qword [rdx]
lea rcx, [rax + 2]
or rcx, 1
lock cmpxchg qword [rdx], rcx
jne 0x10010a9c0
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x10010a9f0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx], 0
mov rbx, rcx
je 0x10010aaf9
cmp dword [rcx + 0xc], 0
jne 0x10010aad4
cmp dword [rcx + 8], 0
je 0x10010aaf9
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
call fcn.100068a00
mov rdi, qword gs:[0x30]
mov rcx, rax
mov rsi, rax
add rdi, rax
call fcn.10006c530
test eax, eax
jne 0x10010aa4c
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rdi, rdi
je 0x10010aa5d
mov rax, qword [rdi + 0xd8]
test rax, rax
jne 0x10010aa94
call fcn.100063d30
call fcn.100068a00
mov rdi, qword gs:[0x30]
mov rcx, rax
mov rsi, rax
add rdi, rax
call fcn.10006c530
test eax, eax
jne 0x10010aa8d
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov rax, qword [rdi + 0xd8]
mov rcx, qword [rbx]
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
xor r8d, r8d
lock cmpxchg qword [rcx], r8
je 0x10010aaf9
mov qword [rsp + 0x20], r8
lea rdx, [0x1004df618]
lea r8, [0x1004df638]
mov r9d, 0xf98
mov ecx, 1
call fcn.1001522c0
add rsp, 0x30
pop rbx
ret
xor r8d, r8d
nop word [rax + rax]
mov rdx, qword [rbx]
mov rax, qword [rdx]
lea rcx, [rax - 2]
cmp rcx, 1
cmove rcx, r8
lock cmpxchg qword [rdx], rcx
jne 0x10010aae0
add rsp, 0x30
pop rbx
ret
Function at 0x10010cf60
Capabilities:
Get thread local storage value

Disassembly:
push rbx
push rbp
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x10022f440]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov ebp, 0x64
mov r15, rdx
lea r14d, [rbp - 0x63]
test rdx, rdx
jne 0x10010cf94
mov rbx, qword [rcx + 0x340]
jmp 0x10010cf98
lea rbx, [rdx - 0x50]
test rbx, rbx
je 0x10010d19c
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x60], r13
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0x70], rdi
lea r13, [0x10002c660]
movabs r12, 0x7fffffffffffffff
nop dword [rax]
test byte [rbx + 0x2b], 1
je 0x10010cfdf
mov rbx, qword [rbx + 8]
jmp 0x10010d177
movzx edx, byte [rbx + 0x2a]
mov esi, 1
lea rcx, [rsp + 0x30]
lea r8d, [rsi + 0xf]
call sub.MSVCR100.dll_memset
mov rcx, qword [rbx + 0x40]
lea rax, [rsp + 0x30]
cmp rcx, qword [rax]
jne 0x10010d012
mov rcx, qword [rbx + 0x48]
cmp rcx, qword [rax + 8]
jne 0x10010d012
xor eax, eax
jmp 0x10010d017
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10010d02a
lea rdx, [rbx + 0x50]
lea rcx, [rbx + 0x40]
call fcn.10010e2e0
xor esi, esi
movzx edx, byte [rbx + 0x2a]
mov rdi, qword [rbx + 0x18]
lea rcx, [rsp + 0x40]
xor edx, 0x55
mov r8d, 0x10
call sub.MSVCR100.dll_memset
mov rcx, qword [rdi + rbx + 0x50]
lea rax, [rsp + 0x40]
cmp rcx, qword [rax]
jne 0x10010d063
mov rcx, qword [rdi + rbx + 0x58]
cmp rcx, qword [rax + 8]
jne 0x10010d063
xor eax, eax
jmp 0x10010d068
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10010d081
lea rcx, [rbx + 0x50]
lea rdx, [rbx + 0x50]
add rcx, rdi
call fcn.10010e2e0
xor r14d, r14d
jmp 0x10010d08f
test esi, esi
jne 0x10010d08a
xor r14d, r14d
jmp 0x10010d08f
test r14d, r14d
jne 0x10010d093
or byte [rbx + 0x2b], 1
mov rax, qword [rbx + 8]
test rax, rax
je 0x10010d0bd
cmp qword [rax], rbx
je 0x10010d0bd
xor edx, edx
lea r8, [0x1004df5c0]
mov r9d, 0x6d7
lea ecx, [rdx + 1]
mov qword [rsp + 0x20], r13
call fcn.1001522c0
mov rbx, qword [rbx + 8]
dec rbp
jne 0x10010d177
call fcn.100068a00
mov rdi, qword gs:[0x30]
mov rcx, rax
mov rsi, rax
add rdi, rax
call fcn.10006c530
test eax, eax
jne 0x10010d0f5
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rdi, rdi
je 0x10010d106
mov rcx, qword [rdi + 0xd8]
test rcx, rcx
jne 0x10010d13d
call fcn.100063d30
call fcn.100068a00
mov rdi, qword gs:[0x30]
mov rcx, rax
mov rsi, rax
add rdi, rax
call fcn.10006c530
test eax, eax
jne 0x10010d136
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov rcx, qword [rdi + 0xd8]
rdtsc
mov r8, qword [rcx + 0x2f8]
shl rdx, 0x20
or rax, rdx
cmp rax, r8
ja 0x10010d16d
mov rdx, r8
sub rdx, rax
mov rax, qword [rcx + 0x218]
cmp rdx, qword [rax + 0xab0]
jbe 0x10010d172
cmp r8, r12
je 0x10010d172
call fcn.1000655c0
mov ebp, 0x64
test r15, r15
jne 0x10010d185
test rbx, rbx
jne 0x10010cfd0
mov r13, qword [rsp + 0x60]
mov r12, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0xb0]
mov eax, r14d
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.10005f420
add rsp, 0x78
pop r15
pop r14
pop rbp
pop rbx
ret
Function at 0x10010e1b0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
movzx eax, word [rsp + 0x50]
mov rbx, rcx
mov dword [rcx + 0x10], edx
mov word [rcx + 0x28], ax
movzx eax, byte [rsp + 0x58]
mov qword [rcx + 0x18], r8
shl al, 2
mov qword [rcx + 0x20], r9
mov qword [rcx + 8], 0
mov byte [rcx + 0x2b], al
mov qword [rcx], 0
call qword [sym.imp.MSVCR100.dll_rand]
mov byte [rbx + 0x2a], 0
xor byte [rbx + 0x2a], al
sar eax, 1
xor byte [rbx + 0x2a], al
sar eax, 1
mov ecx, eax
sar ecx, 1
xor cl, byte [rbx + 0x2a]
xor cl, al
mov byte [rbx + 0x2a], cl
je 0x10010e1e7
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x2c], eax
call fcn.100068bb0
test byte [rax + 0xbc], 8
je 0x10010e231
mov qword [rbx + 0x30], 0
mov rax, rbx
add rsp, 0x20
pop rbx
ret
call fcn.10011b2e0
mov qword [rbx + 0x30], rax
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x10010e2e0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x10022f440]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rdx
call fcn.1001267c0
lea r8, [0x10002c9b0]
lea rcx, [rsp + 0x30]
mov edx, 0xff
mov r9, rax
mov qword [rsp + 0x20], rbx
call fcn.100060cc0
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rdi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x10010e350
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rbx, rbx
je 0x10010e361
mov rbx, qword [rbx + 0xd8]
test rbx, rbx
jne 0x10010e398
call fcn.100063d30
call fcn.100068a00
mov rbx, qword gs:[0x30]
mov rcx, rax
mov rdi, rax
add rbx, rax
call fcn.10006c530
test eax, eax
jne 0x10010e391
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rbx, qword [rbx + 0xd8]
call fcn.10006b7c0
xor r9d, r9d
lea rdx, [rsp + 0x30]
lea r8d, [r9 + 0x3f]
mov rcx, rbx
call rax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.10005f420
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret
Function at 0x100114400
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
or rbx, 0xffffffffffffffff
xor ebp, ebp
mov edi, ebp
nop dword [rax]
rdtsc
shl rdx, 0x20
lea rcx, [rsp + 0x30]
or rax, rdx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x100114464
rdtsc
shl rdx, 0x20
or rax, rdx
sub rax, rsi
cmp rax, rbx
cmovb rbx, rax
inc edi
cmp edi, 0xa
jb 0x100114420
cmp rbx, 0x258
setb bpl
mov eax, ebp
jmp 0x100114466
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x1001154f0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x2d0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x10022f440]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov ebp, edx
mov rbx, rcx
mov edi, 0x80000000
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdx, qword [rbx + 0x10]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rax, rax
je 0x100115682
movsxd rax, dword [rbx]
lea rcx, [0x100296738]
lea rsi, [rcx + rax*4]
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x48], 0
call fcn.100064800
mov edx, eax
xor eax, eax
lock cmpxchg dword [rsi], edx
mov ecx, 0
sete cl
test ecx, ecx
jne 0x10011558a
mov rcx, rsi
call fcn.100115300
mov dword [rsp + 0x48], 1
mov dword [rsp + 0x20], 0
call fcn.10006af10
mov edx, eax
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x100115673
cmp ebp, 1
jne 0x1001155eb
dec dword [rbx + 0x2c]
jne 0x100115605
xor eax, eax
mov qword [rsp + 0x29], rax
mov qword [rsp + 0x31], rax
mov word [rsp + 0x28], 0xcc01
movzx eax, byte [r14]
mov byte [rbx + 0x19], al
mov byte [r14], 0xcc
mov byte [rbx + 0x18], bpl
jmp 0x100115605
inc dword [rbx + 0x2c]
cmp dword [rbx + 0x2c], 1
jne 0x100115605
movzx r8d, byte [rbx + 0x18]
lea rdx, [rbx + 0x19]
mov rcx, r14
call sub.MSVCR100.dll_memcpy
call fcn.10006af10
mov edx, eax
lea r9, [rsp + 0x20]
mov r8d, dword [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.100071990
test eax, eax
je 0x100115671
lea rcx, [rsp + 0x60]
call fcn.100071910
mov rdx, qword [rbx + 8]
lea rcx, [rsp + 0x60]
call fcn.1000719d0
mov rdx, qword [rbx + 0x10]
lea rcx, [rsp + 0x60]
call fcn.100071a20
mov edx, ebp
lea rcx, [rsp + 0x60]
call fcn.1000719c0
mov edx, dword [rbx + 0x2c]
lea rcx, [rsp + 0x60]
call fcn.1000719b0
lea rcx, [rsp + 0x60]
call fcn.100071a50
xor edi, edi
mov eax, edi
test rsi, rsi
je 0x100115684
mov dword [rsi], 0
jmp 0x100115684
mov eax, edi
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.10005f420
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret