joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140033f10
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x14030d6e8]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rsi, r8
mov r12, rdx
mov r13, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
call fcn.140001560
mov rbp, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov edx, reloc.WLDAP32.dll_Ordinal_32
lea rcx, [rsp + 0x30]
call fcn.140002930
mov rdi, rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], reloc.WS2_32.dll_sendto
mov qword [rsp + 0x48], Ordinal_33
movups xmm0, xmmword [str.NtQueryVirtualMemory]
movups xmmword [rax], xmm0
mov eax, dword [0x1402ecf08]
mov dword [rdi + 0x10], eax
mov byte [rdi + 0x14], 0
call fcn.140012fc0
lea r15, [rbp + 0x40]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movabs rdx, 0xcbf29ce484222325
xor ecx, ecx
movabs r8, 0x100000001b3
nop dword [rax]
movzx eax, byte [rcx + rdi]
xor rdx, rax
imul rdx, r8
inc rcx
cmp rcx, 0x14
jb 0x140033fd0
mov rcx, qword [rbp + 0x30]
and rcx, rdx
add rcx, rcx
mov rax, qword [rbp + 0x18]
mov rbx, qword [rax + rcx*8 + 8]
mov r14, qword [rbp + 8]
cmp rbx, r14
je 0x140034042
mov rbp, qword [rax + rcx*8]
nop dword [rax]
nop dword [rax + rax]
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x140034022
mov rdx, qword [rdx]
cmp rax, 0x14
jne 0x140034037
mov r8, rax
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140034044
cmp rbx, rbp
je 0x140034042
mov rbx, qword [rbx + 8]
jmp 0x140034010
xor ebx, ebx
test rbx, rbx
je 0x140034087
cmp rbx, r14
je 0x140034087
mov rbx, qword [rbx + 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x140034090
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], Ordinal_50
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rdx, r12
mov rcx, qword [r13 + 8]
call rbx
mov ebx, eax
jmp 0x140034095
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, 0xc0000138
mov edx, reloc.WLDAP32.dll_Ordinal_32
mov rcx, rdi
call fcn.140110974
test ebx, ebx
je 0x1400340aa
mov eax, ebx
jmp 0x1400340e2
mov rax, qword [rsp + 0x58]
mov qword [rsi + 8], rax
mov eax, dword [rsp + 0x60]
mov dword [rsi + 0x10], eax
mov rax, qword [rsp + 0x50]
mov qword [rsi], rax
mov eax, dword [rsp + 0x74]
mov dword [rsi + 0x24], eax
mov rax, qword [rsp + 0x68]
mov qword [rsi + 0x18], rax
mov eax, dword [rsp + 0x70]
mov dword [rsi + 0x20], eax
mov eax, dword [rsp + 0x78]
mov dword [rsi + 0x28], eax
xor eax, eax
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140110ce0
mov rbx, qword [rsp + 0xe8]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140034120
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 r13
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x14030d6e8]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov r15, rdx
mov r13, rcx
mov dword [rsp + 0x30], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
mov dword [rsp + 0x88], 0
call fcn.140001560
mov rsi, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov edx, reloc.WLDAP32.dll_Ordinal_32
lea rcx, [rsp + 0x38]
call fcn.140002930
mov rdi, rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], Ordinal_33
mov qword [rsp + 0x50], Ordinal_33
movups xmm0, xmmword [str.NtQueryInformationProcess]
movups xmmword [rax], xmm0
movsd xmm1, qword [0x1402ece90]
movsd qword [rax + 0x10], xmm1
movzx eax, byte [reloc.WS2_32.dll_WSAStartup]
mov byte [rdi + 0x18], al
mov byte [rdi + 0x19], 0
mov dword [rsp + 0x30], 1
call fcn.140012fc0
lea r14, [rsi + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movabs rdx, 0xcbf29ce484222325
xor ecx, ecx
movabs r8, 0x100000001b3
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rcx + rdi]
xor rdx, rax
imul rdx, r8
inc rcx
cmp rcx, 0x19
jb 0x140034210
mov rcx, qword [rsi + 0x30]
and rcx, rdx
add rcx, rcx
mov rax, qword [rsi + 0x18]
mov rbx, qword [rax + rcx*8 + 8]
mov rbp, qword [rsi + 8]
cmp rbx, rbp
je 0x140034282
mov rsi, qword [rax + rcx*8]
nop dword [rax]
nop dword [rax + rax]
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x140034262
mov rdx, qword [rdx]
cmp rax, 0x19
jne 0x140034277
mov r8, rax
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140034284
cmp rbx, rsi
je 0x140034282
mov rbx, qword [rbx + 8]
jmp 0x140034250
xor ebx, ebx
test rbx, rbx
je 0x1400342d4
cmp rbx, rbp
je 0x1400342d4
mov rbp, qword [rbx + 0x30]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbp, rbp
je 0x1400342dd
lea rbx, [r13 + 8]
mov rsi, rbx
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, Ordinal_50
lea r8, [rsp + 0x58]
xor edx, edx
mov rcx, qword [rbx]
call rbp
test eax, eax
js 0x1400342e1
test r15, r15
je 0x1400342e1
mov bpl, 1
jmp 0x1400342e7
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rsi, [r13 + 8]
xor bpl, bpl
mov rbx, rsi
mov edx, reloc.WLDAP32.dll_Ordinal_32
mov rcx, rdi
call fcn.140110974
test bpl, bpl
je 0x140034319
mov qword [rsp + 0x20], 0
mov r9d, 0x250
mov r8, r15
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140110ce0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
Function at 0x140034370
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x14030d6e8]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r15, r8
mov r12, rdx
mov r13, rcx
xor ebx, ebx
mov dword [rsp + 0x30], ebx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x78], ebx
call fcn.140001560
mov rsi, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
lea edx, [rbx + 0x20]
lea rcx, [rsp + 0x38]
call fcn.140002930
mov rdi, rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], Ordinal_27
mov qword [rsp + 0x50], Ordinal_33
movups xmm0, xmmword [str.NtQueryInformationThread]
movups xmmword [rax], xmm0
movsd xmm1, qword [0x1402ecec8]
movsd qword [rax + 0x10], xmm1
mov byte [rax + 0x18], bl
mov dword [rsp + 0x30], 1
call fcn.140012fc0
lea r14, [rsi + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movabs rdx, 0xcbf29ce484222325
mov ecx, ebx
movabs r8, 0x100000001b3
movzx eax, byte [rcx + rdi]
xor rdx, rax
imul rdx, r8
inc rcx
cmp rcx, 0x18
jb 0x140034440
mov rcx, qword [rsi + 0x30]
and rcx, rdx
add rcx, rcx
mov rax, qword [rsi + 0x18]
mov rbx, qword [rax + rcx*8 + 8]
mov rbp, qword [rsi + 8]
cmp rbx, rbp
je 0x1400344b2
mov rsi, qword [rax + rcx*8]
nop dword [rax]
nop dword [rax + rax]
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x140034492
mov rdx, qword [rdx]
cmp rax, 0x18
jne 0x1400344a7
mov r8, rax
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400344b4
cmp rbx, rsi
je 0x1400344b2
mov rbx, qword [rbx + 8]
jmp 0x140034480
xor ebx, ebx
test rbx, rbx
je 0x1400344f9
cmp rbx, rbp
je 0x1400344f9
mov rbx, qword [rbx + 0x30]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x140034502
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, Ordinal_33
lea r8, [rsp + 0x58]
xor edx, edx
mov rcx, r12
call rbx
test eax, eax
js 0x140034502
test r15, r15
je 0x140034502
mov bl, 1
jmp 0x140034504
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor bl, bl
mov edx, reloc.WLDAP32.dll_Ordinal_32
mov rcx, rdi
call fcn.140110974
test bl, bl
je 0x140034535
mov edx, dword [rsp + 0x5c]
mov qword [rsp + 0x20], 0
mov r9d, 0x1000
mov r8, r15
mov rcx, qword [r13 + 8]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [rsp + 0x5c]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140110ce0
mov rbx, qword [rsp + 0xe8]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14003c380
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov r10, rdx
mov rsi, r8
mov rdx, qword [rdx + 0x10]
mov rbx, rcx
mov r8, r10
cmp qword [r10 + 0x18], 8
jb 0x14003c3a2
mov r8, qword [r10]
xor ecx, ecx
movabs r9, 0xcbf29ce484222325
add rdx, rdx
je 0x14003c3d4
movabs r11, 0x100000001b3
nop dword [rax]
movzx eax, byte [rcx + r8]
inc rcx
xor r9, rax
imul r9, r11
cmp rcx, rdx
jb 0x14003c3c0
mov r8, r10
lea rdx, [rsp + 0x20]
lea rcx, [rbx + 0x40]
call fcn.14000c0c0
mov rcx, qword [rax + 8]
test rcx, rcx
jne 0x14003c3f2
mov rcx, qword [rbx + 0x48]
cmp rcx, qword [rbx + 0x48]
je 0x14003c40c
mov eax, dword [rcx + 0x30]
add rax, qword [rbx + 0x18]
mov qword [rsi], rax
xor eax, eax
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
mov eax, 0x806d0013
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x14003eed0
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x14003ef05
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x20], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.140002160
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x14003f074
mov qword [rsp + 0x58], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rcx, qword [rcx]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x12]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x13]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x14]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x15]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x16]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x17]
imul r9, rdi
xor r9, rdx
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x14003efec
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x14003f063
mov rdx, qword [r11 + 8]
mov r8, qword [rax + 0x10]
cmp r8, qword [rdx + 0x10]
jne 0x14003f029
mov r10, qword [rdx]
cmp r10, rax
je 0x14003f023
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x14003f063
cmp r9, rdx
je 0x14003f03f
nop
mov rdx, qword [rdx + 8]
cmp r8, qword [rdx + 0x10]
je 0x14003f085
cmp r9, rdx
jne 0x14003f030
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x14003ef70
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x14003f063

Function at 0x14003f2e0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x68
mov rax, qword [0x14030d6e8]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140110ce0
add rsp, 0x68
ret
Function at 0x140050ab0
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x14030d6e8]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov r14, rcx
mov dword [rsp + 0x70], 0x101
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x140050c71
mov esi, dword [rsp + 0x70]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
cmp rsi, 0x10
jae 0x140050b38
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], reloc.WS2_32.dll_ntohs
mov r8d, esi
lea rdx, [rbp - 0x80]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rsi + 0x20], 0
jmp 0x140050b87
mov rdi, rsi
or rdi, 0xf
mov eax, reloc.WLDAP32.dll_Ordinal_22
cmp rdi, rax
cmovb rdi, rax
mov rdx, rdi
add rdx, 1
mov rax, 0xffffffffffffffff
cmovb rdx, rax
call fcn.140002930
mov rbx, rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rdi
mov r8, rsi
lea rdx, [rbp - 0x80]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + rsi], 0
lea rcx, [r14 + 0x60]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 8
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
movabs rax, 0x656d616e72657355
mov qword [rsp + 0x40], rax
mov byte [rsp + 0x48], 0
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x60]
call fcn.140044e70
mov rcx, qword [rax]
add rcx, 0x30
lea rdx, [rsp + 0x20]
call fcn.14000aaa0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140050c1a
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050c15
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140050c15
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140110974
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x40], 0
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x140050c71
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050c6c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140050c6c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140110974
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.140110ce0
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400511c0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14030d6e8]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140051293
cmp byte [rcx + 0x71], 0
je 0x140051293
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x14005128f
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 0x140051254
sub eax, 1
je 0x140051258
cmp eax, 2
jne 0x14005128f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140110ce0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140051286
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 0x14005128f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14005123c
xor al, al
jmp 0x14005123c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140110ce0
add rsp, 0x60
pop rbx
ret
Function at 0x140055ca0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14030d6e8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140055ccd
xor eax, eax
jmp 0x140055e2a
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140055cf8
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140055cf8
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x140055e2a
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140055e1d
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140055d3b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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 0x140055d66
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 0x140055e22
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 0x140055dd5
sub eax, 1
je 0x140055dd5
cmp eax, 2
jne 0x140055e1d
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 0x140055e22
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140055e03
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 0x140055e1d
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140055e22
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140110ce0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140059c10
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 0x140059c32
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140059c48
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 0x140059c64
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140059c66
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140059ca2
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 0x140059d3e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140059cdd
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 0x140059d1e
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 0x140059d3e
cmp rbx, rax
ja 0x140059cf0
test rbx, rbx
je 0x140059d3e
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 0x140059d60
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 0x140059d88
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 0x140059dae
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140059db0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140059e09
test ecx, ecx
jle 0x140059de9
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 0x140059e09
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140059e09
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 0x14005aca0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov ecx, dword [0x14030f358]
mov rax, qword gs:[0x58]
mov edx, 4
mov r14, qword [rax + rcx*8]
add r14, rdx
xor ebp, ebp
nop word [rax + rax]
mov eax, dword [r14]
cmp dword [0x14030ea78], eax
jle 0x14005ad9d
lea rcx, [0x14030ea78]
call fcn.140110f60
cmp dword [0x14030ea78], 0xffffffff
jne 0x14005ad9d
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
xorps xmm0, xmm0
mov qword [0x14030ea68], rbp
mov ecx, Ordinal_27
mov qword [rsp + 0x30], rax
movdqu xmmword [0x14030ea58], xmm0
call fcn.140110938
mov r8d, Ordinal_27
mov qword [0x14030ea58], rax
lea rdx, [rsp + 0x20]
mov qword [0x14030ea60], rax
mov rcx, rax
lea rbx, [rax + 0x18]
mov qword [0x14030ea68], rbx
call sub.VCRUNTIME140.dll_memmove
lea rcx, [0x140115c60]
mov qword [0x14030ea60], rbx
mov dword [0x14030ea70], ebp
mov byte [0x14030ea74], bpl
call fcn.140110bb4
lea rcx, [0x14030ea78]
call fcn.140110f00
mov rbx, qword [0x14030ea58]
mov rsi, qword [0x14030ea60]
cmp rbx, rsi
je 0x14005adcd
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
sub rax, rdi
cmp rax, 0x7d0
ja 0x14005addd
add rbx, 8
cmp rbx, rsi
jne 0x14005adb0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14005ace0
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3