joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400047f0
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0xe0
xor eax, eax
xor r9d, r9d
mov rbx, rcx
lea rdi, [rsp + 0x78]
mov ecx, 0xc
mov qword [rsp + 0x74], 0
mov qword [rsp + 0xd0], 0
lea r8, [rsp + 0x70]
rep stosq qword [rdi], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], r8
mov rcx, rbx
xor r8d, r8d
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140004928
mov rcx, qword [rsp + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
lea rdx, [0x14000b270]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1400048c0
mov rcx, qword [rsp + 0x50]
mov rbx, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rbx
mov rcx, qword [rsp + 0x58]
call rbx
nop
add rsp, 0xe0
pop rbx
pop rsi
pop rdi
ret
mov rbx, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
call rbx
mov r8d, 0xd
mov edx, 1
lea rcx, str.FATAL_ERROR:
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 2
mov esi, eax
call rbx
mov r8d, esi
lea rdx, str.Failed_to_get_exit_status__error__lu_.
mov rcx, rax
call fcn.1400060c0
mov ecx, 2
call rbx
mov ecx, 0xa
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
jmp 0x14000489c
mov rdi, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
call rdi
mov r8d, 0xd
mov edx, 1
lea rcx, str.FATAL_ERROR:
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 2
mov esi, eax
call rdi
mov r9d, esi
mov r8, rbx
lea rdx, str.Failed_to_create_process___s_:__lu
mov rcx, rax
call fcn.1400060c0
mov ecx, 2
call rdi
mov ecx, 0xa
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
nop
add rsp, 0xe0
pop rbx
pop rsi
pop rdi
ret
Function at 0x1400052a0
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.1400060a0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x140005310
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000b304]
mov rbx, rcx
test esi, esi
jle 0x140005440
mov rax, qword [0x14000b308]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000535b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400053e5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140005340
mov rcx, rbx
call fcn.140005d80
mov rdi, rax
test rax, rax
je 0x140005462
mov rax, qword [0x14000b308]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140005ec0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000b308]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140005447
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400053de
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400053f0
add dword [0x14000b304], 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 [0x14000b308]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400053de
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400052a0
nop dword [rax]
xor esi, esi
jmp 0x140005368
mov rax, qword [0x14000b308]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400052a0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400052a0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x1400059f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000b360]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000b340]
test rbx, rbx
je 0x140005a4c
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 0x140005a43
test eax, eax
jne 0x140005a43
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140005a28
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 0x140005d80
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140005e00
Capabilities:
Parse pe header

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

Function at 0x140005ec0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140008880]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140005edf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140005ee8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400cc6b0]
mov dword [rax], 1
mov rax, qword [0x1400cc6c0]
mov dword [rax], 1
mov rax, qword [0x1400cc6d0]
mov dword [rax], 1
mov rax, qword [0x1400cc660]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14002db30
Capabilities:
Query environment variable

Disassembly:
push r15
mov eax, 0x10088
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.1400a7790
sub rsp, rax
xor edx, edx
mov rbp, rcx
xor ecx, ecx
mov word [rsp + 0x80], dx
lea r15, [rsp + 0x30]
movzx eax, byte [rbp]
mov word [rsp + 0x30], cx
test al, al
je 0x14002dbf5
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1400b8662
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14002dbd6
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x14002dbc8
test rsi, rsi
je 0x1400b8662
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x14002db88
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x14002dc24
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10088
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop

Function at 0x14002dc40
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
movzx eax, byte [rcx]
mov qword [rsp + 0xd8], rdx
xor edx, edx
mov rbp, rcx
lea r15, [rsp + 0x30]
mov word [rsp + 0x30], dx
test al, al
je 0x14002dcfd
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1400b8668
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14002dcde
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x14002dcd0
test rsi, rsi
je 0x1400b8668
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x14002dc90
mov rdx, qword [rsp + 0xd8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400a3ea0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400dd6a1], 0
mov rbp, rcx
mov rdi, rdx
mov r12, r8
je 0x1400a3f48
lea rdx, [0x1400c863a]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400a3fb0
mov rbx, qword [0x1400dd540]
jmp 0x1400a3ee5
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, r12
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x1400a3ee0
movzx eax, word [rdx + 4]
lea r8, [rdx + 6]
test ax, ax
je 0x1400a3f37
lea rbx, [rdi + rax*8]
nop word cs:[rax + rax]
mov rdx, rdi
mov rcx, rbp
add rdi, 8
call fcn.140093ec0
mov r8, rax
cmp rdi, rbx
jne 0x1400a3f20
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x1400dd540], rax
mov ebx, dword [rax]
mov qword [0x1400dd540], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1400dd540], rdx
call fcn.1400a2fd0
cmp eax, ebx
jne 0x1400a4018
mov byte [0x1400dd6a1], 1
jmp 0x1400a3ec0
cmp byte [0x1400dd6a0], 0
jne 0x1400a3ed7
mov rbx, qword [sym.imp.python312.dll_PyDict_New]
call rbx
mov qword [0x1400de248], rax
call rbx
mov qword [0x1400de240], rax
call rbx
mov qword [0x1400de238], rax
call rbx
mov qword [0x1400de230], rax
call rbx
mov qword [0x1400de228], rax
call rbx
mov qword [0x1400de220], rax
call rbx
mov qword [0x1400de218], rax
call rbx
mov byte [0x1400dd6a0], 1
mov qword [0x1400de210], rax
jmp 0x1400a3ed7
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x1400a6470
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.1400b7bf0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1400b7bf0
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x1400a7142
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400de708]
test eax, eax
je 0x1400a71da
lea rax, [0x1400de6e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400de710]
mov qword [rbp - 8], rax
jmp 0x1400a71be
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400a71b2
cmp qword [rbp - 0x10], 0
je 0x1400a71b2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400a7178
lea rax, [0x1400de6e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400a71db
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400a72e0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400a7308
mov eax, 0
jmp 0x1400a7356
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400a7331
mov eax, 0
jmp 0x1400a7356
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400a7351
mov eax, 0
jmp 0x1400a7356
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1400a735c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1400a73da
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400a73d1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1400a73d1
mov rax, qword [rbp - 8]
jmp 0x1400a73ef
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400a73a4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140e7b058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140e7b1df
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 0x140e7b089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e7b06f
add dl, dl
jne 0x140e7b096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e7b0f6
xor eax, eax
add dl, dl
jne 0x140e7b0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e7b1ad
add dl, dl
jne 0x140e7b0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e7b0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e7b0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e7b0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140e7b0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140e7b07e
mov eax, 1
add dl, dl
jne 0x140e7b106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e7b113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e7b0fb
sub eax, ebx
mov ebx, 1
jne 0x140e7b14c
mov ecx, 1
add dl, dl
jne 0x140e7b12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140e7b13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e7b123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e7b07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140e7b168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140e7b175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e7b15d
cmp eax, 0x7d00
jae 0x140e7b19b
cmp eax, 0x500
jb 0x140e7b196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e7b07e
cmp eax, 0x7f
ja 0x140e7b19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e7b07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140e7b1d2
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 0x140e7b07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140016970
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
mov eax, 0x13e0
call fcn.140158bf0
sub rsp, rax
movaps xmmword [rsp + 0x13d0], xmm6
mov rbx, rcx
movaps xmmword [rsp + 0x13c0], xmm7
movaps xmm6, xmm3
movaps xmmword [rsp + 0x13b0], xmm8
movaps xmm7, xmm2
movaps xmm8, xmm1
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x13a4], 0xffffffff
mov r8d, 1
mov dword [rsp + 0x24], eax
mov r9d, 0x270
nop word [rax + rax]
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, r8d
mov dword [rsp + r8*4 + 0x24], eax
inc r8
cmp r8, r9
jb 0x1400169d0
movss xmm0, dword [0x1401817a0]
lea r8, [rsp + 0x28]
movaps xmm2, xmm8
mov dword [rsp + 0x20], r9d
movaps xmm3, xmm7
movaps xmm4, xmm6
xor eax, eax
xorps xmm2, xmm0
xorps xmm3, xmm0
mov qword [rbx + 4], rax
xorps xmm4, xmm0
xorps xmm5, xmm5
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x140016a20
mov ecx, dword [rsp + 0x20]
subss xmm8, xmm2
movss xmm1, dword [0x1401811c8]
xorps xmm0, xmm0
mov edx, dword [rsp + rcx*4 + 0x24]
mov eax, edx
shr eax, 0xb
inc ecx
and eax, dword [rsp + 0x13a4]
xor edx, eax
mov dword [rsp + 0x20], ecx
mov eax, edx
lea rcx, [rsp + 0x20]
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
cvtsi2ss xmm0, rax
subss xmm0, xmm5
addss xmm0, xmm5
mulss xmm0, xmm1
mulss xmm0, xmm8
addss xmm0, xmm2
movss dword [rbx], xmm0
call fcn.14001f8b0
xorps xmm0, xmm0
mov eax, eax
subss xmm7, xmm3
lea rcx, [rsp + 0x20]
cvtsi2ss xmm0, rax
subss xmm0, xmm5
addss xmm0, xmm5
mulss xmm0, xmm1
mulss xmm0, xmm7
addss xmm0, xmm3
movss dword [rbx + 4], xmm0
call fcn.14001f8b0
xorps xmm0, xmm0
mov eax, eax
lea r11, [rsp + 0x13e0]
movaps xmm7, xmmword [r11 - 0x20]
subss xmm6, xmm4
movaps xmm8, xmmword [r11 - 0x30]
cvtsi2ss xmm0, rax
mov rax, rbx
subss xmm0, xmm5
addss xmm0, xmm5
mulss xmm0, xmm1
mulss xmm0, xmm6
movaps xmm6, xmmword [r11 - 0x10]
addss xmm0, xmm4
movss dword [rbx + 8], xmm0
mov rsp, r11
pop rbx
ret
Function at 0x140017030
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
mov eax, 0x13e0
call fcn.140158bf0
sub rsp, rax
movaps xmmword [rsp + 0x13d0], xmm6
mov rbx, rcx
movaps xmmword [rsp + 0x13c0], xmm7
movaps xmm6, xmm1
movaps xmmword [rsp + 0x13b0], xmm8
movaps xmm7, xmm2
movaps xmm8, xmm3
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x13a4], 0xffffffff
mov r8d, 1
mov dword [rsp + 0x24], eax
mov r9d, 0x270
nop word [rax + rax]
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, r8d
mov dword [rsp + r8*4 + 0x24], eax
inc r8
cmp r8, r9
jb 0x140017090
movss xmm0, dword [0x140181294]
lea r8, [rsp + 0x28]
movaps xmm2, xmm0
mov dword [rsp + 0x20], r9d
movaps xmm3, xmm0
subss xmm2, xmm6
movaps xmm4, xmm0
subss xmm3, xmm7
xor eax, eax
subss xmm4, xmm8
addss xmm6, xmm0
mov qword [rbx + 4], rax
addss xmm7, xmm0
xorps xmm5, xmm5
addss xmm8, xmm0
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x1400170f0
mov ecx, dword [rsp + 0x20]
subss xmm6, xmm2
movss xmm1, dword [0x1401811c8]
xorps xmm0, xmm0
mov edx, dword [rsp + rcx*4 + 0x24]
mov eax, edx
shr eax, 0xb
inc ecx
and eax, dword [rsp + 0x13a4]
xor edx, eax
mov dword [rsp + 0x20], ecx
mov eax, edx
lea rcx, [rsp + 0x20]
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
cvtsi2ss xmm0, rax
subss xmm0, xmm5
addss xmm0, xmm5
mulss xmm0, xmm1
mulss xmm0, xmm6
addss xmm0, xmm2
movss dword [rbx], xmm0
call fcn.14001f8b0
xorps xmm0, xmm0
mov eax, eax
subss xmm7, xmm3
lea rcx, [rsp + 0x20]
cvtsi2ss xmm0, rax
subss xmm0, xmm5
addss xmm0, xmm5
mulss xmm0, xmm1
mulss xmm0, xmm7
addss xmm0, xmm3
movss dword [rbx + 4], xmm0
call fcn.14001f8b0
xorps xmm0, xmm0
mov eax, eax
lea r11, [rsp + 0x13e0]
movaps xmm6, xmmword [r11 - 0x10]
subss xmm8, xmm4
movaps xmm7, xmmword [r11 - 0x20]
cvtsi2ss xmm0, rax
mov rax, rbx
subss xmm0, xmm5
addss xmm0, xmm5
mulss xmm0, xmm1
mulss xmm0, xmm8
movaps xmm8, xmmword [r11 - 0x30]
addss xmm0, xmm4
movss dword [rbx + 8], xmm0
mov rsp, r11
pop rbx
ret