joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001b9c0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp byte [0x1402a56db], 1
jne 0x14001b9dc
cmp byte [0x1402a56da], 0
setne al
add rsp, 0x28
ret
lea rcx, str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
test rax, rax
setne al
setne byte [0x1402a56da]
mov byte [0x1402a56db], 1
add rsp, 0x28
ret

Function at 0x14001ba10
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r8
mov edi, edx
mov rbx, rcx
cmp byte [0x1402a56db], 1
jne 0x14001ba35
cmp byte [0x1402a56da], 0
jne 0x14001ba54
jmp 0x14001ba8d
lea rcx, str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
mov byte [0x1402a56db], 1
test rax, rax
setne byte [0x1402a56da]
je 0x14001ba8d
mov r14, qword [fcn.140003920]
mov ecx, 2
call r14
mov qword [rsp + 0x20], rsi
lea rdx, str.libunwind:___unw_get_reg_cursor_p__regNum_d__value_p__n
mov rcx, rax
mov r8, rbx
mov r9d, edi
call fcn.140003ed0
mov ecx, 2
call r14
mov rcx, rax
call sub.msvcrt.dll_fflush
mov rax, qword [rbx]
mov rax, qword [rax + 0x10]
mov rcx, rbx
mov edx, edi
call qword [0x1402a9008]
mov ecx, eax
mov eax, 0xffffe672
test cl, cl
je 0x14001bac1
mov rax, qword [rbx]
mov rax, qword [rax + 0x18]
mov rcx, rbx
mov edx, edi
call qword [0x1402a9008]
mov qword [rsi], rax
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14001bad0
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov rbx, r8
mov edi, edx
mov rsi, rcx
cmp byte [0x1402a56db], 1
jne 0x14001baf6
cmp byte [0x1402a56da], 0
jne 0x14001bb15
jmp 0x14001bb4e
lea rcx, str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
mov byte [0x1402a56db], 1
test rax, rax
setne byte [0x1402a56da]
je 0x14001bb4e
mov r14, qword [fcn.140003920]
mov ecx, 2
call r14
mov qword [rsp + 0x20], rbx
lea rdx, str.libunwind:___unw_set_reg_cursor_p__regNum_d__value0x_llx__n
mov rcx, rax
mov r8, rsi
mov r9d, edi
call fcn.140003ed0
mov ecx, 2
call r14
mov rcx, rax
call sub.msvcrt.dll_fflush
mov rax, qword [rsi]
mov rax, qword [rax + 0x10]
mov rcx, rsi
mov edx, edi
call qword [0x1402a9008]
mov ebp, 0xffffe672
test al, al
je 0x14001bbef
mov rax, qword [rsi]
mov rax, qword [rax + 0x20]
mov rcx, rsi
mov edx, edi
mov r8, rbx
call qword [0x1402a9008]
xor ebp, ebp
cmp edi, 0xffffffff
jne 0x14001bbef
mov rax, qword [rsi]
mov rax, qword [rax + 0x48]
lea rdx, [rsp + 0x28]
mov rcx, rsi
call qword [0x1402a9008]
mov rax, qword [rsi]
mov rax, qword [rax + 0x68]
xor ebp, ebp
mov rcx, rsi
xor edx, edx
call qword [0x1402a9008]
cmp qword [rsp + 0x48], 0
je 0x14001bbef
mov rax, qword [rsi]
mov rax, qword [rax + 0x18]
mov rcx, rsi
mov edx, 0xfffffffe
call qword [0x1402a9008]
add rax, qword [rsp + 0x48]
mov rcx, qword [rsi]
mov r9, qword [rcx + 0x20]
mov rcx, rsi
mov edx, 0xfffffffe
mov r8, rax
mov rax, r9
call qword [0x1402a9008]
mov eax, ebp
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x14001bc00
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
cmp byte [0x1402a56db], 1
jne 0x14001bc1d
cmp byte [0x1402a56da], 0
jne 0x14001bc3c
jmp 0x14001bc6b
lea rcx, str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
mov byte [0x1402a56db], 1
test rax, rax
setne byte [0x1402a56da]
je 0x14001bc6b
mov rdi, qword [fcn.140003920]
mov ecx, 2
call rdi
lea rdx, str.libunwind:___unw_step_cursor_p__n
mov rcx, rax
mov r8, rsi
call fcn.140003ed0
mov ecx, 2
call rdi
mov rcx, rax
call sub.msvcrt.dll_fflush
mov rax, qword [rsi]
mov rax, qword [rax + 0x40]
mov r8, qword [0x1402a9008]
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp r8

Function at 0x14001bc90
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
cmp byte [0x1402a56db], 1
jne 0x14001bcb1
cmp byte [0x1402a56da], 0
jne 0x14001bcd0
jmp 0x14001bd02
lea rcx, str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
mov byte [0x1402a56db], 1
test rax, rax
setne byte [0x1402a56da]
je 0x14001bd02
mov rbx, qword [fcn.140003920]
mov ecx, 2
call rbx
lea rdx, str.libunwind:___unw_get_proc_info_cursor_p__info_p__n
mov rcx, rax
mov r8, rdi
mov r9, rsi
call fcn.140003ed0
mov ecx, 2
call rbx
mov rcx, rax
call sub.msvcrt.dll_fflush
mov rax, qword [rdi]
mov rax, qword [rax + 0x48]
mov rcx, rdi
mov rdx, rsi
call qword [0x1402a9008]
xor ecx, ecx
cmp qword [rsi + 8], 0
mov eax, 0xffffe66b
cmovne eax, ecx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x14001bd30
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
cmp byte [0x1402a56db], 1
jne 0x14001bd4d
cmp byte [0x1402a56da], 0
jne 0x14001bd6c
jmp 0x14001bd9b
lea rcx, str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
mov byte [0x1402a56db], 1
test rax, rax
setne byte [0x1402a56da]
je 0x14001bd9b
mov rdi, qword [fcn.140003920]
mov ecx, 2
call rdi
lea rdx, str.libunwind:___unw_resume_cursor_p__n
mov rcx, rax
mov r8, rsi
call fcn.140003ed0
mov ecx, 2
call rdi
mov rcx, rax
call sub.msvcrt.dll_fflush
mov rax, qword [rsi]
mov rax, qword [rax + 0x50]
mov rcx, rsi
call qword [0x1402a9008]
mov eax, 0xffffe674
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x14001bdc0
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r9
mov rdi, r8
mov rbx, rdx
mov r14, rcx
cmp byte [0x1402a56db], 1
jne 0x14001bdeb
cmp byte [0x1402a56da], 0
jne 0x14001be0a
jmp 0x14001be42
lea rcx, str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
mov byte [0x1402a56db], 1
test rax, rax
setne byte [0x1402a56da]
je 0x14001be42
mov r15, qword [fcn.140003920]
mov ecx, 2
call r15
mov dword [rsp + 0x20], edi
lea rdx, str.libunwind:___unw_get_proc_name_cursor_p__buf_p__bufLen_lu__n
mov rcx, rax
mov r8, r14
mov r9, rbx
call fcn.140003ed0
mov ecx, 2
call r15
mov rcx, rax
call sub.msvcrt.dll_fflush
mov rax, qword [r14]
mov rax, qword [rax + 0x60]
mov rcx, r14
mov rdx, rbx
mov r8, rdi
mov r9, rsi
call qword [0x1402a9008]
xor ecx, ecx
test al, al
mov eax, 0xffffe674
cmovne eax, ecx
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14001be80
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp byte [0x1402a56d9], 1
jne 0x14001be9c
cmp byte [0x1402a56d8], 0
setne al
add rsp, 0x28
ret
lea rcx, str.LIBUNWIND_PRINT_UNWINDING
call sub.msvcrt.dll_getenv
test rax, rax
setne al
setne byte [0x1402a56d8]
mov byte [0x1402a56d9], 1
add rsp, 0x28
ret
Function at 0x14000f170
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140591254]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x14000f300
mov rax, qword [0x140591258]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x14000f1bc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x14000f245
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x14000f1a0
mov rcx, rdi
call fcn.14000fcd0
test rax, rax
mov r12, rax
je 0x14000f352
mov rax, qword [0x140591258]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.14000fe10
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x140591258]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000f335
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000f23e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000f2b0
add dword [0x140591254], 1
cmp ebx, 8
jae 0x14000f271
test bl, 4
jne 0x14000f310
test ebx, ebx
je 0x14000f266
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x14000f324
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x14000f266
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x14000f28a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x140591258]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000f23e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000f100
xor esi, esi
jmp 0x14000f1c7
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x14000f266
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x14000f266
mov rax, qword [0x140591258]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.14000f100
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.14000f100
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x14000f920
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1405912c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1405912a0]
test rbx, rbx
je 0x14000f974
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14000f96b
test rsi, rsi
je 0x14000f96b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000f950
lea rcx, [0x1405912c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14000fcd0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14058c250]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14000fd3f
mov rcx, r9
call fcn.14000fba0
test eax, eax
je 0x14000fd3f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x14000fd3d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x14000fd34
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14000fd3f
add rdx, 0x28
cmp rdx, r9
jne 0x14000fd20
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x14001a000
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x140588ea0]
jmp 0x140010b00

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

Disassembly:
lea rcx, [0x140588ea0]
jmp 0x140010b00
Function at 0x1400019e4
Capabilities:
Write file on windows

