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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rax, qword [rcx + 0x20]
xor r15d, r15d
sub rax, 0x34
mov qword [rcx + 0x78], r15
mov qword [rcx + 0x28], rax
mov r14d, edx
mov rax, qword [rcx + 0x30]
mov rbx, rcx
mov word [rcx + 0x6a], r15w
lea ebp, [r15 - 1]
mov dword [rcx + 0x3c], r15d
mov edi, r15d
mov qword [rcx + 0x70], rax
mov qword [rax + 0x10], rax
mov word [rcx + 0x68], r15w
cmp r15w, word [rcx + 0xb8]
jge 0x1400a91fb
mov esi, r15d
mov rax, qword [rbx + 0xd0]
lea edx, [rbp + 1]
mov dword [rbx + 0x88], r15d
mov r9d, r14d
mov qword [rbx + 0x80], r15
mov rcx, rbx
movsx ebp, word [rsi + rax]
mov r8d, ebp
call fcn.1400a9590
test al, al
jne 0x1400a9296
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 0x5c]
lea eax, [r8 - 1]
test edx, eax
jne 0x1400a918f
cmp edx, dword [rbx + 0x60]
jl 0x1400a918f
cmp edx, dword [rbx + 0x64]
jg 0x1400a918f
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x1400a918f
mov rax, qword [rbx + 0x70]
movzx ecx, byte [rcx + 0x18]
xor cl, byte [rax + 0x18]
test cl, 8
jne 0x1400a918f
add qword [rbx + 0x30], 0xfffffffffffffffc
mov r9, qword [rbx + 0x70]
mov rax, qword [r9 + 0x10]
cmp qword [rbx + 0x30], rax
je 0x1400a91b2
test byte [r9 + 0x18], 8
je 0x1400a91b2
neg r8d
and r8d, edx
sub edx, r8d
cmp edx, dword [rbx + 8]
jmp 0x1400a91c3
lea eax, [r8 - 1]
neg r8d
add eax, edx
and eax, r8d
sub eax, edx
cmp eax, dword [rbx + 8]
setge dl
mov rcx, rbx
call fcn.1400a9f60
test al, al
jne 0x1400a9296
mov rax, qword [rbx + 0x80]
test rax, rax
je 0x1400a91e6
mov qword [r9 + 0x28], rax
movsx eax, word [rbx + 0xb8]
inc edi
add rsi, 2
cmp edi, eax
jl 0x1400a9123
movzx edi, word [rbx + 0x68]
mov rdx, qword [rbx + 0x78]
cmp di, 1
jbe 0x1400a929a
test rdx, rdx
je 0x1400a929a
mov ebp, 0xffff
nop dword [rax + rax]
lea rsi, [rdx + 8]
cmp di, 1
jbe 0x1400a9238
movsxd rcx, dword [rdx + 0x1c]
mov rax, qword [rdx + 0x10]
lea r10, [rax + rcx*4]
jmp 0x1400a923b
mov r10, r15
mov qword [rsi], r10
test byte [rdx + 0x18], 8
mov r11d, dword [rdx + 0x20]
mov r8d, r11d
mov eax, dword [rdx + 0x1c]
je 0x1400a9256
dec r11d
add r11d, eax
jmp 0x1400a926d
sub r8d, eax
inc r8d
dec eax
mov dword [rdx + 0x20], r8d
movsxd rcx, eax
shl rcx, 2
add qword [rdx + 0x10], rcx
mov edx, r8d
mov rcx, rbx
call fcn.1400aa280
test al, al
jne 0x1400a9296
lea edx, [r11 + 1]
mov rcx, rbx
call fcn.1400aa280
test al, al
jne 0x1400a9296
mov rdx, qword [rsi]
add di, bp
jne 0x1400a9220
jmp 0x1400a929e
mov al, 1
jmp 0x1400a92a9
mov qword [rbx + 0x78], r15
mov rax, qword [rbx + 0x28]
cmp qword [rbx + 0x30], rax
setae al
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x1400af340
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbx
push rbp
sub rsp, 0x48
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x1400af35c
lea eax, [rcx + 0x28]
add rsp, 0x48
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov edx, 0x80000000
xor r14d, r14d
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400af3b0
mov r14, qword [rsp + 0x40]
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0x68]
add rsp, 0x48
pop rbp
pop rbx
ret
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400af4d5
mov rax, qword [rsp + 0x70]
cmp rax, 0x7fffffff
jg 0x1400af4d5
test rax, rax
je 0x1400af4d5
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
test rax, rax
je 0x1400af4d5
mov ecx, dword [rsp + 0x70]
xor r9d, r9d
mov dword [rbx + 8], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], r14d
mov qword [rsp + 0x20], r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r14
je 0x1400af44a
lea rax, [0x1400af530]
jmp 0x1400af4a3
mov rcx, qword [rbx + 0x30]
xor edx, edx
movsxd r8, dword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x1400af4d5
mov edi, r14d
nop dword [rax + rax]
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x60]
mov edx, edi
sub r8d, edi
add rdx, qword [rbx]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400af4c3
add edi, dword [rsp + 0x60]
cmp edi, dword [rbx + 8]
jne 0x1400af470
lea rax, [0x1400af500]
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], r14
jmp 0x1400af4ea
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov r8, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x51
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret
Function at 0x1400b0c40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x1400b0c4b
xor eax, eax
ret
lea r11, [0x1400d1f00]
not ecx
cmp r8d, 8
jb 0x1400b0d21
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x1400b0c70
test r8d, r8d
je 0x1400b0d4d
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x1400b0d30
not ecx
mov eax, ecx
ret
Function at 0x1400087bc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140008808
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140008800
cmp dword [rcx + 0x3c], edx
jl 0x140008800
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140008800
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140008808
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140001b28
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001b72
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001b72
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001b72
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001b72
cmp dword [rcx + 0x84], 0xe
jbe 0x140001b72
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001b74
xor al, al
add rsp, 0x28
ret

Function at 0x140004c80
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004cca
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004cca
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004cca
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004cca
cmp dword [rcx + 0x84], 0xe
jbe 0x140004cca
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140004ccc
xor al, al
add rsp, 0x28
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:BuildAgentwork78a794e88763017dUE4EngineSourceRuntimeCorePublicContainersArray.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:BuildAgentwork78a794e88763017dUE4EngineSourceRuntimeCorePublicContainersArray.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
Function at 0x1422dc058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1422dc1df
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 0x1422dc089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1422dc06f
add dl, dl
jne 0x1422dc096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1422dc0f6
xor eax, eax
add dl, dl
jne 0x1422dc0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1422dc1ad
add dl, dl
jne 0x1422dc0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1422dc0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1422dc0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1422dc0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1422dc0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1422dc07e
mov eax, 1
add dl, dl
jne 0x1422dc106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1422dc113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1422dc0fb
sub eax, ebx
mov ebx, 1
jne 0x1422dc14c
mov ecx, 1
add dl, dl
jne 0x1422dc12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1422dc13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1422dc123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1422dc07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1422dc168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1422dc175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1422dc15d
cmp eax, 0x7d00
jae 0x1422dc19b
cmp eax, 0x500
jb 0x1422dc196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1422dc07e
cmp eax, 0x7f
ja 0x1422dc19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1422dc07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1422dc1d2
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 0x1422dc07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140009550
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400a10c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000957d
xor eax, eax
jmp 0x1400096e9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400095b7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400095b7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1400096e9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400096dc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400095fa
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140009625
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400096e1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140009694
sub eax, 1
je 0x140009694
cmp eax, 2
jne 0x1400096dc
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400096e1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400096c2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1400096dc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400096e1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14007ead0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14000afa0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400a10c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000b073
cmp byte [rcx + 0x71], 0
je 0x14000b073
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x14000b06f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000b034
sub eax, 1
je 0x14000b038
cmp eax, 2
jne 0x14000b06f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14007ead0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000b066
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000b06f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000b01c
xor al, al
jmp 0x14000b01c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14007ead0
add rsp, 0x60
pop rbx
ret

Function at 0x14001af80
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov r10, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
cmp byte [r8 + 7], sil
je 0x14001afb4
mov eax, esi
lea ecx, [rax + 0x7f]
xor byte [r8 + rax], cl
inc rax
cmp rax, 6
jb 0x14001afa0
mov byte [r8 + 7], sil
add r8, 6
lea r9, [rsp + 0x20]
mov rdx, r10
lea rcx, [rsp + 0x30]
call fcn.140011800
nop
mov r9, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x14001afd9
mov rbx, qword [rbx]
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140028840
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x14001b053
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001b04e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001b04e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007ed74
mov rax, rdi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret