joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4615a0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x403ac3
push rbp
mov rbp, rsp
sub rsp, 0x18
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
call fcn.00409520
add rsp, 0x18
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045f7c0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x403aa0
cmp byte [0x005ff28e], 0
je 0x4615b5
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x45e800
jmp 0x403aa0

Function at 0x4615c0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov eax, dword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005ff580]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x005ff28e], 0
je 0x4615f5
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x005ff840]
aesenc xmm0, xmmword [0x005ff850]
aesenc xmm0, xmmword [0x005ff860]
movq rax, xmm0
ret
jmp 0x409740

Function at 0x461600
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005ff580]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x005ff28e], 0
je 0x461636
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x005ff840]
aesenc xmm0, xmmword [0x005ff850]
aesenc xmm0, xmmword [0x005ff860]
movq rax, xmm0
ret
jmp 0x4097a0

Function at 0x463300
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x463334
mov rcx, 0x28
jmp 0x46333f
shl rcx, 3
add rcx, 0x1480
mov qword [0x005ff4d8], rcx
pop rbp
ret
Function at 0x47cc40
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x47cd0a
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rax
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call fcn.004039c0
xorps xmm15, xmm15
mov r14, qword [0x005ff4d8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x47ccef
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x004cd040]
xor ebx, ebx
mov rcx, rdx
call fcn.004482e0
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call fcn.0047d7a0
inc rbx
cmp rcx, rbx
jae 0x47ccde
mov edi, 1
lea rsi, [0x004cd040]
call fcn.004483c0
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x005114c0]
lea rsi, [0x00510bb0]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045f7c0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.0047cc40
Function at 0x49eca0
Capabilities:
Hash data using fnv

Disassembly:
test byte [rax], al
mov rcx, rbx
and ebx, 0x7f
shl rbx, 5
lea rdx, [rax + rbx]
xor eax, eax
jmp 0x49ecb7
inc rax
cmp rax, 4
jge 0x49eccf
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x49ecb4
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x49ece0
inc rax
cmp rax, 4
jge 0x49ecee
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x49ed17
and ebx, 3
lea rdx, [rdx + rbx*8]
xchg qword [rdx], rcx
xor eax, eax
ret
movzx r8d, sil
xor rbx, r8
inc rdi
shr rsi, 8
movabs r8, 0x100000001b3
imul rbx, r8
cmp rdi, 8
jl 0x49ecfb
jmp 0x49ecdd
Function at 0x4af1c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea r12, [rsp - 0x40]
cmp r12, qword [r14 + 0x10]
jbe 0x4af3fd
push rbp
mov rbp, rsp
sub rsp, 0xb8
mov rdx, rax
mov r8d, dword [rax + 0x3c]
add r8, rdx
nop
cmp dword [r8], 0x4550
jne 0x4af236
mov qword [rsp + 0x80], rdx
mov r8d, dword [r8 + 0x88]
add r8, rdx
mov qword [rsp + 0x98], r8
mov r9d, dword [r8 + 0x1c]
mov r10d, dword [r8 + 0x20]
mov r11d, dword [r8 + 0x24]
add r9, rdx
mov qword [rsp + 0x58], r9
add r10, rdx
mov qword [rsp + 0x50], r10
add r11, rdx
mov qword [rsp + 0x48], r11
xor eax, eax
xor ecx, ecx
xor ebx, ebx
xor esi, esi
jmp 0x4af251
xor eax, eax
xor ebx, ebx
mov rcx, rbx
add rsp, 0xb8
pop rbp
ret
mov qword [rbx + rsi*8 - 0x18], rdi
inc rax
mov rsi, r15
mov r12d, dword [r8 + 0x18]
cmp rax, r12
jae 0x4af34a
mov qword [rsp + 0x78], rax
lea r12, [r10 + rax*4]
mov r12d, dword [r12]
add r12, rdx
lea r13, [r11 + rax*2]
movzx r13d, word [r13]
lea r13, [r9 + r13*4]
mov r13d, dword [r13]
add r13, rdx
mov qword [rsp + 0x70], r13
test r12, r12
je 0x4af2a5
cmp byte [r12], 0
jne 0x4af29a
xor edi, edi
xor r12d, r12d
jmp 0x4af2aa
mov rdi, r12
xor r15d, r15d
jmp 0x4af35f
xor edi, edi
xor r12d, r12d
lea r15, [rsi + 1]
cmp rcx, r15
jae 0x4af313
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x88], rdi
mov rax, rbx
mov rbx, r15
mov edi, 1
lea rsi, [0x004d7880]
call fcn.004483c0
mov rdx, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x88]
mov r8, qword [rsp + 0x98]
mov r9, qword [rsp + 0x58]
mov r10, qword [rsp + 0x50]
mov r11, qword [rsp + 0x48]
mov r12, qword [rsp + 0x40]
mov r13, qword [rsp + 0x70]
mov r15, rbx
mov rbx, rax
mov rax, qword [rsp + 0x78]
lea rsi, [r15 + r15*2]
mov qword [rbx + rsi*8 - 0x10], r12
mov qword [rbx + rsi*8 - 8], r13
cmp dword [0x005ff510], 0
je 0x4af246
mov r12, r11
call fcn.004616e0
mov qword [r11], rdi
mov r13, qword [rbx + rsi*8 - 0x18]
mov qword [r11 + 8], r13
mov r11, r12
jmp 0x4af246
mov rax, rbx
mov rbx, rsi
add rsp, 0xb8
pop rbp
ret
inc r15
inc r12
cmp byte [r12], 0
jne 0x4af359
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0xa0], 0
movups xmmword [rsp + 0xa8], xmm15
mov qword [rsp + 0xa0], rdi
mov qword [rsp + 0xa8], r15
mov qword [rsp + 0xb0], r15
mov rbx, qword [rsp + 0xa0]
xor eax, eax
mov rcx, r15
call fcn.0044c420
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x60]
mov r8, qword [rsp + 0x98]
mov r9, qword [rsp + 0x58]
mov r10, qword [rsp + 0x50]
mov r11, qword [rsp + 0x48]
mov r13, qword [rsp + 0x70]
mov rdi, rax
mov r12, rbx
mov rax, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x90]
jmp 0x4af2aa
mov qword [rsp + 8], rax
call fcn.0045f7c0
mov rax, qword [rsp + 8]
jmp fcn.004af1c0
Function at 0x4b8b80
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, qword gs:[0x60]
nop
mov rax, qword [rax + 0x18]
nop
mov rax, qword [rax + 0x20]
nop
xor r10, r10
cmp r10, qword [rsp + 8]
nop
je 0x4b8ba9
nop
mov rax, qword [rax]
nop
inc r10
jmp 0x4b8b97
mov rcx, qword [rax + 0x30]
nop
mov qword [rsp + 0x18], rcx
nop
mov rcx, qword [rax + 0x20]
nop
mov qword [rsp + 0x10], rcx
nop
mov rcx, rax
nop
add rcx, 0x38
nop
mov qword [rsp + 0x20], rcx
ret

Function at 0x4b8fc0
Capabilities:
Encode data using xor

Disassembly:
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdx, qword [rsp + 0x20]
test rdx, 0xf
jne 0x4b902b
mov rax, 0
movdqu xmm0, xmmword [rsi + rax]
movdqu xmm1, xmmword [rcx + rax]
pxor xmm0, xmm1
movdqu xmmword [rbx + rax], xmm0
add rax, 0x10
cmp rdx, rax
jne 0x4b8fe4
ret
sub rdx, 1
mov dil, byte [rsi + rdx]
mov al, byte [rcx + rdx]
xor dil, al
mov byte [rbx + rdx], dil
test rdx, 7
jne 0x4b9001
cmp rdx, 0
je 0x4b904d
test rdx, 0xf
je 0x4b8fdd
test rdx, 7
jne 0x4b9001
sub rdx, 8
mov rdi, qword [rsi + rdx]
mov rax, qword [rcx + rdx]
xor rdi, rax
mov qword [rbx + rdx], rdi
cmp rdx, 0x10
jge 0x4b8fdd
ret
Function at 0x4ba960
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
mov rcx, qword [rsp + 8]
mov rax, qword [rsp + 0x10]
mov rdx, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x20]
movups xmm1, xmmword [rax]
movups xmm0, xmmword [rbx]
add rax, 0x10
pxor xmm0, xmm1
sub rcx, 0xc
je 0x4ba99f
jb 0x4ba9b4
movups xmm1, xmmword [rax]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x10]
aesdec xmm0, xmm1
add rax, 0x20
movups xmm1, xmmword [rax]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x10]
aesdec xmm0, xmm1
add rax, 0x20
movups xmm1, xmmword [rax]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x10]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x20]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x30]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x40]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x50]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x60]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x70]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x80]
aesdec xmm0, xmm1
movups xmm1, xmmword [rax + 0x90]
aesdeclast xmm0, xmm1
movups xmmword [rdx], xmm0
ret
Function at 0x4baa20
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push rbp
mov rbp, rsp
mov rcx, qword [rsp + 0x10]
mov rax, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
add rbx, 0x10
pxor xmm4, xmm4
cmp ecx, 0xc
je 0x4baaf4
jb 0x4bab53
movups xmm2, xmmword [rax + 0x10]
movups xmmword [rbx], xmm2
add rbx, 0x10
aeskeygenassist xmm1, xmm2, 1
call fcn.004ba900
aeskeygenassist xmm1, xmm0, 1
call fcn.004ba920
aeskeygenassist xmm1, xmm2, 2
call fcn.004ba900
aeskeygenassist xmm1, xmm0, 2
call fcn.004ba920
aeskeygenassist xmm1, xmm2, 4
call fcn.004ba900
aeskeygenassist xmm1, xmm0, 4
call fcn.004ba920
aeskeygenassist xmm1, xmm2, 8
call fcn.004ba900
aeskeygenassist xmm1, xmm0, 8
call fcn.004ba920
aeskeygenassist xmm1, xmm2, 0x10
call fcn.004ba900
aeskeygenassist xmm1, xmm0, 0x10
call fcn.004ba920
aeskeygenassist xmm1, xmm2, 0x20
call fcn.004ba900
aeskeygenassist xmm1, xmm0, 0x20
call fcn.004ba920
aeskeygenassist xmm1, xmm2, 0x40
call fcn.004ba900
jmp 0x4babc1
movq xmm2, qword [rax + 0x10]
aeskeygenassist xmm1, xmm2, 1
call fcn.004ba860
aeskeygenassist xmm1, xmm2, 2
call fcn.004ba8c0
aeskeygenassist xmm1, xmm2, 4
call fcn.004ba860
aeskeygenassist xmm1, xmm2, 8
call fcn.004ba8c0
aeskeygenassist xmm1, xmm2, 0x10
call fcn.004ba860
aeskeygenassist xmm1, xmm2, 0x20
call fcn.004ba8c0
aeskeygenassist xmm1, xmm2, 0x40
call fcn.004ba860
aeskeygenassist xmm1, xmm2, 0x80
call fcn.004ba8c0
jmp 0x4babc1
aeskeygenassist xmm1, xmm0, 1
call fcn.004ba820
aeskeygenassist xmm1, xmm0, 2
call fcn.004ba820
aeskeygenassist xmm1, xmm0, 4
call fcn.004ba820
aeskeygenassist xmm1, xmm0, 8
call fcn.004ba820
aeskeygenassist xmm1, xmm0, 0x10
call fcn.004ba820
aeskeygenassist xmm1, xmm0, 0x20
call fcn.004ba820
aeskeygenassist xmm1, xmm0, 0x40
call fcn.004ba820
aeskeygenassist xmm1, xmm0, 0x80
call fcn.004ba820
aeskeygenassist xmm1, xmm0, 0x1b
call fcn.004ba820
aeskeygenassist xmm1, xmm0, 0x36
call fcn.004ba820
sub rbx, 0x10
movups xmm1, xmmword [rbx]
movups xmmword [rdx], xmm1
dec rcx
movups xmm1, xmmword [rbx - 0x10]
aesimc xmm0, xmm1
movups xmmword [rdx + 0x10], xmm0
sub rbx, 0x10
add rdx, 0x10
dec rcx
jne 0x4babce
movups xmm0, xmmword [rbx - 0x10]
movups xmmword [rdx + 0x10], xmm0
pop rbp
ret
Function at 0x4bc2e0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4bc51b
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x58], rax
nop
call fcn.004b9800
xorps xmm15, xmm15
mov r14, qword [0x005ff4d8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
add qword [rcx + 0x68], rax
mov rdx, qword [rcx + 0x60]
test rdx, rdx
jle 0x4bc42a
nop dword [rax]
cmp rdx, 0x40
ja 0x4bc50d
lea rsi, [rdx - 0x40]
mov rdi, rsi
neg rsi
sar rdi, 0x3f
and rdi, rdx
lea rdx, [rcx + rdi]
lea rdx, [rdx + 0x20]
cmp rax, rsi
cmovl rsi, rax
mov qword [rsp + 0x28], rsi
mov rbx, qword [rsp + 0x60]
cmp rbx, rdx
je 0x4bc399
mov rax, rdx
mov rcx, rsi
nop
call fcn.004623e0
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x28]
mov rdx, qword [rcx + 0x60]
add rdx, rsi
mov qword [rcx + 0x60], rdx
cmp rdx, 0x40
jne 0x4bc401
mov qword [rsp], rcx
lea rax, [rcx + 0x20]
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], 0x40
mov qword [rsp + 0x18], 0x40
call fcn.004bc960
xorps xmm15, xmm15
mov r14, qword [0x005ff4d8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x58]
mov qword [rax + 0x60], 0
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x28]
cmp rax, rsi
jb 0x4bc502
mov rdi, qword [rsp + 0x70]
sub rdi, rsi
mov rdx, rdi
neg rdx
sar rdx, 0x3f
and rdx, rsi
mov r8, rax
sub r8, rsi
add rbx, rdx
jmp 0x4bc437
mov r8, rax
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x70]
cmp r8, 0x40
jl 0x4bc4b5
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x40], rbx
mov qword [rsp], rcx
mov qword [rsp + 8], rbx
and r8, 0xffffffffffffffc0
mov qword [rsp + 0x20], r8
mov qword [rsp + 0x10], r8
mov qword [rsp + 0x18], rdi
call fcn.004bc960
xorps xmm15, xmm15
mov r14, qword [0x005ff4d8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x38]
mov rdx, rax
sub rax, rcx
sar rax, 0x3f
mov r8, qword [rsp + 0x30]
and rax, r8
and rax, 0xffffffffffffffc0
mov rcx, qword [rsp + 0x40]
lea rbx, [rcx + rax]
sub r8, rdx
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
test r8, r8
je 0x4bc4f8
lea rdx, [rcx + 0x20]
cmp r8, 0x40
mov esi, 0x40
cmovl rsi, r8
cmp rbx, rdx
je 0x4bc4f4
mov qword [rsp + 0x38], rsi
mov rax, rdx
mov rcx, rsi
nop dword [rax + rax]
call fcn.004623e0
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x38]
mov qword [rcx + 0x60], rsi
xor ebx, ebx
xor ecx, ecx
add rsp, 0x48
pop rbp
ret
mov rcx, rax
mov rax, rsi
call fcn.00461b00
mov rax, rdx
mov ecx, 0x40
call fcn.00461b00
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.0045f7c0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.004bc2e0
Function at 0x1400036e0
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 0x140003708
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 0x14000372e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140003730
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140003789
test ecx, ecx
jle 0x140003769
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 0x140003789
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140003789
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 0x1400037b0
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 0x1400037d2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400037e8
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 0x140003804
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140003806
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140003842
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 0x1400038de
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000387d
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 0x1400038be
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 0x1400038de
cmp rbx, rax
ja 0x140003890
test rbx, rbx
je 0x1400038de
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 0x140003d40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140003d6d
xor eax, eax
jmp 0x140003ed9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140003da7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140003da7
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 0x140003ed9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140003ecc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140003dea
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 0x140003e15
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 0x140003ed1
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 0x140003e84
sub eax, 1
je 0x140003e84
cmp eax, 2
jne 0x140003ecc
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 0x140003ed1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140003eb2
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 0x140003ecc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140003ed1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140005ee0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400042a0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140004373
cmp byte [rcx + 0x71], 0
je 0x140004373
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000436f
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 0x140004334
sub eax, 1
je 0x140004338
cmp eax, 2
jne 0x14000436f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140005ee0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140004366
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 0x14000436f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000431c
xor al, al
jmp 0x14000431c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140005ee0
add rsp, 0x60
pop rbx
ret

Function at 0x140005920
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14000595a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14000595f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400059a8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140008500]
cmp byte [rcx + rax], 0
je 0x1400059a8
dec r8
sub rdx, 1
jne 0x14000598e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400068dc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006926
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006926
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006926
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006926
cmp dword [rcx + 0x84], 0xe
jbe 0x140006926
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140006928
xor al, al
add rsp, 0x28
ret
Function at 0x1406f5c00
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword gs:[0x60]
movabs r11, 0x6f5c70
movabs r10, 0x6f5c74
mov r9, qword [rax + 0x10]
xor eax, eax
movsxd rcx, dword [r9 + 0x3c]
movsxd r11, dword [r9 + r11]
add rcx, r9
mov r10d, dword [r9 + r10]
movzx r8d, word [rcx + 0x14]
add r8, rcx
cmp dword [r8 + 0x20], eax
jbe 0x1406f5c66
mov edx, eax
nop dword [rax]
nop word [rax + rax]
mov ecx, dword [r8 + 0x24]
inc eax
add rcx, rdx
inc rdx
xor byte [rcx + r9], r10b
cmp eax, dword [r8 + 0x20]
jb 0x1406f5c50
lea rax, [r9 + r11]
jmp rax