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

Disassembly:
sub rsp, 0x28
cmp dword [0x1403e4a68], 0
je 0x14015484f
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x14015484f
lea rax, str.status
mov qword [rsp + 0x20], rax
lea rdx, str.Fatal_error_in_file__s__line__d:____s__n
lea r8, str....._native_client_src_trusted_fault_injection_fault_injection.c
mov ecx, 0xfffffffc
mov r9d, 0xf6
call fcn.14014fd13
nop
add rsp, 0x28
ret

Function at 0x140155380
Capabilities:
Check os version
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rax, qword [0x1403ac028]
xor rax, rsp
mov qword [rsp + 0x170], rax
movaps xmm0, xmmword [0x14026fe30]
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdi, [rsp + 0x60]
xor esi, esi
mov r8d, 0x110
mov rcx, rdi
xor edx, edx
call fcn.1402055c0
mov dword [rdi - 4], 0x114
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140155411
cmp dword [rsp + 0x60], 5
jb 0x140155411
jne 0x1401553ee
cmp dword [rsp + 0x64], 0
je 0x140155411
lea rsi, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [rsi]
cmp ax, 9
sete cl
test ax, ax
sete al
or al, cl
movzx esi, al
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140203460
mov eax, esi
add rsp, 0x178
pop rdi
pop rsi
ret

Function at 0x140155ff0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1403e4a98]
test rcx, rcx
jne 0x140156031
lea rax, str.g_socket_binding___NULL
mov qword [rsp + 0x20], rax
lea rdx, str.Fatal_error_in_file__s__line__d:____s__n
lea r8, str....._native_client_src_trusteddebug_stub_nacl_debug.cc
mov ecx, 0xfffffffc
mov r9d, 0x97
call fcn.14014fd13
mov rcx, qword [0x1403e4a98]
add rsp, 0x28
jmp fcn.14019f3ca
Function at 0x14015bd70
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov edi, r9d
mov rsi, rcx
mov rax, qword [0x1403ac028]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], 0
test r8b, r8b
je 0x14015bdd5
lea r8, [rsp + 0x30]
mov rcx, rdx
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14015be08
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x14015be10
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp rbx, 0xffffffffffffffff
je 0x14015be14
call fcn.14011dc90
jmp 0x14015be16
or edi, 8
lea r8, [rsp + 0x30]
mov rcx, rdx
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14015be08
mov r14, qword [rsp + 0x30]
mov qword [rsp + 0x38], 0
test r14, r14
jne 0x14015be85
jmp 0x14015bea9
mov byte [rsi], 0
jmp 0x14015bef1
xor ebx, ebx
jmp 0x14015be1e
xor ebx, ebx
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
or edi, 8
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
xor r15d, r15d
mov rcx, rbx
mov edx, edi
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
mov r14, qword [rsp + 0x38]
cmovne r15, r14
mov qword [rsp + 0x30], r15
test r15, r15
je 0x14015bed7
lea rax, [rbx + 1]
cmp rax, 2
jae 0x14015bf0e
mov qword [rsp + 0x38], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14015bea1
mov qword [rsp + 0x38], r14
call fcn.14011dc90
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi], 1
mov rcx, rsi
add rcx, 8
lea rdx, [rsp + 0x38]
call fcn.14004eed0
mov rax, qword [rsp + 0x38]
inc rax
cmp rax, 2
jb 0x14015bef1
call fcn.14011dc90
mov rcx, qword [rsp + 0x38]
jmp 0x14015beec
mov byte [rsi], 0
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14015bef1
call fcn.14011dc90
mov rcx, rbx
call fcn.1400f41d0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140203460
mov rax, rsi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14011dc90
mov rcx, rbx
call fcn.1400f41d0
jmp 0x14015bdec
Function at 0x14015cbf0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rdx
mov rax, qword [0x1403ac028]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rcx, qword [rcx]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x30], rax
or r8d, 8
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov edx, r8d
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x14015ccae
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x14015ccae
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14015cc73
mov qword [rsp + 0x30], rbx
call fcn.14011dc90
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi], 1
mov rcx, rsi
add rcx, 8
lea rdx, [rsp + 0x30]
call fcn.14004eed0
mov rax, qword [rsp + 0x30]
inc rax
cmp rax, 2
jb 0x14015ccb1
call fcn.14011dc90
mov rcx, qword [rsp + 0x30]
call fcn.1400f41d0
jmp 0x14015ccb1
mov byte [rsi], 0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140203460
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret

Function at 0x14015ccd0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov eax, r8d
mov rsi, rdx
mov rdx, qword [0x1403ac028]
xor rdx, rsp
mov qword [rsp + 0x38], rdx
mov rcx, qword [rcx]
movabs rdx, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x30], rdx
or r9d, 8
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 2
mov edx, r9d
xor r8d, r8d
mov r9d, eax
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x14015cd91
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x14015cd91
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14015cd56
mov qword [rsp + 0x30], rbx
call fcn.14011dc90
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi], 1
mov rcx, rsi
add rcx, 8
lea rdx, [rsp + 0x30]
call fcn.14004eed0
mov rax, qword [rsp + 0x30]
inc rax
cmp rax, 2
jb 0x14015cd94
call fcn.14011dc90
mov rcx, qword [rsp + 0x30]
call fcn.1400f41d0
jmp 0x14015cd94
mov byte [rsi], 0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140203460
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret

Function at 0x14015f2f0
Capabilities:
Compare security identifiers

Disassembly:
sub rsp, 0x28
mov rdx, qword [rdx]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x140161152
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
test r8, r8
je 0x14016124f
mov rbx, rcx
mov rax, qword [rcx + 8]
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx + 0x84], 0
je 0x14016124f
cmp word [rax + rcx + 0x14], 0x78
jb 0x14016124f
mov rsi, r8
mov rdi, rdx
mov edx, dword [rax + rcx + 0x88]
mov rcx, rbx
call fcn.140160f70
test rax, rax
je 0x14016124f
cmp rdi, 0xffff
jbe 0x140161280
mov r14, rax
mov edx, dword [rax + 0x20]
mov rcx, rbx
call fcn.140160f70
mov ecx, dword [r14 + 0x18]
test rcx, rcx
je 0x14016124f
lea r15, [rax + rcx*4]
lea r13, [rdi + 1]
mov qword [rsp + 0x20], rax
mov rbp, rax
mov r12, r15
sub r12, rbp
mov rax, r12
sar rax, 2
shr r12, 0x3f
add r12, rax
and r12, 0xfffffffffffffffe
mov edx, dword [rbp + r12*2]
mov rcx, rbx
call fcn.140160f70
mov cl, byte [rdi]
test cl, cl
je 0x140161220
mov rdx, r13
cmp cl, byte [rax]
jne 0x140161222
inc rax
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x140161210
xor ecx, ecx
lea r12, [r12*2]
add r12, rbp
movzx eax, byte [rax]
cmp cl, al
je 0x140161262
movzx ecx, cl
lea rdx, [r12 + 4]
cmp ecx, eax
cmovg rbp, rdx
cmovs r15, r12
xor eax, eax
cmp rbp, r15
jne 0x1401611e2
jmp 0x140161251
xor eax, eax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov edx, dword [r14 + 0x24]
mov rcx, rbx
call fcn.140160f70
sub r12, qword [rsp + 0x20]
sar r12, 1
movzx edi, word [rax + r12]
add di, word [r14 + 0x10]
mov word [rsi], di
mov al, 1
jmp 0x140161251

Function at 0x14016132c
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [rcx + 8]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x140161363
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x140161363
movzx edx, word [rax + rcx + 0x14]
cmp edx, 0xf0
jne 0x140161363
movzx eax, word [rax + rcx + 0x18]
cmp eax, 0x20b
sete al
ret
xor eax, eax
ret
Function at 0x140163de0
Capabilities:
Hash data using sha256

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa0
mov rsi, r8
mov r8, rdx
mov rdx, rcx
mov rax, qword [0x1403ac028]
xor rax, rsp
mov qword [rsp + 0x98], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x84], xmm0
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x48], xmm0
movaps xmm0, xmmword [0x1402938c0]
movups xmmword [rsp + 0x28], xmm0
movaps xmm0, xmmword [0x1402938d0]
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x94], 0x20
lea rcx, [rsp + 0x28]
call fcn.140165160
mov ebx, dword [rsp + 0x94]
mov ebp, dword [rsp + 0x48]
mov r14d, dword [rsp + 0x4c]
lea rdi, [rsp + 0x50]
mov eax, dword [rsp + 0x90]
lea rcx, [rax + 1]
mov byte [rsp + rax + 0x50], 0x80
cmp rax, 0x38
jb 0x140163eae
cmp eax, 0x3f
je 0x140163e97
mov r8d, 0x3f
sub r8, rax
add rcx, rdi
xor edx, edx
call fcn.1402055c0
lea rcx, [rsp + 0x28]
mov r8d, 1
mov rdx, rdi
call fcn.140012240
xor ecx, ecx
jmp 0x140163eb4
cmp rcx, 0x38
je 0x140163ec7
mov r8d, 0x38
sub r8, rcx
add rcx, rdi
xor edx, edx
call fcn.1402055c0
bswap r14d
bswap ebp
mov dword [rsp + 0x88], r14d
mov dword [rsp + 0x8c], ebp
lea rcx, [rsp + 0x28]
mov r8d, 1
mov rdx, rdi
call fcn.140012240
xorps xmm0, xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi], xmm0
mov dword [rdi + 0x40], 0
lea eax, [rbx - 0x21]
cmp eax, 0xffffffe3
jb 0x140163f31
shr rbx, 2
xor eax, eax
nop word cs:[rax + rax]
mov ecx, dword [rsp + rax*4 + 0x28]
bswap ecx
mov dword [rsi + rax*4], ecx
inc rax
cmp rbx, rax
jne 0x140163f20
lea rcx, [rsp + 0x28]
mov edx, WSACleanup
call fcn.14016e750
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140203460
mov rax, rsi
add rsp, 0xa0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x1401646d0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xc0
movdqa xmmword [rsp + 0xb0], xmm8
movaps xmmword [rsp + 0xa0], xmm7
movdqa xmmword [rsp + 0x90], xmm6
mov rax, qword [0x1403ac028]
xor rax, rsp
mov qword [rsp + 0x88], rax
xor edi, edi
cmp r9, 0x30
ja 0x140164955
mov rsi, rcx
movdqu xmm0, xmmword [rdx]
movdqu xmm1, xmmword [rdx + 0x10]
movdqu xmm2, xmmword [rdx + 0x20]
movdqa xmmword [rsp + 0x60], xmm2
movdqa xmmword [rsp + 0x50], xmm1
movdqa xmmword [rsp + 0x40], xmm0
test r9, r9
je 0x140164761
xor eax, eax
nop word cs:[rax + rax]
movzx ecx, byte [r8 + rax]
xor byte [rsp + rax + 0x40], cl
inc rax
cmp r9, rax
jne 0x140164750
xor eax, eax
lea rcx, [0x140293960]
nop word [rax + rax]
movzx edx, byte [rax + rcx]
xor byte [rsp + rax + 0x40], dl
inc rax
cmp rax, 0x30
jne 0x140164770
lea r15, [rsi + 0xf8]
mov eax, dword [0x1403e4c74]
test eax, 0x2000000
jne 0x1401648ce
test eax, 0x200
jne 0x1401648f5
mov dword [rsi + 0xf0], ntohs
movdqa xmm8, xmmword [rsp + 0x40]
movdqu xmmword [rsi], xmm8
movdqa xmm6, xmmword [rsp + 0x50]
movdqu xmmword [rsi + 0x10], xmm6
mov r12d, gethostbyname
lea r13, [0x1402939b0]
movaps xmm7, xmmword [0x14026fe30]
lea rdi, [rsp + 0x70]
lea rbx, [rsp + 0x30]
lea r14, [rsp + 0x20]
nop dword [rax + rax]
movaps xmmword [rsp + 0x70], xmm7
movdqa xmmword [rsp + 0x30], xmm6
mov rcx, rdi
mov rdx, rbx
call fcn.140165270
movzx eax, byte [r13]
movd xmm0, eax
pxor xmm0, xmm8
movdqa xmm1, xmmword [rsp + 0x70]
movdqa xmm2, xmm1
psrld xmm2, 8
pslld xmm1, 0x18
por xmm1, xmm2
psrldq xmm1, 0xc
pxor xmm1, xmm0
movdqa xmm0, xmm1
pslldq xmm0, 4
movdqa xmm2, xmm1
pslldq xmm2, 8
pxor xmm2, xmm0
movdqa xmm8, xmm1
pslldq xmm8, 0xc
pxor xmm8, xmm2
pxor xmm8, xmm1
movdqu xmmword [rsi + r12 - 0x10], xmm8
cmp r12, 0xf0
je 0x14016491c
movdqa xmmword [rsp + 0x20], xmm8
mov rcx, rdi
mov rdx, r14
call fcn.140165270
movdqa xmm0, xmmword [rsp + 0x70]
psrldq xmm0, 0xc
pxor xmm6, xmm0
movdqa xmm0, xmm6
pslldq xmm0, 4
movdqa xmm1, xmm6
pslldq xmm1, 8
pxor xmm1, xmm0
movdqa xmm0, xmm6
pslldq xmm0, 0xc
pxor xmm0, xmm1
pxor xmm6, xmm0
movdqu xmmword [rsi + r12], xmm6
add r12, 0x20
inc r13
jmp 0x1401647f0
lea rcx, [rsp + 0x40]
mov edx, 0x100
mov r8, rsi
call fcn.1400034e0
lea rax, [0x140001fe0]
test r15, r15
je 0x140164932
lea rcx, [0x140001280]
jmp 0x14016492f
lea rcx, [rsp + 0x40]
mov edx, 0x100
mov r8, rsi
call fcn.1400045d0
lea rax, [0x140004aa0]
test r15, r15
je 0x140164932
lea rcx, [0x1400047a0]
jmp 0x14016492f
lea rax, [0x140162e90]
test r15, r15
je 0x140164932
lea rcx, [0x140161d30]
mov qword [r15], rcx
mov qword [rsi + 0x100], rax
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rsi + 0x108], xmm0
mov qword [rsi + 0x118], 1
mov edi, 1
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140203460
mov eax, edi
movaps xmm6, xmmword [rsp + 0x90]
movaps xmm7, xmmword [rsp + 0xa0]
movaps xmm8, xmmword [rsp + 0xb0]
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140174610
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rcx + 8]
cmp rbx, qword [rcx]
je 0x140174634
mov r14, rbx
jmp 0x14017472c
mov r15, qword [rsi + 0x10]
mov rax, qword [rsi + 0x18]
cmp r15, rax
jae 0x140174684
sub rax, r15
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
lea r12, [rax + rcx]
inc r12
shl r12, 2
and r12, 0xfffffffffffffff8
lea r14, [r15 + r12]
sub r15, rbx
sub r14, r15
mov rcx, r14
mov rdx, rbx
mov r8, r15
call fcn.140204f20
mov qword [rsi + 8], r14
add qword [rsi + 0x10], r12
jmp 0x14017472c
mov rcx, rax
sub rcx, rbx
sar rcx, 2
cmp rax, rbx
mov r12d, 1
cmovne r12, rcx
mov rax, r12
shr rax, 0x3d
jne 0x140174777
lea rcx, [r12*8]
call fcn.14020216c
lea r14, [r12*2 + 6]
and r14, 0xfffffffffffffff8
add r14, rax
mov rcx, r14
sub r15, rbx
je 0x140174708
mov rdx, r15
sar rdx, 3
and r15, 0xfffffffffffffff8
mov rcx, r15
add rcx, r14
shl rdx, 3
xor r8d, r8d
nop word cs:[rax + rax]
mov r9, r14
add r9, r8
je 0x14017474b
mov r10, qword [rbx + r8]
mov qword [r9], r10
add r8, 8
cmp rdx, r8
jne 0x1401746f0
lea rdx, [rax + r12*8]
mov qword [rsi], rax
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rdx
test rbx, rbx
je 0x14017472c
mov rcx, rbx
call fcn.1402021a8
mov r14, qword [rsi + 8]
add r14, 0xfffffffffffffff8
je 0x14017474b
mov rax, qword [rdi]
mov qword [r14], rax
add qword [rsi + 8], 0xfffffffffffffff8
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x25
call fcn.14004460c
call fcn.14003dd61
int3

Function at 0x140176c70
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1403bc5bc]
cmp ecx, 0xffffffff
je 0x140176c92
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 3
dec eax
cmp eax, 2
setb al
jmp 0x140176c94
xor eax, eax
add rsp, 0x28
ret
Function at 0x140176ca0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x1403bc5bc]
cmp ecx, 0xffffffff
je 0x140176cc2
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140176cc7
call fcn.140176de0
mov eax, dword [0x1403e9950]
mov ecx, dword [0x1403bcfc0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140176d8f
mov rbx, qword [0x1403e9948]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x140176d08
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rcx, qword [0x1403e8130]
inc rcx
xor edx, edx
lea rax, [0x1403e8140]
nop dword [rax + rax]
lea r8d, [rcx + rdx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rax + r9*8], 0
je 0x140176d41
inc rdx
cmp rdx, 0x100
jne 0x140176d20
jmp 0x140176d75
lea rcx, [rax + r9*8]
mov dword [rcx], 1
mov qword [rax + r9*8 + 8], rdi
mov ecx, dword [0x1403e9940]
inc ecx
mov dword [0x1403e9940], ecx
mov dword [rax + r9*8 + 0x14], ecx
mov qword [0x1403e8130], r8
mov qword [rsi], r8
mov eax, dword [rax + r9*8 + 0x10]
mov dword [rsi + 8], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsi], 0x100
jae 0x140176dd5
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1403e9950]
call fcn.1402021ec
cmp dword [0x1403e9950], 0xffffffff
jne 0x140176cec
mov ecx, 8
call fcn.14020216c
mov rbx, rax
mov rcx, rax
call fcn.140057430
mov qword [0x1403e9948], rbx
lea rcx, [0x1403e9950]
call fcn.1402022a0
jmp 0x140176cec
int3

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

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.140203400
sub rsp, rax
mov rax, qword [0x1403ac028]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x1403bc5bc]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
jne 0x140176e7c
lea rcx, [rsp + 0x2c]
call fcn.1401c1180
test al, al
je 0x140176ef7
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
jne 0x140176e5e
lea rcx, [rsp + 0x2c]
call fcn.1401c1180
test al, al
je 0x140176efa
cmp dword [rsp + 0x2c], 0xffffffff
je 0x140176efa
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
mov eax, 0xffffffff
lock cmpxchg dword [0x1403bc5bc], ecx
je 0x140176e7c
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x1403bc5bc]
mov dword [rsp + 0x2c], ecx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140176ef4
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.1402055c0
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.1402021dc
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.140204f20
mov ecx, dword [rsp + 0x2c]
mov rdx, rdi
or rdx, 3
call sub.KERNEL32.dll_TlsSetValue
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.140203460
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
int3
int3
int3
Function at 0x140176f00
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x1403bc5bc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140176f30
mov rcx, qword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 8]
jne 0x140176f30
mov rax, qword [rax + rcx]
jmp 0x140176f32
xor eax, eax
add rsp, 0x20
pop rsi
ret

Function at 0x140176f40
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x1403bc5bc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140176f7e
mov rcx, qword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 8]
mov rdx, qword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x140176f77
call fcn.140176de0
jmp 0x140176f5e
Function at 0x14017e560
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
test r8, r8
je 0x14017e58b
xor ecx, ecx
lea r9, [0x1402944b0]
movzx r10d, al
movzx r11d, byte [rdx + rcx]
xor r11d, r10d
shr eax, 8
xor eax, dword [r9 + r11*4]
inc rcx
cmp r8, rcx
jne 0x14017e570
ret
Function at 0x1401804b8
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x248
mov rax, qword [0x1403ac028]
xor rax, rsp
mov qword [rsp + 0x240], rax
movaps xmm0, xmmword [0x14026fe30]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
call sub.ntdll.dll_RtlFormatCurrentUserKeyPath
mov esi, eax
test eax, eax
js 0x140180634
lea rdi, [rsp + 0x20]
mov rdx, qword [rdi + 8]
lea rbx, [0x1403eb7d0]
mov r14d, 0xff
mov r8d, 0xff
mov rcx, rbx
call fcn.14022fd5c
mov rcx, rbx
call fcn.14022f908
sub r14, rax
lea rdx, [0x14027b6f8]
mov rcx, rbx
mov r8, r14
call fcn.14022fd5c
mov rcx, rdi
call sub.ntdll.dll_RtlFreeUnicodeString
lea rbx, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call fcn.1402055c0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdi, rax
lea rcx, str.PROGRAMFILES
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140180590
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14022fda4
test eax, eax
je 0x1401805cb
lea rcx, str.PROGRAMFILES_X86_
lea rdx, [rsp + 0x30]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x1401805c7
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14022fda4
test eax, eax
je 0x1401805cb
xor eax, eax
jmp 0x1401805cd
mov al, 1
mov byte [0x1403eb3c1], al
mov dword [rsp + 0x30], 0
lea rcx, [0x140283468]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1402949e7]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140180625
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rax, rdi
call qword [case.0x1400f45b0.0]
test eax, eax
je 0x140180625
cmp dword [rsp + 0x30], 0
setne al
jmp 0x140180627
xor eax, eax
mov byte [0x1403eb9d0], al
mov byte [0x1403eb3c0], 1
test esi, esi
setns bl
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140203460
mov eax, ebx
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1401807c1
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rsi, r8
mov ebx, edx
mov edi, ecx
mov rax, qword [0x1403ac028]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [r8 + 0x17]
test al, al
jns 0x1401807f4
mov rax, qword [rsi + 8]
test rax, rax
je 0x140180823
bt ebx, 8
jae 0x140180808
mov eax, ebx
and eax, 0x200
jne 0x140180823
cmp edi, 2
lea rax, [0x1403eb3d0]
lea rcx, [0x1403eb5d0]
cmove rcx, rax
cmp word [rcx], 0
je 0x140180842
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140203460
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xorps xmm0, xmm0
lea r14, [rsp + 0x40]
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [r14], 0
je 0x140180823
cmp byte [0x1403eb9d0], 0
setne al
bt ebx, 8
jb 0x140180823
shr ebx, 9
and ebx, 1
or bl, al
je 0x140180823
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea r12, str.SOFTWARE
cmove r12, rax
movzx ebp, byte [rsi + 0x17]
test bpl, bpl
js 0x1401808a5
mov rdi, rsi
jmp 0x1401808ac
mov rdi, qword [rsi]
mov rbp, qword [rsi + 8]
mov ebx, 1
xor r14d, r14d
xor eax, eax
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 0
mov r15, qword [r12 + 8]
mov r13, rbp
sub r13, r15
jb 0x1401808ea
mov rdx, qword [r12]
mov rcx, rdi
mov r8, r15
call fcn.140222ce4
test eax, eax
je 0x1401808fb
add r12, 0x28
inc r14
cmp r14, rbx
jb 0x1401808ca
jmp 0x14018097e
movzx edx, word [rdi + r15*2]
cmp edx, 0x5c
je 0x140180909
test edx, edx
jne 0x1401808ea
lea rcx, [rdi + r15*2]
mov r8d, dword [r12 + 0x10]
lea rax, str.WOW6432Node_
cmp r8d, 1
je 0x14018093b
cmp r8d, 2
jne 0x140180931
mov rdi, rcx
lea rax, str.WOW6432Node
jmp 0x14018093b
mov rdi, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
cmp dx, 0x5c
mov dword [rsp + 0x2c], r8d
jne 0x140180959
lea rdx, [rcx + 2]
dec r13
cmp word [rcx + 2], 0x5c
mov rcx, rdx
je 0x140180946
jmp 0x14018095c
mov rdx, rcx
mov rbx, qword [r12 + 0x20]
mov r12, qword [r12 + 0x18]
mov rbp, r13
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rax
xor r14d, r14d
mov rdi, rdx
jmp 0x1401808f1
cmp dword [rsp + 0x2c], 0
je 0x140180823
cmp byte [rsi + 0x17], 0
mov rax, rsi
jns 0x140180995
mov rax, qword [rsi]
mov rdx, qword [rsp + 0x30]
sub rdx, rax
sar rdx, 1
mov rcx, rsi
mov r8, qword [rsp + 0x38]
call fcn.1400e9a36
jmp 0x140180823