joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140130000
Capabilities:
Execute anti-debugging instructions
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
xchg r8, rbp
mov qword [rsp + 0x18], rbp
jmp 0x140130156
xchg r8, rax
mov r8, qword [r10 + 0x10]
xchg r8, rax
je 0x140130052
jne 0x140130052
call rcx
mul r15
rcr r9d, 0x42
jae 0x14013056a
rcl r11d, 0xfa
test r11, rcx
lea r14d, [rdx + 0x7da6]
lea ebx, [rcx + 0x7a48]
mov r14d, 0x34121d9a
test r14d, 0x4fff1355
call rcx
movabs r8, 0x5a75c100000081e9
jmp 0x1401300d8
sub rsp, 8
lea rbp, [rsp - 0x2b8]
sub rsp, 0x3b8
jmp 0x140130204
xchg r8, rbp
mov qword [rsp + 0x10], rdx
xchg r13, rcx
mov qword [rsp + 8], r13
jne 0x140130180
je 0x140130180
lea r10d, [rcx - 0xdd9]
cmp r13, rbx
popfq
ror r13d, 0x8b
neg r8
pushf
movabs r8, 0x5dd563587c2a5beb
rol r15d, 0x48
test r13d, 0x55f829ed
test ebp, 0xf15c4272
rol ebp, 0xcf
cmp rsi, rcx
cpuid
call 0x14012fed7
jmp 0x1401301dd
xchg r13, rcx
push rbp
push rbx
jmp 0x1401301e7
push rdi
nop
push 0x6b043c99
mov qword [rsp], r13
push r14
nop
mov qword [rsp - 8], r15
jmp 0x14013013e
mov rax, qword gs:[0x60]
xor r13d, r13d
mov r8d, r13d
xchg r10, r8
mov r8, qword [rax + 0x18]
xchg r10, r8
jmp 0x140130012
test byte [rbp - 3], dh
loopne 0x140130571
call rax
movabs r11, 0x2b04c708360e1feb
cmp r15, rcx
call rax
jae 0x1401314a2
ror byte [rcx - 0x45], 1
test rcx, rdx
je 0x1401309b9
call 0x1401312fe
or byte [rcx], al
add byte [rax], al
xchg edx, eax
Function at 0x140131261
Capabilities:
Contain obfuscated stackstrings
Execute anti-debugging instructions
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
test al, 0xf6
div dh
test bh, 0x45
in al, dx
add dword [rcx + 0x45c73881], 0xf6f6f6ac
test bh, 0x45
invalid
Function at 0x4012d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov r11, rsp
sub rsp, 0x78
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov qword [r11 - 8], rdi
mov qword [r11 - 0x10], r12
mov qword [r11 - 0x18], r13
mov rax, qword [0x00413040]
xor rax, rsp
mov qword [rsp + 0x58], rax
movzx r13d, dl
mov rbx, rcx
mov byte [rsp + 0x38], 0x77
mov byte [rsp + 0x39], 0x58
mov byte [rsp + 0x3a], 0x52
mov byte [rsp + 0x3b], 0x79
mov byte [rsp + 0x3c], 0x4a
mov byte [rsp + 0x3d], 0x4a
mov byte [rsp + 0x3e], 0x5a
mov byte [rsp + 0x3f], 0x77
mov byte [rsp + 0x40], 0x53
mov byte [rsp + 0x41], 0x42
mov byte [rsp + 0x42], 0x49
mov byte [rsp + 0x43], 0x56
mov byte [rsp + 0x44], 0x50
mov byte [rsp + 0x45], 0x54
mov byte [rsp + 0x46], 0x67
mov byte [rsp + 0x47], 0x4e
mov byte [rsp + 0x48], 0x44
mov byte [rsp + 0x49], 0x52
mov byte [rsp + 0x4a], 0x61
mov byte [rsp + 0x4b], 0x43
mov byte [rsp + 0x4c], 0
mov rsi, qword [rcx + 0x18]
test rsi, rsi
je 0x40146e
xor eax, eax
mov rcx, 0xffffffffffffffff
lea rdi, [r11 - 0x40]
repne scasb al, byte [rdi]
not rcx
lea r12, [rcx - 1]
cmp qword [rbx + 0x20], 0x10
jb 0x4013a6
lea rdi, [rbx + 8]
mov rcx, qword [rdi]
jmp 0x4013ad
lea rdi, [rbx + 8]
mov rcx, rdi
mov r8, r12
cmp rsi, r12
cmovb r8, rsi
mov dword [rsp + 0x20], 1
mov r9d, 1
lea rdx, [rsp + 0x38]
call fcn.00409d90
movsxd rcx, eax
test eax, eax
jne 0x4013e3
cmp rsi, r12
jb 0x4013eb
cmp rsi, r12
setne al
mov ecx, eax
test ecx, ecx
je 0x40146e
test r13b, r13b
je 0x40142f
cmp qword [rbx + 0x20], 0x10
jb 0x4013fc
mov rcx, qword [rdi]
jmp 0x4013ff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rsi, rax
cmp qword [rbx + 0x20], 0x10
jb 0x401417
mov rcx, qword [rdi]
call fcn.00404290
mov qword [rbx + 0x20], 0xf
mov qword [rbx + 0x18], 0
mov byte [rdi], 0
mov rax, rsi
jmp 0x401494
cmp qword [rbx + 0x20], 0x10
jb 0x40143b
mov rcx, qword [rdi]
jmp 0x40143e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
cmp qword [rbx + 0x20], 0x10
jb 0x401456
mov rcx, qword [rdi]
call fcn.00404290
mov qword [rbx + 0x20], 0xf
mov qword [rbx + 0x18], 0
mov byte [rdi], 0
mov rax, rsi
jmp 0x401494
cmp qword [rbx + 0x20], 0x10
jb 0x40147e
mov rcx, qword [rbx + 8]
call fcn.00404290
mov qword [rbx + 0x20], 0xf
mov qword [rbx + 0x18], 0
mov byte [rbx + 8], 0
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.00404020
mov rbx, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x98]
mov rdi, qword [rsp + 0x70]
mov r12, qword [rsp + 0x68]
mov r13, qword [rsp + 0x60]
add rsp, 0x78
ret
Function at 0x404b57
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x00413040]
jne 0x40403a
rol rcx, 0x10
test cx, 0xffff
jne 0x404036
repz ret
ror rcx, 0x10
jmp 0x404ab0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x00414320]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x00414418]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x404b35
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x00414320]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x404b57
mov rax, qword [rsp + 0x88]
mov qword [0x00414418], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x004143b8], rax
mov rax, qword [0x00414418]
mov qword [0x00414290], rax
mov rax, qword [rsp + 0x90]
mov qword [0x004143a0], rax
mov dword [0x00414280], 0xc0000409
mov dword [0x00414284], 1
mov rax, qword [0x00413040]
mov qword [rsp + 0x68], rax
mov rax, qword [0x00413048]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x00414318], eax
mov ecx, 1
call fcn.004055f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x0040e2b8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x00414318], 0
jne 0x404bde
mov ecx, 1
call fcn.004055f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x408e00
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax - 8], r12
mov qword [rax - 0x10], r13
mov r13, rcx
mov edi, r8d
mov r12, rdx
call fcn.00405670
xor ebx, ebx
cmp qword [0x00414ff0], rbx
mov rsi, rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], ebx
jne 0x408f31
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rbp, rax
jne 0x408e63
xor eax, eax
jmp 0x409011
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x408e5c
mov rcx, rax
call fcn.00405600
lea rdx, str.GetActiveWindow
mov rcx, rbp
mov qword [0x00414ff0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00405600
lea rdx, str.GetLastActivePopup
mov rcx, rbp
mov qword [0x00414ff8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00405600
lea rcx, [rsp + 0x30]
mov qword [0x00415000], rax
call fcn.00405cb0
test eax, eax
je 0x408ee7
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.00404540
cmp dword [rsp + 0x30], 2
jne 0x408f31
lea rdx, str.GetUserObjectInformationA
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00405600
test rax, rax
mov qword [0x00415010], rax
je 0x408f31
lea rdx, str.GetProcessWindowStation
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00405600
mov qword [0x00415008], rax
mov rcx, qword [0x00415008]
cmp rcx, rsi
je 0x408fc3
cmp qword [0x00415010], rsi
je 0x408fc3
call fcn.004056d0
call rax
test rax, rax
mov rbp, rax
je 0x408f8e
mov rcx, qword [0x00415010]
call fcn.004056d0
lea rcx, [rsp + 0x38]
mov r9d, 0xc
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
lea r8, [rsp + 0x40]
mov rcx, rbp
call rax
test eax, eax
je 0x408f8e
test byte [rsp + 0x48], 1
jne 0x408fc3
lea rcx, [rsp + 0x34]
call fcn.00405d00
test eax, eax
je 0x408fb0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.00404540
cmp dword [rsp + 0x34], 4
jb 0x408fbd
bts edi, 0x15
jmp 0x408ff7
bts edi, 0x12
jmp 0x408ff7
mov rcx, qword [0x00414ff8]
cmp rcx, rsi
je 0x408ff7
call fcn.004056d0
call rax
test rax, rax
mov rbx, rax
je 0x408ff7
mov rcx, qword [0x00415000]
cmp rcx, rsi
je 0x408ff7
call fcn.004056d0
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x00414ff0]
call fcn.004056d0
mov r9d, edi
mov r8, r12
mov rdx, r13
mov rcx, rbx
call rax
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
add rsp, 0x68
ret
Function at 0x140007050
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x14002c010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r14, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor r15d, r15d
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
lea r12, [rsp + 0xc8]
movabs r13, 0xff00ff00ff00ff00
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], r12
mov rbx, qword [r12]
mov rsi, rbx
xor rsi, r13
mov qword [rsp + 0x68], rsi
mov qword [r12], r15
mov rcx, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x1400070cb
mov rcx, qword [rdx]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8d, [r9 + 1]
mov edx, dword [rdx + 0x10]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x140007107
mov qword [rdi], r15
mov qword [rdi + 8], r15
mov qword [rdi + 0x10], r15
mov qword [r12], rbx
jmp 0x140007222
mov ebp, dword [rsp + 0x48]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r15
test rbp, rbp
je 0x14000717b
cmp rbp, 0x1000
jb 0x140007153
lea rcx, [rbp + 0x27]
cmp rcx, rbp
jbe 0x140007250
call fcn.1400219c8
mov rcx, rax
test rax, rax
je 0x1400071f3
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x14000715b
mov rcx, rbp
call fcn.1400219c8
mov qword [rsp + 0x50], rax
lea rbx, [rax + rbp]
mov qword [rsp + 0x60], rbx
mov r8, rbp
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x58], rbx
mov edx, dword [r14 + 0x10]
cmp qword [r14 + 0x18], 0x10
jb 0x140007189
mov r14, qword [r14]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8d, 1
mov rcx, r14
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x140007201
mov qword [rdi], r15
mov qword [rdi + 8], r15
mov qword [rdi + 0x10], r15
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14000721b
mov rdx, qword [rsp + 0x60]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400071fa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400071fa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400219c0
jmp 0x14000721b
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], rdx
xor rsi, r13
mov qword [r12], rsi
mov rax, rdi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400219a0
mov rbx, qword [rsp + 0xe0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140001c50
nop
int3
Function at 0x140015580
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 0x1400155a8
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 0x1400155ce
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400155d0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140015629
test ecx, ecx
jle 0x140015609
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 0x140015629
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140015629
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 0x140015650
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 0x140015672
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140015688
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 0x1400156a4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400156a6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400156e2
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 0x14001577e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14001571d
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 0x14001575e
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 0x14001577e
cmp rbx, rax
ja 0x140015730
test rbx, rbx
je 0x14001577e
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 0x140015bb0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14002c010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140015bdd
xor eax, eax
jmp 0x140015d49
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140015c17
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140015c17
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 0x140015d49
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140015d3c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140015c5a
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 0x140015c85
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 0x140015d41
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 0x140015cf4
sub eax, 1
je 0x140015cf4
cmp eax, 2
jne 0x140015d3c
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 0x140015d41
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140015d22
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 0x140015d3c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140015d41
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400219a0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret

Function at 0x140016170
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rcx + 0x1384], 0xffffffff
lea r9, [rcx + 8]
mov dword [rcx + 4], edx
mov r8d, 1
nop word [rax + rax]
mov eax, edx
lea r9, [r9 + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, r8d
inc r8
mov dword [r9 - 4], edx
cmp r8, 0x270
jb 0x140016190
mov dword [rcx], 0x270
mov rax, rcx
ret
Function at 0x1400162c0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x1400162f4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x1400162e0
ret

Function at 0x140016ac0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14002c010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140016b93
cmp byte [rcx + 0x71], 0
je 0x140016b93
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140016b8f
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 0x140016b54
sub eax, 1
je 0x140016b58
cmp eax, 2
jne 0x140016b8f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400219a0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140016b86
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 0x140016b8f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140016b3c
xor al, al
jmp 0x140016b3c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400219a0
add rsp, 0x60
pop rbx
ret

Function at 0x140017140
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rcx + 4], edx
lea r9, [rcx + 8]
mov eax, 1
nop dword [rax]
mov r8d, edx
lea r9, [r9 + 4]
shr r8d, 0x1e
xor r8d, edx
imul edx, r8d, 0x6c078965
add edx, eax
inc rax
mov dword [r9 - 4], edx
cmp rax, 0x270
jb 0x140017150
mov dword [rcx], 0x270
ret
Function at 0x1400198a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x270
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x140019901
lea r8, [r10 + 8]
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 0x1400198c0
mov ecx, dword [r10]
jmp 0x1400199ea
cmp ecx, 0x4e0
jb 0x1400199ea
lea r11, [r10 + 0x9c4]
mov qword [rsp], rbx
mov eax, dword [r11]
mov ebx, 0xe3
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140019920
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140019970
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
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
add rsp, 8
ret