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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004490]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400044a0]
mov dword [rax], 1
mov rax, qword [0x1400044b0]
mov dword [rax], 1
mov rax, qword [0x140004430]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140004480]
mov dword [0x140008020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140004580]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140004560]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400043e0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001b00
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x140001b70
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x140008104]
mov r12, rcx
test ebx, ebx
jle 0x140001ca0
mov rax, qword [0x140008108]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x140001bbb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x140001c45
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x140001ba0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x140001cc2
mov rax, qword [0x140008108]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140008108]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001ca7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001c3e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001c50
add dword [0x140008104], 1
add rsp, 0x50
pop rbx
pop rsi
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 rbx, qword [0x140008108]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001c3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor ebx, ebx
jmp 0x140001bc8
mov rax, qword [0x140008108]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002240
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x140008160]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140008140]
test rbx, rbx
je 0x14000229c
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140002293
test r12, r12
je 0x140002293
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002278
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400024e8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400024f0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002500
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140002545
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x14000253c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x140002547
add rax, 0x28
cmp rax, r9
jne 0x140002528
xor eax, eax
ret

Function at 0x140002550
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x1400025e0
mov rdx, qword [0x140004430]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x1400025ce
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400025ce
cmp word [rax + 0x18], 0x20b
jne 0x1400025ce
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x1400025e0
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x1400025b9
add r12, 0x28
cmp r12, rsi
je 0x1400025e0
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x1400025b0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

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

Disassembly:
mov rdx, qword [0x140004430]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002610
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002618
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002610
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140002665
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000265c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002610
add rax, 0x28
cmp rax, r9
jne 0x140002648
xor eax, eax
ret

Function at 0x140002670
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004430]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002690
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002698
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002690
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x1400026b0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140004430]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400026d0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400026d8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400026d0
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002718
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14000270f
test rcx, rcx
je 0x1400026d0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002700
xor eax, eax
ret
Function at 0x140002720
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004430]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002740
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002748
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

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

Disassembly:
mov rdx, qword [0x140004430]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002780
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002788
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002780
sub rcx, rdx
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x140002780
lea eax, [r8 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop dword [rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400027cc
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400027e0
add rdx, 0x28
cmp rdx, r9
jne 0x1400027b8
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140004430]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002812
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002820
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002812
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002812
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x140002812
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x14000286d
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002880
add rdx, 0x28
cmp r10, rdx
jne 0x140002858
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14000288f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14000289f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002876
test ecx, ecx
jg 0x140002888
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1400015e4
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov rax, qword [0x140015018]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov r14, rdx
mov dword [rsp + 0x70], 0x40
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x74]
mov r8d, 0x218
call sub.msvcrt.dll_memset
mov r12d, 0x10e
lea rcx, [rsp + 0x70]
mov edx, r12d
mov r8, r14
call fcn.140001164
or rdi, 0xffffffffffffffff
xor r15d, r15d
mov ebx, eax
test eax, eax
jne 0x1400016b5
lea r8, str.__1001
mov edx, r12d
lea rcx, [rsp + 0x70]
call fcn.140001164
mov ebx, eax
test eax, eax
jne 0x1400016b5
lea rcx, [rsp + 0x70]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r15w
jne 0x14000167b
lea eax, [rax*2 + 2]
mov r9d, 2
mov dword [rsp + 0x28], eax
lea rdx, str.LocalizedString
lea rax, [rsp + 0x70]
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test ebx, ebx
jne 0x1400017e3
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea r9, str.REG_SZ
lea rax, [rsp + 0x58]
mov rcx, rsi
mov qword [rsp + 0x38], rax
lea rdx, str.Elevation
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r15d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x1400017e3
mov rcx, qword [rsp + 0x58]
lea r9d, [rax + 4]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Enabled
mov dword [rsp + 0x50], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jne 0x1400017d8
xor edx, edx
mov dword [rbp + 0x190], 0x40
mov r8d, 0x218
lea rcx, [rbp + 0x194]
call sub.msvcrt.dll_memset
mov r8, r14
lea rcx, [rbp + 0x190]
mov rdx, r12
call fcn.140001164
mov ebx, eax
test eax, eax
jne 0x1400017d8
lea r8, str.__1002
mov rdx, r12
lea rcx, [rbp + 0x190]
call fcn.140001164
mov ebx, eax
test eax, eax
jne 0x1400017d8
lea rax, [rbp + 0x190]
inc rdi
cmp word [rax + rdi*2], r15w
jne 0x14000179a
mov rcx, qword [rsp + 0x58]
lea eax, [rdi*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, str.IconReference
lea rax, [rbp + 0x190]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.14000e250
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14000759c
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x140015018]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, rcx
mov r14, rdx
lea rcx, [rsp + 0x38]
mov edi, 0x80004005
xor esi, esi
xor ebx, ebx
call qword [sym.imp.RPCRT4.dll_UuidCreate]
test eax, eax
jne 0x14000761b
and qword [rsp + 0x30], rbx
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
jne 0x14000761b
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
test rax, rax
je 0x140007609
mov rsi, rax
jmp 0x14000760e
mov ebx, 0x8007000e
lea rcx, [rsp + 0x30]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
jmp 0x140007629
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400076a4
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov rdx, rsi
call fcn.140006148
test eax, eax
js 0x14000769b
mov rbx, qword [rsp + 0x30]
lea r8, str._s_s
mov r9, rbp
mov qword [rsp + 0x20], rbx
mov edx, 0x104
mov rcx, r14
call fcn.140005e98
mov rcx, rbx
mov edi, eax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test edi, edi
js 0x14000769b
xor r8d, r8d
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateDirectoryExA]
test eax, eax
jne 0x14000769b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000e250
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140007af8
Capabilities:
Enumerate files on windows
Get common file path
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r14
push rbp
lea rbp, [rax - 0x2b8]
sub rsp, 0x3b0
mov rax, qword [0x140015018]
xor rax, rsp
mov qword [rbp + 0x2a0], rax
mov r14d, 0x104
lea rdx, [rbp + 0x190]
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x140007b5a
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140007d26
lea r8, [rbp + 0x190]
mov rdx, r14
lea rax, [rbp + 0x80]
sub r8, rax
lea rcx, [rbp + 0x80]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140007b94
mov al, byte [r8 + rcx]
test al, al
je 0x140007b94
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140007b75
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
mov rax, rdx
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x8007007a
test rdx, rdx
je 0x140007d26
lea r8, str.IDC
mov rdx, r14
lea rcx, [rbp + 0x80]
call fcn.140005dd4
mov ebx, eax
test eax, eax
js 0x140007d26
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140007b41
lea rdx, [0x140012278]
lea rcx, [rsp + 0x6c]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x140007ce8
lea rdx, [0x14001227c]
lea rcx, [rsp + 0x6c]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x140007ce8
and dword [rsp + 0x28], 0
lea rax, [rbp + 0x80]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], r14
lea r8, [rbp + 0x190]
mov qword [rsp + 0x20], rax
mov rdx, r14
lea rcx, [rbp + 0x80]
call fcn.140005ab8
mov ebx, eax
test eax, eax
js 0x140007d1d
and dword [rsp + 0x28], 0
lea rax, [rsp + 0x30]
mov rdx, qword [rsp + 0x30]
lea r9, [rsp + 0x38]
mov rcx, qword [rsp + 0x38]
lea r8, [0x1400122ec]
mov qword [rsp + 0x20], rax
call fcn.140005ab8
mov ebx, eax
test eax, eax
js 0x140007d1d
mov rdx, qword [rsp + 0x30]
lea r8, [rsp + 0x6c]
mov rcx, qword [rsp + 0x38]
call fcn.140005a40
mov ebx, eax
test eax, eax
js 0x140007d1d
test byte [rsp + 0x40], 0x10
je 0x140007ce8
mov edx, 0x90
lea rcx, [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea rcx, [rbp + 0x80]
call fcn.140006a74
mov ebx, eax
test eax, eax
js 0x140007d1d
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140007bfa
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x140007d1d
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.14000e250
lea r11, [rsp + 0x3b0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140005230
Capabilities:
Encrypt data using rc4 prga

Disassembly:
movss dword [rsp + 0x20], xmm3
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x14048f3e0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0xa0]
mov rdi, rdx
mov edx, dword [rsp + 0x98]
test eax, eax
mov r11d, 6
mov rbp, r8
mov r10d, r11d
mov r14, rcx
cmovns r10d, eax
mov eax, edx
and eax, 0x7fffff
shr edx, 0x17
lea r9d, [rax + rax]
test edx, edx
jne 0x140005291
neg eax
sbb ecx, ecx
and ecx, 0xffffff82
jmp 0x140005294
lea ecx, [rdx - 0x7f]
mov eax, r9d
mov r15d, 0x2d
bts eax, 0x18
test edx, edx
cmovne r9d, eax
mov eax, ecx
cdq
mov esi, eax
mov eax, 0x2b
xor esi, edx
sub esi, edx
test ecx, ecx
cmovns r15d, eax
cmp esi, 0xa
jae 0x1400052c5
lea edx, [rax - 0x27]
jmp 0x1400052ce
cmp esi, 0x64
sbb rdx, rdx
add rdx, r11
mov rcx, rbp
movsxd r8, r10d
sub rcx, rdi
cmp rcx, r8
jge 0x1400052ec
mov qword [r14], rbp
mov dword [r14 + 8], 0x84
jmp 0x14000543a
xor eax, eax
test r10d, r10d
setg al
sub rcx, r8
add rax, rdx
cmp rcx, rax
jl 0x1400052dc
mov qword [rsp + 0x80], rbx
cmp r10d, r11d
jge 0x140005331
lea r8d, [r9 + r9]
sub r11d, r10d
shl r11d, 2
lea eax, [r8 - 1]
or eax, r9d
movzx ecx, r11b
mov edx, 1
shl edx, cl
and edx, eax
and edx, r8d
add r9d, edx
mov eax, r9d
and r9d, 0xffffff
shr eax, 0x18
add al, 0x30
mov byte [rdi], al
inc rdi
test r10d, r10d
jle 0x1400053be
mov byte [rdi], 0x2e
lea r11, str.0123456789abcdefghijklmnopqrstuvwxyz
mov eax, r9d
lea r8d, [r10 - 1]
shr rax, 0x14
mov ecx, 0x14
movzx eax, byte [rax + r11]
mov byte [rdi + 1], al
add rdi, 2
test r8d, r8d
je 0x1400053be
mov edx, 0x100000
nop word [rax + rax]
test ecx, ecx
je 0x1400053a8
lea eax, [rdx - 1]
sub ecx, 4
and r9d, eax
ror edx, 4
mov eax, r9d
shr rax, cl
movzx eax, byte [rax + r11]
mov byte [rdi], al
inc rdi
sub r8d, 1
jne 0x140005380
jmp 0x1400053be
movsxd rbx, r8d
mov edx, 0x30
mov r8, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
add rdi, rbx
mov byte [rdi], 0x70
lea r9, [rsp + 0x40]
mov byte [rdi + 1], r15b
add rdi, 2
nop
dec r9
mov eax, 0xcccccccd
mul esi
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub sil, cl
add sil, 0x30
mov byte [r9], sil
mov esi, edx
test edx, edx
jne 0x1400053d0
lea rbx, [rsp + 0x40]
mov rax, rbp
sub rbx, r9
sub rax, rdi
cmp rax, rbx
jge 0x140005415
mov dword [r14 + 8], 0x84
jmp 0x14000542f
mov r8, rbx
mov rdx, r9
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov dword [r14 + 8], 0
lea rbp, [rbx + rdi]
mov qword [r14], rbp
mov rbx, qword [rsp + 0x80]
mov rax, r14
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140115700
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140005460
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
movsd qword [rsp + 0x20], xmm3
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x14048f3e0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0xa0]
mov rsi, rdx
mov rdx, qword [rsp + 0x98]
test eax, eax
mov r9, rdx
mov r11d, 0xd
mov r10d, r11d
movabs rbx, 0xfffffffffffff
cmovns r10d, eax
mov rbp, r8
and r9, rbx
shr rdx, 0x34
mov r14, rcx
test edx, edx
jne 0x1400054d4
mov rax, r9
neg rax
sbb ecx, ecx
and ecx, 0xfffffc02
jmp 0x1400054da
lea ecx, [rdx - 0x3ff]
mov rax, r9
movabs r8, 0x10000000000000
or rax, r8
mov r15d, 0x2d
test edx, edx
cmovne r9, rax
mov eax, ecx
cdq
mov edi, eax
mov eax, 0x2b
xor edi, edx
sub edi, edx
test ecx, ecx
cmovns r15d, eax
cmp edi, 0xa
jae 0x140005514
lea edx, [rax - 0x27]
jmp 0x14000552d
cmp edi, 0x64
jae 0x140005520
mov edx, 5
jmp 0x14000552d
cmp edi, 0x3e8
sbb rdx, rdx
add rdx, 7
mov rcx, rbp
movsxd r8, r10d
sub rcx, rsi
cmp rcx, r8
jl 0x14000566b
xor eax, eax
test r10d, r10d
setg al
sub rcx, r8
add rax, rdx
cmp rcx, rax
jl 0x14000566b
cmp r10d, r11d
jge 0x140005582
lea r8, [r9 + r9]
sub r11d, r10d
shl r11d, 2
lea rax, [r8 - 1]
or rax, r9
movzx ecx, r11b
mov edx, 1
shl rdx, cl
and rdx, rax
and rdx, r8
add r9, rdx
mov rax, r9
and r9, rbx
shr rax, 0x34
add al, 0x30
mov byte [rsi], al
inc rsi
test r10d, r10d
jle 0x140005612
mov byte [rsi], 0x2e
lea r11, str.0123456789abcdefghijklmnopqrstuvwxyz
mov rax, r9
lea r8d, [r10 - 1]
shr rax, 0x30
mov ecx, 0x30
movzx eax, byte [rax + r11]
mov byte [rsi + 1], al
add rsi, 2
test r8d, r8d
je 0x140005612
movabs rdx, 0x1000000000000
nop dword [rax]
test ecx, ecx
je 0x1400055fc
lea rax, [rdx - 1]
sub ecx, 4
and r9, rax
ror rdx, 4
mov rax, r9
shr rax, cl
mov eax, eax
movzx eax, byte [rax + r11]
mov byte [rsi], al
inc rsi
sub r8d, 1
jne 0x1400055d0
jmp 0x140005612
movsxd rbx, r8d
mov edx, 0x30
mov r8, rbx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
add rsi, rbx
mov byte [rsi], 0x70
lea r9, [rsp + 0x40]
mov byte [rsi + 1], r15b
add rsi, 2
nop dword [rax]
nop word [rax + rax]
dec r9
mov eax, 0xcccccccd
mul edi
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub dil, cl
add dil, 0x30
mov byte [r9], dil
mov edi, edx
test edx, edx
jne 0x140005630
lea rbx, [rsp + 0x40]
mov rax, rbp
sub rbx, r9
sub rax, rsi
cmp rax, rbx
jge 0x140005675
mov dword [r14 + 8], 0x84
jmp 0x14000568f
mov r8, rbx
mov rdx, r9
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov dword [r14 + 8], 0
lea rbp, [rbx + rsi]
mov qword [r14], rbp
mov rax, r14
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140115700
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret