joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140056a00
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140101028]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1401134c0]
mov ecx, dword [0x14011089c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140056a61
mov rax, qword [0x1401134b8]
mov esi, dword [rax]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140076420
mov eax, esi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1401134c0]
call fcn.140075230
cmp dword [0x1401134c0], 0xffffffff
jne 0x140056a3c
lea rsi, [rsp + 0x34]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140078540
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x2c]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.1400750d4
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140113508]
mov ecx, dword [0x14011089c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140056b21
lea r8, [0x1401134d8]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r9d, edi
call fcn.1400305e0
mov qword [0x1401134b8], rsi
lea rcx, [0x1401134c0]
call fcn.1400752c8
jmp 0x140056a3c
lea rcx, [0x140113508]
call fcn.140075230
cmp dword [0x140113508], 0xffffffff
jne 0x140056af2
xorps xmm0, xmm0
movups xmmword [0x1401134f8], xmm0
movups xmmword [0x1401134e8], xmm0
movups xmmword [0x1401134d8], xmm0
lea rcx, [0x1401134d8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140113508]
call fcn.1400752c8
jmp 0x140056af2
Function at 0x140057020
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x50
movapd xmmword [rsp + 0x40], xmm6
mov rsi, rcx
mov rax, qword [0x140101028]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.140055160
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x140113520]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x14005707e
jnp 0x1400570e4
ucomisd xmm0, xmm6
jne 0x14005708a
jnp 0x1400571f9
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x1400eef60]
subpd xmm1, xmmword [0x1400eef70]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x1400eef80]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140076420
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov edi, eax
call rbx
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x140113530]
mov ecx, dword [0x14011089c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140057200
mov eax, dword [0x140113540]
mov ecx, dword [0x14011089c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005723a
rdtsc
mov rbx, rax
mov r14, rdx
xor r12d, r12d
lea r15, [rsp + 0x30]
mov qword [r15], r12
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r13, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [r15], r12
lea rdi, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub r13, qword [0x140113538]
cvtsi2sd xmm1, r13
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x1400eef58]
ucomisd xmm2, xmm1
ja 0x14005707e
shl r14, 0x20
or rbx, r14
sub rbx, qword [0x140113528]
movq xmm0, rbx
punpckldq xmm0, xmmword [0x1400eef60]
subpd xmm0, xmmword [0x1400eef70]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x140113520], xmm0
jmp 0x14005707e
xor eax, eax
jmp 0x1400570bc
lea rcx, [0x140113530]
call fcn.140075230
cmp dword [0x140113530], 0xffffffff
jne 0x14005712d
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x140113528], rdx
lea rcx, [0x140113530]
call fcn.1400752c8
jmp 0x14005712d
lea rcx, [0x140113540]
call fcn.140075230
cmp dword [0x140113540], 0xffffffff
jne 0x140057152
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x140113538], rax
lea rcx, [0x140113540]
call fcn.1400752c8
jmp 0x140057152
Function at 0x14005c590
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1401045e0]
cmp ecx, 0xffffffff
je 0x14005c5b5
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 0x14005c5b0

Function at 0x14005c5c0
Capabilities:
Get thread local storage value

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

Function at 0x14005c600
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x1401045e0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14005c63e
mov rcx, qword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 8]
mov rdx, qword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x14005c637
call fcn.140037200
jmp 0x14005c61e
Function at 0x140066ba0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x14011af18]
cmp rsi, 1
jbe 0x140066bc3
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14005c600
lea rcx, [0x14011af18]
call fcn.14003dc00
test al, al
je 0x140066c08
xorps xmm0, xmm0
movups xmmword [0x14011af20], xmm0
lea rdi, [0x14011af18]
lea rsi, [0x14011af20]
mov rcx, rsi
xor edx, edx
call fcn.140037400
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.14003dcc0
jmp 0x140066bb3
mov rsi, qword [0x14011af18]
jmp 0x140066bb3

Function at 0x140066d30
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14011af48]
mov ecx, dword [0x14011089c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140066d65
lea rcx, [0x14011af38]
add rsp, 0x28
jmp fcn.14005c5c0
lea rcx, [0x14011af48]
call fcn.140075230
cmp dword [0x14011af48], 0xffffffff
jne 0x140066d55
xorps xmm0, xmm0
movups xmmword [0x14011af38], xmm0
lea rcx, [0x14011af38]
xor edx, edx
call fcn.140037400
lea rcx, [0x14011af48]
call fcn.1400752c8
jmp 0x140066d55
Function at 0x140066da0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rcx]
mov r14, qword [rsi + 8]
sub r14, rcx
sar r14, 3
lea rdx, [r14 + 1]
mov rax, rdx
shr rax, 0x3d
jne 0x140066f00
movabs rax, 0x1fffffffffffffff
movabs rbx, 0x7ffffffffffffff8
mov r8, qword [rsi + 0x10]
sub r8, rcx
mov r15, r8
sar r15, 2
cmp r15, rdx
cmovbe r15, rdx
cmp r8, rbx
cmovae r15, rax
test r15, r15
je 0x140066ef9
cmp r15, rax
ja 0x140066f05
lea rcx, [r15*8]
call fcn.1400750d4
shl r14, 3
add r14, rax
je 0x140066f0a
lea rax, [rax + r15*8]
mov rcx, qword [rdi]
mov qword [r14], rcx
mov qword [rdi], 0
lea rcx, [r14 + 8]
mov rdi, qword [rsi]
mov rdx, qword [rsi + 8]
cmp rdx, rdi
je 0x140066eca
mov r8, qword [rdx - 8]
mov qword [r14 - 8], r8
mov qword [rdx - 8], 0
lea r8, [rdx - 8]
add r14, 0xfffffffffffffff8
mov rdx, r8
cmp r8, rdi
jne 0x140066e4d
mov rdi, qword [rsi]
mov r15, qword [rsi + 8]
mov qword [rsi], r14
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
cmp r15, rdi
je 0x140066ed5
add r15, 0xfffffffffffffff8
add rbx, 7
test r15, r15
je 0x140066f36
mov rcx, qword [r15]
and rcx, rbx
mov rax, qword [0x1401045a0]
and rax, rcx
cmp rax, qword [0x140104588]
je 0x140066ec3
mov qword [r15], 0
lea rax, [r15 - 8]
cmp r15, rdi
mov r15, rax
jne 0x140066e8c
jmp 0x140066ed5
call fcn.140055d60
jmp 0x140066eae
mov qword [rsi], r14
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
test rdi, rdi
jne 0x140066ee6
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.140075110
xor eax, eax
jmp 0x140066e1f
call fcn.140089020
call fcn.1400a37e0
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.1400a3a70
lea rax, str.null_pointer_given_to_destroy_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.__loc___nullptr
mov r8d, 0x3f
call fcn.1400a3a70
int3

Function at 0x140068620
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
xor eax, eax
test r8d, r8d
sete al
xor r8d, r8d
test edx, edx
sete r8b
xor ecx, ecx
mov edx, r8d
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x1400686bc
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400686a6
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140068681
mov qword [rsi], rdi
call fcn.140056880
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov word [rsi + 8], 0x101
inc rax
cmp rax, 1
jbe 0x1400686c2
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140056880
mov rcx, qword [rsi]
call fcn.1400587f0
mov qword [rsi], 0
jmp 0x14006866f
mov word [rsi + 8], 0x101
int3
Function at 0x140071640
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
test r8, r8
je 0x14007166b
xor ecx, ecx
lea r9, [0x1400f3430]
movzx r10d, al
movzx r11d, byte [rdx + rcx]
xor r11d, r10d
shr eax, 8
xor eax, dword [r9 + r11*4]
inc rcx
cmp r8, rcx
jne 0x140071650
ret

Function at 0x140074e30
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14011b170]
mov ecx, dword [0x14011089c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140074e96
lea rcx, [0x14011b160]
xor edx, edx
call fcn.14005c600
mov eax, dword [0x14011b188]
mov ecx, dword [0x14011089c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140074ed1
lea rcx, [0x14011b178]
xor edx, edx
add rsp, 0x28
jmp fcn.14005c600
lea rcx, [0x14011b170]
call fcn.140075230
cmp dword [0x14011b170], 0xffffffff
jne 0x140074e55
xorps xmm0, xmm0
movups xmmword [0x14011b160], xmm0
lea rcx, [0x14011b160]
xor edx, edx
call fcn.140037400
lea rcx, [0x14011b170]
call fcn.1400752c8
jmp 0x140074e55
lea rcx, [0x14011b188]
call fcn.140075230
cmp dword [0x14011b188], 0xffffffff
jne 0x140074e84
xorps xmm0, xmm0
movups xmmword [0x14011b178], xmm0
lea rcx, [0x14011b178]
xor edx, edx
call fcn.140037400
lea rcx, [0x14011b188]
call fcn.1400752c8
jmp 0x140074e84

Function at 0x140075020
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x14011b190]
cmp rsi, 1
jbe 0x140075043
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14005c600
lea rcx, [0x14011b190]
call fcn.14003dc00
test al, al
je 0x140075088
xorps xmm0, xmm0
movups xmmword [0x14011b198], xmm0
lea rdi, [0x14011b190]
lea rsi, [0x14011b198]
mov rcx, rsi
xor edx, edx
call fcn.140037400
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.14003dcc0
jmp 0x140075033
mov rsi, qword [0x14011b190]
jmp 0x140075033
Function at 0x14009b29c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14009b2cc
xor eax, eax
jmp 0x14009b38f
mov rbp, rbx
cmp word [rax], si
je 0x14009b2f1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14009b2d8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14009b2d4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14009b1ec
movsxd r14, eax
test eax, eax
jne 0x14009b32f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14009b2c5
mov rcx, r14
call fcn.14002c8f0
mov rdi, rax
test rax, rax
jne 0x14009b348
xor ecx, ecx
call fcn.1400532f0
jmp 0x14009b324
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14009b1ec
test eax, eax
jne 0x14009b379
mov rcx, rdi
call fcn.1400532f0
jmp 0x14009b383
xor ecx, ecx
call fcn.1400532f0
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14009b3ac
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14009b433
mov rsi, rbx
cmp word [rax], bp
je 0x14009b3f2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14009b3dc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14009b3d8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14002c8f0
mov rdi, rax
test rax, rax
je 0x14009b420
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140077e90
mov rbp, rdi
xor ecx, ecx
call fcn.1400532f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400a1ad4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14007edc8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400a1b5e
cmp byte [rbp - 0x21], r15b
je 0x1400a1b59
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400a1b94
call fcn.140094274
test eax, eax
jne 0x1400a1b80
cmp byte [rbp - 0x21], r15b
je 0x1400a1b78
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400a1b94
cmp byte [rbp - 0x21], r15b
je 0x1400a1b91
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400843a8
test eax, eax
jne 0x1400a1c34
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14007edc8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400a1bd3
cmp byte [rbp - 0x21], r15b
je 0x1400a1c08
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400a1c08
call fcn.140094274
test eax, eax
jne 0x1400a1bf4
cmp byte [rbp - 0x21], r15b
je 0x1400a1bed
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400a1c08
cmp byte [rbp - 0x21], r15b
je 0x1400a1c05
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400843a8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400a1c34
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400a1c37
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400a1c45
mov rcx, rdi
call fcn.1400532f0
cmp byte [rbp + 0x3f], r15b
je 0x1400a1c54
mov rcx, qword [rbp + 0x27]
call fcn.1400532f0
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x1400bb130
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov ecx, 0x10
call fcn.1400750d4
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x1400bb1a0]
xor ecx, ecx
xor edx, edx
mov r9, rax
call fcn.140084524
mov qword [rbx], rax
test rax, rax
je 0x1400bb187
xor eax, eax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
add rsp, 0x30
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x1400bb820
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x140101028]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x1401133f8], 0
je 0x1400bb866
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.140076420
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov rdi, qword [0x1401133d0]
test rdi, rdi
je 0x1400bb907
test byte [0x140102f48], 1
je 0x1400bb849
cmp byte [rdi + 0x17], 0
jns 0x1400bb888
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 [0x1401133f8], rax
inc rax
cmp rax, 1
ja 0x1400bb849
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140078540
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x1400bb9d2
xor esi, esi
jmp 0x1400bb849
mov ecx, 0x18
call fcn.1400750d4
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.140078540
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x1400ea530]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.140022e80
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x1400bb96e
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
jmp 0x1400bb974
and eax, 0x7f
mov rcx, rdi
test rax, rax
jne 0x1400bb99a
lea rdx, [0x1400ed5fc]
mov r8d, 9
mov rcx, rdi
call fcn.1400261f0
mov qword [0x1401133d0], rdi
jmp 0x1400bb876
lea r8, [rax + rax]
test r8, r8
je 0x1400bb979
lea rdx, [r8 - 2]
cmp word [rcx + r8 - 2], 0x5c
mov r8, rdx
jne 0x1400bb99e
cmp rdx, 0xfffffffffffffffe
je 0x1400bb979
sar rdx, 1
inc rdx
cmp rax, rdx
jb 0x1400bba99
mov rcx, rdi
call fcn.1400bb7c0
jmp 0x1400bb979
mov rdi, qword [0x1401133d0]
lea rbx, [rsp + 0x40]
mov rcx, rbx
call fcn.14008f978
mov rcx, rdi
mov rdx, rbx
mov r8, rax
call fcn.140025ed0
mov rcx, qword [0x1401133d0]
call fcn.140024400
cmp word [rax], 0x5c
je 0x1400bba1f
mov rcx, qword [0x1401133d0]
lea rdx, [0x1400ed5f8]
mov r8d, 1
call fcn.1400261f0
mov rcx, qword [0x1401133d0]
lea rdx, [0x1400ed5fc]
mov r8d, 9
call fcn.1400261f0
mov rcx, qword [0x1401133d0]
cmp byte [rcx + 0x17], 0
jns 0x1400bba48
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 [0x1401133f8], rax
inc rax
cmp rax, 1
ja 0x1400bb849
mov qword [0x1401133f8], 0
jmp 0x1400bb900
call fcn.140089020
int3
Function at 0x1400bcfa0
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 [0x140101028]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x1400bd01f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, esi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x1400bd024
test bl, bl
je 0x1400bcffb
cmp byte [rdi + 8], 0
je 0x1400bd080
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
mov edx, esi
call fcn.14002c7a0
mov sil, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140076420
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, qword [rdi]
jmp 0x1400bcfcd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rdi + 8], 0
je 0x1400bd04c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400bd051
xor esi, esi
jmp 0x1400bd008
mov rcx, qword [rdi]
jmp 0x1400bd039
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rdi + 8], 0
je 0x1400bd088
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1400bcffb
mov esi, dword [rsp + 0x24]
jmp 0x1400bcffb
mov rcx, qword [rdi]
jmp 0x1400bcff0
mov rcx, qword [rdi]
jmp 0x1400bd068
Function at 0x1400cd9f0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov r14, rdx
mov rsi, rcx
mov rax, qword [rcx + 8]
cmp rax, qword [rcx + 0x10]
je 0x1400cda2e
test rax, rax
je 0x1400cdaeb
mov rcx, qword [r14]
mov qword [rax], rcx
add rax, 8
mov qword [rsi + 8], rax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
sub rax, qword [rsi]
mov rbx, rax
sar rbx, 3
lea rcx, [rbx + 1]
mov rdx, rcx
shr rdx, 0x3d
jne 0x1400cdb17
movabs rdx, 0x1fffffffffffffff
lea rdi, [rsi + 0x18]
mov r15, rax
sar r15, 2
cmp r15, rcx
cmovbe r15, rcx
movabs rcx, 0x7ffffffffffffff8
cmp rax, rcx
cmovae r15, rdx
test r15, r15
jne 0x1400cdade
xor eax, eax
shl rbx, 3
add rbx, rax
je 0x1400cdaeb
lea r15, [rax + r15*8]
mov rax, qword [r14]
mov qword [rbx], rax
lea r14, [rbx + 8]
mov rdx, qword [rsi]
mov r8, qword [rsi + 8]
sub r8, rdx
sub rbx, r8
mov rcx, rbx
call fcn.140077e90
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
mov qword [rsi], rbx
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], r15
test rdx, rdx
je 0x1400cda22
sub r8, rdx
sar r8, 3
mov rcx, rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.1400ce050
mov rcx, rdi
mov rdx, r15
call fcn.1400ce5d0
jmp 0x1400cda7d
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.1400a3a70
call fcn.140089020
int3

Function at 0x1400d8170
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140101028]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
add rsi, rdi
xor r15d, r15d
lea r14, [rsp + 0x2c]
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
cmp rdi, rsi
jae 0x1400d81f8
mov dword [rsp + 0x2c], 0
mov r8d, esi
sub r8d, edi
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov rdx, rdi
mov r9, r14
call r12
test eax, eax
sete dl
mov ecx, dword [rsp + 0x2c]
test rcx, rcx
sete al
or al, dl
mov edx, 0
jne 0x1400d81f1
mov rdx, rcx
add rdi, rdx
cmp al, 1
jne 0x1400d81b2
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140076420
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret