joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140027a30
Capabilities:
Read 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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x140027a5e
xor eax, eax
jmp 0x140027b44
cmp qword [rcx + 0x68], 0
je 0x140027a6f
call fcn.140027b60
jmp 0x140027b44
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140027a86
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140027a88
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140027aba
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140079cc0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140027b3e
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140027af1
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140027b1a
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14005cd6c
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140027b3e
cmp rsi, rbx
ja 0x140027af8
test rsi, rsi
je 0x140027b3e
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14005cd6c
sub rsi, rax
sub rbp, rsi
mov rax, rbp
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 0x1400439e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x14003067a
movzx eax, byte [rcx + rdx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x14003065d
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x140030648

Function at 0x14004ed5c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004eda6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004eda6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004eda6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004eda6
cmp dword [rcx + 0x84], 0xe
jbe 0x14004eda6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14004eda8
xor al, al
add rsp, 0x28
ret
Function at 0x140055230
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140055267
call fcn.14005bbf0
mov dword [rax], 0x16
call fcn.140054df4
xor eax, eax
jmp 0x1400552f5
mov rdx, r9
mov rcx, r8
call fcn.1400551cc
mov rbx, rax
test rax, rax
je 0x1400552f2
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400550f8]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400552df
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14005bb64
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400552c6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400552d5
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140067b94
jmp 0x1400552f2
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400552ef
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14006486c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140064668
Function at 0x14006baf0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14006bb06
mov al, 1
jmp 0x14006bb66
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14006bb17
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14006bb64
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400720e8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14006bb64
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14006bb64
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14006bb64
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14006bb66
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14006c450
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14004e9c0
sub rsp, rax
mov rax, qword [0x1400a3080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14006a150
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14006c49f
mov rax, rbp
jmp 0x14006c5a7
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xa6af0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14006c938
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xa6af0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14006c5a3
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14006c5a3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14006c938
test rax, rax
js 0x14006c5a3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14006c5a3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14006c595
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14006c595
cmp byte [rcx], 0xd
jne 0x14006c57b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14006c58a
cmp byte [rcx + 1], 0xa
jne 0x14006c58a
inc rcx
jmp 0x14006c58a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xa34b0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14006c55d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14006c5a7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14004dfe0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14006d5c8
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, [0x1400a6af0]
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 0x14006d61f
cmp word [rdx], r13w
jne 0x14006d61f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14006d624
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14006d749
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14006d76a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14006d65d
mov rdx, r9
mov word [rbx], cx
jmp 0x14006d684
cmp r9, r8
jae 0x14006d694
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 0x14006d63e
jmp 0x14006d749
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 0x14006d73e
cmp dword [rsp + 0x80], esi
je 0x14006d73e
lea r8, [0x1400a6af0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14006d716
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14006d6e6
mov word [rbx], r13w
jmp 0x14006d746
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 0x14006d6f3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14006d746
cmp word [rsp + 0x70], r13w
jne 0x14006d723
cmp rbx, r14
je 0x14006d6e0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14006c940
cmp word [rsp + 0x70], r13w
je 0x14006d749
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, [0x1400a6af0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14006d743
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14006d749
Function at 0x14007139c
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 0x1400713cc
xor eax, eax
jmp 0x14007148f
mov rbp, rbx
cmp word [rax], si
je 0x1400713f1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400713d8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400713d4
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.14006f4fc
movsxd r14, eax
test eax, eax
jne 0x14007142f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400713c5
mov rcx, r14
call fcn.14006745c
mov rdi, rax
test rax, rax
jne 0x140071448
xor ecx, ecx
call fcn.140067b94
jmp 0x140071424
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.14006f4fc
test eax, eax
jne 0x140071479
mov rcx, rdi
call fcn.140067b94
jmp 0x140071483
xor ecx, ecx
call fcn.140067b94
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 0x1400714ac
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 0x140071533
mov rsi, rbx
cmp word [rax], bp
je 0x1400714f2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400714dc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400714d8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14006745c
mov rdi, rax
test rax, rax
je 0x140071520
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140079cc0
mov rbp, rdi
xor ecx, ecx
call fcn.140067b94
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 0x14007463c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140067834
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400746dd
cmp ebx, dword [rsp + 0x30]
je 0x1400746d6
test esi, esi
je 0x1400746d6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400746b1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400746be
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14007469b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400746c2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400746df
mov eax, 1
jmp 0x1400746df
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140078f50
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.14006c940
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14006c940
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400790a0
cmp rax, 0xffffffffffffffff
je 0x1400790a0
xor edi, edi
test rbp, rbp
jle 0x14007904b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140067d9c
mov rbx, rax
test rax, rax
jne 0x140078fd8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140079041
mov edx, 0x8000
mov ecx, r14d
call fcn.140065884
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.14006b1ac
cmp eax, 0xffffffff
je 0x140079021
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140078fe8
mov edx, r15d
mov ecx, r14d
call fcn.140065884
jmp 0x140079041
cmp byte [rsi + 0x38], dil
je 0x140079038
cmp dword [rsi + 0x34], 5
jne 0x140079038
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140079041
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140067b94
jmp 0x1400790b4
jns 0x1400790b4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14006c940
cmp rax, 0xffffffffffffffff
jne 0x14007906c
cmp byte [rsi + 0x30], dil
je 0x1400790b4
mov edi, dword [rsi + 0x2c]
jmp 0x1400790b4
mov ecx, r14d
call fcn.1400720e8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400790b4
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 0x1400790b4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400790ad
mov eax, dword [rsi + 0x2c]
jmp 0x1400790b2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14006c940
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 0x1400798f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140079918
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140079918
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001160
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov rsi, qword [0x140007040]
xor eax, eax
lock cmpxchg qword [rsi], rdi
sete bl
cmp rdi, rax
sete al
or al, bl
jne 0x1400011b9
mov r14, qword [sym.imp.kernel32.dll_Sleep]
nop dword [rax]
mov ecx, 0x3e8
call r14
xor eax, eax
lock cmpxchg qword [rsi], rdi
sete bl
je 0x1400011b9
cmp rdi, rax
jne 0x1400011a0
mov rdi, qword [0x140007048]
mov eax, dword [rdi]
cmp eax, 1
je 0x140001334
cmp dword [rdi], 0
je 0x1400011d9
mov byte [0x14000a070], 1
jmp 0x1400011f2
mov dword [rdi], 1
mov rcx, qword [0x140007060]
mov rdx, qword [0x140007068]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov eax, dword [rdi]
cmp eax, 1
jne 0x140001212
mov rcx, qword [0x140007050]
mov rdx, qword [0x140007058]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rdi], 2
test bl, bl
je 0x14000121b
xor eax, eax
xchg qword [rsi], rax
mov rax, qword [0x140007010]
mov rax, qword [rax]
test rax, rax
je 0x14000123a
xor ecx, ecx
mov edx, 2
xor r8d, r8d
call qword [0x1400087f8]
call fcn.140005910
lea rcx, [0x1400056d0]
call qword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [0x140007038]
mov qword [rcx], rax
lea rcx, [0x140001380]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.140005890
movsxd r14, dword [0x14000a05c]
lea rcx, [r14*8 + 8]
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rsi, rax
test r14, r14
jle 0x1400012c4
mov r15, qword [0x14000a060]
xor r12d, r12d
nop dword [rax]
mov rdi, qword [r15 + r12*8]
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rbx, [rax + 1]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rsi + r12*8], rax
mov rcx, rax
mov rdx, rdi
mov r8, rbx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
inc r12
cmp r14, r12
jne 0x140001290
jmp 0x1400012c7
xor r14d, r14d
mov qword [rsi + r14*8], 0
mov qword [0x14000a060], rsi
call fcn.140005640
mov rsi, qword [0x14000a068]
call fcn.140005ed0
mov qword [rax], rsi
mov ecx, dword [0x14000a05c]
mov rdx, qword [0x14000a060]
mov r8, qword [0x14000a068]
call fcn.140001474
mov dword [0x14000a074], eax
cmp dword [0x14000a054], 0
je 0x14000133e
cmp byte [0x14000a070], 0
jne 0x140001326
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14000a074]
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov ecx, 0x1f
call fcn.140005ee0
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3
Function at 0x140003040
Capabilities:
Write file on windows

Disassembly:
mov r9, rcx
mov ecx, 0xfffffff5
jmp fcn.1400030e8
Function at 0x140005360
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
call fcn.140005f10
test al, al
je 0x1400053b3
mov r14, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
call r14
mov qword [rsp + 0x20], rsi
lea rdx, str.libunwind:__Unwind_SetGR_context_p__reg_d__value0x_0llx__n
mov rcx, rax
mov r8, rbx
mov r9d, edi
call fcn.140006230
mov ecx, 2
call r14
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
mov rcx, rbx
mov edx, edi
mov r8, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140006020

Function at 0x140005440
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
call fcn.140005f10
test al, al
je 0x140005488
mov rbx, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
call rbx
lea rdx, str.libunwind:__Unwind_SetIP_context_p__value0x_0llx__n
mov rcx, rax
mov r8, rdi
mov r9, rsi
call fcn.140006230
mov ecx, 2
call rbx
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
mov rcx, rdi
mov edx, 0xffffffff
mov r8, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140006020

Function at 0x140005dc0
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call fcn.140006970
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
int3

Function at 0x140005f10
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp byte [0x14000a16c], 1
jne 0x140005f2b
movzx eax, byte [0x14000a16b]
and al, 1
add rsp, 0x28
ret
lea rcx, str.LIBUNWIND_PRINT_APIS
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
test rax, rax
setne al
setne byte [0x14000a16b]
mov byte [0x14000a16c], 1
and al, 1
add rsp, 0x28
ret
Function at 0x140005f60
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 [0x14000a16c], 1
jne 0x140005f85
test byte [0x14000a16b], 1
jne 0x140005fa4
jmp 0x140005fdd
lea rcx, str.LIBUNWIND_PRINT_APIS
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov byte [0x14000a16c], 1
test rax, rax
setne byte [0x14000a16b]
je 0x140005fdd
mov r14, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
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.140006230
mov ecx, 2
call r14
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
mov rax, qword [rbx]
mov rax, qword [rax + 0x10]
mov rcx, rbx
mov edx, edi
call qword [0x1400087f8]
mov ecx, eax
mov eax, 0xffffe672
test cl, cl
je 0x140006011
mov rax, qword [rbx]
mov rax, qword [rax + 0x18]
mov rcx, rbx
mov edx, edi
call qword [0x1400087f8]
mov qword [rsi], rax
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140006020
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
mov rbx, r8
mov edi, edx
mov rsi, rcx
cmp byte [0x14000a16c], 1
jne 0x140006045
test byte [0x14000a16b], 1
jne 0x140006064
jmp 0x14000609d
lea rcx, str.LIBUNWIND_PRINT_APIS
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov byte [0x14000a16c], 1
test rax, rax
setne byte [0x14000a16b]
je 0x14000609d
mov r14, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
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.140006230
mov ecx, 2
call r14
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
mov rax, qword [rsi]
mov rax, qword [rax + 0x10]
mov rcx, rsi
mov edx, edi
call qword [0x1400087f8]
mov ecx, eax
mov eax, 0xffffe672
test cl, cl
je 0x140006140
mov rax, qword [rsi]
mov rax, qword [rax + 0x20]
mov rcx, rsi
mov edx, edi
mov r8, rbx
call qword [0x1400087f8]
xor eax, eax
cmp edi, 0xffffffff
jne 0x140006140
mov rax, qword [rsi]
mov rax, qword [rax + 0x48]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [0x1400087f8]
mov rax, qword [rsi]
mov rax, qword [rax + 0x68]
mov rcx, rsi
xor edx, edx
call qword [0x1400087f8]
cmp qword [rsp + 0x50], 0
je 0x14000613e
mov rax, qword [rsi]
mov rax, qword [rax + 0x18]
mov rcx, rsi
mov edx, 0xfffffffe
call qword [0x1400087f8]
add rax, qword [rsp + 0x50]
mov rcx, qword [rsi]
mov r9, qword [rcx + 0x20]
mov rcx, rsi
mov edx, 0xfffffffe
mov r8, rax
mov rax, r9
call qword [0x1400087f8]
xor eax, eax
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret