joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400fa284
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.1400ed30c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400fa30e
cmp byte [rbp - 0x21], r15b
je 0x1400fa309
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400fa344
call fcn.1400effd0
test eax, eax
jne 0x1400fa330
cmp byte [rbp - 0x21], r15b
je 0x1400fa328
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400fa344
cmp byte [rbp - 0x21], r15b
je 0x1400fa341
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.1400f2ee8
test eax, eax
jne 0x1400fa3e4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400ed30c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400fa383
cmp byte [rbp - 0x21], r15b
je 0x1400fa3b8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400fa3b8
call fcn.1400effd0
test eax, eax
jne 0x1400fa3a4
cmp byte [rbp - 0x21], r15b
je 0x1400fa39d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400fa3b8
cmp byte [rbp - 0x21], r15b
je 0x1400fa3b5
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.1400f2ee8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400fa3e4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400fa3e7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400fa3f5
mov rcx, rdi
call fcn.1400ef2bc
cmp byte [rbp + 0x3f], r15b
je 0x1400fa404
mov rcx, qword [rbp + 0x27]
call fcn.1400ef2bc
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 0x1400fa76c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140145780]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400fa7c3
cmp word [rdx], r13w
jne 0x1400fa7c3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400fa7c8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400fa8ed
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400fa90e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400fa801
mov rdx, r9
mov word [rbx], cx
jmp 0x1400fa828
cmp r9, r8
jae 0x1400fa838
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400fa7e2
jmp 0x1400fa8ed
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400fa8e2
cmp dword [rsp + 0x80], esi
je 0x1400fa8e2
lea r8, [0x140145780]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400fa8ba
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400fa88a
mov word [rbx], r13w
jmp 0x1400fa8ea
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400fa897
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400fa8ea
cmp word [rsp + 0x70], r13w
jne 0x1400fa8c7
cmp rbx, r14
je 0x1400fa884
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400fa68c
cmp word [rsp + 0x70], r13w
je 0x1400fa8ed
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140145780]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400fa8e7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400fa8ed
Function at 0x1400fb0dc
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400fa68c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400fa68c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400fb22c
cmp rax, 0xffffffffffffffff
je 0x1400fb22c
xor edi, edi
test rbp, rbp
jle 0x1400fb1d7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400efd44
mov rbx, rax
test rax, rax
jne 0x1400fb164
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400fb1cd
mov edx, 0x8000
mov ecx, r14d
call fcn.1400eeefc
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400f686c
cmp eax, 0xffffffff
je 0x1400fb1ad
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400fb174
mov edx, r15d
mov ecx, r14d
call fcn.1400eeefc
jmp 0x1400fb1cd
cmp byte [rsi + 0x38], dil
je 0x1400fb1c4
cmp dword [rsi + 0x34], 5
jne 0x1400fb1c4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400fb1cd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400ef2bc
jmp 0x1400fb240
jns 0x1400fb240
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400fa68c
cmp rax, 0xffffffffffffffff
jne 0x1400fb1f8
cmp byte [rsi + 0x30], dil
je 0x1400fb240
mov edi, dword [rsi + 0x2c]
jmp 0x1400fb240
mov ecx, r14d
call fcn.1400f5404
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400fb240
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400fb240
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400fb239
mov eax, dword [rsi + 0x2c]
jmp 0x1400fb23e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400fa68c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1400fd080
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400fd0a8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400fd0a8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001ee0
Capabilities:
Find process by pid
Print debug messages

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
lea rcx, [0x1400028e0]
call sub.ntoskrnl.exe_DbgPrint
and qword [rsp + 0x58], 0
lea rdx, [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
jne 0x140001f23
lea rcx, [0x140002870]
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
jmp 0x140001f76
and qword [rsp + 0x60], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov r9d, 0x1fffff
mov rax, qword [sym.imp.ntoskrnl.exe_PsProcessType]
xor r8d, r8d
mov byte [rsp + 0x28], 0
mov rdx, qword [rax]
mov qword [rsp + 0x20], rdx
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov edx, eax
lea rcx, [0x140002900]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret

Function at 0x140001f90
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x50
and qword [rax - 0x18], 0
mov rsi, rdx
lea rdx, [rax - 0x18]
mov ebx, r9d
mov rdi, r8
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp qword [rsp + 0x40], 0
jne 0x140001fc4
xor eax, eax
jmp 0x140002001
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov r8, qword [rsp + 0x40]
mov r9, rsi
mov rcx, rax
mov rdx, rdi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], rbx
call sub.ntoskrnl.exe_MmCopyVirtualMemory
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x140002020
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x50
and qword [rax - 0x18], 0
mov rsi, rdx
lea rdx, [rax - 0x18]
mov ebx, r9d
mov rdi, r8
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp qword [rsp + 0x40], 0
jne 0x140002054
xor eax, eax
jmp 0x140002091
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rcx, qword [rsp + 0x40]
mov r9, rdi
mov r8, rax
mov rdx, rsi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], rbx
call sub.ntoskrnl.exe_MmCopyVirtualMemory
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x140006480
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
mov esi, eax
movabs eax, dword [0xda8b088900409214]
test ebx, ebx
jle 0x1400064a1
mov eax, 0xff
call fcn.140001a80
xor byte [rsi], al
jne 0x140006491
pop rsi
pop rbx
ret
Function at 0x140001000
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x230
mov rsi, rcx
mov rax, qword [0x1401ea088]
xor rax, rsp
mov qword [rsp + 0x228], rax
lea rdi, [rsp + 0x120]
mov r8d, 0x104
mov rcx, rdi
mov dl, 0xaa
call fcn.1401615d0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea rbx, [rsp + 0x28]
mov r8d, 0xf8
mov rcx, rbx
mov dl, 0xaa
call fcn.1401615d0
mov rcx, rbx
mov edx, 1
call fcn.1400010e0
lea rcx, [rsp + 0x38]
mov rdx, rdi
call fcn.1400011b7
lea rdx, [0x140199010]
mov rcx, rax
call fcn.1400011b7
lea rdx, str.AutoUpdate
mov rcx, rax
call fcn.1400011b7
lea rcx, [rsp + 0x40]
mov rdx, rsi
call fcn.140004588
lea rdi, [rsp + 0xc0]
mov rcx, rdi
call fcn.140002344
lea rax, vtable.std::ios_base.0
mov qword [rdi], rax
mov rcx, rdi
call fcn.14015c5a8
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.14015c2e0
mov rax, rsi
add rsp, 0x230
pop rbx
pop rdi
pop rsi
ret
Function at 0x140004b09
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1a8
movaps xmmword [rsp + 0x190], xmm6
mov rsi, rcx
mov rax, qword [0x1401ea088]
xor rax, rsp
mov qword [rsp + 0x188], rax
lea rbx, [rsp + 0x80]
mov r8d, 0x104
mov rcx, rbx
mov dl, 0xaa
call fcn.1401615d0
lea rcx, str._ProgramData_
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
movaps xmm0, xmmword [section..rdata]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm0
xorps xmm6, xmm6
lea rdi, [rsp + 0x60]
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
lea rdx, [0x140199010]
mov r8d, 8
mov rcx, rdi
call fcn.140002d20
lea r14, [rsp + 0x20]
movaps xmmword [r14 + 0x10], xmm6
movaps xmmword [r14], xmm6
mov rcx, rbx
call fcn.1401812d0
mov rcx, r14
mov rdx, rbx
mov r8, rax
call fcn.140002d20
lea rdx, [0x1401993f4]
mov r8d, 1
mov rcx, r14
call fcn.140003cac
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rbx, [rsp + 0x40]
movaps xmmword [rbx + 0x10], xmm1
movaps xmmword [rbx], xmm0
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rcx, rsi
mov r8, rbx
mov r9, rdi
call fcn.140002dd2
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140004c16
mov rcx, qword [rsp + 0x40]
inc rdx
call fcn.140002b34
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x40], 0
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x140004c45
mov rcx, qword [rsp + 0x20]
inc rdx
call fcn.140002b34
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x140004c5d
mov rcx, qword [rsp + 0x60]
inc rdx
call fcn.140002b34
mov rcx, qword [rsp + 0x188]
xor rcx, rsp
call fcn.14015c2e0
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x190]
add rsp, 0x1a8
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140005800
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
movaps xmmword [rsp + 0x90], xmm6
mov rdi, r9
mov r14, r8
mov rsi, rdx
mov rbx, rcx
movsd xmm6, qword [rsp + 0x118]
mov rax, qword [0x1401ea088]
xor rax, rsp
mov qword [rsp + 0x88], rax
xorpd xmm0, xmm0
movapd xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], reloc.WS2_32.dll_ntohs
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x58], rax
mov ecx, 0x3000
mov eax, dword [r9 + 0x18]
and eax, ecx
cmp eax, ecx
jne 0x14000588b
mov r12d, reloc.WS2_32.dll_listen
mov r15, 0xffffffffffffffff
jmp 0x140005900
mov r15, qword [rdi + 0x20]
mov rcx, r15
test r15, r15
jg 0x1400058a5
mov ecx, 6
jne 0x1400058a5
xor ecx, ecx
test eax, eax
sete cl
movsxd r12, ecx
movapd xmm0, xmmword [0x140199520]
andpd xmm0, xmm6
ucomisd xmm0, qword [0x140199530]
jbe 0x140005900
cmp eax, 0x2000
jne 0x140005900
lea r13, [rsp + 0x54]
mov dword [r13], 0xaaaaaaaa
movapd xmm0, xmm6
mov rdx, r13
call fcn.14017c004
mov eax, dword [r13]
mov ecx, eax
neg ecx
cmovs ecx, eax
imul eax, ecx, 0x7597
shr eax, 5
imul rax, rax, 0xa7c5ac5
shr rax, 0x27
add r12, rax
add r12, 0x32
lea r13, [rsp + 0x60]
mov rcx, r13
mov rdx, r12
xor r8d, r8d
call fcn.140005084
mov r9d, dword [rdi + 0x18]
lea rdx, [rsp + 0x58]
mov rcx, rbx
mov r8b, 0x4c
call fcn.140006ed4
mov rdx, qword [r13 + 0x10]
cmp qword [r13 + 0x18], 0x10
mov rcx, r13
jb 0x14000593e
mov rcx, qword [rsp + 0x60]
mov bpl, byte [rsp + 0x110]
movsd qword [rsp + 0x20], xmm6
mov r8, rax
mov r9d, r15d
call fcn.14000687f
cdqe
cmp qword [rsp + 0x78], 0x10
jb 0x140005966
mov r13, qword [rsp + 0x60]
movups xmm0, xmmword [r14]
lea r8, [rsp + 0x40]
movaps xmmword [r8], xmm0
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r13
mov byte [rsp + 0x20], bpl
push rbx
push rbx
Function at 0x1400079f4
Capabilities:
Query or enumerate registry value

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

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

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.14015c280
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1401ea088]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.1401615d0
lea r9, [rsp + 0x3c]
mov dword [r9], 1
lea rax, [rsp + 0x38]
mov dword [rax], 0x800
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x140007b74
mov eax, dword [rsp + 0x3c]
cmp eax, 2
je 0x140007b16
mov edi, 0x3f4
cmp eax, 1
jne 0x140007b74
lea rdi, [rsp + 0x840]
jmp 0x140007b5c
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.1401615d0
lea rcx, [rsp + 0x840]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
mov edi, 0xea
cmp eax, 0xfffffc00
jb 0x140007b74
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.14018303c
mov rcx, rsi
mov rdx, rdi
mov r8, rax
call fcn.140007bba
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14015c2e0
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140007b94
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete al
add rsp, 0x38
ret
Function at 0x14000de50
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
test r8, r8
jle 0x14000de89
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x14000de90
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_64
xor esi, esi
jmp 0x14000df6d
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000ded6
mov rax, qword [rbx + 0x50]
movsxd r15, dword [rax]
test r15, r15
je 0x14000ded6
cmp r15, rsi
cmovae r15, rsi
mov rcx, rdi
mov r8, r15
call fcn.140160f20
add rdi, r15
mov r14, rsi
sub r14, r15
mov rax, qword [rbx + 0x50]
sub dword [rax], r15d
mov rax, qword [rbx + 0x38]
movsxd rcx, r15d
add qword [rax], rcx
jmp 0x14000ded9
mov r14, rsi
cmp qword [rbx + 0x80], 0
je 0x14000df6a
mov rax, qword [rbx + 0x18]
lea rcx, [rbx + 0x70]
cmp qword [rax], rcx
jne 0x14000df13
mov ecx, dword [rbx + 0x90]
mov rdx, qword [rbx + 0x88]
mov qword [rax], rdx
mov rax, qword [rbx + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rbx + 0x50]
mov dword [rax], ecx
cmp r14, 0x1000
jb 0x14000df46
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rdi
call fcn.14017bd70
add rdi, rax
sub r14, rax
cmp rax, 0xfff
je 0x14000df13
jmp 0x14000df6a
test r14, r14
je 0x14000df67
mov r9, qword [rbx + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, r14
call fcn.14017bd70
sub r14, rax
jmp 0x14000df6a
xor r14d, r14d
sub rsi, r14
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x14001d602
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x58
mov rax, qword [0x1401ea088]
xor rax, rsp
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [section..rdata]
lea rsi, [rsp + 0x30]
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
mov rdx, rsi
call fcn.14001cbd0
mov bl, byte [reloc.WS2_32.dll_accept]
cmp qword [rsi + 0x18], 0x10
jb 0x14001d644
mov rsi, qword [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test bl, bl
je 0x14001d6da
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
je 0x14001d681
mov dword [rsp + 0x2c], 0
mov r8d, dword [rsp + 0x40]
cmp qword [rsp + 0x48], 0x10
jb 0x14001d690
mov rdx, qword [rsp + 0x30]
jmp 0x14001d695
cmp qword [rsp + 0x48], 0x10
jb 0x14001d6ae
mov rsi, qword [rsp + 0x30]
jmp 0x14001d6b3
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x2c]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x14001d6da
lea rsi, [rsp + 0x30]
mov ecx, 2
call fcn.1401642f0
mov rcx, rsi
mov rdx, rax
call fcn.14017ba58
mov ecx, 2
call fcn.1401642f0
mov rcx, rax
call fcn.14017b1c4
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x14001d6f2
mov rcx, qword [rsp + 0x30]
inc rdx
call fcn.140002b34
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14015c2e0
nop
add rsp, 0x58
pop rbx
pop rsi
ret
Function at 0x14001eee4
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
sub rsp, 0x20
mov eax, dword [0x1401eca80]
mov ecx, dword [0x1401ec7f4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x120]
jg 0x14001ef17
mov rax, qword [0x1401eca78]
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1401eca80]
call fcn.14015d5e0
cmp dword [0x1401eca80], 0xffffffff
jne 0x14001ef0a
mov ecx, 0x48
call fcn.14015c21c
mov rsi, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
lea rcx, [rax + 0x18]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rsi + 0x40], eax
mov qword [0x1401eca78], rsi
lea rcx, [0x1401eca80]
call fcn.14015d678
jmp 0x14001ef0a

Function at 0x14001f038
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001eee4
mov ecx, dword [rax + 0x40]
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

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

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
test rdx, rdx
je 0x14001f1b7
mov rcx, rsi
call fcn.14001f1e0
jmp 0x14001f1cd
mov ecx, dword [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001f1cd
mov rcx, rax
call fcn.14001f236
mov ecx, dword [rdi + 0x40]
mov rdx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x1400208ce
Capabilities:
Create thread

Disassembly:
push rsi
sub rsp, 0x30
cmp qword [rcx + 0xb8], 0
je 0x1400208e1
xor eax, eax
jmp 0x140020932
mov rsi, rcx
mov rax, qword [rcx]
mov rax, qword [rax + 0x50]
call qword [case.0x140031f00.0]
call fcn.14001eee4
mov byte [rsi + 0xc4], 1
lea rax, [rsi + 0xc0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea r8, [0x140020940]
xor ecx, ecx
xor edx, edx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsi + 0xb8], rax
test rax, rax
setne al
add rsp, 0x30
pop rsi
ret

Function at 0x140020998
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x1401ea088]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [rcx + 0xb8], 0
je 0x140020a4d
mov rsi, rcx
call fcn.14001eee4
mov ecx, dword [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140020a19
call fcn.14001eee4
mov ecx, dword [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp byte [rax + 0xc5], 0
jne 0x140020a19
call fcn.140020a62
test al, al
jne 0x140020a19
lea rax, str....._rtc_base_thread.cc
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
mov dword [rdx + 8], 0x1932
lea rcx, [0x1401993dd]
lea r8, str.Waiting_for_the_thread_to_join__but_blocking_calls_have_been_disallowed
call fcn.14001dab5
mov rcx, qword [rsi + 0xb8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsi + 0xb8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0xb8], 0
mov dword [rsi + 0xc0], 0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14015c2e0
nop
add rsp, 0x40
pop rsi
ret
Function at 0x140021e03
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
cmp qword [rcx + 0x18], 0x10
jb 0x140021e15
mov rcx, qword [rcx]
lea rdx, [0x14019bebe]
call fcn.140174f28
test rax, rax
je 0x140021eb8
mov rsi, rax
xor ebp, ebp
mov rcx, rax
xor edx, edx
mov r8d, 2
call fcn.140174b78
mov rcx, rsi
call fcn.14017c134
mov edi, eax
mov rcx, rsi
xor edx, edx
xor r8d, r8d
call fcn.140174b78
movsxd rbx, edi
mov rcx, rbx
call fcn.14017d250
test rax, rax
je 0x140021eb8
mov rdi, rax
mov r8d, 1
mov rcx, rax
mov rdx, rbx
mov r9, rsi
call fcn.14017bd70
mov rcx, rsi
call fcn.14017afb0
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], ebp
mov rcx, rdi
mov edx, ebx
mov r8d, 1
mov r9d, 0x30000
call qword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov rsi, rax
mov rcx, rdi
call fcn.14017bff0
mov rax, rsi
jmp 0x140021eba
xor eax, eax
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret