joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140075610
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x90
mov r12, rdx
mov rdi, rcx
mov rax, qword [0x140324948]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rdx, str.CreateDirectoryAndGetError
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x50]
mov rcx, rbx
mov r9d, 0x258
call fcn.1400764c0
lea rcx, [rsp + 0x38]
mov rdx, rbx
xor r8d, r8d
call fcn.14008c020
cmp byte [rdi + 0x17], 0
mov rbx, rdi
jns 0x140075676
mov rbx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400756ad
mov bl, 1
test al, 0x10
jne 0x1400757e2
test r12, r12
je 0x14007569b
mov dword [r12], 0xfffffff7
mov ecx, 0x50
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x1400757e2
lea rbp, [rsp + 0x20]
mov rcx, rdi
mov rdx, rbp
call fcn.140074440
movzx ecx, byte [rsp + 0x37]
mov rax, rcx
test cl, cl
jns 0x1400756ce
mov rax, qword [rsp + 0x28]
movzx esi, byte [rdi + 0x17]
mov rdx, rsi
test sil, sil
jns 0x1400756de
mov rdx, qword [rdi + 8]
cmp rax, rdx
jne 0x14007572b
test rax, rax
je 0x140075714
test cl, cl
jns 0x1400756f1
mov rbp, qword [rsp + 0x20]
mov rcx, rdi
test sil, sil
jns 0x1400756fc
mov rcx, qword [rdi]
xor edx, edx
nop
movzx esi, word [rbp + rdx*2]
cmp si, word [rcx + rdx*2]
jne 0x14007572b
add rdx, 1
cmp rax, rdx
jne 0x140075700
test r12, r12
je 0x140075721
mov dword [r12], 0xfffffffc
mov ecx, 2
jmp 0x1400757d0
lea rcx, [rsp + 0x20]
mov rdx, r12
call fcn.140075610
test al, al
je 0x1400757d6
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x1400757d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp eax, 0xb7
jne 0x1400757be
lea rdx, str.DirectoryExists
lea r8, str..._.._base_files_file_util_win.cc
lea r15, [rsp + 0x50]
mov rcx, r15
mov r9d, 0x1bd
call fcn.1400764c0
lea r14, [rsp + 0x70]
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14008c020
cmp byte [rdi + 0x17], 0
jns 0x1400757a1
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov rcx, r14
call fcn.14008c150
cmp edi, 0xffffffff
je 0x1400757be
and edi, 0x10
jne 0x1400757d8
test r12, r12
je 0x1400757ce
mov ecx, ebp
call fcn.140075bc0
mov dword [r12], eax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
lea rcx, [rsp + 0x20]
call fcn.140073ad0
lea rcx, [rsp + 0x38]
call fcn.14008c150
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140190ca0
mov eax, ebx
add rsp, 0x90
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140075810
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x2a8
mov r14, rcx
mov rax, qword [0x140324948]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
lea rdx, [0x1401d7195]
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x90]
mov rcx, rbx
mov r9d, 0x37a
call fcn.1400764c0
lea rcx, [rsp + 0x78]
xor edi, edi
mov rdx, rbx
xor r8d, r8d
call fcn.14008c020
mov word [rsp + 0x90], 0
lea rdx, [rsp + 0x90]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xffffffff
cmp eax, 0x103
ja 0x1400759aa
movabs rsi, 0x7fffffffffffffef
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x90]
call fcn.1401b5060
cmp rax, rsi
ja 0x1400759d7
mov rdi, rax
cmp rax, 0xb
jae 0x1400758e7
lea rsi, [rsp + 0x60]
mov byte [rsp + 0x77], dil
mov r12, rsi
mov r15, rsi
test rdi, rdi
jne 0x14007591c
jmp 0x140075935
lea rbx, [rdi + 8]
and rbx, 0xfffffffffffffff8
js 0x1400759e3
lea rcx, [rbx + rbx]
call fcn.140190820
mov r12, rax
mov qword [rsp + 0x60], rax
add rsi, 0x11
or rsi, rbx
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x68], rdi
lea rsi, [rsp + 0x60]
mov r8, rdi
add r8, rdi
lea rdx, [rsp + 0x90]
mov rcx, r12
call fcn.140193590
mov r15, rsi
mov word [r12 + rdi*2], 0
movzx eax, byte [r15 + 0x17]
test al, al
cmovs rsi, qword [rsp + 0x60]
mov qword [rsp + 0x20], rsi
cmovs rax, qword [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rdi, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140073a80
lea rbx, [rsp + 0x48]
mov rcx, rdi
mov rdx, rbx
call fcn.140074cf0
mov rcx, r14
mov rdx, rbx
call fcn.140073b00
mov rcx, rbx
call fcn.140073ad0
mov rcx, rdi
call fcn.140073ad0
cmp byte [r15 + 0x17], 0
jns 0x1400759a7
mov rcx, qword [rsp + 0x60]
call fcn.140190860
mov dil, 1
lea rcx, [rsp + 0x78]
call fcn.14008c150
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.140190ca0
mov eax, edi
add rsp, 0x2a8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [rsp + 0x60]
call fcn.14006a820
ud2
call fcn.1401a6a70
ud2

Function at 0x140075ae0
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
mov esi, r8d
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x140324948]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea rdx, str.WriteAtCurrentPos
lea r8, str..._.._base_files_file_win.cc
lea rdi, [rsp + 0x38]
mov rcx, rdi
mov r9d, 0x87
call fcn.1400764c0
lea rcx, [rsp + 0x58]
mov rdx, rdi
xor r8d, r8d
call fcn.14008c020
test esi, esi
js 0x140075b94
lea rcx, [rsp + 0x38]
call fcn.140012f60
call fcn.1400cf230
test al, al
je 0x140075b60
movsxd r9, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x38]
mov r8, rbx
call fcn.1400cf2d0
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov rdx, r14
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [rsp + 0x34]
lea rcx, [rsp + 0x38]
call fcn.1400cf2a0
jmp 0x140075b99
mov esi, 0xffffffff
lea rcx, [rsp + 0x58]
call fcn.14008c150
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140190ca0
mov eax, esi
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140076ba0
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x258
mov rax, qword [0x140324948]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r14b, 1
cmp qword [0x1403478b8], 0
jne 0x140076e2a
mov rdi, qword [0x140347870]
test rdi, rdi
je 0x140076c9f
test byte [reloc.WS2_32.dll_accept], 1
je 0x140076e2a
cmp byte [rdi + 0x17], 0
jns 0x140076bf8
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1403478b8], rax
add rax, 1
cmp rax, 1
ja 0x140076e2a
mov word [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x140076e27
cmp eax, 0x104
ja 0x140076e27
mov rcx, qword [0x140347870]
lea rdx, [rsp + 0x40]
call fcn.14006bd90
mov rcx, qword [0x140347870]
movzx eax, byte [rcx + 0x17]
test al, al
js 0x140076da0
mov rdx, rcx
cmp word [rdx + rax*2 - 2], 0x5c
jne 0x140076daf
jmp 0x140076dc2
movabs rbp, 0x7fffffffffffffef
mov ecx, 0x18
call fcn.140190820
mov rdi, rax
lea rsi, [rsp + 0x40]
xor ecx, ecx
mov rdx, rsi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
mov rcx, rsi
call fcn.1401b5060
cmp rax, rbp
ja 0x140076e4d
mov rbx, rax
cmp rax, 0xb
jae 0x140076d01
mov byte [rdi + 0x17], bl
mov r15, rdi
test rbx, rbx
jne 0x140076d2d
jmp 0x140076d40
lea rsi, [rbx + 8]
and rsi, 0xfffffffffffffff8
js 0x140076e57
lea rcx, [rsi + rsi]
call fcn.140190820
mov r15, rax
mov qword [rdi], rax
add rbp, 0x11
or rbp, rsi
mov qword [rdi + 0x10], rbp
mov qword [rdi + 8], rbx
mov r8, rbx
add r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.140193590
mov word [r15 + rbx*2], 0
movzx r8d, byte [rdi + 0x17]
test r8b, r8b
jns 0x140076d55
mov r8, qword [rdi + 8]
mov rcx, rdi
mov dx, 0x5c
call fcn.14006c270
inc rax
je 0x140076d78
mov rcx, rdi
mov rdx, rax
mov r8, 0xffffffffffffffff
call fcn.14006bf00
lea rdx, [0x1401d72c8]
mov rcx, rdi
call fcn.14006bbb0
mov qword [0x140347870], rdi
test byte [reloc.WS2_32.dll_accept], 1
jne 0x140076bef
jmp 0x140076e2a
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
cmp word [rdx + rax*2 - 2], 0x5c
je 0x140076dc2
lea rdx, [0x1401d72c4]
call fcn.14006bbb0
mov rcx, qword [0x140347870]
lea rdx, [0x1401d72c8]
call fcn.14006bbb0
mov rcx, qword [0x140347870]
cmp byte [rcx + 0x17], 0
jns 0x140076dde
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1403478b8], rax
add rax, 1
cmp rax, 1
ja 0x140076e2a
mov qword [0x1403478b8], 0
xor r14d, r14d
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140190ca0
mov eax, r14d
add rsp, 0x258
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, rdi
call fcn.14006a820
ud2
call fcn.1401a6a70
ud2
Function at 0x140077ee0
Capabilities:
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov r14, r9
mov rdi, r8
mov ebx, edx
mov rsi, rcx
call fcn.1400a18e0
test rdi, rdi
je 0x140077f2b
test al, al
je 0x140077f2b
movsxd rax, ebx
mov rdx, rax
sar rdx, 0x3f
add rax, rdi
adc rdx, 0
mov ecx, edx
and ecx, 1
neg rcx
xor rdx, rcx
jne 0x140077f2b
test rcx, rcx
js 0x140077f2b
cmp qword [rsi + 0x10], rax
jae 0x140077f37
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, rsi
mov edx, ebx
mov r8, rdi
mov r9, r14
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.1400a1bc0

Function at 0x14007acb0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rsi
mov r8, qword [rcx]
mov rax, qword [rcx + 8]
sub rax, r8
mov r9, rax
sar r9, 2
test rax, rax
je 0x14007ad31
xor r11d, r11d
lea r10, [0x1401d7600]
mov edx, r9d
nop word cs:[rax + rax]
nop
mov eax, dword [r8 + r11*4]
mov esi, eax
xor esi, edx
movzx esi, sil
shr edx, 8
xor edx, dword [r10 + rsi*4]
mov esi, eax
shr esi, 8
xor esi, edx
movzx esi, sil
shr edx, 8
xor edx, dword [r10 + rsi*4]
mov esi, eax
shr esi, 0x10
xor esi, edx
movzx esi, sil
shr edx, 8
xor edx, dword [r10 + rsi*4]
movzx esi, dl
shr eax, 0x18
xor eax, esi
shr edx, 8
xor edx, dword [r10 + rax*4]
add r11, 1
cmp r11, r9
jb 0x14007ace0
jmp 0x14007ad34
mov edx, r9d
cmp edx, dword [rcx + 0x18]
sete al
pop rsi
ret

Function at 0x14007ad40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rsi
mov r8, qword [rcx]
mov rax, qword [rcx + 8]
sub rax, r8
mov r9, rax
sar r9, 2
test rax, rax
je 0x14007adc1
xor r11d, r11d
lea r10, [0x1401d7600]
mov edx, r9d
nop word cs:[rax + rax]
nop
mov eax, dword [r8 + r11*4]
mov esi, eax
xor esi, edx
movzx esi, sil
shr edx, 8
xor edx, dword [r10 + rsi*4]
mov esi, eax
shr esi, 8
xor esi, edx
movzx esi, sil
shr edx, 8
xor edx, dword [r10 + rsi*4]
mov esi, eax
shr esi, 0x10
xor esi, edx
movzx esi, sil
shr edx, 8
xor edx, dword [r10 + rsi*4]
movzx esi, dl
shr eax, 0x18
xor eax, esi
shr edx, 8
xor edx, dword [r10 + rax*4]
add r11, 1
cmp r11, r9
jb 0x14007ad70
jmp 0x14007adc4
mov edx, r9d
mov dword [rcx + 0x18], edx
pop rsi
ret
Function at 0x140083340
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [rcx + 0x28]
call fcn.14019ead0
mov dword [rsi + 0x28], eax
mov ecx, dword [rsi + 0x2c]
call fcn.14019ead0
mov dword [rsi + 0x2c], eax
mov ecx, dword [rsi + 0x30]
call fcn.14019ead0
mov dword [rsi + 0x30], eax
mov ecx, dword [rsi + 0x34]
call fcn.14019ead0
mov dword [rsi + 0x34], eax
mov ecx, dword [rsi + 0x38]
call fcn.14019ead0
mov dword [rsi + 0x38], eax
mov ecx, dword [rsi + 0x3c]
call fcn.14019ead0
mov dword [rsi + 0x3c], eax
mov ecx, dword [rsi + 0x40]
call fcn.14019ead0
mov dword [rsi + 0x40], eax
mov ecx, dword [rsi + 0x44]
call fcn.14019ead0
mov dword [rsi + 0x44], eax
mov ecx, dword [rsi + 0x48]
call fcn.14019ead0
mov dword [rsi + 0x48], eax
mov ecx, dword [rsi + 0x4c]
call fcn.14019ead0
mov dword [rsi + 0x4c], eax
mov ecx, dword [rsi + 0x50]
call fcn.14019ead0
mov dword [rsi + 0x50], eax
mov ecx, dword [rsi + 0x54]
call fcn.14019ead0
mov dword [rsi + 0x54], eax
mov ecx, dword [rsi + 0x58]
call fcn.14019ead0
mov dword [rsi + 0x58], eax
mov ecx, dword [rsi + 0x5c]
call fcn.14019ead0
mov dword [rsi + 0x5c], eax
mov ecx, dword [rsi + 0x60]
call fcn.14019ead0
mov dword [rsi + 0x60], eax
mov ecx, dword [rsi + 0x64]
call fcn.14019ead0
mov dword [rsi + 0x64], eax
xor eax, eax
nop
mov ecx, dword [rsi + rax*4 + 0x48]
xor ecx, dword [rsi + rax*4 + 0x5c]
xor ecx, dword [rsi + rax*4 + 0x30]
xor ecx, dword [rsi + rax*4 + 0x28]
rol ecx, 1
mov dword [rsi + rax*4 + 0x68], ecx
add rax, 1
cmp rax, 0x40
jne 0x140083400
movdqu xmm0, xmmword [rsi + 0x14]
movdqu xmmword [rsi], xmm0
mov r8d, dword [rsi + 0x24]
mov dword [rsi + 0x10], r8d
movd edi, xmm0
pshufd xmm1, xmm0, 0xe5
movd ebp, xmm1
pshufd xmm1, xmm0, 0x4e
movd ecx, xmm1
pshufd xmm1, xmm0, 0xe7
movd r10d, xmm1
xor eax, eax
mov r11d, 0x8f1bbcdc
mov ebx, r8d
nop dword [rax]
mov r14d, edi
mov r9d, r10d
mov r10d, ecx
mov ecx, ebp
mov ebp, edi
rol ebp, 5
cmp rax, 0x14
jae 0x1400834a0
mov edx, ecx
and edx, r10d
mov edi, ecx
not edi
and edi, r9d
or edi, edx
add edi, ebp
add edi, ebx
add edi, dword [rsi + rax*4 + 0x28]
mov ebx, 0x5a827999
jmp 0x1400834f5
cmp rax, 0x28
jae 0x1400834c0
mov edi, r10d
xor edi, r9d
xor edi, ecx
add edi, ebp
add edi, ebx
add edi, dword [rsi + rax*4 + 0x28]
mov ebx, 0x6ed9eba1
jmp 0x1400834f5
cmp rax, 0x3b
ja 0x1400834d8
mov edx, r10d
or edx, r9d
and edx, ecx
mov edi, r10d
and edi, r9d
or edi, edx
jmp 0x1400834e0
mov edi, r10d
xor edi, r9d
xor edi, ecx
add edi, ebp
add edi, ebx
add edi, dword [rsi + rax*4 + 0x28]
cmp rax, 0x3c
mov ebx, 0xca62c1d6
cmovb ebx, r11d
add edi, ebx
rol ecx, 0x1e
add rax, 1
mov ebx, r9d
mov ebp, r14d
cmp rax, 0x50
jne 0x140083460
mov dword [rsi + 0x10], r9d
mov dword [rsi + 0xc], r10d
mov dword [rsi + 8], ecx
mov dword [rsi + 4], r14d
mov dword [rsi], edi
movd xmm1, r10d
movd xmm2, ecx
punpckldq xmm2, xmm1
movd xmm1, r14d
movd xmm3, edi
punpckldq xmm3, xmm1
punpcklqdq xmm3, xmm2
paddd xmm3, xmm0
movdqu xmmword [rsi + 0x14], xmm3
add r8d, r9d
mov dword [rsi + 0x24], r8d
mov dword [rsi + 0x168], 0
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x140083ba0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov esi, edx
mov rdi, rcx
mov rax, qword [0x140324948]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x140083bcf
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x140083bd2
mov rcx, qword [rdi]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x140083bf3
test bl, bl
je 0x140083c3c
cmp byte [rdi + 8], 0
je 0x140083c2e
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x140083c31
cmp byte [rdi + 8], 0
je 0x140083c04
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x140083c07
mov rcx, qword [rdi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140083c1d
xor edi, edi
jmp 0x140083cb8
cmp byte [rdi + 8], 0
je 0x140083c70
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x140083c73
mov rcx, qword [rdi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [rdi + 8], 0
je 0x140083c4d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x140083c50
mov rcx, qword [rdi]
call fcn.140083140
mov rcx, qword [0x140347830]
mov dil, 1
test rcx, rcx
je 0x140083cb8
mov edx, eax
mov r8d, esi
call fcn.140072750
jmp 0x140083cb8
mov rcx, qword [rdi]
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x140083c86
mov esi, dword [rsp + 0x24]
cmp byte [rdi + 8], 0
je 0x140083c97
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x140083c9a
mov rcx, qword [rdi]
call fcn.140083140
mov rcx, qword [0x140347830]
test rcx, rcx
je 0x140083cb5
mov edx, eax
mov r8d, esi
call fcn.140072750
mov dil, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140190ca0
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret

Function at 0x14008b3c0
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0x28
call fcn.14006ef60
lea rdx, str.enable_low_end_device_mode
mov rcx, rax
call fcn.14006f250
test al, al
je 0x14008b3f2
lea rcx, [0x1401d8698]
call fcn.14007bfc0
shl eax, 0x14
cdqe
add rsp, 0x28
ret
add rsp, 0x28
jmp 0x1400a2830
push rsi
sub rsp, 0x70
mov rax, qword [0x140324948]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x28], 0x40
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x1400a2873
mov rax, qword [rsp + 0x30]
movabs rsi, 0x7fffffffffffffff
cmp rax, rsi
cmovb rsi, rax
jmp 0x1400a2875
xor esi, esi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140190ca0
mov rax, rsi
add rsp, 0x70
pop rsi
ret
Function at 0x14008b8e0
Capabilities:
Create thread

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov r15d, r9d
mov r14, r8
mov rsi, rdx
mov rbx, rcx
xor ebp, ebp
test rcx, rcx
setne bpl
mov rax, qword [0x140324948]
xor rax, rsp
mov qword [rsp + 0x50], rax
shl ebp, 0x10
mov ecx, reloc.WS2_32.dll_recv
call fcn.140190820
mov rdi, rax
mov qword [rax], rsi
test r14, r14
setne byte [rax + 8]
mov dword [rax + 0xc], r15d
lea rcx, [rsp + 0x38]
call fcn.14008dd60
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x28], 0
lea r8, [0x14008bc80]
xor ecx, ecx
mov rdx, rbx
mov r9, rdi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
lea rcx, [rsp + 0x40]
call fcn.14008dd60
mov rax, qword [rsp + 0x40]
sub rax, qword [rsp + 0x38]
mov qword [rsp + 0x48], rax
mov rcx, qword [0x140347970]
test rcx, rcx
jne 0x14008b9b1
mov dword [rsp + 0x20], 1
lea rcx, str.Windows.CreateThreadTime
mov edx, 0x3e8
mov r8d, 0x989680
mov r9d, gethostbyname
call fcn.14007c820
mov rcx, rax
mov qword [0x140347970], rax
lea rdx, [rsp + 0x48]
call fcn.14007edb0
test rbx, rbx
je 0x14008b9ca
test r14, r14
je 0x14008b9d6
mov qword [r14], rbx
jmp 0x14008b9df
mov rcx, rdi
call fcn.140190860
xor esi, esi
jmp 0x14008b9e2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov sil, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140190ca0
mov eax, esi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
xor r8d, r8d
mov r9d, 1
jmp 0x14008b8e0

Function at 0x14008d090
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140323580]
cmp ecx, 0xffffffff
je 0x14008d0ae
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp rax, 1
sete al
jmp 0x14008d0b0
xor eax, eax
add rsp, 0x28
ret
Function at 0x14008d0c0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x160
mov r14, rdx
mov r15, rcx
mov rax, qword [0x140324948]
xor rax, rsp
mov qword [rsp + 0x158], rax
mov ecx, dword [0x140323580]
cmp ecx, 0xffffffff
je 0x14008d0fc
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x14008d101
call fcn.14008d2d0
mov eax, dword [0x1403491c8]
mov ecx, dword [0x14034d688]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x10]
jg 0x14008d285
mov rbx, qword [0x1403491c0]
mov rcx, rbx
call fcn.14008ae30
mov rcx, qword [0x1403479b8]
add rcx, 1
xor edx, edx
lea rax, [0x1403479c0]
nop dword [rax]
movzx edi, cl
lea rsi, [rdi + rdi*2]
cmp dword [rax + rsi*8], 0
je 0x14008d181
lea edi, [rcx + 1]
movzx edi, dil
lea rsi, [rdi + rdi*2]
cmp dword [rax + rsi*8], 0
je 0x14008d181
add rdx, 2
add rcx, 2
cmp rdx, 0x100
jb 0x14008d150
jmp 0x14008d1a6
lea rcx, [rax + rsi*8]
mov dword [rcx], 1
lea rcx, [rdi + rdi*2]
mov qword [rax + rcx*8 + 8], r14
mov qword [0x1403479b8], rdi
mov dword [r15], edi
mov eax, dword [rax + rcx*8 + 0x10]
mov dword [r15 + 4], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [r15]
mov dword [rsp + 0x20], 0xffffffff
mov dword [rsp + 0x154], eax
cmp eax, 0xffffffff
jne 0x14008d209
lea r8, str.slot____kInvalidSlotValue
lea rcx, [rsp + 0x154]
lea rdx, [rsp + 0x20]
call fcn.140077940
test rax, rax
je 0x14008d209
lea rdx, str..._.._base_threading_thread_local_storage.cc
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r8d, 0x159
mov r9, rax
call fcn.140077380
mov rcx, rdi
call fcn.140076600
mov eax, dword [r15]
mov dword [rsp + 0x20], 0x100
mov dword [rsp + 0x154], eax
cmp eax, 0xff
jle 0x14008d265
lea r8, str.slot____kThreadLocalStorageSize
lea rcx, [rsp + 0x154]
lea rdx, [rsp + 0x20]
call fcn.140077940
test rax, rax
je 0x14008d265
lea rdx, str..._.._base_threading_thread_local_storage.cc
lea rsi, [rsp + 0x20]
mov rcx, rsi
mov r8d, 0x15a
mov r9, rax
call fcn.140077380
mov rcx, rsi
call fcn.140076600
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
call fcn.140190ca0
nop
add rsp, 0x160
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [0x1403491c8]
call fcn.140190a20
cmp dword [0x1403491c8], 0xffffffff
jne 0x14008d126
mov ecx, 8
call fcn.140190820
mov rbx, rax
mov rcx, rax
call fcn.140012f60
mov qword [0x1403491c0], rbx
lea rcx, [0x1403491c8]
call fcn.140190ac0
jmp 0x14008d126
Function at 0x14008d2d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.140190c30
sub rsp, rax
mov rax, qword [0x140324948]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov ecx, dword [0x140323580]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
jne 0x14008d3b2
lea rcx, [rsp + 0x2c]
call fcn.1400e9420
test al, al
jne 0x14008d33b
lea rdx, str..._.._base_threading_thread_local_storage.cc
lea r9, str.PlatformThreadLocalStorage::AllocTLS_key_
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x99
call fcn.1400764f0
mov rcx, rsi
call fcn.140076600
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
jne 0x14008d390
lea rcx, [rsp + 0x2c]
call fcn.1400e9420
test al, al
je 0x14008d359
cmp dword [rsp + 0x2c], 0xffffffff
jne 0x14008d382
lea rdx, str..._.._base_threading_thread_local_storage.cc
lea r9, str.PlatformThreadLocalStorage::AllocTLS_key___key___PlatformThreadLocalStorage::TLS_KEY_OUT_OF_INDEXES
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0xa3
call fcn.1400764f0
mov rcx, rsi
call fcn.140076600
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
mov eax, 0xffffffff
lock cmpxchg dword [0x140323580], ecx
mov ecx, dword [rsp + 0x2c]
je 0x14008d3b2
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x140323580]
mov dword [rsp + 0x2c], ecx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14008d404
lea rdx, [0x1401d8b08]
lea r8, str.PlatformThreadLocalStorage::GetTLSValue_key___kUninitialized
lea rcx, [rsp + 0x30]
call fcn.14000b2e0
test rax, rax
je 0x14008d404
lea rdx, str..._.._base_threading_thread_local_storage.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0xb5
mov r9, rax
call fcn.140077380
mov rcx, rsi
call fcn.140076600
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.140193a00
mov ecx, dword [rsp + 0x2c]
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.1401908a0
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.140193590
mov ecx, dword [rsp + 0x2c]
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.140190ca0
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret

Function at 0x14008d540
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x140323580]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14008d56f
movsxd rcx, dword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 4]
jne 0x14008d56f
mov rax, qword [rax + rcx]
jmp 0x14008d571
xor eax, eax
add rsp, 0x20
pop rsi
ret

Function at 0x14008d580
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140323580]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x14008d5a7
test rdi, rdi
je 0x14008d5c0
call fcn.14008d2d0
movsxd rcx, dword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 4]
movsxd rdx, dword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret