joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009cfa0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
test rdx, rdx
je 0x14009cfba
mov r8d, edx
and r8d, 3
cmp rdx, 4
jae 0x14009cfbe
xor eax, eax
jmp 0x14009d035
xor eax, eax
pop rbp
ret
and rdx, 0xfffffffffffffffc
xor eax, eax
nop word cs:[rax + rax]
shl eax, 4
movzx r9d, byte [rcx]
add r9d, eax
mov eax, r9d
shr eax, 0x18
and eax, 0xfffffff0
xor eax, r9d
shl eax, 4
movzx r9d, byte [rcx + 1]
add r9d, eax
mov eax, r9d
shr eax, 0x18
and eax, 0xfffffff0
xor eax, r9d
shl eax, 4
movzx r9d, byte [rcx + 2]
add r9d, eax
mov eax, r9d
shr eax, 0x18
and eax, 0xfffffff0
xor eax, r9d
shl eax, 4
movzx r9d, byte [rcx + 3]
add rcx, 4
add r9d, eax
mov eax, r9d
shr eax, 0x18
and eax, 0xfffffff0
xor eax, r9d
add rdx, 0xfffffffffffffffc
jne 0x14009cfd0
test r8, r8
je 0x14009d05f
xor edx, edx
nop dword [rax]
shl eax, 4
movzx r9d, byte [rcx + rdx]
add r9d, eax
mov eax, r9d
shr eax, 0x18
and eax, 0xfffffff0
xor eax, r9d
inc rdx
cmp r8, rdx
jne 0x14009d040
and eax, 0xfffffff
pop rbp
ret

Function at 0x14009d070
Capabilities:
Hash data using djb2

Disassembly:
push rbp
mov rbp, rsp
test rdx, rdx
je 0x14009d090
mov r8d, edx
and r8d, 7
cmp rdx, 8
jae 0x14009d097
mov eax, 0x1505
jmp 0x14009d11d
mov eax, 0x1505
pop rbp
ret
and rdx, 0xfffffffffffffff8
mov eax, 0x1505
mov r9d, eax
shl r9d, 5
add r9d, eax
movzx eax, byte [rcx]
add eax, r9d
movzx r9d, byte [rcx + 1]
add r9d, eax
shl eax, 5
add r9d, eax
movzx eax, byte [rcx + 2]
add eax, r9d
shl r9d, 5
add eax, r9d
movzx r9d, byte [rcx + 3]
add r9d, eax
shl eax, 5
add r9d, eax
movzx eax, byte [rcx + 4]
add eax, r9d
shl r9d, 5
add eax, r9d
movzx r9d, byte [rcx + 5]
add r9d, eax
shl eax, 5
add r9d, eax
movzx r10d, byte [rcx + 6]
add r10d, r9d
shl r9d, 5
add r10d, r9d
movzx eax, byte [rcx + 7]
add eax, r10d
shl r10d, 5
add rcx, 8
add eax, r10d
add rdx, 0xfffffffffffffff8
jne 0x14009d0a0
test r8, r8
je 0x14009d149
xor edx, edx
nop word cs:[rax + rax]
mov r9d, eax
shl r9d, 5
add r9d, eax
movzx eax, byte [rcx + rdx]
add eax, r9d
inc rdx
cmp r8, rdx
jne 0x14009d130
pop rbp
ret
Function at 0x1400cd6b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x1400cd73a
mov rax, rdx
mov rdx, qword [rbp + 0x50]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x1400cd730
cmp r11, r10
ja 0x1400cd7b6
cmp r10, rdx
ja 0x1400cd7c8
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x1400cd732
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1400cd710
jmp 0x1400cd797
ja 0x1400cd73a
mov r11, r10
cmp rax, r8
jne 0x1400cd6d7
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x1400cd79b
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x1400cd770
mov r8, r10
sub ecx, r9d
jns 0x1400cd78e
jmp 0x1400cd79d
cmp r10, rdx
je 0x1400cd7aa
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x1400cd79d
xor al, 1
cmp r8, rdx
jne 0x1400cd750
jmp 0x1400cd79d
xor eax, eax
jmp 0x1400cd79d
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, [0x1400feb70]
call sym.core::option::unwrap_failed::hec1ab125882a5e1e
lea r8, [0x1400feb88]
mov rcx, r11
mov rdx, r10
call sym.core::slice::index::slice_index_order_fail::hb6f495100651f9f8
lea r8, [0x1400feb88]
mov rcx, r10
call sym.core::slice::index::slice_end_index_len_fail::h829dac2b01cd87d1
int3
Function at 0x1400d43e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
movzx eax, byte [rcx]
mov ecx, dword [rdx + 0x34]
test cl, 0x10
jne 0x1400d4442
test cl, 0x20
jne 0x1400d4484
mov r8d, eax
sar r8b, 7
mov ecx, eax
xor cl, r8b
sub cl, r8b
cmp cl, 0x64
jb 0x1400d44f5
add cl, cl
add cl, 0x38
movzx ecx, cl
lea r8, [0x1400fdfec]
movzx ecx, word [rcx + r8]
mov word [rbp - 0x23], cx
mov r8d, 0x24
mov cl, 1
jmp 0x1400d4500
lea r9, [rbp + 0x38]
xor r8d, r8d
mov ecx, eax
nop dword [rax + rax]
mov r10d, eax
and r10b, 0xf
shr cl, 4
lea r11d, [r10 + 0x30]
lea esi, [r10 + 0x57]
cmp r10b, 0xa
movzx r10d, r11b
movzx r11d, sil
cmovb r11d, r10d
mov byte [r9 - 1], r11b
dec r9
inc r8
cmp al, 0x10
mov eax, ecx
jae 0x1400d4450
jmp 0x1400d44c2
lea r9, [rbp + 0x38]
xor r8d, r8d
mov ecx, eax
nop dword [rax]
mov r10d, eax
and r10b, 0xf
shr cl, 4
lea r11d, [r10 + 0x30]
lea esi, [r10 + 0x37]
cmp r10b, 0xa
movzx r10d, r11b
movzx r11d, sil
cmovb r11d, r10d
mov byte [r9 - 1], r11b
dec r9
inc r8
cmp al, 0x10
mov eax, ecx
jae 0x1400d4490
mov ecx, pe_nt_image_headers64
sub rcx, r8
cmp rcx, 0x80
ja 0x1400d4561
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r9
lea r8, str.0x0b00010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899assertion_failed:_curr___19
mov r9d, 2
mov rcx, rdx
mov dl, 1
jmp 0x1400d4551
mov r8d, 0x26
cmp cl, 0xa
jae 0x1400d450a
or cl, 0x30
mov byte [rbp + r8 - 0x48], cl
jmp 0x1400d4523
movzx ecx, cl
lea r8, [0x1400fdfec]
movzx ecx, word [r8 + rcx*2]
mov word [rbp - 0x23], cx
mov r8d, 0x25
lea rcx, [r8 + rbp]
add rcx, 0xffffffffffffffb8
mov r9d, 0x27
sub r9, r8
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], rcx
not al
shr al, 7
mov r8d, 1
mov rcx, rdx
mov edx, eax
xor r9d, r9d
call sym.core::fmt::Formatter::pad_integral::h787d97089a14189a
nop
add rsp, 0xb8
pop rsi
pop rbp
ret
lea r8, str.librarycore_src_fmt_num.rs0o
mov edx, pe_nt_image_headers64
call sym.core::slice::index::slice_start_index_len_fail::h5f4d386d5ac67311
int3
Function at 0x1400db3f0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rbx, rcx
lea rax, [rbp + 0x28]
mov ecx, 2
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
mov qword [rbp - 8], rax
call sym.__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 [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x1400db460
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
movsxd rsi, dword [0x140125224]
mov rbx, rcx
test esi, esi
jle 0x1400db590
mov rax, qword [0x140125228]
xor r9d, r9d
add rax, 0x18
nop dword [rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400db4ab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400db533
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400db490
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1400db5b2
mov rax, qword [0x140125228]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140125228]
lea rdx, [rbp - 0x30]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400db597
mov eax, dword [rbp - 0xc]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400db52c
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400db540
add dword [0x140125224], 1
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 2
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140125228]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400db52c
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop word [rax + rax]
xor esi, esi
jmp 0x1400db4b8
mov rax, qword [0x140125228]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x1400dbb40
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
lea r13, [0x140125280]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140125260]
test rbx, rbx
je 0x1400dbba5
mov r12, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rdi, qword [sym.imp.kernel32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [rbx]
call r12
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400dbb9c
test eax, eax
jne 0x1400dbb9c
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400dbb80
mov rcx, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400dbde0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400dbdf8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400dbe00
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400dbe10
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400dbe5d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400dbe54
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400dbe5f
add rax, 0x28
cmp rax, r9
jne 0x1400dbe40
xor eax, eax
ret

Function at 0x1400dbe60
Capabilities:
Parse pe header

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400dbef8
mov rdx, qword [0x140109cd0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400dbee6
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400dbee6
cmp word [rax + 0x18], 0x20b
jne 0x1400dbee6
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400dbef8
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400dbed1
add rbx, 0x28
cmp rbx, rdi
je 0x1400dbef8
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400dbec8
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x1400dbf10
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140109cd0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400dbf30
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400dbf38
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400dbf30
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400dbf8d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400dbf84
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400dbf30
add rax, 0x28
cmp rax, r9
jne 0x1400dbf70
xor eax, eax
ret
Function at 0x1400dbf90
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140109cd0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400dbfaf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400dbfb8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400dbfaf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400dbfd0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140109cd0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400dbff0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400dbff8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400dbff0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400dc040
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400dc037
test rcx, rcx
je 0x1400dbff0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x1400dc028
xor eax, eax
ret

Function at 0x1400dc050
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140109cd0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400dc06f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400dc078
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1400dc090
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140109cd0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400dc0b0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400dc0b8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400dc0b0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400dc0b0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400dc104
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400dc110
add rdx, 0x28
cmp rdx, r9
jne 0x1400dc0f0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x1400dc120
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140109cd0]
xor r8d, r8d
cmp word [r11], 0x5a4d
mov r10d, ecx
jne 0x1400dc144
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
cmp dword [rcx], 0x4550
je 0x1400dc150
mov rax, r8
ret
cmp word [rcx + 0x18], 0x20b
jne 0x1400dc144
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x1400dc144
movzx edx, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rdx, [rcx + rdx + 0x18]
test r9w, r9w
je 0x1400dc144
lea ecx, [r9 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rdx + 0xc]
mov rcx, r8
cmp rax, r8
jb 0x1400dc19c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x1400dc1b0
add rdx, 0x28
cmp r9, rdx
jne 0x1400dc188
xor r8d, r8d
mov rax, r8
ret
add rax, r11
jmp 0x1400dc1c0
sub r10d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x1400dc1ce
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400dc1a5
test r10d, r10d
jg 0x1400dc1b8
mov r8d, dword [rax + 0xc]
add r8, r11
mov rax, r8
ret
Function at 0x140003738
Capabilities:
Parse pe header

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

Function at 0x14000964c
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 0x1400096bb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400096bb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400096bb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400096bb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400096bb
cmp dword [rcx + 0x84], 0xe
jbe 0x1400096bb
cmp dword [rcx + 0xf8], 0
je 0x1400096bb
mov ecx, ebx
call fcn.14000976c
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.140009548
nop
cmp dword [rbp + 0x20], 0
je 0x140009709
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140009714
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14000964c

Function at 0x140009850
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000964c
Function at 0x14000cb10
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 0x14000cb40
xor eax, eax
jmp 0x14000cc03
mov rbp, rbx
cmp word [rax], si
je 0x14000cb65
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000cb4c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000cb48
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.14000ca30
movsxd r14, eax
test eax, eax
jne 0x14000cba3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000cb39
mov rcx, r14
call fcn.14000afb8
mov rdi, rax
test rax, rax
jne 0x14000cbbc
xor ecx, ecx
call fcn.14000b018
jmp 0x14000cb98
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.14000ca30
test eax, eax
jne 0x14000cbed
mov rcx, rdi
call fcn.14000b018
jmp 0x14000cbf7
xor ecx, ecx
call fcn.14000b018
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 0x14000fa80
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.14000bb00
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000fb0a
cmp byte [rbp - 0x21], r15b
je 0x14000fb05
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000fb40
call fcn.14000ab8c
test eax, eax
jne 0x14000fb2c
cmp byte [rbp - 0x21], r15b
je 0x14000fb24
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000fb40
cmp byte [rbp - 0x21], r15b
je 0x14000fb3d
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.14000b0e0
test eax, eax
jne 0x14000fbe0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000bb00
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000fb7f
cmp byte [rbp - 0x21], r15b
je 0x14000fbb4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000fbb4
call fcn.14000ab8c
test eax, eax
jne 0x14000fba0
cmp byte [rbp - 0x21], r15b
je 0x14000fb99
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000fbb4
cmp byte [rbp - 0x21], r15b
je 0x14000fbb1
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.14000b0e0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000fbe0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000fbe3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000fbf1
mov rcx, rdi
call fcn.14000b018
cmp byte [rbp + 0x3f], r15b
je 0x14000fc00
mov rcx, qword [rbp + 0x27]
call fcn.14000b018
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 0x140012a10
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140012a38
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140012a38
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 [0x1401ac6e0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1401ac6f0]
mov dword [rax], 1
mov rax, qword [0x1401ac700]
mov dword [rax], 1
mov rax, qword [0x1401ac690]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1401ac6d0]
mov dword [0x1401d100c], 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 [0x1401ac7b0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1401ac790]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1401ac640]
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 0x14001f9d0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x14001fa12
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 3
jbe 0x14001fa1a
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x14001fa2b
jmp 0x14001fa42
xor r10d, r10d
jmp 0x14001facd
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x14001fa42
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x14001fa59
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x14001fa79
add r11, r8
jmp 0x14001fbaa
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x14001fb42
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x14001faf0
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 3
jbe 0x14001fb60
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x14001fb72
jmp 0x14001fb8c
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x14001fb8c
lea rcx, [r8 + r10]
movzx esi, word [rdx + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x14001fba6
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret