joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a90b0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov r14, qword [rdx]
mov qword [rdx], 0
lea r15, [r14 + 1]
cmp r15, 2
jb 0x1400a90da
call fcn.1400fc5f0
mov qword [rsi], 0
test r14, r14
je 0x1400a9110
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400a9135
cmp r15, 2
jb 0x1400a9108
mov qword [rsi], r14
call fcn.1400fc5f0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov al, byte [rdi + 8]
mov byte [rsi + 8], al
mov byte [rdi + 8], 0
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x1400a914b
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400fc5f0
mov rcx, qword [rsi]
call fcn.14010ef00
mov qword [rsi], 0
jmp 0x1400a90fa
call fcn.1400fc5f0
mov rcx, qword [rdi]
call fcn.14010ef00
mov qword [rdi], 0
jmp 0x1400a9126
Function at 0x1400aad30
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov edi, r9d
mov r14, r8
mov r15, rdx
mov rbx, rcx
xor ebp, ebp
test rcx, rcx
setne bpl
mov r12d, dword [rsp + 0xc0]
mov rax, qword [0x14022a038]
xor rax, rsp
mov qword [rsp + 0x58], rax
shl ebp, 0x10
mov ecx, SafeArrayCopy
call fcn.140148440
mov rsi, rax
mov rax, qword [0x14022d7e0]
and rax, r15
cmp rax, qword [0x14022d7c8]
je 0x1400aadf4
mov qword [rsi], r15
test r14, r14
setne byte [rsi + 8]
mov dword [rsi + 0xc], edi
mov dword [rsi + 0x10], r12d
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x28], 0
lea r8, [0x1400ab220]
xor ecx, ecx
mov rdx, rbx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x1400aadfe
test r14, r14
je 0x1400aae49
mov qword [r14], rdi
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140148f60
mov eax, ebx
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, r15
call fcn.1400fe570
jmp 0x1400aad8d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x1400aae17
mov ebp, eax
cmp eax, 0x5af
je 0x1400aae17
cmp ebp, 0xe
jne 0x1400aae57
mov rcx, rbx
call fcn.1401bafb0
test rsi, rsi
je 0x1400aadd0
mov rcx, qword [rsi]
mov rax, qword [0x14022d7e0]
and rax, rcx
cmp rax, qword [0x14022d7c8]
jne 0x1400aae3f
call fcn.1400fe6c0
mov rcx, rsi
call fcn.14014847c
jmp 0x1400aadd0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400aadd0
mov eax, dword [0x14023eb60]
mov ecx, dword [0x140239ae4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400aaecf
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov edx, ebp
call fcn.14009f280
movzx eax, byte [rbx + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rbx]
cmovns rax, rbx
cmovs rcx, qword [rbx + 8]
lea rdx, [rsp + 0x48]
mov qword [rdx], rax
mov qword [rdx + 8], rcx
mov rcx, qword [0x14023eb58]
call fcn.1400fb0d0
cmp byte [rbx + 0x17], 0
jns 0x1400aae1f
mov rcx, qword [rsp + 0x30]
call fcn.14014847c
jmp 0x1400aae1f
lea rcx, [0x14023eb60]
call fcn.1401485a0
cmp dword [0x14023eb60], 0xffffffff
jne 0x1400aae78
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.140093bb0
mov qword [0x14023eb58], rax
lea rcx, [0x14023eb60]
call fcn.140148638
jmp 0x1400aae78
Function at 0x1400abd10
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov rax, qword [0x14022a038]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r14, qword [rcx + 8]
lea rax, [r14 + 1]
cmp rax, 1
ja 0x1400abd96
xor ecx, ecx
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r14, rax
cmp qword [rdi + 8], rax
je 0x1400abd96
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rdi + 8]
inc rax
cmp rax, 2
jae 0x1400abe43
mov rax, r14
inc rax
cmp rax, 2
jb 0x1400abd8a
mov qword [rdi + 8], r14
call fcn.1400fc5f0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
inc r14
cmp r14, 2
jb 0x1400abe81
call fcn.14010f210
xor r8d, r8d
cmp eax, 5
setge r8b
shl r8d, 0x1c
or r8d, 0xf
mov r9, qword [rdi + 8]
mov dword [rsp + 0x20], 1
mov rcx, rbx
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
test eax, eax
jne 0x1400abe5e
lea rcx, [rdi + 0x68]
mov rdx, rsi
call fcn.1400fc3f0
lea rbx, [rdi + 0x10]
lea rdx, str.StartWatching
lea r8, str....._basewin_registry.cc
lea r14, [rsp + 0x28]
mov rcx, r14
mov r9d, 0x65
call fcn.1400fc5d0
mov rdx, qword [rdi + 8]
mov rcx, rbx
mov r8, rdi
mov r9, r14
call fcn.1400ab860
mov edi, eax
mov rcx, rsi
call fcn.1400fc490
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140148f60
mov eax, edi
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call fcn.1400fc5f0
mov rcx, qword [rdi + 8]
call fcn.14010ef00
mov qword [rdi + 8], 0
jmp 0x1400abd75
mov rax, qword [rdi + 8]
inc rax
cmp rax, 2
jb 0x1400abe81
call fcn.1400fc5f0
mov rcx, qword [rdi + 8]
call fcn.14010ef00
mov qword [rdi + 8], 0
xor edi, edi
jmp 0x1400abe21

Function at 0x1400ac060
Capabilities:
Query or enumerate registry value

Disassembly:
add rcx, 0x18
cmp byte [rdx + 0x17], 0
jns 0x1400650ed
mov rdx, qword [rdx]
jmp 0x1400ac060
sub rsp, 0x38
mov rcx, qword [rcx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete al
add rsp, 0x38
ret
Function at 0x1400ac110
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
movaps xmmword [rsp + 0xa0], xmm6
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14022a038]
xor rax, rsp
mov qword [rsp + 0x98], rax
xor ebp, ebp
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
test eax, eax
jne 0x1400ac183
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140148f60
mov eax, ebp
movaps xmm6, xmmword [rsp + 0xa0]
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, [rsp + 0x90]
mov qword [rax], 0
mov r9d, esi
or r9d, 8
mov qword [rsp + 0x20], rax
xor ebp, ebp
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
je 0x1400ac155
mov ebp, eax
test eax, eax
jne 0x1400ac155
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x70]
mov qword [r14 + 0x10], rax
movaps xmm0, xmmword [0x140206780]
movaps xmmword [r14], xmm0
mov rcx, r14
mov rdx, rdi
call fcn.140185a00
movzx eax, byte [r14 + 0x17]
test al, al
jns 0x1400ac1f3
mov rax, qword [rsp + 0x78]
jmp 0x1400ac1f6
and eax, 0x7f
test rax, rax
je 0x1400ac20f
lea rcx, [rsp + 0x70]
call fcn.14008d6c0
cmp word [rax], 0x5c
jne 0x1400ac337
movzx r15d, byte [rsp + 0x87]
test r15b, r15b
jns 0x1400ac224
mov r15, qword [rsp + 0x78]
jmp 0x1400ac228
and r15d, 0x7f
xorps xmm6, xmm6
lea r12, [rsp + 0x50]
movaps xmmword [r12], xmm6
mov qword [r12 + 0x10], 0
lea r13, [rsp + 0x4c]
mov rbp, qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [rsp + 0x4c], 0x104
mov edx, 0x104
mov rcx, r12
call fcn.1400aa560
mov rcx, qword [rsp + 0x90]
movups xmmword [rsp + 0x30], xmm6
movups xmmword [rsp + 0x20], xmm6
xor edx, edx
mov r8, rax
mov r9, r13
call rbp
test eax, eax
jne 0x1400ac2e7
mov edx, dword [rsp + 0x4c]
mov rcx, r12
xor r8d, r8d
call fcn.1400fa130
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1400fa130
movzx r8d, byte [rsp + 0x67]
test r8b, r8b
jns 0x1400ac2b3
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
jmp 0x1400ac2ba
and r8d, 0x7f
mov rdx, r12
mov rcx, r14
call fcn.14008fa00
cmp byte [rsp + 0x87], 0
mov rdx, r14
jns 0x1400ac2d4
mov rdx, qword [rsp + 0x70]
mov rcx, rbx
mov r8d, esi
call fcn.1400ac110
test eax, eax
je 0x1400ac24a
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
mov rdx, rdi
mov r8d, esi
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov ebp, eax
cmp byte [rsp + 0x67], 0
jns 0x1400ac31a
mov rcx, qword [rsp + 0x50]
call fcn.14014847c
cmp byte [rsp + 0x87], 0
jns 0x1400ac155
mov rcx, qword [rsp + 0x70]
call fcn.14014847c
jmp 0x1400ac155
lea rcx, [rsp + 0x70]
mov dx, 0x5c
call fcn.1400f9f10
jmp 0x1400ac20f
Function at 0x1400ac360
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x14022a038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, 4
lea r9, [rsp + 0x3c]
mov dword [r9], eax
lea r8, [rsp + 0x38]
mov dword [r8], eax
lea rax, [rsp + 0x34]
mov dword [rax], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400ac3e8
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x1400ac3d2
cmp dword [rsp + 0x38], 4
jne 0x1400ac3d2
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140148f60
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
mov edi, eax
jmp 0x1400ac3d2

Function at 0x1400ac3f0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140148f00
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14022a038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.14014bec0
lea r9, [rsp + 0x3c]
mov dword [r9], 1
lea rax, [rsp + 0x38]
mov dword [rax], 0x800
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400ac4b3
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x1400ac4b7
lea rcx, [rsp + 0x840]
call fcn.140170424
lea rdx, [rsp + 0x840]
mov rcx, rsi
mov r8, rax
call fcn.14008f650
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140148f60
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x1400ac494
cmp eax, 2
jne 0x1400ac50c
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.14014bec0
lea rcx, [rsp + 0x840]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x1400ac513
lea rcx, [rsp + 0x40]
call fcn.140170424
lea rdx, [rsp + 0x40]
jmp 0x1400ac487
mov edi, 0x3f4
jmp 0x1400ac494
mov edi, 0xea
jmp 0x1400ac494

Function at 0x1400ac520
Capabilities:
Set registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rcx, r8
call fcn.140170424
add eax, eax
add eax, 2
mov rcx, qword [rbx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov rdx, rdi
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400ad790
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14023ebe0]
mov ecx, dword [0x140239ae4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400ad7cb
movzx eax, word [0x14023ebb0]
cmp eax, 9
jne 0x1400ad813
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x14023ebe0]
call fcn.1401485a0
cmp dword [0x14023ebe0], 0xffffffff
jne 0x1400ad7b5
xorps xmm0, xmm0
movups xmmword [0x14023ebd0], xmm0
movups xmmword [0x14023ebc0], xmm0
movups xmmword [0x14023ebb0], xmm0
lea rcx, [0x14023ebb0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14023ebe0]
call fcn.140148638
jmp 0x1400ad7b5
test eax, eax
je 0x1400ad7c6
cmp eax, 6
jne 0x1400ad823
mov eax, 2
jmp 0x1400ad7c6
cmp eax, 0xc
jne 0x1400ad82f
mov eax, 3
jmp 0x1400ad7c6
mov eax, 4
jmp 0x1400ad7c6
Function at 0x1400af060
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rax, qword [0x14022a038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, qword [rcx]
lea r14, [rsi + 1]
cmp r14, 2
jb 0x1400af18b
mov rdi, rcx
cmp dword [rcx + 8], 1
jne 0x1400af18f
mov qword [rdi], 0
call fcn.1400fc5f0
test rsi, rsi
je 0x1400af0bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.1400fc5f0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x38]
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor ecx, ecx
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], 5
mov rcx, rax
mov rdx, rsi
mov r8, rax
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov ebx, eax
test eax, eax
je 0x1400af140
mov r15, qword [rsp + 0x38]
cmp qword [rdi], r15
je 0x1400af139
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x1400af175
lea rax, [r15 + 1]
cmp rax, 2
jb 0x1400af131
mov qword [rdi], r15
call fcn.1400fc5f0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rdi + 8], 0
test ebx, ebx
setne dil
cmp r14, 2
jb 0x1400af159
call fcn.1400fc5f0
mov rcx, rsi
call fcn.14010ef00
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140148f60
mov eax, edi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400fc5f0
mov rcx, qword [rdi]
call fcn.14010ef00
mov qword [rdi], 0
jmp 0x1400af11f
xor edi, edi
jmp 0x1400af159
int3
Function at 0x1400b14d0
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov edi, edx
mov rsi, rcx
lea rax, str.P_e_
mov qword [rcx], rax
add rcx, 8
call fcn.1400ed3c0
lea rcx, [rsi + 0x10]
call fcn.1400ed3c0
xor ebx, ebx
mov byte [rsi + 0x18], bl
lea rcx, [rsi + 0x40]
xorps xmm6, xmm6
movups xmmword [rsi + 0x1c], xmm6
movups xmmword [rsi + 0x2c], xmm6
mov dword [rsi + 0x3c], ebx
call fcn.1400ed3c0
mov byte [rsi + 0x48], bl
lea rax, [rsi + 0x70]
movups xmmword [rsi + 0x50], xmm6
mov qword [rsi + 0x60], rbx
movups xmmword [rsi + 0x70], xmm6
mov qword [rsi + 0x68], rax
movups xmmword [rsi + 0x80], xmm6
movups xmmword [rsi + 0x90], xmm6
movups xmmword [rsi + 0xa0], xmm6
movups xmmword [rsi + 0xb0], xmm6
mov qword [rsi + 0xc0], rbx
movups xmmword [rsi + 0xc8], xmm6
movups xmmword [rsi + 0xd8], xmm6
mov ebp, 0x3f800000
mov dword [rsi + 0xe8], ebp
mov dword [rsi + 0xf0], ebx
movups xmmword [rsi + 0xf8], xmm6
movups xmmword [rsi + 0x108], xmm6
mov dword [rsi + 0x118], ebp
movups xmmword [rsi + 0x120], xmm6
movups xmmword [rsi + 0x130], xmm6
mov dword [rsi + 0x140], ebp
movups xmmword [rsi + 0x148], xmm6
movups xmmword [rsi + 0x158], xmm6
mov dword [rsi + 0x168], ebp
movups xmmword [rsi + 0x170], xmm6
movups xmmword [rsi + 0x180], xmm6
mov dword [rsi + 0x190], ebp
mov qword [rsi + 0x1b0], rbx
movups xmmword [rsi + 0x198], xmm6
mov dword [rsi + 0x1a8], ebx
mov eax, dword [reloc.WS2_32.dll_accept]
mov dword [rsi + 0x1b8], eax
lea rcx, [rsi + 0x1c0]
call fcn.1400cbb90
lea rcx, [rsi + 0x310]
movups xmmword [rsi + 0x2f8], xmm6
mov qword [rsi + 0x308], rbx
xor edx, edx
call fcn.1400a3650
lea rcx, [rsi + 0x320]
xor edx, edx
call fcn.1400a3650
lea rcx, [rsi + 0x330]
xor edx, edx
call fcn.1400a3650
movups xmmword [rsi + 0x340], xmm6
movups xmmword [rsi + 0x350], xmm6
mov dword [rsi + 0x360], ebp
movups xmmword [rsi + 0x368], xmm6
movups xmmword [rsi + 0x378], xmm6
movups xmmword [rsi + 0x388], xmm6
mov byte [rsi + 0x398], bl
mov dword [rsi + 0x39c], edi
mov byte [rsi + 0x3a0], bl
movups xmmword [rsi + 0x3a8], xmm6
movups xmmword [rsi + 0x3b8], xmm6
call fcn.140039860
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rsi + 0x1a8], eax
mov eax, eax
movabs rcx, 0xcbf29ce484222325
xor rcx, rax
movabs rax, 0x100000001b3
imul rax, rcx
mov qword [rsi + 0x1a0], rax
mov rcx, rsi
call fcn.1400b1700
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x20], rax
test rcx, rcx
jne 0x1400b16eb
call fcn.1400b0230
lea r8, str.TraceLog
mov rcx, rax
mov rdx, rsi
xor r9d, r9d
call fcn.1400b02e0
mov qword [0x14023f068], rsi
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [case.0x1401b1830.0]
jmp 0x1400b16b9
Function at 0x1400b31f0
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov edi, 2
cmp rdx, 1
jne 0x1400b3220
mov rbx, qword [rsi + 8]
cmp rdi, rbx
jbe 0x1400b322e
mov rcx, rsi
mov rdx, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140098eb0
lea rax, [rdx - 1]
test rdx, rax
jne 0x1400b3244
mov rdi, rdx
jmp 0x1400b3205
jae 0x1400b3331
mov rax, qword [rsi + 0x18]
test rax, rax
js 0x1400b3251
cvtsi2ss xmm0, rax
jmp 0x1400b3266
mov rcx, rdx
call fcn.1400f7750
mov rdi, rax
jmp 0x1400b3205
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rsi + 0x20]
call fcn.14016751c
cvttss2si rax, xmm0
mov rcx, rax
subss xmm0, dword [0x1401f5ca8]
cvttss2si rdx, xmm0
sar rcx, 0x3f
and rdx, rcx
or rdx, rax
cmp rbx, 3
jb 0x1400b3319
mov rax, rbx
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, rbx
sub rax, rcx
movabs rcx, 0x3333333333333333
mov r8, rax
shr r8, 2
and rax, rcx
and r8, rcx
add r8, rax
mov rax, r8
shr rax, 4
add rax, r8
movabs rcx, 0xf0f0f0f0f0f0f0f
and rcx, rax
movabs rax, 0x101010101010101
imul rax, rcx
shr rax, 0x38
cmp eax, 1
ja 0x1400b3319
lea rax, [rdx - 1]
bsr rcx, rax
xor ecx, 0x3f
neg cl
mov eax, 1
shl rax, cl
cmp rdx, 2
cmovb rax, rdx
jmp 0x1400b3321
mov rcx, rdx
call fcn.1400f7750
cmp rdi, rax
cmovbe rdi, rax
cmp rdi, rbx
jb 0x1400b320e
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400b39d0
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 r15, qword [rcx + 0x10]
cmp r15, qword [rcx + 0x18]
je 0x1400b3a0f
test r15, r15
je 0x1400b3afd
mov rax, qword [rdi]
mov qword [r15], rax
add qword [rsi + 0x10], 8
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r14, qword [rsi]
mov rbx, qword [rsi + 8]
mov rax, rbx
sub rax, r14
jbe 0x1400b3a59
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
lea r14, [rax + rcx]
inc r14
shr r14, 1
shl r14, 3
mov rcx, rbx
sub rcx, r14
mov r8, r15
sub r8, rbx
mov rdx, rbx
call fcn.14014b810
sub r15, r14
mov qword [rsi + 0x10], r15
sub qword [rsi + 8], r14
jmp 0x1400b39ed
mov rax, r15
sub rax, r14
sar rax, 2
cmp r15, r14
mov r12d, 1
cmovne r12, rax
mov rax, r12
shr rax, 0x3d
jne 0x1400b3b29
lea rcx, [r12*8]
call fcn.140148440
mov rcx, r12
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
mov rdx, rcx
sub r15, rbx
je 0x1400b3acd
mov r8, r15
sar r8, 3
and r15, 0xfffffffffffffff8
mov rdx, r15
add rdx, rcx
shl r8, 3
xor r9d, r9d
mov r10, rcx
add r10, r9
je 0x1400b3afd
mov r11, qword [rbx + r9]
mov qword [r10], r11
add r9, 8
cmp r8, r9
jne 0x1400b3ab5
lea r8, [rax + r12*8]
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
mov qword [rsi + 0x18], r8
mov r15, rdx
test r14, r14
je 0x1400b39ed
mov rcx, r14
call fcn.14014847c
mov r15, qword [rsi + 0x10]
jmp 0x1400b39ed
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, 0x23
call fcn.140186340
call fcn.140185b10
int3
Function at 0x1400b4e90
Capabilities:
Initialize winsock library

Disassembly:
push rsi
sub rsp, 0x1c0
mov rax, qword [0x14022a038]
xor rax, rsp
mov qword [rsp + 0x1b8], rax
mov rax, qword [0x14023f0f8]
cmp rax, 1
jbe 0x1400b4ed1
mov rcx, qword [rsp + 0x1b8]
xor rcx, rsp
call fcn.140148f60
nop
add rsp, 0x1c0
pop rsi
ret
lea rcx, [0x14023f0f8]
call fcn.1400977e0
test al, al
je 0x1400b4f28
lea rsi, [rsp + 0x20]
mov r8d, 0x198
mov rcx, rsi
mov dl, 0xaa
call fcn.14014bec0
mov cx, 0x202
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400b4f0d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [0x14023f100]
lea rcx, [0x14023f0f8]
xor r8d, r8d
mov r9, rcx
call fcn.1400978a0
jmp 0x1400b4eb7
mov rax, qword [0x14023f0f8]
jmp 0x1400b4eb7
Function at 0x1400b54b0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov dword [rcx], 1
xor eax, eax
mov qword [rcx + 8], rax
mov r14, qword [rdx]
mov qword [rdx], rax
lea r15, [r14 + 1]
cmp r15, 2
jb 0x1400b54e2
call fcn.1400fc5f0
cmp qword [rsi + 8], r14
je 0x1400b5514
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x1400b552f
cmp r15, 2
jb 0x1400b550c
mov qword [rsi + 8], r14
call fcn.1400fc5f0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x1400b5547
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400fc5f0
mov rcx, qword [rsi + 8]
call fcn.14010ef00
mov qword [rsi + 8], 0
jmp 0x1400b54fd
call fcn.1400fc5f0
mov rcx, qword [rdi]
call fcn.14010ef00
mov qword [rdi], 0
jmp 0x1400b5520
Function at 0x1400bfd90
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x14022a038]
xor rax, rsp
mov qword [rsp + 0x50], rax
test rcx, rcx
je 0x1400bffac
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x14022d880], rax
jne 0x1400bffaf
mov rsi, rcx
mov r14d, dword [rcx + 0xc]
add r14, 0x518
mov byte [rsp + 0x3f], 0xaa
mov dl, byte [rcx + 2]
mov rcx, r14
call fcn.1400fe320
movzx eax, ax
lea r12, [rax + rax*4]
lea r15, [rsi + r12*8]
add r15, 0x48
lea rbx, [rsi + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400bff6e
mov rax, qword [r15]
mov rdi, qword [rax]
test rdi, rdi
je 0x1400bfefc
mov byte [rsp + 0x3f], 0
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400bff67
lea rdx, [rsi + r12*8]
bswap rcx
mov r14d, dword [rdx + 0x60]
mov rdx, rcx
xor rdx, rdi
cmp rdx, 0x1fffff
ja 0x1400bff7b
mov edx, ecx
and edx, 0x1fc000
je 0x1400bff7b
prefetcht0 byte [rcx]
mov qword [rax], rcx
mov ecx, dword [rax + 0x18]
lea edx, [rcx + 2]
and edx, 0x3ffe
and ecx, 0xffffc001
or ecx, edx
mov dword [rax + 0x18], ecx
mov rax, qword [rax + 0x10]
mov eax, dword [rax + 0x18]
add rax, qword [rsi + 0x1498]
mov qword [rsi + 0x1498], rax
mov rcx, qword [rsi + 0x14a0]
cmp rcx, rax
cmova rax, rcx
mov qword [rsi + 0x14a0], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, rdi
mov rdx, rsi
call fcn.140126c80
mov ecx, dword [0x140243718]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x140239ae4]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x120], rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140148f60
mov rax, rdi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rax, [rsp + 0x3f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x4000
mov rcx, r15
mov rdx, rsi
mov r8d, 2
mov r9, r14
call fcn.140127c60
test rax, rax
je 0x1400bffb2
mov rdi, rax
mov rcx, rax
and rcx, 0xffffffffffe00000
mov rdx, rax
shr rdx, 9
and edx, 0xfe0
lea rax, [rdx + rcx]
movzx ecx, byte [rdx + rcx + 0x101e]
and ecx, 0x3f
shl rcx, 5
sub rax, rcx
add rax, 0x1000
jmp 0x1400bfe77
xor ecx, ecx
jmp 0x1400bfe5d
mov rcx, rbx
call fcn.140127ad0
jmp 0x1400bfe0e
movaps xmm0, xmmword [0x140206780]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi], xmm0
mov r8, qword [rdi]
lea rdx, str.first
mov rcx, rsi
call fcn.1401aaba0
mov rcx, rsi
call fcn.140039860
mov rcx, r14
call fcn.1401aac10
int3
int3
xor edi, edi
jmp 0x1400bfea1