joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400031c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x14002c450]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x50], r14
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], r14
xor edx, edx
mov r8d, 0x408
lea rcx, [rsp + 0x70]
call fcn.14000f7b0
mov qword [rsp + 0x70], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14000326c
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14000326c
call fcn.140001e50
mov ebx, eax
jmp 0x140003394
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14000328d
call fcn.140001e50
jmp 0x140003383
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1400032b0
call fcn.140001e50
jmp 0x140003383
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x1400032d2
mov ebx, 0x8007000e
jmp 0x140003385
mov ecx, eax
test eax, eax
je 0x14000330a
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140003300
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x14000330a
lea rcx, [rsp + 0x70]
call fcn.140001d30
jmp 0x140003314
mov ecx, 0x80070216
call fcn.140001fc0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x140003327
cmp qword [rsp + 0x70], 0
jne 0x140003336
mov ebx, 0x8007000e
jmp 0x140003385
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x140003360
call fcn.140001e50
jmp 0x140003383
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x58]
call fcn.140002fe0
mov ebx, eax
test rdi, rdi
je 0x140003394
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x1400033ab
lea rcx, [rsp + 0x70]
call fcn.1400024a0
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.14000f780
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140003bf0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x48
mov rax, qword [0x14002c450]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rcx, qword [rcx]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], r8d
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14000f780
add rsp, 0x48
ret

Function at 0x140003c40
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov r9, r8
mov r10, rdx
test r8, r8
jne 0x140003c58
lea eax, [r8 + 0xd]
add rsp, 0x38
ret
xor r8d, r8d
mov rdx, r9
nop
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], 0
jne 0x140003c64
inc eax
lea rdx, [rdx + rax*2]
lea r8d, [r8 + rax*2]
cmp eax, 1
jne 0x140003c60
mov rcx, qword [rcx]
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x20], r9
lea r9d, [rax + 6]
xor r8d, r8d
mov rdx, r10
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x14000bbe0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14002c450]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x50], rax
test rax, rax
jne 0x14000bc24
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14000f780
add rsp, 0x40
pop rbx
ret
lea rax, [rsp + 0x30]
lea r8, [0x14000b460]
mov r9, rbx
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x58], rdi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x14000bc65
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x50], rdi
mov rax, rdi
mov rdi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14000f780
add rsp, 0x40
pop rbx
ret
Function at 0x14000bdd0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
cmp byte [0x14002e450], 0
mov esi, edx
mov rbx, rcx
je 0x14000bdf6
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
xor ecx, ecx
mov qword [rsp + 0x30], rdi
call qword [sym.imp.ole32.dll_CoInitialize]
mov edi, eax
mov dword [rsp + 0x40], eax
test eax, eax
jns 0x14000be3c
cmp eax, 0x80010106
jne 0x14000be9c
lea rcx, str.Mscoree.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x14000be40
mov eax, edi
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
mov byte [rbx + 0x62], 1
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r8, [rsp + 0x40]
mov rcx, rbx
mov rdx, rax
call fcn.14000b4b0
cmp al, 1
jne 0x14000be8c
mov edx, esi
mov rcx, rbx
call fcn.14000b900
mov edi, eax
test eax, eax
jne 0x14000be7e
mov rcx, rbx
call fcn.14000bb70
mov rcx, rbx
call fcn.14000b880
mov edi, eax
jmp 0x14000be90
js 0x14000be90
mov rcx, rbx
call fcn.14000b880
mov edi, eax
jmp 0x14000be90
mov edi, dword [rsp + 0x40]
cmp byte [rbx + 0x62], 0
je 0x14000be9c
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rbx, qword [rsp + 0x38]
mov eax, edi
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14002e4c0]
mov edx, r9d
jmp 0x14000bdd0
Function at 0x140001000
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push rdi
sub rsp, 0x20
mov edi, edx
mov r11, rcx
test edx, edx
je 0x140001175
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], rsi
mov r8, rcx
mov eax, r9d
nop dword [rax + rax]
mov dword [r8], eax
inc eax
add r8, 4
cmp eax, 0x100
jl 0x140001030
mov ebx, 2
lea r10, [rcx + 8]
lea rbp, str.Anonymous
lea esi, [rbx + 0x3e]
nop word [rax + rax]
xor edx, edx
lea eax, [rbx - 2]
div edi
movzx r8d, byte [rdx + rbp]
add r8d, dword [r10 - 8]
add r8d, r9d
and r8d, 0x800000ff
jge 0x140001089
dec r8d
or r8d, 0xffffff00
inc r8d
movzx ecx, byte [r10 - 8]
movsxd rdx, r8d
mov eax, dword [r11 + rdx*4]
mov dword [r10 - 8], eax
mov dword [r11 + rdx*4], ecx
xor edx, edx
lea eax, [rbx - 1]
div edi
movzx r9d, byte [rdx + rbp]
add r9d, dword [r10 - 4]
add r9d, r8d
and r9d, 0x800000ff
jge 0x1400010c6
dec r9d
or r9d, 0xffffff00
inc r9d
movzx ecx, byte [r10 - 4]
movsxd rdx, r9d
mov eax, dword [r11 + rdx*4]
mov dword [r10 - 4], eax
mov dword [r11 + rdx*4], ecx
xor edx, edx
mov eax, ebx
div edi
movzx r8d, byte [rdx + rbp]
add r8d, r9d
add r8d, dword [r10]
and r8d, 0x800000ff
jge 0x140001101
dec r8d
or r8d, 0xffffff00
inc r8d
movzx ecx, byte [r10]
movsxd rdx, r8d
mov eax, dword [r11 + rdx*4]
mov dword [r10], eax
mov dword [r11 + rdx*4], ecx
xor edx, edx
lea eax, [rbx + 1]
div edi
movzx r9d, byte [rdx + rbp]
add r9d, dword [r10 + 4]
add r9d, r8d
and r9d, 0x800000ff
jge 0x14000113c
dec r9d
or r9d, 0xffffff00
inc r9d
movzx ecx, byte [r10 + 4]
movsxd rdx, r9d
add r10, 0x10
mov eax, dword [r11 + rdx*4]
add ebx, 4
dec rsi
mov dword [r10 - 0xc], eax
mov dword [r11 + rdx*4], ecx
jne 0x140001060
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea rcx, str.rc4_key_or_len_is_0__return_
add rsp, 0x20
pop rdi
jmp 0x140005038
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
push rdi
sub rsp, 0x28
xor eax, eax
test rcx, rcx
setne al
test eax, eax
jne 0x140005072
call fcn.140006df8
mov dword [rax], 0x16
call fcn.140006d90
or eax, 0xffffffff
jmp 0x1400050dc
lea rdi, [rsp + 0x48]
call fcn.140005c80
lea rdx, [rax + 0x30]
mov ecx, 1
call fcn.140005df4
nop
call fcn.140005c80
lea rcx, [rax + 0x30]
call fcn.140005e94
mov ebx, eax
call fcn.140005c80
mov r9, rdi
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
lea rcx, [rax + 0x30]
call fcn.140006134
mov edi, eax
call fcn.140005c80
lea rdx, [rax + 0x30]
mov ecx, ebx
call fcn.140005f68
nop
call fcn.140005c80
lea rdx, [rax + 0x30]
mov ecx, 1
call fcn.140005e74
mov eax, edi
add rsp, 0x28
pop rdi
pop rbx
ret
Function at 0x140001620
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], rbx
push r12
push r13
push r14
mov rax, qword gs:[0x30]
xor r8d, r8d
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x18]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
mov rcx, qword [rax]
mov r11, qword [rcx + 0x30]
movsxd rax, dword [r11 + 0x3c]
mov ecx, dword [rax + r11 + 0x88]
add rcx, r11
mov r13d, dword [rcx + 0x1c]
mov ebx, dword [rcx + 0x20]
mov r10d, dword [rcx + 0x24]
mov r12d, dword [rcx + 0x14]
mov r14d, dword [rcx + 0x18]
add r13, r11
add rbx, r11
add r10, r11
test r12, r12
je 0x1400016e7
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rdi
nop dword [rax]
mov eax, dword [r13 + r8*4]
test eax, eax
je 0x1400016ca
xor edx, edx
mov ebp, eax
test r14d, r14d
je 0x1400016ca
movzx eax, word [r10 + rdx*2]
cmp rax, r8
jne 0x1400016c2
mov esi, dword [rbx + rdx*4]
lea rdi, [0x14001fe60]
mov ecx, 0xf
add rsi, r11
repe cmpsb byte [rsi], byte [rdi]
je 0x1400016d4
inc rdx
cmp rdx, r14
jb 0x1400016a2
inc r8
cmp r8, r12
jb 0x140001690
jmp 0x1400016d8
lea rax, [r11 + rbp]
mov rsi, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
pop r14
pop r13
pop r12
ret
Function at 0x140008344
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.1400081b4

Function at 0x14000d2fb
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140024610]
jne 0x140007c1a
rol rcx, 0x10
test cx, 0xffff
jne 0x140007c16
repz ret
ror rcx, 0x10
jmp 0x14000d254
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140026a00]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140026af8]
mov qword [rsp + 0x58], rax
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 0x14000d2d9
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, [0x140026a00]
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 0x14000d2fb
mov rax, qword [rsp + 0x88]
mov qword [0x140026af8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140026a98], rax
mov rax, qword [0x140026af8]
mov qword [0x140026970], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140026a80], rax
mov dword [0x140026960], 0xc0000409
mov dword [0x140026964], 1
mov rax, qword [0x140024610]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140024618]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400269f8], eax
mov ecx, 1
call fcn.14000a470
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14001dc80]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400269f8], 0
jne 0x14000d382
mov ecx, 1
call fcn.14000a470
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 0x14000d898
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x140024610]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.140007818
xor ebx, ebx
cmp qword [0x140026f80], rbx
mov rdi, rax
jne 0x14000d9ab
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14000da82
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000da82
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140026f80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140026f88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x140026f90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140026fa0], rax
test rax, rax
je 0x14000d9a2
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140026f98], rax
jmp 0x14000d9b2
mov rax, qword [0x140026f98]
jmp 0x14000d9b9
mov rax, qword [0x140026f98]
mov r11, qword [0x140026fa0]
cmp rax, rdi
je 0x14000da20
cmp r11, rdi
je 0x14000da20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140026fa0]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x14000da20
test rax, rax
je 0x14000da20
call rsi
test rax, rax
je 0x14000da1a
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14000da1a
test byte [rsp + 0x40], 1
jne 0x14000da20
bts ebp, 0x15
jmp 0x14000da60
mov rcx, qword [0x140026f88]
cmp rcx, rdi
je 0x14000da60
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14000da60
call rax
mov rbx, rax
test rax, rax
je 0x14000da60
mov rcx, qword [0x140026f90]
cmp rcx, rdi
je 0x14000da60
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14000da60
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140026f80]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14000da82
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x14000da84
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140007c00
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001a3d0
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 0x14001a460
cmp r10, r11
jb 0x14001a4d6
cmp r10, rdx
ja 0x14001a4ea
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x14001a462
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x14001a440
jmp 0x14001a4c4
ja 0x14001a46a
mov r11, r10
cmp rax, r8
jne 0x14001a404
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 0x14001a4a0
mov rdi, r8
sub ecx, edx
jns 0x14001a4bb
jmp 0x14001a4c6
cmp r8, rsi
je 0x14001a4fb
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x14001a4c6
xor al, 1
cmp rdi, rsi
jne 0x14001a480
jmp 0x14001a4c6
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, [0x141398258]
mov rcx, r11
mov rdx, r10
call fcn.140053840
ud2
lea r8, [0x141398258]
mov rcx, r10
call fcn.1400535c0
ud2
lea rcx, [0x14139c8f8]
lea r8, [0x141398240]
mov edx, 0x2b
call fcn.140053640
ud2
Function at 0x1400216c0
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 0x14002171b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14002171b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x140021736
cmp eax, 0x42
jne 0x14002171b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x1400217e6
cmp byte [r9 + r11], 0x5f
jne 0x1400217e6
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14002184e
mov rcx, rsi
xor edx, edx
call fcn.14001cbb0
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.14001cbb0
test al, al
jne 0x1400218e1
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140021772
lea rdx, [0x14139c1f3]
mov r8d, 1
call fcn.1400184d0
test al, al
jne 0x1400218e1
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14002172a
xor r14d, r14d
lea rbx, [0x14139c5a8]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x1400217a4
cmp byte [rax + rcx], 0x45
je 0x14002190a
sub r14, 1
jb 0x1400217c9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400217c9
mov r8d, 2
mov rdx, rbx
call fcn.1400184d0
test al, al
jne 0x1400218e1
mov rcx, rsi
call fcn.14001e4c0
test al, al
jne 0x1400218e1
mov rax, qword [rsi]
test rax, rax
jne 0x140021790
jmp 0x14002172a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x1400218a8
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x140021842
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14002182c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14002181b
add dl, 0xa9
jmp 0x14002182a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x1400218a8
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x1400218a8
movzx edx, bl
add rax, rdx
jae 0x1400217f0
jmp 0x1400218a8
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x1400218a8
cmp rax, rcx
jae 0x1400218a5
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x1400218e9
cmp qword [rsi + 0x20], 0
je 0x140021903
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.1400216c0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14002172c
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400218f8
lea rax, [0x14139c558]
lea rdx, [0x14139c568]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.1400184d0
test al, al
je 0x1400218f8
mov dil, 2
jmp 0x14002172a
mov dil, 1
xor r8d, r8d
mov rcx, qword [rsi + 0x20]
test rcx, rcx
jne 0x1400218b3
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14002172a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14002172a
Function at 0x1400261a0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x14139efe0]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140026213
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14002624a
test eax, eax
js 0x140026224
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14002623d
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x14139f040]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140024090
mov rcx, rax
call fcn.140024200
mov ecx, 7
int 0x29
ud2
Function at 0x140029970
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x1400299a0
test ecx, ecx
jne 0x1400299f0
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x1400299ac
test ecx, ecx
jne 0x1400299f0
mov rcx, rdi
call fcn.140029850
movzx eax, al
test bpl, bpl
jne 0x1400299f7
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x1400299e3.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x140029b68]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x1400299e3.2
xor eax, eax
test bpl, bpl
je 0x1400299bc
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x140029b49
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x140029a2a
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x140029aa9
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x140029a70
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x140029a8b
inc rax
dec rdi
cmp rax, 1
jne 0x140029a50
jmp 0x140029aa9
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x140029a8b
cmp ebx, 0x5c
je 0x140029a8b
inc rax
dec rdi
cmp rax, 1
jne 0x140029a70
jmp 0x140029aa9
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x140029b57
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x140029ad3
mov al, 9
cmp rdx, 2
je 0x140029ad7
cmp rdx, 1
jne 0x140029ae7
cmp byte [r8], 0x2e
jne 0x140029ae7
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140029ae7
mov al, 0xa
jmp 0x140029ae7
cmp byte [r8], 0x2e
jne 0x140029ae7
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov byte [rsi + 8], al
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rdx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x1400299e3.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x1400299e3.2
mov ecx, 2
jmp case.0x1400299e3.2
lea r8, [0x14139e160]
call fcn.140053540
ud2
lea r8, [0x14139e178]
call fcn.140053540
ud2