joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400cde64
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400cde7a
mov al, 1
jmp 0x1400cdeda
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400cde8b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400cded8
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400d5350
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400cded8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400cded8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400cded8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400cdeda
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400d3610
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140059bd4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400d36b1
cmp ebx, dword [rsp + 0x30]
je 0x1400d36aa
test esi, esi
je 0x1400d36aa
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400d3685
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400d3692
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400d366f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400d3696
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400d36b3
mov eax, 1
jmp 0x1400d36b3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140115620
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x28
mov eax, 0xffffffff
cmp rdx, rax
jbe 0x140115638
mov eax, 0xffffffff
add rsp, 0x28
ret
mov r8d, edx
xor r9d, r9d
mov rdx, rcx
mov rcx, qword [0x1401d50e0]
call sub.bcrypt.dll_BCryptGenRandom
xor ecx, ecx
test eax, eax
setns cl
lea eax, [rcx - 1]
add rsp, 0x28
ret

Function at 0x140115790
Capabilities:
Hash data via bcrypt

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
xor r9d, r9d
call sub.bcrypt.dll_BCryptHashData
xor ecx, ecx
test eax, eax
setns cl
lea eax, [rcx - 1]
add rsp, 0x28
ret
Function at 0x140116ff0
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x18], r8d
push rbp
push rdi
push r13
push r14
push r15
sub rsp, 0x50
mov ebp, dword [rdx + 0x10]
mov r14, r9
mov r13, qword [rsp + 0xa0]
mov eax, r8d
mov rdi, rcx
test ebp, ebp
je 0x140117024
mov r15, qword [rcx + 0x18]
jmp 0x140117027
mov r15, r14
mov qword [rsp + 0x88], r12
test eax, eax
jne 0x140117079
test ebp, ebp
jne 0x140117079
xor r12d, r12d
lea rax, [rsp + 0xa0]
mov dword [rsp + 0x48], r12d
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov r8d, r13d
mov eax, dword [rcx + 0x24]
mov rdx, r15
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], eax
mov rax, qword [rcx + 0x10]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call sub.bcrypt.dll_BCryptDecrypt
jmp 0x1401170b9
xor r12d, r12d
lea rax, [rsp + 0xa0]
mov dword [rsp + 0x48], r12d
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov r8d, r13d
mov eax, dword [rcx + 0x24]
mov rdx, r15
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], eax
mov rax, qword [rcx + 0x10]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call sub.bcrypt.dll_BCryptEncrypt
mov ebx, eax
test eax, eax
js 0x1401171dc
mov ecx, dword [rsp + 0xa0]
mov qword [rsp + 0x80], rsi
call fcn.14003f380
mov rsi, rax
test rax, rax
je 0x1401171cf
cmp dword [rsp + 0x90], 0
jne 0x140117136
test ebp, ebp
jne 0x140117136
mov ecx, dword [rsp + 0xa0]
lea rax, [rsp + 0xa0]
mov dword [rsp + 0x48], r12d
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov r8d, r13d
mov eax, dword [rdi + 0x24]
mov rdx, r15
mov dword [rsp + 0x38], ecx
mov rcx, qword [rdi]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], eax
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x20], rax
call sub.bcrypt.dll_BCryptDecrypt
jmp 0x140117179
mov rcx, qword [rdi]
lea rax, [rsp + 0xa0]
mov dword [rsp + 0x48], r12d
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov r8d, r13d
mov eax, dword [rsp + 0xa0]
mov rdx, r15
mov dword [rsp + 0x38], eax
mov eax, dword [rdi + 0x24]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], eax
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x20], rax
call sub.bcrypt.dll_BCryptEncrypt
mov ebx, eax
test eax, eax
js 0x1401171b2
mov rcx, r14
test ebp, ebp
je 0x1401171a2
mov r9, r13
mov r8, rsi
mov rdx, r14
call fcn.140119980
mov edx, dword [rdi + 0x2c]
mov rcx, qword [rdi + 0x18]
call fcn.140119a60
jmp 0x1401171b2
mov r8d, dword [rsp + 0xa0]
mov rdx, rsi
call fcn.140017310
mov ecx, dword [rsp + 0xa0]
test rcx, rcx
je 0x1401171c5
mov rdi, rsi
xor eax, eax
rep stosb byte [rdi], al
mov rcx, rsi
call fcn.14003eedc
jmp 0x1401171d4
mov ebx, 0xc0000017
mov rsi, qword [rsp + 0x80]
mov r12, qword [rsp + 0x88]
sar ebx, 0x1f
mov eax, ebx
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
Function at 0x140118ad0
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov rbx, r9
mov r15, r8
mov rdi, rdx
mov r14, rcx
test rcx, rcx
je 0x140118d0f
test rdx, rdx
je 0x140118d0f
test r8, r8
je 0x140118d0f
test rbx, rbx
je 0x140118d0f
mov ecx, dword [r9 + 8]
mov ebp, dword [r8 + 8]
add ecx, 0x18
add ebp, ecx
mov dword [rsp + 0x50], 0x18
mov ecx, ebp
mov r12d, ebp
call fcn.14003f380
mov rsi, rax
test rax, rax
je 0x140118d0f
mov dword [rax], 0x31415352
mov ecx, dword [rbx + 8]
shl ecx, 3
mov dword [rax + 4], ecx
mov ecx, dword [r15 + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rbx + 8]
mov dword [rax + 0xc], ecx
mov qword [rsp + 0x98], r13
xor r13d, r13d
mov qword [rax + 0x10], r13
mov ecx, dword [rsp + 0x50]
mov r8d, dword [r15 + 8]
add rcx, rax
mov rdx, qword [r15]
call fcn.140017310
mov ecx, dword [r15 + 8]
add ecx, dword [rsp + 0x50]
mov r8d, dword [rbx + 8]
add rcx, rsi
mov rdx, qword [rbx]
call fcn.140017310
mov rcx, qword [0x1401d5138]
lea r9, [rsp + 0x58]
mov dword [rsp + 0x30], r13d
lea r8, str.RSAPUBLICBLOB
mov dword [rsp + 0x28], ebp
xor edx, edx
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x50], r13d
call sub.bcrypt.dll_BCryptImportKeyPair
mov ebx, eax
test eax, eax
js 0x140118ce9
mov r8d, dword [rdi + 8]
lea rax, [rsp + 0x90]
mov rdx, qword [rdi]
xor r9d, r9d
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], r13d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
call sub.bcrypt.dll_BCryptEncrypt
mov ebx, eax
test eax, eax
js 0x140118cdf
mov edx, dword [rsp + 0x90]
mov rcx, r14
call fcn.140118a50
test eax, eax
jne 0x140118cda
mov ecx, dword [rsp + 0x90]
cmp dword [rdi + 8], ecx
cmova ecx, dword [rdi + 8]
mov dword [rsp + 0x90], ecx
call fcn.14003f380
mov rbp, rax
test rax, rax
je 0x140118cda
mov r9d, dword [rdi + 8]
mov rcx, rax
mov r8, qword [rdi]
mov edx, dword [rsp + 0x90]
call fcn.140117f80
mov ecx, dword [r14 + 8]
lea rax, [rsp + 0x50]
mov r8d, dword [rsp + 0x90]
xor r9d, r9d
mov dword [rsp + 0x48], 1
mov rdx, rbp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], ecx
mov rcx, qword [r14]
mov qword [rsp + 0x30], rcx
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
call sub.bcrypt.dll_BCryptEncrypt
mov ecx, dword [rsp + 0x90]
mov ebx, eax
test rcx, rcx
je 0x140118cc0
mov rdi, rbp
xor eax, eax
rep stosb byte [rdi], al
mov rcx, rbp
call fcn.14003eedc
test ebx, ebx
js 0x140118cdf
mov edx, dword [rsp + 0x50]
mov rcx, r14
call fcn.140118a50
jmp 0x140118cdf
mov ebx, 0xc0000017
mov rcx, qword [rsp + 0x58]
call sub.bcrypt.dll_BCryptDestroyKey
mov r13, qword [rsp + 0x98]
test r12, r12
je 0x140118d00
mov rdi, rsi
xor eax, eax
mov rcx, r12
rep stosb byte [rdi], al
mov rcx, rsi
call fcn.14003eedc
sar ebx, 0x1f
mov eax, ebx
jmp 0x140118d14
mov eax, 0xffffffff
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140119160
Capabilities:
Encode data using base64

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rbx, r8
mov qword [r9], 0
mov r15, r9
mov rdi, rdx
mov r8, rcx
mov rsi, 0xffffffffffffffff
test rbx, rbx
jne 0x140119199
mov rbx, rsi
nop
inc rbx
cmp byte [rdx + rbx], 0
jne 0x140119190
lea rcx, [rbx*4]
movabs rax, 0xaaaaaaaaaaaaaaab
mul rcx
mov rcx, rdx
mov rdx, r8
shr rcx, 1
add rcx, 4
call qword [rreloc.WS2_32.dll_htonl + 8]
mov r10, rax
mov r14, rax
test rax, rax
jne 0x1401191d6
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r12
test rbx, rbx
je 0x1401192bb
lea r12, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
xor edx, edx
xor eax, eax
test rbx, rbx
je 0x140119206
movzx ecx, byte [rdi]
inc edx
inc rdi
dec rbx
jmp 0x140119212
cmp rax, 3
jae 0x1401192e5
xor cl, cl
mov byte [rsp + rax + 0x50], cl
inc rax
cmp rax, 3
jl 0x1401191f4
movzx r11d, byte [rsp + 0x50]
movzx ecx, byte [rsp + 0x51]
movzx ebp, r11b
movzx r8d, byte [rsp + 0x52]
movzx eax, cl
shr al, 4
and r11b, 3
and cl, 0xf
shl r11b, 4
or r11b, al
shl cl, 2
movzx eax, r8b
shr bpl, 2
shr al, 6
and r8b, 0x3f
or cl, al
sub edx, 1
je 0x140119286
cmp edx, 1
je 0x140119279
movzx eax, r8b
movzx r8d, byte [rax + r12]
movzx eax, cl
movzx r9d, byte [rax + r12]
jmp 0x14011928d
movzx eax, cl
mov r8b, 0x3d
movzx r9d, byte [rax + r12]
jmp 0x14011928d
mov r8b, 0x3d
movzx r9d, r8b
movzx eax, bpl
movzx edx, byte [rax + r12]
movzx eax, r11b
movzx ecx, byte [rax + r12]
mov byte [r10], dl
mov byte [r10 + 1], cl
mov byte [r10 + 2], r9b
mov byte [r10 + 3], r8b
add r10, 4
test rbx, rbx
jne 0x1401191f0
mov byte [r10], 0
mov qword [r15], r14
inc rsi
cmp byte [r14 + rsi], 0
jne 0x1401192c2
mov rbp, qword [rsp + 0x58]
mov rax, rsi
mov r12, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
call fcn.1400d1c3c
int3

Function at 0x140119980
Capabilities:
Encode data using xor

Disassembly:
xor r10d, r10d
test r9, r9
je 0x140119a54
cmp r9, 0x40
jb 0x140119a37
lea r11, [rcx - 1]
lea rax, [r8 - 1]
add r11, r9
add rax, r9
cmp rcx, rax
ja 0x1401199b2
cmp r11, r8
jae 0x140119a37
lea rax, [rdx - 1]
add rax, r9
cmp rcx, rax
ja 0x1401199c3
cmp r11, rdx
jae 0x140119a37
mov rax, r9
and rax, 0xffffffffffffffc0
nop word [rax + rax]
movdqu xmm0, xmmword [r8]
add r10, 0x40
movdqu xmm1, xmmword [rdx]
pxor xmm1, xmm0
movdqu xmm0, xmmword [r8 + 0x10]
movdqu xmmword [rcx], xmm1
movdqu xmm1, xmmword [rdx + 0x10]
pxor xmm1, xmm0
movdqu xmm0, xmmword [r8 + 0x20]
movdqu xmmword [rcx + 0x10], xmm1
movdqu xmm1, xmmword [rdx + 0x20]
pxor xmm1, xmm0
movdqu xmm0, xmmword [r8 + 0x30]
add r8, 0x40
movdqu xmmword [rcx + 0x20], xmm1
movdqu xmm1, xmmword [rdx + 0x30]
add rdx, 0x40
pxor xmm1, xmm0
movdqu xmmword [rcx + 0x30], xmm1
add rcx, 0x40
cmp r10, rax
jb 0x1401199d0
cmp r10, r9
jae 0x140119a54
sub rdx, rcx
sub r8, rcx
sub r9, r10
movzx eax, byte [r8 + rcx]
xor al, byte [rdx + rcx]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub r9, 1
jne 0x140119a40
ret
Function at 0x14012eb50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rdi
cmp byte [0x1401d5194], 0
lea rdi, [0x1401d51a0]
mov r11, rdx
mov r10, rcx
jne 0x14012ec2c
mov qword [rsp + 0x10], rbx
xor ebx, ebx
mov byte [0x1401d5194], 1
nop word [rax + rax]
mov edx, ebx
shr edx, 1
mov ecx, edx
xor ecx, 0xedb88320
test bl, 1
cmove ecx, edx
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
test cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
test dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
test cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
test dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
test cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov r9d, eax
xor r9d, 0xedb88320
test dl, 1
cmove r9d, eax
mov ecx, r9d
shr ecx, 1
mov eax, ecx
xor eax, 0xedb88320
test r9b, 1
cmove eax, ecx
mov dword [rdi + rbx*4], eax
inc rbx
cmp rbx, 0x100
jb 0x14012eb80
mov rbx, qword [rsp + 0x10]
not r8d
test r11, r11
je 0x14012ec5d
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r10]
lea r10, [r10 + 1]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
xor r8d, dword [rdi + rcx*4]
sub r11, 1
jne 0x14012ec40
not r8d
mov eax, r8d
pop rdi
ret

Function at 0x14012ec70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp byte [0x1401d5194], 0
jne 0x14012ed35
mov byte [0x1401d5194], 1
lea r9, [0x1401d51a0]
xor r8d, r8d
nop
mov ecx, r8d
shr ecx, 1
mov edx, ecx
xor edx, 0xedb88320
test r8b, 1
cmove edx, ecx
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
test dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
test cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
test dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
test cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
test dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
test cl, 1
cmove edx, eax
mov ecx, edx
shr ecx, 1
mov eax, ecx
xor eax, 0xedb88320
test dl, 1
cmove eax, ecx
mov dword [r9 + r8*4], eax
inc r8
cmp r8, 0x100
jb 0x14012ec90
ret
Function at 0x14012ed40
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
cmp byte [0x1401d5da0], 0
lea rbx, [0x1401d55a0]
mov r11, rdx
mov r10, rcx
jne 0x14012ee14
mov byte [0x1401d5da0], 1
xor r9d, r9d
movabs rcx, 0xc96c5795d7870f42
nop dword [rax]
nop word [rax + rax]
mov rdx, r9
mov rax, r9
shr rdx, 1
xor rdx, rcx
shr rax, 1
test r9b, 1
cmovne rax, rdx
test al, 1
je 0x14012eda3
shr rax, 1
xor rax, rcx
jmp 0x14012eda6
shr rax, 1
test al, 1
je 0x14012edb2
shr rax, 1
xor rax, rcx
jmp 0x14012edb5
shr rax, 1
test al, 1
je 0x14012edc1
shr rax, 1
xor rax, rcx
jmp 0x14012edc4
shr rax, 1
test al, 1
je 0x14012edd0
shr rax, 1
xor rax, rcx
jmp 0x14012edd3
shr rax, 1
test al, 1
je 0x14012eddf
shr rax, 1
xor rax, rcx
jmp 0x14012ede2
shr rax, 1
test al, 1
je 0x14012edee
shr rax, 1
xor rax, rcx
jmp 0x14012edf1
shr rax, 1
test al, 1
je 0x14012edfd
shr rax, 1
xor rax, rcx
jmp 0x14012ee00
shr rax, 1
mov qword [rbx + r9*8], rax
inc r9
cmp r9, 0x100
jb 0x14012ed80
not r8
test r11, r11
je 0x14012ee3d
nop dword [rax]
movzx eax, byte [r10]
lea r10, [r10 + 1]
movzx ecx, r8b
xor rcx, rax
shr r8, 8
xor r8, qword [rbx + rcx*8]
sub r11, 1
jne 0x14012ee20
mov rbx, qword [rsp + 8]
not r8
mov rax, r8
ret
Function at 0x140131ad8
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140083c9c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140083c9c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140131c28
cmp rax, 0xffffffffffffffff
je 0x140131c28
xor edi, edi
test rbp, rbp
jle 0x140131bd3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400590f4
mov rbx, rax
test rax, rax
jne 0x140131b60
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140131bc9
mov edx, 0x8000
mov ecx, r14d
call fcn.14010192c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400cbc3c
cmp eax, 0xffffffff
je 0x140131ba9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140131b70
mov edx, r15d
mov ecx, r14d
call fcn.14010192c
jmp 0x140131bc9
cmp byte [rsi + 0x38], dil
je 0x140131bc0
cmp dword [rsi + 0x34], 5
jne 0x140131bc0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x140131bc9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14005916c
jmp 0x140131c3c
jns 0x140131c3c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140083c9c
cmp rax, 0xffffffffffffffff
jne 0x140131bf4
cmp byte [rsi + 0x30], dil
je 0x140131c3c
mov edi, dword [rsi + 0x2c]
jmp 0x140131c3c
mov ecx, r14d
call fcn.1400d5350
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140131c3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x140131c3c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140131c35
mov eax, dword [rsi + 0x2c]
jmp 0x140131c3a
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140083c9c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14013460c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1401cfe60]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x140134656
call fcn.14005ccd4
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.14005ccb4
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.140058d08
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14005e8d0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x140134661
lea eax, [rbx + 1]
jmp 0x140134643
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x140134641
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x140134643
Function at 0x14013a2a0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push r12
push r13
push r14
push r15
mov esi, dword [rcx + 0x4804]
lea r9, [0x1401602c0]
mov ebp, edx
mov r11, rcx
mov dword [rcx + rbp*4 + 0x4808], esi
lea r12, [r11 + 0x404]
movzx edx, word [rcx]
movzx ecx, word [rcx + 2]
mov eax, edx
shr rax, 4
xor rdx, 0x7f0
shr rdx, 4
movzx r14d, byte [rax + r9]
mov eax, ecx
movzx r8d, byte [rdx + r9]
xor rcx, 0x7f0
shr rax, 4
shr rcx, 4
mov dword [rsp + 0x38], r14d
movzx r15d, byte [rax + r9]
movzx r13d, byte [rcx + r9]
add r15d, r8d
imul rax, rbp, 0x440
add r13d, r8d
xor r9d, r9d
add r12, rax
test esi, esi
je 0x14013a489
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x40], rdi
mov rdi, r12
cmp r9d, 8
jae 0x14013a3af
xor r10d, r10d
lea r8d, [r9 + 8]
lea rbx, [rbp*8]
lea r14, [0x1401602c0]
nop dword [rax]
nop dword [rax + rax]
mov ecx, r8d
shr r8d, 1
and ecx, 1
mov eax, r8d
add rax, rbx
movzx edx, word [r11 + rax*2 + 4]
mov eax, ecx
neg eax
shr rdx, 4
shr rax, 4
and eax, 0x7f
xor rdx, rax
movzx eax, byte [rdx + r14]
add r10d, eax
cmp r8d, 1
jne 0x14013a360
mov eax, dword [rsp + 0x38]
inc r9d
add eax, r10d
mov dword [rdi], eax
add rdi, 4
cmp r9d, esi
jb 0x14013a338
jmp 0x14013a47f
cmp r9d, esi
jae 0x14013a47f
lea rdi, [r12 + r9*4]
lea r14, [0x1401602c0]
cmp r9d, 0x10
jae 0x14013a42c
xor r10d, r10d
lea rbx, [rbp*8]
mov r8d, r9d
nop word [rax + rax]
mov ecx, r8d
shr r8d, 1
and ecx, 1
mov eax, r8d
add rax, rbx
movzx edx, word [r11 + rax*2 + 0x104]
mov eax, ecx
neg eax
shr rdx, 4
shr rax, 4
and eax, 0x7f
xor rdx, rax
movzx eax, byte [rdx + r14]
add r10d, eax
cmp r8d, 1
jne 0x14013a3e0
lea eax, [r10 + r15]
inc r9d
mov dword [rdi], eax
add rdi, 4
cmp r9d, esi
jb 0x14013a3c3
jmp 0x14013a47f
lea rbx, [r12 + r9*4]
xor r10d, r10d
lea eax, [r9 + 0xf0]
nop word [rax + rax]
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
shr rcx, 4
movzx r8d, word [r11 + rax*2 + 0x204]
and ecx, 0x7f
shr r8, 4
xor r8, rcx
movzx ecx, byte [r8 + r14]
add r10d, ecx
cmp eax, 1
jne 0x14013a440
lea eax, [r10 + r13]
inc r9d
mov dword [rbx], eax
add rbx, 4
cmp r9d, esi
jb 0x14013a430
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
Function at 0x14013af70
Capabilities:
Encode data using xor

Disassembly:
push rdi
sub rsp, 0x30
mov edx, edx
mov r10, rcx
mov dword [rcx], 0x4000400
mov r9d, 0x400
mov qword [rsp + 0x58], rdx
test rdx, rdx
je 0x14013afed
lea rax, [rcx + 8]
mov ecx, edx
nop word [rax + rax]
mov dword [rax - 4], 0x4000400
mov dword [rax], 0x4000400
mov dword [rax + 4], 0x4000400
mov dword [rax + 8], 0x4000400
mov dword [rax + 0xfc], 0x4000400
mov dword [rax + 0x100], 0x4000400
mov dword [rax + 0x104], 0x4000400
mov dword [rax + 0x108], 0x4000400
lea rax, [rax + 0x10]
sub rcx, 1
jne 0x14013afa0
movzx eax, r9w
lea rdi, [r10 + 0x204]
mov ecx, 0x100
rep stosw word [rdi], ax
test r8b, r8b
jne 0x14013b166
xor eax, eax
mov qword [rsp + 0x40], rax
test rdx, rdx
je 0x14013b166
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x28], rbp
lea rbp, [0x1401602c0]
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r12
mov qword [rsp + 0x10], r13
mov qword [rsp + 8], r14
mov qword [rsp], r15
mov esi, dword [r10 + 0x4804]
lea rdi, [0x1401602c0]
mov r14d, eax
xor r8d, r8d
imul r12, r14, 0x440
mov dword [r10 + r14*4 + 0x4808], esi
movzx ecx, word [r10]
add r12, 0x404
mov eax, ecx
add r12, r10
xor rcx, 0x7f0
shr rax, 4
shr rcx, 4
movzx ebp, byte [rax + rbp]
movzx edx, byte [rcx + rdi]
movzx ecx, word [r10 + 2]
mov eax, ecx
mov dword [rsp + 0x50], ebp
xor rcx, 0x7f0
shr rax, 4
shr rcx, 4
movzx r15d, byte [rax + rdi]
movzx r13d, byte [rcx + rdi]
add r15d, edx
add r13d, edx
test esi, esi
je 0x14013b125
mov rbx, r12
nop dword [rax]
cmp r8d, 8
jae 0x14013b16c
xor r9d, r9d
lea edi, [r8 + 8]
lea r11, [r14*8]
lea rbp, [0x1401602c0]
mov ecx, edi
shr edi, 1
and ecx, 1
mov eax, edi
add rax, r11
movzx edx, word [r10 + rax*2 + 4]
mov eax, ecx
neg eax
shr rdx, 4
shr rax, 4
and eax, 0x7f
xor rdx, rax
movzx eax, byte [rdx + rbp]
add r9d, eax
cmp edi, 1
jne 0x14013b0e0
mov eax, dword [rsp + 0x50]
inc r8d
add eax, r9d
mov dword [rbx], eax
add rbx, 4
cmp r8d, esi
jb 0x14013b0c0
lea rbp, [0x1401602c0]
mov rax, qword [rsp + 0x40]
inc rax
mov qword [rsp + 0x40], rax
cmp rax, qword [rsp + 0x58]
jb 0x14013b042
mov r15, qword [rsp]
mov r14, qword [rsp + 8]
mov r13, qword [rsp + 0x10]
mov r12, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp r8d, esi
jae 0x14013b125
lea rbx, [r12 + r8*4]
lea rbp, [0x1401602c0]
nop dword [rax]
cmp r8d, 0x10
jae 0x14013b1de
xor r9d, r9d
lea r11, [r14*8]
mov edi, r8d
mov ecx, edi
shr edi, 1
and ecx, 1
mov eax, edi
add rax, r11
movzx edx, word [r10 + rax*2 + 0x104]
mov eax, ecx
neg eax
shr rdx, 4
shr rax, 4
and eax, 0x7f
xor rdx, rax
movzx eax, byte [rdx + rbp]
add r9d, eax
cmp edi, 1
jne 0x14013b194
lea eax, [r9 + r15]
inc r8d
mov dword [rbx], eax
add rbx, 4
cmp r8d, esi
jb 0x14013b180
jmp 0x14013b12c
lea r11, [r12 + r8*4]
xor r9d, r9d
lea eax, [r8 + 0xf0]
nop dword [rax]
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
shr rcx, 4
movzx edi, word [r10 + rax*2 + 0x204]
and ecx, 0x7f
shr rdi, 4
xor rdi, rcx
movzx ecx, byte [rdi + rbp]
add r9d, ecx
cmp eax, 1
jne 0x14013b1f0
lea eax, [r9 + r13]
inc r8d
mov dword [r11], eax
add r11, 4
cmp r8d, esi
jb 0x14013b1e2
jmp 0x14013b12c