joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005f060
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1400ef458]
xor rax, rsp
mov qword [rsp + 0x38], rax
movzx eax, dx
shr edx, 0x10
mov r9, rcx
mov byte [rsp + 0x24], al
sar eax, 8
mov byte [rsp + 0x26], dl
mov byte [rsp + 0x25], al
movzx eax, r8w
shr r8d, 0x10
mov byte [rsp + 0x32], r8b
sar r8d, 8
sar edx, 8
mov byte [rsp + 0x33], r8b
mov r8, rcx
mov byte [rsp + 0x30], al
mov byte [rsp + 0x27], dl
sar eax, 8
lea rcx, [rsp + 0x20]
mov edx, 0x15
mov dword [rsp + 0x20], 0x46464952
mov dword [rsp + 0x28], 0x50424557
mov dword [rsp + 0x2c], 0x4c385056
mov byte [rsp + 0x34], 0x2f
mov byte [rsp + 0x31], al
call qword [r9 + 0x60]
xor ecx, ecx
mov edx, 8
test eax, eax
cmove ecx, edx
mov eax, ecx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14002d8d0
add rsp, 0x48
ret

Function at 0x14005f9c0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x460
mov rax, qword [0x1400ef458]
xor rax, rsp
mov qword [rsp + 0x450], rax
cmp dword [rcx + 8], 0x20
mov ebp, dword [r8 + 0x60]
mov rdi, r8
mov r12d, edx
mov rbx, rcx
lea r15, [r8 + 0x64]
jl 0x14005fa01
call fcn.140073d50
mov ecx, dword [rbx + 8]
mov eax, 1
shl rax, cl
or qword [rbx], rax
lea eax, [rcx + 1]
mov dword [rbx + 8], eax
cmp eax, 0x20
jl 0x14005fa22
mov rcx, rbx
call fcn.140073d50
mov ecx, dword [rbx + 8]
mov eax, 3
lea esi, [rbp - 1]
shl rax, cl
or qword [rbx], rax
lea eax, [rcx + 2]
mov dword [rbx + 8], eax
cmp eax, 0x20
jl 0x14005fa46
mov rcx, rbx
call fcn.140073d50
mov ecx, dword [rbx + 8]
mov eax, esi
shl rax, cl
or qword [rbx], rax
lea eax, [rcx + 8]
mov dword [rbx + 8], eax
lea eax, [rbp - 1]
movsxd r11, eax
cmp r11, 1
jl 0x14005faf4
lea rsi, [rsp + 0x50]
mov qword [rsp + 0x498], r14
lea r14, [r15 + r11*4]
sub rsi, r15
nop dword [rax + rax]
mov edx, dword [r14 - 4]
mov r8d, dword [r14]
lea r14, [r14 - 4]
mov r9d, r8d
mov ecx, r8d
and r8d, 0xff00ff00
and r9d, 0xff00
and ecx, 0xffff00ff
mov eax, edx
and eax, 0xff00ff00
sub r9d, eax
mov eax, edx
and edx, 0xff00ff00
sub r9d, 0xff01
and eax, 0xff00ff
sub r8d, edx
sub ecx, eax
add r8d, 0xff00ff
add ecx, 0xff00
xor r9d, ecx
and r9d, 0xff00ff
xor r9d, r8d
mov dword [rsi + r14 + 4], r9d
dec r11
jne 0x14005fa80
mov r14, qword [rsp + 0x498]
mov eax, dword [r15]
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], 0x14
mov dword [rsp + 0x50], eax
lea rax, [rdi + 0x490]
mov dword [rsp + 0x30], 1
lea r9, [rdi + 0x468]
lea r8, [rdi + 0x4e0]
lea rdx, [rsp + 0x50]
mov rcx, rbx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call fcn.14005e270
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14002d8d0
mov rbx, qword [rsp + 0x4a8]
add rsp, 0x460
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140078610
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
movsxd r11, dword [rdx]
movsxd rax, ecx
mov rbx, rdx
lea r8, [r11 + r11*2]
mov r9, r11
add r8, rax
mov eax, dword [rdx + 4]
imul rcx, r8, 0x2c
add rcx, qword [rdx + 0x20]
test eax, eax
jns 0x140078651
mov eax, dword [rcx]
cmp eax, 0xfffe0000
jb 0x140078646
inc eax
shr eax, 1
and eax, 0x7fff7fff
add eax, 0x10000
mov dword [rcx], eax
xor eax, eax
pop rbx
ret
cmp r11d, eax
jg 0x1400787f5
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
lea rsi, [0x140000000]
mov ebp, 0x43
mov eax, dword [rcx]
cmp eax, 0xfffe0000
jb 0x140078687
inc eax
shr eax, 1
and eax, 0x7fff7fff
add eax, 0x10001
mov dword [rcx], eax
mov rax, qword [rbx + 8]
movsx edx, word [rax + r9*2]
test edx, edx
jne 0x1400786e2
nop dword [rax + rax]
mov eax, dword [rcx + 4]
inc r11d
inc r9
cmp eax, 0xfffe0000
jb 0x1400786b9
inc eax
shr eax, 1
and eax, 0x7fff7fff
add eax, 0x10000
mov dword [rcx + 4], eax
movzx eax, byte [r9 + rsi + 0xc2740]
imul rcx, rax, 0x84
mov rax, qword [rbx + 8]
add rcx, qword [rbx + 0x20]
movsx edx, word [rax + r9*2]
test edx, edx
je 0x1400786a0
mov eax, dword [rcx + 4]
inc r11d
inc r9
cmp eax, 0xfffe0000
jb 0x1400786fb
inc eax
shr eax, 1
and eax, 0x7fff7fff
add eax, 0x10001
xor r8d, r8d
mov dword [rcx + 4], eax
lea eax, [rdx + 1]
cmp eax, 2
mov eax, dword [rcx + 8]
seta r8b
cmp eax, 0xfffe0000
jb 0x140078723
inc eax
shr eax, 1
and eax, 0x7fff7fff
add eax, 0x10000
add eax, r8d
mov dword [rcx + 8], eax
test r8d, r8d
jne 0x140078750
movzx eax, byte [r9 + rsi + 0xc2740]
imul rcx, rax, 0x84
mov rax, qword [rbx + 0x20]
add rax, 0x2c
jmp 0x1400787d9
mov eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, ebp
cmovg eax, ebp
xor r10d, r10d
cdqe
movzx r8d, word [rsi + rax*4 + 0xc3fbc]
movzx edi, word [rsi + rax*4 + 0xc3fbe]
shr r8d, 1
je 0x1400787c1
lea rdx, [rcx + 0xc]
nop dword [rax + rax]
test r8b, 1
je 0x1400787b5
mov ecx, r10d
mov eax, 2
shl eax, cl
mov ecx, 0
test edi, eax
mov eax, dword [rdx]
setne cl
cmp eax, 0xfffe0000
jb 0x1400787ac
inc eax
shr eax, 1
and eax, 0x7fff7fff
add eax, 0x10000
add eax, ecx
mov dword [rdx], eax
inc r10d
add rdx, 4
sar r8d, 1
jne 0x140078780
movzx eax, byte [r9 + rsi + 0xc2740]
imul rcx, rax, 0x84
mov rax, qword [rbx + 0x20]
add rax, 0x58
add rcx, rax
cmp r11d, dword [rbx + 4]
jle 0x140078675
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x10]
cmp r11d, 0x10
jge 0x140078814
mov eax, dword [rcx]
cmp eax, 0xfffe0000
jb 0x14007880d
inc eax
shr eax, 1
and eax, 0x7fff7fff
add eax, 0x10000
mov dword [rcx], eax
mov eax, 1
pop rbx
ret
Function at 0x140097758
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14009778f
call fcn.140099db8
mov dword [rax], 0x16
call fcn.14009a9f8
xor eax, eax
jmp 0x14009781d
mov rdx, r9
mov rcx, r8
call fcn.140097840
mov rbx, rax
test rax, rax
je 0x14009781a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400978a4]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140097807
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140099df8
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400977ee
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400977fd
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400a75e0
jmp 0x14009781a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140097817
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140097978
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140097ac0

Function at 0x1400a4180
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400a41a8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400a41a8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1400aeff8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400a784c
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400af099
cmp ebx, dword [rsp + 0x30]
je 0x1400af092
test esi, esi
je 0x1400af092
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400af06d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400af07a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400af057
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400af07e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400af09b
mov eax, 1
jmp 0x1400af09b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400b0010
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140022340
sub rsp, rax
mov rax, qword [0x1400ef458]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400ac630
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400b005f
mov rax, rbp
jmp 0x1400b0167
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xf4600]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400afd40
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xf4600]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400b0163
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400b0163
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400afd40
test rax, rax
js 0x1400b0163
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400b0163
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400b0155
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400b0155
cmp byte [rcx], 0xd
jne 0x1400b013b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400b014a
cmp byte [rcx + 1], 0xa
jne 0x1400b014a
inc rcx
jmp 0x1400b014a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xeffe0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400b011d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400b0167
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14002d8d0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400b0d0c
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 0x1400b0d3c
xor eax, eax
jmp 0x1400b0dff
mov rbp, rbx
cmp word [rax], si
je 0x1400b0d61
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400b0d48
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400b0d44
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.1400a770c
movsxd r14, eax
test eax, eax
jne 0x1400b0d9f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400b0d35
mov rcx, r14
call fcn.1400a761c
mov rdi, rax
test rax, rax
jne 0x1400b0db8
xor ecx, ecx
call fcn.1400a75e0
jmp 0x1400b0d94
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.1400a770c
test eax, eax
jne 0x1400b0de9
mov rcx, rdi
call fcn.1400a75e0
jmp 0x1400b0df3
xor ecx, ecx
call fcn.1400a75e0
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 0x1400b0e1c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400b0ea3
mov rsi, rbx
cmp word [rax], bp
je 0x1400b0e62
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400b0e4c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400b0e48
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400a761c
mov rdi, rax
test rax, rax
je 0x1400b0e90
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14008fca0
mov rbp, rdi
xor ecx, ecx
call fcn.1400a75e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400b2db8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400b2dce
mov al, 1
jmp 0x1400b2e2e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400b2ddf
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400b2e2c
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400b1314
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400b2e2c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400b2e2c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400b2e2c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400b2e2e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400b3860
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
lea r9, [0x1400f4600]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400b38b7
cmp word [rdx], r13w
jne 0x1400b38b7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400b38bc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400b39e1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400b3a02
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400b38f5
mov rdx, r9
mov word [rbx], cx
jmp 0x1400b391c
cmp r9, r8
jae 0x1400b392c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400b38d6
jmp 0x1400b39e1
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400b39d6
cmp dword [rsp + 0x80], esi
je 0x1400b39d6
lea r8, [0x1400f4600]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400b39ae
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400b397e
mov word [rbx], r13w
jmp 0x1400b39de
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400b398b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400b39de
cmp word [rsp + 0x70], r13w
jne 0x1400b39bb
cmp rbx, r14
je 0x1400b3978
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400afc9c
cmp word [rsp + 0x70], r13w
je 0x1400b39e1
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
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
lea r8, [0x1400f4600]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400b39db
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400b39e1
Function at 0x1400ba2f0
Capabilities:
Clear file content

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, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400afc9c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400afc9c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400ba440
cmp rax, 0xffffffffffffffff
je 0x1400ba440
xor edi, edi
test rbp, rbp
jle 0x1400ba3eb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400a9684
mov rbx, rax
test rax, rax
jne 0x1400ba378
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400ba3e1
mov edx, 0x8000
mov ecx, r14d
call fcn.14009b0fc
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400b1cb0
cmp eax, 0xffffffff
je 0x1400ba3c1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400ba388
mov edx, r15d
mov ecx, r14d
call fcn.14009b0fc
jmp 0x1400ba3e1
cmp byte [rsi + 0x38], dil
je 0x1400ba3d8
cmp dword [rsi + 0x34], 5
jne 0x1400ba3d8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400ba3e1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400a75e0
jmp 0x1400ba454
jns 0x1400ba454
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400afc9c
cmp rax, 0xffffffffffffffff
jne 0x1400ba40c
cmp byte [rsi + 0x30], dil
je 0x1400ba454
mov edi, dword [rsi + 0x2c]
jmp 0x1400ba454
mov ecx, r14d
call fcn.1400b1314
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400ba454
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400ba454
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400ba44d
mov eax, dword [rsi + 0x2c]
jmp 0x1400ba452
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400afc9c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x180009bf0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
cmp dword [rdx + 8], 0
mov r14, rdx
lea rdx, [rcx + 8]
mov r13, rcx
mov esi, 0xffffffff
lea rcx, [rsp + 0x40]
cmovne esi, dword [rsp + 0xb0]
mov r15, r9
mov r12, r8
call fcn.1800098c0
mov rbp, qword [rsp + 0x48]
test ebp, ebp
jle 0x180009db1
mov rax, qword [r13 + 0x38]
lea rbx, [r14 + 8]
test rax, rax
setne cl
test rax, rax
je 0x180009c70
nop word [rax + rax]
mov rax, qword [rax + 0x38]
xor cl, 1
test rax, rax
jne 0x180009c60
lea rbx, [r14 + 8]
test cl, cl
je 0x180009d6a
test esi, esi
js 0x180009d53
cmp esi, dword [r14 + 8]
jge 0x180009d53
movsxd rdx, dword [r14 + 8]
xor edi, edi
mov ecx, esi
mov eax, edi
not ecx
shr ecx, 0x1f
cmp esi, edx
cmovl eax, ecx
test eax, eax
jne 0x180009ce8
mov r9, qword [rsp + 0x88]
lea rax, str.Array_index_out_of_bounds:__lld_from_an_array_of_size__lld
mov qword [rsp + 0x30], rdx
mov r8d, 0x303
movsxd rcx, esi
lea rdx, str.C:BuildAgent2work78a794e88763017dUE4EngineSourceRuntimeCorePublicContainersArray.h
mov qword [rsp + 0x28], rcx
lea rcx, str._Index___0____Index___ArrayNum_
mov qword [rsp + 0x20], rax
call qword [sym.imp.FactoryGameEGS_Core.dll_public:_static_bool___cdecl_FDebug::CheckVerifyFailedImpl_char_const____ptr64__char_const____ptr64__int__void____ptr64__wchar_t_const____ptr64_]
test al, al
je 0x180009ce3
nop
int3
mov rbp, qword [rsp + 0x48]
movsxd rax, esi
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x58], ebp
lea rcx, [rax + rax*4]
mov rax, qword [r14]
lea rbx, [rax + rcx*8]
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x90], rax
test ebp, ebp
jne 0x180009d16
mov dword [rsp + 0x5c], edi
jmp 0x180009d3e
xor r8d, r8d
lea rcx, [rsp + 0x50]
mov edx, ebp
call fcn.180049ef0
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x50]
movsxd r8, ebp
shl r8, 3
call sub.VCRUNTIME140.dll_memcpy
xor r9d, r9d
lea rdx, [rsp + 0x50]
xor r8d, r8d
mov rcx, rbx
call fcn.1800317e0
jmp 0x180009db1
lea rcx, [rsp + 0x90]
call fcn.18016c6f0
test al, al
je 0x180009d6a
nop
int3
movsxd rsi, dword [rbx]
lea eax, [rsi + 1]
mov dword [rbx], eax
cmp eax, dword [r14 + 0xc]
jbe 0x180009d82
mov edx, esi
mov rcx, r14
call fcn.18004ae50
mov rax, qword [r14]
lea rcx, [rsi + rsi*4]
lea rdx, [rsp + 0x40]
lea rbx, [rax + rcx*8]
mov rcx, rbx
call fcn.180024c40
xor edi, edi
lea rcx, [rsp + 0x40]
mov qword [rbx + 0x18], rdi
mov qword [rbx + 0x20], rdi
call fcn.1800441e0
mov byte [rbx + 0x10], al
mov rdi, qword [r13 + 0x28]
mov rbx, qword [r13 + 0x20]
cmp rbx, rdi
je 0x180009dde
nop
mov rcx, qword [rbx]
mov r9, r15
mov r8, r12
mov dword [rsp + 0x20], esi
mov rdx, r14
call fcn.180009bf0
add rbx, 8
cmp rbx, rdi
jne 0x180009dc0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180009dee
call qword [sym.imp.FactoryGameEGS_Core.dll_public:_static_void___cdecl_FMemory::Free_void____ptr64_]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180009e20
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
cmp dword [rdx + 8], 0
mov r14, rdx
lea rdx, [rcx + 8]
mov r13, rcx
mov esi, 0xffffffff
lea rcx, [rsp + 0x40]
cmovne esi, dword [rsp + 0xb0]
mov r15, r9
mov r12, r8
call fcn.180009a50
mov rbp, qword [rsp + 0x48]
test ebp, ebp
jle 0x180009fe1
mov rax, qword [r13 + 0x38]
lea rbx, [r14 + 8]
test rax, rax
setne cl
test rax, rax
je 0x180009ea0
nop word [rax + rax]
mov rax, qword [rax + 0x38]
xor cl, 1
test rax, rax
jne 0x180009e90
lea rbx, [r14 + 8]
test cl, cl
je 0x180009f9a
test esi, esi
js 0x180009f83
cmp esi, dword [r14 + 8]
jge 0x180009f83
movsxd rdx, dword [r14 + 8]
xor edi, edi
mov ecx, esi
mov eax, edi
not ecx
shr ecx, 0x1f
cmp esi, edx
cmovl eax, ecx
test eax, eax
jne 0x180009f18
mov r9, qword [rsp + 0x88]
lea rax, str.Array_index_out_of_bounds:__lld_from_an_array_of_size__lld
mov qword [rsp + 0x30], rdx
mov r8d, 0x303
movsxd rcx, esi
lea rdx, str.C:BuildAgent2work78a794e88763017dUE4EngineSourceRuntimeCorePublicContainersArray.h
mov qword [rsp + 0x28], rcx
lea rcx, str._Index___0____Index___ArrayNum_
mov qword [rsp + 0x20], rax
call qword [sym.imp.FactoryGameEGS_Core.dll_public:_static_bool___cdecl_FDebug::CheckVerifyFailedImpl_char_const____ptr64__char_const____ptr64__int__void____ptr64__wchar_t_const____ptr64_]
test al, al
je 0x180009f13
nop
int3
mov rbp, qword [rsp + 0x48]
movsxd rax, esi
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x58], ebp
lea rcx, [rax + rax*4]
mov rax, qword [r14]
lea rbx, [rax + rcx*8]
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x90], rax
test ebp, ebp
jne 0x180009f46
mov dword [rsp + 0x5c], edi
jmp 0x180009f6e
xor r8d, r8d
lea rcx, [rsp + 0x50]
mov edx, ebp
call fcn.180049f80
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x50]
movsxd r8, ebp
shl r8, 4
call sub.VCRUNTIME140.dll_memcpy
xor r9d, r9d
lea rdx, [rsp + 0x50]
xor r8d, r8d
mov rcx, rbx
call fcn.1800319e0
jmp 0x180009fe1
lea rcx, [rsp + 0x90]
call fcn.18016c740
test al, al
je 0x180009f9a
nop
int3
movsxd rsi, dword [rbx]
lea eax, [rsi + 1]
mov dword [rbx], eax
cmp eax, dword [r14 + 0xc]
jbe 0x180009fb2
mov edx, esi
mov rcx, r14
call fcn.18004af00
mov rax, qword [r14]
lea rcx, [rsi + rsi*4]
lea rdx, [rsp + 0x40]
lea rbx, [rax + rcx*8]
mov rcx, rbx
call fcn.180024cb0
xor edi, edi
lea rcx, [rsp + 0x40]
mov qword [rbx + 0x18], rdi
mov qword [rbx + 0x20], rdi
call fcn.1800443b0
mov byte [rbx + 0x10], al
mov rdi, qword [r13 + 0x28]
mov rbx, qword [r13 + 0x20]
cmp rbx, rdi
je 0x18000a00e
nop
mov rcx, qword [rbx]
mov r9, r15
mov r8, r12
mov dword [rsp + 0x20], esi
mov rdx, r14
call fcn.180009e20
add rbx, 8
cmp rbx, rdi
jne 0x180009ff0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x18000a01e
call qword [sym.imp.FactoryGameEGS_Core.dll_public:_static_void___cdecl_FMemory::Free_void____ptr64_]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret