joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008fd4c
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x14008fd4c
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14008fddd
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x14008fddd
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14008fddd
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x14008fdc1
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14008fdbb
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14008fdc3
add rdx, 0x28
jmp 0x14008fda0
xor edx, edx
test rdx, rdx
jne 0x14008fdcc
xor al, al
jmp 0x14008fde3
test dword [rdx + 0x24], 0x80000000
je 0x14008fdd9
xor al, al
jmp 0x14008fde3
mov al, 1
jmp 0x14008fde3
xor al, al
jmp 0x14008fde3
add rsp, 0x18
ret

Function at 0x1400c2684
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1400c2684
jmp 0x1400c253c
push rbx
sub rsp, 0x50
mov rax, qword [0x14016c4a0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r10d, r10d
mov rbx, r8
mov eax, r10d
mov r11, rdx
cmp rax, 0x20
mov r9, rcx
jae 0x1400c263b
mov byte [rsp + rax + 0x20], r10b
inc rax
cmp rax, 0x20
jl 0x1400c2564
movzx r8d, byte [r11]
inc r11
mov edx, r8d
mov eax, r8d
shr rdx, 3
and eax, 7
movzx ecx, byte [rsp + rdx + 0x20]
bts ecx, eax
mov byte [rsp + rdx + 0x20], cl
test r8b, r8b
jne 0x1400c2578
test r9, r9
jne 0x1400c25a5
mov r9, qword [rbx]
movzx r8d, byte [r9]
mov edx, 1
mov ecx, r8d
shr r8, 3
and ecx, 7
shl edx, cl
test byte [rsp + r8 + 0x20], dl
je 0x1400c25ea
mov r8b, byte [r9]
test r8b, r8b
je 0x1400c25ea
inc r9
mov edx, 1
movzx r8d, byte [r9]
mov eax, r8d
mov ecx, r8d
and ecx, 7
shr rax, 3
shl edx, cl
test byte [rsp + rax + 0x20], dl
jne 0x1400c25c4
mov r11, r9
jmp 0x1400c260e
movzx r8d, byte [r9]
mov edx, 1
mov ecx, r8d
shr r8, 3
and ecx, 7
shl edx, cl
test byte [rsp + r8 + 0x20], dl
jne 0x1400c2615
inc r9
cmp byte [r9], r10b
jne 0x1400c25ef
jmp 0x1400c261b
mov byte [r9], r10b
inc r9
cmp r9, r11
mov qword [rbx], r9
cmovne r10, r11
mov rax, r10
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140004ca5
add rsp, 0x50
pop rbx
ret
call fcn.140002275
int3
sub rsp, 0x28
test r8, r8
jne 0x1400c26a4
call fcn.1400033cd
mov dword [rax], socket
call fcn.140004845
xor eax, eax
add rsp, 0x28
ret
test rdx, rdx
je 0x1400c268d
test rcx, rcx
jne 0x1400c26b3
cmp qword [r8], rcx
je 0x1400c268d
add rsp, 0x28
jmp 0x140002bd5
Function at 0x1400fb440
Capabilities:
Get geographical location

Disassembly:
jmp 0x1400fb440
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov edi, r9d
mov rsi, r8
mov ebp, edx
lea r9, [0x1401482f8]
mov r14, rcx
lea r8, [0x1401482f0]
lea rdx, [0x140148300]
mov ecx, listen
call fcn.1400faa2c
mov rbx, rax
test rax, rax
je 0x1400fb4a3
mov rcx, rax
call qword [section..00cfg]
mov r9d, edi
mov r8, rsi
mov edx, ebp
mov rcx, r14
call rbx
jmp 0x1400fb4bd
xor edx, edx
mov rcx, r14
call fcn.1400030c6
mov ecx, eax
mov r9d, edi
mov r8, rsi
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1400ff2b4
Capabilities:
Delete file

Disassembly:
jmp 0x1400ff2b4
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400ff2d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140004138
or eax, 0xffffffff
jmp 0x1400ff2d6
xor eax, eax
add rsp, 0x28
ret

Function at 0x140100f24
Capabilities:
Create thread
Print debug messages

Disassembly:
jmp 0x140100f24
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x50
mov esi, r8d
mov r14, rdx
mov rbx, rcx
call fcn.14000361b
mov bpl, al
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor edi, edi
test eax, eax
je 0x140100f77
test rbx, rbx
je 0x140100f68
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test bpl, bpl
je 0x140100f77
mov edi, 4
jmp 0x140101020
call fcn.1400016b8
test al, al
jne 0x140100f94
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
neg eax
sbb edi, edi
neg edi
add edi, 3
jmp 0x140101020
test bpl, bpl
je 0x140100ff7
mov qword [rsp + 0x28], rdi
lea r9, [rsp + 0x30]
lea r8, [0x140100d7c]
mov dword [rsp + 0x20], edi
xor edx, edx
mov qword [rsp + 0x30], r14
xor ecx, ecx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x44], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140101020
xor r8d, r8d
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov rcx, rbx
test eax, eax
je 0x140100ff1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140101020
mov edi, dword [rsp + 0x44]
jmp 0x140100fe9
call fcn.140004cb4
test al, al
jne 0x140101008
bts esi, 0x15
xor ecx, ecx
jmp 0x140101010
call fcn.140002496
mov rcx, rax
mov r9d, esi
mov r8, r14
mov rdx, rbx
call fcn.140003ecc
mov edi, eax
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
Function at 0x140012950
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rdi, rcx
add rdx, 1
mov rbx, qword [rcx + 0x38]
xorps xmm0, xmm0
js 0x140012975
cvtsi2ss xmm0, rdx
jmp 0x14001298a
mov rax, rdx
and edx, 1
shr rax, 1
or rax, rdx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rcx]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceilf
movss xmm1, dword [0x1400d6730]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x1400129b8
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x1400129b8
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rbx, rcx
jae 0x1400129ea
cmp rbx, 0x200
jae 0x1400129e7
lea rbx, [rbx*8]
cmp rbx, rcx
jae 0x1400129ea
mov rbx, rcx
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140012670
Function at 0x1400164e0
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x1400fe4a8]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
xor esi, esi
mov qword [rsp + 0x38], 7
mov rbx, rdx
mov qword [rcx], rsi
mov rdi, rcx
mov qword [rcx + 8], rsi
mov qword [rcx + 0x10], rsi
lea rdx, [0x1400d6b18]
lea r8d, [rsi + 1]
mov qword [rsp + 0x20], rsi
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x30], rsi
call fcn.14001e1e0
lea r8, [rsp + 0x20]
mov rcx, rbx
lea rdx, [rsp + 0x40]
call fcn.140029350
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14001659a
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016595
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140016595
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ce80c
cmp qword [rsp + 0x58], 8
lea rcx, [rsp + 0x40]
lea rdx, [rbp - 0x80]
cmovae rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400166a3
cmp word [rbp - 0x54], 0x2e
je 0x14001668e
test byte [rbp - 0x80], 0x10
jne 0x14001668e
mov qword [rsp + 0x20], rsi
lea rax, [rbp - 0x54]
mov qword [rsp + 0x30], rsi
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x38], 7
inc r8
cmp word [rax + r8*2], si
jne 0x1400165f5
lea rdx, [rbp - 0x54]
lea rcx, [rsp + 0x20]
call fcn.14001e1e0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.1400291f0
mov r8, rax
mov rax, qword [rdi + 8]
cmp rax, qword [rdi + 0x10]
je 0x14001663b
mov rdx, r8
mov rcx, rax
call fcn.1400291d0
add qword [rdi + 8], 0x20
jmp 0x140016646
mov rdx, rax
mov rcx, rdi
call fcn.140009420
lea rcx, [rsp + 0x60]
call fcn.1400292c0
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14001668e
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140016689
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400166f4
call fcn.1400ce80c
lea rdx, [rbp - 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400165c2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rdx, qword [rdi + 8]
xor r9d, r9d
mov rcx, qword [rdi]
mov r8, rdx
sub r8, rcx
sar r8, 5
call fcn.140015250
lea rcx, [rsp + 0x40]
call fcn.1400292c0
mov rax, rdi
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.1400ce8e0
mov rbx, qword [rsp + 0x310]
add rsp, 0x2e0
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140033e50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
cmp qword [rcx + 0x18], 8
mov rdi, rdx
mov rbx, rcx
jb 0x140033e6a
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
mov edx, eax
shr edx, 4
and edx, 1
cmp eax, 0xffffffff
cmove edx, ecx
shl edx, 0x19
add edx, 0x200000
cmp qword [rbx + 0x18], 8
jb 0x140033e93
mov rbx, qword [rbx]
mov qword [rsp + 0x30], rcx
xor r9d, r9d
mov dword [rsp + 0x28], edx
mov rcx, rbx
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140033ed2
xor al, al
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
lea r9, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x140033f03
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.14003e110
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
mov dil, 1
jmp 0x140033f0c
xor dil, dil
cmp rbx, 0xffffffffffffffff
je 0x140033f14
mov rcx, rbx
call fcn.14003ce90
mov rbx, qword [rsp + 0x80]
movzx eax, dil
add rsp, 0x60
pop rdi
ret

Function at 0x140033f30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400fe4a8]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x18], 8
mov rbx, rcx
jb 0x140033f52
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140033f98
test eax, 0x410
jne 0x140033f98
cmp qword [rbx + 0x18], 8
jb 0x140033f6e
mov rbx, qword [rbx]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wstat64]
test eax, eax
jne 0x140033f98
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400ce8e0
add rsp, 0x60
pop rbx
ret
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400ce8e0
add rsp, 0x60
pop rbx
ret

Function at 0x140033fb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 8
movzx ebx, dl
jb 0x140033fc3
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140033fe3
test bl, bl
jne 0x140033fd8
bt eax, 0xa
jb 0x140033fe3
shr eax, 4
and al, 1
add rsp, 0x20
pop rbx
ret
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140033ff0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 8
jb 0x140033ffe
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140034017
test eax, 0x410
jne 0x140034017
mov al, 1
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret
Function at 0x140034020
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x18], 8
movzx edi, r8b
mov rbx, rcx
jb 0x14003403b
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140034085
test dil, dil
je 0x140034078
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140034078
cmp qword [rbx + 0x18], 8
jb 0x140034063
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140034078
shr eax, 4
and al, 1
jne 0x140034085
xor al, al
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x48]
mov al, 1
add rsp, 0x30
pop rdi
ret

Function at 0x1400340a0
Capabilities:
Delete directory

Disassembly:
push rbx
sub rsp, 0x290
mov rax, qword [0x1400fe4a8]
xor rax, rsp
mov qword [rsp + 0x280], rax
cmp qword [rcx + 0x18], 8
mov rbx, rcx
jb 0x1400340c8
mov rcx, qword [rcx]
xor eax, eax
lea r8, [rsp + 0x30]
mov dword [rsp + 0x28], eax
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea edx, [rax + 1]
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
cmp rax, 0xffffffffffffffff
je 0x140034112
test dword [rsp + 0x30], 0x400
je 0x14003410a
cmp dword [rsp + 0x54], 0xa000000c
jne 0x14003410a
mov rcx, rax
call fcn.14003cf40
xor al, al
jmp 0x14003412a
mov rcx, rax
call fcn.14003cf40
cmp qword [rbx + 0x18], 8
jb 0x14003411c
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400ce8e0
add rsp, 0x290
pop rbx
ret

Function at 0x140034150
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 8
mov rbx, rcx
jb 0x140034163
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140034198
and eax, 0x410
cmp eax, 0x410
jne 0x140034198
cmp qword [rbx + 0x18], 8
jb 0x140034184
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
add rsp, 0x20
pop rbx
ret
cmp qword [rbx + 0x18], 8
jb 0x1400341a2
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
add rsp, 0x20
pop rbx
ret
Function at 0x140034cb0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400fe4a8]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140034d83
cmp byte [rcx + 0x71], 0
je 0x140034d83
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140034d7f
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 0x140034d44
sub eax, 1
je 0x140034d48
cmp eax, 2
jne 0x140034d7f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400ce8e0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140034d76
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 0x140034d7f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140034d2c
xor al, al
jmp 0x140034d2c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400ce8e0
add rsp, 0x60
pop rbx
ret
Function at 0x140034ee0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400fe4a8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140034f0d
xor eax, eax
jmp 0x140035062
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140034f38
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140034f38
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 0x140035062
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140035055
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140034f7b
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 0x140034fa6
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 0x14003505a
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
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 0x140035015
sub eax, 1
je 0x140035015
cmp eax, 2
jne 0x140035055
movsx ecx, byte [rsp + 0x40]
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 0x14003505a
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140035043
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 0x140035055
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov eax, edi
jne 0x14003505a
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400ce8e0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140035790
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1400357c1
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je case.default.0x1400357d8
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x30], rbx
mov qword [rsp + 0x38], rdi
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140035800
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140035802
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140035834
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rbx
sub rdi, rbx
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
mov rbx, rdi
je 0x1400358d1
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140035872
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 rdi, 0xfff
jbe 0x1400358b1
nop dword [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]
sub rdi, rax
add r14, rax
mov rbx, rdi
cmp rax, 0xfff
jne 0x1400358f2
cmp rdi, rax
ja 0x140035880
test rbx, rbx
je 0x1400358d1
mov r9, qword [rsi + 0x80]
mov r8, rdi
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 + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
sub rbp, rdi
jmp 0x1400358d4
Function at 0x140035900
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je case.default.0x140035930
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x140035958
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14003595a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400359b3
test ecx, ecx
jle 0x140035993
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1400359b3
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400359b3
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140035c70
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
test rcx, rcx
je 0x140035c81
call fcn.14003e550
lea rdx, str.Resume_process.
lea rcx, str.server
add rsp, 0x28
jmp fcn.14002eef0
Function at 0x14003b350
Capabilities:
Check os version

Disassembly:
sub rsp, 0x168
mov rax, qword [0x1400fe4a8]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rax, qword gs:[0x58]
mov ecx, dword [0x140134780]
mov r8d, 0x80
mov rdx, qword [rax + rcx*8]
mov eax, dword [r8 + rdx]
cmp dword [0x140134070], eax
jg 0x14003b578
cmp byte [0x140134010], 0
je 0x14003b3ba
movzx eax, byte [0x1400fe08d]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400ce8e0
add rsp, 0x168
ret
lea rcx, [0x140134020]
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x14003b570
cmp byte [0x140134010], al
mov qword [rsp + 0x170], rbx
je 0x14003b3ea
movzx ebx, byte [0x1400fe08d]
jmp 0x14003b4ee
lea rcx, str.ntdll.dll
mov qword [rsp + 0x178], rsi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x14003b51d
mov qword [rsp + 0x160], rdi
lea rdx, str.RtlGetNtVersionNumbers
mov rcx, rax
xor dil, dil
xor sil, sil
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14003b44b
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x24]
call rax
movzx eax, word [rsp + 0x20]
mov dil, 1
mov dword [rsp + 0x20], eax
lea rdx, str.RtlGetVersion
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, 0xffffffffffffffff
mov rbx, rax
mov rdx, rcx
test rax, rax
je 0x14003b499
xor edx, edx
mov dword [rsp + 0x30], 0x114
mov r8d, 0x110
lea rcx, [rsp + 0x34]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x30]
call rbx
mov ecx, dword [rsp + 0x34]
mov sil, 1
mov edx, dword [rsp + 0x38]
test dil, dil
mov rdi, qword [rsp + 0x160]
je 0x14003b4bd
cmp dword [rsp + 0x24], 6
jb 0x14003b563
jne 0x14003b4d8
cmp dword [rsp + 0x28], 3
jmp 0x14003b55d
test sil, sil
je 0x14003b51d
cmp rcx, 6
jl 0x14003b563
jne 0x14003b4d8
cmp rdx, 3
jl 0x14003b563
movzx ebx, byte [0x1400fe08d]
mov rsi, qword [rsp + 0x178]
mov byte [0x140134010], 1
lea rcx, [0x140134020]
call fcn.1400ce760
movzx eax, bl
mov rbx, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400ce8e0
add rsp, 0x168
ret
cmp byte [0x140134010], 0
jne 0x14003b4d8
xor edx, edx
mov dword [rsp + 0x30], 0x11c
mov r8d, 0x118
lea rcx, [rsp + 0x34]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x14003b4d8
cmp dword [rsp + 0x34], 6
jb 0x14003b563
jne 0x14003b4d8
cmp dword [rsp + 0x38], 3
jae 0x14003b4d8
xor bl, bl
mov byte [0x1400fe08d], bl
jmp 0x14003b4df
mov ecx, eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
int3
lea rcx, [0x140134070]
call fcn.1400cecc4
cmp dword [0x140134070], 0xffffffff
jne 0x14003b392
mov edx, 2
lea rcx, [0x140134020]
call sub.MSVCP140.dll__Mtx_init_in_situ
lea rcx, [0x1400d3120]
call fcn.1400cf08c
lea rcx, [0x140134070]
call fcn.1400cec64
jmp 0x14003b392