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

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 r12
push r14
push r15
sub rsp, 0x30
cmp byte [0x1401789b0], 0
mov rbp, r9
mov r14, r8
mov r15, rdx
mov rsi, rcx
je 0x1400f27c7
cmp byte [rcx + 4], 0
je 0x1400f2784
mov edx, ebp
lea r8, [rcx + 8]
imul edx, r14d
mov rcx, r15
call fcn.1400bdd6c
jmp 0x1400f27c7
mov rdi, r14
mov r12, r15
imul rdi, rbp
test rdi, rdi
je 0x1400f27c7
mov ebx, dword [rsi + 0x1f0]
mov rcx, rsi
movsx edx, byte [r12]
and ebx, 0xfffd
or ebx, 2
call fcn.1400f26bc
mov eax, ebx
xor eax, 1
imul eax, ebx
shr eax, 8
xor byte [r12], al
inc r12
sub rdi, 1
jne 0x1400f2793
and dword [rsp + 0x20], 0
mov r9, rbp
mov r8, r14
mov rdx, r15
mov rcx, rsi
call fcn.1400f14a4
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret

Function at 0x1400fae08
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400fae40
test al, 0x10
jne 0x1400fae3c
and eax, 0xffffffdf
mov rcx, rbx
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1400fae40
mov al, 1
jmp 0x1400fae56
mov rdx, qword [rdi + 0x64bad8]
mov r8, rbx
mov ecx, 0x11
call fcn.14002ecc4
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14010949c
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140109270
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140109270
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140109270
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140109270
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140109270
cmp dword [rcx + 0x84], 0xe
jbe 0x140109270
cmp dword [rcx + 0xf8], esi
je 0x140109270
mov ecx, r14d
call fcn.1401093b8
mov ecx, 2
call fcn.14010e818
nop
cmp byte [0x1401feb78], 0
jne 0x14010933a
mov r15d, 1
mov eax, r15d
xchg dword [0x1401feb68], eax
test ebx, ebx
jne 0x1401092e3
mov rdi, qword [0x140160370]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x1401feb70]
cmp rcx, rax
je 0x1401092da
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.1400fd560]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1401feca8]
jmp 0x1401092ef
cmp ebx, r15d
jne 0x1401092f5
lea rcx, [0x1401fecc0]
call fcn.140109f50
nop
test ebx, ebx
jne 0x14010930c
lea rdx, [0x14011b018]
lea rcx, [0x14011aff8]
call fcn.14010a2d0
lea rdx, [0x14011b028]
lea rcx, [0x14011b020]
call fcn.14010a2d0
movzx eax, byte [0x1401feb78]
test esi, esi
cmove eax, r15d
mov byte [0x1401feb78], al
jmp 0x14010933a
mov ecx, 2
call fcn.14010e878
test esi, esi
jne 0x140109351
mov ecx, r14d
call fcn.14010936c
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140109200
Function at 0x14010dee0
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x14010dd80
call fcn.140106bfc
mov dword [rax], 0x16
call fcn.1401033cc
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14010dd68
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x14010dd68
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x14010ddb2
lock or dword [rax + 0x14], 0x10
jmp 0x14010dd68
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x14010ddcf
mov rcx, qword [rbp + 0x10]
call fcn.140112770
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1401081cc
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1401058a4
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x14010de26
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x14010dd68
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x14010de92
mov rcx, qword [rbp + 0x10]
call fcn.1401081cc
cmp eax, 0xffffffff
je 0x14010de79
mov rcx, qword [rbp + 0x10]
call fcn.1401081cc
cmp eax, 0xfffffffe
je 0x14010de79
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1401081cc
movsxd rdi, eax
lea rsi, [0x1401fed30]
mov rcx, rbx
sar rdi, 6
call fcn.1401081cc
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x14010de80
lea rax, [0x140160760]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14010de92
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x14010dec8
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x14010dec4
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x14010dec4
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x14010dd6b
jmp 0x14010dd38
Function at 0x140001008
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
lea rcx, str._JAVA_LAUNCHER_DEBUG
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140001069
lea rcx, str.Windows_original_main_args:_n
call fcn.140001148
xor ebx, ebx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
cmp dword [rax], ebx
jle 0x140001069
xor edi, edi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argv]
mov edx, ebx
lea rcx, str.wwwd_args__d____s_n
mov r8, qword [rax]
mov r8, qword [rdi + r8]
call fcn.140001148
inc ebx
lea rdi, [rdi + 8]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
cmp ebx, dword [rax]
jl 0x14000103e
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rcx, rax
call sub.jli.dll_JLI_CmdToArgs
call sub.jli.dll_JLI_GetStdArgc
movsxd rdi, eax
lea ecx, [rdi + 1]
movsxd rcx, ecx
shl rcx, 3
call sub.jli.dll_JLI_MemAlloc
mov rbx, rax
call sub.jli.dll_JLI_GetStdArgs
xor r9d, r9d
test edi, edi
jle 0x1400010b5
xor edx, edx
mov r9d, edi
mov rcx, qword [rax]
lea rax, [rax + 0x10]
mov qword [rbx + rdx*8], rcx
inc rdx
cmp rdx, rdi
jl 0x1400010a2
mov rcx, qword [str.java]
movsxd rax, r9d
and qword [rbx + rax*8], 0
test rcx, rcx
jne 0x1400010cc
mov rcx, qword [rbx]
mov rax, qword [section..data]
test rax, rax
jne 0x1400010db
mov rax, qword [rbx]
and dword [rsp + 0x68], 0
lea r9, str._J_ms8m
mov byte [rsp + 0x60], 0
mov r8d, 2
mov byte [rsp + 0x58], 0
mov rdx, rbx
mov byte [rsp + 0x50], 1
mov qword [rsp + 0x48], rcx
mov ecx, edi
mov qword [rsp + 0x40], rax
lea rax, [0x140002314]
mov qword [rsp + 0x38], rax
lea rax, [0x140002318]
mov qword [rsp + 0x30], rax
lea rax, str._lib_tools.jar
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r8d
call sub.jli.dll_JLI_Launch
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret

Function at 0x1400018f4
Capabilities:
Parse pe header

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

Disassembly:
call 0x1416821df
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 0x141682089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14168206f
add dl, dl
jne 0x141682096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1416820f6
xor eax, eax
add dl, dl
jne 0x1416820a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1416821ad
add dl, dl
jne 0x1416820b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1416820c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1416820d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1416820dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1416820ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14168207e
mov eax, 1
add dl, dl
jne 0x141682106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141682113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1416820fb
sub eax, ebx
mov ebx, 1
jne 0x14168214c
mov ecx, 1
add dl, dl
jne 0x14168212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14168213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141682123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14168207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141682168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141682175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14168215d
cmp eax, 0x7d00
jae 0x14168219b
cmp eax, 0x500
jb 0x141682196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14168207e
cmp eax, 0x7f
ja 0x14168219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14168207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1416821d2
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 0x14168207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140011212
Capabilities:
Terminate process

Disassembly:
jmp 0x1400122b0
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]
add rsp, 0x28
ret

Function at 0x1400112a3
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014a10
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014a30
xor al, al
jmp 0x140014ab1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014a43
xor al, al
jmp 0x140014ab1
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 0x140014a6d
xor al, al
jmp 0x140014ab1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014a81
xor al, al
jmp 0x140014ab1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014a93
xor al, al
jmp 0x140014ab1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014aaf
xor al, al
jmp 0x140014ab1
mov al, 1
add rsp, 0x38
ret
Function at 0x140001000
Capabilities:
Terminate process

Disassembly:
test ecx, ecx
jne 0x140001071
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
sub rsp, 0x848
mov rax, qword [0x1400143c8]
xor rax, rsp
mov qword [rsp + 0x830], rax
mov r9, rdx
mov edx, 0x400
lea rax, [r11 + 0x18]
lea r8d, [rdx - 1]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call fcn.1400030f0
call fcn.140002288
lea r8, [rsp + 0x30]
lea rcx, [rax + 0x60]
lea rdx, [0x140011d40]
call fcn.140001e64
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
ret

Function at 0x140001004
Capabilities:
Terminate process

Disassembly:
test ecx, ecx
jne 0x140001071
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
sub rsp, 0x848
mov rax, qword [0x1400143c8]
xor rax, rsp
mov qword [rsp + 0x830], rax
mov r9, rdx
mov edx, 0x400
lea rax, [r11 + 0x18]
lea r8d, [rdx - 1]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call fcn.1400030f0
call fcn.140002288
lea r8, [rsp + 0x30]
lea rcx, [rax + 0x60]
lea rdx, [0x140011d40]
call fcn.140001e64
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
ret

Function at 0x140001074
Capabilities:
Terminate process

Disassembly:
test ecx, ecx
jne 0x1400010e5
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
sub rsp, 0x448
mov rax, qword [0x1400143c8]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov r9, rdx
mov edx, 0x400
lea rax, [r11 + 0x18]
lea r8d, [rdx - 1]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call fcn.140007140
call fcn.140002288
lea r8, [rsp + 0x30]
lea rcx, [rax + 0x60]
lea rdx, str.Fatal_error_in_launcher:__s_n
call fcn.140002a1c
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
ret

Function at 0x140001078
Capabilities:
Terminate process

Disassembly:
test ecx, ecx
jne 0x1400010e5
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
sub rsp, 0x448
mov rax, qword [0x1400143c8]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov r9, rdx
mov edx, 0x400
lea rax, [r11 + 0x18]
lea r8d, [rdx - 1]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call fcn.140007140
call fcn.140002288
lea r8, [rsp + 0x30]
lea rcx, [rax + 0x60]
lea rdx, str.Fatal_error_in_launcher:__s_n
call fcn.140002a1c
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
ret
Function at 0x140001150
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov r13, rcx
lea r8, [0x140011da0]
lea rdx, [0x1400163f0]
lea rcx, [rbp + 0x38]
xor r12d, r12d
mov qword [rbp + 0x38], r12
call fcn.140001df0
mov ecx, r12d
test eax, eax
lea rdx, str.Failed_to_open_executable
sete cl
call fcn.140001074
mov rcx, qword [rbp + 0x38]
lea r8d, [r12 + 2]
xor edx, edx
call fcn.1400031c4
mov rcx, qword [rbp + 0x38]
call fcn.140002e2c
mov rcx, qword [rbp + 0x38]
movsxd r14, eax
lea edi, [r14 - 0x104]
test edi, edi
cmovs edi, r12d
xor r8d, r8d
mov edx, edi
call fcn.1400031c4
mov r9, qword [rbp + 0x38]
lea r15d, [r12 + 1]
mov esi, 0x104
mov edx, r15d
mov rcx, r13
mov r8d, esi
call fcn.1400029fc
mov rcx, r13
mov rdx, rax
call fcn.1400010e8
mov rbx, rax
test rax, rax
je 0x140001229
lea rcx, [rbp - 0x20]
lea r8d, [r12 + 0x14]
mov rdx, rax
call fcn.14000bb70
movsxd rdi, edi
sub rdi, r13
add rdi, rbx
jmp 0x1400012b0
mov ebx, 0x4100000
mov ecx, ebx
call fcn.1400021d0
mov rcx, qword [rbp + 0x38]
lea edi, [r14 - 0x4100000]
test edi, edi
mov rsi, rax
cmovs edi, r12d
xor r8d, r8d
mov edx, edi
call fcn.1400031c4
mov r9, qword [rbp + 0x38]
mov r8d, ebx
mov rdx, r15
mov rcx, rsi
call fcn.1400029fc
mov rcx, rsi
mov rdx, rax
call fcn.1400010e8
mov ecx, r12d
lea rdx, str.Unable_to_find_an_appended_archive.
test rax, rax
mov rbx, rax
setne cl
call fcn.140001074
lea rcx, [rbp - 0x20]
mov rdx, rbx
mov r8d, 0x14
call fcn.14000bb70
movsxd rdi, edi
mov rcx, rsi
sub rdi, rsi
add rdi, rbx
call fcn.140001ef8
mov esi, 0x104
mov eax, dword [rbp - 0x10]
mov rcx, qword [rbp + 0x38]
xor r8d, r8d
add eax, dword [rbp - 0x14]
sub rdi, rax
mov edx, edi
call fcn.1400031c4
mov r9, qword [rbp + 0x38]
mov r8, rsi
mov rdx, r15
mov rcx, r13
call fcn.1400029fc
mov ecx, r12d
lea rdx, str.Unable_to_read_from_file
test rax, rax
setne cl
call fcn.140001074
movzx eax, word [r13]
cmp ax, word [0x140011e0c]
jne 0x140001301
mov r12, r13
jmp 0x140001367
mov rcx, qword [rbp + 0x38]
lea edx, [rdi - 0x104]
test edx, edx
cmovs edx, r12d
xor r8d, r8d
call fcn.1400031c4
mov r9, qword [rbp + 0x38]
mov r8, rsi
mov rdx, r15
mov rcx, r13
call fcn.1400029fc
mov ecx, r12d
lea rdx, str.Unable_to_read_from_file
test rax, rax
mov rbx, rax
setne cl
call fcn.140001074
lea r11, [rbx + r13 - 1]
cmp r11, r13
jb 0x140001367
movzx eax, word [0x140011e0c]
cmp word [r11], ax
je 0x140001364
sub r11, r15
cmp r11, r13
jae 0x140001354
jmp 0x140001367
mov r12, r11
mov rcx, qword [rbp + 0x38]
call fcn.1400034e8
lea r11, [rsp + 0x40]
mov rax, r12
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140001510
Capabilities:
Create process on windows
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x880]
sub rsp, 0x980
mov rax, qword [0x1400143c8]
xor rax, rsp
mov qword [rbp + 0x870], rax
mov rdi, rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateJobObjectA]
lea r8, [rbp - 0x20]
mov r9d, 0x90
mov rbx, rax
lea rax, [rsp + 0x50]
mov edx, 9
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_QueryInformationJobObject]
test eax, eax
je 0x140001582
cmp dword [rsp + 0x50], 0x90
jne 0x140001582
mov ecx, 1
jmp 0x140001584
xor ecx, ecx
lea rdx, str.Job_information_querying_failed
call fcn.140001074
or dword [rbp - 0x10], 0x3000
lea r8, [rbp - 0x20]
mov r9d, 0x90
mov edx, 9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetInformationJobObject]
lea rdx, str.Job_information_setting_failed
mov ecx, eax
call fcn.140001074
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.140007470
mov ecx, 0xfffffff6
mov dword [rsp + 0x70], 0x68
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea rdx, [rbp - 0x40]
mov rcx, rax
call fcn.140001480
lea rdx, str.stdin_duplication_failed
mov ecx, eax
call fcn.140001074
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea rdx, [rbp - 0x38]
mov rcx, rax
call fcn.140001480
lea rdx, str.stdout_duplication_failed
mov ecx, eax
call fcn.140001074
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea rdx, [rbp - 0x30]
mov rcx, rax
call fcn.140001480
lea rdx, str.stderr_duplication_failed
mov ecx, eax
call fcn.140001074
lea rcx, [0x1400014ec]
mov edx, 1
mov dword [rbp - 0x54], 0x100
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
lea r11, [rsp + 0x58]
mov qword [rsp + 0x48], r11
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
xor r8d, r8d
mov rdx, rdi
xor ecx, ecx
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1400016e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
and qword [rsp + 0x30], 0
lea rcx, [rbp + 0x70]
mov r9d, 0x400
mov r8d, eax
xor edx, edx
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rcx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
lea r9, [rbp + 0x70]
lea rdx, str.Unable_to_create_process_using__ls:__ls
mov r8, rdi
xor ecx, ecx
call fcn.140001000
mov eax, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x58]
mov rcx, rbx
mov dword [0x140016e00], eax
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea rdx, str.Failed_to_get_exit_code_of_process
mov ecx, eax
call fcn.140001074
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140003783
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400143c8]
jne 0x140001d0a
rol rcx, 0x10
test cx, 0xffff
jne 0x140001d06
repz ret
ror rcx, 0x10
jmp 0x1400036dc
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140015480]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140015578]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140003761
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140015480]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140003783
mov rax, qword [rsp + 0x88]
mov qword [0x140015578], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140015518], rax
mov rax, qword [0x140015578]
mov qword [0x1400153f0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140015500], rax
mov dword [0x1400153e0], 0xc0000409
mov dword [0x1400153e4], 1
mov rax, qword [0x1400143c8]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400143d0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140015478], eax
mov ecx, 1
call fcn.14000a6f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140010350]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140015478], 0
jne 0x14000380a
mov ecx, 1
call fcn.14000a6f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret