joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ab960
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 0x1400ab9a2
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 4
jb 0x1400ab9aa
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x1400ab9bb
jmp 0x1400ab9d2
xor r10d, r10d
jmp 0x1400aba5d
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x1400ab9d2
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x1400ab9e9
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 0x1400aba09
add r11, r8
jmp 0x1400abb3b
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 0x1400abad2
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 0x1400aba80
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 4
jb 0x1400abaf0
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x1400abb02
jmp 0x1400abb1d
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x1400abb1d
lea rcx, [rdx + r8]
movzx esi, word [r10 + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x1400abb37
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 0x1400cd470
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
Function at 0x1400eadb0
Capabilities:
Encode data using xor

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov r14, r8
mov rsi, rcx
mov rdi, r8
sub rdi, rdx
shr rdi, 3
sub r14, rdx
je 0x1400eae3e
movabs rax, 0x7ffffffffffffff8
cmp r14, rax
ja 0x1400eb002
mov rbx, rdx
movzx eax, byte [0x141ada129]
xor ecx, ecx
mov rdx, r14
call fcn.14014fee0
test rax, rax
je 0x1400eb002
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 0
cmp r14, 0xc0
jae 0x1400eae69
xor ecx, ecx
mov r8, rcx
or r8, 1
test r14b, 8
jne 0x1400eaf36
mov r9, rcx
cmp rdi, r8
jne 0x1400eaf63
jmp 0x1400eafd1
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 4
mov qword [rsp + 0x30], 0
test rdi, rdi
jne 0x1400eafec
xor edx, edx
jmp 0x1400eafd1
lea rdx, [rax + rdi*8]
add rdx, 0xfffffffffffffff8
xor ecx, ecx
cmp rdx, rax
jb 0x1400eae1c
lea rdx, [rax + 4]
lea r8, [rax + rdi*8]
add r8, 0xfffffffffffffffc
cmp r8, rdx
jb 0x1400eae1c
movabs rdx, 0x1ffffffffffffffe
lea r8, [rdi - 1]
lea r9, [rdx + 1]
cmp r8, r9
ja 0x1400eae1c
mov rcx, r14
and rcx, 0xfffffffffffffff8
lea r8, [rbx + rcx]
cmp rax, r8
jae 0x1400eaec0
add rcx, rax
cmp rcx, rbx
ja 0x1400eae1a
and rdx, rdi
xor ecx, ecx
movdqa xmm0, xmmword [0x14021b5c0]
nop dword [rax]
movdqu xmm1, xmmword [rbx + rcx*8]
pshufd xmm2, xmm1, 0xe8
pshufd xmm1, xmm1, 0xed
movdqa xmm3, xmm2
pxor xmm3, xmm0
movdqa xmm4, xmm1
pxor xmm4, xmm0
pcmpgtd xmm4, xmm3
movdqa xmm3, xmm4
pandn xmm3, xmm1
movdqa xmm5, xmm4
pandn xmm5, xmm2
pand xmm2, xmm4
por xmm2, xmm3
pand xmm4, xmm1
por xmm4, xmm5
punpckldq xmm2, xmm4
movdqu xmmword [rax + rcx*8], xmm2
add rcx, 2
cmp rdx, rcx
jne 0x1400eaed0
mov rcx, rdx
cmp rdi, rdx
jne 0x1400eae1c
jmp 0x1400eafd1
mov edx, dword [rbx + rcx*8]
mov r9d, dword [rbx + rcx*8 + 4]
cmp edx, r9d
mov r10d, r9d
cmovb r10d, edx
cmova r9d, edx
mov dword [rax + rcx*8], r10d
mov dword [rax + rcx*8 + 4], r9d
inc rcx
mov rdx, rcx
mov r9, r8
cmp rdi, r8
je 0x1400eafd1
lea rax, [rax + rcx*8]
add rax, 0xc
lea rdx, [rbx + r9*8]
add rdx, 0xc
sub rdi, r9
xor r8d, r8d
nop dword [rax]
mov r9d, dword [rdx + r8*8 - 0xc]
mov r10d, dword [rdx + r8*8 - 8]
cmp r9d, r10d
mov r11d, r10d
cmovb r11d, r9d
cmova r10d, r9d
mov dword [rax + r8*8 - 0xc], r11d
mov dword [rax + r8*8 - 8], r10d
mov r9d, dword [rdx + r8*8 - 4]
mov r10d, dword [rdx + r8*8]
cmp r9d, r10d
mov r11d, r10d
cmovb r11d, r9d
cmova r10d, r9d
mov dword [rax + r8*8 - 4], r11d
mov dword [rax + r8*8], r10d
add r8, 2
cmp rdi, r8
jne 0x1400eaf80
add rcx, r8
mov rdx, rcx
mov qword [rsp + 0x30], rdx
mov qword [rsi + 0x10], rdx
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8, rdi
call fcn.1400ee7e0
mov rdx, qword [rsp + 0x30]
jmp 0x1400eafd1
ud2
Function at 0x1400fb610
Capabilities:
Encode data using xor

Disassembly:
push r14
push rsi
push rdi
push rbx
mov al, 1
test rdx, rdx
je 0x1400fb71e
movzx r9d, byte [rcx]
mov r10, qword [r8]
movzx r10d, byte [r10]
not r10b
test r9b, r10b
jne 0x1400fb71e
mov r10, qword [r8 + 0x10]
test r10, r10
je 0x1400fb724
mov r8, qword [r8 + 8]
xor byte [r8], r9b
mov r11d, 1
cmp r10, 1
je 0x1400fb718
lea rbx, [rdx - 1]
lea rdi, [r10 - 2]
cmp rbx, rdi
mov rsi, rdi
cmovb rsi, rbx
lea r9, [r8 + 1]
inc rsi
cmp rsi, 0x10
jbe 0x1400fb6ee
cmp rbx, rdi
cmovb rdi, rbx
lea rbx, [rcx + rdi]
add rbx, 2
cmp r9, rbx
jae 0x1400fb69e
add rdi, r8
add rdi, 2
lea rbx, [rcx + 1]
cmp rbx, rdi
jb 0x1400fb6ee
mov r11d, esi
and r11d, 0xf
mov r14d, 0x10
cmovne r14, r11
mov rdi, rsi
sub rdi, r14
lea rbx, [r9 + rdi]
neg r14
lea r11, [rsi + r14]
inc r11
xor esi, esi
nop word cs:[rax + rax]
movups xmm0, xmmword [rcx + rsi + 1]
movups xmm1, xmmword [r9 + rsi]
xorps xmm1, xmm0
movups xmmword [r9 + rsi], xmm1
add rsi, 0x10
cmp rdi, rsi
jne 0x1400fb6d0
mov r9, rbx
add r8, r10
nop word cs:[rax + rax]
cmp rdx, r11
je 0x1400fb71e
movzx r10d, byte [rcx + r11]
xor byte [r9], r10b
inc r11
inc r9
cmp r9, r8
jne 0x1400fb700
cmp r11, rdx
setne al
pop rbx
pop rdi
pop rsi
pop r14
ret
ud2
Function at 0x1400ff7c0
Capabilities:
Encode data using xor

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
cmp qword [rcx + 8], r8
jne 0x1400ff875
mov rsi, r8
test r8, r8
je 0x1400ff875
mov rdi, rdx
mov rbx, qword [rcx]
xor eax, eax
cmp rsi, 4
jb 0x1400ff840
mov rdx, rdi
sub rdx, rbx
cmp rdx, 0x20
jb 0x1400ff840
mov rax, rsi
and rax, 0xfffffffffffffffc
xor edx, edx
pcmpeqd xmm0, xmm0
nop word cs:[rax + rax]
movdqu xmm1, xmmword [rbx + rdx*8]
movdqu xmm2, xmmword [rbx + rdx*8 + 0x10]
pxor xmm1, xmm0
pxor xmm2, xmm0
movdqu xmmword [rdi + rdx*8], xmm1
movdqu xmmword [rdi + rdx*8 + 0x10], xmm2
add rdx, 4
cmp rax, rdx
jne 0x1400ff810
cmp rax, rsi
je 0x1400ff8be
mov r8, rsi
mov rdx, rax
and r8, 3
je 0x1400ff867
mov r9, rax
nop
lea rdx, [r9 + 1]
mov r10, qword [rbx + r9*8]
not r10
mov qword [rdi + r9*8], r10
mov r9, rdx
dec r8
jne 0x1400ff850
sub rax, rsi
cmp rax, 0xfffffffffffffffc
jbe 0x1400ff880
test rsi, rsi
jne 0x1400ff8be
ud2
mov rax, qword [rbx + rdx*8]
not rax
mov qword [rdi + rdx*8], rax
mov rax, qword [rbx + rdx*8 + 8]
not rax
mov qword [rdi + rdx*8 + 8], rax
mov rax, qword [rbx + rdx*8 + 0x10]
not rax
mov qword [rdi + rdx*8 + 0x10], rax
mov rax, qword [rbx + rdx*8 + 0x18]
not rax
mov qword [rdi + rdx*8 + 0x18], rax
lea rax, [rdx + 4]
mov rdx, rax
cmp rsi, rax
jne 0x1400ff880
or byte [rdi], 1
mov r14, rsi
shl r14, 6
sub r14, qword [rcx + 0x20]
je 0x1400ff906
mov rax, qword [rdi + rsi*8 - 8]
mov ecx, r14d
shl rax, cl
shr rax, cl
mov qword [rdi + rsi*8 - 8], rax
cmp r14, 1
adc r14, 0
nop dword [rax]
mov rcx, rdi
mov rdx, rdi
mov r8, rbx
mov r9, rsi
call fcn.140202cc0
dec r14
jne 0x1400ff8f0
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1401112e0
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
test r8, r8
je case.0x14010fc2f.34
pop rdx
mov rsi, r8
mov rdi, rdx
mov r14d, 0xffffffff
jmp 0x140111308
add rdi, rbx
sub rsi, rbx
je case.0x14010fc2f.34
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
xor ecx, ecx
mov rdx, rdi
mov r8d, ebx
mov r9d, 2
add al, byte [rax]
add byte [rax], al
call sub.bcrypt.dll_BCryptGenRandom
cmp eax, 0xbfffffff
jbe 0x140111300
mov ebp, eax
mov rcx, rdi
mov ecx, edi
mov edx, ebx
call sub.advapi32.dll_SystemFunction036
jle 0x14011135a
invalid
invalid
test al, al
jne 0x140111300
test ebp, 0x7fffffff
setne al
shr bl, 2
xor eax, eax
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x140137110
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 0x140137152
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 4
jb 0x14013715a
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x14013716b
jmp 0x140137182
xor r10d, r10d
jmp 0x14013720d
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x140137182
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x140137199
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 0x1401371b9
add r11, r8
jmp 0x1401372eb
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 0x140137282
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 0x140137230
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 4
jb 0x1401372a0
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x1401372b2
jmp 0x1401372cd
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x1401372cd
lea rcx, [rdx + r8]
movzx esi, word [r10 + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x1401372e7
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 0x1401500c0
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x498
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 2
mov qword [rsp + 0x38], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x48], rax
xor r14d, r14d
mov edi, 0xffffffff
xor esi, esi
xor r15d, r15d
cmp r8, 0x201
jae 0x140150160
jmp 0x14015013f
jae 0x14015020a
cmp r8, 0x201
jae 0x140150160
mov ebx, 0x200
lea r12, [rsp + 0x98]
mov r13, r8
jmp 0x14015018b
sub r8, r15
sub rsi, r15
cmp rsi, r8
jb 0x1401501e9
cmp r14, rdi
mov r15d, 0xffffffff
cmovb r15, r14
mov qword [rsp + 0x38], r15
mov rsi, r14
mov rbx, r15
mov r12, qword [rsp + 0x48]
mov r13, r15
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, r12
mov edx, r13d
call sub.KERNEL32.dll_GetWindowsDirectoryW
mov ebp, eax
test eax, eax
jne 0x1401501b0
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x1401502d7
mov r8d, ebp
cmp r13, r8
jne 0x140150130
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x140150304
add r13, r13
cmp r13, rdi
cmovae r13, rdi
mov r8, r13
cmp r8, 0x201
jb 0x14015013f
jmp 0x140150160
lea rcx, [rsp + 0x28]
mov rdx, r15
call fcn.14015bb30
mov r14, qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
jmp 0x14015016b
cmp rbx, r8
jb 0x140150304
lea r14, [rsp + 0x60]
mov rcx, r14
mov rdx, r12
call fcn.140158d10
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax]
mov r8, qword [rax + 8]
mov rcx, r14
call fcn.14015e660
mov rax, qword [rsp + 0x58]
cmp byte [rax], 0
jne 0x140150258
lea rdx, [0x141a5c6c0]
lea rcx, [rsp + 0x60]
mov r8d, 3
call fcn.14015f900
mov rdi, qword [rsp + 0x68]
mov r8, qword [rsp + 0x70]
lea rcx, [rsp + 0x80]
mov rdx, rdi
call fcn.140156130
cmp qword [rsp + 0x60], 0
je 0x14015028b
mov rcx, qword [0x141ada118]
xor edx, edx
mov r8, rdi
call fcn.1401cdfe4
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rsp + 0x80]
movups xmmword [rcx], xmm0
cmp qword [rsp + 0x28], 0
je 0x1401502c2
mov r8, qword [rsp + 0x30]
mov rcx, qword [0x141ada118]
xor edx, edx
call fcn.1401cdfe4
nop
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 8], rax
movabs rax, 0x8000000000000001
mov qword [rcx], rax
cmp qword [rsp + 0x28], 0
jne 0x1401502af
jmp 0x1401502c2
ud2
Function at 0x140150f60
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rbx, r8
mov r14, rdx
mov rdi, rcx
movzx eax, byte [0x141ada129]
mov edx, 0x10
xor ecx, ecx
call fcn.14014fee0
test rax, rax
je 0x140151028
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x140151030]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.KERNEL32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x14015101b
mov rdi, qword [rsi]
mov rbx, qword [rsi + 8]
mov rcx, rdi
call qword [rbx]
cmp qword [rbx + 8], 0
je 0x140150ff6
cmp qword [rbx + 0x10], 0x11
jb 0x140150fe5
mov rdi, qword [rdi - 8]
mov rcx, qword [0x141ada118]
xor edx, edx
mov r8, rdi
call fcn.1401cdfe4
mov rcx, qword [0x141ada118]
xor edx, edx
mov r8, rsi
call fcn.1401cdfe4
call sub.KERNEL32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ebx, 1
mov rax, rbx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
ud2

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

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x140216140]
test ecx, ecx
je 0x1401514df
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14015140f
cmp qword [rax + 8], 0
jne 0x1401514d9
mov ecx, dword [0x140216140]
test ecx, ecx
je 0x140151501
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14015151e
test rax, rax
jne 0x14015147f
movzx eax, byte [0x141ada129]
mov edx, 0x18
xor ecx, ecx
call fcn.14014fee0
test rax, rax
je 0x140151540
lea rcx, [0x140216128]
mov qword [rax], rcx
mov qword [rax + 8], 0
mov ecx, dword [0x140216140]
test ecx, ecx
je 0x140151527
dec ecx
mov rdx, rax
mov rdi, rax
call sub.KERNEL32.dll_TlsSetValue
mov rax, rdi
test rsi, rsi
je 0x140151499
mov rcx, qword [rsi]
mov qword [rsi], 0
test rcx, rcx
je 0x14015149b
mov rcx, qword [rsi + 8]
jmp 0x14015149b
xor ecx, ecx
mov r8, qword [rax + 8]
mov rdx, qword [rax + 0x10]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x30], rdx
mov qword [rax + 8], 1
mov qword [rax + 0x10], rcx
test r8, r8
je 0x1401514d9
test rdx, rdx
je 0x1401514d9
lock dec qword [rdx]
jne 0x1401514d9
lea rcx, [rsp + 0x30]
mov rsi, rax
call fcn.14015b900
mov rax, rsi
add rax, 0x10
jmp 0x140151520
lea rcx, [0x140216128]
call fcn.14015aec0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x140151404
jmp 0x14015140f
lea rcx, [0x140216128]
call fcn.14015aec0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14015142e
xor eax, eax
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x140216128]
mov rdi, rax
call fcn.14015aec0
mov ecx, eax
mov rax, rdi
jmp 0x140151471
ud2
Function at 0x140151550
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 [0x1402160f8]
test ecx, ecx
je 0x140151580
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140151599
cmp qword [rax + 8], 0
je 0x140151599
add rax, 0x10
jmp 0x14015167a
lea rcx, [0x1402160e0]
call fcn.14015aec0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x140151570
mov ecx, dword [0x1402160f8]
test ecx, ecx
je 0x14015165b
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140151678
test rax, rax
jne 0x140151609
movzx eax, byte [0x141ada129]
mov edx, 0x18
xor ecx, ecx
call fcn.14014fee0
test rax, rax
je 0x14015169a
lea rcx, [0x1402160e0]
mov qword [rax], rcx
mov qword [rax + 8], 0
mov ecx, dword [0x1402160f8]
test ecx, ecx
je 0x140151681
dec ecx
mov rdx, rax
mov rdi, rax
call sub.KERNEL32.dll_TlsSetValue
mov rax, rdi
test rsi, rsi
je 0x140151623
mov rdx, qword [rsi]
mov qword [rsi], 0
test rdx, rdx
je 0x140151625
mov rdx, qword [rsi + 8]
jmp 0x140151625
xor edx, edx
mov r8, rax
add rax, 0x10
mov rcx, qword [r8 + 0x10]
cmp qword [r8 + 8], 0
mov qword [r8 + 8], 1
mov qword [r8 + 0x10], rdx
je 0x14015167a
test rcx, rcx
je 0x14015167a
lock dec qword [rcx]
jne 0x14015167a
mov rsi, rax
call fcn.14015bae0
mov rax, rsi
jmp 0x14015167a
lea rcx, [0x1402160e0]
call fcn.14015aec0
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x1401515b8
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1402160e0]
mov rdi, rax
call fcn.14015aec0
mov ecx, eax
mov rax, rdi
jmp 0x1401515fb
ud2
Function at 0x140156130
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rcx
movabs r14, 0x8000000000000000
lea rcx, [rsp + 0x28]
call fcn.14015a2d0
mov rbx, qword [rsp + 0x28]
cmp rbx, r14
jne 0x1401561c0
mov rax, qword [rsp + 0x30]
mov ecx, eax
and ecx, 3
lea rdx, [rcx - 2]
cmp rdx, 2
jb 0x1401561bb
test rcx, rcx
je 0x1401561bb
lea rdi, [rax - 1]
mov rbx, qword [rax - 1]
mov r15, qword [rax + 7]
mov rcx, rbx
call qword [r15]
cmp qword [r15 + 8], 0
je 0x1401561aa
cmp qword [r15 + 0x10], 0x11
jb 0x140156199
mov rbx, qword [rbx - 8]
mov rcx, qword [0x141ada118]
xor edx, edx
mov r8, rbx
call fcn.1401cdfe4
mov rcx, qword [0x141ada118]
xor edx, edx
mov r8, rdi
call fcn.1401cdfe4
mov qword [rsi], r14
jmp 0x1401561e2
mov rdi, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
mov rcx, rdi
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x1401561ee
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r15
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov qword [rsi], r14
test rbx, rbx
je 0x1401561e2
mov rcx, qword [0x141ada118]
xor edx, edx
mov r8, rdi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.1401cdfe4
Function at 0x140157a40
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x140157a9e
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x140157a9e
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x140157a9e
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x140157a9e
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x140157ade
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1006
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x140157acc
xor eax, eax
add rsp, 0x38
ret
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
lea rax, [0x141a5d250]
add rsp, 0x38
ret

Function at 0x140157af0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x140157b4e
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x140157b4e
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x140157b4e
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x140157b4e
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x140157b8e
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1005
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x140157b7c
xor eax, eax
add rsp, 0x38
ret
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
lea rax, [0x141a5d250]
add rsp, 0x38
ret

Function at 0x140159680
Capabilities:
Connect socket

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov eax, 1
test rcx, rcx
jne 0x14015972d
mov rax, qword [0x141ada0f0]
cmp rax, 3
jne 0x140159753
mov rsi, rdx
movzx ecx, word [rdx]
call fcn.14015ce50
test rax, rax
je 0x1401596bc
mov eax, 1
jmp 0x14015972d
cmp word [rsi], 0
je 0x1401596de
movups xmm0, xmmword [rsi + 4]
mov eax, dword [rsi + 0x14]
mov r9d, dword [rsi + 0x18]
movzx ecx, word [rsi + 0x1c]
mov r8d, 0x1c
mov r10w, 0x17
jmp 0x1401596f3
mov eax, dword [rsi + 2]
movzx ecx, word [rsi + 6]
mov r8d, 0x10
mov r10w, 2
xorps xmm0, xmm0
rol cx, 8
mov word [rsp + 0x2c], r10w
mov word [rsp + 0x2e], cx
mov dword [rsp + 0x30], eax
movups xmmword [rsp + 0x34], xmm0
mov dword [rsp + 0x44], r9d
lea rax, [rsp + 0x2c]
mov rsi, rdx
mov rcx, rdx
mov rdx, rax
call sub.ws2_32.dll_connect
cmp eax, 0xffffffff
je 0x140159734
xor eax, eax
mov rdx, rsi
add rsp, 0x48
pop rdi
pop rsi
ret
call sub.ws2_32.dll_WSAGetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rcx, rsi
call sub.ws2_32.dll_closesocket
mov rdx, rdi
jmp 0x1401596b5
mov rsi, rdx
call fcn.14015cd30
mov rdx, rsi
jmp 0x1401596a5