Disassembly:
test rcx, rcx
je 0x140001a50
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, 0xfffffff5
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
and dword [rsp + 0x40], 0
mov rsi, rax
call fcn.140001930
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, edi
mov rdx, rbx
mov rcx, rsi
test al, al
jne 0x140001a3b
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
jmp 0x140001a41
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140001a54
Capabilities:
Write file on windows

Disassembly:
test rcx, rcx
je 0x140001b5f
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 0xfffffff5
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
and dword [rsp + 0x60], 0
mov rbp, rax
call fcn.140001930
test al, al
jne 0x140001ab5
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
mov r8d, edi
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x140001b4d
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
and qword [rsp + 0x38], 0
or r9d, 0xffffffff
and qword [rsp + 0x30], 0
mov ecx, eax
and dword [rsp + 0x28], 0
mov r8, rbx
and qword [rsp + 0x20], 0
xor edx, edx
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea esi, [rax + 1]
cmp esi, 1
jle 0x140001b4d
movsxd rcx, esi
call fcn.140005f30
mov rdi, rax
test rax, rax
je 0x140001b4d
and qword [rsp + 0x38], 0
or r9d, 0xffffffff
and qword [rsp + 0x30], 0
mov r8, rbx
mov dword [rsp + 0x28], esi
xor edx, edx
mov ecx, r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, 1
jle 0x140001b45
and qword [rsp + 0x20], 0
lea r8d, [rax - 1]
lea r9, [rsp + 0x60]
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call fcn.140005eb8
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140005324
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
and dword [rax + 0x18], 0
mov rsi, r9
xor r9d, r9d
mov rbp, rdx
mov rbx, rcx
lea edi, [r9 + 2]
mov edx, edi
test r8d, r8d
je 0x140005463
lea r8, str.Reading_source
call fcn.14000550c
mov r14, qword [rsp + 0xa0]
lea rcx, [rsp + 0x40]
and dword [r14], 0
call fcn.1400078a0
lea rdx, [rbx + 0x30]
or r8d, 0xffffffff
lea rcx, [rsp + 0x40]
call fcn.140007938
mov rax, qword [rbx]
mov r9, r14
mov r8d, dword [rsp + 0x98]
mov rcx, rsi
mov rdx, qword [rsp + 0x90]
call qword [rax + 0x30]
lea r9, [rsp + 0x40]
mov rcx, rbx
mov edx, eax
lea r8, [rsp + 0x80]
call fcn.140004180
cmp byte [rbx + 9], 0
movzx esi, al
mov eax, dword [rsp + 0x80]
je 0x140005409
test esi, esi
je 0x14000540d
cmp dword [r14], 0
jne 0x1400053e7
test eax, eax
je 0x1400053e7
cmp eax, dword [rsp + 0x98]
ja 0x1400053e7
mov dword [r14], eax
and qword [rsp + 0x28], 0
mov r9d, 1
mov ecx, dword [r14]
mov edx, edi
test ecx, ecx
je 0x140005441
mov dword [rsp + 0x20], ecx
lea r8, str.Retrieved__u_bytes_in_block
jmp 0x14000544c
test esi, esi
jne 0x1400053e7
and qword [rsp + 0x38], 0
lea r8, str.DownloadFile__s__failed__code_u
mov eax, dword [rsp + 0x80]
mov r9d, edi
mov dword [rsp + 0x30], eax
xor edx, edx
mov dword [rsp + 0x28], 1
mov rcx, rbx
mov qword [rsp + 0x20], rbp
call fcn.14000550c
jmp 0x140005454
mov dword [rsp + 0x20], eax
lea r8, str.No_more_data__code_u
mov rcx, rbx
call fcn.14000550c
lea rcx, [rsp + 0x40]
call fcn.1400078e4
jmp 0x1400054f6
lea r8, str.Reading_file
call fcn.14000550c
mov r14, qword [rsp + 0xa0]
mov rcx, rsi
mov r8d, dword [rsp + 0x98]
mov r9, r14
mov rdx, qword [rsp + 0x90]
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test eax, eax
jne 0x1400054d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
and qword [rsp + 0x38], 0
lea r8, str.ReadFile__s__failed__code_u
mov dword [rsp + 0x30], eax
mov r9d, edi
mov dword [rsp + 0x28], 1
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], rbp
call fcn.14000550c
jmp 0x1400054f6
and qword [rsp + 0x28], 0
lea r8, str.Read__u_bytes
mov eax, dword [r14]
mov r9d, 1
mov edx, edi
mov dword [rsp + 0x20], eax
mov rcx, rbx
call fcn.14000550c
mov rbx, qword [rsp + 0x70]
mov eax, esi
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x140005d0c
Capabilities:
Write file on windows

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, 0x50
and qword [rax - 0x30], 0
mov rbx, r9
mov r14d, dword [rsp + 0x80]
mov r9d, 1
mov rdi, r8
mov dword [rax - 0x38], r14d
mov rbp, rdx
lea r8, str.Writing_target_file__u_bytes
mov rsi, rcx
lea edx, [r9 + 1]
call fcn.14000550c
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, r14d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
test eax, eax
je 0x140005d95
cmp dword [rsp + 0x40], r14d
je 0x140005dc9
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetLastError]
and qword [rsp + 0x38], rbx
lea r8, str.WriteFile__s__failed__no_data__code_u
jmp 0x140005da8
call qword [sym.imp.KERNEL32.dll_GetLastError]
and qword [rsp + 0x38], 0
lea r8, str.WriteFile__s__failed__code_u
mov dword [rsp + 0x30], eax
mov r9d, 2
mov dword [rsp + 0x28], 1
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], rbp
call fcn.14000550c
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x1400076e8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
xor r12d, r12d
mov rsi, rdx
mov rdi, rcx
test rdx, rdx
je 0x140007877
cmp word [rdx], r12w
je 0x140007877
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r14d, eax
lea ecx, [r14 - 1]
cmp ecx, 0x7ffffffa
ja 0x1400077e8
lea rcx, [rbp - 0x20]
call fcn.14000611c
lea r13d, [r14 + 2]
mov edx, r13d
lea rcx, [rbp - 0x20]
call fcn.140006258
mov r15, rax
test rax, rax
je 0x1400077df
xor r8d, r8d
lea rcx, [rbp - 0x20]
xor edx, edx
call fcn.14000648c
xor r8d, r8d
lea rcx, [rbp - 0x20]
mov edx, r14d
call fcn.14000648c
mov r8d, 0xffff
lea rcx, [rbp - 0x20]
mov edx, r14d
call fcn.14000648c
mov r8d, 0xffff
lea edx, [r13 - 1]
lea rcx, [rbp - 0x20]
call fcn.14000648c
mov r8d, r14d
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1400077df
cmp eax, r14d
ja 0x1400077df
cmp word [r15], r12w
je 0x1400077df
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.140005f80
lea rcx, [rbp - 0x20]
call fcn.14000612c
jmp 0x14000787f
lea rcx, [rbp - 0x20]
call fcn.14000612c
or r15, 0xffffffffffffffff
mov rbx, r15
inc rbx
cmp word [rsi + rbx*2], r12w
jne 0x1400077ef
lea rax, [rbx - 1]
movabs rcx, 0x7ffffffffffffffa
cmp rax, rcx
ja 0x140007877
lea rcx, [rbp - 0x10]
call fcn.14000611c
lea rdx, [rbx + 2]
lea rcx, [rbp - 0x10]
call fcn.140006258
test rax, rax
jne 0x140007835
mov rcx, rdi
call fcn.14000611c
lea rcx, [rbp - 0x10]
jmp 0x1400077d5
mov r8, r15
lea rcx, [rbp - 0x10]
mov rdx, rsi
call fcn.1400063b0
mov r8d, 0xffff
lea rdx, [rbx + 1]
lea rcx, [rbp - 0x10]
call fcn.14000648c
mov r8d, 0xffff
lea rcx, [rbp - 0x10]
mov rdx, rbx
call fcn.14000648c
lea rdx, [rbp - 0x10]
mov rcx, rdi
call fcn.140005f80
jmp 0x14000782f
mov rcx, rdi
call fcn.14000611c
lea r11, [rsp + 0x40]
mov rax, rdi
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret

Function at 0x140007938
Capabilities:
Check for time delay via gettickcount

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, 0x20
xor ebx, ebx
mov ebp, r8d
mov rsi, rdx
mov rdi, rcx
cmp byte [rcx + 8], bl
je 0x14000796b
cmp qword [rcx], rdx
je 0x14000796b
call fcn.1400079fc
mov qword [rdi], rsi
test rsi, rsi
jne 0x140007977
xor eax, eax
jmp 0x1400079b6
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r14d, eax
jmp 0x14000799f
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r14d
cmp ebp, 0xffffffff
je 0x140007994
cmp eax, ebp
jae 0x1400079b4
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rsi
call fcn.1400079d4
test al, al
je 0x140007982
mov byte [rdi + 8], 1
mov ebx, 1
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x415620
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4157ab
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x00604f50]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x415685
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x415694
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x4156b3
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x4156c3
cmp rbx, 0x1000
jae 0x41568b
jmp 0x41572d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x4156d5
xor edx, edx
jmp 0x415724
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x00604f50]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x4156b9
jmp 0x4156a8
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x00604f50]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call sym.runtime.printlock
lea rax, [0x004eb58e]
mov ebx, 0x18
nop dword [rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x004ebb64]
mov ebx, 0x19
nop dword [rax + rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x30]
call sym.runtime.printuint
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x004ee636]
mov ebx, 0x21
call sym.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.runtime.sysUnusedOS