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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xffffffffffffffff
lea rax, [0x14001b64a]
mov rdx, rax
lea rax, [0x1402c8bf0]
mov rcx, rax
call fcn.14001ac42
mov eax, dword [0x140294450]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x14001b87a
mov rax, qword [rbp - 0x10]
jmp 0x14001b9da
call fcn.14001a3a5
mov qword [rbp - 0x10], rax
mov rax, qword [0x1402cb048]
test rax, rax
je 0x14001b896
cmp qword [rbp - 0x10], 0
jne 0x14001b8a0
mov eax, 0
jmp 0x14001b9da
mov rax, qword [rbp - 0x10]
mov dword [rax + 0x44], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0x70], eax
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov rdx, qword [rbp - 0x10]
mov qword [rdx + 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 0x10]
lea rcx, [rax + 0x68]
mov rax, qword [rbp - 8]
mov rdx, rax
call fcn.14001a4c9
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xb8], 0
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
lea rdi, [rax + 0x28]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rsi, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rdi
mov r8, rsi
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call rax
test eax, eax
jne 0x14001b97b
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadPriority]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0xc0], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 0
mov rax, qword [rbp - 0x10]
movzx edx, byte [rax + 0x40]
and edx, 0xffffffcf
or edx, 0x10
mov byte [rax + 0x40], dl
mov eax, dword [0x140294450]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x14001b9d6
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
mov rax, qword [rbp - 0x10]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x14001bad7
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x10], 0
mov rax, qword [rbp + 0x10]
mov dword [rbp - 4], eax
call fcn.14001b827
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp + 0x10]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call fcn.14001b678
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax + 0x40]
and eax, 0x30
test al, al
jne 0x14001bb44
mov rax, qword [rbp - 0x18]
add rax, 0xd0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_longjmp]
call rax
mov eax, dword [0x140294450]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x14001bc88
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x14001bbe1
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x14001bb9c
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.14001a27e
mov qword [rbp - 0x10], 0
mov eax, dword [0x140294450]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x14001bc88
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 1
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x14001bc1b
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x44]
and eax, 4
test eax, eax
je 0x14001bc88
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.14001a27e
mov qword [rbp - 0x10], 0
mov eax, dword [0x140294450]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__endthreadex]
call rax
nop
Function at 0x14001dd70
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
lea rax, [0x140294470]
mov rcx, rax
call fcn.140019afc
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov eax, dword [rax]
cmp eax, 0xbab1f0ed
jne 0x14001ddac
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov eax, dword [rax + 4]
test eax, eax
jg 0x14001ddec
mov ecx, 2
mov rax, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call rax
mov rcx, rax
mov dword [rsp + 0x20], 0x28
lea r9, str..._.._.._mingw_w64_libraries_winpthreads_src_rwlock.c
lea r8, str.___rwlock_t__rwl___valid__LIFE_RWLOCK______rwlock_t__rwl___busy___0_
lea rax, str.Assertion_failed:___s___file__s__line__d_n
mov rdx, rax
call fcn.1400170a0
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov edx, dword [rax + 4]
sub edx, 1
mov dword [rax + 4], edx
lea rax, [0x140294470]
mov rcx, rax
call fcn.140019b7b
mov eax, dword [rbp + 0x18]
add rsp, 0x30
pop rbp
ret

Function at 0x1400234f0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
call rcx
nop
jmp 0x1400bb990
Function at 0x140083100
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.api_ms_win_crt_stdio_l1_1_0.dll__fileno
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x140083148
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14008311a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1400bb590
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x498
call fcn.14000b3c7
lea rsi, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FreeConsole]
mov ecx, 5
call fcn.140001709
lea rcx, str.TEMP
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov rbx, rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
test rbx, rbx
jne 0x1400bb5e7
lea rcx, [0x14029706a]
call fcn.1400bbb90
mov rcx, rbx
lea r12, [rsp + 0x2a0]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
cmp rax, 0xf
mov qword [rsp + 0x2a0], rax
lea rdi, [rbx + rax]
jbe 0x1400bb629
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
call fcn.1400a87a0
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x2a0]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x30]
mov rdx, rbx
mov r8, rdi
lea r15, [rsp + 0x2b0]
call fcn.1400a65f0
mov rax, qword [rsp + 0x2a0]
mov rdx, qword [rsp + 0x30]
mov rcx, r12
mov qword [rsp + 0x38], rax
mov byte [rdx + rax], 0
mov rbx, qword [rsp + 0x38]
xor edx, edx
mov qword [rsp + 0x2a8], rdx
mov rdi, qword [rsp + 0x30]
lea rdx, [rbx + 0xd]
mov qword [rsp + 0x2a0], r15
mov byte [rsp + 0x2b0], 0
call fcn.1400a8510
mov r8d, 0xd
lea rdx, str.cmd__c_start
mov rcx, r12
call fcn.140001744
mov r8, rbx
mov rdx, rdi
mov rcx, r12
call fcn.140001744
jmp 0x1400bb6b1
lea rdx, str._screenshot.png
mov rcx, r12
call fcn.1400a7150
lea rdi, [rsp + 0x50]
mov rdx, rax
mov rcx, rdi
call fcn.1400a8a00
mov rcx, r12
call fcn.1400a5c80
lea r8, str._screenshot.png
mov rdx, rsi
mov rcx, r12
call fcn.1400b8dd0
lea rbp, [rsp + 0xb0]
mov r8d, 0x14
mov rdx, r12
mov rcx, rbp
call fcn.14008e410
mov rcx, r12
lea rbx, [0x1400be020]
lea r14, [rsp + 0xc0]
call fcn.1400a5c80
lea r13, [rbx + 0xc91a4]
movsx edx, byte [rbx]
mov rcx, r14
call fcn.1400016d0
inc rbx
cmp rbx, r13
jne 0x1400bb721
mov rcx, rbp
call fcn.14008dfa0
xor eax, eax
mov r9, qword [rsp + 0x50]
mov ecx, 1
lea r8, str.cmd.exe
mov qword [rsp + 0x20], rax
mov rdx, r8
call sub.api_ms_win_crt_process_l1_1_0.dll__spawnlp
mov ecx, 0xa
call fcn.140001709
lea r13, [rsp + 0x70]
lea r8, str._screenshot.exe
mov rdx, rsi
mov rcx, r13
call fcn.1400b8dd0
lea r14, [rsp + 0x90]
lea r8, str._screenshot.exe
mov rdx, rsi
mov rcx, r14
call fcn.1400b8dd0
mov r8d, 0x14
mov rdx, r14
mov rcx, r12
call fcn.14008e410
mov rcx, r14
lea rbx, [0x1401871e0]
call fcn.1400a5c80
lea r14, [rbx + 0x10d098]
movsx edx, byte [rbx]
mov rcx, r15
call fcn.1400016d0
inc rbx
cmp rbx, r14
jne 0x1400bb7be
mov rcx, r12
call fcn.14008dfa0
mov rcx, qword [rsp + 0x70]
xor r8d, r8d
mov rdx, rcx
call sub.api_ms_win_crt_process_l1_1_0.dll__execl
mov rcx, r12
call fcn.14008ed80
mov rcx, r13
call fcn.1400a5c80
mov rcx, rbp
call fcn.14008ed80
mov rcx, rdi
call fcn.1400a5c80
mov rcx, rsi
call fcn.1400a5c80
xor eax, eax
add rsp, 0x498
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400bb990
Capabilities:
Write file on windows

Disassembly:
call fcn.1400bae40
call fcn.1400bb090
mov rbx, qword [rax]
test byte [rbx + 0x50], 1
je 0x1400bb957
mov rbx, qword [rbx]
lea r12, [rsp + 0x20]
mov rdx, rbp
xor ecx, ecx
mov r8, r12
call fcn.1400230e0
mov rdx, qword [rbx - 0x90]
mov r9, rsi
mov r8, rbx
mov rcx, r12
call fcn.1400231d0
test al, al
jne 0x1400bb975
lea rbx, [0x14029f300]
mov r9, rsi
xor r8d, r8d
mov rcx, r12
mov rdx, rbx
call fcn.1400231d0
test al, al
je 0x1400bb97a
mov ecx, 8
call fcn.1400badd0
lea r8, [0x140089320]
mov rdx, rbx
mov rcx, rax
mov rax, qword [0x14029cea0]
add rax, 0x10
mov qword [rcx], rax
call fcn.1400bb350
add rbx, 0x90
jmp 0x1400bb8e6
call fcn.1400bb300
mov rcx, rdi
call fcn.1400234f0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
mov rcx, rax
call fcn.1400bae40
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov rcx, rax
mov rax, rdx
sub rax, 1
jne 0x1400bba2c
call fcn.1400bae40
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
call fcn.1400baf70
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
call fcn.1400bb300
call fcn.1400bae40
call fcn.1400baf70
jmp 0x1400bba1a
Function at 0x1400bb9b0
Capabilities:
Write file on windows

Disassembly:
call fcn.1400bae40
call fcn.1400bb090
mov rbx, qword [rax]
test byte [rbx + 0x50], 1
je 0x1400bb957
mov rbx, qword [rbx]
lea r12, [rsp + 0x20]
mov rdx, rbp
xor ecx, ecx
mov r8, r12
call fcn.1400230e0
mov rdx, qword [rbx - 0x90]
mov r9, rsi
mov r8, rbx
mov rcx, r12
call fcn.1400231d0
test al, al
jne 0x1400bb975
lea rbx, [0x14029f300]
mov r9, rsi
xor r8d, r8d
mov rcx, r12
mov rdx, rbx
call fcn.1400231d0
test al, al
je 0x1400bb97a
mov ecx, 8
call fcn.1400badd0
lea r8, [0x140089320]
mov rdx, rbx
mov rcx, rax
mov rax, qword [0x14029cea0]
add rax, 0x10
mov qword [rcx], rax
call fcn.1400bb350
add rbx, 0x90
jmp 0x1400bb8e6
call fcn.1400bb300
mov rcx, rdi
call fcn.1400234f0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
mov rcx, rax
call fcn.1400bae40
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov rcx, rax
mov rax, rdx
sub rax, 1
jne 0x1400bba2c
call fcn.1400bae40
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
call fcn.1400baf70
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
call fcn.1400bb300
call fcn.1400bae40
call fcn.1400baf70
jmp 0x1400bba1a
Function at 0x421d90
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x421d9d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x421dad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x421d95
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x421dc5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x421db2
sub eax, 3
jb 0x421ddf
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x421e16
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x421e06
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x421e04
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x421df3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.00421d52
jmp 0x421d9d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x8a00
mov dl, 6
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x421e62
cmp rsi, rcx
jae 0x421e6a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x421e49
cmp al, 0x8f
ja 0x421e49
cmp byte [rsi - 2], 0xf
je 0x421e4f
sub al, 0xe8
cmp al, 1
ja 0x421e33
cmp rsi, rcx
jae 0x421e6a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x421e39
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x421e6a
lodsb al, byte [rsi]
jmp 0x421e49
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1f000]
mov eax, dword [rdi]
or eax, eax
je 0x421ec7
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x21000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x421e77
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x421ec1
mov qword [rbx], rax
add rbx, 8
jmp 0x421e97
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.00421f4a], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.00421f4a
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x421f3a
sub rsp, 0xffffffffffffff80
jmp 0x4014e0
Function at 0x140008720
Capabilities:
Hash data with crc32

Disassembly:
mov rax, qword [rcx + 0x1e8]
mov r10, r8
movsxd r9, dword [rcx + 0x1e0]
mov r11, rdx
mov rcx, r11
mov r8d, dword [rax + r9*4 - 4]
mov eax, r10d
sub eax, edx
neg r10
sbb edx, edx
and edx, eax
jmp fcn.140009104

