joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4aaf20
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4ab086
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x48], rdi
test rdi, rdi
je 0x4aaf5b
jmp 0x4aaf7d
mov rax, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
call sym.unicode_utf8.RuneCountInString
mov qword [rsp + 0x48], rax
inc rax
mov qword [rsp + 0x28], rax
add rsp, 0x50
pop rbp
ret
mov qword [rsp + 0x48], rdi
cmp rdi, 1
je 0x4aaf8a
jmp 0x4aafe3
mov rdx, qword [rsp + 0x70]
test rdi, rdi
ja 0x4aaf99
jmp 0x4ab077
movzx eax, byte [rdx]
mov byte [rsp + 0x27], al
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov qword [rsp], rcx
mov qword [rsp + 8], rdx
mov byte [rsp + 0x10], al
call sym.internal_bytealg.CountString.abi0
xorps xmm15, xmm15
mov r14, qword [0x005b5e88]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x18]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x28], rax
add rsp, 0x50
pop rbp
ret
mov qword [rsp + 0x30], 0
jmp 0x4aafee
jmp 0x4aaff0
mov rcx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x68]
call sym.strings.Index
mov qword [rsp + 0x38], rax
cmp rax, 0xffffffffffffffff
je 0x4ab016
jmp 0x4ab026
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
add rsp, 0x50
pop rbp
ret
inc qword [rsp + 0x30]
mov rdx, qword [rsp + 0x78]
mov qword [rsp + 0x48], rdx
add rax, rdx
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
cmp rcx, rax
jae 0x4ab04e
jmp 0x4ab072
sub rcx, rax
mov rsi, rcx
neg rcx
sar rcx, 0x3f
and rax, rcx
add rdx, rax
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x68], rsi
jmp 0x4ab06d
jmp 0x4aafee
call sym.runtime.panicSliceB
xor eax, eax
mov rcx, rdi
nop dword [rax]
call sym.runtime.panicIndex
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp sym.strings.Count
Function at 0x140c0b040
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140c0b04d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140c0b05d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140c0b045
lea eax, [rcx + 1]
jmp 0x140c0b06b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140c0b07e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140c0b064
sub eax, 3
jb 0x140c0b09e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140c0b0ed
sar eax, 1
movsxd rbp, eax
jb 0x140c0b0d4
jmp 0x140c0b0ac
add ebx, ebx
jne 0x140c0b0aa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140c0b0d4
inc ecx
add ebx, ebx
jne 0x140c0b0ba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140c0b0d4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140c0b0cd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140c0b0bc
add ecx, 2
jmp 0x140c0b0d9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140c0b002
jmp 0x140c0b04d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xc1200
mov dl, 0x15
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140c0b139
cmp rsi, rcx
jae 0x140c0b141
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140c0b120
cmp al, 0x8f
ja 0x140c0b120
cmp byte [rsi - 2], 0xf
je 0x140c0b126
sub al, 0xe8
cmp al, 1
ja 0x140c0b10a
cmp rsi, rcx
jae 0x140c0b141
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140c0b110
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140c0b141
lodsb al, byte [rsi]
jmp 0x140c0b120
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xc07000]
mov eax, dword [rdi]
or eax, eax
je 0x140c0b19e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xc26268]
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 0x140c0b14e
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 0x140c0b198
mov qword [rbx], rax
add rbx, 8
jmp 0x140c0b16e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140c0b1d8
cmp al, 0xef
ja 0x140c0b1ca
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140c0b1aa
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140c0b1b9
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.140c0b257], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.140c0b257
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140c0b247
sub rsp, 0xffffffffffffff80
jmp 0x1400010f6
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
push rcx
push rsi
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
mov rsi, qword [rdx + 0x50]
movzx rcx, word [rdx + 0x4a]
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
push rax
mov r8d, dword [rax + 0x20]
add r8, rdx
mov ecx, dword [rax + 0x18]
jrcxz 0x1400040ca
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor r9, r9
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x140001090
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0xffffffffffffffff
jne 0x1400010ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x14000118c
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140001159
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x48], eax
jmp 0x140001197
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
lea rcx, section..text
call qword [rsp + 0x70]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x50]
call qword [rax]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x50]
call qword [rax + 8]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x88
ret
Function at 0x1400011e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140001211
xor eax, eax
jmp 0x14000140b
mov rax, qword [rsp + 0x30]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + rax + 0x88]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0
jne 0x140001259
xor eax, eax
jmp 0x14000140b
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
mov dword [rsp + 0x18], eax
mov eax, dword [rsp + 0x18]
add rax, qword [rsp + 0x80]
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
mov eax, dword [rax + 0x18]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x10]
mov eax, dword [rax + 0x1c]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x10]
mov eax, dword [rax + 0x20]
mov dword [rsp + 0x1c], eax
mov rax, qword [rsp + 0x10]
mov eax, dword [rax + 0x24]
mov dword [rsp + 0x20], eax
mov qword [rsp + 8], 0
jmp 0x1400012be
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x48]
cmp qword [rsp + 8], rax
jae 0x140001409
mov eax, dword [rsp + 0x1c]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 8]
lea rax, [rax + rcx*4]
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 8]
lea rax, [rax + rcx*2]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x50]
movzx ecx, word [rcx]
lea rax, [rax + rcx*4]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov qword [rsp], 0
jmp 0x140001360
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
movsx eax, byte [rax]
test eax, eax
je 0x1400013be
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movsx eax, byte [rax]
test eax, eax
je 0x1400013be
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
movsx eax, byte [rax]
mov rcx, qword [rsp]
mov rdx, qword [rsp + 0x28]
add rdx, rcx
mov rcx, rdx
movsx ecx, byte [rcx]
cmp eax, ecx
je 0x1400013bc
jmp 0x1400013be
jmp 0x140001355
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
movsx eax, byte [rax]
test eax, eax
jne 0x140001404
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movsx eax, byte [rax]
test eax, eax
jne 0x140001404
mov rax, qword [rsp + 0x60]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
jmp 0x14000140b
jmp 0x1400012b1
xor eax, eax
add rsp, 0x78
ret
Function at 0x140001410
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword gs:[0x60]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
add rax, 0x20
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
jmp 0x14000145f
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x30], rax
je 0x14000162a
mov rax, qword [rsp + 0x30]
sub rax, 0x10
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140001491
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x30], 0
jne 0x140001496
jmp 0x14000162a
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x60]
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0
jne 0x1400014ae
jmp 0x140001452
mov qword [rsp], 0
jmp 0x1400014c3
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x58]
cmp qword [rsp], rax
jae 0x1400015f8
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp]
movzx eax, word [rax + rcx*2]
test eax, eax
je 0x1400014f8
mov rax, qword [rsp + 8]
mov rcx, qword [rsp]
movzx eax, word [rax + rcx*2]
test eax, eax
jne 0x1400014fd
jmp 0x1400015f8
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp]
movzx eax, word [rax + rcx*2]
cmp eax, 0x5a
jg 0x140001555
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp]
movzx eax, word [rax + rcx*2]
cmp eax, 0x41
jl 0x140001555
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp]
movzx eax, word [rax + rcx*2]
sub eax, 0x41
add eax, 0x61
mov dword [rsp + 0x18], eax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp]
movzx edx, word [rsp + 0x18]
mov word [rax + rcx*2], dx
movzx eax, word [rsp + 0x18]
mov dword [rsp + 0x1c], eax
jmp 0x140001566
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp]
movzx eax, word [rax + rcx*2]
mov dword [rsp + 0x1c], eax
movzx eax, word [rsp + 0x1c]
mov word [rsp + 0x10], ax
mov rax, qword [rsp + 8]
mov rcx, qword [rsp]
movzx eax, word [rax + rcx*2]
cmp eax, 0x5a
jg 0x1400015c8
mov rax, qword [rsp + 8]
mov rcx, qword [rsp]
movzx eax, word [rax + rcx*2]
cmp eax, 0x41
jl 0x1400015c8
mov rax, qword [rsp + 8]
mov rcx, qword [rsp]
movzx eax, word [rax + rcx*2]
sub eax, 0x41
add eax, 0x61
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 8]
mov rcx, qword [rsp]
movzx edx, word [rsp + 0x20]
mov word [rax + rcx*2], dx
movzx eax, word [rsp + 0x20]
mov dword [rsp + 0x24], eax
jmp 0x1400015d9
mov rax, qword [rsp + 8]
mov rcx, qword [rsp]
movzx eax, word [rax + rcx*2]
mov dword [rsp + 0x24], eax
movzx eax, word [rsp + 0x24]
mov word [rsp + 0x14], ax
movzx eax, word [rsp + 0x10]
movzx ecx, word [rsp + 0x14]
cmp eax, ecx
je 0x1400015f3
jmp 0x1400015f8
jmp 0x1400014b8
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp]
movzx eax, word [rax + rcx*2]
test eax, eax
jne 0x140001625
mov rax, qword [rsp + 8]
mov rcx, qword [rsp]
movzx eax, word [rax + rcx*2]
test eax, eax
jne 0x140001625
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x30]
jmp 0x14000162c
jmp 0x140001452
xor eax, eax
add rsp, 0x58
ret
Function at 0x140001d74
Capabilities:
Parse pe header

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

Function at 0x140005f74
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140005d70
Function at 0x14000903c
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 0x14000906c
xor eax, eax
jmp 0x14000912f
mov rbp, rbx
cmp word [rax], si
je 0x140009091
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140009078
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140009074
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.140008f5c
movsxd r14, eax
test eax, eax
jne 0x1400090cf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140009065
mov rcx, r14
call fcn.140009f18
mov rdi, rax
test rax, rax
jne 0x1400090e8
xor ecx, ecx
call fcn.1400075bc
jmp 0x1400090c4
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.140008f5c
test eax, eax
jne 0x140009119
mov rcx, rdi
call fcn.1400075bc
jmp 0x140009123
xor ecx, ecx
call fcn.1400075bc
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 0x14000c620
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.14000802c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000c6aa
cmp byte [rbp - 0x21], r15b
je 0x14000c6a5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000c6e0
call fcn.14000a728
test eax, eax
jne 0x14000c6cc
cmp byte [rbp - 0x21], r15b
je 0x14000c6c4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000c6e0
cmp byte [rbp - 0x21], r15b
je 0x14000c6dd
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.14000760c
test eax, eax
jne 0x14000c780
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000802c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000c71f
cmp byte [rbp - 0x21], r15b
je 0x14000c754
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000c754
call fcn.14000a728
test eax, eax
jne 0x14000c740
cmp byte [rbp - 0x21], r15b
je 0x14000c739
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000c754
cmp byte [rbp - 0x21], r15b
je 0x14000c751
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.14000760c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000c780
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000c783
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000c791
mov rcx, rdi
call fcn.1400075bc
cmp byte [rbp + 0x3f], r15b
je 0x14000c7a0
mov rcx, qword [rbp + 0x27]
call fcn.1400075bc
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 0x14000f5d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000f5f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000f5f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002860
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140002888
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1400028ae
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400028b0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140002909
test ecx, ecx
jle 0x1400028e9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140002909
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002909
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140002930
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140002952
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140002968
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140002984
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002986
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400029c2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140002a5e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400029fd
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140002a3e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140002a5e
cmp rbx, rax
ja 0x140002a10
test rbx, rbx
je 0x140002a5e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret