joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140344288
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rsi, qword [rcx]
xor r15d, r15d
movsxd rbp, edx
mov r10, r9
mov qword [rsp + 0x20], rsi
mov r12, rcx
test r9, r9
je 0x1403442e5
xor r9d, r9d
xor r8d, r8d
mov rdx, r10
mov rcx, rsi
call fcn.140309898
mov r10, qword [rsp + 0x88]
mov rdi, rax
mov r8, qword [rsp + 0x80]
jmp 0x1403442e8
mov rdi, r15
cmp byte [rsi + 0x67], r15b
jne 0x1403444b9
mov rax, qword [rdi + 0x20]
mov r14, r15
mov rbx, r15
mov rdx, qword [rax + 0x20]
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x70], rdx
mov r13, qword [rax + 0x20]
movzx eax, word [r8 + 0x3c]
cmp ebp, eax
jge 0x14034443e
lea rsi, [rbp*8]
mov rax, qword [r8 + 0x48]
mov rcx, qword [rsi + rax]
cmp qword [rcx], r10
jne 0x140344423
movsxd r15, dword [rcx + 0x24]
shl r15, 5
mov rcx, qword [r15 + rdx - 0x18]
test rcx, rcx
je 0x140344423
test r14, r14
jne 0x140344364
mov rdx, rcx
mov rcx, qword [r12]
call fcn.14035d56c
mov rdx, qword [rsp + 0x70]
mov r14, rax
jmp 0x1403443a8
movsxd rax, dword [r14]
lea r8d, [rax + 1]
cmp dword [r14 + 4], r8d
jge 0x140344382
mov r8, rcx
mov rdx, r14
mov rcx, qword [r12]
call fcn.14035d4d4
jmp 0x14034435a
movups xmm0, xmmword [0x1404fd9a8]
shl rax, 5
movups xmm1, xmmword [0x1404fd9b8]
mov dword [r14], r8d
movups xmmword [rax + r14 + 8], xmm0
movups xmmword [rax + r14 + 0x18], xmm1
mov qword [rax + r14 + 8], rcx
and qword [r15 + rdx - 0x18], 0
mov rcx, qword [r15 + r13 - 0x18]
test rbx, rbx
jne 0x1403443c9
mov rdx, rcx
mov rcx, qword [r12]
call fcn.14035d56c
mov rbx, rax
jmp 0x140344408
movsxd rax, dword [rbx]
lea edx, [rax + 1]
cmp dword [rbx + 4], edx
jge 0x1403443e5
mov r8, rcx
mov rdx, rbx
mov rcx, qword [r12]
call fcn.14035d4d4
jmp 0x1403443c4
movups xmm0, xmmword [0x1404fd9a8]
shl rax, 5
movups xmm1, xmmword [0x1404fd9b8]
mov dword [rbx], edx
movups xmmword [rax + rbx + 8], xmm0
movups xmmword [rax + rbx + 0x18], xmm1
mov qword [rax + rbx + 8], rcx
and qword [r15 + r13 - 0x18], 0
mov r10, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x70]
mov r8, qword [rsp + 0x80]
movzx eax, word [r8 + 0x3c]
inc ebp
add rsi, 8
cmp ebp, eax
jl 0x140344322
mov rsi, qword [rsp + 0x20]
xor r15d, r15d
test rdx, rdx
je 0x14034444b
mov rcx, rsi
call fcn.140309fc8
test r13, r13
je 0x14034445b
mov rdx, r13
mov rcx, rsi
call fcn.140309fc8
mov rax, qword [rdi + 0x10]
mov qword [rax + 0x20], rbx
mov rax, qword [rdi + 0x20]
mov qword [rax + 0x20], r14
test rbx, rbx
je 0x140344492
cmp dword [rbx], 1
jne 0x140344492
mov rbp, qword [rbx + 8]
mov qword [rbx + 8], r15
mov rdx, qword [rdi + 0x10]
test rdx, rdx
je 0x14034448e
mov rcx, rsi
call fcn.14035c8e0
mov qword [rdi + 0x10], rbp
mov rax, qword [rdi + 0x20]
mov rcx, qword [rax + 0x48]
test rcx, rcx
je 0x1403444b9
mov edx, r15d
cmp dword [rcx], r15d
jle 0x1403444b9
lea rax, [rcx + 0x20]
mov word [rax], r15w
inc edx
lea rax, [rax + 0x20]
cmp edx, dword [rcx]
jl 0x1403444ab
mov rbx, qword [rsp + 0x78]
mov rax, rdi
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140345148
Capabilities:
Reference sql statements

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
mov r14d, dword [rsp + 0x70]
mov ebx, r8d
mov dword [rax - 0x18], r14d
mov rbp, r9
mov qword [rax - 0x20], r9
mov rdi, rdx
mov r9, rdx
mov byte [rcx + 0x1c], 1
mov r8, rdx
mov dword [rax - 0x28], ebx
lea rdx, str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
mov rsi, rcx
call fcn.1403725b8
test ebx, ebx
jne 0x1403451b1
mov r9, rbp
mov dword [rsp + 0x20], r14d
mov r8, rdi
lea rdx, str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
mov rcx, rsi
call fcn.1403725b8
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 0x140366b30
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 r13
push r14
push r15
sub rsp, 0x20
movsxd rsi, r9d
xor ebx, ebx
mov rbp, r8
movsxd r15, edx
mov r13, rcx
mov r10d, 0xd
lea eax, [rsi - 1]
movsxd r11, eax
test eax, eax
js 0x140366b84
movzx r8d, byte [r11 + rbp]
lea edx, [r10*8]
xor r8d, edx
xor r10d, r8d
sub r11, 1
jns 0x140366b6b
xor edx, edx
mov eax, r10d
div dword [rcx + 0x14]
mov rax, qword [rcx + 0x20]
mov rdi, qword [rax + rdx*8]
test rdi, rdi
je 0x140366c27
mov eax, dword [rdi + 0x1c]
inc eax
cmp esi, eax
jne 0x140366bb9
mov r8, rsi
lea rcx, [rdi + 0x30]
mov rdx, rbp
call fcn.1403acae0
test eax, eax
je 0x140366bc1
mov rdi, qword [rdi]
test rdi, rdi
jne 0x140366b9d
test rdi, rdi
je 0x140366c27
lea r14d, [rsi + 0x31]
mov esi, dword [rdi + 0x18]
lea eax, [r15 + 0xa]
sub esi, r14d
add eax, esi
movsxd rcx, eax
call fcn.1402f2708
mov rcx, qword [rsp + 0x60]
mov rbp, rax
mov qword [rcx], rax
test rax, rax
je 0x140366c19
movsxd rdx, r14d
lea rcx, [r15 + rax]
add rdx, rdi
movsxd r8, esi
call fcn.1403abad0
sub r15d, r14d
mov rdx, rdi
movsxd r8, r15d
mov rcx, r13
add r8, rbp
call fcn.1403265f4
lea ebx, [rsi + rax]
jmp 0x140366c2f
mov rax, qword [rsp + 0x68]
mov dword [rax], ebx
mov eax, 7
jmp 0x140366c38
mov rax, qword [rsp + 0x60]
mov qword [rax], rbx
mov rax, qword [rsp + 0x68]
mov dword [rax], ebx
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
ret
Function at 0x14036b520
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbp, qword [rsp + 0x70]
mov r12, r8
and dword [rsp + 0x50], 0
mov r15d, edx
movsxd rdi, r9d
mov r14, rcx
and dword [rbp], 0
test rcx, rcx
je 0x14036b608
lea eax, [rdi - 1]
mov r10d, 0xd
movsxd r9, eax
test eax, eax
js 0x14036b581
movsx ecx, byte [r9 + r8]
lea eax, [r10*8]
xor ecx, eax
xor r10d, ecx
sub r9, 1
jns 0x14036b569
lea esi, [r10*8]
mov eax, r10d
xor rsi, rdx
xor rsi, rax
and esi, 0x1ff
mov rbx, qword [r14 + rsi*8]
test rbx, rbx
je 0x14036b5cd
cmp dword [rbx + 0xc], r15d
jne 0x14036b5be
cmp dword [rbx + 8], edi
jne 0x14036b5be
mov rcx, qword [rbx]
mov r8, rdi
mov rdx, r12
call fcn.1403acae0
test eax, eax
je 0x14036b5c4
mov rbx, qword [rbx + 0x10]
jmp 0x14036b59c
mov dword [rbp], 1
jmp 0x14036b608
lea rdx, [rdi + 0x18]
lea rcx, [rsp + 0x50]
call fcn.140367fac
mov rbx, rax
test rax, rax
je 0x14036b608
lea rcx, [rax + 0x18]
mov dword [rax + 8], edi
mov r8, rdi
mov qword [rax], rcx
mov rdx, r12
mov dword [rax + 0xc], r15d
call fcn.1403abad0
mov rcx, qword [r14 + rsi*8]
mov qword [rbx + 0x10], rcx
mov qword [r14 + rsi*8], rbx
mov eax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x14036bae4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov r10d, edx
mov r8d, ecx
cmp ecx, 0x80
jge 0x14036bb16
lea eax, [rcx - 0x41]
add ecx, 0x20
cmp eax, 0x19
cmova ecx, r8d
mov r8d, ecx
jmp 0x14036bbd9
cmp r8d, 0x10000
jge 0x14036bbca
xor r9d, r9d
lea rsi, [0x140000000]
mov edi, r9d
or r11d, 0xffffffff
mov ebx, 0xa2
lea eax, [rdi + rbx]
cdq
sub eax, edx
mov edx, r8d
sar eax, 1
movsxd rcx, eax
movzx ecx, word [rsi + rcx*4 + 0x4f7900]
sub edx, ecx
mov ecx, eax
cmovs ecx, r11d
test edx, edx
movsxd r11, ecx
lea ecx, [rax + 1]
cmovs ecx, edi
dec eax
test edx, edx
mov edi, ecx
cmovs ebx, eax
cmp ebx, ecx
jge 0x14036bb39
movzx ecx, word [rsi + r11*4 + 0x4f7900]
movzx eax, byte [rsi + r11*4 + 0x4f7903]
add eax, ecx
cmp r8d, eax
jge 0x14036bbad
movzx eax, byte [rsi + r11*4 + 0x4f7902]
xor ecx, r8d
and ecx, eax
test cl, 1
jne 0x14036bbad
shr rax, 1
movzx eax, word [rsi + rax*2 + 0x4f7b90]
add eax, r8d
movzx r8d, ax
test r10d, r10d
je 0x14036bbd9
cmp r10d, 2
mov ecx, r8d
sete r9b
mov edx, r9d
call fcn.140332a88
mov r8d, eax
jmp 0x14036bbd9
lea eax, [rcx - 0x10400]
cmp eax, 0x27
ja 0x14036bbd9
add r8d, 0x28
mov rbx, qword [rsp + 0x30]
mov eax, r8d
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14039b950
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
mov r15, rcx
mov qword [rcx], rbx
mov rbp, r8
mov r12, rdx
lea r13d, [rbx + 0x28]
mov ecx, r13d
call fcn.140371f64
mov rdi, rax
test rax, rax
jne 0x14039b996
lea ebx, [rax + 7]
jmp 0x14039ba28
cmp byte [0x140519f24], bl
je 0x14039b9f8
mov rax, qword [0x14051a0b0]
test rax, rax
je 0x14039b9b5
mov ecx, 0xc8
call rax
test eax, eax
jne 0x14039b9f8
lea r14, [rdi + 8]
mov qword [rdi + 0x18], rbp
lea rsi, [rdi + 0x10]
mov qword [rsp + 0x28], r14
mov r9, rdi
mov dword [rsp + 0x20], ebx
lea r8, [0x14037eda8]
mov qword [rsi], r12
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
jne 0x14039ba0d
mov r8, r13
xor edx, edx
mov rcx, rdi
call fcn.1403ac180
jmp 0x14039ba0d
mov r8, r13
xor edx, edx
mov rcx, rdi
call fcn.1403ac180
lea rsi, [rdi + 0x10]
lea r14, [rdi + 8]
cmp qword [rsi], rbx
jne 0x14039ba25
call qword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
mov rcx, rbp
mov dword [r14], eax
call r12
mov qword [rdi + 0x20], rax
mov qword [r15], rdi
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1403a7634
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
movsxd r9, dword [rcx + 0xc]
mov r10, rcx
movsxd rbx, r8d
test r8d, r8d
jle 0x1403a7682
mov r11, r9
xor edi, edi
mov al, byte [rdi + rdx]
mov rcx, qword [r10]
xor byte [rcx + r11], al
lea ecx, [r9 + 1]
xor r9d, r9d
lea rax, [r11 + 1]
cmp ecx, dword [r10 + 8]
cmovl r9d, ecx
xor r11d, r11d
inc rdi
cmp ecx, dword [r10 + 8]
cmovl r11, rax
cmp rdi, rbx
jl 0x1403a7652
add dword [r10 + 0x10], r8d
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
mov dword [r10 + 0xc], r9d
ret

Function at 0x1403ab794
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test rax, rax
je 0x1403ab7de
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1403ab7de
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1403ab7de
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1403ab7de
cmp dword [rcx + 0x84], 0xe
jbe 0x1403ab7de
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1403ab7e0
xor al, al
add rsp, 0x28
ret
Function at 0x140001268
Capabilities:
Get file size
Read file on windows

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
mov r14, rdx
xor edi, edi
mov qword [rax - 0x18], rdi
xor r9d, r9d
mov dword [rax - 0x20], 0x80
xor r8d, r8d
mov edx, 0x80000000
mov dword [rax - 0x28], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400012cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x1400240a8]
call fcn.140001008
xor eax, eax
jmp 0x140001364
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp eax, 0xffffffff
jne 0x1400012fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x1400240c8]
call fcn.140001008
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400012c6
mov rcx, rbp
call fcn.140008c80
mov rsi, rax
test rax, rax
jne 0x14000131c
lea rcx, [0x1400240e8]
call fcn.140001008
jmp 0x1400012f3
mov r9, r14
mov qword [rsp + 0x20], rdi
mov r8d, ebp
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140001355
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x1400240f8]
call fcn.140001008
mov rcx, rsi
call fcn.140008870
jmp 0x140001358
mov rdi, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
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 0x140001b28
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x120
mov rbx, rcx
lea rcx, str.Running_EncShellcode_Mode..._n
call fcn.140001008
mov rdx, rbx
lea rcx, str.Shellcode_Path:__s_n
call fcn.140001008
and dword [rsp + 0x138], 0
lea rdx, [rsp + 0x138]
mov rcx, rbx
call fcn.140001268
mov rdi, rax
test rax, rax
je 0x140001c3f
mov edx, dword [rsp + 0x138]
lea rcx, str.Read_Shellcodefile_length:_lu_n
call fcn.140001008
mov edx, dword [rsp + 0x138]
xor r8d, r8d
test edx, edx
je 0x140001baf
mov rcx, rdi
xor byte [rcx], dl
inc r8d
mov edx, dword [rsp + 0x138]
inc rcx
cmp r8d, edx
jb 0x140001b9b
mov r9, rbx
lea r8, str._s.enc
mov edx, pe_nt_image_headers64
lea rcx, [rsp + 0x20]
call fcn.14000105c
lea rdx, [0x140024414]
lea rcx, [rsp + 0x20]
call fcn.1400050fc
mov rbx, rax
test rax, rax
jne 0x140001bef
lea rcx, [0x140024418]
call fcn.140005610
jmp 0x140001c4b
mov r8d, dword [rsp + 0x138]
mov r9, rbx
mov edx, 1
mov rcx, rdi
call fcn.1400087c0
mov ecx, dword [rsp + 0x138]
cmp rax, rcx
je 0x140001c21
lea rcx, [0x140024428]
call fcn.140005610
jmp 0x140001c35
lea r8, [rsp + 0x20]
mov rdx, rax
lea rcx, [0x140024438]
call fcn.140001008
mov rcx, rbx
call fcn.14000543c
jmp 0x140001c4b
lea rcx, str.Failed_to_read_Shellcodefile._n
call fcn.140001008
mov rbx, qword [rsp + 0x130]
add rsp, 0x120
pop rdi
ret

Function at 0x1400024b0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400024fa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400024fa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400024fa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400024fa
cmp dword [rcx + 0x84], 0xe
jbe 0x1400024fa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400024fc
xor al, al
add rsp, 0x28
ret
Function at 0x14000975c
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 0x1400097cb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400097cb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400097cb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400097cb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400097cb
cmp dword [rcx + 0x84], 0xe
jbe 0x1400097cb
cmp dword [rcx + 0xf8], 0
je 0x1400097cb
mov ecx, ebx
call fcn.140009870
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.140009664
nop
cmp dword [rbp + 0x20], 0
jne 0x14000982c
call fcn.140011570
cmp eax, 1
jne 0x14000981c
xor dl, dl
jmp 0x140009826
call fcn.14001153c
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x140009837
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140009840
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14000975c

Function at 0x140009944
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000975c
Function at 0x14000f1f0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14000f206
mov al, 1
jmp 0x14000f272
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14000f217
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14000f270
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000c794
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000f270
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14000f270
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14000f270
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14000f272
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140010f2c
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 0x140010f5c
xor eax, eax
jmp 0x14001101f
mov rbp, rbx
cmp word [rax], si
je 0x140010f81
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140010f68
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140010f64
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.140010e4c
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x140010fc2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140010f55
call fcn.14000d520
mov rdi, rax
test rax, rax
jne 0x140010fd8
xor ecx, ecx
call fcn.14000ad70
jmp 0x140010fb7
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.140010e4c
test eax, eax
jne 0x140011009
mov rcx, rdi
call fcn.14000ad70
jmp 0x140011013
xor ecx, ecx
call fcn.14000ad70
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 0x140013670
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
xor edi, edi
mov rax, r15
lea rcx, [0x140027fa0]
and eax, 0x3f
mov r12, r15
sar r12, 6
mov rsi, rdx
lea r9d, [rdi + 0xa]
mov r14, r15
lea rbp, [rax + rax*8]
mov rax, qword [rcx + r12*8]
mov r10, qword [rax + rbp*8 + 0x28]
test r8, r8
je 0x1400136c6
cmp word [rdx], r9w
jne 0x1400136c6
or byte [rax + rbp*8 + 0x38], 4
jmp 0x1400136cb
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x14001384a
mov r11d, 0xd
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x140013815
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x140013713
cmp rcx, r8
jae 0x140013733
cmp word [rcx], r9w
jne 0x140013713
add rax, 4
mov edx, r9d
jmp 0x140013716
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x1400136e8
jmp 0x14001384a
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], di
mov r8d, r13d
mov dword [rsp + 0x80], edi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001380e
cmp dword [rsp + 0x80], edi
je 0x14001380e
lea r9, [0x140027fa0]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x1400137e8
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x14001379b
mov word [rbx], bp
jmp 0x140013847
mov word [rsp + 0x78], ax
mov rdx, r14
mov rax, r14
sar rdx, 6
and eax, 0x3f
mov word [rbx], 0xd
lea r8, [rax + rax*8]
mov rax, qword [r9 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, r13
jl 0x1400137b6
mov rax, r14
sar rax, 6
and r14d, 0x3f
mov rax, qword [r9 + rax*8]
lea rcx, [r14 + r14*8]
mov byte [rax + rcx*8 + 0x3c], bpl
jmp 0x140013847
cmp word [rsp + 0x70], bp
jne 0x1400137f4
cmp rbx, rsi
je 0x140013793
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001358c
cmp word [rsp + 0x70], bp
je 0x14001384a
mov word [rbx], 0xd
jmp 0x140013847
mov rcx, r15
lea r9, [0x140027fa0]
and ecx, 0x3f
mov rax, r15
sar rax, 6
lea r8, [rcx + rcx*8]
mov rcx, qword [r9 + rax*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140013844
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14001384a
mov word [rbx], dx
add rbx, r13
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001690c
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.14000f374
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140016996
cmp byte [rbp - 0x21], r15b
je 0x140016991
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400169cc
call fcn.14000b010
test eax, eax
jne 0x1400169b8
cmp byte [rbp - 0x21], r15b
je 0x1400169b0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400169cc
cmp byte [rbp - 0x21], r15b
je 0x1400169c9
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.14000f534
test eax, eax
jne 0x140016a6c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000f374
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140016a0b
cmp byte [rbp - 0x21], r15b
je 0x140016a40
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140016a40
call fcn.14000b010
test eax, eax
jne 0x140016a2c
cmp byte [rbp - 0x21], r15b
je 0x140016a25
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140016a40
cmp byte [rbp - 0x21], r15b
je 0x140016a3d
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.14000f534
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140016a6c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140016a6f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140016a7d
mov rcx, rdi
call fcn.14000ad70
cmp byte [rbp + 0x3f], r15b
je 0x140016a8c
mov rcx, qword [rbp + 0x27]
call fcn.14000ad70
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