Function at 0x140008d94
Capabilities:
Read file on windows

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
movsxd r15, r9d
mov rsi, r8
test r8, r8
je 0x140008dbb
and qword [r8], 0
call fcn.140008ed0
mov rbx, rax
test rax, rax
je 0x140008eb4
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140008eab
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140008eab
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140008eab
mov rax, qword [0x14004aca0]
mov rbp, rdi
test rax, rax
je 0x140008e23
inc dword [rax + 0x3c8]
mov rdx, qword [0x14004acb0]
lea rcx, [r15 + rdi]
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x140008eab
mov r9, rbx
mov r8, rbp
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rbp
je 0x140008e82
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14004aca0]
test rax, rax
je 0x140008e70
dec dword [rax + 0x3c8]
mov rdx, qword [0x14004acb0]
mov rcx, rdi
call qword [0x140049008]
jmp 0x140008eb4
test r15d, r15d
jle 0x140008e95
lea rcx, [rdi + rbp]
mov r8, r15
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x140008ea6
mov qword [rsi], rbp
mov rax, rdi
jmp 0x140008eb6
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
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 0x140009104
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
cmp dword [0x14004acd4], 0
lea rsi, [0x14004acd0]
mov ebx, r8d
mov edi, edx
mov r10, rcx
jne 0x14000916b
xor r9d, r9d
mov r11, rsi
mov r8d, r9d
mov edx, 8
mov ecx, r8d
mov eax, r8d
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xedb88320
mov r8d, ecx
xor r8d, eax
sub rdx, 1
jne 0x140009139
mov dword [r11], r8d
inc r9d
add r11, 4
cmp r9d, 0x100
jb 0x140009131
not ebx
mov edx, ebx
test edi, edi
jle 0x14000918d
movzx eax, byte [r10]
inc r10
movzx ecx, dl
xor rcx, rax
shr edx, 8
xor edx, dword [rsi + rcx*4]
sub edi, 1
jne 0x140009173
jmp 0x1400091c7
mov r8b, byte [r10]
inc r10
test r8b, r8b
je 0x1400091c7
mov r9b, 0x23
cmp r8b, r9b
jne 0x1400091ac
cmp byte [r10], r9b
jne 0x1400091ac
cmp byte [r10 + 1], r9b
cmove edx, ebx
movzx ecx, dl
movzx eax, r8b
mov r8b, byte [r10]
xor rcx, rax
shr edx, 8
inc r10
xor edx, dword [rsi + rcx*4]
test r8b, r8b
jne 0x14000919b
mov rbx, qword [rsp + 8]
not edx
mov rsi, qword [rsp + 0x10]
mov eax, edx
mov rdi, qword [rsp + 0x18]
ret
Function at 0x14000e3f8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x14004aca0]
mov rbx, rcx
and dword [rax + 0x2d9c], 0
test rcx, rcx
je 0x14000e461
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.14000e46c
lea rdx, [0x14003e974]
mov rcx, rbx
mov rdi, rax
call fcn.140008ed0
mov rbx, rax
test rax, rax
je 0x14000e461
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14001d2b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
xor r14d, r14d
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
mov rsi, rdx
movsxd rdi, r9d
mov rbp, rcx
test r9d, r9d
jle 0x14001d4a1
lea rbx, [r8 + 0x20]
xor r13d, r13d
lea r8d, [r14 + 1]
mov r11d, pe_nt_image_headers64
xorps xmm7, xmm7
movss xmm6, dword [rbx - 0x20]
comiss xmm6, xmm7
jbe 0x14001d352
movsxd r10, dword [rsi + 0x24]
mov r9, qword [rsi + 8]
movsx ecx, r11w
movzx eax, byte [r10 + r9 + 7]
movzx edx, byte [r10 + r9 + 6]
imul edx, ecx
movsx ecx, r11w
add dx, ax
movzx eax, byte [r10 + r9 + 5]
movsx r8d, dx
movzx edx, byte [r10 + r9 + 4]
imul edx, ecx
add ax, dx
cwde
sub eax, r8d
mov r8d, 1
movd xmm0, eax
jmp 0x14001d374
movsxd rdx, dword [rsi + 0x1c]
mov rax, qword [rsi + 8]
xorps xmm6, xmmword [0x14003eaf0]
movzx ecx, byte [rdx + rax + 0x12]
movzx eax, byte [rdx + rax + 0x13]
shl ecx, 8
add ecx, eax
movd xmm0, ecx
mov al, byte [rbp + 0x20]
xor r15d, r15d
cvtdq2ps xmm0, xmm0
mov byte [rbx], al
mov al, byte [rbp + 0x24]
mov byte [rbx + 1], al
divss xmm6, xmm0
cmp dword [rbx - 0x10], r15d
jle 0x14001d494
mov rcx, qword [rsp + 0xe0]
mov rax, r13
shl rax, 4
add rcx, 6
xor r12d, r12d
add rcx, rax
mov qword [rsp + 0x60], rcx
mov rax, qword [rbx - 0x18]
test rax, rax
jne 0x14001d3c2
mov edx, dword [rbx - 0x1c]
add edx, r15d
jmp 0x14001d3c6
mov edx, dword [rax + r12]
mov rcx, rsi
call fcn.14001ca08
mov edx, eax
xorps xmm3, xmm3
mov eax, dword [rbp + 0x24]
xorps xmm2, xmm2
mov rcx, rsi
cvtsi2ss xmm3, rax
mov eax, dword [rbp + 0x20]
cvtsi2ss xmm2, rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x30], rax
movss dword [rsp + 0x28], xmm7
mulss xmm3, xmm6
mulss xmm2, xmm6
movss dword [rsp + 0x20], xmm7
call fcn.14001ce40
mov rcx, qword [rsp + 0x60]
mov r8d, 1
movzx eax, word [rbp + 0x20]
add r14d, r8d
sub ax, word [rsp + 0xd8]
add r13, r8
add ax, word [rbp + 0x1c]
add r15d, r8d
add ax, word [rsp + 0x50]
add r12, 4
sub ax, r8w
mov word [rcx - 2], ax
movzx eax, word [rbp + 0x24]
sub ax, word [rsp + 0x54]
add ax, word [rbp + 0x1c]
add ax, word [rsp + 0x58]
sub ax, r8w
mov word [rcx], ax
add rcx, 0x10
mov qword [rsp + 0x60], rcx
cmp r15d, dword [rbx - 0x10]
jl 0x14001d3b1
mov r11d, pe_nt_image_headers64
add rbx, 0x28
sub rdi, r8
jne 0x14001d300
movaps xmm7, xmmword [rsp + 0x70]
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov eax, r14d
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret