joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140096e50
Capabilities:
Create process memory minidump

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x70
mov rax, rdx
movzx edi, r9b
mov rbp, r8
mov rbx, rcx
xor esi, esi
xor r9d, r9d
mov qword [rsp + 0x30], rsi
xor r8d, r8d
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov rcx, rax
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140096eb2
xor al, al
jmp 0x140096f7c
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x60], eax
xor eax, eax
mov qword [rsp + 0x54], rax
mov dword [rsp + 0x5c], eax
mov eax, dword [rbx + 0x1c]
add eax, eax
mov qword [rsp + 0x64], rbp
mov dword [rsp + 0x6c], esi
mov dword [rsp + 0x50], 0x10000
mov dword [rsp + 0x54], eax
cmp dword [rbx + 0x18], esi
je 0x140096ef8
mov rax, qword [rbx + 0x10]
jmp 0x140096eff
lea rax, [0x14025d748]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x44], rax
mov rcx, rbx
mov dword [rsp + 0x40], 1
test dil, dil
je 0x140096f25
call fcn.140026360
jmp 0x140096f2a
call fcn.140026350
neg al
sbb edi, edi
and edi, 0x1826
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x30], rsi
mov r9d, edi
mov rcx, rax
mov r8, r14
lea rax, [rsp + 0x40]
mov edx, ebx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call sub.dbghelp.dll_MiniDumpWriteDump
mov rcx, r14
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 1
sete al
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x1400972e0
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x198]
sub rsp, 0x298
mov rax, qword [0x14035d4f0]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rax, qword gs:[0x58]
mov ecx, dword [0x1404c5f68]
mov edx, 4
mov rcx, qword [rax + rcx*8]
mov eax, dword [rdx + rcx]
cmp dword [0x1404a0840], eax
jg 0x140097532
mov ebx, dword [0x1404a0838]
test ebx, ebx
je 0x14009733f
lea eax, [rbx - 1]
test eax, eax
jne 0x140097508
mov qword [rsp + 0x2b0], rsi
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x2b8], rdi
mov qword [rsp + 0x2c0], r14
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x290], r15
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0x23]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor r15d, r15d
mov ecx, r15d
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], rcx
cmp word [rsp + 0x70], r15w
je 0x1400973d4
lea rax, [rsp + 0x70]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], cx
jne 0x1400973a0
inc ebx
mov dword [rsp + 0x50], ebx
test ebx, ebx
jle 0x1400973c4
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.140014910
mov rcx, qword [rsp + 0x48]
movsxd r8, ebx
lea rdx, [rsp + 0x70]
add r8, r8
call fcn.140027910
lea r9, [0x1402ac974]
mov dword [rsp + 0x20], 1
lea r8, [0x1402aca94]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.14002d700
mov ecx, r15d
cmp dword [rax + 8], r15d
mov r14, qword [rax]
mov qword [rax], r15
sete cl
mov edi, dword [rax + 8]
mov esi, dword [rax + 0xc]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x38], edi
lea edx, [rdi + 6]
mov dword [rsp + 0x3c], esi
add edx, ecx
mov qword [rax + 8], r15
cmp edx, esi
jle 0x140097440
lea rcx, [rsp + 0x30]
call fcn.140014b10
mov esi, dword [rsp + 0x3c]
mov edi, dword [rsp + 0x38]
mov r14, qword [rsp + 0x30]
test edi, edi
mov eax, r15d
sete al
lea ebx, [rax + 6]
add ebx, edi
mov dword [rsp + 0x38], ebx
cmp ebx, esi
jle 0x14009746e
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140014910
mov esi, dword [rsp + 0x3c]
mov ebx, dword [rsp + 0x38]
mov r14, qword [rsp + 0x30]
movsd xmm0, qword [str._Epic_]
mov rcx, r15
test edi, edi
movsxd rax, edi
mov rdi, qword [rsp + 0x2b8]
setne cl
sub rax, rcx
lea rcx, [r14 + rax*2]
movsd qword [rcx], xmm0
mov eax, dword [0x1402b1790]
mov dword [rcx + 8], eax
mov word [rcx + 0xc], r15w
mov rcx, qword [0x1404a0830]
mov r15, qword [rsp + 0x290]
test rcx, rcx
je 0x1400974bb
call fcn.14003e1e0
mov rcx, qword [rsp + 0x60]
mov qword [0x1404a0830], r14
mov r14, qword [rsp + 0x2c0]
mov dword [0x1404a083c], esi
mov rsi, qword [rsp + 0x2b0]
mov dword [0x1404a0838], ebx
test rcx, rcx
je 0x1400974f3
call fcn.14003e1e0
mov ebx, dword [0x1404a0838]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140097508
call fcn.14003e1e0
mov ebx, dword [0x1404a0838]
test ebx, ebx
lea rax, [0x14025d748]
cmovne rax, qword [0x1404a0830]
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140236770
add rsp, 0x298
pop rbx
pop rbp
ret
lea rcx, [0x1404a0840]
call fcn.140236580
cmp dword [0x1404a0840], 0xffffffff
jne 0x14009732a
lea rcx, [0x140257740]
call fcn.1402363c0
lea rcx, [0x1404a0840]
call fcn.140236520
jmp 0x14009732a
Function at 0x140097e40
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x1f]
sub rsp, 0x100
xor esi, esi
mov dword [rsp + 0x60], 0x18
mov rbx, rcx
mov qword [rbp - 0x79], rsi
mov ecx, dword [rbp + 0x67]
mov r10, r8
mov dword [rbp - 0x71], 1
mov r11, rdx
lea eax, [rsi + 0x20]
test ecx, ecx
jns 0x140097e91
lea eax, [rsi + 0x40]
mov edx, 0x4000
cmp ecx, 0xffffffff
jmp 0x140097ea0
jle 0x140097ea3
mov eax, 0x80
mov edx, 0x8000
cmp ecx, 1
cmove eax, edx
mov edi, eax
movzx r8d, si
or edi, 8
test r9b, r9b
cmove edi, eax
mov eax, esi
cmp byte [rbp + 0x57], sil
jne 0x140097ec5
cmp byte [rbp + 0x4f], al
je 0x140097eca
mov r8d, 7
mov eax, 1
mov rcx, qword [rbp + 0x77]
mov rdx, qword [rbp + 0x7f]
test rcx, rcx
jne 0x140097edc
test rdx, rdx
je 0x140097ee0
bts eax, 8
movabs r9, 0x8000000080000000
mov word [rbp - 0x11], r8w
mov qword [rbp - 0x31], r9
xorps xmm0, xmm0
mov qword [rbp - 0x29], r9
mov r8, r11
mov qword [rbp - 1], rdx
mov r9, r10
mov qword [rbp + 7], rcx
lea rdx, str.__s___s
mov qword [rbp + 0xf], rcx
lea rcx, [rsp + 0x50]
mov dword [rbp - 0x51], 0x68
mov qword [rbp - 0x49], rsi
movdqa xmmword [rbp - 0x41], xmm0
mov qword [rbp - 0x21], rsi
mov dword [rbp - 0x19], esi
mov dword [rbp - 0x15], eax
mov word [rbp - 0xf], si
mov qword [rbp - 9], rsi
call fcn.140029d70
mov rdx, qword [rsp + 0x50]
lea rax, [rbp - 0x69]
mov qword [rsp + 0x48], rax
lea r9, [rsp + 0x60]
lea rax, [rbp - 0x51]
xor ecx, ecx
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x60]
mov rax, qword [rbp + 0x6f]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140097f96
mov rax, qword [rbp + 0x5f]
test rax, rax
je 0x140097f91
mov dword [rax], esi
mov qword [rbx], rsi
jmp 0x140097fb5
mov rcx, qword [rbp + 0x5f]
test rcx, rcx
je 0x140097fa4
mov eax, dword [rbp - 0x59]
mov dword [rcx], eax
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp - 0x69]
mov qword [rbx], rax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140097fc4
call fcn.14003e1e0
lea r11, [rsp + 0x100]
mov rax, rbx
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x140098380
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x240
mov rax, qword [0x14035d4f0]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rcx
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 8], rax
cmp word [rsp + 0x20], ax
je 0x140098408
mov qword [rsp + 0x258], rbx
lea rax, [rsp + 0x20]
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1400983d0
inc ebx
mov dword [rdi + 8], ebx
test ebx, ebx
jle 0x1400983ed
xor edx, edx
mov rcx, rdi
call fcn.140014910
mov rcx, qword [rdi]
lea rdx, [rsp + 0x20]
movsxd r8, ebx
add r8, r8
call fcn.140027910
mov rbx, qword [rsp + 0x258]
mov rax, rdi
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140236770
add rsp, 0x240
pop rdi
ret
Function at 0x140099dd0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
push r13
sub rsp, 0x80
mov eax, 0x5a4d
mov r13, rdx
mov r11, rcx
cmp word [rcx], ax
jne 0x14009a026
mov qword [rsp + 0x50], r15
movsxd r15, dword [rcx + 0x3c]
add r15, rcx
cmp dword [r15], 0x4550
jne 0x14009a015
movzx r10d, word [r15 + 6]
xor edx, edx
mov r9d, dword [r15 + 0x90]
mov qword [rsp + 0x60], r12
test r10, r10
je 0x140099e53
lea rcx, [r15 + 0x114]
nop word [rax + rax]
mov r8d, dword [rcx]
cmp r9, r8
jb 0x140099e47
mov eax, dword [rcx + 4]
add eax, r8d
cmp r9, rax
jb 0x140099f85
inc rdx
add rcx, 0x28
cmp rdx, r10
jb 0x140099e30
xor edx, edx
xor r12d, r12d
mov qword [rsp + 0xa0], rdx
cmp dword [r15 + 0x94], r12d
jbe 0x140099fff
mov qword [rsp + 0x98], rbx
xor ecx, ecx
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x58], r14
nop dword [rax + rax]
mov eax, dword [rcx + rdx + 0xc]
test eax, eax
je 0x140099fc8
movzx r10d, word [r15 + 6]
xor edx, edx
mov r9d, eax
test r10, r10
je 0x140099ed5
lea rax, [r15 + 0x114]
mov r8d, dword [rax]
cmp r9, r8
jb 0x140099ec9
mov ecx, dword [rax + 4]
add ecx, r8d
cmp r9, rcx
jb 0x140099f98
inc rdx
add rax, 0x28
cmp rdx, r10
jb 0x140099eb2
xor edi, edi
xor esi, esi
xor r14d, r14d
xor ebp, ebp
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x3c], r14d
test rdi, rdi
je 0x140099f3f
cmp byte [rdi], sil
je 0x140099f3f
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rdi + rbx], sil
jne 0x140099ef6
inc ebx
mov dword [rsp + 0x38], ebx
mov ebp, ebx
test ebx, ebx
jle 0x140099f25
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140014910
mov r14d, dword [rsp + 0x3c]
mov ebp, dword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov eax, 0x3f
mov r9d, ebx
mov r8, rdi
mov word [rsp + 0x20], ax
mov edx, ebx
mov rcx, rsi
call fcn.140009ed0
movsxd rbx, dword [r13 + 8]
lea eax, [rbx + 1]
mov dword [r13 + 8], eax
cmp eax, dword [r13 + 0xc]
jle 0x140099f5a
mov edx, ebx
mov rcx, r13
call fcn.14002e6b0
mov rax, rbx
shl rax, 4
add rax, qword [r13]
je 0x140099fab
mov qword [rax], rsi
mov dword [rax + 8], ebp
mov dword [rax + 0xc], r14d
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
jmp 0x140099fb8
mov edx, dword [rcx + 8]
mov eax, dword [rcx]
sub rdx, rax
add rdx, r9
add rdx, r11
jmp 0x140099e55
mov edi, dword [rax + 8]
mov ecx, dword [rax]
sub rdi, rcx
add rdi, r9
add rdi, r11
jmp 0x140099ed7
test rsi, rsi
je 0x140099fb8
mov rcx, rsi
call fcn.14003e1e0
mov rdx, qword [rsp + 0xa0]
mov r11, qword [rsp + 0x90]
mov eax, dword [r15 + 0x94]
inc r12
lea rcx, [r12 + r12*4]
shl rcx, 2
cmp rcx, rax
jb 0x140099e90
mov r14, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x98]
mov r12, qword [rsp + 0x60]
mov al, 1
mov r15, qword [rsp + 0x50]
add rsp, 0x80
pop r13
ret
xor al, al
mov r15, qword [rsp + 0x50]
add rsp, 0x80
pop r13
ret
xor al, al
add rsp, 0x80
pop r13
ret

Function at 0x14009a430
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
call fcn.140020020
call fcn.140097570
mov rcx, rax
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
Function at 0x14009a450
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push rbx
sub rsp, 0x40
movaps xmmword [rsp + 0x30], xmm6
lea rcx, [rsp + 0x60]
movaps xmm6, xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mulss xmm6, dword [0x14027693c]
cvttss2si rbx, xmm6
test ebx, ebx
jne 0x14009a480
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
lea rdx, [0x140355420]
mov byte [rsp + 0x50], al
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [0x1400201d0]
mov qword [rsp + 0x20], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
call fcn.14003e340
lea rcx, [rsp + 0x58]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [rsp + 0x58]
sub ecx, dword [rsp + 0x60]
add dword [rbx + 0x10], ecx
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
ret
Function at 0x14009a7b0
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x198]
sub rsp, 0x298
mov rax, qword [0x14035d4f0]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rax, qword gs:[0x58]
mov ecx, dword [0x1404c5f68]
mov edx, 4
mov rcx, qword [rax + rcx*8]
mov eax, dword [rdx + rcx]
cmp dword [0x1404a0810], eax
jg 0x14009a9f7
mov ebx, dword [0x1404a0808]
test ebx, ebx
je 0x14009a80f
lea eax, [rbx - 1]
test eax, eax
jne 0x14009a9cd
mov qword [rsp + 0x2b0], rsi
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x2b8], rdi
mov qword [rsp + 0x2c0], r14
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x290], r15
mov qword [rsp + 0x20], rax
lea edx, [r9 + 5]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor r15d, r15d
mov ecx, r15d
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], rcx
cmp word [rsp + 0x70], r15w
je 0x14009a8a4
lea rax, [rsp + 0x70]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], cx
jne 0x14009a870
inc ebx
mov dword [rsp + 0x50], ebx
test ebx, ebx
jle 0x14009a894
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.140014910
mov rcx, qword [rsp + 0x48]
movsxd r8, ebx
lea rdx, [rsp + 0x70]
add r8, r8
call fcn.140027910
lea r9, [0x1402ac54c]
mov dword [rsp + 0x20], 1
lea r8, [0x1402ac5e4]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.14002d700
mov ecx, r15d
cmp dword [rax + 8], r15d
mov r14, qword [rax]
mov qword [rax], r15
sete cl
mov edi, dword [rax + 8]
mov esi, dword [rax + 0xc]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x38], edi
lea edx, [rdi + 1]
mov dword [rsp + 0x3c], esi
add edx, ecx
mov qword [rax + 8], r15
cmp edx, esi
jle 0x14009a910
lea rcx, [rsp + 0x30]
call fcn.140014b10
mov esi, dword [rsp + 0x3c]
mov edi, dword [rsp + 0x38]
mov r14, qword [rsp + 0x30]
test edi, edi
mov eax, r15d
sete al
lea ebx, [rax + 1]
add ebx, edi
mov dword [rsp + 0x38], ebx
cmp ebx, esi
jle 0x14009a93e
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140014910
mov esi, dword [rsp + 0x3c]
mov ebx, dword [rsp + 0x38]
mov r14, qword [rsp + 0x30]
mov rcx, r15
movsxd rax, edi
test edi, edi
mov rdi, qword [rsp + 0x2b8]
setne cl
sub rax, rcx
lea rcx, [r14 + rax*2]
movzx eax, word [0x1402ac4dc]
mov word [rcx], ax
mov word [rcx + 2], r15w
mov rcx, qword [0x1404a0800]
mov r15, qword [rsp + 0x290]
test rcx, rcx
je 0x14009a980
call fcn.14003e1e0
mov rcx, qword [rsp + 0x60]
mov qword [0x1404a0800], r14
mov r14, qword [rsp + 0x2c0]
mov dword [0x1404a080c], esi
mov rsi, qword [rsp + 0x2b0]
mov dword [0x1404a0808], ebx
test rcx, rcx
je 0x14009a9b8
call fcn.14003e1e0
mov ebx, dword [0x1404a0808]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14009a9cd
call fcn.14003e1e0
mov ebx, dword [0x1404a0808]
test ebx, ebx
lea rax, [0x14025d748]
cmovne rax, qword [0x1404a0800]
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140236770
add rsp, 0x298
pop rbx
pop rbp
ret
lea rcx, [0x1404a0810]
call fcn.140236580
cmp dword [0x1404a0810], 0xffffffff
jne 0x14009a7fa
lea rcx, [0x140257760]
call fcn.1402363c0
lea rcx, [0x1404a0810]
call fcn.140236520
jmp 0x14009a7fa
Function at 0x14009aa30
Capabilities:
Get session user name

Disassembly:
sub rsp, 0x28
test cl, cl
je 0x14009aabe
cmp word [0x1404a0a50], 0
jne 0x14009aab2
mov qword [rsp + 0x38], rbx
lea rdx, [rsp + 0x30]
lea rcx, [0x1404a0a50]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x30], 0x100
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
cmp word [0x1404a0a50], 0
lea rbx, [0x1404a0a50]
lea rdi, [0x1404a0a50]
je 0x14009aaa3
movzx ecx, word [rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_iswalnum]
test eax, eax
je 0x14009aa99
movzx eax, word [rbx]
mov word [rdi], ax
add rdi, 2
add rbx, 2
cmp word [rbx], 0
jne 0x14009aa82
mov rbx, qword [rsp + 0x38]
xor ecx, ecx
mov word [rdi], cx
mov rdi, qword [rsp + 0x20]
lea rax, [0x1404a0a50]
add rsp, 0x28
ret
cmp word [0x1404a0850], 0
jne 0x14009aae2
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x100
lea rcx, [0x1404a0850]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea rax, [0x1404a0850]
add rsp, 0x28
ret
Function at 0x14009aaf0
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x198]
sub rsp, 0x298
mov rax, qword [0x14035d4f0]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rax, qword gs:[0x58]
mov ecx, dword [0x1404c5f68]
mov edx, 4
mov rcx, qword [rax + rcx*8]
mov eax, dword [rdx + rcx]
cmp dword [0x1404a0828], eax
jg 0x14009ad37
mov ebx, dword [0x1404a0820]
test ebx, ebx
je 0x14009ab4f
lea eax, [rbx - 1]
test eax, eax
jne 0x14009ad0d
mov qword [rsp + 0x2b0], rsi
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x2b8], rdi
mov qword [rsp + 0x2c0], r14
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x290], r15
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0x1c]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor r15d, r15d
mov ecx, r15d
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], rcx
cmp word [rsp + 0x70], r15w
je 0x14009abe4
lea rax, [rsp + 0x70]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], cx
jne 0x14009abb0
inc ebx
mov dword [rsp + 0x50], ebx
test ebx, ebx
jle 0x14009abd4
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.140014910
mov rcx, qword [rsp + 0x48]
movsxd r8, ebx
lea rdx, [rsp + 0x70]
add r8, r8
call fcn.140027910
lea r9, [0x1402ac7ac]
mov dword [rsp + 0x20], 1
lea r8, [0x1402ac864]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.14002d700
mov ecx, r15d
cmp dword [rax + 8], r15d
mov r14, qword [rax]
mov qword [rax], r15
sete cl
mov edi, dword [rax + 8]
mov esi, dword [rax + 0xc]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x38], edi
lea edx, [rdi + 1]
mov dword [rsp + 0x3c], esi
add edx, ecx
mov qword [rax + 8], r15
cmp edx, esi
jle 0x14009ac50
lea rcx, [rsp + 0x30]
call fcn.140014b10
mov esi, dword [rsp + 0x3c]
mov edi, dword [rsp + 0x38]
mov r14, qword [rsp + 0x30]
test edi, edi
mov eax, r15d
sete al
lea ebx, [rax + 1]
add ebx, edi
mov dword [rsp + 0x38], ebx
cmp ebx, esi
jle 0x14009ac7e
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140014910
mov esi, dword [rsp + 0x3c]
mov ebx, dword [rsp + 0x38]
mov r14, qword [rsp + 0x30]
mov rcx, r15
movsxd rax, edi
test edi, edi
mov rdi, qword [rsp + 0x2b8]
setne cl
sub rax, rcx
lea rcx, [r14 + rax*2]
movzx eax, word [0x1402ac73c]
mov word [rcx], ax
mov word [rcx + 2], r15w
mov rcx, qword [0x1404a0818]
mov r15, qword [rsp + 0x290]
test rcx, rcx
je 0x14009acc0
call fcn.14003e1e0
mov rcx, qword [rsp + 0x60]
mov qword [0x1404a0818], r14
mov r14, qword [rsp + 0x2c0]
mov dword [0x1404a0824], esi
mov rsi, qword [rsp + 0x2b0]
mov dword [0x1404a0820], ebx
test rcx, rcx
je 0x14009acf8
call fcn.14003e1e0
mov ebx, dword [0x1404a0820]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14009ad0d
call fcn.14003e1e0
mov ebx, dword [0x1404a0820]
test ebx, ebx
lea rax, [0x14025d748]
cmovne rax, qword [0x1404a0818]
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140236770
add rsp, 0x298
pop rbx
pop rbp
ret
lea rcx, [0x1404a0828]
call fcn.140236580
cmp dword [0x1404a0828], 0xffffffff
jne 0x14009ab3a
lea rcx, [0x140257780]
call fcn.1402363c0
lea rcx, [0x1404a0828]
call fcn.140236520
jmp 0x14009ab3a
Function at 0x1400c58f0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, qword [0x1404c2c90]
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
cmp rax, 2
je 0x1400c5930
call fcn.1400c5cd0
test al, al
jne 0x1400c5930
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
cmp rdi, 0x400
ja 0x1400c596c
cmp rbx, 0x400
ja 0x1400c596c
test rdi, rdi
lea rdx, [rbx - 1]
mov eax, 8
mov rcx, rsi
cmovne rax, rdi
add rdx, rax
lea rax, [rbx - 1]
not rax
and rdx, rax
call fcn.1400c6960
jmp 0x1400c5a24
cmp rdi, 0x1fc1
jae 0x1400c59cd
cmp rbx, 0x40
ja 0x1400c598b
mov rdx, rdi
mov rcx, rsi
call fcn.1400c6960
jmp 0x1400c5a24
lea rdx, [rdi + rbx]
cmp rdx, 0x1fc1
jae 0x1400c59cd
mov rcx, rsi
call fcn.1400c6960
test rax, rax
je 0x1400c591e
lea rcx, [rbx - 1]
add rcx, rax
lea rax, [rbx - 1]
not rax
and rcx, rax
mov rax, rcx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov ecx, dword [rsi + 0x2152c]
mov qword [rsp + 0x30], r14
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x1400c59fb
lea r8, [rsi + 0x10]
mov rdx, rsi
lea rcx, [rsi + 0x2152c]
call fcn.1400c5c50
test rax, rax
je 0x1400c5a02
mov byte [rax + 0x344], 0
mov ecx, 0x40
mov r8, rdi
cmp rbx, rcx
mov rdx, rax
cmovb rbx, rcx
mov rcx, rsi
mov r9, rbx
call fcn.1400c6420
mov r14, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rcx, rax
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400c5c50
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, r8
mov r14, rcx
lea rcx, [rdx + 0x21720]
mov r8d, 0x348
mov rdi, rdx
call fcn.1400c57f0
mov rbx, rax
test rax, rax
je 0x1400c5cb1
mov qword [rax + 0x10], rdi
mov rdx, rax
mov qword [rax + 0x310], rsi
mov ecx, dword [r14]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
lea rcx, [rdi + 0x214e8]
mov rdx, rbx
call fcn.1400c7280
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x1400c5cd0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, 1
xor eax, eax
mov ebx, edi
lock cmpxchg byte [0x1404a1511], dil
je 0x1400c5d1e
nop
cmp ebx, 0x10
jg 0x1400c5d0b
movsxd rax, ebx
test ebx, ebx
je 0x1400c5d07
nop dword [rax]
pause
sub rax, rdi
jne 0x1400c5d00
add ebx, ebx
jmp 0x1400c5d11
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
xor eax, eax
lock cmpxchg byte [0x1404a1511], dil
jne 0x1400c5cf0
cmp qword [0x1404c2c90], 2
je 0x1400c5dc5
mov qword [0x1404c2c90], rdi
call fcn.1400c67c0
test al, al
jne 0x1400c5d58
mov qword [0x1404c2c90], 0
mov byte [0x1404a1511], al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call fcn.1400c7650
lea rcx, str.TBB_VERSION
mov qword [0x1404c2c90], 2
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400c5dc5
movzx r8d, byte [rax]
movzx edx, byte [0x1402c9f74]
sub r8d, edx
jne 0x1400c5d99
movzx r8d, byte [rax + 1]
movzx eax, byte [0x1402c9f75]
sub r8d, eax
test r8d, r8d
je 0x1400c5dc5
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdx, rax
lea rcx, str.TBBmalloc:_VERSION_t_t4.4_nTBBmalloc:_INTERFACE_VERSION_t9003_nTBBmalloc:_BUILD_DATE_t_tMay_25_201709:52:22_nEmptyTBBmalloc:_TBB_USE_DEBUG_t0_nTBBmalloc:_TBB_USE_ASSERT_t0_n
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputs]
lea rcx, [0x1404a1518]
call fcn.1400c9720
mov rbx, qword [rsp + 0x30]
movzx eax, dil
mov byte [0x1404a1511], 0
add rsp, 0x20
pop rdi
ret