joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400024a8
Capabilities:
Parse pe header

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

Function at 0x14062c268
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14062c3ef
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14062c299
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14062c27f
add dl, dl
jne 0x14062c2a6
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14062c306
xor eax, eax
add dl, dl
jne 0x14062c2b5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14062c3bd
add dl, dl
jne 0x14062c2c6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14062c2d3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14062c2e0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14062c2ed
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14062c2fa
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14062c28e
mov eax, 1
add dl, dl
jne 0x14062c316
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14062c323
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14062c30b
sub eax, ebx
mov ebx, 1
jne 0x14062c35c
mov ecx, 1
add dl, dl
jne 0x14062c33e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14062c34b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14062c333
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14062c28e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14062c378
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14062c385
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14062c36d
cmp eax, 0x7d00
jae 0x14062c3ab
cmp eax, 0x500
jb 0x14062c3a6
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14062c28e
cmp eax, 0x7f
ja 0x14062c3ae
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14062c28e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14062c3e2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14062c28e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400015dd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
xor esi, esi
movsxd rax, dword [rcx + 0x3c]
mov edi, dword [rcx + rax + 0x88]
add rdi, rcx
mov rbx, rcx
mov r12d, edx
mov r13d, dword [rdi + 0x20]
mov ebp, dword [rdi + 0x1c]
add r13, rcx
cmp ebp, esi
jbe 0x140001644
mov ecx, dword [r13 + rsi*4]
add rcx, rbx
call fcn.1400015aa
mov r8d, eax
lea rax, [rsi + 1]
cmp r8d, r12d
jne 0x14000163f
mov eax, dword [rdi + 0x24]
add rsi, rsi
add rsi, rbx
movzx eax, word [rsi + rax]
lea rax, [rbx + rax*4]
mov eax, dword [rax + rbp]
add rax, rbx
jmp 0x140001646
mov rsi, rax
jmp 0x140001609
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x140001685
Capabilities:
Execute shellcode via indirect call

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
cmp r8d, 2
mov r12, rcx
lea rbp, [rsp + 0x20]
mov r15d, r8d
jne 0x1400016ee
mov dword [0x140081060], 0x10
movups xmm0, xmmword [rcx]
lea rsi, [0x14007e01e]
mov rdi, rbp
lea rax, [0x140081074]
movups xmmword [0x140081064], xmm0
movups xmm1, xmmword [rcx]
mov ecx, 0xd
rep movsb byte [rdi], byte [rsi]
mov qword [rsp + 0x22], rdx
mov ecx, 0xd
mov rdi, rax
movups xmmword [0x140081074], xmm1
mov rsi, rbp
rep movsb byte [rdi], byte [rsi]
mov r13d, dword [0x140081060]
mov rbx, qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r9, rbp
mov rcx, r12
mov dword [rsp + 0x20], 0
mov r8d, 0x40
mov r14, r13
mov rdx, r13
call rbx
test eax, eax
je 0x140001796
lea rsi, [0x140081074]
test r15d, r15d
mov rdi, r12
mov rcx, r13
lea rax, [rsi - 0x10]
cmove rsi, rax
cmp qword [0x140081088], 0
rep movsb byte [rdi], byte [rsi]
jne 0x140001764
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtFlushInstructionCache
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140081088], rax
mov rsi, qword [0x140081088]
test rsi, rsi
je 0x140001781
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8d, r14d
mov rdx, r12
mov rcx, rax
call rsi
mov r8d, dword [rsp + 0x20]
mov r9, rbp
mov rdx, r13
mov rcx, r12
call rbx
mov eax, 1
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140001853
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov rcx, qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 2
lea rdx, [0x1400017a7]
jmp fcn.140001685
Function at 0x140001940
Capabilities:
Check for time delay via gettickcount

Disassembly:
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9d, 0x2a
mov r8d, 0x17
mov edx, 0x402
mov ecx, eax
call qword [sym.imp.USER32.dll_PostThreadMessageA]
xor r9d, r9d
xor r8d, r8d
or rdx, 0xffffffffffffffff
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x140001a17
cmp dword [rsp + 0x38], 0x402
jne 0x140001a17
cmp qword [rsp + 0x40], 0x17
jne 0x140001a17
cmp qword [rsp + 0x48], 0x2a
jne 0x140001a17
mov rsi, qword [sym.imp.KERNEL32.dll_GetTickCount]
call rsi
mov ecx, 0x28a
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
call rsi
sub eax, 0x258
sub eax, ebx
cmp eax, 0x12b
ja 0x140001a17
mov rbx, qword [0x14007e4c0]
movsxd r13, dword [rbx + 4]
lea rsi, [rbx + 0x18]
mov rcx, r13
call sub.msvcrt.dll_malloc
mov rcx, r13
lea r8, [rbx + 8]
mov edx, r13d
mov rdi, rax
mov r12, rax
rep movsb byte [rdi], byte [rsi]
mov rcx, rax
call fcn.14000186c
mov rcx, r12
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
jmp sub.msvcrt.dll_free
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
ret

Function at 0x140001d00
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140002bc0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140002bc0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x140001d70
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x140081114]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140001f20
mov rax, qword [0x140081118]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140001dbc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001e47
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140001da0
mov rcx, r12
call fcn.140002820
mov rbp, rax
test rax, rax
je 0x140001f7d
mov rax, qword [0x140081118]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.140002950
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x140081118]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001f62
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001e40
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001ed0
add dword [0x140081114], 1
cmp ebx, 8
jae 0x140001e78
test bl, 4
jne 0x140001f30
test ebx, ebx
je 0x140001e69
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140001f50
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x140001e69
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x140001eaa
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x140081118]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001e40
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001d00
xor edi, edi
jmp 0x140001dc7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140001e69
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140001e69
mov rax, qword [0x140081118]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.140001d00
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140001d00
nop
nop dword [rax]
Function at 0x140002490
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140081180]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140081160]
test rbx, rbx
je 0x1400024e4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x1400024db
test r12, r12
je 0x1400024db
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400024c0
lea rcx, [0x140081180]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002820
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x14007e3a0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x140002899
mov rcx, r10
call fcn.1400026f0
test eax, eax
je 0x140002899
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x140002896
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x14000288d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x140002899
add r8, 0x28
cmp r8, r9
jne 0x140002878
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x140047420
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x140138048], 0
jne 0x14004745d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140047450
mov dword [rdi], eax
mov dword [0x140138050], eax
mov qword [0x140138048], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3
Function at 0x140049cb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov rdi, r8
mov rsi, rdx
mov bl, byte [rbp + 0x68]
test byte [r9 + 8], 1
jne 0x140049d0a
mov dl, byte [rbp + 0x60]
movzx ebx, bl
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
mov dword [rsp + 0x28], ebx
mov byte [rsp + 0x20], dl
mov rdx, rsi
mov r8, rdi
call qword [0x140147008]
mov rax, rsi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
lea r14, [rbp - 0x20]
mov rcx, r9
mov rdx, r14
call fcn.140070830
lea rdx, [0x140138a28]
mov rcx, r14
call fcn.140071040
mov r14, rax
mov rcx, qword [rbp - 0x20]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
test eax, eax
jne 0x140049d4a
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140147008]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r15, [rbp - 0x20]
mov qword [r15 + 0x10], rax
movaps xmm0, xmmword [0x1401161a0]
movaps xmmword [r15], xmm0
mov rax, qword [r14]
xor bl, 1
movzx ecx, bl
mov rax, qword [rax + rcx*8 + 0x28]
mov rcx, r14
mov rdx, r15
call qword [0x140147008]
movzx r9d, byte [r15 + 0x17]
test r9b, r9b
mov rcx, qword [r15]
mov r8, qword [r15 + 8]
mov rax, r9
cmovs rax, r8
test rax, rax
je 0x140049e11
test r9b, r9b
mov rbx, r15
cmovs rbx, rcx
test rdi, rdi
je 0x140049df6
mov al, byte [rbx]
movzx eax, al
mov rcx, qword [rdi + 0x30]
cmp rcx, qword [rdi + 0x38]
je 0x140049dfa
lea rdx, [rcx + 1]
mov qword [rdi + 0x30], rdx
mov byte [rcx], al
cmp eax, 0xffffffff
jne 0x140049dcb
xor edi, edi
mov r9b, byte [rbp - 9]
mov rcx, qword [rbp - 0x20]
mov r8, qword [rbp - 0x18]
inc rbx
test r9b, r9b
mov rax, r15
cmovs rax, rcx
movzx edx, r9b
cmovs rdx, r8
add rdx, rax
cmp rbx, rdx
jne 0x140049da6
jmp 0x140049e11
xor edi, edi
jmp 0x140049dd7
mov rcx, qword [rdi]
mov r8, qword [rcx + 0x60]
mov rcx, rdi
mov edx, eax
mov rax, r8
call qword [0x140147008]
jmp 0x140049dc4
shr r9b, 7
mov qword [rsi], rdi
test r9b, r9b
je 0x140049cfa
call fcn.140089540
jmp 0x140049cfa

Function at 0x140051d40
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov ecx, 0x10
call fcn.140089504
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x140051db0]
xor ecx, ecx
xor edx, edx
mov r9, rax
call fcn.1400988a4
mov qword [rbx], rax
test rax, rax
je 0x140051d97
xor eax, eax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
add rsp, 0x30
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x140052240
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x14012c028]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x140139768]
test rdi, rdi
jne 0x1400522e3
mov ecx, 0x48
call fcn.140089504
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov ecx, 0x18
call fcn.140089504
mov qword [rsi + 0x10], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x20], rcx
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
mov qword [rsi + 0x18], rcx
lea rax, [rsi + 0x30]
movups xmmword [rsi + 0x30], xmm6
mov qword [rsi + 0x28], rax
mov qword [rsi + 0x40], 1
mov qword [0x140139768], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x140052305
mov rcx, rax
call fcn.1400ad380
lea rdx, [rsp + 0x28]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.140052310
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14008a8f0
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
int3
Function at 0x140052310
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
movaps xmmword [rsp + 0x70], xmm6
mov rsi, rdx
mov rbx, rcx
mov rax, qword [0x14012c028]
xor rax, rsp
mov qword [rsp + 0x68], rax
movups xmm0, xmmword [rdx]
lea rdx, [rsp + 0x50]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 3
call fcn.140058fb0
movups xmm0, xmmword [rdi]
movups xmmword [rsi], xmm0
cmp qword [rsi + 8], 0
je 0x14005250e
movups xmm0, xmmword [rsi]
movups xmmword [rbx], xmm0
mov dword [rsp + 0x4c], 0
lea rcx, str.api_ms_win_downlevel_shell32_l1_1_0.dll
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
mov qword [rsp + 0x20], rax
je 0x140052566
lea rdx, [0x1401191de]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140052579
mov rcx, qword [rsi]
lea rdx, [rsp + 0x4c]
call qword [0x140147008]
mov r12, rax
movsxd rbp, dword [rsp + 0x4c]
xorps xmm6, xmm6
movaps xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x40], 0
test rbp, rbp
mov qword [rsp + 0x28], rbx
je 0x140052581
shl rbp, 3
movabs rax, 0x5555555555555551
cmp rbp, rax
jae 0x140052588
lea rsi, [rbp*2]
add rsi, rbp
mov rcx, rsi
call fcn.140089504
mov rbx, rax
mov qword [rsp + 0x30], rax
add rax, rsi
mov qword [rsp + 0x40], rax
xor r15d, r15d
mov rsi, qword [r12 + r15]
mov rcx, rsi
call fcn.1400ad380
mov rdi, rax
movabs rax, 0x7fffffffffffffef
cmp rdi, rax
ja 0x14005255e
cmp rdi, 0xb
jae 0x140052470
mov byte [rbx + 0x17], dil
test rdi, rdi
je 0x14005246b
cmp rdi, 3
jne 0x1400524cc
movzx eax, word [rsi + 4]
mov word [rbx + 4], ax
mov eax, dword [rsi]
mov dword [rbx], eax
mov r13, rbx
jmp 0x1400524b1
lea r14, [rdi + 8]
and r14, 0xfffffffffffffff8
lea rcx, [r14 + r14]
call fcn.140089504
mov r13, rax
mov qword [rbx], rax
movabs rax, 0x7fffffffffffffef
add rax, 0x11
or rax, r14
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rdi
mov r8, rdi
add r8, rdi
mov rcx, r13
mov rdx, rsi
call fcn.14008c360
mov word [r13 + rdi*2], 0
add rbx, 0x18
add r15, 8
cmp rbp, r15
jne 0x140052428
jmp 0x1400524d1
mov r13, rbx
jmp 0x1400524a0
mov qword [rsp + 0x38], rbx
lea rdx, [rsp + 0x30]
mov rsi, qword [rsp + 0x28]
mov rcx, rsi
call fcn.140052090
movups xmmword [rsi], xmm6
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140052504
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x30]
test rsi, rsi
jne 0x140052534
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14008a8f0
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp rbx, rsi
je 0x140052554
lea rdi, [rbx - 0x18]
cmp byte [rbx - 1], 0
jns 0x14005254c
mov rcx, qword [rbx - 0x18]
call fcn.140089540
mov rbx, rdi
cmp rdi, rsi
jne 0x140052539
mov rcx, rsi
call fcn.140089540
jmp 0x14005250e
mov rcx, rbx
call fcn.1400db0a0
mov rcx, qword [rsi]
lea rdx, [rsp + 0x4c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x1400523c4
xor r12d, r12d
jmp 0x1400523c7
xor ebx, ebx
jmp 0x1400524d6
lea rcx, [rsp + 0x30]
call fcn.1400c17a0
int3
Function at 0x140053720
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
movaps xmmword [rsp + 0x80], xmm6
mov rax, qword [0x14012c028]
xor rax, rsp
mov qword [rsp + 0x78], rax
movzx eax, byte [0x140139778]
and eax, 1
neg rax
cmp rax, 0xfffffffffffffffd
je 0x1400538c7
mov qword [rsp + 0x40], rdx
mov rbx, qword [rcx]
mov qword [rsp + 0x38], rcx
mov rdi, qword [rcx + 8]
xor r13d, r13d
lea r12, [0x140119150]
movabs rcx, 0xaaaaaaaaaaaaaaaa
movaps xmm6, xmmword [0x1401161a0]
lea rsi, [rsp + 0x60]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x48], rbx
mov rbx, qword [rsp + 0x48]
mov rax, r13
shl rax, 4
mov qword [rsp + 0x70], rcx
movaps xmmword [rsp + 0x60], xmm6
mov rdx, qword [rax + r12]
mov rbp, qword [rax + r12 + 8]
mov byte [rsp + 0x77], bpl
mov r8, rbp
add r8, rbp
mov r15, rsi
mov rcx, rsi
call fcn.14008c360
mov word [rsp + rbp*2 + 0x60], 0
movzx eax, byte [rsp + 0x77]
mov rcx, rax
test al, al
jns 0x1400537e9
mov rcx, qword [rsp + 0x68]
cmp rcx, rdi
ja 0x140053921
mov r14b, 1
test rcx, rcx
mov rsi, r15
je 0x14005392c
mov rdx, rsi
test al, al
jns 0x14005380d
mov rdx, qword [rsp + 0x60]
xor ebp, ebp
movzx edi, word [rbx + rbp*2]
cmp di, word [rdx + rbp*2]
jne 0x14005385e
inc rbp
cmp rcx, rbp
jne 0x14005380f
mov rbp, rcx
test al, al
js 0x140053933
test r14b, r14b
jne 0x140053868
mov qword [rsp + 0x28], rbp
inc r13
movzx eax, byte [0x140139778]
xor rax, 3
cmp r13, rax
mov rdi, qword [rsp + 0x30]
movabs rcx, 0xaaaaaaaaaaaaaaaa
jb 0x1400537a1
jmp 0x1400538c7
xor r14d, r14d
mov rbp, qword [rsp + 0x28]
jmp 0x140053824
test rbp, rbp
je 0x1400538c7
mov rsi, qword [rsp + 0x38]
cmp rbp, qword [rsi + 8]
mov rdi, qword [rsp + 0x40]
je 0x1400538c7
lea rax, [0x140119180]
lea rdx, [rsp + 0x60]
mov qword [rdx], rax
mov qword [rdx + 8], 1
movups xmm0, xmmword [rsi]
lea rcx, [rsp + 0x50]
movaps xmmword [rcx], xmm0
xor r8d, r8d
call fcn.140076380
mov rdx, qword [rsi + 8]
sub rdx, rbp
jb 0x140053945
mov rcx, qword [rdi + 8]
sub rax, rbp
cmp rdx, rax
cmovb rax, rdx
cmp rax, rcx
je 0x1400538f4
xor ebx, ebx
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14008a8f0
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov bl, 1
test rcx, rcx
je 0x1400538c9
mov rax, qword [rdi]
add rbp, rbp
add rbp, qword [rsi]
xor edx, edx
mov rdi, rbp
movzx ebp, word [rbp + rdx*2]
cmp bp, word [rax + rdx*2]
jne 0x1400538c7
inc rdx
cmp rcx, rdx
mov rbp, rdi
jne 0x140053906
jmp 0x1400538c9
xor r14d, r14d
mov rsi, r15
jmp 0x140053861
xor ebp, ebp
jmp 0x140053824
mov rcx, qword [rsp + 0x60]
call fcn.140089540
mov rsi, r15
jmp 0x14005382c
int3
Function at 0x140055030
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xf0
movaps xmmword [rsp + 0xe0], xmm6
mov r13, r8
mov r14, rdx
mov r12, rcx
mov rax, qword [0x14012c028]
xor rax, rsp
mov qword [rsp + 0xd8], rax
test r8, r8
je 0x14005507f
cmp byte [r13 + 0x17], 0
js 0x140055252
xor eax, eax
mov byte [r13], al
mov byte [r13 + 0x17], al
test r12, r12
je 0x140055266
mov rcx, r12
xor edx, edx
xor r8d, r8d
call fcn.1400a5910
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x80]
mov qword [rdi + 0x50], rax
movaps xmm0, xmmword [0x1401161a0]
movaps xmmword [rdi + 0x40], xmm0
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, str.ReadStreamToStringWithMaxSize
lea r8, str..._.._base_files_file_util.cc
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov r9d, 0xce
call fcn.1400747c0
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140077b30
xorps xmm6, xmm6
movaps xmmword [rbx + 0x20], xmm6
movaps xmmword [rbx + 0x10], xmm6
movaps xmmword [rbx], xmm6
mov dword [rbx + 0x30], 0
mov rcx, r12
call fcn.14009c160
mov ecx, eax
call fcn.14009c1bc
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x14005526a
mov eax, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x64]
shl rax, 0x20
or rax, rcx
test rax, rax
mov edi, 0xffff
cmovg rdi, rax
cmp rdi, r14
cmovae rdi, r14
lea r15, [rsp + 0x20]
movaps xmmword [r15], xmm6
mov qword [r15 + 0x10], 0
inc rdi
xor esi, esi
mov rcx, r15
mov rdx, rdi
xor r8d, r8d
call fcn.140072130
cmp byte [rsp + 0x37], 0
mov rcx, r15
jns 0x140055183
mov rcx, qword [rsp + 0x20]
add rcx, rsi
mov edx, 1
mov r8, rdi
mov r9, r12
call fcn.1400a5690
test rax, rax
je 0x1400551c3
mov rbx, rax
mov rax, r14
sub rax, rsi
cmp rax, rbx
jb 0x140055274
add rbx, rsi
mov rcx, r12
call fcn.1400a4c10
test eax, eax
je 0x14005527b
mov rsi, rbx
mov rcx, r12
call fcn.1400a4c3c
test eax, eax
sete dil
mov r14, rsi
test r13, r13
je 0x14005520d
movups xmm0, xmmword [r13]
mov rax, qword [r13 + 0x10]
mov rcx, qword [rsp + 0x30]
mov qword [r13 + 0x10], rcx
movaps xmm1, xmmword [rsp + 0x20]
movups xmmword [r13], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rax
mov rcx, r13
mov rdx, r14
xor r8d, r8d
call fcn.140072130
cmp byte [rsp + 0x37], 0
js 0x1400552a0
lea rcx, [rsp + 0x80]
call fcn.140077b90
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.14008a8f0
mov eax, edi
movaps xmm6, xmmword [rsp + 0xe0]
add rsp, 0xf0
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [r13]
mov byte [rax], 0
mov qword [r13 + 8], 0
jmp 0x14005507f
xor edi, edi
jmp 0x140055225
mov edi, 0xffff
jmp 0x140055149
xor edi, edi
jmp 0x1400551d4
test rsi, rsi
mov eax, 0x10000
cmove rdi, rax
lea rdx, [rbx + rdi]
lea rcx, [rsp + 0x20]
xor r8d, r8d
call fcn.140072130
mov rsi, rbx
jmp 0x140055174
mov rcx, qword [rsp + 0x20]
call fcn.140089540
jmp 0x140055218