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

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001b46a
mov r11, rdx
mov rdx, qword [rsp + 0x70]
mov ebp, ecx
shr ebp, 8
lea r8, [r11 + r8*2]
xor eax, eax
mov rbx, r11
movzx edi, byte [r11 + 1]
add r11, 2
lea r10, [rax + rdi]
cmp byte [rbx], bpl
jne 0x14001b460
cmp r10, rax
jb 0x14001b4fd
cmp r10, rdx
ja 0x14001b511
add rax, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14001b462
lea rsi, [rbx + 1]
cmp byte [rax + rbx], cl
mov rbx, rsi
jne 0x14001b440
jmp 0x14001b4d2
ja 0x14001b46a
mov rax, r10
cmp r11, r8
jne 0x14001b410
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001b4d6
mov rsi, qword [rsp + 0x78]
add rdx, rsi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea rbx, [rsi + 1]
movzx edi, byte [rsi]
test dil, dil
js 0x14001b4b0
mov rsi, rbx
sub ecx, edi
jns 0x14001b4c9
jmp 0x14001b4d8
cmp rbx, rdx
je 0x14001b4e3
movzx ebp, byte [rsi + 1]
add rsi, 2
and edi, 0x7f
shl edi, 8
or edi, ebp
sub ecx, edi
js 0x14001b4d8
xor al, 1
cmp rsi, rdx
jne 0x14001b490
jmp 0x14001b4d8
xor eax, eax
jmp 0x14001b4d8
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuefrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14001e1a0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, rax
mov rdx, r10
call fcn.14001e5a0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001e590
ud2

Function at 0x14001cfbc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001d006
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001d006
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001d006
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001d006
cmp dword [rcx + 0x84], 0xe
jbe 0x14001d006
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001d008
xor al, al
add rsp, 0x28
ret
Function at 0x140005ba0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rax, rdx
mov rsi, qword [rbp + 0x70]
mov rdi, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x140005c20
cmp r11, r10
ja 0x140005c97
cmp r10, rdx
ja 0x140005ca9
add r11, r9
xor r15d, r15d
nop dword [rax + rax]
cmp r14, r15
je 0x140005c22
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140005c00
jmp 0x140005c84
ja 0x140005c2a
mov r11, r10
cmp rax, r8
jne 0x140005bce
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x140005c60
mov rdi, r8
sub ecx, edx
jns 0x140005c7b
jmp 0x140005c86
cmp r8, rsi
je 0x140005cb8
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140005c86
xor al, 1
cmp rdi, rsi
jne 0x140005c40
jmp 0x140005c86
xor eax, eax
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001c680
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001c4f0
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.14001c780
int3
Function at 0x14000bbc0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x14000bbe5
cmp rax, rcx
je 0x14000bbeb
cmp rdx, 4
jae 0x14000bbef
xor eax, eax
xor r8d, r8d
jmp 0x14000bc80
pop rbp
jmp fcn.140003340
xor eax, eax
pop rbp
ret
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14001e400]
movdqa xmm3, xmmword [0x14001e410]
pxor xmm1, xmm1
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x14000bc10
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14000bc97
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14000bc80
pop rbp
ret
Function at 0x14001be20
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x1400138a0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x1400112da
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014bf0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014c10
xor al, al
jmp 0x140014c91
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014c23
xor al, al
jmp 0x140014c91
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140014c4d
xor al, al
jmp 0x140014c91
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014c61
xor al, al
jmp 0x140014c91
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014c73
xor al, al
jmp 0x140014c91
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014c8f
xor al, al
jmp 0x140014c91
mov al, 1
add rsp, 0x38
ret
Function at 0x140012940
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.14001140b
movzx eax, al
test eax, eax
jne 0x140012960
mov ecx, 7
call fcn.14001137f
nop
mov byte [rsp + 0x20], 0
call fcn.140011393
mov byte [rsp + 0x21], al
cmp dword [0x14001d868], 1
jne 0x140012984
mov ecx, 7
call fcn.14001137f
nop
jmp 0x1400129dc
cmp dword [0x14001d868], 0
jne 0x1400129d7
mov dword [0x14001d868], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.1400111ea
test eax, eax
je 0x1400129b8
mov eax, 0xff
jmp 0x140012ae1
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.140011389
mov dword [0x14001d868], 2
jmp 0x1400129dc
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14001136b
call fcn.1400112fd
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140012a39
mov rcx, qword [rsp + 0x30]
call fcn.14001119a
movzx eax, al
test eax, eax
je 0x140012a39
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140024020]
nop
call fcn.14001132f
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140012a6d
mov rcx, qword [rsp + 0x38]
call fcn.14001119a
movzx eax, al
test eax, eax
je 0x140012a6d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400113ca
nop
call fcn.140012b90
mov dword [rsp + 0x28], eax
call fcn.1400112da
movzx eax, al
test eax, eax
jne 0x140012a8c
mov ecx, dword [rsp + 0x28]
call fcn.140011064
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140012a9b
call fcn.1400113d4
nop
xor edx, edx
mov cl, 1
call fcn.140011186
mov eax, dword [rsp + 0x28]
jmp 0x140012ae1
add rsp, 0x68
ret
Function at 0x100f4a7d0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x100f4a7dd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x100f4a7ed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x100f4a7d5
lea eax, [rcx + 1]
jmp 0x100f4a7fb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x100f4a80e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x100f4a7f4
sub eax, 3
jb 0x100f4a82e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x100f4a87d
sar eax, 1
movsxd rbp, eax
jb 0x100f4a864
jmp 0x100f4a83c
add ebx, ebx
jne 0x100f4a83a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x100f4a864
inc ecx
add ebx, ebx
jne 0x100f4a84a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x100f4a864
call r11
adc ecx, ecx
add ebx, ebx
jne 0x100f4a85d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x100f4a84c
add ecx, 2
jmp 0x100f4a869
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.100f4a792
jmp 0x100f4a7dd
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xf46000]
mov eax, dword [rdi]
or eax, eax
je 0x100f4a8d9
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xf60f74]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x100f4a889
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x100f4a8d3
mov qword [rbx], rax
add rbx, 8
jmp 0x100f4a8a9
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.100f4a95c], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.100f4a95c
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x100f4a94c
sub rsp, 0xffffffffffffff80
jmp 0x1000031c0
Function at 0x18000b040
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x30]
mov rax, qword [rax]
mov rax, qword [rax]
mov rax, qword [rax + 0x10]
ret

