joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14019d850
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movsxd r13, dword [rdx + 0x1c]
lea r11, [0x140000000]
mov r14, qword [rdx]
xor r9d, r9d
mov rbx, qword [rdx + 8]
or esi, 0xffffffff
mov dword [0x14025d40c], r9d
mov r12d, 0x23d
mov dword [0x14025dd24], r12d
mov r15, rdx
mov rbp, rcx
mov edi, r9d
lea r10d, [rsi + 2]
mov edx, r9d
test r13d, r13d
jle 0x14019d8f7
mov ecx, r9d
cmp word [r14 + rcx*4], r9w
je 0x14019d8dd
add edi, r10d
mov esi, edx
movsxd rax, edi
mov dword [0x14025d40c], edi
mov dword [r11 + rax*4 + 0x25d430], edx
cmp rcx, r12
jae 0x14019daf1
mov byte [rcx + r11 + 0x25dd30], r9b
jmp 0x14019d8e3
mov word [r14 + rcx*4 + 2], r9w
add edx, r10d
add rcx, r10
cmp rcx, r13
jl 0x14019d8ad
cmp edi, 2
jge 0x14019d9a5
mov r9d, dword [0x14025e2e8]
mov r8d, dword [0x14025e368]
movsxd r11, esi
cmp esi, 2
lea rdx, [r11 + 1]
lea ecx, [rsi + 1]
mov rax, rdx
cmovge rax, r11
lea r15, [0x140000000]
mov r10d, ecx
mov r11, rax
cmovge r10d, esi
mov eax, 0
inc edi
cmp esi, 2
mov dword [0x14025d40c], edi
cmovge ecx, eax
movsxd rax, edi
mov dword [r15 + rax*4 + 0x25d430], ecx
mov eax, 0
mov r15, qword [rsp + 0x68]
cmovge rdx, rax
lea ecx, [rax + 1]
mov word [r14 + rdx*4], cx
cmp rdx, r12
jae 0x14019daf1
dec r9d
lea rcx, [0x140000000]
mov byte [rdx + rcx + 0x25dd30], al
mov dword [0x14025e2e8], r9d
test rbx, rbx
je 0x14019d993
movzx eax, word [rbx + rdx*4 + 2]
sub r8d, eax
mov dword [0x14025e368], r8d
mov esi, r10d
cmp edi, 2
jl 0x14019d908
mov r10d, 1
mov eax, edi
mov dword [r15 + 0x24], esi
cdq
sub eax, edx
sar eax, 1
mov ebx, eax
cmp eax, r10d
jl 0x14019d9d3
mov r8d, ebx
mov rdx, r14
mov rcx, rbp
call fcn.14019ecdc
mov r10d, 1
sub ebx, r10d
cmp ebx, r10d
jge 0x14019d9b7
lea r15, [0x140000000]
movsxd rbx, dword [0x14025d434]
mov r8d, r10d
movsxd rax, edi
mov rdx, r14
sub edi, r10d
mov dword [0x14025d40c], edi
mov ecx, dword [r15 + rax*4 + 0x25d430]
mov dword [0x14025d434], ecx
mov rcx, rbp
call fcn.14019ecdc
movsxd rcx, dword [0x14025d434]
lea eax, [r12 - 1]
movsxd rdx, eax
mov r9, rcx
dec eax
mov qword [rsp + 0x78], rdx
mov r12d, eax
mov r10d, 1
movzx eax, word [r14 + rcx*4]
mov r8d, r10d
add ax, word [r14 + rbx*4]
mov dword [r15 + rdx*4 + 0x25d430], ebx
mov dword [r15 + rdx*4 + 0x25d42c], ecx
movzx ecx, byte [rbx + r15 + 0x25dd30]
movsxd rdx, r13d
mov word [r14 + rdx*4], ax
movzx eax, byte [r9 + r15 + 0x25dd30]
cmp cl, al
mov word [r14 + r9*4 + 2], r13w
mov word [r14 + rbx*4 + 2], r13w
cmovbe ecx, eax
mov eax, r13d
add cl, r10b
mov dword [0x14025d434], eax
mov byte [rdx + r15 + 0x25dd30], cl
add r13d, r10d
mov rdx, r14
mov rcx, rbp
call fcn.14019ecdc
mov r10d, 1
cmp edi, 2
jge 0x14019d9da
mov rcx, qword [rsp + 0x78]
mov eax, r12d
mov rdx, qword [rsp + 0x68]
dec eax
mov dword [0x14025dd24], eax
mov eax, dword [0x14025d434]
mov dword [r15 + rcx*4 + 0x25d428], eax
mov rcx, rbp
call fcn.14019e978
mov r8d, esi
mov rdx, r14
mov rcx, rbp
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
jmp fcn.14019ebb8
call fcn.1401aff04
int3
Function at 0x1401a1bd0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
lea rsi, [0x14027e3a0]
mov rcx, rsi
mov rdi, rdx
call fcn.1400bbdd8
mov r8d, 0x12345678
mov r9d, 0x23456789
mov dword [rbx + 0x1e8], r8d
mov edx, 0x34567890
mov dword [rbx + 0x1ec], r9d
jmp 0x1401a1c61
movsx rcx, al
mov eax, r8d
xor rcx, rax
shr r8d, 8
movzx eax, cl
xor r8d, dword [rsi + rax*4]
movzx eax, r8b
add eax, r9d
mov dword [rbx + 0x1e8], r8d
imul r9d, eax, 0x8088405
mov eax, edx
shr edx, 8
inc r9d
mov ecx, r9d
mov dword [rbx + 0x1ec], r9d
shr rcx, 0x18
xor rcx, rax
movzx eax, cl
xor edx, dword [rsi + rax*4]
inc rdi
mov dword [rbx + 0x1f0], edx
mov al, byte [rdi]
test al, al
jne 0x1401a1c15
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1401a1c80
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

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 r15
sub rsp, 0x30
cmp byte [0x140235378], 0
mov rdi, r9
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
je 0x1401a1d62
cmp byte [rcx + 4], 0
je 0x1401a1ccd
mov r8d, edi
add rcx, 8
imul r8d, esi
call fcn.14013f920
jmp 0x1401a1d62
mov r10, rsi
mov r11, rbp
imul r10, rdi
test r10, r10
je 0x1401a1d62
lea r15, [0x14027e3a0]
movsx rax, byte [r11]
mov r8d, dword [rbx + 0x1f0]
mov r9d, r8d
mov edx, dword [rbx + 0x1e8]
and r9d, 0xfffd
xor rax, rdx
or r9d, 2
movzx ecx, al
shr edx, 8
xor edx, dword [r15 + rcx*4]
movzx eax, dl
add eax, dword [rbx + 0x1ec]
imul eax, eax, 0x8088405
mov dword [rbx + 0x1e8], edx
inc eax
mov dword [rbx + 0x1ec], eax
shr rax, 0x18
xor rax, r8
shr r8d, 8
movzx eax, al
xor r8d, dword [r15 + rax*4]
mov eax, r9d
xor eax, 1
mov dword [rbx + 0x1f0], r8d
imul eax, r9d
shr eax, 8
xor byte [r11], al
inc r11
sub r10, 1
jne 0x1401a1ce7
and dword [rsp + 0x20], 0
mov r9, rdi
mov r8, rsi
mov rdx, rbp
mov rcx, rbx
call fcn.1401a02ac
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret

Function at 0x1401ac2e4
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401ac321
test al, 0x10
jne 0x1401ac31d
and eax, 0xffffffdf
mov rcx, rbx
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1401ac321
mov al, 1
jmp 0x1401ac339
lea rdx, [rdi + 0x648b80]
mov ecx, 0x11
lea r8, [rsp + 0x38]
call fcn.14009dddc
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1401ae004
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x1401ae07c
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x1401ae07c
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x1401ae07c
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x1401ae070
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x1401ae08e
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x1401ae05e
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x1401ae07e

Function at 0x1401b0ae4
Capabilities:
Parse pe header

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

Function at 0x1401bd280
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 0x1401bd2b7
call fcn.1401bffdc
mov dword [rax], 0x16
call fcn.1401b6b74
xor eax, eax
jmp 0x1401bd345
mov rdx, r9
mov rcx, r8
call fcn.1401bd154
mov rbx, rax
test rax, rax
je 0x1401bd342
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1401bd010]
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 0x1401bd32f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401bff50
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1401bd316
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1401bd325
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1401c43f0
jmp 0x1401bd342
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1401bd33f
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 0x1401be588
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, [0x14027f730]
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 0x1401be5df
cmp word [rdx], r13w
jne 0x1401be5df
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1401be5e4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1401be709
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1401be72a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1401be61d
mov rdx, r9
mov word [rbx], cx
jmp 0x1401be644
cmp r9, r8
jae 0x1401be654
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 0x1401be5fe
jmp 0x1401be709
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 0x1401be6fe
cmp dword [rsp + 0x80], esi
je 0x1401be6fe
lea r8, [0x14027f730]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1401be6d6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1401be6a6
mov word [rbx], r13w
jmp 0x1401be706
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 0x1401be6b3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1401be706
cmp word [rsp + 0x70], r13w
jne 0x1401be6e3
cmp rbx, r14
je 0x1401be6a0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1401be4e4
cmp word [rsp + 0x70], r13w
je 0x1401be709
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, [0x14027f730]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1401be703
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1401be709
Function at 0x1401c5eb4
Capabilities:
Get file size

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

Function at 0x1401c72f0
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.1401be4e4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1401be4e4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1401c7440
cmp rax, 0xffffffffffffffff
je 0x1401c7440
xor edi, edi
test rbp, rbp
jle 0x1401c73eb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1401c6538
mov rbx, rax
test rax, rax
jne 0x1401c7378
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1401c73e1
mov edx, 0x8000
mov ecx, r14d
call fcn.1401c016c
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.1401bf940
cmp eax, 0xffffffff
je 0x1401c73c1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1401c7388
mov edx, r15d
mov ecx, r14d
call fcn.1401c016c
jmp 0x1401c73e1
cmp byte [rsi + 0x38], dil
je 0x1401c73d8
cmp dword [rsi + 0x34], 5
jne 0x1401c73d8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1401c73e1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1401c43f0
jmp 0x1401c7454
jns 0x1401c7454
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1401be4e4
cmp rax, 0xffffffffffffffff
jne 0x1401c740c
cmp byte [rsi + 0x30], dil
je 0x1401c7454
mov edi, dword [rsi + 0x2c]
jmp 0x1401c7454
mov ecx, r14d
call fcn.1401c71e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1401c7454
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 0x1401c7454
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1401c744d
mov eax, dword [rsi + 0x2c]
jmp 0x1401c7452
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1401be4e4
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 0x1401c8328
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.1401b0350
sub rsp, rax
mov rax, qword [0x140231ec8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1401c00d4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1401c8377
mov rax, rbp
jmp 0x1401c847f
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 + 0x27f730]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1401be4dc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x27f730]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1401c847b
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 0x1401c847b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1401be4dc
test rax, rax
js 0x1401c847b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1401c847b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1401c846d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1401c846d
cmp byte [rcx], 0xd
jne 0x1401c8453
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1401c8462
cmp byte [rcx + 1], 0xa
jne 0x1401c8462
inc rcx
jmp 0x1401c8462
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x231f10]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1401c8435
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1401c847f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1401afad0
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 0x1401ca008
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 0x1401ca038
xor eax, eax
jmp 0x1401ca0fb
mov rbp, rbx
cmp word [rax], si
je 0x1401ca05d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1401ca044
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1401ca040
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.1401c74e4
movsxd r14, eax
test eax, eax
jne 0x1401ca09b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1401ca031
mov rcx, r14
call fcn.1401c442c
mov rdi, rax
test rax, rax
jne 0x1401ca0b4
xor ecx, ecx
call fcn.1401c43f0
jmp 0x1401ca090
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.1401c74e4
test eax, eax
jne 0x1401ca0e5
mov rcx, rdi
call fcn.1401c43f0
jmp 0x1401ca0ef
xor ecx, ecx
call fcn.1401c43f0
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 0x1401cdff8
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.1401bcc30
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1401ce082
cmp byte [rbp - 0x21], r15b
je 0x1401ce07d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1401ce0b8
call fcn.1401c681c
test eax, eax
jne 0x1401ce0a4
cmp byte [rbp - 0x21], r15b
je 0x1401ce09c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1401ce0b8
cmp byte [rbp - 0x21], r15b
je 0x1401ce0b5
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.1401bd374
test eax, eax
jne 0x1401ce158
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1401bcc30
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1401ce0f7
cmp byte [rbp - 0x21], r15b
je 0x1401ce12c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1401ce12c
call fcn.1401c681c
test eax, eax
jne 0x1401ce118
cmp byte [rbp - 0x21], r15b
je 0x1401ce111
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1401ce12c
cmp byte [rbp - 0x21], r15b
je 0x1401ce129
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.1401bd374
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1401ce158
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1401ce15b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1401ce169
mov rcx, rdi
call fcn.1401c43f0
cmp byte [rbp + 0x3f], r15b
je 0x1401ce178
mov rcx, qword [rbp + 0x27]
call fcn.1401c43f0
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 0x1401cf1d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1401cf1f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1401cf1f8
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:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400043e0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400043f0]
mov dword [rax], 1
mov rax, qword [0x140004400]
mov dword [rax], 1
mov rax, qword [0x140004390]
cmp word [rax], 0x5a4d
jne 0x14000105e
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c8
mov rax, qword [0x1400043d0]
mov dword [0x14000700c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b8
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400044a0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140004480]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140004340]
cmp dword [rax], 1
je 0x140001100
xor eax, eax
add rsp, 0x20
pop rbp
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x14000107b
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001118
cmp dx, 0x20b
jne 0x14000105e
cmp dword [rax + 0x84], 0xe
jbe 0x14000105e
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105e
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x20
pop rbp
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105e
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105e