joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14036d9e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rdi
push r12
push r13
sub rsp, 0x10
mov qword [rsp + 0x30], rbx
lea r13, [0x140000000]
mov qword [rsp + 0x38], rbp
mov rdi, rdx
mov qword [rsp + 0x40], rsi
mov rax, rcx
mov qword [rsp + 8], r14
xor r12d, r12d
mov qword [rsp], r15
test rdi, rdi
je 0x14036da20
cmp rax, rdi
jae 0x14036db98
movzx r8d, byte [rax]
test r8b, r8b
je 0x14036db98
xor ebx, ebx
mov ecx, r8d
shr rcx, 3
mov rdx, rdi
movsx r9, byte [rcx + r13 + 0x41dc60]
test r9d, r9d
sete bl
add ebx, r9d
test rdi, rdi
jne 0x14036da56
movsxd rdx, ebx
add rdx, rax
xor esi, esi
lea rcx, [rax + 1]
cmp rax, rdx
cmovb esi, r8d
cmp rcx, rdx
jae 0x14036da6e
movzx r15d, byte [rcx]
jmp 0x14036da71
xor r15b, r15b
lea rcx, [rax + 2]
cmp rcx, rdx
jae 0x14036da80
movzx r14d, byte [rcx]
jmp 0x14036da83
xor r14b, r14b
lea rcx, [rax + 3]
cmp rcx, rdx
jae 0x14036da91
movzx ebp, byte [rcx]
jmp 0x14036da94
xor bpl, bpl
lea r10, [r9*4]
movzx ecx, sil
mov r9d, dword [r10 + r13 + 0x489e50]
and r9d, ecx
movzx r8d, r15b
shl r9d, 6
mov ecx, r8d
and ecx, 0x3f
movzx edx, r14b
or r9d, ecx
movzx r11d, bpl
shl r9d, 6
and r8d, 0xc0
mov ecx, edx
and edx, 0xc0
and ecx, 0x3f
or r9d, ecx
mov ecx, r11d
shr r11d, 2
and ecx, 0x3f
or r11d, edx
shl r9d, 6
shr r11d, 2
or r9d, ecx
mov ecx, dword [r10 + r13 + 0x41dc48]
or r11d, r8d
shr r9d, cl
shr r11d, 2
mov edx, r9d
cmp r9d, dword [r10 + r13 + 0x41dc30]
sbb ecx, ecx
and edx, 0xfffff800
and ecx, 0x40
xor r8d, r8d
or r11d, ecx
mov ecx, 0x80
cmp edx, 0xd800
cmove r8d, ecx
xor edx, edx
or r11d, r8d
mov ecx, 0x100
cmp r9d, 0xffff
cmova edx, ecx
mov ecx, dword [r10 + r13 + 0x489e38]
or r11d, edx
xor r11d, 0x2a
sar r11d, cl
test r11d, r11d
je 0x14036db8a
xor edx, edx
test bpl, bpl
setne dl
xor ecx, ecx
test r14b, r14b
setne cl
add edx, ecx
xor ecx, ecx
test r15b, r15b
setne cl
add edx, ecx
xor ecx, ecx
test sil, sil
setne cl
add edx, ecx
cmp ebx, edx
cmovl edx, ebx
mov ebx, edx
movsxd rcx, ebx
add rax, rcx
inc r12d
jmp 0x14036da12
mov r15, qword [rsp]
mov eax, r12d
mov r14, qword [rsp + 8]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x10
pop r13
pop r12
pop rdi
ret
Function at 0x14036dbd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x30
movsxd rax, edx
mov rdi, rcx
dec rax
mov qword [r11 + 0x20], rsi
mov rsi, r9
xor r9d, r9d
lea rax, [rcx + rax*2]
mov qword [rsp], rax
cmp rcx, rax
jae 0x14036dde7
mov qword [r11 + 0x18], rbp
lea rbp, [0x140000000]
mov qword [r11 + 0x10], rbx
mov qword [r11 - 0x10], r12
mov qword [r11 - 0x18], r13
mov qword [r11 - 0x20], r14
mov qword [r11 - 0x28], r15
nop
test rsi, rsi
je 0x14036dc2e
cmp r8, rsi
jae 0x14036ddc4
movzx edx, byte [r8]
test dl, dl
je 0x14036ddc4
xor ebx, ebx
mov eax, edx
shr rax, 3
mov rcx, rsi
movsx r9, byte [rax + rbp + 0x41dc60]
test r9d, r9d
sete bl
add ebx, r9d
test rsi, rsi
jne 0x14036dc62
movsxd rcx, ebx
add rcx, r8
xor r14d, r14d
lea rax, [r8 + 1]
cmp r8, rcx
cmovb r14d, edx
cmp rax, rcx
jae 0x14036dc7b
movzx r13d, byte [rax]
jmp 0x14036dc7e
xor r13b, r13b
lea rax, [r8 + 2]
cmp rax, rcx
jae 0x14036dc8d
movzx r12d, byte [rax]
jmp 0x14036dc90
xor r12b, r12b
lea rax, [r8 + 3]
cmp rax, rcx
jae 0x14036dc9f
movzx r15d, byte [rax]
jmp 0x14036dca2
xor r15b, r15b
lea r10, [r9*4]
movzx eax, r14b
mov ebp, dword [r10 + rbp + 0x489e50]
and ebp, eax
movzx r9d, r13b
shl ebp, 6
mov eax, r9d
and eax, 0x3f
movzx edx, r12b
or ebp, eax
movzx r11d, r15b
shl ebp, 6
and r9d, 0xc0
mov eax, edx
and edx, 0xc0
and eax, 0x3f
or ebp, eax
mov eax, r11d
shr r11d, 2
and eax, 0x3f
or r11d, edx
shl ebp, 6
or ebp, eax
shr r11d, 2
or r11d, r9d
lea rax, [0x140000000]
mov ecx, dword [r10 + rax + 0x41dc48]
shr r11d, 2
shr ebp, cl
mov ecx, 0x100
cmp ebp, dword [r10 + rax + 0x41dc30]
sbb eax, eax
xor r9d, r9d
and eax, 0x40
mov edx, r9d
or r11d, eax
mov eax, ebp
and eax, 0xfffff800
cmp eax, 0xd800
mov eax, 0x80
cmove edx, eax
mov eax, r9d
or r11d, edx
cmp ebp, 0xffff
cmova eax, ecx
lea rcx, [0x140000000]
mov ecx, dword [r10 + rcx + 0x489e38]
or r11d, eax
xor r11d, 0x2a
sar r11d, cl
test r11d, r11d
je 0x14036dda6
test r15b, r15b
mov eax, r9d
mov ecx, r9d
mov ebp, 0xfffd
setne cl
test r12b, r12b
setne al
add ecx, eax
mov eax, r9d
test r13b, r13b
setne al
add ecx, eax
mov eax, r9d
test r14b, r14b
setne al
add ecx, eax
cmp ebx, ecx
cmovl ecx, ebx
mov ebx, ecx
mov word [rdi], bp
add rdi, 2
movsxd rax, ebx
lea rbp, [0x140000000]
add r8, rax
cmp rdi, qword [rsp]
jb 0x14036dc20
mov rcx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x10]
mov r14, qword [rsp + 0x18]
mov r13, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov word [rdi], r9w
test rax, rax
je 0x14036ddfd
mov qword [rax], r8
sub rdi, rcx
sar rdi, 1
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x14036e150
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14036e1ad
lea rbx, [0x14041df40]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x14036e194
cmp r10, 2
jb 0x14036e194
cmp byte [r9], r8b
jne 0x14036e194
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x14036e170
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14036e1ef
lea rbx, [0x14041df40]
cmp r8b, 0x23
jne 0x14036e1d3
cmp byte [r9], r8b
jne 0x14036e1d3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x14036e1c0
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x140380a00
Capabilities:
Compute adler32 checksum

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
mov r10, rdx
mov eax, 0x5e6ea9af
mul r8d
mov ebx, r8d
xor r9d, r9d
shr edx, 0xb
mov esi, r8d
imul eax, edx, 0x15b0
mov ecx, 1
sub ebx, eax
test r8d, r8d
je 0x140380b4c
mov qword [rsp + 0x20], rdi
xor r11d, r11d
cmp ebx, 7
jbe 0x140380aae
lea edx, [r11 + 7]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r10]
add r11d, 8
add ecx, eax
add edx, 8
movzx eax, byte [r10 + 1]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 2]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 3]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 4]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 5]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 6]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 7]
add r9d, ecx
add ecx, eax
add r10, 8
add r9d, ecx
cmp edx, ebx
jb 0x140380a50
xor edx, edx
xor r8d, r8d
cmp r11d, ebx
jae 0x140380b14
mov eax, ebx
sub eax, r11d
cmp eax, 2
jb 0x140380b01
mov eax, ebx
sub eax, r11d
sub eax, 2
shr eax, 1
inc eax
mov edi, eax
lea r11d, [r11 + rax*2]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r10]
add ecx, eax
movzx eax, byte [r10 + 1]
add edx, ecx
add r10, 2
add ecx, eax
add r8d, ecx
sub rdi, 1
jne 0x140380ae0
cmp r11d, ebx
jae 0x140380b0d
movzx eax, byte [r10]
add ecx, eax
add r9d, ecx
inc r10
lea eax, [r8 + rdx]
add r9d, eax
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul r9d
shr edx, 0xf
imul edx, edx, 0xffff000f
add r9d, edx
sub esi, ebx
mov ebx, 0x15b0
jne 0x140380a38
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x28]
shl r9d, 0x10
lea eax, [rcx + r9]
pop rsi
ret
Function at 0x14038fd30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1404ab7d0]
mov r10, qword [rax + 0x4008]
mov r9, qword [r10 + 0x1b8]
cmp dword [r9 + 0x10], 1
je 0x14038fdef
movups xmm0, xmmword [r9 + 0x3c]
mov rax, qword [r10 + 0x2a8]
movss xmm4, dword [r9 + 0x3c]
movss xmm3, dword [r9 + 0x40]
movss xmm2, dword [r9 + 0x44]
movss xmm1, dword [r9 + 0x48]
movups xmmword [r10 + 0x248], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r10 + 0x2a8]
movups xmm0, xmmword [rsp + 0x20]
movsxd rdx, dword [rax + 0x58]
mov rcx, qword [rax + 0x60]
add rdx, rdx
movups xmmword [rcx + rdx*8 - 0x10], xmm0
mov r8d, dword [r9 + 0xc]
lea rcx, [r9 + 0x70]
mov rdx, qword [r10 + 0x2a8]
inc r8d
add rsp, 0x38
jmp fcn.14038bb40
add rsp, 0x38
ret

Function at 0x14038fe00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1404ab7d0]
mov r9, qword [rax + 0x4008]
mov r8, qword [r9 + 0x1b8]
cmp dword [r8 + 0x10], 1
je 0x14038fec8
movups xmm0, xmmword [r9 + 0x248]
movups xmmword [r8 + 0x3c], xmm0
mov rax, qword [r9 + 0x2a8]
movups xmm0, xmmword [r8 + 0x2c]
movss xmm4, dword [r8 + 0x2c]
movss xmm3, dword [r8 + 0x30]
movss xmm2, dword [r8 + 0x34]
movss xmm1, dword [r8 + 0x38]
movups xmmword [r9 + 0x248], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x2a8]
movups xmm0, xmmword [rsp + 0x20]
movsxd rdx, dword [rax + 0x58]
mov rcx, qword [rax + 0x60]
add rdx, rdx
movups xmmword [rcx + rdx*8 - 0x10], xmm0
mov rdx, qword [r9 + 0x2a8]
lea rcx, [r8 + 0x70]
xor r8d, r8d
add rsp, 0x38
jmp fcn.14038bb40
add rsp, 0x38
ret
Function at 0x1403b6380
Capabilities:
Access peb ldr_data
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x58
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop word [rax + rax]
mov r8, qword [rax + 0x30]
mov qword [rsp + 0x38], r8
movsxd rcx, dword [r8 + 0x3c]
mov rdx, qword [rcx + r8 + 0x88]
mov qword [rsp + 0x60], rdx
mov r11d, edx
add r11, r8
mov qword [rsp + 0x40], r11
shr rdx, 0x20
mov dword [rsp + 0x30], edx
cmp r11, r8
je 0x1403b6453
mov r10d, dword [r11 + 0x18]
mov dword [rsp + 0x20], r10d
nop
mov ecx, r10d
dec r10d
mov dword [rsp + 0x20], r10d
test ecx, ecx
je 0x1403b6453
mov ecx, dword [r11 + 0x20]
add rcx, r8
mov ecx, dword [rcx + r10*4]
add rcx, r8
mov qword [rsp + 0x28], rcx
mov r9d, 0x1a8ff752
nop dword [rax + rax]
movsx edx, byte [rcx]
inc rcx
mov qword [rsp + 0x28], rcx
test dl, dl
jne 0x1403b6447
cmp r9d, 0x1a938cc8
jne 0x1403b6445
mov edx, dword [r11 + 0x1c]
add rdx, r8
mov ecx, dword [r11 + 0x24]
add rcx, r8
movzx ecx, word [rcx + r10*2]
mov eax, dword [rdx + rcx*4]
add rax, r8
call rax
jmp 0x1403b645b
jmp 0x1403b63e0
xor edx, r9d
imul r9d, edx, 0x1000193
jmp 0x1403b6410
mov rax, qword [rax]
jmp 0x1403b63a0
add rsp, 0x58
ret
Function at 0x1403b6c30
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push rbx
sub rsp, 0x50
xor ebx, ebx
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
mov r9, qword [rax + 0x30]
mov qword [rsp + 0x38], r9
movsxd rcx, dword [r9 + 0x3c]
mov rdx, qword [rcx + r9 + 0x88]
mov qword [rsp + 0x60], rdx
mov r11d, edx
add r11, r9
mov qword [rsp + 0x40], r11
shr rdx, 0x20
mov dword [rsp + 0x30], edx
cmp r11, r9
je 0x1403b6d08
mov r10d, dword [r11 + 0x18]
mov dword [rsp + 0x20], r10d
nop
mov ecx, r10d
dec r10d
mov dword [rsp + 0x20], r10d
test ecx, ecx
je 0x1403b6d08
mov edx, dword [r11 + 0x20]
add rdx, r9
mov ecx, dword [rdx + r10*4]
add rcx, r9
mov qword [rsp + 0x28], rcx
mov r8d, 0x5ce6e4bd
nop dword [rax + rax]
movsx edx, byte [rcx]
inc rcx
mov qword [rsp + 0x28], rcx
test dl, dl
jne 0x1403b6cfc
cmp r8d, 0x9f15a33d
jne 0x1403b6cfa
mov edx, dword [r11 + 0x1c]
add rdx, r9
mov ecx, dword [r11 + 0x24]
add rcx, r9
movzx ecx, word [rcx + r10*2]
mov eax, dword [rdx + rcx*4]
add rax, r9
mov ecx, 0xbeef
call rax
jmp 0x1403b6d15
jmp 0x1403b6c90
xor edx, r8d
imul r8d, edx, 0x1000193
jmp 0x1403b6cc0
mov rax, qword [rax]
jmp 0x1403b6c50
test ebx, ebx
je 0x1403b6dcc
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov r11d, dword [rcx + r10 + 0x88]
add r11, r10
cmp r11, r10
je 0x1403b6da4
mov r9d, dword [r11 + 0x18]
test r9d, r9d
je 0x1403b6da4
mov ebx, dword [r11 + 0x20]
nop word [rax + rax]
dec r9d
lea rdx, [rbx + r9*4]
mov r8d, dword [rdx + r10]
add r8, r10
mov edx, 0xb6ff175d
movzx ecx, byte [r8]
inc r8
test cl, cl
je 0x1403b6d97
nop
movsx ecx, cl
xor ecx, edx
imul edx, ecx, 0x1000193
movzx ecx, byte [r8]
lea r8, [r8 + 1]
test cl, cl
jne 0x1403b6d80
cmp edx, 0x287b777d
je 0x1403b6da9
test r9d, r9d
jne 0x1403b6d60
mov rax, qword [rax]
jmp 0x1403b6d30
mov eax, dword [r11 + 0x24]
add rax, r10
movzx edx, word [rax + r9*2]
mov ecx, dword [r11 + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
add rax, r10
xor ecx, ecx
add rsp, 0x50
pop rbx
jmp rax
add rsp, 0x50
pop rbx
ret
Function at 0x1403b7d80
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x1403b7e17
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x1403b7e17
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x98d229de
lea rcx, [rdi + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x1403b7e12
nop
movsx ecx, cl
lea rdx, [rdx + 1]
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx - 1]
test cl, cl
jne 0x1403b7df0
cmp r8d, 0x94abc010
je 0x1403b7e1c
test r9d, r9d
jne 0x1403b7dd0
mov rax, qword [rax]
jmp 0x1403b7da0
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
add rax, r10
call rax
test eax, eax
je 0x1403b7ee7
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x1403b7ec7
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x1403b7ec7
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0xce9cc889
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x1403b7ec2
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x1403b7ea0
cmp r8d, 0xd4f48d69
je 0x1403b7ecc
test r9d, r9d
jne 0x1403b7e80
mov rax, qword [rax]
jmp 0x1403b7e50
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
xor ecx, ecx
add rax, r10
call rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140002480
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x48
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x68], 0
je 0x1400024bb
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call 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]
jmp 0x140002605
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x40]
cmp qword [rax], 0
je 0x1400024e5
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x58]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
jmp 0x1400024ed
mov dword [rsp + 0x20], 0
movsxd rax, dword [rsp + 0x20]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x70], 0
jle 0x1400025ad
cmp qword [rsp + 0x28], 0
jle 0x1400025ad
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x70], rax
jge 0x140002525
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x28]
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x70]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x58]
mov ecx, dword [rsp + 0x28]
mov eax, dword [rax]
sub eax, ecx
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x58]
mov dword [rcx], eax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x40]
movsxd rcx, dword [rsp + 0x28]
add rcx, qword [rax]
mov rax, rcx
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x40]
mov qword [rcx], rax
cmp qword [rsp + 0x70], 0
jle 0x1400025f5
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x80], 0
je 0x1400025f5
mov rax, qword [rsp + 0x60]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x70]
mov edx, 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsp + 0x70]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x140003b20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x68], 0
je 0x140003b5d
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140003b64
mov al, 1
jmp 0x140003cc0
mov dword [rsp + 0x40], 0xffffffff
mov dword [rsp + 0x50], 0xffffffff
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0xb0]
call qword [rax + 0x18]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x50], eax
jne 0x140003ba6
mov dword [rsp + 0x38], 1
jmp 0x140003bae
mov dword [rsp + 0x38], 0
movzx eax, byte [rsp + 0x38]
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x140003bc7
xor al, al
jmp 0x140003cc0
mov qword [rsp + 0x60], 0x20
lea rax, [rsp + 0x90]
mov rcx, qword [rsp + 0xb0]
add rcx, 0x74
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x70]
mov rdx, rcx
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax + 0x68]
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]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x140003c2d
cmp dword [rsp + 0x34], 1
je 0x140003c39
cmp dword [rsp + 0x34], 3
je 0x140003cae
jmp 0x140003cbe
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jbe 0x140003c85
mov rax, qword [rsp + 0xb0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x58]
mov edx, 1
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x58], rax
je 0x140003c85
xor al, al
jmp 0x140003cc0
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140003c9f
mov dword [rsp + 0x3c], 1
jmp 0x140003ca7
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
jmp 0x140003cc0
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x140003cc0
xor al, al
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140005920
add rsp, 0xa8
ret

Function at 0x140006294
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x160
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea ecx, [rax - 2]
test ecx, 0xfffffffa
jne 0x14000e222
cmp eax, 7
je 0x14000e222
mov dword [rsp + 0x38], 0x105
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
xor ebx, ebx
mov qword [rsp + 0x28], rbx
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x14000e222
mov ecx, ebx
lea rdx, [rsp + 0x40]
lea r8, str.NTFS
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x14000e191
cmp rcx, 5
jne 0x14000e170
mov ebx, 1
movzx eax, bl
jmp 0x14000e224
mov rcx, rbx
lea rdx, [rsp + 0x40]
lea r8, [0x140021358]
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x14000e1be
cmp rcx, 4
jne 0x14000e1a0
mov ebx, 1
movzx eax, bl
jmp 0x14000e224
mov rcx, rbx
lea rdx, [rsp + 0x40]
lea r8, str.FAT32
nop dword [rax]
movzx eax, byte [rdx + rcx]
inc rcx
cmp al, byte [r8 + rcx - 1]
jne 0x14000e1ee
cmp rcx, 6
jne 0x14000e1d0
mov ebx, 1
movzx eax, bl
jmp 0x14000e224
lea rdx, str.exFAT
lea rcx, [rsp + 0x40]
call fcn.140012c84
test eax, eax
je 0x14000e218
lea rdx, str.reFS
lea rcx, [rsp + 0x40]
call fcn.140012c84
test eax, eax
jne 0x14000e21d
mov ebx, 1
movzx eax, bl
jmp 0x14000e224
xor al, al
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14000f550
mov rbx, qword [rsp + 0x178]
add rsp, 0x160
pop rdi
ret
Function at 0x14000e250
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x850
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x840], rax
xor r12d, r12d
mov rbx, rcx
mov r8, rcx
mov dword [rsp + 0x28], r12d
or r9d, 0xffffffff
mov qword [rsp + 0x20], r12
xor edx, edx
mov ecx, 0xfde9
mov r15b, 1
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd r14, eax
lea edx, [r12 + 2]
lea rcx, [r14 + 1]
call fcn.140012ab4
or r9d, 0xffffffff
mov dword [rsp + 0x28], r14d
mov r8, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0xfde9
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov r13d, 0x5c
mov rcx, rdi
mov edx, r13d
call fcn.140010000
mov rsi, rax
test rax, rax
je 0x14000e3f9
mov qword [rsp + 0x888], rbp
nop word [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000e3c8
bt eax, 0xa
jae 0x14000e3c8
cmp qword [0x14002bda0], r12
je 0x14000e39c
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2000000
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14000e39c
xor r9d, r9d
lea rdx, [rsp + 0x40]
mov r8d, 0x400
mov rcx, rax
call qword [0x14002bda0]
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [rbx - 1]
cmp eax, 0x3fe
ja 0x14000e39c
mov r8d, 8
lea rdx, str._UNC_
lea rcx, [rsp + 0x40]
call fcn.140012acc
test eax, eax
je 0x14000e3ee
lea eax, [r14 - 1]
mov r8d, 0x400
movsxd rcx, eax
lea rdx, [rsp + 0x40]
movsxd rax, r14d
mov word [rdi + rcx*2], r13w
mov rcx, rdi
mov word [rdi + rax*2], r12w
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x14000e3ee
mov word [rsi], r12w
mov edx, r13d
sub rsi, rdi
mov rcx, rdi
mov r14, rsi
sar r14, 1
call fcn.140010000
mov rsi, rax
test rax, rax
jne 0x14000e300
jmp 0x14000e3f1
xor r15b, r15b
mov rbp, qword [rsp + 0x888]
mov rcx, rdi
call fcn.140012abc
movzx eax, r15b
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.14000f550
lea r11, [rsp + 0x850]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret