joyce8/EMBER2024-capa huggingface dataset:
Function at 0x680dfd20
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x68310268], eax
cmp eax, 0xffffffff
je 0x6830fde0
add rsp, 0x28
ret
call sub.msvcrt.dll_abort
nop

Function at 0x680e0380
Capabilities:
Print debug messages

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rbx, rcx
test rcx, rcx
je 0x680e03a5
call fcn.680dfbe0
cmp eax, 1
je 0x680e03b2
mov qword [rbx], 0xffffffffffffffff
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
ret
lea r12, [rsp + 0x20]
xor eax, eax
mov ecx, 0xa
lea rsi, str.Error_cleaning_up_spin_keys_for_thread
mov rdi, r12
rep movsd dword [rdi], dword [rsi]
lea rdi, [rsp + 0x48]
mov ecx, 0x43
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x680e0438
mov eax, 0x28
jmp 0x680e040a
add rax, 1
cmp rax, 0x6b
je 0x680e042a
cmp byte [r12 + rax], 0
mov edx, eax
jne 0x680e0400
cmp eax, 0x6a
je 0x680e042a
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0xa
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rax + 0x20], 0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov edx, 0x27
jmp 0x680e0418

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

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x48
cmp dword [0x683ae380], 1
je 0x680e0457
call fcn.680e02f0
mov ecx, dword [0x68310268]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x680e0480
mov rax, r12
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r12
ret
call fcn.680e0220
cmp qword [0x683b3040], 0
mov rbx, rax
je 0x680e046b
test rax, rax
je 0x680e046b
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.680e0380
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r12, rax
call rdi
mov dword [rsp + 0x30], 2
mov r8, rsi
mov rdx, r12
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x6830fde6
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x68310268]
mov rdx, rbx
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x6830fde6
mov r12, rbx
mov rax, r12
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r12
ret
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2
Function at 0x680e1b60
Capabilities:
Create thread
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rdi, rcx
mov rsi, rdx
mov rbx, r8
mov rbp, r9
call fcn.680e0220
mov r12, rax
test rax, rax
je 0x680e1dd0
test rdi, rdi
je 0x680e1b9a
mov rax, qword [rax + 0x1d8]
mov qword [rdi], rax
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [r12 + 8], rbp
mov dword [r12 + 0x44], 1
mov rbp, qword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [r12 + 0xbc], 0
mov r14, r13
mov qword [r12 + 0x28], 0xffffffffffffffff
mov qword [r12 + 0x10], rbx
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call rbp
mov qword [r12 + 0x30], rax
test rax, rax
jne 0x680e1c10
test ebx, ebx
je 0x680e1c08
mov ecx, 0x14
call r14
cmp ebx, 4
je 0x680e1c10
add ebx, 1
jmp 0x680e1bd5
xor ecx, ecx
call r13
jmp 0x680e1bff
mov qword [r12 + 0x38], 0xffffffffffffffff
lea r14, [r12 + 0x68]
mov rcx, r14
call fcn.680e0380
cmp qword [r12 + 0x30], 0
mov dword [r12], 0xbab1f00d
mov dword [r12 + 0xc0], 0
mov dword [r12 + 0xb8], 0
je 0x680e1d7c
xor edx, edx
test rsi, rsi
je 0x680e1c76
mov eax, dword [rsi]
mov edx, dword [rsi + 0x10]
mov dword [r12 + 0x44], eax
test al, 8
jne 0x680e1da8
mov eax, dword [rsi + 0x18]
mov dword [r12 + 0xc0], eax
lea r8, [0x680e08f0]
mov r9, r12
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov r13, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x680e1d48
mov eax, dword [r12 + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jge 0x680e1d20
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [r12 + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [r12 + 0x44], 4
jne 0x680e1d00
mov qword [r12 + 0x28], r13
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov qword [r12 + 0x28], 0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x680e1ce6
mov edx, 0xfffffffe
cmp eax, 0xffffffff
jl 0x680e1cbc
mov edx, 0xf
cmp eax, 0xe
jg 0x680e1cbc
cmp eax, 2
mov edx, 2
cmovle edx, eax
jmp 0x680e1cbc
mov rcx, qword [r12 + 0x30]
test rcx, rcx
je 0x680e1d58
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [r12 + 0x38]
call fcn.680dfa60
mov rcx, r14
call fcn.680e0380
mov qword [r12 + 0x30], 0
mov qword [r12 + 0x28], 0
test rdi, rdi
je 0x680e1d88
mov qword [rdi], 0
mov rcx, r12
call fcn.680dff70
mov eax, 0xb
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov dword [rsp + 0x3c], edx
call fcn.680e0440
mov edx, dword [rsp + 0x3c]
mov eax, dword [rax + 0xc0]
mov dword [r12 + 0xc0], eax
jmp 0x680e1c76
mov eax, 0xb
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x680f4060
Capabilities:
Query environment variable

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x1d0
mov rbx, rcx
lea rcx, str.FREETYPE_PROPERTIES
call sub.msvcrt.dll_getenv
test rax, rax
je 0x680f41cf
movzx edx, byte [rax]
test dl, dl
je 0x680f41cf
lea rbp, [rsp + 0x140]
lea rdi, [rsp + 0xb0]
lea rsi, [rsp + 0x20]
nop dword [rax]
cmp dl, 0x20
je 0x680f41e0
cmp dl, 9
je 0x680f41e0
mov r10, rax
xor edx, edx
jmp 0x680f40e5
cmp cl, 0x3a
je 0x680f40f0
mov byte [rdx + rsi], cl
add rdx, 1
add r10, 1
cmp rdx, 0x80
je 0x680f41e8
movzx ecx, byte [r10]
movsxd r8, edx
test cl, cl
jne 0x680f40c8
mov byte [rsp + r8 + 0x20], 0
cmp byte [r10], 0x3a
jne 0x680f41cf
cmp r10, rax
je 0x680f41cf
add r10, 1
xor eax, eax
mov rcx, r10
jmp 0x680f4134
cmp dl, 0x3d
je 0x680f413e
mov byte [rax + rdi], dl
add rax, 1
add rcx, 1
cmp rax, 0x80
je 0x680f41f3
movzx edx, byte [rcx]
movsxd r8, eax
test dl, dl
jne 0x680f4118
mov byte [rsp + r8 + 0xb0], 0
cmp byte [rcx], 0x3d
jne 0x680f41cf
cmp rcx, r10
je 0x680f41cf
add rcx, 1
xor eax, eax
mov r12, rcx
jmp 0x680f417c
cmp dl, 9
je 0x680f4189
mov byte [rax + rbp], dl
add rax, 1
add r12, 1
cmp rax, 0x80
je 0x680f41fe
movzx edx, byte [r12]
movsxd r8, eax
test dl, 0xdf
jne 0x680f4160
mov byte [rsp + r8 + 0x140], 0
movzx eax, byte [r12]
test al, 0xdf
je 0x680f419f
cmp al, 9
jne 0x680f41cf
cmp r12, rcx
je 0x680f41cf
mov r9, rbp
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call fcn.682987c0
cmp byte [r12], 0
je 0x680f41cf
movzx edx, byte [r12 + 1]
lea rax, [r12 + 1]
test dl, dl
jne 0x680f40a8
add rsp, 0x1d0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov r12, rax
jmp 0x680f41bc
mov r8d, pe_nt_image_headers64
jmp 0x680f40f0
mov r8d, pe_nt_image_headers64
jmp 0x680f413e
mov r8d, pe_nt_image_headers64
jmp 0x680f4189
Function at 0x680f5540
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rbx, rcx
mov rsi, rdx
test rcx, rcx
je 0x680f56a0
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov r8d, 1
mov rcx, rsi
mov dword [rsp + 0x28], pe_nt_image_headers64
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r12, rax
mov eax, 1
cmp r12, 0xffffffffffffffff
je 0x680f5661
lea rdx, [rsp + 0x48]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x680f5670
mov rax, qword [rsp + 0x48]
cmp rax, 0x7fffffff
jg 0x680f5670
test rax, rax
je 0x680f5670
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
mov rcx, r12
mov qword [rsp + 0x28], 0
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov r13, rax
test rax, rax
je 0x680f5670
mov eax, dword [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, r13
mov dword [rbx + 0xc], 0
mov dword [rbx + 8], eax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r13
mov qword [rbx], rax
call rdi
cmp qword [rbx], 0
je 0x680f56b8
lea rax, [0x682950f0]
mov qword [rbx + 0x28], rax
mov rcx, r12
call rdi
mov rax, qword [rbx]
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x20], 0
mov qword [rbx + 0x10], rax
xor eax, eax
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rdi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call rdi
mov eax, 0x51
mov qword [rbx], 0
mov qword [rbx + 8], 0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov eax, 0x28
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rax, qword [rbx + 0x30]
movsxd r8, dword [rbx + 8]
xor edx, edx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x680f5677
mov r8d, dword [rbx + 8]
mov r13, qword [sym.imp.KERNEL32.dll_ReadFile]
xor ebp, ebp
lea r14, [rsp + 0x44]
jmp 0x680f5700
mov r8d, dword [rbx + 8]
add ebp, dword [rsp + 0x44]
cmp r8d, ebp
je 0x680f5738
mov rax, qword [rbx]
mov edx, ebp
sub r8d, ebp
mov r9, r14
mov rcx, r12
mov qword [rsp + 0x20], 0
add rdx, rax
call r13
test eax, eax
jne 0x680f56f0
mov rax, qword [rbx + 0x30]
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x680f5677
lea rax, [0x682950b0]
mov qword [rbx + 0x28], rax
jmp 0x680f5647

Function at 0x68109a70
Capabilities:
Query environment variable

Disassembly:
mov r9d, r8d
mov r8, rdx
mov rdx, rcx
lea rcx, [0x68322cbe]
jmp fcn.6810aa90

Function at 0x68109ab0
Capabilities:
Query environment variable

Disassembly:
lea r8, str.src_Window.cpp
mov r9d, edx
mov rdx, rcx
lea rcx, [0x6832281d]
jmp fcn.6810a840
Function at 0x6810a3a0
Capabilities:
Query environment variable

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov r12, rcx
lea rcx, [0x683214c0]
mov rbx, rdx
call sub.msvcrt.dll_getenv
test rax, rax
je 0x6810a3e1
lea rdx, [0x683214db]
mov rcx, r12
call sub.msvcrt.dll_fopen
test rax, rax
jne 0x6810a3e4
jmp 0x6810a3e1
mov rax, rbx
add rsp, 0x28
pop rbx
pop r12
ret

Function at 0x6810a3f0
Capabilities:
Query environment variable

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov r12, rcx
lea rcx, [0x683219fb]
mov rbx, rdx
call sub.msvcrt.dll_getenv
test rax, rax
je 0x6810a431
lea rdx, [0x68321a16]
mov rcx, r12
call sub.msvcrt.dll_fopen
test rax, rax
jne 0x6810a434
jmp 0x6810a431
mov rax, rbx
add rsp, 0x28
pop rbx
pop r12
ret

Function at 0x6810a440
Capabilities:
Query environment variable

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov r12, rcx
lea rcx, [0x683221d0]
mov rbx, rdx
call sub.msvcrt.dll_getenv
test rax, rax
je 0x6810a481
lea rdx, [0x683221eb]
mov rcx, r12
call sub.msvcrt.dll_fopen
test rax, rax
jne 0x6810a484
jmp 0x6810a481
mov rax, rbx
add rsp, 0x28
pop rbx
pop r12
ret

Function at 0x6810a490
Capabilities:
Query environment variable

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov r12, rcx
lea rcx, [0x683229f0]
mov rbx, rdx
call sub.msvcrt.dll_getenv
test rax, rax
je 0x6810a4d1
lea rdx, [0x68322a0b]
mov rcx, r12
call sub.msvcrt.dll_fopen
test rax, rax
jne 0x6810a4d4
jmp 0x6810a4d1
mov rax, rbx
add rsp, 0x28
pop rbx
pop r12
ret

Function at 0x6810a4e0
Capabilities:
Query environment variable

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x40
mov qword [rsp + 0x68], rdx
mov r12, rcx
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x78], r9
mov al, byte [0x683105a0]
test al, al
mov rsi, qword [fcn.680dde30]
jne 0x6810a574
lea rcx, [0x683105a0]
call fcn.681caa40
test eax, eax
je 0x6810a574
mov ecx, 2
call rsi
lea rcx, [0x6832048a]
mov rbx, rax
call sub.msvcrt.dll_getenv
test rax, rax
je 0x6810a550
lea rdx, [0x683204a5]
lea rcx, [0x683204a8]
call sub.msvcrt.dll_fopen
test rax, rax
cmovne rbx, rax
lea rcx, [0x683105a0]
mov qword [0x68313510], rbx
call fcn.681cab50
jmp 0x6810a574
lea rax, [rsp + 0x68]
mov ecx, 1
mov qword [rsp + 0x38], rax
call rsi
mov r8, qword [rsp + 0x38]
mov rcx, qword [0x68313510]
mov qword [rsp + 0x28], r8
cmp rcx, rax
jne 0x6810a5c4
lea rdx, [0x683204bd]
call fcn.681099c0
mov r8, qword [rsp + 0x28]
mov rcx, qword [0x68313510]
mov rdx, r12
call fcn.680cf150
lea rdx, [0x683204c9]
jmp 0x6810a5eb
lea rdx, [0x683204cf]
call fcn.681099c0
mov r8, qword [rsp + 0x28]
mov rcx, qword [0x68313510]
mov rdx, r12
call fcn.680cf150
lea rdx, [0x683204d6]
mov rcx, qword [0x68313510]
call fcn.681099c0
mov rcx, qword [0x68313510]
call sub.msvcrt.dll_fflush
jmp 0x6810a613
add rsp, 0x40
pop rbx
pop rsi
pop r12
ret
Function at 0x6810a840
Capabilities:
Query environment variable

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x40
mov qword [rsp + 0x68], rdx
mov r12, rcx
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x78], r9
mov al, byte [0x68310630]
test al, al
mov rsi, qword [fcn.680dde30]
jne 0x6810a8d4
lea rcx, [0x68310630]
call fcn.681caa40
test eax, eax
je 0x6810a8d4
mov ecx, 2
call rsi
lea rcx, [0x683227c0]
mov rbx, rax
call sub.msvcrt.dll_getenv
test rax, rax
je 0x6810a8b0
lea rdx, [0x683227db]
lea rcx, [0x683227de]
call sub.msvcrt.dll_fopen
test rax, rax
cmovne rbx, rax
lea rcx, [0x68310630]
mov qword [0x683135a0], rbx
call fcn.681cab50
jmp 0x6810a8d4
lea rax, [rsp + 0x68]
mov ecx, 1
mov qword [rsp + 0x38], rax
call rsi
mov r8, qword [rsp + 0x38]
mov rcx, qword [0x683135a0]
mov qword [rsp + 0x28], r8
cmp rcx, rax
jne 0x6810a924
lea rdx, [0x683227f3]
call fcn.681099c0
mov r8, qword [rsp + 0x28]
mov rcx, qword [0x683135a0]
mov rdx, r12
call fcn.680cf150
lea rdx, [0x683227ff]
jmp 0x6810a94b
lea rdx, [0x68322805]
call fcn.681099c0
mov r8, qword [rsp + 0x28]
mov rcx, qword [0x683135a0]
mov rdx, r12
call fcn.680cf150
lea rdx, [0x6832280c]
mov rcx, qword [0x683135a0]
call fcn.681099c0
mov rcx, qword [0x683135a0]
call sub.msvcrt.dll_fflush
jmp 0x6810a973
add rsp, 0x40
pop rbx
pop rsi
pop r12
ret

Function at 0x6810aa90
Capabilities:
Query environment variable

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x40
mov qword [rsp + 0x68], rdx
mov r12, rcx
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x78], r9
mov al, byte [0x68310650]
test al, al
mov rsi, qword [fcn.680dde30]
jne 0x6810ab24
lea rcx, [0x68310650]
call fcn.681caa40
test eax, eax
je 0x6810ab24
mov ecx, 2
call rsi
lea rcx, [0x68322c70]
mov rbx, rax
call sub.msvcrt.dll_getenv
test rax, rax
je 0x6810ab00
lea rdx, [0x68322c8b]
lea rcx, [0x68322c8e]
call sub.msvcrt.dll_fopen
test rax, rax
cmovne rbx, rax
lea rcx, [0x68310650]
mov qword [0x683135c0], rbx
call fcn.681cab50
jmp 0x6810ab24
lea rax, [rsp + 0x68]
mov ecx, 1
mov qword [rsp + 0x38], rax
call rsi
mov r8, qword [rsp + 0x38]
mov rcx, qword [0x683135c0]
mov qword [rsp + 0x28], r8
cmp rcx, rax
jne 0x6810ab74
lea rdx, [0x68322ca3]
call fcn.681099c0
mov r8, qword [rsp + 0x28]
mov rcx, qword [0x683135c0]
mov rdx, r12
call fcn.680cf150
lea rdx, [0x68322caf]
jmp 0x6810ab9b
lea rdx, [0x68322cb5]
call fcn.681099c0
mov r8, qword [rsp + 0x28]
mov rcx, qword [0x683135c0]
mov rdx, r12
call fcn.680cf150
lea rdx, [0x68322cbc]
mov rcx, qword [0x683135c0]
call fcn.681099c0
mov rcx, qword [0x683135c0]
call sub.msvcrt.dll_fflush
jmp 0x6810abc3
add rsp, 0x40
pop rbx
pop rsi
pop r12
ret
Function at 0x6810abd0
Capabilities:
Query environment variable

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x40
mov qword [rsp + 0x68], rdx
mov r12, rcx
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x78], r9
mov al, byte [0x68310660]
test al, al
mov rsi, qword [fcn.680dde30]
jne 0x6810ac64
lea rcx, [0x68310660]
call fcn.681caa40
test eax, eax
je 0x6810ac64
mov ecx, 2
call rsi
lea rcx, str.DPF_CAPTURE_CONSOLE_OUTPUT
mov rbx, rax
call sub.msvcrt.dll_getenv
test rax, rax
je 0x6810ac40
lea rdx, [0x68323198]
lea rcx, [0x6832319b]
call sub.msvcrt.dll_fopen
test rax, rax
cmovne rbx, rax
lea rcx, [0x68310660]
mov qword [0x683135d0], rbx
call fcn.681cab50
jmp 0x6810ac64
lea rax, [rsp + 0x68]
mov ecx, 1
mov qword [rsp + 0x38], rax
call rsi
mov r8, qword [rsp + 0x38]
mov rcx, qword [0x683135d0]
mov qword [rsp + 0x28], r8
cmp rcx, rax
jne 0x6810acb4
lea rdx, [0x683231b0]
call fcn.681099c0
mov r8, qword [rsp + 0x28]
mov rcx, qword [0x683135d0]
mov rdx, r12
call fcn.680cf150
lea rdx, [0x683231bc]
jmp 0x6810acdb
lea rdx, [0x683231c2]
call fcn.681099c0
mov r8, qword [rsp + 0x28]
mov rcx, qword [0x683135d0]
mov rdx, r12
call fcn.680cf150
lea rdx, [0x683231c9]
mov rcx, qword [0x683135d0]
call fcn.681099c0
mov rcx, qword [0x683135d0]
call sub.msvcrt.dll_fflush
jmp 0x6810ad03
add rsp, 0x40
pop rbx
pop rsi
pop r12
ret

Function at 0x6810ad10
Capabilities:
Query environment variable

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x40
mov qword [rsp + 0x68], rdx
mov r12, rcx
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x78], r9
mov al, byte [0x68310670]
test al, al
mov rsi, qword [fcn.680dde30]
jne 0x6810ada4
lea rcx, [0x68310670]
call fcn.681caa40
test eax, eax
je 0x6810ada4
mov ecx, 2
call rsi
lea rcx, [0x68323650]
mov rbx, rax
call sub.msvcrt.dll_getenv
test rax, rax
je 0x6810ad80
lea rdx, [0x6832366b]
lea rcx, str._tmp_dpf.stderr2.log
call sub.msvcrt.dll_fopen
test rax, rax
cmovne rbx, rax
lea rcx, [0x68310670]
mov qword [0x683135e0], rbx
call fcn.681cab50
jmp 0x6810ada4
lea rax, [rsp + 0x68]
mov ecx, 1
mov qword [rsp + 0x38], rax
call rsi
mov r8, qword [rsp + 0x38]
mov rcx, qword [0x683135e0]
mov qword [rsp + 0x28], r8
cmp rcx, rax
jne 0x6810adf4
lea rdx, str.e_31m_dpf_
call fcn.681099c0
mov r8, qword [rsp + 0x28]
mov rcx, qword [0x683135e0]
mov rdx, r12
call fcn.680cf150
lea rdx, str.e_0m_n
jmp 0x6810ae1b
lea rdx, str._dpf_
call fcn.681099c0
mov r8, qword [rsp + 0x28]
mov rcx, qword [0x683135e0]
mov rdx, r12
call fcn.680cf150
lea rdx, [0x6832369c]
mov rcx, qword [0x683135e0]
call fcn.681099c0
mov rcx, qword [0x683135e0]
call sub.msvcrt.dll_fflush
jmp 0x6810ae43
add rsp, 0x40
pop rbx
pop rsi
pop r12
ret
Function at 0x6810b0c0
Capabilities:
Query environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0x48
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x78], r9
mov al, byte [0x683105f0]
test al, al
mov rsi, qword [fcn.680dde30]
jne 0x6810b14f
lea rcx, [0x683105f0]
call fcn.681caa40
test eax, eax
je 0x6810b14f
mov ecx, 2
call rsi
lea rcx, [0x68322410]
mov rbx, rax
call sub.msvcrt.dll_getenv
test rax, rax
je 0x6810b12b
lea rdx, [0x6832242b]
lea rcx, [0x6832242e]
call sub.msvcrt.dll_fopen
test rax, rax
cmovne rbx, rax
lea rcx, [0x683105f0]
mov qword [0x68313560], rbx
call fcn.681cab50
jmp 0x6810b14f
lea rax, [rsp + 0x68]
mov ecx, 1
mov qword [rsp + 0x38], rax
call rsi
mov r8, qword [rsp + 0x38]
mov r9, qword [0x68313560]
mov rcx, rax
mov qword [rsp + 0x28], r8
cmp rax, r9
jne 0x6810b1a6
lea rdx, [0x68322443]
call fcn.681099c0
mov r8, qword [rsp + 0x28]
mov rcx, qword [0x68313560]
lea rdx, [0x6832244f]
call fcn.680cf150
lea rdx, [0x6832247b]
jmp 0x6810b1d4
mov rcx, r9
lea rdx, [0x68322481]
call fcn.681099c0
mov r8, qword [rsp + 0x28]
mov rcx, qword [0x68313560]
lea rdx, [0x6832244f]
call fcn.680cf150
lea rdx, [0x68322488]
mov rcx, qword [0x68313560]
call fcn.681099c0
mov rcx, qword [0x68313560]
call sub.msvcrt.dll_fflush
jmp 0x6810b1fc
add rsp, 0x48
pop rbx
pop rsi
ret

