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

Disassembly:
push rbx
sub rsp, 0x20
call fcn.00418b20
mov ebx, eax
test ebx, ebx
je 0x418b79
cmp dword [0x0054e63c], 0xffffffff
jne 0x418b53
mov ecx, 0xe2
call fcn.0040eb20
mov ecx, ebx
call fcn.00418b00
test rax, rax
jne 0x418b6b
mov ecx, 0xe2
call fcn.0040eb20
jmp 0x418b79
mov ecx, dword [0x0054e63c]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

Function at 0x418bc0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
lea rax, [0x248]
test rax, rax
je 0x418bff
cmp dword [0x0054e63c], 0xffffffff
je 0x418bff
mov ecx, dword [0x0054e63c]
call sub.kernel32.dll_TlsGetValue
test rax, rax
je 0x418bff
mov rcx, rax
call sub.kernel32.dll_LocalFree
mov ecx, dword [0x0054e63c]
xor edx, edx
call sub.kernel32.dll_TlsSetValue
add rsp, 0x28
ret

Function at 0x418c40
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x005712c8], 0
je 0x418c7b
mov ecx, dword [0x0054e63c]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x418c8e
call fcn.00418b30
mov ecx, dword [0x0054e63c]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x418c8e
mov rax, qword [0x005712c0]
jmp 0x418c8e
mov rax, qword gs:[0x58]
mov ecx, dword [0x0054e63c]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret
Function at 0x4378d0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x8e0
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
lea r8, [rbp + 0x60]
mov r9d, 0x400
call fcn.00437690
mov ebx, eax
mov rax, qword [0x0056a6f0]
cmp byte [rax], 0
je 0x4379ff
mov rcx, qword [0x0056a380]
call fcn.0040ac30
call fcn.004094e0
mov ecx, 1
xor edx, edx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte
mov esi, eax
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00437890]
mov r8d, 1
movsxd r9, esi
call fcn.00413110
mov ecx, 1
xor edx, edx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
mov rdx, qword [rbp + 0x58]
mov r8d, esi
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x00437a8c]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x437a42
mov rcx, qword [0x00571288]
call fcn.00413af0
mov rcx, rax
mov rax, qword [0x0056a308]
mov edx, dword [rax + 8]
lea r8, [rbp + 0x860]
mov r9d, 0x40
call sub.user32.dll_LoadStringW
xor ecx, ecx
lea rdx, [rbp + 0x60]
lea r8, [rbp + 0x860]
mov r9d, 0x2010
call sub.user32.dll_MessageBoxW
nop
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00437890]
call fcn.004132e0
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret

Function at 0x43aca0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x240
mov rbp, rsp
mov rbx, rcx
mov rcx, rbx
call fcn.0040f670
mov r13d, eax
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call fcn.00417830
mov esi, eax
cmp esi, 0x104
jbe 0x43acfb
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.004091a0
mov rdi, rax
jmp 0x43acff
lea rdi, [rbp + 0x38]
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], esi
call fcn.00417830
mov rcx, rdi
call sub.user32.dll_CharUpperW
xor ebx, ebx
xor ecx, ecx
mov edx, esi
sub edx, 1
mov eax, ecx
cmp eax, edx
jg 0x43ad55
sub edx, ecx
add edx, 1
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movsxd rcx, eax
movzx ecx, word [rdi + rcx*2]
xor ebx, ecx
add eax, 1
sub edx, 1
test edx, edx
jne 0x43ad36
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x43ad67
mov rcx, rdi
call fcn.004091d0
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret

Function at 0x454820
Capabilities:
Encode data using xor

Disassembly:
mov al, 0xb5
mov r8, rcx
xor edx, edx
mov ecx, edx
and ecx, 0x3f
mov r9, r8
shr r9, cl
and r9b, 0xff
xor al, r9b
add edx, 1
cmp edx, 8
jne 0x454827
nop
ret
Function at 0x45b670
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov eax, r8d
mov edx, edx
lea rdx, [rcx + rdx]
cmp rcx, rdx
jae 0x45b694
movzx r8, byte [rcx]
xor eax, r8d
imul eax, eax, 0x1000193
add rcx, 1
cmp rcx, rdx
jb 0x45b67e
nop
ret

