joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800130c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
sub rsp, 0x30
mov rbp, r9
mov edi, r8d
mov r10, rdx
mov rbx, rcx
test r8d, r8d
jne 0x1800130f2
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
test r9, r9
je 0x180013242
mov rcx, qword [rcx + 0x208]
cmp rcx, 0xffffffffffffffff
je 0x180013242
cmp dword [rbx + 0x210], 0
je 0x18001315f
mov rax, qword [rdx]
cqo
and edx, 0x1ff
add rax, rdx
and eax, 0x1ff
cmp rax, rdx
jne 0x180013135
test edi, 0x1ff
je 0x18001315f
mov r9d, edi
mov r8, rbp
mov rdx, r10
mov rcx, rbx
mov qword [rsp + 0x20], 0
call fcn.1800133b0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rdx, qword [r10]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18001322d
mov rcx, qword [rbx + 0x208]
lea r9, [rsp + 0x50]
mov r8d, edi
mov rdx, rbp
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1800130e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6f8
je 0x1800131db
cmp eax, 0x3e6
je 0x1800131db
test eax, eax
jle 0x180013247
movzx eax, ax
or eax, 0x80070000
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov edx, edi
mov rcx, rbx
call fcn.180012e90
test eax, eax
js 0x180013247
cmp eax, 1
je 0x180013247
mov rcx, qword [rbx + 0x218]
mov r8, rdi
mov rdx, rbp
call fcn.180015520
mov rdx, qword [rbx + 0x218]
mov rcx, qword [rbx + 0x208]
lea r9, [rsp + 0x50]
mov r8d, edi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1800130e0
call fcn.1800048d0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov eax, 0x80070057
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x180013260
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov edi, r9d
mov r12, r8
mov rbp, rdx
mov rsi, rcx
test r9d, r9d
jne 0x18001328e
xor eax, eax
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
test r8, r8
je 0x18001339a
cmp qword [rcx + 0x208], 0xffffffffffffffff
je 0x18001339a
test rdx, rdx
je 0x18001339a
mov rcx, qword [rdx]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], r13
mov rax, rcx
cqo
and edx, 0x1ff
lea rbx, [rdx + rax]
mov rax, rdi
sar rbx, 9
shl rbx, 9
sub rax, rbx
lea rax, [rax + rcx + 0x1ff]
mov rcx, rsi
cqo
and edx, 0x1ff
lea r13, [rdx + rax]
sar r13, 9
shl r13d, 9
mov edx, r13d
call fcn.180012e90
test eax, eax
js 0x180013352
cmp eax, 1
je 0x180013352
mov rcx, qword [rsi + 0x208]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18001334d
mov rdx, qword [rsi + 0x218]
mov rcx, qword [rsi + 0x208]
xor eax, eax
lea r9, [rsp + 0x68]
mov r8d, r13d
mov dword [rsp + 0x68], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18001336a
call fcn.1800048d0
mov rbx, qword [rsp + 0x50]
mov r13, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov eax, dword [rbp]
mov ecx, dword [rsp + 0x68]
sub eax, ebx
cmp ecx, eax
jbe 0x180013396
sub ecx, eax
cmp ecx, edi
cmovb edi, ecx
test edi, edi
je 0x180013396
mov edx, eax
mov r8d, edi
mov rcx, r12
add rdx, qword [rsi + 0x218]
call fcn.180015520
xor eax, eax
jmp 0x180013352
mov eax, 0x80070057
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x1800133b0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rbp, r8
mov rsi, rdx
mov rdi, rcx
test r9d, r9d
jne 0x1800133d0
xor eax, eax
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
test r8, r8
je 0x180013535
cmp qword [rcx + 0x208], 0xffffffffffffffff
je 0x180013535
test rdx, rdx
je 0x180013535
mov rcx, qword [rdx]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], r12
mov rax, rcx
mov qword [rsp + 0x38], r13
mov r13d, r9d
cqo
and edx, 0x1ff
lea rbx, [rdx + rax]
mov eax, r9d
sar rbx, 9
shl rbx, 9
sub rax, rbx
lea rax, [rax + rcx + 0x1ff]
mov rcx, rdi
cqo
and edx, 0x1ff
lea r12, [rdx + rax]
sar r12, 9
shl r12d, 9
mov edx, r12d
call fcn.180012e90
test eax, eax
js 0x18001351a
cmp eax, 1
je 0x18001351a
mov rcx, qword [rdi + 0x208]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x18001347e
call fcn.1800048d0
jmp 0x18001351a
mov rdx, qword [rdi + 0x218]
mov rcx, qword [rdi + 0x208]
mov qword [rsp + 0x30], r14
xor r14d, r14d
lea r9, [rsp + 0x78]
mov r8d, r12d
mov dword [rsp + 0x78], r14d
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180013510
mov ecx, dword [rsi]
mov r8, r13
mov rdx, rbp
sub ecx, ebx
add rcx, qword [rdi + 0x218]
call fcn.180015520
mov rcx, qword [rdi + 0x208]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180013510
mov rdx, qword [rdi + 0x218]
mov rcx, qword [rdi + 0x208]
lea r9, [rsp + 0x80]
mov r8d, r12d
mov dword [rsp + 0x80], r14d
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180013531
call fcn.1800048d0
mov r14, qword [rsp + 0x30]
mov r12, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov r13, qword [rsp + 0x38]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
xor eax, eax
jmp 0x180013515
mov eax, 0x80070057
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x18001546b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x18002a090]
jne 0x1800139aa
rol rcx, 0x10
test cx, 0xffff
jne 0x1800139a6
repz ret
ror rcx, 0x10
jmp 0x1800153c4
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x18002bad0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x18002bbc8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x180015449
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x18002bad0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x18001546b
mov rax, qword [rsp + 0x88]
mov qword [0x18002bbc8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x18002bb68], rax
mov rax, qword [0x18002bbc8]
mov qword [0x18002ba40], rax
mov rax, qword [rsp + 0x90]
mov qword [0x18002bb50], rax
mov dword [0x18002ba30], 0xc0000409
mov dword [0x18002ba34], 1
mov rax, qword [0x18002a090]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18002a098]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x18002bac8], eax
mov ecx, 1
call fcn.18001739c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180021738]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x18002bac8], 0
jne 0x1800154f2
mov ecx, 1
call fcn.18001739c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x180018bc0
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x180018a34
Function at 0x18001dc34
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.1800173ac
xor ebx, ebx
mov rdi, rax
cmp qword [0x18002c7b0], rbx
jne 0x18001dd3a
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x18001de0f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18001de0f
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x18002c7b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x18002c7b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x18002c7c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x18002c7d0], rax
test rax, rax
je 0x18001dd31
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x18002c7c8], rax
jmp 0x18001dd41
mov rax, qword [0x18002c7c8]
jmp 0x18001dd48
mov rax, qword [0x18002c7c8]
mov r11, qword [0x18002c7d0]
cmp rax, rdi
je 0x18001ddb0
cmp r11, rdi
je 0x18001ddb0
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x18002c7d0]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x18001ddb0
test rax, rax
je 0x18001ddb0
call rsi
test rax, rax
je 0x18001ddaa
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x18001ddaa
test byte [rsp + 0x38], 1
jne 0x18001ddb0
bts ebp, 0x15
jmp 0x18001ddee
mov rcx, qword [0x18002c7b8]
cmp rcx, rdi
je 0x18001ddee
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x18001ddee
call rax
mov rbx, rax
test rax, rax
je 0x18001ddee
mov rcx, qword [0x18002c7c0]
cmp rcx, rdi
je 0x18001ddee
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x18001ddee
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x18002c7b0]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x18001de0f
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x18001de11
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140001060
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov eax, 0x5a4d
mov ebp, r8d
mov r14d, edx
mov rdi, rcx
cmp word [rcx], ax
jne 0x14000116a
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x14000116a
mov ecx, 0x8664
cmp word [rax + 4], cx
jne 0x14000116a
mov ecx, 0x20b
cmp word [rax + 0x18], cx
jne 0x14000116a
cmp dword [rax + 0x84], 0
jbe 0x14000116a
cmp dword [rax + 0x8c], 0
je 0x14000116a
mov ecx, dword [rax + 0x88]
add rcx, rdi
je 0x14000116a
mov ebx, dword [rcx + 0x20]
xor r11d, r11d
mov r15d, dword [rcx + 0x24]
add rbx, rdi
mov r12d, dword [rcx + 0x1c]
add r15, rdi
mov esi, dword [rcx + 0x18]
add r12, rdi
test esi, esi
je 0x14000116a
nop dword [rax]
mov r10d, dword [rbx]
mov r9d, r14d
add r10, rdi
xor eax, eax
nop dword [rax + rax]
movsx ecx, byte [rax + r10]
movzx edx, cl
lea ecx, [rdx - 0x61]
cmp ecx, 0x19
lea r8d, [rdx - 0x20]
cmova r8d, edx
mov ecx, r8d
imul ecx, r8d
xor r9d, ecx
lea ecx, [r8 + r8*4]
rol r9d, 3
sub r9d, ecx
test r8d, r8d
je 0x140001159
inc rax
cmp rax, 0xffffffffffffffff
jne 0x140001120
cmp r9d, ebp
je 0x140001187
inc r11d
add rbx, 4
cmp r11d, esi
jb 0x140001110
xor eax, eax
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
pop r15
pop r14
pop r12
ret
movzx ecx, word [r15 + r11*2]
mov eax, dword [r12 + rcx*4]
add rax, rdi
jmp 0x14000116c
Function at 0x140019610
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r11, rdx
mov r14, qword [rsp + 0x90]
mov r15, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebp, ecx
shr ebp, 8
lea r8, [r11 + r8*2]
xor eax, eax
mov rdi, r11
movzx esi, byte [r11 + 1]
add r11, 2
lea r10, [rax + rsi]
cmp byte [rdi], bpl
jne 0x140019690
cmp r10, rax
jb 0x140019704
cmp r10, rdx
ja 0x140019718
add rax, r9
xor edi, edi
nop
cmp rsi, rdi
je 0x140019692
lea rbx, [rdi + 1]
cmp byte [rax + rdi], cl
mov rdi, rbx
jne 0x140019670
jmp 0x1400196f3
ja 0x14001969a
mov rax, r10
cmp r11, r8
jne 0x140019642
add r14, r15
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea rbx, [r15 + 1]
movzx edx, byte [r15]
test dl, dl
js 0x1400196d0
mov r15, rbx
sub ecx, edx
jns 0x1400196ea
jmp 0x1400196f5
cmp rbx, r14
je 0x140019729
movzx ebp, byte [r15 + 1]
add r15, 2
and edx, 0x7f
shl edx, 8
or edx, ebp
sub ecx, edx
js 0x1400196f5
xor al, 1
cmp r15, r14
jne 0x1400196b0
jmp 0x1400196f5
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea r8, [0x140ffb540]
mov rcx, rax
mov rdx, r10
call fcn.140051d90
ud2
lea r8, [0x140ffb540]
mov rcx, r10
call fcn.140051b80
ud2
lea rcx, [0x141002e98]
lea r8, [0x140ffb558]
mov edx, 0x2b
call fcn.140051b90
ud2
Function at 0x1400210d0
Capabilities:
Encode data using xor

Disassembly:
cmp rdx, 0x20
jae 0x1400210eb
test rdx, rdx
je 0x1400210f0
cmp rdx, 4
jae 0x1400210f3
xor eax, eax
mov r8, rcx
jmp 0x140021254
jmp fcn.140016ba0
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
lea rax, [r8 - 4]
mov r9, rax
shr r9, 2
inc r9
test rax, rax
je 0x140021279
mov r10, r9
and r10, 0xfffffffffffffffe
pxor xmm0, xmm0
xor r11d, r11d
movdqa xmm2, xmmword [0x1400546a0]
movdqa xmm3, xmmword [0x140054520]
pxor xmm1, xmm1
nop word cs:[rax + rax]
movzx eax, word [rcx + r11]
movd xmm4, eax
movzx eax, word [rcx + r11 + 2]
movd xmm5, eax
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm4, xmm0
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm0, xmm5, 0xd4
pshufd xmm5, xmm0, 0xd4
pand xmm5, xmm3
paddq xmm5, xmm1
movzx eax, word [rcx + r11 + 4]
movd xmm0, eax
movzx eax, word [rcx + r11 + 6]
movd xmm1, eax
pcmpgtb xmm0, xmm2
punpcklbw xmm0, xmm0
pshuflw xmm0, xmm0, 0xd4
pshufd xmm0, xmm0, 0xd4
pand xmm0, xmm3
paddq xmm0, xmm4
pcmpgtb xmm1, xmm2
punpcklbw xmm1, xmm1
pshuflw xmm1, xmm1, 0xd4
pshufd xmm1, xmm1, 0xd4
pand xmm1, xmm3
paddq xmm1, xmm5
add r11, 8
add r10, 0xfffffffffffffffe
jne 0x140021140
test r9b, 1
je 0x14002123a
movzx eax, word [rcx + r11]
movd xmm2, eax
movzx eax, word [rcx + r11 + 2]
movd xmm3, eax
movdqa xmm4, xmmword [0x1400546a0]
pcmpgtb xmm2, xmm4
punpcklbw xmm2, xmm2
pshuflw xmm2, xmm2, 0xd4
pshufd xmm2, xmm2, 0xd4
movdqa xmm5, xmmword [0x140054520]
pand xmm2, xmm5
paddq xmm0, xmm2
pcmpgtb xmm3, xmm4
punpcklbw xmm3, xmm3
pshuflw xmm2, xmm3, 0xd4
pshufd xmm2, xmm2, 0xd4
pand xmm2, xmm5
paddq xmm1, xmm2
paddq xmm0, xmm1
pshufd xmm1, xmm0, 0xee
paddq xmm1, xmm0
movq rax, xmm1
cmp r8, rdx
je 0x140021278
add r8, rcx
add rcx, rdx
nop word [rax + rax]
xor edx, edx
cmp byte [r8], 0xc0
lea r9, [r8 + 1]
setge dl
add rax, rdx
mov r8, r9
cmp r9, rcx
jne 0x140021260
ret
pxor xmm0, xmm0
xor r11d, r11d
pxor xmm1, xmm1
test r9b, 1
jne 0x1400211e3
jmp 0x14002123a
Function at 0x140021570
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov rdi, qword [rcx]
test rdi, rdi
je 0x1400215c2
mov r11, qword [rsi + 8]
mov r9, qword [rsi + 0x10]
cmp r9, r11
jae 0x1400215c2
movzx eax, byte [rdi + r9]
cmp eax, 0x49
je 0x1400215dd
cmp eax, 0x42
jne 0x1400215c2
lea rcx, [r9 + 1]
mov qword [rsi + 0x10], rcx
cmp rcx, r11
jae 0x14002161a
cmp byte [rdi + rcx], 0x5f
jne 0x14002161a
lea rax, [r9 + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x140021712
mov rcx, rsi
xor edx, edx
call fcn.14001c640
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc r9
mov qword [rsi + 0x10], r9
mov rcx, rsi
xor edx, edx
call fcn.14001c640
test al, al
jne 0x140021615
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14002168c
lea rdx, [0x141002223]
mov r8d, 1
call fcn.140017370
test al, al
je 0x14002168c
mov dil, 2
jmp 0x1400215d1
xor eax, eax
mov r10d, 0x3e
nop word cs:[rax + rax]
mov r8b, 1
cmp rcx, r11
jae 0x14002176c
movzx edx, byte [rdi + rcx]
cmp dl, 0x5f
je 0x140021706
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14002166f
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14002165e
add dl, 0xa9
jmp 0x14002166d
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x14002176c
add dl, 0xe3
mov ebx, edx
inc rcx
mov qword [rsi + 0x10], rcx
mul r10
jo 0x14002176c
movzx edx, bl
add rax, rdx
jae 0x140021630
jmp 0x14002176c
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x1400215d1
xor ebx, ebx
lea r14, [0x1410025fe]
nop word cs:[rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x1400216c4
cmp byte [rax + rcx], 0x45
je 0x1400217cd
sub rbx, 1
jb 0x1400216e9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400216e9
mov r8d, 2
mov rdx, r14
call fcn.140017370
test al, al
jne 0x140021615
mov rcx, rsi
call fcn.1400217e0
test al, al
jne 0x140021615
mov rax, qword [rsi]
test rax, rax
jne 0x1400216b0
jmp 0x1400215d1
inc rcx
mov qword [rsi + 0x10], rcx
inc rax
je 0x14002176c
cmp rax, r9
jae 0x140021769
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x1400217bd
cmp qword [rsi + 0x20], 0
je 0x1400217b6
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.140021570
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x1400215d3
mov r8b, 1
xor ebx, ebx
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400217ac
lea rax, [0x1410025c9]
lea rdx, [0x1410025b0]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.140017370
mov dil, 2
test al, al
jne 0x1400215d1
mov qword [rsi], 0
mov byte [rsi + 8], bl
xor edi, edi
jmp 0x1400215d1
mov bl, 1
xor r8d, r8d
mov rcx, qword [rsi + 0x20]
test rcx, rcx
jne 0x140021777
jmp 0x1400217ac
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x1400215d1
Function at 0x140029420
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
movzx ebx, byte [rdx + 0x38]
xor r15d, r15d
cmp bl, 1
setne dl
mov eax, 0
sbb eax, eax
mov r14, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x140029453
test ecx, ecx
jne 0x1400294a2
movzx r15d, byte [rdi + 0x3a]
cmp al, 0xff
je 0x140029460
test ecx, ecx
jne 0x1400294a2
mov rcx, rdi
call fcn.140029300
movzx r10d, al
test bl, bl
jne 0x1400294a9
lea rax, [rdi + 0x10]
xor esi, esi
cmp byte [rdi + 0x10], 6
cmove rax, rsi
je case.0x140029496.2
movzx ecx, byte [rax]
mov esi, 6
lea rdx, [0x14002961c]
movsxd rcx, dword [rdx + rcx*4]
add rcx, rdx
jmp rcx
mov rsi, qword [rax + 0x10]
add rsi, 4
jmp case.0x140029496.2
xor r10d, r10d
test bl, bl
je 0x140029470
xor esi, esi
movzx eax, r15b
lea rcx, [r10 + rax]
add rcx, rsi
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x1400295fe
mov r11, qword [rdi]
lea r9, [r11 + rcx]
movzx r8d, byte [rdi + 0x10]
cmp rdx, rcx
jne 0x1400294db
xor edi, edi
jmp 0x140029558
add rsi, r10
add rsi, rax
sub rsi, rdx
inc rsi
lea rax, [rdx + r11]
dec rax
xor edi, edi
cmp r8b, 3
jae 0x140029520
nop word cs:[rax + rax]
cmp byte [rax], 0x5c
je 0x14002953b
inc rsi
dec rax
cmp rsi, 1
jne 0x140029500
jmp 0x140029558
movzx ebx, byte [rax]
cmp ebx, 0x2f
je 0x14002953b
cmp ebx, 0x5c
je 0x14002953b
inc rsi
dec rax
cmp rsi, 1
jne 0x140029520
jmp 0x140029558
neg rsi
add rcx, rsi
inc rcx
cmp rdx, rcx
jb 0x14002960c
add r11, rcx
mov edi, 1
mov r9, r11
sub rdx, rcx
je 0x140029582
mov al, 9
cmp rdx, 2
je 0x140029586
cmp rdx, 1
jne 0x140029596
cmp byte [r9], 0x2e
jne 0x140029596
xor eax, eax
cmp r8b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140029596
mov al, 0xa
jmp 0x140029596
cmp byte [r9], 0x2e
jne 0x140029596
cmp byte [r9 + 1], 0x2e
sete al
xor al, 9
add rdi, rdx
mov qword [r14], rdi
mov qword [r14 + 8], r9
mov qword [r14 + 0x10], rdx
mov byte [r14 + 0x18], al
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 8
jmp case.0x140029496.2
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 2
jmp case.0x140029496.2
mov esi, 2
jmp case.0x140029496.2
lea r8, [0x141004168]
call fcn.140051b70
ud2
lea r8, [0x141004180]
call fcn.140051b70
ud2
Function at 0x140038fd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov r14, rcx
lea rcx, [rbp - 0x30]
call fcn.14002d660
mov rdi, qword [rbp - 0x28]
test rdi, rdi
je 0x140039023
mov rbx, qword [rbp - 0x30]
mov rsi, qword [rbp - 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003909c
mov qword [r14], rbx
mov qword [r14 + 8], rdi
mov qword [r14 + 0x10], rsi
jmp 0x140039091
mov rdx, qword [rbp - 0x30]
mov eax, edx
and eax, 3
cmp eax, 1
jne 0x140039089
lea rax, [rdx - 1]
mov qword [rbp - 0x18], rax
mov rcx, qword [rdx - 1]
mov qword [rbp - 0x10], rdx
mov rax, qword [rdx + 7]
call qword [rax]
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 7]
cmp qword [rax + 8], 0
mov rsi, qword [rbp - 0x18]
je 0x140039077
mov r8, qword [rsi]
cmp qword [rax + 0x10], 0x11
jb 0x140039068
mov r8, qword [r8 - 8]
mov rcx, qword [0x141016bd0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x141016bd0]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [r14 + 8], 0
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [r14 + 8], 0
test rbx, rbx
je 0x140039091
mov rcx, qword [0x141016bd0]
xor edx, edx
mov r8, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp qword [sym.imp.KERNEL32.dll_HeapFree]
Function at 0x14003b680
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x60
lea rbp, [rsp + 0x60]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov rbx, rdx
mov r14, rcx
mov qword [rbp - 0x28], rdx
mov qword [rbp - 0x20], r8
mov rcx, qword [0x141016bd0]
test rcx, rcx
jne 0x14003b6cd
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x14003b78c
mov rcx, rax
mov qword [0x141016bd0], rax
mov r8d, 0x10
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x14003b78c
mov rsi, rax
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x14003bbb0]
xor edi, edi
xor ecx, ecx
mov rdx, r14
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14003b77e
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov qword [rbp - 0x18], rsi
call qword [rax]
mov rsi, qword [rbp - 0x18]
mov rax, qword [rsi + 8]
cmp qword [rax + 8], 0
je 0x14003b757
mov r8, qword [rsi]
cmp qword [rax + 0x10], 0x11
jb 0x14003b748
mov r8, qword [r8 - 8]
mov rcx, qword [0x141016bd0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x141016bd0]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov byte [rbp - 9], 1
mov ecx, 0x10
mov edx, 8
call fcn.1400519e0
ud2