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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rcx]
test rdx, rdx
mov rbx, rcx
mov rsi, rdx
je 0x140022a88
cmp eax, 1
je 0x1400229bb
call fcn.1400218e0
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.140021260
mov r12d, dword [rbx]
test r12d, r12d
je 0x1400229d0
cmp r12d, 1
jne 0x140022a60
mov rcx, rbp
call fcn.140021550
test rdi, rdi
je 0x1400229bb
mov rcx, rdi
call fcn.140021c80
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x140021d60]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.140021fe0
mov ecx, dword [0x140027798]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x140022ac8
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.140021fe0
mov ecx, dword [0x140027798]
call r12
test rax, rax
je 0x140022ab0
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.140021fe0
mov ecx, dword [0x140027798]
call r12
test rax, rax
je 0x140022aa0
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x1400229a6
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, r12d
mov r8, rbx
lea rdx, [0x140a2e6b2]
mov rcx, rax
call fcn.140020d30
jmp 0x1400229a6
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140022090
test rax, rax
jne 0x140022a49
jmp 0x140026a55
call fcn.140022090
test rax, rax
jne 0x140022a25
jmp 0x140026a6e
call fcn.140022090
test rax, rax
jne 0x1400229ff
jmp 0x140026a64
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2

Function at 0x140022d50
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.140021fe0
mov ecx, dword [0x140027798]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140022dc8
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.140025360
cmp esi, dword [rbx + 0x48]
jae 0x140022da3
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x140022da3
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.1400253a0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140022090
mov rbx, rax
jmp 0x140022d7d
Function at 0x140022de0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.140021fe0
mov ecx, dword [0x140027798]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140022ef0
lea r14, [rbx + 0x68]
mov rcx, r14
call fcn.140025360
cmp esi, dword [rbx + 0x48]
jae 0x140022e70
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r14
mov byte [rax + rsi], 1
call fcn.1400253a0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rbx + 0x50]
lea r15d, [rsi + 1]
movsxd r13, r15d
lea rdx, [r13*8]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
test rax, rax
mov rdi, rax
je 0x140022efd
mov rcx, qword [rbx + 0x58]
mov rdx, r13
movq xmm6, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
movq xmm0, rax
test rax, rax
mov r13, rax
punpcklqdq xmm6, xmm0
je 0x140022efd
mov eax, dword [rbx + 0x48]
mov edx, r15d
lea rcx, [rdi + rax*8]
sub edx, eax
lea r8, [rdx*8]
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov edx, dword [rbx + 0x48]
mov r8d, r15d
lea rcx, [r13 + rdx]
sub r8d, edx
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
movaps xmmword [rbx + 0x50], xmm6
mov dword [rbx + 0x48], r15d
jmp 0x140022e34
call fcn.140022090
mov rbx, rax
jmp 0x140022e1f
mov rcx, r14
call fcn.1400253a0
mov eax, 0xc
jmp 0x140022e52

Function at 0x140022f80
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140021fe0
mov ecx, dword [0x140027798]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140022fa8
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.140022090
test rax, rax
jne 0x140022f9a
add rsp, 0x28
ret

Function at 0x140023010
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140021fe0
mov ecx, dword [0x140027798]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140023038
add rax, 0x18
add rsp, 0x28
ret
call fcn.140022090
test rax, rax
jne 0x14002302a
jmp 0x14002302e

Function at 0x140023150
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140a356f8]
test eax, eax
jne 0x140023168
xor eax, eax
add rsp, 0x28
ret
call fcn.140021fe0
mov ecx, dword [0x140027798]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140023198
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14002315e
test byte [rax + 0x40], 3
je 0x14002315e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x140023160
call fcn.140022090
test rax, rax
jne 0x14002317e
jmp 0x14002315e
Function at 0x1400231b0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.140021fe0
mov ecx, dword [0x140027798]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400231f0
test ebx, ebx
jle 0x1400231e0
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.140022090
test rax, rax
jne 0x1400231cd
add rsp, 0x20
pop rbx
ret

Function at 0x1400232e0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140021fe0
mov ecx, dword [0x140027798]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140023358
test byte [rbx + 0x40], 0xc
jne 0x14002330f
mov eax, dword [0x140a356f8]
test eax, eax
jne 0x140023320
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140021260
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140023343
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140023343
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14002336c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140021550
call fcn.140022090
test rax, rax
mov rbx, rax
jne 0x1400232ff
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x30]
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14002338a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140021550
call fcn.140023200
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140023410
call fcn.1400244f0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140023448
call fcn.140021fe0
mov ecx, dword [0x140027798]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x1400234a0
test esi, esi
je 0x140023426
call fcn.1400232e0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140023480
mov edx, edi
call fcn.1400245a0
call fcn.1400232e0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140021fe0
mov ecx, dword [0x140027798]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140023490
call fcn.1400232e0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400232e0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140021fe0
mov ecx, dword [0x140027798]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x1400233e5
call fcn.140022090
mov rbx, rax
jmp 0x1400233e5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400233fe
call fcn.140022090
jmp 0x140023426
call fcn.140022090
mov rbx, rax
jmp 0x1400233e1
Function at 0x1400233a0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140021fe0
mov ecx, dword [0x140027798]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140023358
test byte [rbx + 0x40], 0xc
jne 0x14002330f
mov eax, dword [0x140a356f8]
test eax, eax
jne 0x140023320
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140021260
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140023343
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140023343
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14002336c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140021550
call fcn.140022090
test rax, rax
mov rbx, rax
jne 0x1400232ff
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x30]
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14002338a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140021550
call fcn.140023200
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140023410
call fcn.1400244f0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140023448
call fcn.140021fe0
mov ecx, dword [0x140027798]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x1400234a0
test esi, esi
je 0x140023426
call fcn.1400232e0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140023480
mov edx, edi
call fcn.1400245a0
call fcn.1400232e0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140021fe0
mov ecx, dword [0x140027798]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140023490
call fcn.1400232e0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400232e0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140021fe0
mov ecx, dword [0x140027798]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x1400233e5
call fcn.140022090
mov rbx, rax
jmp 0x1400233e5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400233fe
call fcn.140022090
jmp 0x140023426
call fcn.140022090
mov rbx, rax
jmp 0x1400233e1

Function at 0x1400234b0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.140021fe0
mov ecx, dword [0x140027798]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140023520
test esi, esi
je 0x140023500
call fcn.1400232e0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140023530
mov edx, esi
call fcn.1400245a0
call fcn.1400232e0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1400232e0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400232e0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140022090
mov rbx, rax
jmp 0x1400234d1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400234ea
Function at 0x1800017d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
push r15
mov rsi, qword [rsp + 0x48]
xor r14d, r14d
mov rbx, qword [rsp + 0x60]
mov r12, r9
mov rcx, qword [rsp + 0x50]
mov r13, r8
mov rbp, qword [rsp + 0x58]
mov r15, rdx
mov qword [rsi], r8
mov qword [rbx], rcx
mov rax, qword [rsi]
cmp rax, r9
je 0x180001965
cmp rcx, rbp
je 0x180001965
mov r9d, 1
movzx edx, word [r15]
xor dil, dil
movzx ecx, word [rax]
mov r11d, 0x2800
mov r8d, 0x3ff
mov r10d, 0x2400
cmp r9w, dx
jae 0x18000186c
lea eax, [r10 + rcx]
cmp ax, r8w
ja 0x18000198c
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x180001883
mov eax, ecx
add cx, r11w
cmp cx, r8w
ja 0x180001883
shl eax, 0xa
mov dil, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x180001896
movzx r8d, al
mov r10d, r14d
mov r11d, r14d
jmp 0x1800018e3
mov r8d, eax
cmp eax, 0x800
jae 0x1800018b0
shr r8d, 6
mov r10d, r9d
or r8b, 0xc0
mov r11d, r9d
jmp 0x1800018e3
cmp eax, 0x10000
jae 0x1800018ca
shr r8d, 0xc
mov r10d, 2
or r8b, 0xe0
mov r11d, r10d
jmp 0x1800018e3
shr r8d, 0x12
mov r10d, 3
movzx r11d, dil
or r8b, 0xf0
xor r11d, 1
add r11d, r11d
lea r9d, [r11 + 1]
mov rdx, rbp
sub rdx, qword [rbx]
mov ecx, r9d
cmp rdx, rcx
jl 0x180001965
add qword [rsi], 2
test dil, dil
jne 0x180001904
cmp r10d, 3
jae 0x180001910
mov rcx, qword [rbx]
mov r9d, r11d
mov byte [rcx], r8b
inc qword [rbx]
mov r8, qword [rbx]
test r9d, r9d
jle 0x18000193e
lea ecx, [r10 + r10*2]
add ecx, ecx
nop
sub ecx, 6
mov edx, eax
shr edx, cl
dec r9d
and dl, 0x3f
or dl, 0x80
mov byte [r8], dl
inc qword [rbx]
mov r8, qword [rbx]
test r9d, r9d
jg 0x180001920
shr eax, 0xa
mov r9d, 1
test dil, dil
mov ecx, r9d
cmovne ecx, eax
mov word [r15], cx
mov rax, qword [rsi]
cmp rax, r12
je 0x180001965
cmp qword [rbx], rbp
jne 0x18000182d
cmp r13, qword [rsi]
sete r14b
mov eax, r14d
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
ret
mov eax, 2
jmp 0x18000196f
Function at 0x180006550
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x180006578
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x18000659e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1800065a0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1800065f9
test ecx, ecx
jle 0x1800065d9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1800065f9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1800065f9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x180006620
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x180006642
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x180006658
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x180006674
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180006676
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1800066b2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x18000674e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1800066ed
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x18000672e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x18000674e
cmp rbx, rax
ja 0x180006700
test rbx, rbx
je 0x18000674e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x180006bb0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1800bd040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x180006bdd
xor eax, eax
jmp 0x180006d49
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x180006c17
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x180006c17
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 0x180006d49
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x180006d3c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180006c5a
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 0x180006c85
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 0x180006d41
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 0x180006cf4
sub eax, 1
je 0x180006cf4
cmp eax, 2
jne 0x180006d3c
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 0x180006d41
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x180006d22
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 0x180006d3c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x180006d41
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.18007ea60
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x18000a000
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1800bd040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x18000a0d3
cmp byte [rcx + 0x71], 0
je 0x18000a0d3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x18000a0cf
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 0x18000a094
sub eax, 1
je 0x18000a098
cmp eax, 2
jne 0x18000a0cf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18007ea60
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x18000a0c6
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 0x18000a0cf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18000a07c
xor al, al
jmp 0x18000a07c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18007ea60
add rsp, 0x60
pop rbx
ret
Function at 0x18001b2e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x40
mov r14, rdx
mov rdi, rcx
lea rsi, [0x1800bd0a0]
mov qword [rsp + 0x70], rsi
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x18001b31d
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
cmp dword [0x1800bd0ec], 0x7fffffff
jne 0x18001b33f
mov dword [0x1800bd0ec], 0x7ffffffe
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov r8, qword [rdi + 0x10]
mov rdx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x18001b350
mov rdx, qword [rdi]
xor ecx, ecx
movabs r9, 0xcbf29ce484222325
test r8, r8
je 0x18001b383
movabs r10, 0x100000001b3
nop dword [rax + rax]
movzx eax, byte [rdx + rcx]
xor r9, rax
imul r9, r10
inc rcx
cmp rcx, r8
jb 0x18001b370
mov r8, rdi
lea rdx, [rsp + 0x20]
call fcn.18001bf40
cmp qword [rax + 8], 0
je 0x18001b3ae
mov r8, rdi
lea rdx, [rsp + 0x30]
call fcn.18001b920
mov rcx, qword [rax]
cmp qword [rcx + 0x30], 0
jne 0x18001b3df
mov rdx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x18001b3bb
mov rdx, qword [rdi]
mov rcx, qword [0x1800c1a58]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov r8, rdi
lea rdx, [rsp + 0x30]
call fcn.18001b920
mov rcx, qword [rax]
mov qword [rcx + 0x30], rbx
mov r8, rdi
lea rdx, [rsp + 0x30]
call fcn.18001b920
mov rcx, qword [rax]
cmp qword [rcx + 0x30], 0
je 0x18001b427
mov r8, rdi
lea rdx, [rsp + 0x30]
call fcn.18001b920
mov rax, qword [rax]
mov rdx, qword [rax + 0x30]
mov rcx, r14
call rdx
mov rbx, rax
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov rax, rbx
jmp 0x18001b430
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret