joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003b610
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x90
lea rbp, [rsp + 0x80]
mov qword [rbp + 8], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x40]
call fcn.14002dc40
mov rax, qword [rbp - 0x40]
mov rdi, qword [rbp - 0x38]
mov rcx, rax
neg rcx
jno 0x14003b65d
mov qword [rbp - 0x20], rdi
movabs rax, 0x8000000000000000
mov qword [rbp - 0x28], rax
jmp 0x14003b68e
mov rcx, qword [rbp - 0x30]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], rcx
lea rcx, [rbp - 0x28]
lea rdx, [rbp - 0x58]
call fcn.14003b520
mov rbx, qword [rbp - 0x28]
mov rdi, qword [rbp - 0x20]
mov rax, rbx
neg rax
jno 0x14003b715
mov eax, edi
and eax, 3
cmp eax, 1
jne 0x14003b6fa
lea rax, [rdi - 1]
mov qword [rbp - 0x10], rax
mov rax, qword [rdi - 1]
mov qword [rbp - 8], rax
mov rax, qword [rdi + 7]
mov qword [rbp], rax
mov rax, qword [rax]
test rax, rax
je 0x14003b6be
mov rcx, qword [rbp - 8]
call rax
mov r8, qword [rbp - 8]
mov rax, qword [rbp]
cmp qword [rax + 8], 0
je 0x14003b6e7
cmp qword [rax + 0x10], 0x11
jb 0x14003b6d8
mov r8, qword [r8 - 8]
mov rcx, qword [0x1400a81f8]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x1400a81f8]
xor edx, edx
mov r8, qword [rbp - 0x10]
call qword [sym.imp.kernel32.dll_HeapFree]
movabs rax, 0x8000000000000000
mov qword [rsi], rax
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov r14, qword [rbp - 0x18]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003b734
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r14
jmp 0x14003b707
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
je 0x14003b707
mov rcx, qword [0x1400a81f8]
xor edx, edx
mov r8, rdi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp qword [sym.imp.kernel32.dll_HeapFree]
Function at 0x1400405e0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov rdi, rdx
cmp qword [rdx], 0
jne 0x1400406d4
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp r8, rdx
je 0x14004069a
sub r8, rdx
add rdx, qword [rbx + 8]
mov rax, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp r8, rcx
cmovae r8, rcx
mov dword [rbp - 0x28], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x28]
call qword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x140040655
mov eax, dword [rbp - 0x28]
mov ecx, 2
test rax, rax
jne 0x14004066c
jmp 0x140040679
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x6d
je 0x140040679
cmp eax, 0x3e5
jne 0x14004068a
mov ecx, 1
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
jmp 0x14004067d
mov byte [rsi + 1], 0
xor eax, eax
mov byte [rsi], al
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop rbp
ret
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov al, 1
jmp 0x14004067f
test r8, r8
mov ecx, 0x10
mov eax, 1
cmove rax, rcx
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rbx
mov rdx, r8
mov r8, rax
call fcn.1400467e0
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x140040611
mov qword [rbp - 0x28], 0
lea rdx, [rbp - 0x28]
mov rcx, rdi
call fcn.140046b90
int3

Function at 0x140044e34
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rcx
mov eax, 0x1408
call fcn.140017160
sub rsp, rax
cmp dword [0x140025db8], 0
je 0x140003adb
cmp qword [0x140025dc0], 0
jne 0x140003adb
mov rcx, qword [rsp + 0x1410]
call fcn.140003be0
movzx eax, al
test eax, eax
je 0x140003adb
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8d, 0x60000
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140003870
nop
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call fcn.140003480
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x38]
call fcn.140004a10
mov qword [rsp + 0x40], rax
jmp 0x140003a07
mov rax, qword [rsp + 0x30]
add rax, 0x30
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x40]
cmp qword [rsp + 0x30], rax
je 0x140003ac7
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
cmp qword [rsp + 0x1410], rax
jbe 0x140003ac2
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x28]
add rax, qword [rcx + 0x18]
cmp qword [rsp + 0x1410], rax
jae 0x140003ac2
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [0x140025dc0], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x18]
mov qword [0x140025dc8], rax
mov byte [0x140025dd0], 0
lea rcx, [rsp + 0x20]
call fcn.1400037a0
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.1400049d0
mov r8d, 0xffffffff
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.1400049a0
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1400054d0
mov dword [0x140025dd4], eax
lea rcx, [rsp + 0x50]
call fcn.140004a60
nop
jmp 0x140003adb
jmp 0x1400039f9
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
add rsp, 0x1408
ret
Function at 0x140003c90
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov byte [rsp + 8], cl
push rsi
push rdi
sub rsp, 0x58
mov byte [rsp + 0x40], 0x49
mov byte [rsp + 0x41], 0xba
mov byte [rsp + 0x42], 0
mov byte [rsp + 0x43], 0
mov byte [rsp + 0x44], 0
mov byte [rsp + 0x45], 0
mov byte [rsp + 0x46], 0
mov byte [rsp + 0x47], 0
mov byte [rsp + 0x48], 0
mov byte [rsp + 0x49], 0
mov byte [rsp + 0x4a], 0x41
mov byte [rsp + 0x4b], 0xff
mov byte [rsp + 0x4c], 0xe2
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov eax, 1
imul rax, rax, 2
mov rcx, qword [rsp + 0x30]
mov qword [rsp + rax + 0x40], rcx
mov dword [rsp + 0x24], 0xd
mov dword [rsp + 0x28], 0
mov byte [rsp + 0x20], 0
movzx eax, byte [rsp + 0x70]
test eax, eax
je 0x140003dba
cmp qword [rsp + 0x88], 0
je 0x140003d7b
mov rax, qword [rsp + 0x88]
cmp qword [rax + 0x10], 0
je 0x140003d54
mov rax, qword [rsp + 0x88]
cmp dword [rax + 0x18], 0
jne 0x140003d5b
xor al, al
jmp 0x140003eac
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x18]
mov rcx, qword [rsp + 0x88]
mov rdi, qword [rcx + 0x10]
mov rsi, qword [rsp + 0x78]
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rsp + 0x24]
lea r9, [rsp + 0x28]
mov r8d, 0x40
mov edx, eax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140003db5
mov eax, dword [rsp + 0x24]
lea rcx, [rsp + 0x40]
mov rdi, qword [rsp + 0x78]
mov rsi, rcx
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov byte [rsp + 0x20], 1
jmp 0x140003e3b
cmp qword [rsp + 0x88], 0
jne 0x140003dcc
xor al, al
jmp 0x140003eac
mov rax, qword [rsp + 0x88]
cmp qword [rax], 0
je 0x140003de8
mov rax, qword [rsp + 0x88]
cmp dword [rax + 8], 0
jne 0x140003def
xor al, al
jmp 0x140003eac
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 8]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
lea r9, [rsp + 0x28]
mov r8d, 0x40
mov edx, eax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140003e3b
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rcx]
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov byte [rsp + 0x20], 1
cmp qword [0x140025de0], 0
jne 0x140003e69
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtFlushInstructionCache
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140025de0], rax
mov rax, qword [0x140025de0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8d, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x78]
mov rcx, rax
call qword [rsp + 0x38]
mov eax, dword [rsp + 0x24]
lea r9, [rsp + 0x28]
mov r8d, dword [rsp + 0x28]
mov edx, eax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movzx eax, byte [rsp + 0x20]
add rsp, 0x58
pop rdi
pop rsi
ret
Function at 0x140004100
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x58
mov rcx, qword [rsp + 0x70]
call fcn.140004770
inc rax
mov r9d, 4
mov r8d, 0x1000
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140004148
xor al, al
jmp 0x140004205
mov rcx, qword [rsp + 0x70]
call fcn.140004770
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x70]
call fcn.140003480
mov rdi, qword [rsp + 0x38]
mov rsi, rax
mov rax, qword [rsp + 0x40]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0x70]
call fcn.140004770
inc rax
lea r9, [rsp + 0x34]
mov r8d, 0x20
mov rdx, rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400041a1
xor al, al
jmp 0x140004205
mov rcx, qword [rsp + 0x70]
call fcn.1400047a0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x38]
lea r8, [0x1400040e0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call fcn.1400048e0
mov rcx, qword [rsp + 0x78]
call fcn.140004940
test rax, rax
je 0x1400041f8
mov dword [rsp + 0x30], 1
jmp 0x140004200
mov dword [rsp + 0x30], 0
movzx eax, byte [rsp + 0x30]
add rsp, 0x58
pop rdi
pop rsi
ret

Function at 0x1400049d0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r9d, 0x6c078965
mov r8d, 0xffffffff
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call fcn.140004d30
nop
mov rax, qword [rsp + 0x30]
add rsp, 0x28
ret

Function at 0x140006a90
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x270
jne 0x140006ab3
mov rcx, qword [rsp + 0x40]
call fcn.140006b70
nop
jmp 0x140006acb
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4e0
jb 0x140006acb
mov rcx, qword [rsp + 0x40]
call fcn.140006c20
nop
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4 + 4]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
inc eax
mov rcx, qword [rsp + 0x40]
mov dword [rcx], eax
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0xb
mov rcx, qword [rsp + 0x40]
and eax, dword [rcx + 0x1384]
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 7
and eax, 0x9d2c5680
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 0xf
and eax, 0xefc60000
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0x12
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x140006b70
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp + 8], 0x270
jmp 0x140006b91
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x4e0
jae 0x140006c15
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 8]
mov eax, dword [rax + rcx*4 - 0x9bc]
and eax, 0x80000000
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
mov ecx, dword [rcx + rdx*4 - 0x9b8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp]
and eax, 1
test eax, eax
je 0x140006be0
mov dword [rsp + 4], 0x9908b0df
jmp 0x140006be8
mov dword [rsp + 4], 0
mov eax, dword [rsp]
shr eax, 1
xor eax, dword [rsp + 4]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x140006b84
add rsp, 0x18
ret
Function at 0x140006c20
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x28], 0x26f
mov qword [rsp + 0x30], 0xe3
mov qword [rsp], 0
jmp 0x140006c50
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
cmp qword [rsp], 0xe3
jae 0x140006cd2
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 0x10]
and eax, 1
test eax, eax
je 0x140006c9e
mov dword [rsp + 0x14], 0x9908b0df
jmp 0x140006ca6
mov dword [rsp + 0x14], 0
mov eax, dword [rsp + 0x10]
shr eax, 1
xor eax, dword [rsp + 0x14]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
xor eax, dword [rcx + rdx*4 + 0xff8]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x140006c45
mov qword [rsp + 8], 0xe3
jmp 0x140006cea
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x26f
jae 0x140006d71
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 8]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x18], eax
mov eax, dword [rsp + 0x18]
and eax, 1
test eax, eax
je 0x140006d3b
mov dword [rsp + 0x1c], 0x9908b0df
jmp 0x140006d43
mov dword [rsp + 0x1c], 0
mov eax, dword [rsp + 0x18]
shr eax, 1
xor eax, dword [rsp + 0x1c]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x140006cdd
mov qword [rsp + 0x38], 0x26f
mov eax, 4
imul rax, rax, 0x4df
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 4]
and eax, 0x80000000
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x50]
mov ecx, dword [rdx + rcx + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
je 0x140006dc5
mov dword [rsp + 0x24], 0x9908b0df
jmp 0x140006dcd
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x20]
shr eax, 1
xor eax, dword [rsp + 0x24]
mov ecx, 4
imul rcx, rcx, 0x18c
mov rdx, qword [rsp + 0x50]
xor eax, dword [rdx + rcx + 4]
mov ecx, 4
imul rcx, rcx, 0x26f
mov rdx, qword [rsp + 0x50]
mov dword [rdx + rcx + 4], eax
mov rax, qword [rsp + 0x50]
mov dword [rax], 0
add rsp, 0x48
ret

Function at 0x140007e6c
Capabilities:
Parse pe header

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000dd17
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000dd17
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000dd17
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000dd17
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000dd17
cmp dword [rcx + 0x84], 0xe
jbe 0x14000dd17
cmp dword [rcx + 0xf8], 0
je 0x14000dd17
mov ecx, ebx
call fcn.14000ddc8
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000dba4
nop
cmp dword [rbp + 0x20], 0
je 0x14000dd65
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000dd70
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14000dca8

Function at 0x14000deac
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000dca8
Function at 0x14001120c
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 0x14001123c
xor eax, eax
jmp 0x1400112ff
mov rbp, rbx
cmp word [rax], si
je 0x140011261
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140011248
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140011244
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.14001112c
movsxd r14, eax
test eax, eax
jne 0x14001129f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140011235
mov rcx, r14
call fcn.14000f6b4
mov rdi, rax
test rax, rax
jne 0x1400112b8
xor ecx, ecx
call fcn.14000f78c
jmp 0x140011294
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.14001112c
test eax, eax
jne 0x1400112e9
mov rcx, rdi
call fcn.14000f78c
jmp 0x1400112f3
xor ecx, ecx
call fcn.14000f78c
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 0x140014180
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.1400101fc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001420a
cmp byte [rbp - 0x21], r15b
je 0x140014205
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140014240
call fcn.14000f22c
test eax, eax
jne 0x14001422c
cmp byte [rbp - 0x21], r15b
je 0x140014224
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140014240
cmp byte [rbp - 0x21], r15b
je 0x14001423d
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.14000f7dc
test eax, eax
jne 0x1400142e0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400101fc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001427f
cmp byte [rbp - 0x21], r15b
je 0x1400142b4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400142b4
call fcn.14000f22c
test eax, eax
jne 0x1400142a0
cmp byte [rbp - 0x21], r15b
je 0x140014299
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400142b4
cmp byte [rbp - 0x21], r15b
je 0x1400142b1
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.14000f7dc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400142e0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400142e3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400142f1
mov rcx, rdi
call fcn.14000f78c
cmp byte [rbp + 0x3f], r15b
je 0x140014300
mov rcx, qword [rbp + 0x27]
call fcn.14000f78c
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 0x140017090
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400170b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400170b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000a7b0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000a7c0]
mov dword [rax], 1
mov rax, qword [0x14000a7d0]
mov dword [rax], 1
mov rax, qword [0x14000a730]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000a7a0]
mov dword [0x14000e00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14000a880]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14000a860]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000a710]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001770
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]