Function at 0x18000c3b4
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x18000c3b4
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 0x18000c423
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18000c423
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18000c423
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18000c423
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18000c423
cmp dword [rcx + 0x84], 0xe
jbe 0x18000c423
cmp dword [rcx + 0xf8], 0
je 0x18000c423
mov ecx, ebx
call fcn.18000c2ec
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.18000c548
nop
cmp dword [rbp + 0x20], 0
je 0x18000c471
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18000c380
int3

Function at 0x18000cfe0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18000d008
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18000d008
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180011460
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 0x180011490
xor eax, eax
jmp 0x180011553
mov rbp, rbx
cmp word [rax], si
je 0x1800114b5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18001149c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180011498
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.180011380
movsxd r14, eax
test eax, eax
jne 0x1800114f3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180011489
mov rcx, r14
call fcn.1800118ac
mov rdi, rax
test rax, rax
jne 0x18001150c
xor ecx, ecx
call fcn.18000ef84
jmp 0x1800114e8
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.180011380
test eax, eax
jne 0x18001153d
mov rcx, rdi
call fcn.18000ef84
jmp 0x180011547
xor ecx, ecx
call fcn.18000ef84
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 0x1400018f8
Capabilities:
Parse pe header

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

Function at 0x14000506c
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 0x1400050db
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400050db
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400050db
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400050db
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400050db
cmp dword [rcx + 0x84], 0xe
jbe 0x1400050db
cmp dword [rcx + 0xf8], 0
je 0x1400050db
mov ecx, ebx
call fcn.140005180
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.140004f74
nop
cmp dword [rbp + 0x20], 0
jne 0x14000513c
call fcn.1400096d8
cmp eax, 1
jne 0x14000512c
xor dl, dl
jmp 0x140005136
call fcn.1400096a4
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x140005147
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140005150
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14000506c

Function at 0x140005254
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000506c
Function at 0x140009094
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 0x1400090c4
xor eax, eax
jmp 0x140009187
mov rbp, rbx
cmp word [rax], si
je 0x1400090e9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400090d0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400090cc
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.140008fb4
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x14000912a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400090bd
call fcn.140009f80
mov rdi, rax
test rax, rax
jne 0x140009140
xor ecx, ecx
call fcn.140006120
jmp 0x14000911f
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.140008fb4
test eax, eax
jne 0x140009171
mov rcx, rdi
call fcn.140006120
jmp 0x14000917b
xor ecx, ecx
call fcn.140006120
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 0x14000d2c4
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.140007040
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000d34e
cmp byte [rbp - 0x21], r15b
je 0x14000d349
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000d384
call fcn.14000a7c4
test eax, eax
jne 0x14000d370
cmp byte [rbp - 0x21], r15b
je 0x14000d368
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000d384
cmp byte [rbp - 0x21], r15b
je 0x14000d381
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.140006ea0
test eax, eax
jne 0x14000d424
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140007040
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000d3c3
cmp byte [rbp - 0x21], r15b
je 0x14000d3f8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000d3f8
call fcn.14000a7c4
test eax, eax
jne 0x14000d3e4
cmp byte [rbp - 0x21], r15b
je 0x14000d3dd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000d3f8
cmp byte [rbp - 0x21], r15b
je 0x14000d3f5
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.140006ea0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000d424
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000d427
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000d435
mov rcx, rdi
call fcn.140006120
cmp byte [rbp + 0x3f], r15b
je 0x14000d444
mov rcx, qword [rbp + 0x27]
call fcn.140006120
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 0x14000f250
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000f278
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000f278
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 [0x1401a12e0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1401a12f0]
mov dword [rax], 1
mov rax, qword [0x1401a1300]
mov dword [rax], 1
mov rax, qword [0x1401a1280]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1401a12d0]
mov dword [0x1401ac00c], 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 [0x1401a13b0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1401a1390]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1401a1040]
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 0x140001767
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140001796
mov eax, 0
jmp 0x14000192a
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
add rax, 0x88
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax]
test eax, eax
jne 0x1400017cd
mov eax, 0
jmp 0x14000192a
mov rax, qword [rbp - 0x28]
mov eax, dword [rax]
mov dword [rbp - 0x2c], eax
mov edx, dword [rbp - 0x2c]
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x38]
mov eax, dword [rax + 0x18]
mov eax, eax
mov qword [rbp - 0x40], rax
mov rax, qword [rbp - 0x38]
mov eax, dword [rax + 0x1c]
mov dword [rbp - 0x44], eax
mov rax, qword [rbp - 0x38]
mov eax, dword [rax + 0x20]
mov dword [rbp - 0x48], eax
mov rax, qword [rbp - 0x38]
mov eax, dword [rax + 0x24]
mov dword [rbp - 0x4c], eax
mov qword [rbp - 8], 0
jmp 0x140001917
mov eax, dword [rbp - 0x48]
mov rdx, qword [rbp - 8]
shl rdx, 2
add rdx, rax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x58], rax
mov eax, dword [rbp - 0x4c]
mov rdx, qword [rbp - 8]
add rdx, rdx
add rdx, rax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x60], rax
mov edx, dword [rbp - 0x44]
mov rax, qword [rbp - 0x60]
movzx eax, word [rax]
movzx eax, ax
shl rax, 2
add rdx, rax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x68], rax
mov rax, qword [rbp - 0x58]
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x10], 0
jmp 0x1400018b6
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 0x10]
add rax, rdx
movzx edx, byte [rax]
mov rcx, qword [rbp - 0x70]
mov rax, qword [rbp - 0x10]
add rax, rcx
movzx eax, byte [rax]
cmp dl, al
jne 0x1400018dc
add qword [rbp - 0x10], 1
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 0x10]
add rax, rdx
movzx eax, byte [rax]
test al, al
je 0x1400018dd
mov rdx, qword [rbp - 0x70]
mov rax, qword [rbp - 0x10]
add rax, rdx
movzx eax, byte [rax]
test al, al
jne 0x140001891
jmp 0x1400018dd
nop
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 0x10]
add rax, rdx
movzx eax, byte [rax]
test al, al
jne 0x140001912
mov rdx, qword [rbp - 0x70]
mov rax, qword [rbp - 0x10]
add rax, rdx
movzx eax, byte [rax]
test al, al
jne 0x140001912
mov rax, qword [rbp - 0x68]
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
jmp 0x14000192a
add qword [rbp - 8], 1
mov rax, qword [rbp - 8]
cmp rax, qword [rbp - 0x40]
jb 0x14000181c
mov eax, 0
add rsp, 0x70
pop rbp
ret