joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18009ec50
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.18009f1e0
mov qword [rsp + 0x28], 0
cmp qword [0x1803eed28], 0
jne 0x18009ec98
cmp qword [0x1803eed20], 0
je 0x18009ec98
mov rax, qword [0x1803eed20]
mov qword [0x1803eed28], rax
cmp qword [0x1803eed28], 0
je 0x18009ed3e
mov rax, qword [0x1803eed28]
cmp qword [rax + 0x10], 0
je 0x18009ed3e
mov rax, qword [0x1803eed28]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18009ed3e
mov rax, qword [0x1803eed28]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18009ed3e
mov rax, qword [0x1803eed28]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x18009ed04
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x18009ed0b
xor eax, eax
jmp 0x18009eeb9
mov rax, qword [0x1803eed28]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x18009eeb9
mov rax, qword [0x1803eed20]
mov qword [0x1803eed28], rax
jmp 0x18009ed60
mov rax, qword [0x1803eed28]
mov rax, qword [rax + 8]
mov qword [0x1803eed28], rax
cmp qword [0x1803eed28], 0
je 0x18009edad
cmp qword [0x1803eed28], 0
je 0x18009edab
mov rax, qword [0x1803eed28]
cmp qword [rax + 0x10], 0
je 0x18009edab
mov rax, qword [0x1803eed28]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18009edab
mov rax, qword [0x1803eed28]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18009edab
jmp 0x18009ecdc
jmp 0x18009ed4e
mov rcx, qword [rsp + 0x60]
call fcn.1800a0e10
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.18009eec0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x18009eeb7
mov rax, qword [rsp + 0x48]
mov qword [0x1803eed28], rax
mov rax, qword [0x1803eed28]
mov dword [rax], 0x52727464
mov rax, qword [0x1803eed28]
mov qword [rax + 0x10], 0
mov rax, qword [0x1803eed28]
mov rcx, qword [0x1803eed20]
mov qword [rax + 8], rcx
mov rax, qword [0x1803eed28]
mov qword [0x1803eed20], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x1803eed28]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x18009ee68
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x18009eea2
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x18009ee5e
mov rax, qword [0x1803eed28]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18009ecdc
xor eax, eax
add rsp, 0x58
ret
Function at 0x1800b4050
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x50
mov rax, qword [rcx + 8]
mov ebp, r8d
mov ecx, 0x3e80000
mov rbx, qword [rax + 0x2f0]
mov rax, qword [rdx + 0x80]
movzx edx, word [rdx + 0x68]
movzx edi, word [rax + 0x18]
mov eax, 0x40000
shl edi, 0x10
cmp edi, eax
cmovl edi, eax
shl edx, 0x10
call fcn.1800a2ce0
mov dword [rsp + 0x24], eax
mov ecx, eax
cmp eax, 0x28f
jge 0x1800b40a6
xor eax, eax
add rsp, 0x50
pop rdi
pop rbp
pop rbx
ret
mov eax, dword [rbx + 0x24]
mov qword [rsp + 0x80], rsi
mov esi, dword [rbx + 0x28]
mov qword [rsp + 0x48], r12
mov r12d, dword [rbx + 0x3c]
mov qword [rsp + 0x40], r13
mov r13d, dword [rbx + 0x38]
mov dword [rsp + 0x88], eax
mov eax, dword [rbx + 0x2c]
mov qword [rsp + 0x38], r14
mov r14d, dword [rbx + 0x40]
mov dword [rsp + 0x70], eax
mov eax, dword [rbx + 0x34]
mov qword [rsp + 0x30], r15
mov r15d, dword [rbx + 0x30]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x20], r12d
test ebp, ebp
jg 0x1800b40fd
mov ebp, 0x4b0000
jmp 0x1800b410b
shl ebp, 0x10
mov edx, ecx
mov ecx, ebp
call fcn.1800a52c0
mov ebp, eax
bsr ecx, ebp
bsr eax, edi
shl r12d, 0x10
add eax, ecx
cmp eax, 0x2e
jl 0x1800b4121
mov eax, r12d
jmp 0x1800b412a
mov edx, edi
mov ecx, ebp
call fcn.1800a52c0
mov r9d, dword [rsp + 0x88]
mov ecx, r9d
shl ecx, 0x10
cmp eax, ecx
jge 0x1800b4146
shl esi, 0x10
mov ecx, esi
jmp 0x1800b4235
mov r8d, dword [rsp + 0x70]
mov edx, r8d
shl edx, 0x10
mov dword [rsp + 0x88], edx
cmp eax, edx
jge 0x1800b41a4
mov ebx, r8d
mov edx, edi
sub ebx, r9d
call fcn.1800a2ce0
mov ecx, ebp
sub ecx, eax
test ebx, ebx
je 0x1800b4194
sub r15d, esi
mov r8d, ebx
mov edx, r15d
call fcn.1800a5190
shl esi, 0x10
mov edx, edi
mov ecx, esi
mov ebx, eax
call fcn.1800a2ce0
add ebx, eax
jmp 0x1800b423e
mov esi, dword [rsp + 0x78]
mov ebx, esi
mov r8d, dword [rsp + 0x70]
shl ebx, 0x10
jmp 0x1800b41b1
mov esi, dword [rsp + 0x78]
mov ebx, esi
shl ebx, 0x10
cmp eax, ebx
jge 0x1800b41f0
mov ecx, dword [rsp + 0x88]
mov r12d, esi
mov edx, edi
sub r12d, r8d
call fcn.1800a2ce0
mov ecx, ebp
sub ecx, eax
test r12d, r12d
je 0x1800b41f5
sub r13d, r15d
mov r8d, r12d
mov edx, r13d
call fcn.1800a5190
shl r15d, 0x10
mov edx, edi
mov ecx, r15d
mov ebx, eax
call fcn.1800a2ce0
add ebx, eax
jmp 0x1800b423e
cmp eax, r12d
jge 0x1800b422e
mov r15d, dword [rsp + 0x20]
mov edx, edi
mov ecx, ebx
call fcn.1800a2ce0
sub ebp, eax
sub r15d, esi
je 0x1800b422e
sub r14d, r13d
mov r8d, r15d
mov edx, r14d
mov ecx, ebp
call fcn.1800a5190
shl r13d, 0x10
mov edx, edi
mov ecx, r13d
mov ebx, eax
call fcn.1800a2ce0
add ebx, eax
jmp 0x1800b423e
shl r14d, 0x10
mov ecx, r14d
mov edx, edi
call fcn.1800a2ce0
mov ebx, eax
mov edx, dword [rsp + 0x24]
mov ecx, ebx
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rbp
pop rbx
jmp fcn.1800a2ce0
Function at 0x180100280
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0x250
mov rax, qword [0x18029c040]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov eax, dword [rcx + 0x58]
lea rbx, [rsp + 0x30]
mov dword [rsp + 0x40], eax
mov ebp, r9d
mov eax, dword [rcx + 0x5c]
mov rsi, rcx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x290]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], r8d
mov dword [rsp + 0x30], r9d
mov qword [rsp + 0x278], rdi
nop dword [rax]
mov r10d, dword [rbx + 0x14]
mov eax, r10d
mov r14d, dword [rbx + 4]
cmp r10d, r14d
mov r9d, dword [rbx + 0xc]
cmovg eax, r14d
cmp r9d, eax
jl 0x18010041c
cmp r10d, r14d
mov eax, r14d
cmovg eax, r10d
cmp r9d, eax
jg 0x18010041c
cmp r10d, r14d
jne 0x180100320
sub rbx, 0x10
jmp 0x180100464
mov edx, dword [rsi + 0x88]
xor r9d, r9d
cmp r10d, r14d
setge r9b
inc r9d
cmp edx, r9d
je 0x180100392
mov eax, dword [rsi + 4]
mov ecx, eax
mov r8d, dword [rsi + 8]
neg ecx
cmp r10d, r14d
jge 0x180100354
dec eax
add eax, r10d
and eax, ecx
sub eax, r10d
jmp 0x18010035c
and ecx, r10d
mov eax, r10d
sub eax, ecx
cmp eax, r8d
setge r11b
test edx, edx
je 0x18010037b
movzx edx, r11b
mov rcx, rsi
call fcn.180101430
test al, al
jne 0x180100475
movzx r8d, r11b
mov edx, r9d
mov rcx, rsi
call fcn.180101aa0
test al, al
jne 0x180100475
mov edx, dword [rsi + 0x64]
lea r9, [0x180101e00]
mov ecx, dword [rsi + 0x60]
mov r8, rbx
cmp r10d, r14d
jge 0x1801003be
mov dword [rsp + 0x28], edx
mov edx, 2
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call fcn.180100100
jmp 0x180100412
mov eax, dword [rbx + 4]
neg ecx
movzx edi, byte [rsi + 0x6a]
neg eax
mov dword [rbx + 4], eax
neg edx
mov eax, dword [rbx + 0xc]
neg eax
mov dword [rsp + 0x28], ecx
mov dword [rbx + 0xc], eax
mov rcx, rsi
mov eax, dword [rbx + 0x14]
neg eax
mov dword [rsp + 0x20], edx
mov edx, 2
mov dword [rbx + 0x14], eax
call fcn.180100100
test dil, dil
je 0x18010040a
cmp byte [rsi + 0x6a], 0
jne 0x18010040a
mov rdx, qword [rsi + 0x70]
mov ecx, dword [rdx + 0x20]
neg ecx
mov dword [rdx + 0x20], ecx
mov ecx, dword [rbx + 4]
neg ecx
mov dword [rbx + 4], ecx
test al, al
jne 0x180100475
sub rbx, 0x10
jmp 0x180100464
mov eax, dword [rbx + 8]
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x20], ecx
add ecx, eax
mov dword [rbx + 0x24], r10d
lea edx, [rax + rbp]
mov eax, ecx
sar eax, 1
mov dword [rbx + 0x18], eax
lea eax, [rcx + rdx]
sar eax, 2
lea ecx, [r10 + r9]
mov dword [rbx + 0x10], eax
mov eax, ecx
sar edx, 1
sar eax, 1
mov dword [rbx + 8], edx
lea edx, [r14 + r9]
mov dword [rbx + 0x1c], eax
lea eax, [rcx + rdx]
sar eax, 2
sar edx, 1
mov dword [rbx + 0x14], eax
mov dword [rbx + 0xc], edx
add rbx, 0x10
lea rax, [rsp + 0x30]
cmp rbx, rax
jb 0x180100479
mov ebp, dword [rbx]
jmp 0x1801002e0
mov al, 1
jmp 0x180100482
mov dword [rsi + 0x58], ebp
xor al, al
mov dword [rsi + 0x5c], r14d
mov rdi, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.18010c510
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop r14
pop rsi
pop rbp
ret
Function at 0x1801067d0
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbx
push rbp
sub rsp, 0x48
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x1801067ec
lea eax, [rcx + 0x28]
add rsp, 0x48
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov edx, 0x80000000
xor r14d, r14d
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x180106840
mov r14, qword [rsp + 0x40]
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0x68]
add rsp, 0x48
pop rbp
pop rbx
ret
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180106965
mov rax, qword [rsp + 0x70]
cmp rax, 0x7fffffff
jg 0x180106965
test rax, rax
je 0x180106965
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
test rax, rax
je 0x180106965
mov ecx, dword [rsp + 0x70]
xor r9d, r9d
mov dword [rbx + 8], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], r14d
mov qword [rsp + 0x20], r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r14
je 0x1801068da
lea rax, [0x1801069c0]
jmp 0x180106933
mov rcx, qword [rbx + 0x30]
xor edx, edx
movsxd r8, dword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x180106965
mov edi, r14d
nop dword [rax + rax]
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x60]
mov edx, edi
sub r8d, edi
add rdx, qword [rbx]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180106953
add edi, dword [rsp + 0x60]
cmp edi, dword [rbx + 8]
jne 0x180106900
lea rax, [0x180106990]
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], r14
jmp 0x18010697a
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov r8, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x51
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret
Function at 0x180107f50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x180107f5b
xor eax, eax
ret
lea r11, [0x18012c560]
not ecx
cmp r8d, 8
jb 0x180108031
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x180107f80
test r8d, r8d
je 0x18010805d
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x180108040
not ecx
mov eax, ecx
ret
Function at 0x18010cce0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x18010cd1a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x18010cd1f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x18010cd68
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x18012cd50]
cmp byte [rcx + rax], 0
je 0x18010cd68
dec r8
sub rdx, 1
jne 0x18010cd4e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400077b0
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 0x140007840
cmp r10, r11
jb 0x1400078b6
cmp r10, rdx
ja 0x1400078ca
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x140007842
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140007820
jmp 0x1400078a4
ja 0x14000784a
mov r11, r10
cmp rax, r8
jne 0x1400077e4
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 0x140007880
mov rdi, r8
sub ecx, edx
jns 0x14000789b
jmp 0x1400078a6
cmp r8, rsi
je 0x1400078db
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x1400078a6
xor al, 1
cmp rdi, rsi
jne 0x140007860
jmp 0x1400078a6
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001b5c0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001b350
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14001b3d0
ud2
Function at 0x14000e1f0
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 0x14000e24b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14000e24b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x14000e266
cmp eax, 0x42
jne 0x14000e24b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x14000e316
cmp byte [r9 + r11], 0x5f
jne 0x14000e316
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14000e37e
mov rcx, rsi
xor edx, edx
call fcn.140009910
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.140009910
test al, al
jne 0x14000e411
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000e2a2
lea rdx, [0x1403e66c3]
mov r8d, 1
call fcn.140005620
test al, al
jne 0x14000e411
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14000e25a
xor r14d, r14d
lea rbx, [0x1403e6a78]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x14000e2d4
cmp byte [rax + rcx], 0x45
je 0x14000e433
sub r14, 1
jb 0x14000e2f9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000e2f9
mov r8d, 2
mov rdx, rbx
call fcn.140005620
test al, al
jne 0x14000e411
mov rcx, rsi
call fcn.14000b1e0
test al, al
jne 0x14000e411
mov rax, qword [rsi]
test rax, rax
jne 0x14000e2c0
jmp 0x14000e25a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x14000e3d8
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x14000e372
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14000e35c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14000e34b
add dl, 0xa9
jmp 0x14000e35a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x14000e3d8
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x14000e3d8
movzx edx, bl
add rax, rdx
jae 0x14000e320
jmp 0x14000e3d8
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x14000e3d8
cmp rax, rcx
jae 0x14000e3d5
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14000e42b
cmp qword [rsi + 0x20], 0
je 0x14000e424
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.14000e1f0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14000e25c
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000e419
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rdx, [0x1403e6a38]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.140005620
test al, al
je 0x14000e419
mov dil, 2
jmp 0x14000e25a
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14000e25a
mov dil, 1
xor r8d, r8d
jmp 0x14000e3da
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14000e25a
Function at 0x140015b20
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 0x140015b50
test ecx, ecx
jne 0x140015ba0
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x140015b5c
test ecx, ecx
jne 0x140015ba0
mov rcx, rdi
call fcn.140015a00
movzx eax, al
test bpl, bpl
jne 0x140015ba7
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x140015b93.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x140015d18]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x140015b93.2
xor eax, eax
test bpl, bpl
je 0x140015b6c
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x140015cf9
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x140015bda
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x140015c59
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 0x140015c20
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x140015c3b
inc rax
dec rdi
cmp rax, 1
jne 0x140015c00
jmp 0x140015c59
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x140015c3b
cmp ebx, 0x5c
je 0x140015c3b
inc rax
dec rdi
cmp rax, 1
jne 0x140015c20
jmp 0x140015c59
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x140015d07
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x140015c83
mov al, 9
cmp rdx, 2
je 0x140015c87
cmp rdx, 1
jne 0x140015c97
cmp byte [r8], 0x2e
jne 0x140015c97
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140015c97
mov al, 0xa
jmp 0x140015c97
cmp byte [r8], 0x2e
jne 0x140015c97
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.0x140015b93.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.0x140015b93.2
mov ecx, 2
jmp case.0x140015b93.2
lea r8, str.library_std_srcpath.rs
call fcn.14001b2d0
ud2
lea r8, str.library_std_srcpath.rs
call fcn.14001b2d0
ud2

Function at 0x14001adf4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001ae3e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001ae3e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001ae3e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001ae3e
cmp dword [rcx + 0x84], 0xe
jbe 0x14001ae3e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001ae40
xor al, al
add rsp, 0x28
ret
Function at 0x14000a090
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000a0da
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000a0da
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000a0da
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000a0da
cmp dword [rcx + 0x84], 0xe
jbe 0x14000a0da
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000a0dc
xor al, al
add rsp, 0x28
ret

Function at 0x1400116c8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400114c4
Function at 0x140016a08
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 0x140016a38
xor eax, eax
jmp 0x140016afb
mov rbp, rbx
cmp word [rax], si
je 0x140016a5d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140016a44
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140016a40
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.140016928
movsxd r14, eax
test eax, eax
jne 0x140016a9b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140016a31
mov rcx, r14
call fcn.1400131bc
mov rdi, rax
test rax, rax
jne 0x140016ab4
xor ecx, ecx
call fcn.140012544
jmp 0x140016a90
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.140016928
test eax, eax
jne 0x140016ae5
mov rcx, rdi
call fcn.140012544
jmp 0x140016aef
xor ecx, ecx
call fcn.140012544
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 0x14001ae1c
Capabilities:
Get file size

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