joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000c090
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x20], 0x22
mov byte [rsp + 0x28], 8
mov byte [rsp + 0x29], 0x50
mov byte [rsp + 0x2a], 0x2b
mov byte [rsp + 0x2b], 0x64
mov byte [rsp + 0x2c], 0xab
mov byte [rsp + 0x2d], 0x33
mov byte [rsp + 0x2e], 0x1c
mov byte [rsp + 0x2f], 0x7c
mov byte [rsp + 0x30], 0x3e
mov byte [rsp + 0x31], 0x41
mov byte [rsp + 0x32], 0x1b
mov byte [rsp + 0x33], 0x74
mov byte [rsp + 0x34], 0xad
mov byte [rsp + 0x35], 0x1e
mov byte [rsp + 0x36], 0x16
mov byte [rsp + 0x37], 0x5e
mov byte [rsp + 0x38], 9
mov byte [rsp + 0x39], 0x50
mov byte [rsp + 0x3a], 0x38
mov byte [rsp + 0x3b], 0x78
mov byte [rsp + 0x3c], 0xa8
mov byte [rsp + 0x3d], 3
mov byte [rsp + 0x3e], 7
mov byte [rsp + 0x3f], 0x42
mov byte [rsp + 0x40], 0xb
mov byte [rsp + 0x41], 0x47
mov byte [rsp + 0x42], 0x30
mov byte [rsp + 0x43], 0x61
mov byte [rsp + 0x44], 0xbe
mov byte [rsp + 0x45], 5
mov byte [rsp + 0x46], 1
mov byte [rsp + 0x47], 0x42
mov byte [rsp + 0x48], 0xc
mov byte [rsp + 0x49], 0x35
mov eax, 0x3a4
mov eax, eax
mov ecx, dword [0x180038fd8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov eax, dword [rcx + rax]
and eax, 1
test eax, eax
jne 0x18000c1e4
mov eax, 0x3a4
mov eax, eax
mov ecx, dword [0x180038fd8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov eax, dword [rcx + rax]
or eax, 1
mov ecx, dword [0x180038fd8]
mov rdx, qword gs:[0x58]
mov r8d, 0x3a4
mov r8d, r8d
mov rcx, qword [rdx + rcx*8]
mov dword [r8 + rcx], eax
mov eax, 0x380
mov eax, eax
mov ecx, dword [0x180038fd8]
mov rdx, qword gs:[0x58]
add rax, qword [rdx + rcx*8]
lea rdx, [rsp + 0x28]
mov rcx, rax
call fcn.18000b750
lea rcx, [0x180025f20]
call fcn.18000f178
nop
mov eax, 0x380
mov eax, eax
mov ecx, dword [0x180038fd8]
mov rdx, qword gs:[0x58]
add rax, qword [rdx + rcx*8]
add rsp, 0x58
ret
Function at 0x18000c210
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x20], 0x1d
mov byte [rsp + 0x28], 0x12
mov byte [rsp + 0x29], 0x40
mov byte [rsp + 0x2a], 0x1f
mov byte [rsp + 0x2b], 0x78
mov byte [rsp + 0x2c], 0x61
mov byte [rsp + 0x2d], 5
mov byte [rsp + 0x2e], 0x10
mov byte [rsp + 0x2f], 0xe9
mov byte [rsp + 0x30], 0x24
mov byte [rsp + 0x31], 0x56
mov byte [rsp + 0x32], 0x1f
mov byte [rsp + 0x33], 0x7f
mov byte [rsp + 0x34], 0x7e
mov byte [rsp + 0x35], 0x38
mov byte [rsp + 0x36], 0x3d
mov byte [rsp + 0x37], 0xc8
mov byte [rsp + 0x38], 0x37
mov byte [rsp + 0x39], 0x4c
mov byte [rsp + 0x3a], 8
mov byte [rsp + 0x3b], 0x68
mov byte [rsp + 0x3c], 0x58
mov byte [rsp + 0x3d], 0x2f
mov byte [rsp + 0x3e], 0x1f
mov byte [rsp + 0x3f], 0xc2
mov byte [rsp + 0x40], 0xd
mov byte [rsp + 0x41], 0x4c
mov byte [rsp + 0x42], 0x18
mov byte [rsp + 0x43], 0x79
mov byte [rsp + 0x44], 0x11
mov eax, 0x3c8
mov eax, eax
mov ecx, dword [0x180038fd8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov eax, dword [rcx + rax]
and eax, 1
test eax, eax
jne 0x18000c34b
mov eax, 0x3c8
mov eax, eax
mov ecx, dword [0x180038fd8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov eax, dword [rcx + rax]
or eax, 1
mov ecx, dword [0x180038fd8]
mov rdx, qword gs:[0x58]
mov r8d, 0x3c8
mov r8d, r8d
mov rcx, qword [rdx + rcx*8]
mov dword [r8 + rcx], eax
mov eax, 0x3a8
mov eax, eax
mov ecx, dword [0x180038fd8]
mov rdx, qword gs:[0x58]
add rax, qword [rdx + rcx*8]
lea rdx, [rsp + 0x28]
mov rcx, rax
call fcn.18000b6e0
lea rcx, [0x180025f50]
call fcn.18000f178
nop
mov eax, 0x3a8
mov eax, eax
mov ecx, dword [0x180038fd8]
mov rdx, qword gs:[0x58]
add rax, qword [rdx + rcx*8]
add rsp, 0x58
ret

Function at 0x18000d2d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x20], 0xf
mov byte [rsp + 0x28], 0x13
mov byte [rsp + 0x29], 0x58
mov byte [rsp + 0x2a], 0x4f
mov byte [rsp + 0x2b], 0xad
mov byte [rsp + 0x2c], 0x52
mov byte [rsp + 0x2d], 0x6c
mov byte [rsp + 0x2e], 0xd3
mov byte [rsp + 0x2f], 0xb7
mov byte [rsp + 0x30], 0x37
mov byte [rsp + 0x31], 0x5e
mov byte [rsp + 0x32], 0x49
mov byte [rsp + 0x33], 0xbc
mov byte [rsp + 0x34], 0x44
mov byte [rsp + 0x35], 0x79
mov byte [rsp + 0x36], 0xbf
mov eax, 0x450
mov eax, eax
mov ecx, dword [0x180038fd8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov eax, dword [rcx + rax]
and eax, 1
test eax, eax
jne 0x18000d3c5
mov eax, 0x450
mov eax, eax
mov ecx, dword [0x180038fd8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov eax, dword [rcx + rax]
or eax, 1
mov ecx, dword [0x180038fd8]
mov rdx, qword gs:[0x58]
mov r8d, 0x450
mov r8d, r8d
mov rcx, qword [rdx + rcx*8]
mov dword [r8 + rcx], eax
mov eax, 0x440
mov eax, eax
mov ecx, dword [0x180038fd8]
mov rdx, qword gs:[0x58]
add rax, qword [rdx + rcx*8]
lea rdx, [rsp + 0x28]
mov rcx, rax
call fcn.1800015e0
lea rcx, [0x180025fb0]
call fcn.18000f178
nop
mov eax, 0x440
mov eax, eax
mov ecx, dword [0x180038fd8]
mov rdx, qword gs:[0x58]
add rax, qword [rdx + rcx*8]
add rsp, 0x48
ret
Function at 0x18000d620
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x20], 0x16
mov byte [rsp + 0x28], 0xb
mov byte [rsp + 0x29], 0xfd
mov byte [rsp + 0x2a], 0x90
mov byte [rsp + 0x2b], 0xb2
mov byte [rsp + 0x2c], 0x1a
mov byte [rsp + 0x2d], 0x3d
mov byte [rsp + 0x2e], 0x2f
mov byte [rsp + 0x2f], 0x30
mov byte [rsp + 0x30], 0x37
mov byte [rsp + 0x31], 0xda
mov byte [rsp + 0x32], 0xae
mov byte [rsp + 0x33], 0xbd
mov byte [rsp + 0x34], 0x14
mov byte [rsp + 0x35], 0x25
mov byte [rsp + 0x36], 0xc
mov byte [rsp + 0x37], 0x10
mov byte [rsp + 0x38], 0x27
mov byte [rsp + 0x39], 0xe3
mov byte [rsp + 0x3a], 0xa2
mov byte [rsp + 0x3b], 0xb0
mov byte [rsp + 0x3c], 7
mov byte [rsp + 0x3d], 0x49
mov eax, 0x4a0
mov eax, eax
mov ecx, dword [0x180038fd8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov eax, dword [rcx + rax]
and eax, 1
test eax, eax
jne 0x18000d738
mov eax, 0x4a0
mov eax, eax
mov ecx, dword [0x180038fd8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov eax, dword [rcx + rax]
or eax, 1
mov ecx, dword [0x180038fd8]
mov rdx, qword gs:[0x58]
mov r8d, 0x4a0
mov r8d, r8d
mov rcx, qword [rdx + rcx*8]
mov dword [r8 + rcx], eax
mov eax, 0x488
mov eax, eax
mov ecx, dword [0x180038fd8]
mov rdx, qword gs:[0x58]
add rax, qword [rdx + rcx*8]
lea rdx, [rsp + 0x28]
mov rcx, rax
call fcn.18000b670
lea rcx, [0x180026040]
call fcn.18000f178
nop
mov eax, 0x488
mov eax, eax
mov ecx, dword [0x180038fd8]
mov rdx, qword gs:[0x58]
add rax, qword [rdx + rcx*8]
add rsp, 0x48
ret
Function at 0x180017b54
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x180017bc3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180017bc3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180017bc3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180017bc3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180017bc3
cmp dword [rcx + 0x84], 0xe
jbe 0x180017bc3
cmp dword [rcx + 0xf8], 0
je 0x180017bc3
mov ecx, ebx
call fcn.180017c74
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.180017a50
nop
cmp dword [rbp + 0x20], 0
je 0x180017c11
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180017c1c
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180017b54
Function at 0x18001d0c8
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18001d0f8
xor eax, eax
jmp 0x18001d1bb
mov rbp, rbx
cmp word [rax], si
je 0x18001d11d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18001d104
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18001d100
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18001cfe8
movsxd r14, eax
test eax, eax
jne 0x18001d15b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18001d0f1
mov rcx, r14
call fcn.18001895c
mov rdi, rax
test rax, rax
jne 0x18001d174
xor ecx, ecx
call fcn.180018920
jmp 0x18001d150
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18001cfe8
test eax, eax
jne 0x18001d1a5
mov rcx, rdi
call fcn.180018920
jmp 0x18001d1af
xor ecx, ecx
call fcn.180018920
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x180020f4c
Capabilities:
Get file size

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

Function at 0x180023fa0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180023fc8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180023fc8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140a140b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140a14237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140a140e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a140c7
add dl, dl
jne 0x140a140ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a1414e
xor eax, eax
add dl, dl
jne 0x140a140fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a14205
add dl, dl
jne 0x140a1410e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a1411b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a14128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a14135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140a14142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140a140d6
mov eax, 1
add dl, dl
jne 0x140a1415e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a1416b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a14153
sub eax, ebx
mov ebx, 1
jne 0x140a141a4
mov ecx, 1
add dl, dl
jne 0x140a14186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a14193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a1417b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a140d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140a141c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a141cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a141b5
cmp eax, 0x7d00
jae 0x140a141f3
cmp eax, 0x500
jb 0x140a141ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a140d6
cmp eax, 0x7f
ja 0x140a141f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a140d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140a1422a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140a140d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1409de4d0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1409de657
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1409de501
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409de4e7
add dl, dl
jne 0x1409de50e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409de56e
xor eax, eax
add dl, dl
jne 0x1409de51d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409de625
add dl, dl
jne 0x1409de52e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409de53b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409de548
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409de555
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1409de562
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1409de4f6
mov eax, 1
add dl, dl
jne 0x1409de57e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409de58b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409de573
sub eax, ebx
mov ebx, 1
jne 0x1409de5c4
mov ecx, 1
add dl, dl
jne 0x1409de5a6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409de5b3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409de59b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409de4f6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1409de5e0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409de5ed
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409de5d5
cmp eax, 0x7d00
jae 0x1409de613
cmp eax, 0x500
jb 0x1409de60e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409de4f6
cmp eax, 0x7f
ja 0x1409de616
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409de4f6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1409de64a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1409de4f6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000c980
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000c9cc
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000c9c4
cmp dword [rcx + 0x3c], edx
jl 0x14000c9c4
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14000c9c4
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000c9cc
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140001000
Capabilities:
Create directory
Get common file path
Set file attributes

Disassembly:
sub rsp, 0x238
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rcx, [rsp + 0x20]
sub rcx, 2
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140001020
mov eax, dword [0x140002020]
xor edx, edx
mov dword [rcx], eax
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, 6
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
add rsp, 0x238
ret
Function at 0x140003520
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x13f0
call fcn.1400abf70
sub rsp, rax
mov rax, qword [0x1400dad40]
xor rax, rsp
mov qword [rsp + 0x13e0], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov ecx, 0x40
call fcn.1400ab940
mov rsi, rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], 0x3e
mov qword [rsp + 0x48], 0x3f
movups xmm0, xmmword [str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1400c0e88]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x1400c0e98]
movups xmmword [rax + 0x20], xmm0
movsd xmm0, qword [0x1400c0ea8]
movsd qword [rax + 0x30], xmm0
mov eax, dword [0x1400c0eb0]
mov dword [rsi + 0x38], eax
movzx eax, word [0x1400c0eb4]
mov word [rsi + 0x3c], ax
mov byte [rsi + 0x3e], dil
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edx, eax
mov dword [rsp + 0x13d4], 0xffffffff
mov dword [rsp + 0x54], eax
mov ecx, 1
nop word [rax + rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [rsp + rcx*4 + 0x54], edx
inc rcx
cmp rcx, 0x270
jb 0x1400035f0
mov dword [rsp + 0x50], 0x270
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov dword [rsp + 0x20], 1
mov edi, reloc.WS2_32.dll_recv
mov ebp, 0x80000000
nop
lea rcx, [rsp + 0x50]
call fcn.1400181a0
mov ecx, eax
imul rax, rcx, 0x3e
cmp eax, 3
ja 0x14000366a
lea rcx, [rsp + 0x50]
call fcn.1400181a0
mov ecx, eax
imul rax, rcx, 0x3e
cmp eax, 4
jb 0x140003655
shr rax, 0x20
add rax, rbp
xor rax, rbp
movzx r9d, byte [rax + rsi]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1400036a5
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x14000369a
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400036ad
mov rcx, rbx
call fcn.14000b980
sub rdi, 1
jne 0x140003640
mov edx, 0x40
mov rcx, rsi
call fcn.1400abbbc
mov rax, rbx
mov rcx, qword [rsp + 0x13e0]
xor rcx, rsp
call fcn.1400ab680
lea r11, [rsp + 0x13f0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140006fb0
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 0x140006fd8
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 0x140006ffe
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140007000
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140007059
test ecx, ecx
jle 0x140007039
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 0x140007059
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140007059
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 0x140007080
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 0x1400070a2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400070b8
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 0x1400070d4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400070d6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140007112
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 0x1400071ae
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000714d
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 0x14000718e
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 0x1400071ae
cmp rbx, rax
ja 0x140007160
test rbx, rbx
je 0x1400071ae
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 0x140007610
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400dad40]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000763d
xor eax, eax
jmp 0x1400077a9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140007677
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140007677
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 0x1400077a9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000779c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400076ba
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 0x1400076e5
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 0x1400077a1
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 0x140007754
sub eax, 1
je 0x140007754
cmp eax, 2
jne 0x14000779c
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 0x1400077a1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140007782
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 0x14000779c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400077a1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400ab680
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret