joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18007c288
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1800d1960]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x18007c2e6
cmp word [rdx], r12w
jne 0x18007c2e6
or byte [rax + r8*8 + 0x38], cl
jmp 0x18007c2ec
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x18007c447
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x18007c422
lea r9, [rcx + 2]
cmp ax, r13w
je 0x18007c325
mov rcx, r9
jmp 0x18007c348
cmp r9, rdx
jae 0x18007c35f
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x18007c309
jmp 0x18007c447
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18007c41c
cmp dword [rsp + 0x80], edi
je 0x18007c41c
mov rdx, r14
lea r11, [0x1800d1960]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x18007c3f5
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x18007c3c8
mov word [rbx], r12w
jmp 0x18007c443
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x18007c3d1
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x18007c443
cmp word [rsp + 0x70], r12w
jne 0x18007c402
cmp rbx, rsi
je 0x18007c3c2
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.18007cf14
cmp word [rsp + 0x70], r12w
je 0x18007c447
mov word [rbx], r13w
jmp 0x18007c443
lea r11, [0x1800d1960]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x18007c43f
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x18007c447
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180080ca8
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 0x180080cd8
xor eax, eax
jmp 0x180080d9b
mov rbp, rbx
cmp word [rax], si
je 0x180080cfd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180080ce4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180080ce0
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.18007f42c
movsxd r14, eax
test eax, eax
jne 0x180080d3b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180080cd1
mov rcx, r14
call fcn.18007afc0
mov rdi, rax
test rax, rax
jne 0x180080d54
xor ecx, ecx
call fcn.180079cbc
jmp 0x180080d30
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.18007f42c
test eax, eax
jne 0x180080d85
mov rcx, rdi
call fcn.180079cbc
jmp 0x180080d8f
xor ecx, ecx
call fcn.180079cbc
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 0x180087930
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.18007cf14
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18007cf14
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180087a80
cmp rax, 0xffffffffffffffff
je 0x180087a80
xor edi, edi
test rbp, rbp
jle 0x180087a2b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18007a2a8
mov rbx, rax
test rax, rax
jne 0x1800879b8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180087a21
mov edx, 0x8000
mov ecx, r14d
call fcn.1800877b8
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.18007974c
cmp eax, 0xffffffff
je 0x180087a01
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800879c8
mov edx, r15d
mov ecx, r14d
call fcn.1800877b8
jmp 0x180087a21
cmp byte [rsi + 0x38], dil
je 0x180087a18
cmp dword [rsi + 0x34], 5
jne 0x180087a18
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180087a21
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180079cbc
jmp 0x180087a94
jns 0x180087a94
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18007cf14
cmp rax, 0xffffffffffffffff
jne 0x180087a4c
cmp byte [rsi + 0x30], dil
je 0x180087a94
mov edi, dword [rsi + 0x2c]
jmp 0x180087a94
mov ecx, r14d
call fcn.180081460
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180087a94
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x180087a94
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180087a8d
mov eax, dword [rsi + 0x2c]
jmp 0x180087a92
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18007cf14
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 0x180088180
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800881a8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800881a8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14001a360
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x14001a3f0
cmp r10, r11
jb 0x14001a466
cmp r10, rdx
ja 0x14001a47a
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x14001a3f2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x14001a3d0
jmp 0x14001a454
ja 0x14001a3fa
mov r11, r10
cmp rax, r8
jne 0x14001a394
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x14001a430
mov rdi, r8
sub ecx, edx
jns 0x14001a44b
jmp 0x14001a456
cmp r8, rsi
je 0x14001a48b
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x14001a456
xor al, 1
cmp rdi, rsi
jne 0x14001a410
jmp 0x14001a456
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, [0x1412eb910]
mov rcx, r11
mov rdx, r10
call fcn.1400537f0
ud2
lea r8, [0x1412eb910]
mov rcx, r10
call fcn.140053570
ud2
lea rcx, [0x1412effb0]
lea r8, [0x1412eb8f8]
mov edx, 0x2b
call fcn.1400535f0
ud2
Function at 0x140021650
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x1400216ab
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x1400216ab
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x1400216c6
cmp eax, 0x42
jne 0x1400216ab
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x140021776
cmp byte [r9 + r11], 0x5f
jne 0x140021776
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x1400217de
mov rcx, rsi
xor edx, edx
call fcn.14001cb40
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.14001cb40
test al, al
jne 0x140021871
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140021702
lea rdx, [0x1412ef8ab]
mov r8d, 1
call fcn.140018460
test al, al
jne 0x140021871
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x1400216ba
xor r14d, r14d
lea rbx, [0x1412efc60]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x140021734
cmp byte [rax + rcx], 0x45
je 0x14002189a
sub r14, 1
jb 0x140021759
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140021759
mov r8d, 2
mov rdx, rbx
call fcn.140018460
test al, al
jne 0x140021871
mov rcx, rsi
call fcn.14001e450
test al, al
jne 0x140021871
mov rax, qword [rsi]
test rax, rax
jne 0x140021720
jmp 0x1400216ba
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x140021838
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x1400217d2
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x1400217bc
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x1400217ab
add dl, 0xa9
jmp 0x1400217ba
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x140021838
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x140021838
movzx edx, bl
add rax, rdx
jae 0x140021780
jmp 0x140021838
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x140021838
cmp rax, rcx
jae 0x140021835
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x140021879
cmp qword [rsi + 0x20], 0
je 0x140021893
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.140021650
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x1400216bc
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140021888
lea rax, [0x1412efc10]
lea rdx, [0x1412efc20]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.140018460
test al, al
je 0x140021888
mov dil, 2
jmp 0x1400216ba
mov dil, 1
xor r8d, r8d
mov rcx, qword [rsi + 0x20]
test rcx, rcx
jne 0x140021843
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x1400216ba
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x1400216ba
Function at 0x140026130
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1412f2698]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x1400261a3
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1400261da
test eax, eax
js 0x1400261b4
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400261cd
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x1412f26f8]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140024020
mov rcx, rax
call fcn.140024190
mov ecx, 7
int 0x29
ud2
Function at 0x140029900
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x140029930
test ecx, ecx
jne 0x140029980
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x14002993c
test ecx, ecx
jne 0x140029980
mov rcx, rdi
call fcn.1400297e0
movzx eax, al
test bpl, bpl
jne 0x140029987
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x140029973.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x140029af8]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x140029973.2
xor eax, eax
test bpl, bpl
je 0x14002994c
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x140029ad9
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x1400299ba
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x140029a39
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x140029a00
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x140029a1b
inc rax
dec rdi
cmp rax, 1
jne 0x1400299e0
jmp 0x140029a39
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x140029a1b
cmp ebx, 0x5c
je 0x140029a1b
inc rax
dec rdi
cmp rax, 1
jne 0x140029a00
jmp 0x140029a39
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x140029ae7
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x140029a63
mov al, 9
cmp rdx, 2
je 0x140029a67
cmp rdx, 1
jne 0x140029a77
cmp byte [r8], 0x2e
jne 0x140029a77
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140029a77
mov al, 0xa
jmp 0x140029a77
cmp byte [r8], 0x2e
jne 0x140029a77
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov byte [rsi + 8], al
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rdx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x140029973.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x140029973.2
mov ecx, 2
jmp case.0x140029973.2
lea r8, [0x1412f1818]
call fcn.1400534f0
ud2
lea r8, [0x1412f1830]
call fcn.1400534f0
ud2
Function at 0x14002e7e0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1412f2698]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x14002e84c
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x14002e85b
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14002e893
cmp eax, 0x103
je 0x14002e89d
test eax, eax
js 0x14002e878
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14002e893
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x1412f26f8]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140024020
mov rcx, rax
call fcn.140024190
mov ecx, 7
int 0x29
ud2

Function at 0x14002fc80
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.140026dc0
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x14002fd37
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r8b, 1
call fcn.14002e900
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
test rdi, rdi
je 0x14002fd37
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14002fd09
test rsi, rsi
je 0x14002fd35
mov rcx, qword [0x141303bb8]
xor esi, esi
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14002fd37
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x14002fd30
mov rcx, qword [0x141303bb8]
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, rbx
jmp 0x14002fd37
xor esi, esi
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
Function at 0x14003db60
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1098
call fcn.140045070
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1000], xmm6
mov qword [rbp + 0xff8], 0xfffffffffffffffe
mov qword [rbp + 0xfd8], rdx
mov r14, rcx
lea rsi, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.1400458f0
mov dword [rbp + 0xfe8], 0
xorps xmm6, xmm6
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
lea r15, [rbp + 0xfe8]
mov qword [rbp + 0xfc8], r15
lea r12, [0x140033740]
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0xfb0]
mov rcx, r14
mov rdx, rsi
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x14003dd4e
mov r13, qword [sym.imp.KERNEL32.dll_SleepEx]
lea rsi, [rbp + 0xfb0]
mov rdi, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov qword [rbp + 0xfe0], r14
mov ecx, 0xffffffff
mov edx, 1
call r13
cmp dword [rbp + 0xfe8], 0
je 0x14003dc27
cmp dword [rbp + 0xfec], 0
jne 0x14003dd63
mov ebx, dword [rbp + 0xff0]
test rbx, rbx
je 0x14003dd63
cmp ebx, 0x1000
ja 0x14003dda7
xor r14d, r14d
nop dword [rax + rax]
cmp r14, rbx
ja 0x14003dd93
lea rdx, [r14 + rbp]
add rdx, 0xffffffffffffffb0
mov r8d, ebx
sub r8d, r14d
mov dword [rbp + 0xfe8], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r15
mov qword [rsp + 0x20], r12
mov rcx, qword [rbp + 0xfd8]
mov r9, rsi
call rdi
test eax, eax
je 0x14003dd56
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r13
cmp dword [rbp + 0xfe8], 0
je 0x14003dcd0
cmp dword [rbp + 0xfec], 0
jne 0x14003dd5c
mov eax, dword [rbp + 0xff0]
add r14, rax
cmp r14, rbx
jne 0x14003dc70
mov dword [rbp + 0xfe8], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r15
mov qword [rsp + 0x20], r12
mov r14, qword [rbp + 0xfe0]
mov rcx, r14
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x14003dc27
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14003dd63
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14, qword [rbp + 0xfe0]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call rsi
mov rcx, qword [rbp + 0xfd8]
call rsi
movaps xmm6, xmmword [rbp + 0x1000]
add rsp, 0x1098
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, [0x1412f29e0]
mov rcx, r14
mov rdx, rbx
call fcn.1400537f0
jmp 0x14003ddbb
lea r8, [0x1412f29e0]
mov edx, 0x1000
mov rcx, rbx
call fcn.140053570
ud2
Function at 0x14003de40
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x14003de7f
mov rax, qword [rbp - 0x20]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x14002add0]
mov qword [rbp - 0x28], rax
lea rax, [0x1412f2b58]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, [0x1412f2b90]
lea rcx, [rbp - 0x60]
call fcn.140053430
ud2

Function at 0x14003fd10
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
cmp qword [rdx], 0
jne 0x14003fe1f
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx + 8]
test rax, rax
jne 0x14003fd48
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x14003fde2
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x14003fe01
sub rax, rdx
add rdx, qword [rbx]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x30], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x30]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003fd9e
mov eax, dword [rsp + 0x30]
mov ecx, 2
test rax, rax
jne 0x14003fdbb
jmp 0x14003fdb0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14003fdb6
cmp eax, 0x6d
jne 0x14003fdd2
mov byte [rsi + 1], 0
jmp 0x14003fdc6
mov ecx, 1
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
xor eax, eax
mov byte [rsi], al
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov al, 1
jmp 0x14003fdc8
mov r8d, 0x10
mov rcx, rbx
call fcn.1400532a0
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x14003fd55
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.1400532a0
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
jmp 0x14003fd55
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140054700
ud2

Function at 0x14004967c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140049478