Function at 0x4727f0
Capabilities:
Get system information on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x68
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x80], rcx
mov byte [rbp + 0x88], dl
cmp byte [rbp + 0x88], 0
je 0x47282e
mov rcx, qword [rbp + 0x80]
movzx rdx, byte [rbp + 0x88]
call fcn.0040c4b0
mov qword [rbp + 0x80], rax
nop
mov rcx, qword [0x0046a730]
mov dl, 1
call fcn.0049f890
mov rcx, qword [rbp + 0x80]
mov qword [rcx + 8], rax
mov rcx, qword [0x004712d8]
mov dl, 1
call fcn.004a4630
mov rcx, qword [rbp + 0x80]
mov qword [rcx + 0x10], rax
mov rcx, qword [0x004712d8]
mov dl, 1
call fcn.004a4630
mov rcx, qword [rbp + 0x80]
mov qword [rcx + 0x18], rax
lea rcx, [rbp + 0x30]
call sub.kernel32.dll_GetSystemInfo
mov rax, qword [rbp + 0x80]
mov ecx, dword [rbp + 0x34]
mov dword [rax + 0x20], ecx
cmp byte [rbp + 0x88], 0
je 0x4728eb
mov rcx, qword [rbp + 0x80]
call fcn.0040c4f0
mov qword [rbp + 0x80], rax
jmp 0x4728eb
mov rax, qword [rbp + 0x80]
lea rsp, [rbp + 0x68]
pop rbx
pop rbp
ret

Function at 0x503560
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x28
movzx rax, byte [rcx + 0x19]
or al, dl
test al, al
je 0x5035b0
cmp byte [rcx + 0x1d], 0
jne 0x5035b0
cmp byte [rcx + 0x40], 0
jne 0x5035b0
mov byte [rcx + 0x1b], 0
mov byte [rcx + 0x19], 0
mov rcx, qword [rcx + 0x10]
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x5035cd
mov rcx, qword [0x004c4448]
mov dl, 1
mov r8, qword [0x0056a660]
call fcn.00437d30
mov rcx, rax
call fcn.0040df70
jmp 0x5035cd
mov rcx, qword [0x004c4448]
mov dl, 1
mov r8, qword [0x0056a660]
call fcn.00437d30
mov rcx, rax
call fcn.0040df70
add rsp, 0x28
ret

Function at 0x504260
Capabilities:
Suspend thread

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x50], rcx
mov rax, qword [rbp + 0x50]
movzx rax, byte [rax + 0x1b]
mov byte [rbp + 0x3f], al
nop
mov rax, qword [rbp + 0x50]
mov byte [rax + 0x1b], 1
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax + 0x10]
call sub.kernel32.dll_SuspendThread
mov rcx, qword [rbp + 0x50]
test eax, eax
setge dl
call fcn.005033e0
jmp 0x5042bb
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x5042e0
Capabilities:
Resume thread

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rcx, qword [rbx + 0x10]
call sub.kernel32.dll_ResumeThread
mov esi, eax
mov rcx, rbx
test esi, esi
setge dl
call fcn.005033e0
cmp esi, 1
jne 0x50430a
mov byte [rbx + 0x1b], 0
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x140001c0c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140093010]
xor rax, rsp
mov qword [rsp + 0x48], rax
movzx eax, byte [rdx]
mov r11, rcx
mov r10, qword [rsp + 0x88]
shl eax, 0x18
mov dword [rsp + 0x38], eax
movzx eax, word [rdx + 1]
mov dword [rsp + 0x3c], eax
mov rax, qword [rdx + 3]
add rdx, 0xb
mov qword [rsp + 0x40], rax
mov rax, qword [rcx + 8]
mov qword [r10], rax
mov rax, qword [rcx + 8]
mov qword [rsp + 0x28], r10
movzx ecx, word [rax]
mov dword [r10 + 8], ecx
lea rcx, str.ETW0
mov qword [r10 + 0x10], rdx
mov dword [r10 + 0xc], 2
movzx eax, word [rdx]
lea rdx, [rsp + 0x38]
mov dword [r10 + 0x18], eax
lea rax, [0x140085d1f]
sub eax, ecx
mov dword [r10 + 0x1c], 1
mov rcx, qword [r11 + 0x20]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_EventWriteTransfer]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400521d0
add rsp, 0x58
ret
Function at 0x140004648
Capabilities:
Get file version info

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0xf0
mov rax, qword [0x140093010]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov rsi, rcx
mov qword [rsp + 0x20], rcx
and qword [r11 - 0x70], 0
cmp qword [rdx + 0x18], 8
jb 0x140004683
mov rdx, qword [rdx]
lea rcx, [rsp + 0x98]
call fcn.1400051e0
nop
lea rdx, [rsp + 0xc0]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
test eax, eax
je 0x140004811
xorps xmm1, xmm1
movdqu xmmword [rsp + 0xa8], xmm1
xor ebx, ebx
mov qword [rsp + 0xb8], rbx
mov edx, eax
test eax, eax
je 0x1400046e3
lfence
lea rcx, [rsp + 0xa8]
call fcn.14000527c
mov rbx, qword [rsp + 0xb8]
mov r8, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xa8]
sub r8, rdi
mov r9, rdi
xor edx, edx
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x1400047fe
lea r9, [rsp + 0xa0]
lea r8, [rsp + 0x90]
lea rdx, [0x14005b5ec]
mov rcx, rdi
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1400047fe
cmp dword [rsp + 0xa0], 0x34
jb 0x1400047fe
mov r14, qword [rsp + 0x90]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0xc8], xmm0
mov qword [rsp + 0xd8], rax
movups xmmword [rsp + 0x40], xmm0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0xc8]
call fcn.140004f44
movzx eax, word [r14 + 0xa]
mov rdx, qword [rsp + 0xc8]
mov dword [rdx], eax
movzx eax, word [r14 + 8]
mov dword [rdx + 4], eax
movzx eax, word [r14 + 0xe]
mov dword [rdx + 8], eax
movzx eax, word [r14 + 0xc]
mov dword [rdx + 0xc], eax
mov qword [rsi], rdx
mov rax, qword [rsp + 0xd0]
mov qword [rsi + 8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsi + 0x10], rax
test rdi, rdi
je 0x1400047e5
sub rbx, rdi
mov rdx, rbx
mov rcx, rdi
call fcn.140009db8
nop
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x1400047f9
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
mov rax, rsi
jmp 0x140004878
test rdi, rdi
je 0x140004811
sub rbx, rdi
mov rdx, rbx
mov rcx, rdi
call fcn.140009db8
mov rcx, qword [rsp + 0x108]
mov r9d, 0x80070490
lea r8, str.D:_a_work1_sEosAppEosAppLibHostUtilities.h
mov edx, 0x14b
call fcn.1400080d4
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140004f44
nop
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x14000486e
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
mov rax, rsi
jmp 0x140004878
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1400521d0
mov rbx, qword [rsp + 0x120]
add rsp, 0xf0
pop r14
pop rdi
pop rsi
ret
Function at 0x140005ab0
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [rcx + 8]
mov r8d, dword [r8]
mov rdx, qword [rdx]
mov rbx, qword [r9]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, eax
xor ecx, ecx
mov qword [rbx], rax
test rax, rax
jne 0x140005af0
mov rcx, qword [rsp + 0x28]
lea r8, str.D:_a_work1_spackagesMicrosoft.Windows.Wil.Internal.0.2.86incwilopensourcewilwin32_helpers.h
mov edx, 0xd3
call fcn.140008570
mov ecx, eax
mov eax, ecx
add rsp, 0x20
pop rbx
ret
Function at 0x140008bc0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x13c0]
mov eax, 0x14c0
call fcn.140054300
sub rsp, rax
mov r14, r8
mov esi, edx
mov rdi, rcx
mov r15, qword [rbp + 0x1428]
xor r13d, r13d
mov word [rbp + 0x3c0], r13w
mov byte [rbp - 0x40], r13b
mov rbx, qword [rbp + 0x1430]
mov ecx, dword [rbx]
mov dword [rsp + 0x28], ecx
mov eax, dword [rbx + 4]
mov dword [rsp + 0x2c], eax
call fcn.140009200
mov r12d, eax
mov dword [rsp + 0x20], 3
mov ecx, r13d
lea eax, [r13 + 8]
cmp byte [rbx + 8], r13b
cmovne ecx, eax
mov dword [rsp + 0x24], ecx
lea ecx, [rax - 7]
lock xadd dword [0x1400ad390], ecx
inc ecx
mov dword [rsp + 0x30], ecx
mov rcx, qword [rbp + 0x1438]
test rcx, rcx
je 0x140008c61
cmp word [rcx], r13w
mov qword [rsp + 0x38], rcx
jne 0x140008c66
mov qword [rsp + 0x38], r13
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x58], r14
mov dword [rsp + 0x60], esi
mov dword [rsp + 0x64], r12d
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], r13
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x50], rdi
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rax
xorps xmm1, xmm1
movups xmmword [rsp + 0x68], xmm1
movups xmmword [rsp + 0x78], xmm1
mov rax, qword [0x1400ad350]
test rax, rax
je 0x140008cc2
call qword [case.0x140040d62.0]
mov qword [rbp - 0x60], rax
jmp 0x140008cc6
mov qword [rbp - 0x60], r13
mov rax, qword [0x1400ad358]
test rax, rax
je 0x140008ce7
mov r8d, 0x400
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x20]
call qword [case.0x140040d62.0]
mov rax, qword [0x1400ad360]
test rax, rax
je 0x140008cfe
lea rcx, [rsp + 0x20]
call qword [case.0x140040d62.0]
mov rax, qword [0x1400ad368]
test rax, rax
je 0x140008d15
lea rcx, [rsp + 0x20]
call qword [case.0x140040d62.0]
cmp dword [rsp + 0x28], r13d
jl 0x140008d2e
mov ecx, 0x8000ffff
mov dword [rsp + 0x28], ecx
call fcn.14000920c
mov dword [rsp + 0x2c], eax
cmp byte [0x1400ad370], r13b
jne 0x140008d87
mov rax, qword [0x1400ad378]
test rax, rax
je 0x140008d4e
call qword [case.0x140040d62.0]
movzx ecx, al
jmp 0x140008d5c
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, r13d
test eax, eax
setne cl
test ecx, ecx
jne 0x140008d87
mov rax, qword [0x1400ad398]
test rax, rax
je 0x140008de1
cmp byte [0x1400ad394], r13b
jne 0x140008de1
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [case.0x140040d62.0]
jmp 0x140008de1
mov ebx, 0x800
mov rax, qword [0x1400ad398]
test rax, rax
je 0x140008db6
cmp byte [0x1400ad394], r13b
jne 0x140008db6
mov r8d, ebx
lea rdx, [rbp + 0x3c0]
lea rcx, [rsp + 0x20]
call qword [case.0x140040d62.0]
cmp word [rbp + 0x3c0], r13w
jne 0x140008dd4
lea r8, [rsp + 0x20]
mov rdx, rbx
lea rcx, [rbp + 0x3c0]
call fcn.14000990c
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp byte [0x1400ad380], r13b
je 0x140008dfd
mov rax, qword [0x1400ad388]
test rax, rax
je 0x140008dfd
call qword [case.0x140040d62.0]
nop
lea rcx, [rsp + 0x20]
call fcn.140008b14
int3
Function at 0x14000a910
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x178]
sub rsp, 0x250
mov rax, qword [0x140093010]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov r15, r8
xor r13d, r13d
mov qword [r8], r13
mov r9d, 0x104
lea rdx, [rsp + 0x30]
lea rax, [rsp + 0x30]
sub rcx, rax
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x14000a985
movzx eax, word [rcx + rdx]
test ax, ax
je 0x14000a985
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x14000a963
lea rax, [rdx - 2]
test r9, r9
cmovne rax, rdx
mov word [rax], r13w
lea r8, [0x14005b8c8]
lea rcx, [rsp + 0x30]
call fcn.140009f98
lea r8, [rsp + 0x30]
xor edx, edx
mov ebx, 0x1f0003
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rdi, rax
test rax, rax
setne r12b
test rax, rax
jne 0x14000a9f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14000aae4
mov rcx, qword [rbp + 0x178]
lea r8, [0x14005b8c4]
mov edx, reloc.OLEAUT32.dll_CreateErrorInfo
call fcn.140008570
mov esi, eax
jmp 0x14000aae7
mov dword [rsp + 0x24], r13d
mov dword [rsp + 0x20], r13d
lea rdx, [rsp + 0x24]
mov rcx, rdi
call fcn.14000a7a8
mov esi, eax
test eax, eax
jns 0x14000aa36
lfence
mov rcx, qword [rbp + 0x178]
mov r9d, eax
lea r8, [0x14005b8c4]
mov edx, 0xcf
call fcn.1400085ec
jmp 0x14000aae7
lea r8, [0x14005b8d0]
lea rcx, [rsp + 0x30]
call fcn.140009f98
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rbx, rax
test rax, rax
setne r14b
test rax, rax
jne 0x14000aa81
mov rcx, qword [rbp + 0x178]
lea r8, [0x14005b8c4]
mov edx, 0xd5
call fcn.140008570
mov esi, eax
jmp 0x14000aab2
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14000a7a8
mov esi, eax
test eax, eax
jns 0x14000aac2
lfence
mov rcx, qword [rbp + 0x178]
mov r9d, eax
lea r8, [0x14005b8c4]
mov edx, 0xd7
call fcn.1400085ec
test r14b, r14b
je 0x14000aae7
mov rcx, rbx
call fcn.140008290
nop
jmp 0x14000aae7
test r14b, r14b
je 0x14000aad0
mov rcx, rbx
call fcn.140008290
nop
movsxd rcx, dword [rsp + 0x20]
shl rcx, 0x1f
movsxd rax, dword [rsp + 0x24]
or rax, rcx
mov qword [r15], rax
mov esi, r13d
test r12b, r12b
je 0x14000aaf5
mov rcx, rdi
call fcn.140008290
nop
mov eax, esi
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1400521d0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14000cf30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140093010]
xor rax, rsp
mov qword [rbp - 8], rax
mov edi, 0xffff
xor r14d, r14d
movzx esi, dx
mov rbx, rcx
cmp di, dx
jne 0x14000cf72
movzx eax, r14w
jmp 0x14000d09d
mov rax, qword [rcx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x14000cfa2
mov rdx, qword [rbx + 0x58]
movsxd r8, dword [rdx]
lea rdx, [rcx + r8*2]
cmp rcx, rdx
jae 0x14000cfa2
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_protected:_wchar_t____ptr64___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::_Pninc_void____ptr64]
mov word [rax], si
movzx eax, si
jmp 0x14000d09d
cmp qword [rbx + 0x80], r14
je 0x14000d09a
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000cfe0
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub rdx, rcx
mov rax, qword [rbx + 0x38]
sar rdx, 1
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14000d00a
movzx ecx, si
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
cmp ax, di
je 0x14000d09a
movzx edi, si
jmp 0x14000d09a
lea rax, [rbp - 0x40]
mov word [rbp - 0x30], si
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x2e]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x30]
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
js 0x14000d09a
cmp eax, 1
jle 0x14000d05b
cmp eax, 3
jne 0x14000d09a
lfence
movzx ecx, word [rbp - 0x30]
jmp 0x14000cfec
mov r14, qword [rbp - 0x40]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x14000d089
lfence
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r14, rax
jne 0x14000d09a
lea rax, [rbp - 0x30]
mov byte [rbx + 0x72], 1
cmp qword [rbp - 0x38], rax
movzx eax, si
jne 0x14000d09d
movzx eax, di
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400521d0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14000d450
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140093010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000d4ca
cmp byte [rcx + 0x72], 0
je 0x14000d4ca
mov rax, qword [rcx]
mov edi, 0xffff
mov edx, edi
mov rax, qword [rax + 0x18]
call qword [case.0x140040d62.0]
cmp di, ax
je 0x14000d522
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_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000d4e4
sub eax, 1
je 0x14000d4e8
cmp eax, 2
jne 0x14000d522
mov byte [rbx + 0x72], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400521d0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov byte [rbx + 0x72], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000d519
lfence
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 0x14000d522
cmp byte [rbx + 0x72], 0
sete al
jmp 0x14000d4cc
xor al, al
jmp 0x14000d4cc
Function at 0x1400104c4
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x140093010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rdx
mov rbp, rcx
mov qword [rsp + 0x30], rdx
xor r14d, r14d
mov sil, r14b
lea rdi, [rcx + 0x2b8]
mov rdx, qword [rdx + 0x10]
mov r8, rbx
cmp qword [rbx + 0x18], 8
jb 0x14001050e
mov r8, qword [rbx]
movabs r9, 0xcbf29ce484222325
mov rcx, r14
add rdx, rdx
je 0x14001053e
movzx eax, byte [rcx + r8]
xor r9, rax
movabs r10, 0x100000001b3
imul r9, r10
inc rcx
cmp rcx, rdx
jb 0x140010520
mov r8, rbx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140012bac
mov rcx, qword [rax + 8]
test rcx, rcx
jne 0x14001055b
mov rcx, qword [rdi + 8]
cmp rcx, qword [rbp + 0x2c0]
je 0x14001058f
mov rdx, rbx
mov rcx, rdi
call fcn.140010b0c
mov rcx, qword [rax + 0x38]
test rcx, rcx
jne 0x14001057f
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140040d62.0]
mov sil, al
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x1400105a9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
call fcn.140009db8
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
mov al, sil
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400521d0
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret