joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400839c0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.140082780
mov ecx, dword [0x140124788]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140083a00
test ebx, ebx
jle 0x1400839f0
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.140082830
test rax, rax
jne 0x1400839dd
add rsp, 0x20
pop rbx
ret

Function at 0x140083af0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140082780
mov ecx, dword [0x140124788]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140083b68
test byte [rbx + 0x40], 0xc
jne 0x140083b1f
mov eax, dword [0x140159238]
test eax, eax
jne 0x140083b30
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140081a00
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140083b53
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140083b53
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x140083b7c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140081cd0
call fcn.140082830
mov rbx, rax
test rax, rax
jne 0x140083b0f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x140083b9a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140081cd0
call fcn.140083a10
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140083c20
call fcn.140084d90
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140083c58
call fcn.140082780
mov ecx, dword [0x140124788]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140083cb0
test esi, esi
je 0x140083c36
call fcn.140083af0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140083c90
mov edx, edi
call fcn.140084e60
call fcn.140083af0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140082780
mov ecx, dword [0x140124788]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140083ca0
call fcn.140083af0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140083af0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140082780
mov ecx, dword [0x140124788]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140083bf5
call fcn.140082830
mov rbx, rax
jmp 0x140083bf5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140083c0e
call fcn.140082830
jmp 0x140083c36
call fcn.140082830
mov rbx, rax
jmp 0x140083bf1
Function at 0x140083bb0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140082780
mov ecx, dword [0x140124788]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140083b68
test byte [rbx + 0x40], 0xc
jne 0x140083b1f
mov eax, dword [0x140159238]
test eax, eax
jne 0x140083b30
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140081a00
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140083b53
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140083b53
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x140083b7c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140081cd0
call fcn.140082830
mov rbx, rax
test rax, rax
jne 0x140083b0f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x140083b9a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140081cd0
call fcn.140083a10
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140083c20
call fcn.140084d90
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140083c58
call fcn.140082780
mov ecx, dword [0x140124788]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140083cb0
test esi, esi
je 0x140083c36
call fcn.140083af0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140083c90
mov edx, edi
call fcn.140084e60
call fcn.140083af0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140082780
mov ecx, dword [0x140124788]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140083ca0
call fcn.140083af0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140083af0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140082780
mov ecx, dword [0x140124788]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140083bf5
call fcn.140082830
mov rbx, rax
jmp 0x140083bf5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140083c0e
call fcn.140082830
jmp 0x140083c36
call fcn.140082830
mov rbx, rax
jmp 0x140083bf1

Function at 0x140083cc0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.140082780
mov ecx, dword [0x140124788]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140083d30
test esi, esi
je 0x140083d10
call fcn.140083af0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140083d40
mov edx, esi
call fcn.140084e60
call fcn.140083af0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140083af0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140083af0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140082830
mov rbx, rax
jmp 0x140083ce1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140083cfa
Function at 0x140085080
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
lea rdi, [0x140124798]
mov rbx, rcx
mov rcx, rdi
mov esi, edx
call fcn.140085cc0
mov rax, qword [rbx]
cmp dword [rax], 0xbab1f0ed
jne 0x1400850c9
mov rax, qword [rbx]
mov eax, dword [rax + 4]
test eax, eax
jle 0x1400850c9
mov rax, qword [rbx]
mov rcx, rdi
sub dword [rax + 4], 1
call fcn.140085d00
mov eax, esi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [rsp + 0x20], 0x28
lea r9, str..._mingw_w64_mingw_w64_libraries_winpthreads_src_rwlock.c
lea r8, str.___rwlock_t__rwl___valid__LIFE_RWLOCK______rwlock_t__rwl___busy___0_
mov rcx, rax
lea rdx, str.Assertion_failed:___s___file__s__line__d_n
call fcn.140081410
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
nop word cs:[rax + rax]
nop
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x10]
neg eax
mov dword [rcx + 0xc], eax
mov rbx, rcx
lea rcx, [rcx + 0x20]
mov dword [rcx - 0x10], 0
call fcn.140081cd0
lea rcx, [rbx + 0x18]
add rsp, 0x20
pop rbx
jmp fcn.140081cd0

Function at 0x140085510
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.140085350
test eax, eax
je 0x140085538
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [rbx]
lea rdi, [rsi + 0x18]
mov rcx, rdi
call fcn.140081a00
test eax, eax
jne 0x140085561
lock add dword [rsi + 0xc], 1
cmp dword [rsi + 0xc], 0x7fffffff
je 0x140085578
mov rcx, rdi
call fcn.140081cd0
mov edx, eax
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.140085080
lea r12, [rsi + 0x20]
mov rcx, r12
call fcn.140081a00
mov ebp, eax
test eax, eax
je 0x1400855a0
mov rcx, rdi
call fcn.140081cd0
mov edx, ebp
jmp 0x140085563
mov eax, dword [rsi + 0x10]
sub dword [rsi + 0xc], eax
mov rcx, r12
mov dword [rsi + 0x10], 0
call fcn.140081cd0
mov rcx, rdi
mov esi, eax
call fcn.140081cd0
test esi, esi
mov edx, esi
cmove edx, eax
jmp 0x140085563

Function at 0x140085840
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbx, rcx
call fcn.140085010
test eax, eax
jne 0x1400858c0
mov rsi, qword [rbx]
mov edx, dword [rsi + 8]
test edx, edx
je 0x140085890
lock sub dword [rsi + 8], 1
lea rcx, [rsi + 0x20]
call fcn.140081cd0
lea rcx, [rsi + 0x18]
mov edi, eax
call fcn.140081cd0
test edi, edi
cmove edi, eax
mov edx, edi
mov rcx, rbx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
jmp fcn.140085080
lea rdi, [rsi + 0x20]
mov rcx, rdi
call fcn.140081a00
mov edx, eax
test eax, eax
jne 0x14008587d
lock add dword [rsi + 0x10], 1
mov eax, dword [rsi + 0x10]
test eax, eax
je 0x1400858d0
mov rcx, rdi
call fcn.140081cd0
mov edx, eax
jmp 0x14008587d
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
lea rcx, [rsi + 0x28]
call fcn.140086630
mov rcx, rdi
mov dword [rsp + 0x2c], eax
call fcn.140081cd0
mov edx, dword [rsp + 0x2c]
test edx, edx
cmove edx, eax
jmp 0x14008587d
Function at 0x140001890
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1400080a4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140001a40
mov rax, qword [0x1400080a8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400018dc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001967
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x1400018c0
mov rcx, r12
call fcn.140002340
mov rbp, rax
test rax, rax
je 0x140001a9d
mov rax, qword [0x1400080a8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.140002470
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400080a8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001a82
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001960
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400019f0
add dword [0x1400080a4], 1
cmp ebx, 8
jae 0x140001998
test bl, 4
jne 0x140001a50
test ebx, ebx
je 0x140001989
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140001a70
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x140001989
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x1400019ca
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x1400080a8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001960
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001820
xor edi, edi
jmp 0x1400018e7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140001989
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140001989
mov rax, qword [0x1400080a8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.140001820
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140001820
nop
nop dword [rax]
Function at 0x140001fb0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140008100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400080e0]
test rbx, rbx
je 0x140002004
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140001ffb
test r12, r12
je 0x140001ffb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001fe0
lea rcx, [0x140008100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002340
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x1400057a0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x1400023b9
mov rcx, r10
call fcn.140002210
test eax, eax
je 0x1400023b9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x1400023b6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x1400023ad
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x1400023b9
add r8, 0x28
cmp r8, r9
jne 0x140002398
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x140002800
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov r12, qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r15, qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
lea rdi, [rax + 0x20]
mov r14, qword [rax + 0x20]
mov qword [rsp + 0x48], rdi
mov rdi, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rbp, rcx
movzx r9d, word [r14 + 0x38]
mov r8, qword [r14 + 0x40]
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call r12
mov esi, eax
call rdi
mov r8d, esi
mov edx, 8
mov rcx, rax
call r15
movzx r9d, word [r14 + 0x38]
mov r8, qword [r14 + 0x40]
xor edx, edx
mov rbx, rax
xor ecx, ecx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rax
call r12
mov rcx, rbx
call qword [sym.imp.USER32.dll_CharUpperA]
mov rdx, rbp
mov rcx, rbx
call sub.msvcrt.dll_strstr
mov rsi, qword [sym.imp.KERNEL32.dll_HeapFree]
test rax, rax
je 0x1400028e7
mov r13, qword [r14 + 0x20]
call rdi
mov r8, rbx
xor edx, edx
mov rcx, rax
call rsi
jmp 0x140002901
call rdi
mov r8, rbx
xor edx, edx
mov rcx, rax
call rsi
mov r14, qword [r14]
cmp qword [rsp + 0x48], r14
jne 0x140002842
mov rax, r13
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140002920
Capabilities:
Create thread
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
xor esi, esi
mov rbp, rcx
lea rcx, str.KERNEL32.DLL
mov rbx, rdx
mov qword [rsp + 0xc0], r8
mov qword [rsp + 0xc8], r9
call fcn.140002800
mov rdi, rax
movsxd rax, dword [rax + 0x3c]
mov eax, dword [rdi + rax + 0x88]
add rax, rdi
mov ecx, dword [rax + 0x20]
mov edx, dword [rax + 0x24]
mov r15d, dword [rax + 0x1c]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x34], eax
lea rax, [rdi + rcx]
mov qword [rsp + 0x38], rax
lea rax, [rdi + rdx]
mov qword [rsp + 0x40], rax
cmp dword [rsp + 0x34], esi
jbe 0x1400029ea
mov rax, qword [rsp + 0x38]
mov ecx, dword [rax + rsi*4]
add rcx, rdi
mov qword [rsp + 0x48], rcx
call sub.msvcrt.dll_strlen
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
movzx edx, word [rdx + rsi*2]
lea rdx, [rdi + rdx*4]
mov r11d, dword [rdx + r15]
movsxd rdx, eax
add r11, rdi
call fcn.140002ad0
cmp eax, 0xfe4f8abd
jne 0x1400029d0
mov r14, r11
jmp 0x1400029e5
cmp eax, 0x5ff1b6a3
je 0x1400029e2
cmp eax, 0x46cefe20
cmove r12, r11
jmp 0x1400029e5
mov r13, r11
inc rsi
jmp 0x140002988
mov dword [rsp + 0x5c], 4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbx
xor edx, edx
mov r9d, 0x3000
mov r15, rax
mov eax, dword [rsp + 0x5c]
mov rcx, r15
mov dword [rsp + 0x20], eax
call r14
mov r9, rbx
mov r8, rbp
mov rcx, r15
mov qword [rsp + 0x20], 0
mov r14, rax
mov rdx, rax
call r13
mov r9, qword [rsp + 0xc8]
mov rdx, rbx
mov rcx, r14
mov r8, qword [rsp + 0xc0]
call fcn.140002b10
mov r9d, dword [rsp + 0xd8]
mov rdx, rbx
mov rcx, r14
mov r8, qword [rsp + 0xd0]
call fcn.140002b10
lea rax, [rsp + 0x5c]
mov r8, rbx
mov rdx, r14
mov rcx, r15
mov qword [rsp + 0x20], rax
mov r9d, 0x20
call r12
lea rax, [rsp + 0x58]
xor r9d, r9d
mov r8, r14
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140001520
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
sub rsp, 0xb8
cmp byte [0x140035b8b], 0
xorps xmm0, xmm0
mov eax, dword [0x140035b88]
movups xmmword [rsp + 0x48], xmm0
mov dword [rsp + 0x40], eax
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
movups xmm0, xmmword [0x140035b78]
movups xmmword [rsp + 0x30], xmm0
je 0x14000171d
xor ecx, ecx
cmp dword [0x140048018], 2
jl 0x1400016df
movdqa xmm0, xmmword [str.1111111111111111333333333333333366666666666666669999999999999999]
lea rdx, [rsp + 0x34]
movdqa xmm5, xmmword [0x140041920]
mov eax, 4
movdqa xmm4, xmmword [0x140041a40]
movaps xmmword [r11 - 0x18], xmm6
movaps xmmword [r11 - 0x28], xmm7
movdqa xmm7, xmmword [0x140041950]
movd xmm6, eax
mov eax, 0x1f
movdqa xmmword [rsp + 0x20], xmm0
mov r8d, dword [rsp + 0x20]
movaps xmmword [r11 - 0x38], xmm8
movd xmm8, eax
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ecx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
pand xmm2, xmmword [0x1400419b0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
pxor xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1400419b0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
pxor xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x10
jl 0x1400015c0
movaps xmm8, xmmword [rsp + 0x80]
movaps xmm7, xmmword [rsp + 0x90]
movaps xmm6, xmmword [rsp + 0xa0]
cmp ecx, 0x14
jge 0x14000171d
movsxd rax, ecx
lea r8, [rsp + 0x30]
add r8, rax
nop word [rax + rax]
mov eax, 0x51eb851f
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x32
movzx eax, cl
inc ecx
sub al, dl
add al, 0x31
xor byte [r8 - 1], al
cmp ecx, 0x14
jl 0x1400016f0
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x30]
call fcn.1400050d0
add rsp, 0xb8
ret
Function at 0x1400067b0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x138
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x140006822
lea r8, [r10 + 0x10]
movabs r11, 0xb5026f5aa96619e9
nop dword [rax]
nop word [rax + rax]
mov edx, dword [r8 - 8]
xor edx, dword [r8]
lea r8, [r8 + 8]
btr edx, 0x1f
xor rdx, qword [r8 - 0x10]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r8 + 0x4d0]
xor rcx, rdx
mov qword [r8 + 0x9b0], rcx
sub r9, 1
jne 0x1400067e0
mov ecx, dword [r10]
jmp 0x140006923
cmp ecx, 0x270
jb 0x140006923
mov qword [rsp + 0x10], rbx
movabs r11, 0xb5026f5aa96619e9
lea rbx, [r10 + 0x9c8]
mov qword [rsp], rdi
mov rax, qword [rbx]
mov edi, 0x9c
mov rdx, qword [rbx + 8]
lea r8, [rbx + 8]
xor rdx, rax
btr edx, 0x1f
xor rdx, rax
movzx eax, dl
and al, 1
neg al
mov rax, qword [r8]
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [rbx + 0x4e0]
xor rcx, rdx
mov qword [rbx - 0x9c0], rcx
lea rbx, [r8]
sub rdi, 1
jne 0x140006850
lea rbx, [r10 + 0xea8]
mov edi, 0x9b
mov rax, qword [rbx]
nop
mov rdx, rax
lea r8, [rbx + 8]
xor rdx, qword [r8]
btr edx, 0x1f
xor rdx, rax
movzx eax, dl
and al, 1
neg al
mov rax, qword [r8]
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [rbx - 0xea0]
xor rcx, rdx
mov qword [rbx - 0x9c0], rcx
lea rbx, [r8]
sub rdi, 1
jne 0x1400068a0
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 8]
mov rdi, qword [rsp]
btr edx, 0x1f
xor rdx, qword [r10 + 0x1380]
mov rbx, qword [rsp + 0x10]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r10 + 0x4e0]
xor rcx, rdx
mov qword [r10 + 0x9c0], rcx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov rdx, qword [r10 + rax*8 + 8]
lea eax, [rcx + 1]
mov dword [r10], eax
mov rcx, rdx
mov rax, qword [r10 + 0x1388]
shr rcx, 0x1d
and rax, rcx
movabs rcx, 0x38eb3ffff6d3
xor rdx, rax
mov rax, rdx
and rax, rcx
shl rax, 0x11
xor rdx, rax
mov rax, rdx
and rax, 0xffffffffffffbf77
shl rax, 0x25
xor rdx, rax
mov rax, rdx
shr rax, 0x2b
xor rax, rdx
add rsp, 8
ret
Function at 0x140006db0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140048010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x140081088]
mov rbx, r8
lea rsi, [rdi + 0x164]
lea rcx, [rdi + 0x16c]
mov dword [rsi], 1
call sub.VCRUNTIME140.dll_memcpy
mov dword [rdi + 0x168], ebx
add rbx, 8
je 0x140006e87
mov rax, qword [rdi]
test rax, rax
je 0x140006e45
mov rcx, qword [rax + 8]
cmp rcx, 0xffffffffffffffff
je 0x140006e45
test rsi, rsi
je 0x140006e45
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], 0
mov r8d, ebx
mov qword [rsp + 0x20], 0
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x140006e45
cmp dword [rsp + 0x30], ebx
je 0x140006e87
mov r8, qword [rdi + 0x18]
test r8, r8
je 0x140006e64
mov eax, dword [rdi + 8]
dec eax
test eax, 0xfffffffd
jne 0x140006e64
mov ecx, dword [rdi + 0x60]
lea rdx, [rdi + 0x64]
call r8
mov rbx, qword [rdi]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], 0xffffffffffffffff
xor al, al
mov byte [rbx], 0
mov dword [rdi + 8], 0
jmp 0x140006e89
mov al, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140032060
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x14000b7f0
Capabilities:
Print debug messages

Disassembly:
mov r11, rsp
sub rsp, 0xa8
movaps xmm0, xmmword [0x140037050]
movaps xmmword [rsp + 0x30], xmm0
movaps xmm1, xmmword [0x140037060]
movaps xmmword [rsp + 0x40], xmm1
movaps xmm0, xmmword [0x140037070]
movaps xmmword [rsp + 0x50], xmm0
movaps xmm1, xmmword [0x140037080]
movaps xmmword [rsp + 0x60], xmm1
movaps xmm0, xmmword [0x140037090]
movaps xmmword [rsp + 0x70], xmm0
movaps xmm1, xmmword [0x1400370a0]
movaps xmmword [r11 - 0x28], xmm1
movsd xmm0, qword [0x1400370b0]
movsd qword [r11 - 0x18], xmm0
mov eax, dword [0x1400370b8]
mov dword [r11 - 0x10], eax
movzx eax, word [0x1400370bc]
mov word [r11 - 0xc], ax
movzx eax, byte [str._OVL]
mov byte [r11 - 0xa], al
xor ecx, ecx
mov dword [rsp + 0x20], ecx
cmp ecx, 0x6f
jge 0x14000b8af
movsxd rax, ecx
lea r8, [rsp + 0x30]
add r8, rax
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x34
movzx eax, cl
sub al, dl
add al, 0x39
xor al, byte [r8]
mov byte [r8], al
inc ecx
jmp 0x14000b873
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x14000b8bc
add rsp, 0xa8
ret