joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002b50
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x140002bad
lea rbx, [0x14003e8d0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140002b94
cmp r10, 2
jb 0x140002b94
cmp byte [r9], r8b
jne 0x140002b94
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140002b70
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x140002bef
lea rbx, [0x14003e8d0]
cmp r8b, 0x23
jne 0x140002bd3
cmp byte [r9], r8b
jne 0x140002bd3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140002bc0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140002d30
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x140002d4a
mov qword [r8], 0
lea rdx, [0x14003e430]
call fcn.140002c00
mov rbx, rax
test rax, rax
jne 0x140002d6a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x140002e43
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140002e43
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140002e43
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140002e43
cmp rdi, 0xffffffffffffffff
je 0x140002e43
mov rax, qword [0x14004a740]
test rax, rax
je 0x140002de0
inc dword [rax + 0xec]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140002e43
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x140002e30
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14004a740]
test rax, rax
je 0x140002e25
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140002e4c
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x140002e3e
mov qword [r14], rdi
mov rax, rsi
jmp 0x140002e4e
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140006230
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov r11, rcx
lea rdi, [0x14003e8d0]
movsxd rcx, dword [rcx + 0xf0]
mov r10d, edx
shr r10d, 0x18
mov r8d, edx
shr r8d, 8
mov r9d, edx
mov rax, qword [r11 + 0xf8]
shr r9d, 0x10
mov ebx, dword [rax + rcx*4 - 4]
not ebx
movzx eax, dl
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r8b
xor ebx, dword [rdi + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r9b
xor ebx, dword [rdi + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [rdi + rcx*4]
movzx ecx, bl
xor rcx, r10
shr ebx, 8
xor ebx, dword [rdi + rcx*4]
mov rcx, qword [r11]
not ebx
cmp dword [rcx + 0x3f20], ebx
jne 0x1400062c4
movsxd r8, edx
mov ecx, ebx
mov edx, 4
call fcn.140019b30
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400098c0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rdi, qword [0x14004a740]
mov r14d, edx
movaps xmmword [rsp + 0x30], xmm6
mov rbx, qword [rdi + 0x3ed8]
cmp qword [rbx + 0x1a8], 0
movss xmm2, dword [rbx + 0x250]
movss xmm3, dword [rbx + 0x254]
jne 0x140009912
cmp qword [rdi + 0x4b30], 0
je 0x14000991a
movss xmm2, dword [rbx + 0x220]
cvttss2si eax, dword [r8]
xor r15d, r15d
subss xmm2, dword [rbx + 0x100]
subss xmm3, dword [rbx + 0x104]
xorps xmm5, xmm5
movd xmm1, eax
cvttss2si eax, dword [r8 + 4]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
ucomiss xmm1, xmm5
cvtdq2ps xmm0, xmm0
jp 0x140009955
mov eax, 1
je 0x140009958
mov eax, r15d
ucomiss xmm0, xmm5
jp 0x140009965
jne 0x140009965
mov r15d, 2
movss xmm4, dword [0x140043630]
or r15d, eax
comiss xmm5, xmm1
jb 0x140009980
addss xmm2, xmm1
movaps xmm1, xmm2
maxss xmm1, xmm4
comiss xmm5, xmm0
jb 0x140009990
addss xmm3, xmm0
movaps xmm0, xmm3
maxss xmm0, xmm4
or dword [rdi + 0x47b0], 2
xor edx, edx
movss dword [rdi + 0x47d0], xmm1
movss dword [rdi + 0x47d4], xmm0
mov dword [rdi + 0x47b8], 1
mov r9, qword [rbx + 8]
test rcx, rcx
je 0x1400099d9
mov dword [rsp + 0x28], r14d
lea r8, str._s__s__08X
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x60]
call fcn.140002a30
jmp 0x1400099ef
lea r8, str._s__08X
mov dword [rsp + 0x20], r14d
lea rcx, [rsp + 0x60]
call fcn.140002a30
mov rcx, qword [rsp + 0x60]
xor edx, edx
movss xmm6, dword [rdi + 0x37f8]
mov r8d, 0x1000107
call fcn.14000c580
mov rsi, qword [rdi + 0x3ed8]
movzx ebp, al
movss dword [rdi + 0x37f8], xmm6
cmp word [rsi + 0xc2], 1
mov dword [rsi + 0x80], r14d
mov byte [rsi + 0xd2], r15b
jne 0x140009a40
movsd xmm0, qword [rsi + 0x20]
movsd qword [rbx + 0x100], xmm0
mov r9d, r14d
lea rdx, [0x14003d921]
not r9d
lea r10, [0x14003e8d0]
mov ebx, r9d
mov r8b, 0x23
nop word [rax + rax]
cmp r8b, 0x23
jne 0x140009a73
cmp byte [rdx], r8b
jne 0x140009a73
cmp byte [rdx + 1], r8b
cmove ebx, r9d
movzx ecx, bl
movzx eax, r8b
movzx r8d, byte [rdx]
xor rcx, rax
shr ebx, 8
inc rdx
xor ebx, dword [r10 + rcx*4]
test r8b, r8b
jne 0x140009a60
not ebx
cmp dword [rdi + 0x3f38], ebx
jne 0x140009aa3
xor edx, edx
xor ecx, ecx
call fcn.1400062e0
cmp dword [rdi + 0x48c8], r14d
jne 0x140009ae9
cmp word [rsi + 0x15c], 0
jne 0x140009abf
cmp byte [rsi + 0x162], 0
je 0x140009ae9
xor edx, edx
mov rcx, rsi
call fcn.14000e9b0
xor edx, edx
mov rcx, rsi
call fcn.140014bd0
mov rdx, rsi
mov ecx, ebx
call fcn.1400062e0
mov eax, dword [rdi + 0x48ec]
mov dword [rdi + 0x3f60], eax
mov rbx, qword [rsp + 0x68]
movzx eax, bpl
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140012cc0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14004a040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x14004a740]
mov edi, ecx
cmp byte [rbx + 0x4a79], 0
jne 0x140012d21
cmp byte [rbx + 0x4a7a], 0
jne 0x140012d21
movsx r9d, word [rbx + 0x5bb2]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.1400029b0
test dil, 2
je 0x140012e4f
jmp 0x140012dac
movss xmm1, dword [rbx + 0x3894]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5bb2]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x140043654]
mov edx, 0x10
mulss xmm1, dword [0x14004364c]
addss xmm0, dword [rbx + 0xe00]
addss xmm1, dword [rbx + 0xe04]
mov qword [rbx + 0x47c8], rax
mov dword [rbx + 0x47b4], 1
movss dword [rbx + 0x47c0], xmm0
movss dword [rbx + 0x47c4], xmm1
movss xmm0, dword [rbx + 0x38f0]
mulss xmm0, dword [0x140043588]
or dword [rbx + 0x47b0], 0x41
movss dword [rbx + 0x4810], xmm0
call fcn.1400029b0
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140012e00
lea r11, [0x14003e8d0]
nop dword [rax]
cmp r9b, 0x23
jne 0x140012de3
cmp byte [r8], r9b
jne 0x140012de3
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140012dd0
not ecx
call fcn.140009e20
test rax, rax
je 0x140012e4f
cmp byte [rax + 0xb6], 0
je 0x140012e4f
mov byte [rax + 0xbb], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xbd], 1
lea rcx, [rsp + 0x20]
mov byte [rax + 0xd8], 1
mov edx, 0x10
inc word [rbx + 0x5bb2]
movsx r9d, word [rbx + 0x5bb2]
call fcn.1400029b0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.14000c580
mov al, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14003b840
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140018360
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5ca0], 0
lea rbx, [rcx + 0x5ca8]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140018407
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x1400183ba
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.14001a7a0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140003250
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5ca0]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5cb0]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x14004a738]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14001840f
mov rcx, rbx
call fcn.140003250
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140018890
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x14004a740]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x1400188f3
mov qword [rsp], rbx
lea rbx, [0x14003e8d0]
nop dword [rax]
cmp r9b, 0x23
jne 0x1400188d3
cmp byte [r8], r9b
jne 0x1400188d3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x1400188c0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5c10]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x140018927
mov r10, qword [r10 + 0x5c18]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x14001892e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x140018914
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x140039300
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbx
sub rsp, 0xa0
mov rax, qword [0x14004a040]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, qword [0x14004a880]
test rbx, rbx
je 0x140039534
mov rcx, rbx
call fcn.1400387d0
test al, al
je 0x140039534
movaps xmmword [rsp + 0x90], xmm6
lea rcx, [rsp + 0x20]
mov r8d, 0x6e
movaps xmmword [rsp + 0x80], xmm7
mov rdx, rbx
call fcn.1400385c0
movups xmm0, xmmword [rsp + 0x20]
lea rdx, [rsp + 0x40]
movsd xmm1, qword [rsp + 0x30]
lea rcx, [rsp + 0x20]
movaps xmmword [rsp + 0x40], xmm0
movsd qword [rsp + 0x50], xmm1
call fcn.140038260
movsd xmm6, qword [rsp + 0x20]
xorps xmm4, xmm4
ucomisd xmm6, xmm4
movss xmm7, dword [0x14004a0b4]
xorps xmm3, xmm3
xorps xmm2, xmm2
jp 0x14003939f
je 0x140039406
mov eax, dword [0x14004a8f8]
movd xmm5, eax
cvtdq2pd xmm5, xmm5
comisd xmm6, xmm5
jbe 0x1400393e2
movaps xmm3, xmm5
add eax, eax
subsd xmm3, xmm6
cvtps2pd xmm0, xmm7
xorps xmm3, xmmword [0x140043aa0]
divsd xmm3, xmm0
movd xmm0, eax
movaps xmm1, xmm3
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm5
comisd xmm1, xmm0
jbe 0x1400393e2
xorps xmm3, xmm3
comisd xmm5, xmm6
jbe 0x140039406
movaps xmm3, xmm6
cvtps2pd xmm0, xmm7
subsd xmm3, xmm5
divsd xmm3, xmm0
movaps xmm0, xmm3
addsd xmm0, xmm5
comisd xmm4, xmm0
jbe 0x140039406
xorps xmm3, xmm3
movsd xmm5, qword [rsp + 0x28]
ucomisd xmm5, xmm4
jp 0x140039414
je 0x14003947b
mov eax, dword [0x14004a900]
movd xmm6, eax
cvtdq2pd xmm6, xmm6
comisd xmm5, xmm6
jbe 0x140039457
movaps xmm2, xmm6
add eax, eax
subsd xmm2, xmm5
cvtps2pd xmm0, xmm7
xorps xmm2, xmmword [0x140043aa0]
divsd xmm2, xmm0
movd xmm0, eax
movaps xmm1, xmm2
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm6
comisd xmm1, xmm0
jbe 0x140039457
xorps xmm2, xmm2
comisd xmm6, xmm5
jbe 0x14003947b
movaps xmm2, xmm5
cvtps2pd xmm0, xmm7
subsd xmm2, xmm6
divsd xmm2, xmm0
movaps xmm0, xmm2
addsd xmm0, xmm6
comisd xmm4, xmm0
jbe 0x14003947b
xorps xmm2, xmm2
xor eax, eax
mov qword [rsp + 0x54], 0x4001
mov qword [rsp + 0x40], rax
mov edx, 0x1000
mov qword [rsp + 0x5c], rax
xor ecx, ecx
mov dword [rsp + 0x64], eax
mov r9d, 0x40
mov dword [rsp + 0x50], eax
mov r8d, edx
cvttsd2si eax, xmm3
mov dword [rsp + 0x48], eax
cvttsd2si eax, xmm2
mov dword [rsp + 0x4c], eax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
movaps xmm7, xmmword [rsp + 0x80]
mov rbx, rax
movaps xmm6, xmmword [rsp + 0x90]
test rax, rax
je 0x140039534
movups xmm0, xmmword [0x14004a840]
mov r8d, 0x28
lea rdx, [rsp + 0x40]
movups xmmword [rax], xmm0
movsd xmm1, qword [0x14004a850]
movsd qword [rax + 0x10], xmm1
mov ecx, dword [0x14004a858]
mov dword [rax + 0x18], ecx
movzx ecx, word [0x14004a85c]
mov word [rax + 0x1c], cx
mov ecx, 1
call rbx
xor edx, edx
mov r8d, 0x1000
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14003b840
add rsp, 0xa0
pop rbx
ret
Function at 0x14003c40c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003c456
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003c456
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003c456
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003c456
cmp dword [rcx + 0x84], 0xe
jbe 0x14003c456
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14003c458
xor al, al
add rsp, 0x28
ret
Function at 0x14000ed60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
test rdx, rdx
je 0x14000ef4a
add rdx, rcx
xor eax, eax
xor r9d, r9d
jmp 0x14000ed9a
xor r11b, 1
movzx r8d, r11b
add rax, r8
mov r8d, r9d
mov r9d, r8d
cmp rcx, rdx
je 0x14000ef4c
movzx r10d, byte [rcx]
test r10b, r10b
js 0x14000edc0
inc rcx
mov r8b, 1
cmp r10d, 0x20
jae 0x14000ee60
jmp 0x14000ed8e
mov r8d, r10d
and r8d, 0x1f
movzx esi, byte [rcx + 1]
and esi, 0x3f
cmp r10b, 0xe0
jb 0x14000ee23
movzx r11d, byte [rcx + 2]
shl esi, 6
and r11d, 0x3f
or r11d, esi
cmp r10b, 0xf0
jb 0x14000ee3f
movzx r10d, byte [rcx + 3]
and r8d, 7
shl r8d, 0x12
shl r11d, 6
and r10d, 0x3f
or r10d, r11d
or r10d, r8d
cmp r10d, 0x110000
je 0x14000ef4c
add rcx, 4
mov r8b, 1
cmp r10d, 0x20
jae 0x14000ee60
jmp 0x14000ed8e
add rcx, 2
shl r8d, 6
or r8d, esi
mov r10d, r8d
mov r8b, 1
cmp r10d, 0x20
jae 0x14000ee60
jmp 0x14000ed8e
add rcx, 3
shl r8d, 0xc
or r11d, r8d
mov r10d, r11d
mov r8b, 1
cmp r10d, 0x20
jb 0x14000ed8e
nop word [rax + rax]
cmp r10d, 0x7f
je 0x14000ed8e
mov r11d, r9d
and r11b, 1
je 0x14000ed80
cmp r10d, 0x6d
jne 0x14000ed80
cmp rcx, rdx
je 0x14000ef4c
movzx r10d, byte [rcx]
test r10b, r10b
js 0x14000eea5
inc rcx
cmp r10d, 0x20
jae 0x14000ef32
jmp 0x14000ed8e
mov r9d, r10d
and r9d, 0x1f
movzx esi, byte [rcx + 1]
and esi, 0x3f
cmp r10b, 0xdf
jbe 0x14000ef01
movzx r11d, byte [rcx + 2]
shl esi, 6
and r11d, 0x3f
or r11d, esi
cmp r10b, 0xf0
jb 0x14000ef1a
movzx r10d, byte [rcx + 3]
and r9d, 7
shl r9d, 0x12
shl r11d, 6
and r10d, 0x3f
or r10d, r11d
or r10d, r9d
cmp r10d, 0x110000
je 0x14000ef4c
add rcx, 4
cmp r10d, 0x20
jae 0x14000ef32
jmp 0x14000ed8e
add rcx, 2
shl r9d, 6
or r9d, esi
mov r10d, r9d
cmp r10d, 0x20
jae 0x14000ef32
jmp 0x14000ed8e
add rcx, 3
shl r9d, 0xc
or r11d, r9d
mov r10d, r11d
cmp r10d, 0x20
jb 0x14000ed8e
xor r11d, r11d
mov r9d, 0
cmp r10d, 0x7f
jne 0x14000ed80
jmp 0x14000ed8e
xor eax, eax
pop rsi
ret
Function at 0x140061c20
Capabilities:
Access peb ldr_data
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push rbp
push rsi
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov qword [rbp], 0xfffffffffffffffe
mov eax, 0x30
mov rax, qword gs:[eax]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov rax, qword [rax]
mov r8, qword [rax + 0x20]
movzx eax, word [r8]
cmp eax, 0x5a4d
jne 0x140061d3d
movsxd rax, dword [r8 + 0x3c]
cmp dword [r8 + rax], 0x4550
jne 0x140061d6c
mov edx, ecx
mov eax, dword [r8 + rax + 0x88]
mov ecx, dword [r8 + rax]
movups xmm0, xmmword [r8 + rax + 4]
mov r9, qword [r8 + rax + 0x14]
mov dword [rbp - 0x48], ecx
movups xmmword [rbp - 0x44], xmm0
mov qword [rbp - 0x34], r9
mov rcx, qword [r8 + rax + 0x1c]
mov qword [rbp - 0x2c], rcx
mov eax, dword [r8 + rax + 0x24]
mov dword [rbp - 0x24], eax
lea rcx, [rbp - 0x20]
lea r9, [rbp - 0x48]
call fcn.140061e60
cmp qword [rbp - 0x20], 0
jne 0x140061d9b
movzx eax, word [rbp - 0x18]
mov rcx, qword [rbp - 0x10]
lea rdx, [rcx + 1]
xor r8d, r8d
jmp 0x140061ce1
add r8, 0xfffffffffffffffe
add rdx, 2
cmp r8, 0xffffffffffffff02
je 0x140061d15
cmp byte [rdx], 0xf
jne 0x140061cf2
cmp byte [rdx + 1], 5
jne 0x140061cf2
cmp byte [rdx + 2], 0xc3
je 0x140061d0e
cmp byte [rdx + 1], 0xf
jne 0x140061cd0
cmp byte [rdx + 2], 5
jne 0x140061cd0
cmp byte [rdx + 3], 0xc3
jne 0x140061cd0
sub rcx, r8
add rcx, 2
mov rdx, rcx
add rsp, 0x78
pop rsi
pop rbp
ret
lea rax, [0x14017b078]
mov qword [rsp + 0x20], rax
lea rcx, str.____Error_retrieving_syscall_address
lea r9, [0x14017afa8]
lea r8, [rbp - 1]
mov edx, 0x24
call fcn.14007f150
movzx eax, byte [0x140194181]
mov esi, 0x19
mov ecx, 0x19
mov edx, 1
call fcn.14000ce80
test rax, rax
jne 0x140061dc3
mov ecx, 1
mov edx, 0x19
call fcn.14007ec40
movzx eax, byte [0x140194181]
mov esi, 0x18
mov ecx, 0x18
mov edx, 1
call fcn.14000ce80
test rax, rax
jne 0x140061dda
mov ecx, 1
mov edx, 0x18
call fcn.14007ec40
lea rax, [0x14017b038]
mov qword [rsp + 0x20], rax
lea rcx, str.____Error_getting_syscall_number
lea r9, [0x14017afa8]
lea r8, [rbp - 1]
mov edx, 0x20
call fcn.14007f150
movups xmm0, xmmword [0x14017b0b1]
movups xmmword [rax + 9], xmm0
movups xmm0, xmmword [0x14017b0a8]
movups xmmword [rax], xmm0
jmp 0x140061df2
movups xmm0, xmmword [str.____INVALID_NT_SIGNATURE____INVALID_DOS_SIGNATURE]
movups xmmword [rax], xmm0
movabs rcx, 0x45525554414e4749
mov qword [rax + 0x10], rcx
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rsi
lea rax, [0x14017b000]
mov qword [rsp + 0x20], rax
lea rcx, str.____Error_exporting_DLLsyscall_src_syscall_resolve.rs
lea r9, [0x14017af88]
lea r8, [rbp - 0x20]
mov edx, 0x17
call fcn.14007f150
ud2
Function at 0x140065480
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x140065520
jmp 0x14006550f
jae 0x1400655df
cmp r8, 0x201
jae 0x140065520
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x140065577
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x14006554f
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.14007ded0
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x1400655a0
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x14006564b
mov r8d, r13d
cmp r12, r8
jne 0x140065500
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14006567f
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14006550f
jmp 0x140065520
cmp r14, r8
jb 0x140065699
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.1400688f0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x140065634
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.14000ce90
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x14006561f
jmp 0x140065634
lea rcx, str.internal_error:_entered_unreachable_code_rustc_3f5fd8dd41153bc5fdca9427e9e05be2c767ba23library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.14007eea0
jmp 0x1400656ae
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.14007f250
ud2
Function at 0x14006d250
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x14017cd70]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x14006d288
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14006d2e6
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x14006d313
test eax, eax
js 0x14006d2f2
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x14006d309
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.140068560
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140063940
mov ecx, 7
int 0x29
ud2
Function at 0x14007b410
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x14007b49a
mov rax, rdx
mov rdx, qword [rbp + 0x50]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14007b490
cmp r11, r10
ja 0x14007b516
cmp r10, rdx
ja 0x14007b528
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x14007b492
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14007b470
jmp 0x14007b4f7
ja 0x14007b49a
mov r11, r10
cmp rax, r8
jne 0x14007b437
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x14007b4fb
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14007b4d0
mov r8, r10
sub ecx, r9d
jns 0x14007b4ee
jmp 0x14007b4fd
cmp r10, rdx
je 0x14007b50a
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14007b4fd
xor al, 1
cmp r8, rdx
jne 0x14007b4b0
jmp 0x14007b4fd
xor eax, eax
jmp 0x14007b4fd
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.14007ed60
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14007f2c0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14007f250
int3

Function at 0x14007d264
Capabilities:
Parse pe header

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