Function at 0x6810b210
Capabilities:
Query environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0x48
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x78], r9
mov al, byte [0x68310600]
test al, al
mov rsi, qword [fcn.680dde30]
jne 0x6810b29f
lea rcx, [0x68310600]
call fcn.681caa40
test eax, eax
je 0x6810b29f
mov ecx, 2
call rsi
lea rcx, [0x68322530]
mov rbx, rax
call sub.msvcrt.dll_getenv
test rax, rax
je 0x6810b27b
lea rdx, [0x6832254b]
lea rcx, [0x6832254e]
call sub.msvcrt.dll_fopen
test rax, rax
cmovne rbx, rax
lea rcx, [0x68310600]
mov qword [0x68313570], rbx
call fcn.681cab50
jmp 0x6810b29f
lea rax, [rsp + 0x68]
mov ecx, 1
mov qword [rsp + 0x38], rax
call rsi
mov r8, qword [rsp + 0x38]
mov r9, qword [0x68313570]
mov rcx, rax
mov qword [rsp + 0x28], r8
cmp rax, r9
jne 0x6810b2f6
lea rdx, [0x68322563]
call fcn.681099c0
mov r8, qword [rsp + 0x28]
mov rcx, qword [0x68313570]
lea rdx, [0x6832256f]
call fcn.680cf150
lea rdx, [0x6832259b]
jmp 0x6810b324
mov rcx, r9
lea rdx, [0x683225a1]
call fcn.681099c0
mov r8, qword [rsp + 0x28]
mov rcx, qword [0x68313570]
lea rdx, [0x6832256f]
call fcn.680cf150
lea rdx, [0x683225a8]
mov rcx, qword [0x68313570]
call fcn.681099c0
mov rcx, qword [0x68313570]
call sub.msvcrt.dll_fflush
jmp 0x6810b34c
add rsp, 0x48
pop rbx
pop rsi
ret
Function at 0x6810b4b0
Capabilities:
Query environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0x48
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x78], r9
mov al, byte [0x68310620]
test al, al
mov rsi, qword [fcn.680dde30]
jne 0x6810b53f
lea rcx, [0x68310620]
call fcn.681caa40
test eax, eax
je 0x6810b53f
mov ecx, 2
call rsi
lea rcx, [0x68322710]
mov rbx, rax
call sub.msvcrt.dll_getenv
test rax, rax
je 0x6810b51b
lea rdx, [0x6832272b]
lea rcx, [0x6832272e]
call sub.msvcrt.dll_fopen
test rax, rax
cmovne rbx, rax
lea rcx, [0x68310620]
mov qword [0x68313590], rbx
call fcn.681cab50
jmp 0x6810b53f
lea rax, [rsp + 0x68]
mov ecx, 1
mov qword [rsp + 0x38], rax
call rsi
mov r8, qword [rsp + 0x38]
mov r9, qword [0x68313590]
mov rcx, rax
mov qword [rsp + 0x28], r8
cmp rax, r9
jne 0x6810b596
lea rdx, [0x68322743]
call fcn.681099c0
mov r8, qword [rsp + 0x28]
mov rcx, qword [0x68313590]
lea rdx, [0x6832274f]
call fcn.680cf150
lea rdx, [0x6832277b]
jmp 0x6810b5c4
mov rcx, r9
lea rdx, [0x68322781]
call fcn.681099c0
mov r8, qword [rsp + 0x28]
mov rcx, qword [0x68313590]
lea rdx, [0x6832274f]
call fcn.680cf150
lea rdx, [0x68322788]
mov rcx, qword [0x68313590]
call fcn.681099c0
mov rcx, qword [0x68313590]
call sub.msvcrt.dll_fflush
jmp 0x6810b5ec
add rsp, 0x48
pop rbx
pop rsi
ret