joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140064660
Capabilities:
Get file version info

Disassembly:
push rbx
push rdi
sub rsp, 0x148
mov rbx, rdx
mov byte [rsp + 0x20], 1
mov rdi, rcx
xor edx, edx
mov rcx, qword [0x1401070a0]
xor r9d, r9d
or r8, 0xffffffffffffffff
call fcn.14008f120
test rbx, rbx
je 0x1400647f4
cmp word [rbx], 0
je 0x1400647f4
lea rdx, [rsp + 0x168]
mov qword [rsp + 0x140], rsi
mov rcx, rbx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test eax, eax
jne 0x1400646e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140100a58]
mov dl, 1
mov dword [rcx + 0x40], eax
mov rcx, rdi
call fcn.140038ea0
mov rsi, qword [rsp + 0x140]
add rsp, 0x148
pop rdi
pop rbx
ret
mov rcx, rsi
mov qword [rsp + 0x160], rbp
call fcn.1400aba38
mov r9, rax
mov r8d, esi
xor edx, edx
mov rcx, rbx
mov rbp, rax
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x1400647d2
lea r9, [rsp + 0x170]
mov rcx, rbp
lea r8, [rsp + 0x178]
lea rdx, [0x1400e3888]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1400647d2
mov rax, qword [rsp + 0x178]
lea r8, str._u._u._u._u
mov edx, dword [rax + 0xc]
mov r9d, dword [rax + 8]
movzx ecx, dx
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x40]
shr edx, 0x10
mov dword [rsp + 0x28], edx
mov edx, 0x80
movzx eax, r9w
shr r9d, 0x10
mov dword [rsp + 0x20], eax
call fcn.14008b9a0
mov rcx, rbp
call fcn.1400ad530
mov rax, qword [0x140100a58]
xor edx, edx
mov rcx, rdi
mov dword [rax + 0x40], 0
call fcn.140038ea0
mov rcx, qword [0x1401070a0]
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
call fcn.14008f120
mov rbp, qword [rsp + 0x160]
mov rsi, qword [rsp + 0x140]
add rsp, 0x148
pop rdi
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x140100a58]
mov dword [rcx + 0x40], eax
mov rcx, rbp
call fcn.1400ad530
mov rcx, rdi
call fcn.14003c5b0
jmp 0x1400647b8
mov rax, qword [0x140100a58]
mov dl, 1
mov rcx, rdi
mov dword [rax + 0x40], 0x57
call fcn.140038ea0
add rsp, 0x148
pop rdi
pop rbx
ret
Function at 0x14008da60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor ebx, ebx
mov esi, r9d
mov r15d, r8d
mov r14d, edx
mov r13, rcx
mov r12d, ebx
test rcx, rcx
je 0x14008da9e
xor edx, edx
lea r8d, [rbx + 2]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
jmp 0x14008daa5
mov rdi, qword [0x140104dd0]
test rdi, rdi
je 0x14008dc6f
mov qword [rsp + 0x80], rbp
lea rbp, [0x140107204]
test r14d, r14d
jns 0x14008dace
movzx eax, r14w
neg ax
movzx edx, ax
jmp 0x14008db06
test r14d, r14d
mov dword [rsp + 0x44], ebx
mov eax, 1
mov qword [rsp + 0x48], rbp
cmovne eax, r14d
lea r9, [rsp + 0x40]
lea r8, [0x14008da40]
mov dword [rsp + 0x40], eax
mov edx, SafeArrayGetElemsize
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
mov rdx, qword [rsp + 0x48]
cmp rdx, rbp
je 0x14008dc38
mov r8d, SafeArrayGetElemsize
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14008dc38
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14008dc38
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x14008dc38
cmp r15d, 0xffffffff
cmovne esi, r15d
test esi, esi
jne 0x14008db68
lea ecx, [rsi + 0xb]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, eax
movzx eax, word [rbp + 4]
lea r8, [rbp + 6]
mov r11, rbx
mov r9d, ebx
test eax, eax
je 0x14008dc38
mov rdx, r8
mov r10d, eax
mov ebp, 0x100
nop dword [rax]
movzx eax, byte [r8]
mov ecx, ebx
test eax, eax
cmove eax, ebp
cmp eax, r9d
jle 0x14008dba8
cmp r9d, esi
setl cl
jmp 0x14008dbad
cmp eax, esi
setge cl
test ecx, ecx
je 0x14008dbb7
mov r11, rdx
mov r9d, eax
add rdx, 0xe
add r8, 0xe
sub r10, 1
jne 0x14008db90
test r11, r11
je 0x14008dc38
movzx edx, word [r11 + 0xc]
lea r8d, [r10 + 3]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x14008dc38
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14008dc38
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x14008dc38
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x30], ebx
mov r9d, 0x30000
mov edx, eax
mov dword [rsp + 0x28], ebx
mov r8d, 1
mov dword [rsp + 0x20], ebx
mov rcx, rbp
call qword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov r12, rax
mov rcx, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x80]
test rcx, rcx
je 0x14008dc57
test r12, r12
je 0x14008dc57
mov qword [rcx], rdi
jmp 0x14008dc65
test r13, r13
je 0x14008dc65
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r12, r12
je 0x14008dc6f
mov rax, r12
jmp 0x14008dc90
test r14d, r14d
jle 0x14008dc7a
lea ebx, [r14 - 1]
jmp 0x14008dc82
cmp r14d, 0xffffffff
cmovl ebx, r14d
mov r8d, ebx
mov rdx, r13
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ExtractIconW]
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14008ef00
Capabilities:
Write clipboard data

Disassembly:
push rbx
push rsi
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
lea rcx, [0x140107f00]
call fcn.1400057e0
test eax, eax
jne 0x14008ef3d
lea r8, [0x1400cef3c]
lea rdx, str.Cant_open_clipboard_for_writing.
lea rcx, [0x1401072b0]
add rsp, 0x28
pop rsi
pop rbx
jmp fcn.1400395f0
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x20], r15
call qword [sym.imp.USER32.dll_EmptyClipboard]
lea r14, [rsi + rbx]
xor r12d, r12d
lea rbx, [rsi + 4]
cmp rbx, r14
ja 0x14008f002
mov r15d, dword [rsi]
test r15d, r15d
je 0x14008f002
mov rax, rbx
add rbx, 8
cmp rbx, r14
ja 0x14008f002
mov edi, dword [rax]
mov rsi, rbx
add rbx, rdi
cmp rbx, r14
ja 0x14008f002
mov rdx, r12
test rdi, rdi
mov ecx, 0x42
sete dl
add rdx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbp, rax
test rax, rax
je 0x14008f0c0
test rdi, rdi
je 0x14008efe9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x14008f061
mov r8d, edi
mov rdx, rsi
mov rcx, rax
call fcn.1400a9a00
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rsi, rbx
mov rdx, rbp
mov ecx, r15d
call qword [sym.imp.USER32.dll_SetClipboardData]
lea rbx, [rsi + 4]
cmp rbx, r14
jbe 0x14008ef70
cmp dword [0x140107f2c], r12d
je 0x14008f03c
cmp qword [0x140107f10], r12
je 0x14008f028
mov rcx, qword [0x140107f00]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140107f10], r12
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x140107f2c], r12d
mov qword [0x140107f00], r12
mov eax, 1
mov r14, qword [rsp + 0x58]
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbx
ret
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [0x140107f2c], r12d
je 0x14008f0a4
cmp qword [0x140107f10], r12
je 0x14008f090
mov rcx, qword [0x140107f00]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140107f10], r12
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x140107f2c], r12d
mov qword [0x140107f00], r12
lea r8, [0x1400cef3c]
lea rdx, [0x1400cf348]
lea rcx, [0x1401072b0]
call fcn.1400395f0
jmp 0x14008f041
cmp dword [0x140107f2c], r12d
je 0x14008f0fa
cmp qword [0x140107f10], r12
je 0x14008f0e6
mov rcx, qword [0x140107f00]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov qword [0x140107f10], r12
call qword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x140107f2c], r12d
mov qword [0x140107f00], r12
lea r8, [0x1400cef3c]
lea rdx, str.Out_of_memory.
lea rcx, [0x1401072b0]
call fcn.1400395f0
jmp 0x14008f041
Function at 0x1400aec68
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x1400aea3c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400aea3c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400aea3c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400aea3c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400aea3c
cmp dword [rcx + 0x84], 0xe
jbe 0x1400aea3c
cmp dword [rcx + 0xf8], esi
je 0x1400aea3c
mov ecx, r14d
call fcn.1400aeb84
mov ecx, 2
call fcn.1400b7ac8
nop
cmp byte [0x140103b08], 0
jne 0x1400aeb06
mov r15d, 1
mov eax, r15d
xchg dword [0x140103afc], eax
test ebx, ebx
jne 0x1400aeaaf
mov rdi, qword [0x140100018]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140103b00]
cmp rcx, rax
je 0x1400aeaa6
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140017f80]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140103d40]
jmp 0x1400aeabb
cmp ebx, r15d
jne 0x1400aeac1
lea rcx, [0x140103d58]
call fcn.1400b4a10
nop
test ebx, ebx
jne 0x1400aead8
lea rdx, [0x1400c6fa0]
lea rcx, [0x1400c6f80]
call fcn.1400b4da8
lea rdx, [0x1400c6fb0]
lea rcx, [0x1400c6fa8]
call fcn.1400b4da8
movzx eax, byte [0x140103b08]
test esi, esi
cmove eax, r15d
mov byte [0x140103b08], al
jmp 0x1400aeb06
mov ecx, 2
call fcn.1400b7b1c
test esi, esi
jne 0x1400aeb1d
mov ecx, r14d
call fcn.1400aeb38
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1400ae9cc
Function at 0x14001a630
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 0x14001a6c0
cmp r11, r10
ja 0x14001a736
cmp r10, rdx
ja 0x14001a74a
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x14001a6c2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x14001a6a0
jmp 0x14001a724
ja 0x14001a6ca
mov r11, r10
cmp rax, r8
jne 0x14001a664
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 0x14001a700
mov rdi, r8
sub ecx, edx
jns 0x14001a71b
jmp 0x14001a726
cmp r8, rsi
je 0x14001a75b
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x14001a726
xor al, 1
cmp rdi, rsi
jne 0x14001a6e0
jmp 0x14001a726
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, [0x1413f36c0]
mov rcx, r11
mov rdx, r10
call fcn.140050cd0
ud2
lea r8, [0x1413f36c0]
mov rcx, r10
call fcn.140050aa0
ud2
lea rcx, [0x1413f7d60]
lea r8, [0x1413f36a8]
mov edx, 0x2b
call fcn.140050b10
ud2

Function at 0x14001ff10
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.140017ca0
cmp rax, rcx
je 0x14001ff35
cmp rdx, 4
jae 0x14001ff38
xor eax, eax
xor r8d, r8d
jmp 0x14001ffd0
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x140053700]
movdqa xmm3, xmmword [0x140053510]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x14001ff60
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14001ffe7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14001ffd0
ret
Function at 0x140020f60
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 0x140020fbb
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x140020fbb
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x140020fd6
cmp eax, 0x42
jne 0x140020fbb
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x140021086
cmp byte [r9 + r11], 0x5f
jne 0x140021086
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x1400210ee
mov rcx, rsi
xor edx, edx
call fcn.14001c6c0
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.14001c6c0
test al, al
jne 0x140021181
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140021012
lea rdx, [0x1413f765b]
mov r8d, 1
call fcn.140018230
test al, al
jne 0x140021181
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x140020fca
xor r14d, r14d
lea rbx, [0x1413f7a10]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x140021044
cmp byte [rax + rcx], 0x45
je 0x1400211aa
sub r14, 1
jb 0x140021069
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140021069
mov r8d, 2
mov rdx, rbx
call fcn.140018230
test al, al
jne 0x140021181
mov rcx, rsi
call fcn.14001df10
test al, al
jne 0x140021181
mov rax, qword [rsi]
test rax, rax
jne 0x140021030
jmp 0x140020fca
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x140021148
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x1400210e2
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x1400210cc
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x1400210bb
add dl, 0xa9
jmp 0x1400210ca
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x140021148
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x140021148
movzx edx, bl
add rax, rdx
jae 0x140021090
jmp 0x140021148
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x140021148
cmp rax, rcx
jae 0x140021145
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x140021189
cmp qword [rsi + 0x20], 0
je 0x1400211a3
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.140020f60
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x140020fcc
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140021198
lea rax, [0x1413f79c0]
lea rdx, [0x1413f79d0]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
add r8, 0x10
call fcn.140018230
test al, al
je 0x140021198
mov dil, 2
jmp 0x140020fca
mov dil, 1
xor r8d, r8d
mov rcx, qword [rsi + 0x20]
test rcx, rcx
jne 0x140021153
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x140020fca
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x140020fca
Function at 0x140028eb0
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x410], xmm6
mov qword [rbp + 0x408], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x60]
call fcn.140026030
mov rax, qword [rbp - 0x60]
mov qword [rbp + 0x3e0], rax
test rax, rax
je 0x140029037
mov qword [rbp + 0x3f8], rsi
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x3d8], rax
mov qword [rbp + 0x3c0], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3c8], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x400], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x140028f70
jmp 0x140028f5f
lea rcx, [rbp - 0x60]
call fcn.140026210
invalid
inc esi
sbb byte [rdx], r8b
sbb byte [rdx], al

Function at 0x14002d190
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1413fa508]
movaps xmmword [rsp + 0x60], xmm0
and al, 0x60
Function at 0x140038f10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x88
movdqa xmmword [rsp + 0x70], xmm6
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.140026030
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
test rcx, rcx
je 0x140038f86
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x58]
call fcn.1400390f0
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x140038f94
movdqu xmm6, xmmword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140038fb4
mov qword [rsi], rdi
movdqu xmmword [rsi + 8], xmm6
jmp 0x140038fa5
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x28]
call fcn.140026210
mov qword [rsi], 0
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
ret
mov qword [rsi], 0
movq rax, xmm6
test rax, rax
je 0x140038fa5
mov rcx, qword [0x14140dbb0]
xor edx, edx
mov r8, rdi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_HeapFree]
Function at 0x14003ae60
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x14140dc38]
mov rcx, qword [0x14140dbb0]
test rcx, rcx
jne 0x14003aeac
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x14003af7a
mov rcx, rax
mov qword [0x14140dbb0], rax
mov r8d, 0x10
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x14003af7a
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x14003b3c0]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14003af6c
mov rcx, qword [rbx]
mov qword [rbp - 0x18], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x10], rax
call qword [rax]
mov rax, qword [rbp - 0x10]
cmp qword [rax + 8], 0
mov rsi, qword [rbp - 0x18]
je 0x14003af45
cmp qword [rax + 0x10], 0x11
jae 0x14003af2e
mov r8, qword [rbp - 0x20]
jmp 0x14003af36
mov r8, qword [rbp - 0x20]
mov r8, qword [r8 - 8]
mov rcx, qword [0x14140dbb0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x14140dbb0]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
mov edx, 0x10
call fcn.1400508b0
ud2
Function at 0x14003b890
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.140042e50
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.140043d80
mov dword [rbp + 0xfec], 0
xorps xmm6, xmm6
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
lea r15, [rbp + 0xfec]
mov qword [rbp + 0xfc8], r15
lea r12, [0x140031990]
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 0x14003ba7e
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 + 0xfec], 0
je 0x14003b957
cmp dword [rbp + 0xff0], 0
jne 0x14003ba93
mov ebx, dword [rbp + 0xff4]
test rbx, rbx
je 0x14003ba93
cmp ebx, 0x1000
ja 0x14003bad7
xor r14d, r14d
nop dword [rax + rax]
cmp r14, rbx
ja 0x14003bac3
lea rdx, [r14 + rbp]
add rdx, 0xffffffffffffffb0
mov r8d, ebx
sub r8d, r14d
mov dword [rbp + 0xfec], 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 0x14003ba86
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r13
cmp dword [rbp + 0xfec], 0
je 0x14003ba00
cmp dword [rbp + 0xff0], 0
jne 0x14003ba8c
mov eax, dword [rbp + 0xff4]
add r14, rax
cmp r14, rbx
jne 0x14003b9a0
mov dword [rbp + 0xfec], 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 0x14003b957
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14003ba93
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, [0x1413fa850]
mov rcx, r14
mov rdx, rbx
call fcn.140050cd0
jmp 0x14003baeb
lea r8, [0x1413fa850]
mov edx, 0x1000
mov rcx, rbx
call fcn.140050aa0
ud2
Function at 0x14003bb40
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 0x14003bb7f
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, [0x140029cc0]
mov qword [rbp - 0x28], rax
lea rax, [0x1413fa9c8]
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, [0x1413faa00]
lea rcx, [rbp - 0x60]
call fcn.140050980
ud2

Function at 0x14003d9d0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
cmp qword [rdx], 0
jne 0x14003dadf
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx + 8]
test rax, rax
jne 0x14003da08
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x14003daa2
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x14003dac1
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 0x14003da5e
mov eax, dword [rsp + 0x30]
mov ecx, 2
test rax, rax
jne 0x14003da7b
jmp 0x14003da70
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14003da76
cmp eax, 0x6d
jne 0x14003da92
mov byte [rsi + 1], 0
jmp 0x14003da86
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 0x14003da88
mov r8d, 0x10
mov rcx, rbx
call fcn.1400507f0
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x14003da15
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.1400507f0
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
jmp 0x14003da15
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140051bc0
ud2

Function at 0x1400473fc
Capabilities:
Parse pe header

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