joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400df9ac
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14017cf10]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x1400dfa0a
cmp word [rdx], r12w
jne 0x1400dfa0a
or byte [rax + r8*8 + 0x38], cl
jmp 0x1400dfa10
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1400dfb6b
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1400dfb46
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1400dfa49
mov rcx, r9
jmp 0x1400dfa6c
cmp r9, rdx
jae 0x1400dfa83
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x1400dfa2d
jmp 0x1400dfb6b
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400dfb40
cmp dword [rsp + 0x80], edi
je 0x1400dfb40
mov rdx, r14
lea r11, [0x14017cf10]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x1400dfb19
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1400dfaec
mov word [rbx], r12w
jmp 0x1400dfb67
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1400dfaf5
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1400dfb67
cmp word [rsp + 0x70], r12w
jne 0x1400dfb26
cmp rbx, rsi
je 0x1400dfae6
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1400df908
cmp word [rsp + 0x70], r12w
je 0x1400dfb6b
mov word [rbx], r13w
jmp 0x1400dfb67
lea r11, [0x14017cf10]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1400dfb63
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400dfb6b
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400e7c24
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1400e7c56
call fcn.1400ca5dc
mov dword [rax], 0x16
call fcn.1400c8930
jmp 0x1400e7d75
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400e7d75
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400e7d75
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400e7c85
lock or dword [rcx + 0x14], 0x10
jmp 0x1400e7d75
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400e7c99
call fcn.1400e7d90
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1400e40c0
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1400dfe58
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400e7d63
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1400e7d2e
mov rcx, rsi
call fcn.1400e40c0
cmp eax, edi
je 0x1400e7d19
mov rcx, rsi
call fcn.1400e40c0
cmp eax, 0xfffffffe
je 0x1400e7d19
mov rcx, rsi
call fcn.1400e40c0
movsxd rbx, eax
lea r14, [0x14017cf10]
mov rcx, rsi
sar rbx, 6
call fcn.1400e40c0
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1400e7d20
lea rdx, [0x1401766b0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400e7d2e
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1400e7d52
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1400e7d52
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1400e7d52
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1400e7d78
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x1400ee3b8
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 0x1400ee43f
mov rsi, rbx
cmp word [rax], bp
je 0x1400ee3fe
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400ee3e8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400ee3e4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400e2ca4
mov rdi, rax
test rax, rax
je 0x1400ee42c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400fe670
mov rbp, rdi
xor ecx, ecx
call fcn.1400e2d04
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 0x1400ee964
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.1400df908
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400df908
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400eeab4
cmp rax, 0xffffffffffffffff
je 0x1400eeab4
xor edi, edi
test rbp, rbp
jle 0x1400eea5f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400e2ed0
mov rbx, rax
test rax, rax
jne 0x1400ee9ec
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400eea55
mov edx, 0x8000
mov ecx, r14d
call fcn.1400de538
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.1400e0d9c
cmp eax, 0xffffffff
je 0x1400eea35
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400ee9fc
mov edx, r15d
mov ecx, r14d
call fcn.1400de538
jmp 0x1400eea55
cmp byte [rsi + 0x38], dil
je 0x1400eea4c
cmp dword [rsi + 0x34], 5
jne 0x1400eea4c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400eea55
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400e2d04
jmp 0x1400eeac8
jns 0x1400eeac8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400df908
cmp rax, 0xffffffffffffffff
jne 0x1400eea80
cmp byte [rsi + 0x30], dil
je 0x1400eeac8
mov edi, dword [rsi + 0x2c]
jmp 0x1400eeac8
mov ecx, r14d
call fcn.1400e482c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400eeac8
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 0x1400eeac8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400eeac1
mov eax, dword [rsi + 0x2c]
jmp 0x1400eeac6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400df908
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 0x1400f40f0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
mov qword [rax + 0x18], r8
xor r10d, r10d
mov r9d, edx
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
bts r9d, 8
mov r11, r8
mov rbx, rcx
nop dword [rax]
nop word [rax + rax]
mov edx, r9d
shr r9d, 1
and edx, 1
neg edx
shr rdx, 4
movzx r8d, word [rbx + r9*2]
and edx, 0x7f
shr r8, 4
xor r8, rdx
add r10d, dword [r11 + r8*4]
cmp r9d, 2
jae 0x1400f4120
mov rbx, qword [rsp + 0x20]
mov eax, r10d
ret

Function at 0x1400f4160
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov dword [rax + 0x18], r8d
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push rbx
push rdi
mov rbx, qword [rax + 0x20]
xor r11d, r11d
mov r10d, dword [rax + 0x18]
mov r9d, 0x100
mov r8d, edx
mov rdi, rcx
or r8d, r9d
nop
mov ecx, r8d
add r10d, r10d
shr ecx, 8
mov eax, r9d
and eax, r10d
add eax, r9d
add ecx, eax
movzx edx, word [rdi + rcx*2]
mov ecx, r8d
shr ecx, 7
add r8d, r8d
and ecx, 1
shr rdx, 4
neg ecx
shr rcx, 4
and ecx, 0x7f
xor rdx, rcx
mov ecx, r8d
xor ecx, r10d
not ecx
and r9d, ecx
add r11d, dword [rbx + rdx*4]
cmp r8d, 0x10000
jb 0x1400f4190
mov eax, r11d
pop rdi
pop rbx
ret

Function at 0x1400f5820
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rbp, qword [rsp + 0x30]
cmp dword [rbp + 0xcc], 0
jne 0x1400f5857
mov rcx, rbp
call fcn.1400f1e10
mov rcx, rbp
call fcn.1400f1b20
mov ecx, dword [rbp + 0xc4]
lea r8, [rbp + 0x2564]
mov eax, dword [rbp + 0x48]
lea r9, [rbp + 0x810]
dec eax
mov dword [rbp + 0xec], 0x40
mov ebx, 1
mov dword [rbp + 0x9168], eax
mov edx, ebx
mov dword [rbp + 0x4d64], eax
shl edx, cl
lea rcx, [rbp + 0x4d64]
call fcn.1400f3e80
mov ecx, dword [rbp + 0xc4]
lea r8, [rbp + 0x2964]
shl ebx, cl
lea r9, [rbp + 0x810]
mov edx, ebx
lea rcx, [rbp + 0x9168]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
jmp fcn.1400f3e80

Function at 0x1400f6050
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push rbx
push rsi
push rdi
xor r10d, r10d
mov rdi, rcx
mov r11, r8
mov rbx, r9
mov esi, edx
nop dword [rax]
nop word [rax + rax]
mov edx, r10d
lea r11, [r11 + 8]
shr edx, 2
mov r9d, r10d
shr r9d, 1
add r10d, 2
mov ecx, r9d
and ecx, 1
neg ecx
lea eax, [rdx + 2]
movzx r8d, word [rdi + rax*2]
movzx eax, word [rdi + 2]
shr rcx, 4
and ecx, 0x7f
shr rax, 4
shr r8, 4
xor r8, rcx
mov ecx, edx
neg ecx
shr rcx, 4
and ecx, 0x7f
mov r8d, dword [rbx + r8*4]
xor rcx, rax
lea eax, [r9 + 4]
movzx edx, word [rdi + rax*2]
mov eax, edx
xor rdx, 0x7f0
add r8d, dword [rbx + rcx*4]
add r8d, esi
shr rax, 4
shr rdx, 4
mov ecx, dword [rbx + rax*4]
add ecx, r8d
mov dword [r11 - 8], ecx
mov ecx, dword [rbx + rdx*4]
add ecx, r8d
mov dword [r11 - 4], ecx
cmp r10d, 8
jb 0x1400f6080
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400f7340
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rcx
xor edx, edx
mov rax, qword [rsp + 8]
mov qword [rax + 0x40], rdx
lea r8, [rax + 0x78]
mov word [rax + 0x22], dx
mov qword [rax + 0x28], rdx
mov qword [rax + 0x480], 0xffffffffffffffff
mov dword [rax + 0x3c], 0x20
mov byte [rax + 0x21], 1
mov dword [rax + 0x5c], 4
nop dword [rax]
mov ecx, edx
lea r8, [r8 + 4]
and ecx, 1
mov eax, edx
shr eax, 1
neg ecx
and ecx, 0xedb88320
inc edx
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [r8 - 4], eax
cmp edx, 0x100
jb 0x1400f7380
ret

Function at 0x1400f9750
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
sub rsp, 0x48
lea rax, [r11 - 0x18]
mov r9, r8
mov r8, rdx
mov qword [r11 - 0x20], rax
xor edx, edx
mov dword [rsp + 0x20], 0
xor ecx, ecx
call fcn.1400ca7a8
mov rcx, qword [rsp + 0x50]
mov qword [rcx], rax
test rax, rax
je 0x1400f9796
xor eax, eax
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
mov eax, ecx
add rsp, 0x48
ret
Function at 0x1400fe2f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400fe318
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400fe318
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x2fc4d1cb0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d2d90
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d26b2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f5108]
test eax, eax
je 0x2fc4d274a
lea rax, [0x2fc4f50e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f5110]
mov qword [rbp - 8], rax
jmp 0x2fc4d272e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d2722
cmp qword [rbp - 0x10], 0
je 0x2fc4d2722
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d26e8
lea rax, [0x2fc4f50e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d274b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d2850
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d2878
mov eax, 0
jmp 0x2fc4d28c6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d28a1
mov eax, 0
jmp 0x2fc4d28c6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d28c1
mov eax, 0
jmp 0x2fc4d28c6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d28cc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d294a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d2941
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d2941
mov rax, qword [rbp - 8]
jmp 0x2fc4d295f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d2914
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140003328
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xa0], rax
lea rdx, [rsp + 0x20]
lea rcx, [0x140001100]
mov r8d, 0x40
mov byte [0x14000cf4e], 1
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14000339b
movzx ecx, word [rsp + 0x20]
lea r8, [rsp + 0x20]
test ecx, ecx
je 0x140003399
mov r9d, dword [0x14000d160]
and ecx, 0x1f
lea r8, [r8 + 2]
mov edx, 1
shl edx, cl
movzx ecx, word [r8]
or r9d, edx
test ecx, ecx
jne 0x140003379
mov dword [0x14000d160], r9d
mov al, 1
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140009b80
add rsp, 0xb8
ret

Function at 0x140005944
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x7c0]
sub rsp, 0x8c0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x7b0], rax
mov edi, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r14d, r14d
cmp dword [0x14000b024], 0xffffffff
mov ebx, eax
jne 0x140005a3d
lea rax, [rsp + 0x30]
lea rdx, [0x140001330]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [0x14000b024], r14d
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140005a3d
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x50]
lea rdx, [0x140001390]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov dword [rsp + 0x48], 0x28
mov dword [rsp + 0x38], 0x50
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140005a20
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax]
and ecx, 3
mov dword [0x14000b024], ecx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x48], 0x28
jle 0x140005a3d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [0x14000b024]
and eax, 3
test al, al
je 0x140005aa0
lea rcx, [rbp - 0x5e]
xor edx, edx
mov r8d, 0x800
mov word [rbp - 0x60], r14w
call sub.msvcrt.dll_memset
mov edx, 0x401
lea rcx, [rbp - 0x60]
test edi, edi
je 0x140005a83
lea r8, [0x1400013a0]
mov r9d, edi
mov qword [rsp + 0x20], rsi
call fcn.1400025e0
jmp 0x140005a92
lea r8, [0x1400013c8]
mov r9, rsi
call fcn.1400025e0
test eax, eax
js 0x140005aa0
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x7b0]
xor rcx, rsp
call fcn.140009b80
lea r11, [rsp + 0x8c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140006370
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0x1400063b7
cmp al, 6
jb 0x1400063b7
lea rcx, [0x1400014e8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400063b7
lea rdx, [0x140001508]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400063b7
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call rax
add rsp, 0x28
ret
Function at 0x1400095a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x240
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
lea rcx, [rsp + 0x22]
xor edi, edi
xor edx, edx
mov r8d, 0x208
mov word [rsp + 0x20], di
call sub.msvcrt.dll_memset
lea ebp, [rdi + 0x5c]
test rbx, rbx
je 0x140009618
cmp word [rbx], di
je 0x140009618
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jl 0x140009618
cmp word [rbx], 0x7f
jae 0x14000960d
cmp word [rbx + 2], 0x3a
je 0x14000967a
cmp word [rbx], bp
jne 0x140009618
cmp word [rbx + 2], bp
je 0x14000967a
mov esi, 0x105
lea rcx, [rsp + 0x20]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14000967a
lea ecx, [rax + 2]
cmp ecx, esi
ja 0x14000967a
mov ecx, eax
inc eax
mov r8, rbx
mov word [rsp + rcx*2 + 0x20], bp
lea rcx, [rsp + 0x20]
mov edx, esi
mov word [rsp + rax*2 + 0x20], di
call fcn.14000249c
test eax, eax
js 0x14000967a
lea r8, [0x140002218]
lea rcx, [rsp + 0x20]
mov edx, esi
call fcn.14000249c
test eax, eax
js 0x14000967a
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x14000967c
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140009b80
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140009c50
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x14000a000
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000a04c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000a044
cmp dword [rcx + 0x3c], edx
jl 0x14000a044
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14000a044
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000a04c
mov rax, rdx
add rsp, 0x18
ret