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

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.140076110
mov qword [rsi], 0
test rax, rax
je 0x140044043
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140044077
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14004403b
mov qword [rsi], rbx
call fcn.140075ec0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 8]
lea rdx, [rdi + 8]
call fcn.14006a220
lea rcx, [rsi + 0x20]
call fcn.14007d890
mov eax, dword [rdi + 0x24]
mov dword [rsi + 0x24], eax
mov al, byte [rdi + 0x28]
mov byte [rsi + 0x28], al
mov al, byte [rdi + 0x29]
mov byte [rsi + 0x29], al
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
call fcn.140075ec0
mov rcx, qword [rsi]
call fcn.140076550
mov qword [rsi], 0
jmp 0x140044029
Function at 0x140045770
Capabilities:
Create thread

Disassembly:
jmp 0x140045770
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov ebp, r9d
mov rdi, r8
mov rsi, rdx
mov r13, rcx
xor ebx, ebx
test rcx, rcx
setne bl
mov rax, qword [0x140119028]
xor rax, rsp
mov qword [rsp + 0x60], rax
movabs r12, 0xfffffffe00000000
shl ebx, 0x10
mov ecx, 0x10
call fcn.1400897bc
mov r15, rax
mov rax, rsi
and rax, r12
cmp rax, qword [0x140119e88]
jne 0x1400457d4
mov rcx, rsi
call fcn.14006f300
mov qword [r15], rsi
test rdi, rdi
setne byte [r15 + 8]
mov dword [r15 + 0xc], ebp
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x28], 0
lea r8, [0x140045b50]
xor ecx, ecx
mov rdx, r13
mov r9, r15
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r14, rax
test rax, rax
je 0x14004583b
test rdi, rdi
je 0x14004587f
mov qword [rdi], r14
test r14, r14
setne bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14008ab00
mov eax, ebx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x140045854
mov edi, eax
cmp eax, 0x5af
je 0x140045854
cmp edi, 0xe
jne 0x14004588a
mov rcx, r13
call fcn.1400bd430
test r15, r15
je 0x140045815
mov rcx, qword [r15]
and r12, rcx
cmp r12, qword [0x140119e88]
jne 0x140045875
call fcn.14006f440
mov rcx, r15
call fcn.1400897f8
jmp 0x140045815
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140045815
mov eax, dword [0x140127648]
mov ecx, dword [0x140122788]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400458fd
lea rsi, [rsp + 0x38]
mov rcx, rsi
mov edx, edi
call fcn.140044180
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
cmovs rax, qword [rsi + 8]
lea rdx, [rsp + 0x50]
mov qword [rdx], rcx
mov qword [rdx + 8], rax
mov rcx, qword [0x140127640]
call fcn.14007df70
cmp byte [rsi + 0x17], 0
jns 0x14004585c
mov rcx, qword [rsp + 0x38]
call fcn.1400897f8
jmp 0x14004585c
lea rcx, [0x140127648]
call fcn.140089910
cmp dword [0x140127648], 0xffffffff
jne 0x1400458ab
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.140053f10
mov qword [0x140127640], rax
lea rcx, [0x140127648]
call fcn.1400899a8
jmp 0x1400458ab
Function at 0x140046040
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, [0x1400ff148]
mov qword [rcx], rax
add rcx, 8
call fcn.14006f280
lea rcx, [rsi + 0x10]
call fcn.14006f280
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.14006f280
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
movups xmmword [rsi + 0xc0], xmm6
movups xmmword [rsi + 0xd0], xmm6
mov qword [rsi + 0xe0], rbx
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 [0x140108ebc]
mov dword [rsi + 0x1b8], eax
lea rcx, [rsi + 0x1c0]
call fcn.140054820
lea rcx, [rsi + 0x310]
movups xmmword [rsi + 0x2f8], xmm6
mov qword [rsi + 0x308], rbx
xor edx, edx
call fcn.140050fc0
lea rcx, [rsi + 0x318]
xor edx, edx
call fcn.140050fc0
lea rcx, [rsi + 0x320]
xor edx, edx
call fcn.140050fc0
movups xmmword [rsi + 0x328], xmm6
movups xmmword [rsi + 0x338], xmm6
mov dword [rsi + 0x348], ebp
movups xmmword [rsi + 0x350], xmm6
movups xmmword [rsi + 0x360], xmm6
movups xmmword [rsi + 0x370], xmm6
mov byte [rsi + 0x380], bl
mov dword [rsi + 0x384], edi
mov byte [rsi + 0x388], bl
movups xmmword [rsi + 0x390], xmm6
movups xmmword [rsi + 0x3a0], xmm6
call fcn.140019d50
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rsi + 0x1a8], eax
cdqe
movabs rcx, 0xcbf29ce484222325
xor rcx, rax
movabs rax, 0x100000001b3
imul rax, rcx
mov qword [rsi + 0x1a0], rax
mov rcx, rsi
call fcn.140046270
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x20], rax
test rcx, rcx
jne 0x14004625b
call fcn.140053f60
lea r8, str.TraceLog
mov rcx, rax
mov rdx, rsi
xor r9d, r9d
call fcn.140054010
mov qword [0x140127a08], 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 [0x140135008]
jmp 0x140046229
Function at 0x14004aa20
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 r12, r8
mov ebx, edx
mov edi, ecx
mov rax, qword [0x140119028]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [r8 + 0x17]
test al, al
jns 0x14004aa54
mov rax, qword [r12 + 8]
test rax, rax
je 0x14004ab4c
mov eax, ebx
not eax
test eax, 0x300
je 0x14004ab4c
cmp edi, 2
lea rax, [0x140129c20]
lea rcx, [0x140129e20]
cmove rcx, rax
cmp word [rcx], 0
jne 0x14004ab4c
xorps xmm0, xmm0
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [rsi], 0
je 0x14004ab4c
cmp byte [0x140129c10], 0
setne al
bt ebx, 8
jb 0x14004ab4c
shr ebx, 9
and ebx, 1
or bl, al
je 0x14004ab4c
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea rsi, str.SOFTWARE
cmove rsi, rax
movzx r13d, byte [r12 + 0x17]
test r13b, r13b
jns 0x14004aba5
mov rbx, qword [r12]
mov r13, qword [r12 + 8]
mov r14d, 1
xor r15d, r15d
xor eax, eax
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 0
mov rdi, qword [rsi + 8]
mov rbp, r13
sub rbp, rdi
jb 0x14004ab39
mov rdx, qword [rsi]
mov rcx, rbx
mov r8, rdi
call fcn.1400a43f4
test eax, eax
je 0x14004ab6b
add rsi, 0x28
inc r15
cmp r15, r14
jb 0x14004ab1b
cmp dword [rsp + 0x2c], 0
jne 0x14004abad
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14008ab00
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movzx ecx, word [rbx + rdi*2]
cmp ecx, 0x5c
je 0x14004ab78
test ecx, ecx
jne 0x14004ab39
lea rax, [rbx + rdi*2]
mov edx, dword [rsi + 0x10]
mov dword [rsp + 0x2c], edx
cmp edx, 1
je 0x14004abd5
cmp dword [rsp + 0x2c], 2
jne 0x14004abe6
lea rdx, str.WOW6432Node
mov qword [rsp + 0x38], rdx
mov rdx, rax
mov qword [rsp + 0x30], rax
jmp 0x14004abe6
mov rbx, r12
jmp 0x14004aafc
cmp byte [r12 + 0x17], 0
js 0x14004ac15
mov rax, r12
mov rdx, qword [rsp + 0x30]
sub rdx, rax
sar rdx, 1
mov rcx, r12
mov r8, qword [rsp + 0x38]
call fcn.140030ac0
jmp 0x14004ab4c
lea rdx, str.WOW6432Node_
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rbx
cmp cx, 0x5c
jne 0x14004abff
lea rbx, [rax + 2]
dec rbp
cmp word [rax + 2], 0x5c
mov rax, rbx
je 0x14004abec
jmp 0x14004ac02
mov rbx, rax
mov r14, qword [rsi + 0x20]
mov rsi, qword [rsi + 0x18]
xor r15d, r15d
mov r13, rbp
jmp 0x14004ab40
mov rax, qword [r12]
jmp 0x14004abb8
Function at 0x14004ca70
Capabilities:
Check if file exists
Create directory

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x140119028]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x14004ca97
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14004cad1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14004caf0
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.14008ab00
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp fcn.14004cbb0
mov sil, 1
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.14008ab00
mov eax, esi
add rsp, 0x198
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140074720
test al, al
jne 0x14004cb02
xor esi, esi
jmp 0x14004cad4
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x265
mov r9d, 2
call fcn.1400dd030
lea rcx, [rsp + 0x60]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.1400bcbd0
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.14006ddf0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14004cb81
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.1400bcbd0
cmp byte [rsp + 0x4f], 0
jns 0x14004cb9d
mov rcx, qword [rsp + 0x38]
call fcn.1400897f8
lea rcx, [rsp + 0x50]
call fcn.1400dd0b0
jmp 0x14004cafe
Function at 0x14004cbb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x1a8
mov rsi, rcx
mov rax, qword [0x140119028]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
cmp byte [rcx + 0x17], 0
jns 0x14004cbd7
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004cc09
mov dil, 1
test al, 0x10
je 0x14004ccc2
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.14008ab00
mov eax, edi
add rsp, 0x1a8
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140074720
test al, al
je 0x14004ccd0
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0x60]
mov r8d, 0x250
mov r9d, 2
call fcn.1400dd030
lea rcx, [rsp + 0x70]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1400bcbd0
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x38]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x48]
mov rcx, rsi
call fcn.14006ddf0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14004cc9a
mov r8, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rcx, rdi
mov rdx, rsi
call fcn.1400bcbd0
cmp byte [rsp + 0x5f], 0
jns 0x14004ccb6
mov rcx, qword [rsp + 0x48]
call fcn.1400897f8
lea rcx, [rsp + 0x60]
call fcn.1400dd0b0
jmp 0x14004ccd0
mov ecx, 2
call fcn.140074720
test al, al
jne 0x14004ccd7
xor edi, edi
jmp 0x14004cbed
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0x60]
mov r8d, 0x254
mov r9d, 2
call fcn.140042260
lea rcx, [rsp + 0x70]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1400bcbd0
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x48]
mov rcx, rsi
call fcn.14006ddf0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14004cd4d
mov r8, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rcx, rdi
mov rdx, rsi
call fcn.1400bcbd0
lea rdx, str.:_not_a_directory
mov r8d, 0x11
mov rcx, rax
call fcn.1400bcbd0
cmp byte [rsp + 0x5f], 0
jns 0x14004cd7e
mov rcx, qword [rsp + 0x48]
call fcn.1400897f8
lea rcx, [rsp + 0x60]
call fcn.140042750
jmp 0x14004ccd0
Function at 0x14004edb0
Capabilities:
Set environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rax, qword [0x140119028]
xor rax, rsp
mov qword [rsp + 0x88], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x20], xmm0
movzx eax, byte [r8 + 0x17]
test al, al
mov rcx, qword [r8]
cmovns rcx, r8
lea rdx, [rsp + 0x60]
mov qword [rdx], rcx
cmovs rax, qword [r8 + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x70]
mov rcx, rsi
call fcn.14006da60
cmp byte [rsi + 0x17], 0
jns 0x14004ee0b
mov rsi, qword [rsp + 0x70]
movaps xmm0, xmmword [rsp + 0x20]
lea rdx, [rsp + 0x30]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x48]
mov rcx, rdi
call fcn.14006da60
cmp byte [rdi + 0x17], 0
jns 0x14004ee30
mov rdi, qword [rsp + 0x48]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esi, eax
cmp byte [rsp + 0x5f], 0
jns 0x14004ee4f
mov rcx, qword [rsp + 0x48]
call fcn.1400897f8
cmp byte [rsp + 0x87], 0
jns 0x14004ee63
mov rcx, qword [rsp + 0x70]
call fcn.1400897f8
test esi, esi
setne bl
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14008ab00
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

Function at 0x14004ef10
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x140119028]
xor rax, rsp
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x58]
mov rcx, rdi
call fcn.14006da60
cmp byte [rdi + 0x17], 0
jns 0x14004ef51
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp byte [rsp + 0x6f], 0
jns 0x14004ef72
mov rcx, qword [rsp + 0x58]
call fcn.1400897f8
test r14, r14
je 0x14004f019
test edi, edi
je 0x14004f019
mov ecx, edi
add rcx, rcx
call fcn.14008982c
mov rbx, rax
movups xmm0, xmmword [rsi]
lea rdx, [rsp + 0x30]
movaps xmmword [rdx], xmm0
lea rsi, [rsp + 0x58]
mov rcx, rsi
call fcn.14006da60
cmp byte [rsi + 0x17], 0
jns 0x14004efb3
mov rsi, qword [rsp + 0x58]
mov rcx, rsi
mov rdx, rbx
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [rsp + 0x6f], 0
jns 0x14004efd3
mov rcx, qword [rsp + 0x58]
call fcn.1400897f8
mov qword [rsp + 0x20], rbx
test rbx, rbx
je 0x14004f037
mov rcx, rbx
call fcn.1400a8f50
lea rdx, [rsp + 0x20]
mov qword [rdx + 8], rax
lea rcx, [rsp + 0x58]
call fcn.14006ddf0
cmp byte [r14 + 0x17], 0
js 0x14004f03a
mov rax, qword [rsp + 0x68]
mov qword [r14 + 0x10], rax
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [r14], xmm0
mov rcx, rbx
call fcn.140089834
test edi, edi
setne bl
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14008ab00
mov eax, ebx
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret
int3
mov rcx, qword [r14]
call fcn.1400897f8
jmp 0x14004efff
Function at 0x14004f370
Capabilities:
Create pipe

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x188
mov rsi, rcx
mov rax, qword [0x140119028]
xor rax, rsp
mov qword [rsp + 0x180], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [0x1400ffac0]
movaps xmmword [rsp + 0x40], xmm0
test dl, dl
je 0x14004f45b
lea r14, [rsp + 0x6c]
xor ebx, ebx
mov r8d, 0x110
mov rcx, r14
xor edx, edx
call fcn.14008cc30
mov dword [r14 - 0xc], 0x11c
mov rdi, qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
xor ecx, ecx
mov edx, 2
mov r8b, 3
call rdi
mov rcx, rax
mov edx, 1
mov r8b, 3
call rdi
mov rcx, rax
mov edx, 0x20
mov r8b, 3
call rdi
mov qword [r14 - 8], 6
mov word [r14 + 0x108], 0
lea rcx, [rsp + 0x60]
mov edx, 0x23
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov edi, 0x80003
test eax, eax
je 0x14004f462
xorps xmm0, xmm0
lea rbx, [rsp + 0x40]
movaps xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov dword [rbx], 0x18
xor ecx, ecx
call fcn.14004f4c0
mov qword [rbx + 8], rax
mov dword [rbx + 0x10], 1
jmp 0x14004f462
mov edi, 3
xor ebx, ebx
cmp byte [rsi + 0x17], 0
jns 0x14004f46b
mov rsi, qword [rsi]
mov qword [rsp + 0x38], rbx
mov eax, 0x200
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x30], 0
mov rcx, rsi
mov edx, edi
mov r8d, 6
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rsi, rax
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.14008ab00
mov rax, rsi
add rsp, 0x188
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14004feb0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14012a2b0]
mov ecx, dword [0x140122788]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004feeb
movzx eax, word [0x14012a280]
cmp eax, 9
jne 0x14004ff33
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x14012a2b0]
call fcn.140089910
cmp dword [0x14012a2b0], 0xffffffff
jne 0x14004fed5
xorps xmm0, xmm0
movups xmmword [0x14012a2a0], xmm0
movups xmmword [0x14012a290], xmm0
movups xmmword [0x14012a280], xmm0
lea rcx, [0x14012a280]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14012a2b0]
call fcn.1400899a8
jmp 0x14004fed5
test eax, eax
je 0x14004fee6
cmp eax, 6
jne 0x14004ff43
mov eax, 2
jmp 0x14004fee6
cmp eax, 0xc
jne 0x14004ff4f
mov eax, 3
jmp 0x14004fee6
mov eax, 4
jmp 0x14004fee6
Function at 0x140050730
Capabilities:
Query or enumerate registry value

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

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

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.14008aaa0
sub rsp, rax
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140119028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea rsi, [rsp + 0x840]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.14008cc30
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], rsi
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140050873
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x140050877
lea rdx, [rsp + 0x840]
mov rcx, r14
call fcn.140030810
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14008ab00
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x140050854
cmp eax, 2
jne 0x1400508bf
lea rsi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.14008cc30
lea rcx, [rsp + 0x840]
mov rdx, rsi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x1400508c6
lea rdx, [rsp + 0x40]
jmp 0x14005084a
mov edi, 0x3f4
jmp 0x140050854
mov edi, 0xea
jmp 0x140050854

Function at 0x140050c20
Capabilities:
Get thread local storage value

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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r14, rdx
mov r15, rcx
mov ecx, dword [0x1401226d8]
cmp ecx, 0xffffffff
je 0x140050d2e
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x140050d2e
mov eax, dword [0x14012bac8]
mov ecx, dword [0x140122788]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140050d38
mov rbx, qword [0x14012bac0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140050d7e
mov rax, qword [0x14012a2b8]
inc rax
xor ecx, ecx
lea rdx, [0x14012a2c0]
lea edi, [rax + rcx]
movzx edi, dil
lea rsi, [rdi + rdi*2]
cmp dword [rdx + rsi*8], 0
jne 0x140050d8b
lea rax, [rdx + rsi*8]
mov dword [rax], 1
mov qword [rax + 8], r14
mov qword [0x14012a2b8], rdi
mov dword [r15], edi
mov eax, dword [rax + 0x10]
mov dword [r15 + 4], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [r15]
cmp eax, 0xffffffff
je 0x140050da0
cmp eax, 0x100
jge 0x140050da3
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140050db0
jmp 0x140050c7e
lea rcx, [0x14012bac8]
call fcn.140089910
cmp dword [0x14012bac8], 0xffffffff
jne 0x140050ca3
mov ecx, 8
call fcn.1400897bc
mov rbx, rax
mov rcx, rax
call fcn.14006f280
mov qword [0x14012bac0], rbx
lea rcx, [0x14012bac8]
call fcn.1400899a8
jmp 0x140050ca3
mov rcx, rbx
call fcn.14006f290
jmp 0x140050cbb
inc rcx
cmp rcx, 0x100
jne 0x140050cce
jmp 0x140050d02
int3
int3

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

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.14008aaa0
sub rsp, rax
mov rax, qword [0x140119028]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x1401226d8]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x140050e64
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140050ea2
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.14008cc30
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.14008982c
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.14008c580
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.14008ab00
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.140057a40
test al, al
je 0x140050ea5
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x140050ea8
mov eax, 0xffffffff
lock cmpxchg dword [0x1401226d8], ecx
je 0x140050de8
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x1401226d8]
mov dword [rsp + 0x2c], ecx
jmp 0x140050de8
int3
int3
lea rcx, [rsp + 0x2c]
call fcn.140057a40
test al, al
je 0x140050ecd
cmp dword [rsp + 0x2c], 0xffffffff
je 0x140050ecd
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x140050e7b
int3