joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000a430
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x18004e008]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, dword [0x180050074]
mov rax, qword gs:[0x58]
movdqa xmm0, xmmword [0x1800475c0]
mov ebx, 0x228
mov dword [rsp + 0x30], 0x3205253d
mov rdx, qword [rax + rcx*8]
mov ecx, 0x1a0
add rbx, rdx
mov word [rsp + 0x34], 0x5321
mov eax, dword [rcx + rdx]
test al, 1
jne 0x18000a4d9
or eax, 1
mov byte [rbx + 0x16], 1
mov dword [rcx + rdx], eax
lea rcx, [rsp + 0x35]
lea rax, [rbx + 0x15]
cmp rbx, rcx
ja 0x18000a4ba
lea rcx, [rsp + 0x20]
cmp rax, rcx
jb 0x18000a4ba
mov eax, dword [rsp + 0x30]
movups xmmword [rbx], xmm0
mov dword [rbx + 0x10], eax
movzx eax, word [rsp + 0x34]
mov word [rbx + 0x14], ax
jmp 0x18000a4cd
mov eax, dword [rsp + 0x30]
movups xmmword [rbx], xmm0
mov dword [rbx + 0x10], eax
movzx eax, word [rsp + 0x34]
mov word [rbx + 0x14], ax
lea rcx, [0x180036e20]
call fcn.18001079c
mov eax, dword [rbx + 0x10]
movups xmm1, xmmword [rbx]
mov dword [rsp + 0x30], eax
movzx eax, word [rbx + 0x14]
mov word [rsp + 0x34], ax
movzx eax, byte [rbx + 0x16]
mov byte [rsp + 0x36], al
movdqu xmmword [rsp + 0x20], xmm1
test al, al
je 0x18000a533
movdqa xmm0, xmmword [0x180047620]
mov eax, 0x10
pxor xmm0, xmm1
movdqu xmmword [rsp + 0x20], xmm0
nop word [rax + rax]
xor byte [rsp + rax + 0x20], 0x53
inc rax
cmp rax, 0x16
jb 0x18000a520
mov byte [rsp + 0x36], 0
lea rdx, [rsp + 0x20]
lea rcx, [0x180050250]
call fcn.18000d080
mov rcx, rax
call fcn.18000d330
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180010360
add rsp, 0x40
pop rbx
ret

Function at 0x18000a710
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x18004e008]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rax, qword gs:[0x58]
mov rdi, rcx
mov ecx, dword [0x180050074]
movdqa xmm0, xmmword [0x180047640]
mov ebx, 0x1a8
mov dword [rsp + 0x30], 0x5a5c4145
mov rdx, qword [rax + rcx*8]
mov ecx, 0x1e8
add rbx, rdx
mov dword [rsp + 0x34], 0x35150f5b
mov eax, dword [rcx + rdx]
test al, 1
jne 0x18000a7b7
or eax, 1
mov byte [rbx + 0x18], 1
mov dword [rcx + rdx], eax
lea rcx, [rsp + 0x37]
lea rax, [rbx + 0x17]
cmp rbx, rcx
ja 0x18000a79d
lea rcx, [rsp + 0x20]
cmp rax, rcx
jb 0x18000a79d
movups xmmword [rbx], xmm0
movsd xmm0, qword [rsp + 0x30]
movsd qword [rbx + 0x10], xmm0
jmp 0x18000a7ab
movups xmmword [rbx], xmm0
movsd xmm0, qword [rsp + 0x30]
movsd qword [rbx + 0x10], xmm0
lea rcx, [0x180036e90]
call fcn.18001079c
cmp byte [rbx + 0x18], 0
je 0x18000a7f0
movdqu xmm0, xmmword [rbx]
lea rax, [rbx + 0x10]
mov ecx, 8
movdqa xmm1, xmmword [0x180047600]
pxor xmm1, xmm0
movdqu xmmword [rbx], xmm1
nop word [rax + rax]
xor byte [rax], 0x35
lea rax, [rax + 1]
sub rcx, 1
jne 0x18000a7e0
mov byte [rbx + 0x18], cl
mov rdx, rbx
lea rcx, [0x180050250]
call fcn.18000d080
mov rcx, rax
mov rdx, rdi
call fcn.18000aac0
mov rcx, rax
call fcn.18000d330
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180010360
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x18000a830
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x18004e008]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, dword [0x180050074]
mov rax, qword gs:[0x58]
movdqa xmm0, xmmword [0x1800476b0]
mov ebx, 0x130
mov dword [rsp + 0x30], 0xc1d6dbd0
mov rdx, qword [rax + rcx*8]
mov ecx, 0x278
add rbx, rdx
mov eax, dword [rcx + rdx]
test al, 1
jne 0x18000a8c8
or eax, 1
mov byte [rbx + 0x15], 1
mov dword [rcx + rdx], eax
lea rcx, [rsp + 0x34]
lea rax, [rbx + 0x14]
cmp rbx, rcx
ja 0x18000a8ae
lea rcx, [rsp + 0x20]
cmp rax, rcx
jb 0x18000a8ae
mov eax, dword [rsp + 0x30]
movups xmmword [rbx], xmm0
mov dword [rbx + 0x10], eax
mov byte [rbx + 0x14], 0xb3
jmp 0x18000a8bc
mov eax, dword [rsp + 0x30]
movups xmmword [rbx], xmm0
mov dword [rbx + 0x10], eax
mov byte [rbx + 0x14], 0xb3
lea rcx, [0x180036ec0]
call fcn.18001079c
mov eax, dword [rbx + 0x10]
movups xmm1, xmmword [rbx]
mov dword [rsp + 0x30], eax
movzx eax, word [rbx + 0x14]
mov word [rsp + 0x34], ax
shr ax, 8
movdqu xmmword [rsp + 0x20], xmm1
test al, al
je 0x18000a913
movdqa xmm0, xmmword [0x180047690]
mov eax, 0x10
pxor xmm0, xmm1
movdqu xmmword [rsp + 0x20], xmm0
xor byte [rsp + rax + 0x20], 0xb3
inc rax
cmp rax, 0x15
jb 0x18000a900
mov byte [rsp + 0x35], 0
lea rax, [rsp + 0x20]
mov rcx, 0xffffffffffffffff
nop
inc rcx
cmp byte [rax + rcx], 0
jne 0x18000a920
xor edx, edx
lea rax, [rsp + 0x20]
test rcx, rcx
cmove rax, rdx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180010360
add rsp, 0x40
pop rbx
ret

Function at 0x18000a950
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x18004e008]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword gs:[0x58]
mov ecx, dword [0x180050074]
mov edx, 0x158
mov edi, 0x148
mov rbx, qword [rax + rcx*8]
mov eax, dword [rdx + rbx]
test al, 1
jne 0x18000a9c2
or eax, 1
mov word [rdi + rbx + 0xd], 0x197
lea rcx, [0x180036ef0]
mov dword [rdx + rbx], eax
mov dword [rdi + rbx], 0xc8dedbdd
mov dword [rdi + rbx + 4], 0xfee5e3c4
mov dword [rdi + rbx + 8], 0xe2d3f0f9
mov byte [rdi + rbx + 0xc], 0xe7
call fcn.18001079c
mov ecx, edi
xor edx, edx
add rcx, rbx
mov eax, dword [rcx + 8]
movsd xmm0, qword [rcx]
mov dword [rsp + 0x28], eax
movzx eax, word [rcx + 0xc]
mov word [rsp + 0x2c], ax
movzx eax, byte [rcx + 0xe]
movsd qword [rsp + 0x20], xmm0
mov byte [rsp + 0x2e], al
test al, al
je 0x18000aa03
mov eax, edx
xor byte [rsp + rax + 0x20], 0x97
inc rax
cmp rax, 0xe
jb 0x18000a9f1
mov byte [rsp + 0x2e], dl
lea rax, [rsp + 0x20]
mov rcx, 0xffffffffffffffff
nop
inc rcx
cmp byte [rax + rcx], dl
jne 0x18000aa10
test rcx, rcx
lea rax, [rsp + 0x20]
cmove rax, rdx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180010360
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x18000fb00
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x18004e008]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor edx, edx
lea rax, [rsp + 0x30]
mov r9, rcx
mov qword [rsp + 0x28], rax
lea r8, [0x18000ff80]
mov dword [rsp + 0x20], edx
xor ecx, ecx
mov dword [rsp + 0x30], edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
je 0x18000fb65
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180010360
add rsp, 0x40
pop rbx
ret

Function at 0x180012a54
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x180012a82
xor eax, eax
jmp 0x180012b68
cmp qword [rcx + 0x68], 0
je 0x180012a93
call fcn.180012b84
jmp 0x180012b68
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x180012aaa
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180012aac
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180012ade
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1800152c0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x180012b62
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x180012b15
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x180012b3e
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.18001f508
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x180012b62
cmp rsi, rbx
ja 0x180012b1c
test rsi, rsi
je 0x180012b62
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.18001f508
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1800195bc
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 0x180019463
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180019463
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180019463
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180019463
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180019463
cmp dword [rcx + 0x84], 0xe
jbe 0x180019463
cmp dword [rcx + 0xf8], 0
je 0x180019463
mov ecx, ebx
call fcn.180019520
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.1800192f0
nop
cmp dword [rbp + 0x20], 0
je 0x1800194b1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800194bc
int3
xor r8d, r8d
xor edx, edx
jmp 0x1800193f4
Function at 0x18002bfa4
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 0x18002bfd4
xor eax, eax
jmp 0x18002c097
mov rbp, rbx
cmp word [rax], si
je 0x18002bff9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18002bfe0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18002bfdc
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.18002a76c
movsxd r14, eax
test eax, eax
jne 0x18002c037
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18002bfcd
mov rcx, r14
call fcn.1800248d8
mov rdi, rax
test rax, rax
jne 0x18002c050
xor ecx, ecx
call fcn.18002489c
jmp 0x18002c02c
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.18002a76c
test eax, eax
jne 0x18002c081
mov rcx, rdi
call fcn.18002489c
jmp 0x18002c08b
xor ecx, ecx
call fcn.18002489c
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 0x18002c910
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x18002c942
call fcn.180020dc8
mov dword [rax], 0x16
call fcn.18001cf50
jmp 0x18002ca61
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x18002ca61
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x18002ca61
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x18002c971
lock or dword [rcx + 0x14], 0x10
jmp 0x18002ca61
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x18002c985
call fcn.18002df74
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.18002987c
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.18002d6f0
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x18002ca4f
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x18002ca1a
mov rcx, rsi
call fcn.18002987c
cmp eax, edi
je 0x18002ca05
mov rcx, rsi
call fcn.18002987c
cmp eax, 0xfffffffe
je 0x18002ca05
mov rcx, rsi
call fcn.18002987c
movsxd rbx, eax
lea r14, [0x180050e00]
mov rcx, rsi
sar rbx, 6
call fcn.18002987c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x18002ca0c
lea rdx, [0x18004e250]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x18002ca1a
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x18002ca3e
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x18002ca3e
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x18002ca3e
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x18002ca64
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x18002cd8c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.180035690
sub rsp, rax
mov rax, qword [0x18004e008]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18002987c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18002cddb
mov rax, rbp
jmp 0x18002cee3
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x50e00]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18002dec8
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x50e00]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18002cedf
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18002cedf
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18002dec8
test rax, rax
js 0x18002cedf
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18002cedf
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18002ced1
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18002ced1
cmp byte [rcx], 0xd
jne 0x18002ceb7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18002cec6
cmp byte [rcx + 1], 0xa
jne 0x18002cec6
inc rcx
jmp 0x18002cec6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x4e960]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18002ce99
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18002cee3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180010360
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18002d244
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x180050e00]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x18002d2a2
cmp word [rdx], r12w
jne 0x18002d2a2
or byte [rax + r8*8 + 0x38], cl
jmp 0x18002d2a8
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x18002d403
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x18002d3de
lea r9, [rcx + 2]
cmp ax, r13w
je 0x18002d2e1
mov rcx, r9
jmp 0x18002d304
cmp r9, rdx
jae 0x18002d31b
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x18002d2c5
jmp 0x18002d403
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18002d3d8
cmp dword [rsp + 0x80], edi
je 0x18002d3d8
mov rdx, r14
lea r11, [0x180050e00]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x18002d3b1
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x18002d384
mov word [rbx], r12w
jmp 0x18002d3ff
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x18002d38d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x18002d3ff
cmp word [rsp + 0x70], r12w
jne 0x18002d3be
cmp rbx, rsi
je 0x18002d37e
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.18002ded0
cmp word [rsp + 0x70], r12w
je 0x18002d403
mov word [rbx], r13w
jmp 0x18002d3ff
lea r11, [0x180050e00]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x18002d3fb
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x18002d403
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180035810
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180035838
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180035838
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x18000d260
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov byte [rsp + 8], cl
sub rsp, 0x98
mov byte [rsp + 2], 0x8c
mov eax, 0x4a4d
mov word [rsp + 0x10], ax
mov byte [rsp + 3], 0x6e
mov qword [rsp + 0x58], 0xae
mov dword [rsp + 0x34], 0x21
mov dword [rsp + 0x38], 0xe7f21378
mov eax, 0xf9
mov word [rsp + 0x14], ax
mov eax, 0x72
mov word [rsp + 8], ax
movzx eax, byte [0x1800c303f]
movsx ax, al
mov word [rsp + 0x18], ax
mov rax, qword [0x1800c3170]
mov qword [rsp + 0x60], rax
movzx eax, word [0x1800c3158]
mov word [rsp + 0x1c], ax
mov rax, qword [0x1800c3170]
mov qword [rsp + 0x68], rax
mov eax, 0xffff84d3
mov word [rsp + 0x20], ax
mov eax, 0x3a
mov word [rsp + 0x24], ax
movzx eax, byte [0x1800c3017]
mov dword [rsp + 0x3c], eax
movzx eax, byte [0x1800c3016]
movsx eax, al
mov dword [rsp + 0xc], eax
mov eax, 0xf0db
mov word [rsp + 0x28], ax
mov dword [rsp + 0x40], 0x362b87f3
mov qword [rsp + 0x70], 0x6ef4
movzx eax, word [0x1800c3138]
movzx eax, ax
mov dword [rsp + 0x44], eax
mov eax, 0x95f8d9ff
mov qword [rsp + 0x78], rax
movzx eax, word [0x1800c313c]
mov byte [rsp + 4], al
movzx eax, byte [str.d_vLock_name]
movzx eax, al
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x80], 0x10f19b2
mov qword [rsp + 0x88], 0x4e
mov dword [rsp + 0x4c], 0x32d29cdf
mov eax, 0x6a
mov word [rsp + 0x2c], ax
mov dword [rsp + 0x50], 0x329fbf0a
mov dword [rsp + 0x54], 0x50446ad7
mov eax, 0xd3
mov word [rsp + 0x30], ax
movsx eax, word [rsp + 8]
xor eax, 0x72
mov ecx, dword [rsp + 0xc]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0xc], eax
mov byte [rsp + 1], 0
jmp 0x18000d3cd
movzx eax, byte [rsp + 1]
inc al
mov byte [rsp + 1], al
movzx eax, byte [rsp + 1]
cmp eax, 4
jge 0x18000d45e
mov byte [rsp], 0
jmp 0x18000d3ea
movzx eax, byte [rsp]
inc al
mov byte [rsp], al
movzx eax, byte [rsp]
cmp eax, 4
jge 0x18000d459
movzx eax, byte [rsp + 1]
mov rcx, qword [rsp + 0xa8]
lea rax, [rcx + rax*4]
movzx ecx, byte [rsp]
movzx edx, byte [rsp + 0xa0]
shl edx, 2
movzx r8d, byte [rsp + 1]
shl r8d, 2
lea edx, [r8 + rdx*4]
movzx r8d, byte [rsp]
add edx, r8d
movsxd rdx, edx
mov r8, qword [rsp + 0xb0]
movzx edx, byte [r8 + rdx]
movzx eax, byte [rax + rcx]
xor eax, edx
movzx ecx, byte [rsp]
movzx edx, byte [rsp + 1]
mov r8, qword [rsp + 0xa8]
lea rdx, [r8 + rdx*4]
mov byte [rdx + rcx], al
jmp 0x18000d3e1
jmp 0x18000d3c2
xor eax, eax
add rsp, 0x98
ret
Function at 0x18000d470
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xd8
mov qword [rsp + 0x70], 0x67
mov eax, 0x8eba
mov word [rsp + 0x2c], ax
mov dword [rsp + 0x44], 0x68e88b62
mov byte [rsp + 0x24], 0xcd
mov byte [rsp + 0x25], 0x8d
mov byte [rsp + 0x23], 0x60
movzx eax, byte [0x1800c3017]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 0x6356af57
movzx eax, word [0x1800c3114]
cwde
mov dword [rsp + 0x48], eax
movabs rax, 0x4e429021387b2
mov qword [rsp + 0x88], rax
mov eax, 0xffffac14
mov word [rsp + 0x30], ax
mov eax, dword [0x1800c315c]
mov dword [rsp + 0x4c], eax
mov eax, 0xffffbdf6
mov word [rsp + 0x34], ax
movsx rax, byte [0x1800c3067]
mov qword [rsp + 0x68], rax
movzx eax, byte [0x1800c3013]
movzx eax, al
mov word [rsp + 0x38], ax
mov qword [rsp + 0x60], 0x3192
movzx eax, word [0x1800c30bc]
mov word [rsp + 0x3c], ax
mov eax, dword [0x1800c307c]
mov dword [rsp + 0x50], eax
mov eax, dword [0x1800c3158]
mov qword [rsp + 0x90], rax
mov byte [rsp + 0x22], 0xfc
mov dword [rsp + 0x54], 0x35
mov byte [rsp + 0x26], 0xe6
mov byte [rsp + 0x27], 0x6c
mov qword [rsp + 0x98], 0x1c
mov byte [rsp + 0x28], 0x5d
movzx eax, word [0x1800c3114]
movsx rax, ax
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x58], 0x5f83e78f
mov byte [rsp + 0x29], 0xeb
mov eax, 0x7f0f
mov word [rsp + 0x40], ax
movabs rax, 0x5efe6bc75162e
mov qword [rsp + 0xa8], rax
movzx eax, word [0x1800c313c]
cwde
movzx ecx, byte [rsp + 0x22]
cmp eax, ecx
jle 0x18000d5ef
lea rax, [rsp + 0xb0]
lea rcx, [0x18009f5e0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x1c
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cdqe
mov qword [0x1800c3170], rax
jmp 0x18000d60b
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x18000d60b
movzx eax, byte [rsp + 0x23]
movzx eax, al
shl eax, 8
cdqe
mov qword [rsp + 0x68], rax
mov byte [rsp + 0x21], 0
jmp 0x18000d61d
movzx eax, byte [rsp + 0x21]
inc al
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x21]
cmp eax, 4
jge 0x18000d685
mov byte [rsp + 0x20], 0
jmp 0x18000d639
movzx eax, byte [rsp + 0x20]
inc al
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
cmp eax, 4
jge 0x18000d683
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0xf0]
lea rax, [rcx + rax*4]
movzx ecx, byte [rsp + 0x21]
movzx eax, byte [rax + rcx]
lea rcx, str.cw
movzx edx, byte [rsp + 0x20]
mov rdi, qword [rsp + 0xf0]
lea rdx, [rdi + rdx*4]
movzx edi, byte [rsp + 0x21]
movzx eax, byte [rcx + rax]
mov byte [rdx + rdi], al
jmp 0x18000d62e
jmp 0x18000d612
xor eax, eax
add rsp, 0xd8
pop rdi
pop rsi
ret
Function at 0x18000f570
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov byte [rsp + 1], 0
jmp 0x18000f58b
movzx eax, byte [rsp + 1]
inc al
mov byte [rsp + 1], al
movzx eax, byte [rsp + 1]
cmp eax, 4
jge 0x18000f5e9
mov byte [rsp], 0
jmp 0x18000f5a4
movzx eax, byte [rsp]
inc al
mov byte [rsp], al
movzx eax, byte [rsp]
cmp eax, 4
jge 0x18000f5e7
movzx eax, byte [rsp]
mov rcx, qword [rsp + 0x20]
lea rax, [rcx + rax*4]
movzx ecx, byte [rsp + 1]
movzx eax, byte [rax + rcx]
lea rcx, [0x18009f4c0]
movzx edx, byte [rsp]
mov r8, qword [rsp + 0x20]
lea rdx, [r8 + rdx*4]
movzx r8d, byte [rsp + 1]
movzx eax, byte [rcx + rax]
mov byte [rdx + r8], al
jmp 0x18000f59b
jmp 0x18000f580
xor eax, eax
add rsp, 0x18
ret

Function at 0x18000ffe0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov byte [rsp], 0
jmp 0x18000fffd
movzx eax, byte [rsp]
inc al
mov byte [rsp], al
movzx eax, byte [rsp]
cmp eax, 0x10
jge 0x180010030
movzx eax, byte [rsp]
movzx ecx, byte [rsp]
mov rdx, qword [rsp + 0x28]
movzx ecx, byte [rdx + rcx]
mov rdx, qword [rsp + 0x20]
movzx eax, byte [rdx + rax]
xor eax, ecx
movzx ecx, byte [rsp]
mov rdx, qword [rsp + 0x20]
mov byte [rdx + rcx], al
jmp 0x18000fff4
xor eax, eax
add rsp, 0x18
ret