joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400f0b60
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
test rcx, rcx
je 0x1400f0d49
mov r12, qword [rcx]
test r12, r12
je 0x1400f0d37
mov rsi, qword [r12]
mov edx, 1
mov rcx, rsi
shr rcx, 2
mov qword [r12 + 0x28], rcx
add rcx, 7
mov qword [r12 + 0x20], rcx
shl rcx, 4
mov qword [r12 + 0x10], rcx
call sub.msvcrt.dll_calloc
mov qword [r12 + 0x18], rax
mov rcx, rax
test rax, rax
je 0x1400f0d5b
mov rdx, qword [r12 + 8]
mov r8, rsi
call sub.msvcrt.dll_memcpy
mov rax, qword [r12 + 0x20]
mov r8, qword [r12 + 0x28]
shl rax, 2
cmp r8, rax
jae 0x1400f0ce8
mov rcx, qword [rbx]
mov r9, r8
lea r11, [rsp + 0x28]
lea rsi, [rsp + 0x2c]
lea rdi, [0x1402caee0]
lea rbp, [0x1402cafe0]
nop dword [rax + rax]
mov rax, qword [r12 + 0x18]
lea r10, [r8*4]
xor edx, edx
mov r12d, dword [rax + r10 - 4]
mov rax, r8
div r9
mov dword [rsp + 0x28], r12d
test rdx, rdx
je 0x1400f0c90
cmp r9, 6
jbe 0x1400f0c3c
cmp rdx, 4
je 0x1400f0d00
xor eax, eax
mov rdx, qword [rcx + 0x18]
mov r13, r8
sub r13, qword [rcx + 0x28]
lea r9, [rdx + rax]
lea rdx, [rdx + r13*4]
movzx edx, byte [rdx + rax]
xor dl, byte [r11 + rax]
add rax, 1
mov byte [r9 + r10], dl
cmp rax, 4
je 0x1400f0c70
mov rcx, qword [rbx]
jmp 0x1400f0c3e
mov rcx, qword [rbx]
add r8, 1
mov rax, qword [rcx + 0x20]
mov r12, rcx
shl rax, 2
cmp r8, rax
jae 0x1400f0ce8
mov r9, qword [rcx + 0x28]
jmp 0x1400f0c08
movzx edx, word [rsp + 0x29]
mov r9, r11
mov word [rsi], dx
movzx edx, byte [rsp + 0x2b]
mov byte [rsi + 2], dl
mov byte [rsp + 0x2f], r12b
mov edx, dword [rsp + 0x2c]
mov dword [rsp + 0x28], edx
movzx edx, byte [r9]
add r9, 1
mov r12, rdx
and edx, 0xf0
and r12d, 0xf
add rdx, rdi
movzx edx, byte [rdx + r12]
mov byte [r9 - 1], dl
cmp r9, rsi
jne 0x1400f0cb0
movzx eax, byte [rbp + rax - 1]
xor byte [rsp + 0x28], al
jmp 0x1400f0c3c
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rdx, r11
lea r12, [rsp + 0x2c]
lea r9, [0x1402caee0]
movzx eax, byte [rdx]
add rdx, 1
mov r13, rax
and eax, 0xf0
and r13d, 0xf
add rax, r9
movzx eax, byte [rax + r13]
mov byte [rdx - 1], al
cmp r12, rdx
jne 0x1400f0d0f
jmp 0x1400f0c3c
mov eax, 7
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov eax, 2
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov eax, 8
jmp 0x1400f0cea
Function at 0x1400f1d60
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
test rcx, rcx
je 0x1400f1dfa
test rdx, rdx
je 0x1400f1e06
lea r9, [rdx + 0x10]
lea r8, [0x1402caee0]
nop dword [rax]
movzx eax, byte [rdx]
add rdx, 1
mov rcx, rax
and eax, 0xf0
and ecx, 0xf
add rax, r8
movzx eax, byte [rax + rcx]
mov byte [rdx - 1], al
cmp r9, rdx
jne 0x1400f1d90
mov rcx, rbx
call fcn.1400f0a90
call fcn.1400f08c0
lea rcx, [rbx + 4]
call fcn.1400f08c0
lea rcx, [rbx + 8]
call fcn.1400f08c0
lea rcx, [rbx + 0xc]
call fcn.1400f08c0
xor eax, eax
nop dword [rax + rax]
movzx edx, byte [rsi + rax]
xor byte [rbx + rax], dl
add rax, 1
cmp rax, 0x10
jne 0x1400f1de0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov eax, 2
add rsp, 0x28
pop rbx
pop rsi
ret
mov eax, 3
jmp 0x1400f1df3
Function at 0x1400f8230
Capabilities:
Hash data using sha512

Disassembly:
push rbx
sub rsp, 0x30
xor r8d, r8d
mov qword [rsp + 0x20], 8
mov r9, rdx
xor edx, edx
mov rbx, rcx
call fcn.1400f79d0
pxor xmm0, xmm0
movabs rdx, 0x6a09e667f3bcc908
movabs rcx, 0xbb67ae8584caa73b
mov qword [rbx + 0x88], rdx
movabs rdx, 0x3c6ef372fe94f82b
mov qword [rbx + 0x90], rcx
movabs rcx, 0xa54ff53a5f1d36f1
mov qword [rbx + 0x98], rdx
movabs rdx, 0x510e527fade682d1
mov qword [rbx + 0xa0], rcx
movabs rcx, 0x9b05688c2b3e6c1f
mov qword [rbx + 0xa8], rdx
movabs rdx, 0x1f83d9abfb41bd6b
mov qword [rbx + 0xb0], rcx
movabs rcx, 0x5be0cd19137e2179
mov qword [rbx + 0xb8], rdx
mov qword [rbx + 0xc0], rcx
mov qword [rbx + 0xc8], 0
mov qword [rbx + 0xd0], 0
mov qword [rbx + 0xd8], 0
mov qword [rbx + 0xe0], 0
mov qword [rbx + 0x80], 0
movups xmmword [rbx + 0xe8], xmm0
add rsp, 0x30
pop rbx
ret
Function at 0x14012a2b0
Capabilities:
Encode data using xor

Disassembly:
mov r9d, 0x48
jmp fcn.1401273b0
Function at 0x1401508a0
Capabilities:
Encode data using base64

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x80]
and eax, 0x3f
mov rbx, rcx
lea ecx, [rax + 1]
mov rsi, rdx
mov byte [rbx + rax], pe_nt_image_headers64
mov eax, ecx
lea rdi, [rbx + 0x40]
add rax, rbx
cmp ecx, 0x20
jbe 0x1401509b0
mov edx, 0x40
xor r9d, r9d
sub edx, ecx
cmp edx, 8
jb 0x140150a30
mov ecx, edx
mov qword [rax], 0
mov qword [rax + rcx - 8], 0
lea rcx, [rax + 8]
and rcx, 0xfffffffffffffff8
sub rax, rcx
add edx, eax
and edx, 0xfffffff8
cmp edx, 8
jb 0x14015091c
and edx, 0xfffffff8
xor eax, eax
mov r8d, eax
add eax, 8
mov qword [rcx + r8], r9
cmp eax, edx
jb 0x14015090e
pxor xmm0, xmm0
mov rdx, rdi
mov rcx, rbx
call fcn.14014e270
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
mov rax, qword [rbx + 0x80]
pxor xmm0, xmm0
movups xmmword [rbx + 0x20], xmm0
mov rdx, rax
shr rdx, 0x3d
bswap rdx
mov qword [rbx + 0x30], rdx
shl rax, 3
bswap rax
mov qword [rbx + 0x38], rax
mov rdx, rdi
mov rcx, rbx
call fcn.14014e270
xor eax, eax
nop word [rax + rax]
mov rdx, qword [rbx + rax + 0x40]
mov qword [rsi + rax], rdx
add rax, 8
cmp rax, 0x40
jne 0x140150970
pxor xmm0, xmm0
movups xmmword [rbx + 0x40], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
mov qword [rbx + 0x80], 0
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov edx, 0x20
xor r9d, r9d
sub edx, ecx
cmp edx, 8
jb 0x140150a08
mov ecx, edx
mov qword [rax], 0
mov qword [rax + rcx - 8], 0
lea rcx, [rax + 8]
and rcx, 0xfffffffffffffff8
sub rax, rcx
add edx, eax
and edx, 0xfffffff8
cmp edx, 8
jb 0x140150932
and edx, 0xfffffff8
xor eax, eax
mov r8d, eax
add eax, 8
mov qword [rcx + r8], r9
cmp eax, edx
jb 0x1401509ef
jmp 0x140150932
test dl, 4
jne 0x140150a57
test edx, edx
je 0x140150932
mov byte [rax], 0
test dl, 2
je 0x140150932
xor ecx, ecx
mov word [rax + rdx - 2], cx
jmp 0x140150932
test dl, 4
jne 0x140150a6a
test edx, edx
je 0x14015091c
mov byte [rax], 0
test dl, 2
je 0x14015091c
xor r8d, r8d
mov word [rax + rdx - 2], r8w
jmp 0x14015091c
mov dword [rax], 0
mov dword [rax + rdx - 4], 0
jmp 0x140150932
mov dword [rax], 0
mov dword [rax + rdx - 4], 0
jmp 0x14015091c
Function at 0x140150e40
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov r8, rcx
test edx, edx
jle 0x140151014
lea rbp, [0x140307500]
movsxd rdx, edx
lea r14, [rcx + 0xc8]
mov r9d, 0xcccccccd
lea r12, [rbp + rdx*8]
lea rbx, [0x140307440]
mov r10, r14
lea r11, [0x1403074a0]
lea rsi, [rsp + 0x10]
lea rdi, [rcx + 0x28]
nop dword [rax]
mov r13, r8
mov rcx, rsi
mov rdx, r8
nop dword [rax]
mov rax, qword [rdx]
add rdx, 8
xor rax, qword [rdx + 0x20]
add rcx, 8
xor rax, qword [rdx + 0x48]
xor rax, qword [rdx + 0x70]
xor rax, qword [rdx + 0x98]
mov qword [rcx - 8], rax
cmp rdx, rdi
jne 0x140150ea8
mov rcx, r10
xor r14d, r14d
nop dword [rax]
lea edx, [r14 + 4]
mov rax, rdx
imul rdx, r9
shr rdx, 0x22
lea edx, [rdx + rdx*4]
sub eax, edx
lea edx, [r14 + 1]
mov r14, rdx
imul rdx, r9
cdqe
shr rdx, 0x22
lea r15d, [rdx + rdx*4]
mov edx, r14d
sub edx, r15d
movsxd rdx, edx
mov rdx, qword [rsp + rdx*8 + 0x10]
rol rdx, 1
xor rdx, qword [rsp + rax*8 + 0x10]
lea rax, [rcx - 0xc8]
nop
xor qword [rax], rdx
add rax, 0x28
cmp rax, rcx
jne 0x140150f20
lea rcx, [rax + 8]
cmp r14d, 5
jne 0x140150ed8
mov r15, qword [r8 + 8]
xor eax, eax
nop dword [rax]
movsxd rdx, dword [rbx + rax]
mov ecx, dword [r11 + rax]
add rax, 4
lea r14, [r8 + rdx*8]
mov rdx, r15
rol rdx, cl
mov r15, qword [r14]
mov qword [r14], rdx
cmp rax, 0x60
jne 0x140150f40
xor r14d, r14d
mov r15, r12
nop dword [rax + rax]
movdqu xmm0, xmmword [r13]
mov dword [rsp + 0xc], r14d
mov r12, r13
xor edx, edx
movups xmmword [rsi], xmm0
movdqu xmm1, xmmword [r13 + 0x10]
movups xmmword [rsi + 0x10], xmm1
mov rax, qword [r13 + 0x20]
mov qword [rsi + 0x20], rax
nop dword [rax]
lea ecx, [rdx + 1]
mov eax, edx
mov rdx, rcx
imul rcx, r9
shr rcx, 0x22
lea r14d, [rcx + rcx*4]
mov ecx, edx
sub ecx, r14d
lea r14d, [rax + 2]
mov rax, r14
imul r14, r9
movsxd rcx, ecx
mov rcx, qword [rsp + rcx*8 + 0x10]
shr r14, 0x22
not rcx
lea r14d, [r14 + r14*4]
sub eax, r14d
cdqe
and rcx, qword [rsp + rax*8 + 0x10]
xor qword [r12], rcx
add r12, 8
cmp edx, 5
jne 0x140150f98
mov r14d, dword [rsp + 0xc]
add r13, 0x28
add r14d, 5
cmp r14d, 0x19
jne 0x140150f70
mov rax, qword [rbp]
add rbp, 8
xor qword [r8], rax
mov r12, r15
cmp r15, rbp
jne 0x140150e98
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1401511a0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x198
mov qword [rsp + 0x1f0], r8
mov rsi, rcx
mov r12d, edx
mov r13d, r9d
cmp r9d, 0xc8
je 0x140151182
mov r10d, 0x64
sub r10d, r9d
lea r15d, [r10 + r10]
test r15d, r15d
lea ebp, [r15 + 7]
lea r14d, [r15 - 1]
cmovns ebp, r15d
sar ebp, 3
lea rbx, [rsp + 0xc0]
mov ecx, 0x19
xor eax, eax
mov rdi, rbx
rep stosq qword [rdi], rax
cmp r15d, r12d
jg 0x1401510dc
movsxd rdi, r15d
nop dword [rax]
xor eax, eax
cmp r15d, 7
jle 0x1401510c4
nop dword [rax + rax]
mov rdx, qword [rbx + rax*8]
xor rdx, qword [rsi + rax*8]
mov qword [rbx + rax*8], rdx
add rax, 1
cmp ebp, eax
jg 0x1401510b0
mov edx, 0x18
mov rcx, rbx
sub r12d, r15d
add rsi, rdi
call fcn.140150e40
cmp r15d, r12d
jle 0x1401510a0
lea rdi, [rsp + 0x30]
movsxd r8, r12d
mov rdx, rsi
add r12d, 1
mov r9d, 0x90
mov rcx, rdi
mov qword [rsp + 0x28], r8
movsxd r14, r14d
call fcn.14018c690
mov r8, qword [rsp + 0x28]
xor edx, edx
mov byte [rsp + r8 + 0x30], 1
mov r8d, r15d
sub r8d, r12d
movsxd r12, r12d
lea rcx, [rdi + r12]
movsxd r8, r8d
call fcn.140197fc0
or byte [rsp + r14 + 0x30], 0x80
xor eax, eax
cmp r15d, 7
jle 0x14015114c
nop dword [rax]
mov rdx, qword [rbx + rax*8]
xor rdx, qword [rdi + rax*8]
mov qword [rbx + rax*8], rdx
add rax, 1
cmp ebp, eax
jg 0x140151138
mov rcx, rbx
mov edx, 0x18
call fcn.140150e40
mov rcx, qword [rsp + 0x1f0]
movsxd r8, r13d
mov rdx, rbx
call sub.msvcrt.dll_memcpy
xor eax, eax
add rsp, 0x198
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov ebp, 0x11
mov r14d, 0x87
mov r15d, 0x88
jmp 0x140151080
mov r9d, 0xc8
jmp 0x140151030
Function at 0x1401747d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rbx
mov qword [rcx], 0
mov r11, rcx
mov rcx, qword [rdx]
mov rax, rdx
cmp rcx, r8
jae 0x140174880
lea rbx, [rcx + 1]
mov qword [rdx], rbx
movzx edx, byte [rcx]
cmp dl, 0xff
je 0x140174880
test dl, dl
jns 0x140174888
cmp dl, 0x80
je 0x140174880
mov r9, r8
mov r10d, edx
and edx, 0x7f
sub r9, rbx
and r10d, 0x7f
cmp r9, rdx
jb 0x140174880
movzx r9d, byte [rcx + 1]
test r9b, r9b
je 0x140174880
cmp r10b, 8
ja 0x140174880
lea r10, [rcx + 2]
mov qword [r11], r9
mov qword [rax], r10
cmp rdx, 1
je 0x140174862
lea rsi, [rcx + rdx + 1]
nop dword [rax]
movzx ecx, byte [r10]
shl r9, 8
add r10, 1
or r9, rcx
mov qword [r11], r9
mov qword [rax], r10
cmp r10, rsi
jne 0x140174848
add rbx, rdx
sub r8, rbx
cmp r8, r9
setb al
cmp r9, 0x7f
setbe dl
or eax, edx
xor eax, 1
movzx eax, al
jmp 0x140174882
xor eax, eax
pop rbx
pop rsi
ret
mov eax, 1
mov qword [r11], rdx
pop rbx
pop rsi
ret
Function at 0x1401776e0
Capabilities:
Hash data using sha256

Disassembly:
push rsi
push rbx
sub rsp, 0x48
movdqu xmm1, xmmword [0x140308ba0]
movdqu xmm0, xmmword [0x140308bb0]
mov qword [rcx + 0x60], 0
mov rbx, rcx
lea rsi, [rsp + 0x20]
movups xmmword [rcx], xmm1
movups xmmword [rcx + 0x10], xmm0
call fcn.140174930
mov rdx, rsi
mov rcx, rbx
call fcn.1401775e0
mov rdx, rsi
mov rcx, rbx
movups xmmword [rbx], xmm1
mov qword [rbx + 0x60], 0
mov r8d, 0x20
movups xmmword [rbx + 0x10], xmm0
call fcn.140174930
mov r8d, 0x20
mov rdx, rsi
mov rcx, rbx
call fcn.140174930
nop
add rsp, 0x48
pop rbx
pop rsi
ret

Function at 0x140177fc0
Capabilities:
Encode data using xor
Hash data using sha256

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
movdqu xmm3, xmmword [0x140308ba0]
pxor xmm0, xmm0
movdqu xmm2, xmmword [0x140308bb0]
movdqu xmm1, xmmword [str.jjjjjjjjjjjjjjjj]
movdqu xmm4, xmmword [rdx]
movdqu xmm5, xmmword [rdx + 0x10]
mov rsi, rcx
lea rbp, [rsp + 0x20]
movups xmmword [rsp + 0x20], xmm4
lea rcx, [rcx + 0x68]
movups xmmword [rsp + 0x30], xmm5
mov rbx, rbp
lea rdi, [rsp + 0x60]
mov rax, rbp
mov qword [rsi + 0xc8], 0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsi + 0x68], xmm3
movups xmmword [rsi + 0x78], xmm2
movdqu xmm0, xmmword [rax]
add rax, 0x10
pxor xmm0, xmm1
movups xmmword [rax - 0x10], xmm0
cmp rdi, rax
jne 0x14017802b
mov r8d, 0x40
mov rdx, rbp
call fcn.140174930
movdqu xmm1, xmmword [0x140308c50]
movups xmmword [rsi], xmm3
mov qword [rsi + 0x60], 0
movups xmmword [rsi + 0x10], xmm2
movdqu xmm0, xmmword [rbx]
add rbx, 0x10
pxor xmm0, xmm1
movups xmmword [rbx - 0x10], xmm0
cmp rdi, rbx
jne 0x140178065
mov r8d, 0x40
mov rdx, rbp
mov rcx, rsi
call fcn.140174930
nop
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x14017eee0
Capabilities:
Hash data using sha256

Disassembly:
push rsi
push rbx
sub rsp, 0xb8
movdqu xmm0, xmmword [0x140308ba0]
mov r8d, 0x3f
lea rdx, str.For_this_sample__this_63_byte_string_will_be_used_as_input_data
movups xmmword [rsp + 0x40], xmm0
lea rsi, [rsp + 0x40]
movdqu xmm0, xmmword [0x140308bb0]
lea rbx, [rsp + 0x20]
mov qword [rsp + 0xa0], 0
mov rcx, rsi
movups xmmword [rsp + 0x50], xmm0
call fcn.140174930
mov rdx, rbx
mov rcx, rsi
call fcn.1401775e0
xor eax, eax
lea rdx, [0x140308780]
jmp 0x14017ef52
add rax, 1
cmp rax, 0x20
je 0x14017ef70
movzx ecx, byte [rdx + rax]
cmp byte [rbx + rax], cl
je 0x14017ef48
xor edx, edx
lea rcx, str.self_test_failed
call fcn.1401748d0
nop
nop word [rax + rax]
add rsp, 0xb8
pop rbx
pop rsi
ret

Function at 0x14018c990
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140197860
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140197860
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x14018ca00
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140469684]
mov rbx, rcx
test esi, esi
jle 0x14018cb30
mov rax, qword [0x140469688]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14018ca4b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14018cad5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14018ca30
mov rcx, rbx
call fcn.14018d450
mov rdi, rax
test rax, rax
je 0x14018cb52
mov rax, qword [0x140469688]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14018d590
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140469688]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14018cb37
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14018cace
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14018cae0
add dword [0x140469684], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140469688]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14018cace
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14018c990
nop dword [rax]
xor esi, esi
jmp 0x14018ca58
mov rax, qword [0x140469688]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14018c990
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14018c990
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14018d0c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1404696e0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1404696c0]
test rbx, rbx
je 0x14018d11c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14018d113
test rsi, rsi
je 0x14018d113
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14018d0f8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14018d450
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14041fba0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14018d470
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14018d478
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14018d470
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14018d4cd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14018d4c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14018d470
add rax, 0x28
cmp rax, r9
jne 0x14018d4b0
xor eax, eax
ret

Function at 0x14018d4d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14041fba0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14018d4ef
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14018d4f8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14018d4ef
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14018d590
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14041fba0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14018d5af
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14018d5b8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x230
mov rbx, rcx
call sub.msvcrt.dll__errno
mov dword [rax], 0
test rbx, rbx
je 0x14018e770
cmp word [rbx], 0
je 0x14018e760
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14018e780
test al, 0x10
je 0x14018e760
lea rsi, [rsp + 0x20]
mov rdx, rbx
mov r8d, 0x104
mov rcx, rsi
lea rdi, [0x14041e720]
lea rbp, [0x14041e724]
call sub.msvcrt.dll__wfullpath
mov rcx, rsi
call sub.msvcrt.dll_wcslen
mov rcx, rdi
mov rbx, rax
call sub.msvcrt.dll_wcslen
mov rcx, rbp
add rbx, rax
call sub.msvcrt.dll_wcslen
lea rcx, [rbx + rax + 0x229]
add rcx, rcx
call sub.msvcrt.dll_malloc
mov rbx, rax
test rax, rax
je 0x14018e78f
lea r12, [rax + 0x44c]
mov rdx, rsi
mov rcx, r12
call sub.msvcrt.dll_wcscpy
cmp word [rbx + 0x44c], 0
jne 0x14018e728
mov rdx, rbp
mov rcx, r12
call sub.msvcrt.dll_wcscat
lea rdx, [rbx + 0x238]
mov ecx, 0x41
xor eax, eax
mov qword [rbx + 0x440], 0xffffffffffffffff
mov rdi, rdx
mov dword [rbx + 0x448], 0
mov qword [rbx + 0x230], 0
rep stosq qword [rdi], rax
mov rax, rbx
add rsp, 0x230
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, r12
call sub.msvcrt.dll_wcslen
cmp word [rbx + rax*2 + 0x44a], 0x2f
je 0x14018e6d2
mov rcx, r12
call sub.msvcrt.dll_wcslen
cmp word [rbx + rax*2 + 0x44a], 0x5c
je 0x14018e6d2
mov rdx, rdi
mov rcx, r12
call sub.msvcrt.dll_wcscat
jmp 0x14018e6d2
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [rax], 0x14
jmp 0x14018e711
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [rax], 0xe
jmp 0x14018e711
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [rax], 2
jmp 0x14018e711
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [rax], 0xc
jmp 0x14018e711
Function at 0x14018ed20
Capabilities:
Enumerate disk volumes
Get disk information
Get disk size
Get file size

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
mov ebp, ecx
mov rsi, rdx
cmp ecx, 0xffffffff
je 0x14018ef50
test rdx, rdx
js 0x14018ef50
call sub.msvcrt.dll__get_osfhandle
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14018ef80
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x14018ef80
mov ecx, ebp
call sub.msvcrt.dll__telli64
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
je 0x14018ef50
lea rdx, [rsp + 0x68]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14018ef80
cmp qword [rsp + 0x68], rsi
jb 0x14018ee10
xor r9d, r9d
mov qword [rsp + 0x70], rsi
lea r8, [rsp + 0x74]
mov edx, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x14018edc9
cmp dword [rsp + 0x70], 0xffffffff
jne 0x14018ef64
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x14018ef50
mov rdx, qword [rsp + 0x48]
xor r8d, r8d
mov ecx, ebp
call sub.msvcrt.dll__lseeki64
cmp rax, 0xffffffffffffffff
je 0x14018ef50
xor eax, eax
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x14018ef50
mov edx, 2
mov ecx, 0x33
call sub.msvcrt.dll_calloc
mov edx, 2
mov ecx, 0x106
mov rbx, rax
call sub.msvcrt.dll_calloc
mov r12, rax
test rbx, rbx
je 0x14018ef80
test rax, rax
je 0x14018ef80
mov edx, 0x32
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov r14, qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov r15, qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov r13, rax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x40], rax
jmp 0x14018eea7
mov r8d, 0x32
mov rdx, rbx
mov rcx, r13
call r15
test eax, eax
je 0x14018ef38
mov dword [rsp + 0x38], 0
mov rdx, r12
mov rcx, rbx
mov r9, qword [rsp + 0x40]
mov qword [rsp + 0x30], 0
mov r8d, 0x105
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call r14
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x8c], eax
jne 0x14018ee90
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov rcx, r12
call fcn.140197f58
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov rcx, rbx
mov r12d, eax
call fcn.140197f58
test r12d, r12d
je 0x14018ef71
mov rax, rsi
sub rax, qword [rsp + 0x68]
cmp qword [rsp + 0x60], rax
jae 0x14018eda1
jmp 0x14018ef71
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov rcx, rbx
xor ebx, ebx
call fcn.140197f58
jmp 0x14018eef4
mov ecx, 0x16
call fcn.140197310
mov eax, 0xffffffff
jmp 0x14018edf5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x83
jne 0x14018ef50
mov ecx, 0x1b
call fcn.140197310
jmp 0x14018ef5a
mov ecx, 9
call fcn.140197310
jmp 0x14018ef5a
Function at 0x1401b6440
Capabilities:
Create directory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rbx, rdx
mov rcx, qword [rcx]
call qword [sym.imp.msvcrt.dll__wmkdir]
test eax, eax
jne 0x1401b6480
call fcn.140262bb0
mov dword [rbx], 0
mov qword [rbx + 8], rax
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call qword [sym.imp.msvcrt.dll__errno]
mov edi, dword [rax]
cmp edi, 0x11
je 0x1401b64a8
call fcn.140262bc0
mov dword [rbx], edi
mov qword [rbx + 8], rax
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov rdx, rbx
mov rcx, rsi
call fcn.140233260
cmp al, 2
jne 0x1401b648d
xor eax, eax
jmp 0x1401b649a