joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004dc44
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
and qword [rax - 0x28], 0
mov dword [rax + 0x20], 4
mov dword [rax + 0x18], 4
lea rax, [rax - 0x28]
mov rbp, rcx
xor ebx, ebx
and dword [rax + 0x38], ebx
lea rdx, [0x10000cc50]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
xor esi, esi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10004dce9
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x70]
lea r9, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edi, [rbx + 1]
test eax, eax
jne 0x10004dcd4
cmp dword [rsp + 0x68], ebx
je 0x10004dcd6
mov ebx, edi
jmp 0x10004dcd6
mov esi, edi
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x30], 0
jmp 0x10004dcf0
mov edi, 1
mov esi, edi
cmp esi, edi
jne 0x10004dd67
lea rax, [rsp + 0x30]
lea rdx, [0x10000cc50]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10004dd67
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x70]
lea r9, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x70], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10004dd5c
cmp dword [rsp + 0x68], eax
cmovne ebx, edi
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x1000515e8
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
xor ebx, ebx
mov rdi, rdx
cmp rdx, rbx
je 0x1000516e8
lea rcx, [0x10000ac60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, ebx
jle 0x1000516e8
xor edx, edx
xor ecx, ecx
mov r8d, 0x20001
mov dword [rdi], ebx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
cmp rax, rbx
je 0x1000516d0
lea r8d, [rbx + 4]
lea rdx, [0x10000ac60]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbp, rax
cmp rax, rbx
je 0x1000516af
lea r8d, [rbx + 0x18]
lea rcx, [rsp + 0x24]
xor edx, edx
mov dword [rsp + 0x20], ebx
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp eax, ebx
je 0x10005168e
cmp dword [rsp + 0x24], 4
jne 0x1000516a4
mov dword [rdi], 1
jmp 0x1000516a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
cmp eax, ebx
cmovle ecx, eax
mov ebx, ecx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1000516c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
cmp eax, ebx
cmovle ecx, eax
mov ebx, ecx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1000516ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
cmp eax, ebx
cmovle ecx, eax
mov ebx, ecx
jmp 0x1000516ed
mov ebx, 0x80004003
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x100051fa8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rdx, r8
mov rsi, r8
mov rbp, rcx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x100051ff4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rdi, rdi
je 0x100051ff4
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rdi], eax
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1000ae8e0
Capabilities:
Receive http response

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x830
mov rax, qword [0x1000de138]
xor rax, rsp
mov qword [rsp + 0x820], rax
mov rdi, rcx
mov rcx, qword [rcx + 0x348]
mov ebx, edx
mov byte [rsp + 0x20], 0
test rcx, rcx
je 0x1000ae922
call fcn.1000cd7b0
and qword [rdi + 0x348], 0
and dword [rdi + 0x354], 0
and dword [rdi + 0x350], 0
mov edx, ebx
mov rcx, rdi
call fcn.1000aea90
mov ebx, eax
test eax, eax
jns 0x1000ae9a4
mov rcx, qword [0x1000dedd8]
lea rax, [0x1000dedd8]
cmp rcx, rax
je 0x1000aea21
test byte [rcx + 0x1c], 1
je 0x1000aea21
mov edx, 0x3a
jmp 0x1000aea0e
mov rcx, rdi
call fcn.1000ad550
mov ebx, eax
test eax, eax
js 0x1000aea68
mov r8d, dword [rdi + 0x368]
test r8d, r8d
je 0x1000aea64
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1000afa3c
mov ebx, eax
test eax, eax
js 0x1000aea44
mov rcx, rdi
call fcn.1000ad1d8
mov rcx, qword [rdi + 0x10]
lea rdx, [rsp + 0x20]
xor r9d, r9d
mov r8d, 0x800
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov rcx, rdi
mov ebx, eax
call fcn.1000ad228
test ebx, ebx
jne 0x1000ae96b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
mov rcx, qword [0x1000dedd8]
lea rax, [0x1000dedd8]
cmp rcx, rax
je 0x1000aea21
test byte [rcx + 0x1c], 1
je 0x1000aea21
mov edx, 0x3b
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002f38]
mov r9d, ebx
call fcn.100020d8c
mov eax, ebx
mov rcx, qword [rsp + 0x820]
xor rcx, rsp
call fcn.1000cd7d0
mov rbx, qword [rsp + 0x850]
add rsp, 0x830
pop rdi
ret
mov rcx, qword [0x1000dedd8]
lea rax, [0x1000dedd8]
cmp rcx, rax
je 0x1000aea21
test byte [rcx + 0x1c], 1
je 0x1000aea21
mov edx, 0x3d
jmp 0x1000aea0e
xor ebx, ebx
jmp 0x1000aea21
mov rcx, qword [0x1000dedd8]
lea rax, [0x1000dedd8]
cmp rcx, rax
je 0x1000aea21
test byte [rcx + 0x1c], 1
je 0x1000aea21
mov edx, 0x3c
jmp 0x1000aea0e
Function at 0x1000c19ac
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], r12
push r13
sub rsp, 0x20
mov rax, qword [rsp + 0x60]
xor ebp, ebp
mov rbx, rcx
mov qword [rcx + 0x28], rax
mov rax, qword [rsp + 0x58]
mov qword [rcx + 8], r9
mov qword [rcx + 0x30], rax
mov eax, dword [rsp + 0x50]
mov word [rcx + 0x18], bp
mov qword [rcx + 0x20], rdx
mov dword [rcx + 0x3c], r8d
mov dword [rcx + 0x40], ebp
mov dword [rcx + 0x1c], eax
mov r12d, 0x8000
cmp byte [rsp + 0x68], bpl
jne 0x1000c1a0e
lea rcx, [rdx + 0x8000]
mov r8, r12
call sub.msvcrt.dll_memcpy
mov rcx, rbx
mov word [rbx + 0x44], bp
mov dword [rbx + 0x48], ebp
call fcn.1000c1e34
mov rdx, qword [rbx + 0x20]
mov r13d, 2
mov word [rbx + 0x54], r12w
mov dword [rbx + 0x4c], r12d
mov dword [rbx + 0x38], ebp
add rdx, r12
mov r8, r13
movzx eax, byte [rdx]
mov ecx, dword [rbx + 0x38]
inc rdx
shl ecx, 5
xor ecx, eax
and ecx, 0x7fff
sub r8, 1
mov dword [rbx + 0x38], ecx
jne 0x1000c1a39
cmp byte [rsp + 0x68], bpl
je 0x1000c1ab7
mov r8, rbp
mov r9, r12
mov rdx, qword [rbx + 0x28]
mov eax, ebp
movzx ecx, word [r8 + rdx]
add cx, r12w
cmp word [r8 + rdx], r12w
cmovae ax, cx
mov word [r8 + rdx], ax
add r8, r13
sub r9, 1
jne 0x1000c1a63
mov r8, rbp
mov r9, r12
mov rdx, qword [rbx + 0x30]
mov eax, ebp
movzx ecx, word [r8 + rdx]
add cx, r12w
cmp word [r8 + rdx], r12w
cmovae ax, cx
mov word [r8 + rdx], ax
add r8, r13
sub r9, 1
jne 0x1000c1a8f
jmp 0x1000c1ace
mov rcx, rbp
mov rdx, r12
mov rax, qword [rbx + 0x28]
mov word [rcx + rax], bp
add rcx, r13
sub rdx, 1
jne 0x1000c1abd
mov edx, 0x43
mov rcx, rbx
lea r8d, [rdx - 0x3b]
call fcn.1000c1b48
mov edx, 0x4b
mov rcx, rbx
lea r8d, [rdx - 0x43]
call fcn.1000c1b48
mov rcx, rbx
call fcn.1000c2ff8
add ax, r13w
movzx ecx, ax
mov rax, qword [rsp + 0x70]
mov dword [rax], ecx
cmp byte [rsp + 0x68], bpl
je 0x1000c1b20
mov rcx, qword [rbx + 0x20]
mov r8, r12
lea rdx, [rcx + 0x8000]
call sub.msvcrt.dll_memcpy
mov eax, dword [rbx + 0x40]
mov rbp, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
neg eax
sbb eax, eax
and eax, 3
add rsp, 0x20
pop r13
ret

Function at 0x1000c23bc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x1000de138]
xor rax, rsp
mov qword [rsp + 0x20], rax
xor edi, edi
mov r11, rdx
add rcx, 0x106c
lea ebx, [rdi + 1]
movzx r9d, di
mov r10, rbx
add r9w, word [rcx]
add rcx, 2
add r9w, r9w
mov word [rsp + r10*2], r9w
add r10, rbx
cmp r10, 0xf
jle 0x1000c23eb
movsxd r9, r8d
mov rdx, rdi
cmp r9, rdi
jl 0x1000c245b
movzx r8d, word [r11 + rdx*4 + 2]
lea eax, [r8 - 1]
cmp eax, 0xe
ja 0x1000c2453
movzx r10d, word [rsp + r8*2]
mov rcx, r8
movzx ecx, di
lea eax, [rbx + r10]
mov word [rsp + r8*2], ax
movzx eax, r10w
sub r8d, ebx
sar r10d, 1
and ax, bx
or cx, ax
add cx, cx
cmp r8d, edi
jg 0x1000c2433
shr cx, 1
mov word [r11 + rdx*4], cx
add rdx, rbx
cmp rdx, r9
jle 0x1000c2410
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.1000cd7d0
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1000c247c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x20
movsxd r12, dword [rdx + 0x1c]
mov rbp, qword [rdx]
mov r9, qword [rdx + 8]
xor r10d, r10d
or esi, 0xffffffff
mov rdi, rcx
cmp r12, r10
mov dword [rcx + 0x5c], 0x23d
mov dword [rcx + 0x58], r10d
mov r13, rdx
mov r8d, r10d
mov rcx, r10
lea r14d, [rsi + 2]
jle 0x1000c2500
cmp word [rbp + rcx*4], r10w
je 0x1000c24ef
add dword [rdi + 0x58], r14d
movsxd rax, dword [rdi + 0x58]
mov esi, r8d
mov dword [rdi + rax*4 + 0x108c], r8d
mov byte [rcx + rdi + 0x1980], r10b
jmp 0x1000c24f5
mov word [rbp + rcx*4 + 2], r10w
add rcx, r14
add r8d, r14d
cmp rcx, r12
jl 0x1000c24ca
movsxd rdx, esi
jmp 0x1000c254d
cmp esi, 2
jge 0x1000c2518
add esi, r14d
add rdx, r14
mov rcx, rdx
mov r8d, esi
jmp 0x1000c251e
mov r8d, r10d
mov rcx, r10
add dword [rdi + 0x58], r14d
movsxd rax, dword [rdi + 0x58]
mov dword [rdi + rax*4 + 0x108c], r8d
mov word [rbp + rcx*4], r14w
mov byte [rdi + rcx + 0x1980], r10b
dec dword [rdi + 0x68]
cmp r9, r10
je 0x1000c254d
movzx eax, word [r9 + rcx*4 + 2]
sub dword [rdi + 0x6c], eax
cmp dword [rdi + 0x58], 2
jl 0x1000c2505
mov dword [r13 + 0x24], esi
mov eax, dword [rdi + 0x58]
cdq
sub eax, edx
sar eax, 1
cmp eax, r14d
mov ebx, eax
jl 0x1000c257c
mov r8d, ebx
mov rdx, rbp
mov rcx, rdi
call fcn.1000c212c
sub ebx, r14d
cmp ebx, r14d
jge 0x1000c2566
movsxd rdx, dword [rdi + 0x58]
movsxd rbx, dword [rdi + 0x1090]
mov r8d, r14d
mov ecx, dword [rdi + rdx*4 + 0x108c]
lea eax, [rdx - 1]
mov rdx, rbp
mov dword [rdi + 0x1090], ecx
mov rcx, rdi
mov dword [rdi + 0x58], eax
call fcn.1000c212c
dec dword [rdi + 0x5c]
movsxd rcx, dword [rdi + 0x1090]
movsxd rax, dword [rdi + 0x5c]
movsxd r9, r12d
mov rdx, rcx
mov dword [rdi + rax*4 + 0x108c], ebx
dec dword [rdi + 0x5c]
movsxd rax, dword [rdi + 0x5c]
mov dword [rdi + rax*4 + 0x108c], ecx
movzx eax, word [rbp + rcx*4]
add ax, word [rbp + rbx*4]
mov word [rbp + r9*4], ax
mov al, byte [rbx + rdi + 0x1980]
mov cl, byte [rcx + rdi + 0x1980]
cmp al, cl
movzx eax, al
jae 0x1000c25f9
movzx eax, cl
add al, r14b
mov r8d, r14d
mov rcx, rdi
mov byte [r9 + rdi + 0x1980], al
mov word [rbp + rdx*4 + 2], r12w
mov word [rbp + rbx*4 + 2], r12w
mov dword [rdi + 0x1090], r12d
mov rdx, rbp
add r12d, r14d
call fcn.1000c212c
cmp dword [rdi + 0x58], 2
jge 0x1000c257c
dec dword [rdi + 0x5c]
movsxd rcx, dword [rdi + 0x5c]
mov eax, dword [rdi + 0x1090]
mov dword [rdi + rcx*4 + 0x108c], eax
mov rdx, r13
mov rcx, rdi
call fcn.1000c21e0
mov r8d, esi
mov rdx, rbp
mov rcx, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
jmp fcn.1000c23bc
Function at 0x1000c4bbc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x10
mov rax, qword [0x1000de138]
xor rax, rsp
mov qword [rsp + 8], rax
cmp dword [rcx + 0x8a8], 0
mov r9, rcx
je 0x1000c4bed
and dword [rcx + 0x8a4], 0
jmp 0x1000c4d04
mov ecx, dword [rcx + 0x9d4]
add ecx, r8d
cmp ecx, 0xa
jae 0x1000c4c13
and dword [r9 + 0x8a4], 0
mov dword [r9 + 0x8a8], 1
jmp 0x1000c4d04
cmp r8d, 6
jg 0x1000c4c25
mov dword [r9 + 0x9d4], ecx
jmp 0x1000c4d04
lea rcx, [rsp]
movsxd r11, r8d
add r11, rdx
mov eax, dword [r11 - 6]
mov dword [rcx], eax
movzx eax, word [r11 - 2]
mov word [rcx + 4], ax
lea eax, [r8 - 6]
movsxd rcx, eax
movabs rax, 0xe8e8e8e8e8e8e8e8
mov dword [rcx + rdx], eax
mov word [rcx + rdx + 4], ax
mov eax, dword [r9 + 0x9d4]
lea edi, [rax + r8 - 0xa]
jmp 0x1000c4c6f
inc rdx
inc dword [r9 + 0x9d4]
cmp byte [rdx], 0xe8
jne 0x1000c4c65
mov r8d, dword [r9 + 0x9d4]
cmp r8d, edi
jae 0x1000c4ce7
movzx eax, byte [rdx + 3]
movzx ebx, byte [rdx + 4]
shl ebx, 8
or ebx, eax
movzx eax, byte [rdx + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [rdx + 1]
shl ebx, 8
or ebx, eax
lea ecx, [r8 + rbx]
test ecx, ecx
js 0x1000c4cd9
mov r10d, dword [r9 + 0x8a4]
lea eax, [r10 + r8]
cmp ecx, eax
jae 0x1000c4cd9
cmp ecx, r10d
jb 0x1000c4cc0
mov ecx, ebx
sub ecx, r10d
mov eax, ecx
mov byte [rdx + 1], cl
shr eax, 8
mov byte [rdx + 2], al
mov eax, ecx
shr eax, 0x10
shr ecx, 0x18
mov byte [rdx + 4], cl
mov byte [rdx + 3], al
add rdx, 5
add dword [r9 + 0x9d4], 5
jmp 0x1000c4c6f
lea rcx, [rsp]
mov eax, dword [rcx]
mov dword [r11 - 6], eax
movzx eax, word [rcx + 4]
mov word [r11 - 2], ax
lea eax, [rdi + 0xa]
mov dword [r9 + 0x9d4], eax
mov rcx, qword [rsp + 8]
xor rcx, rsp
call fcn.1000cd7d0
mov rbx, qword [rsp + 0x38]
add rsp, 0x10
pop rdi
ret
Function at 0x1000c61e8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x870
mov rax, qword [0x1000de138]
xor rax, rsp
mov qword [rsp + 0x860], rax
mov rax, qword [rsp + 0x8c0]
mov r13, qword [rsp + 0x8c8]
mov rsi, rcx
mov dword [rax], r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
test r13, r13
je 0x1000c6242
mov dword [r13], r9d
cmp r8d, 0x1800
jb 0x1000c642b
mov bpl, byte [rcx + 0x8b0]
cmp bpl, 4
jae 0x1000c642b
mov r9d, r8d
xor r10d, r10d
xor ebx, ebx
shr r9d, 3
xor edx, edx
test r9d, r9d
je 0x1000c62ae
lea r11, [rsp + 0x50]
test dl, 7
jne 0x1000c6295
cmp r10d, 0x408
jae 0x1000c642b
mov word [r11], bx
inc r10d
add r11, 2
mov rax, qword [rsi + 0x50]
movzx ecx, byte [rax + rdx]
inc edx
movzx eax, byte [rcx + rsi + 0x8b1]
add ebx, eax
cmp edx, r9d
jb 0x1000c6278
lea eax, [r8 - 0x1000]
mov dword [rsp + 0x30], eax
cmp eax, 0x800
jbe 0x1000c642b
mov r12d, dword [rsp + 0x30]
mov ebx, 0x1000
lea r8d, [rbx - 0x400]
lea edx, [rbx - 0x800]
mov dword [rsp + 0x28], 0x400
mov eax, r8d
shr rax, 6
movzx ecx, word [rsp + rax*2 + 0x50]
mov eax, edx
shr rax, 6
mov dword [rsp + 0x20], ecx
mov rcx, rsi
movzx r9d, word [rsp + rax*2 + 0x50]
call fcn.1000c5f00
cmp eax, 0x578
jbe 0x1000c6415
lea edx, [rbx - 0xc00]
mov eax, ebx
mov dword [rsp + 0x28], 0x400
shr rax, 6
mov r8d, ebx
movzx ecx, word [rsp + rax*2 + 0x50]
mov eax, edx
shr rax, 6
mov dword [rsp + 0x20], ecx
mov rcx, rsi
movzx r9d, word [rsp + rax*2 + 0x50]
call fcn.1000c5f00
cmp eax, 0x578
jbe 0x1000c6415
lea r8d, [rbx + 0x400]
lea edx, [rbx - 0x1000]
mov dword [rsp + 0x28], 0x400
mov eax, r8d
shr rax, 6
movzx ecx, word [rsp + rax*2 + 0x50]
mov eax, edx
shr rax, 6
mov dword [rsp + 0x20], ecx
mov rcx, rsi
movzx r9d, word [rsp + rax*2 + 0x50]
call fcn.1000c5f00
cmp eax, 0x578
jbe 0x1000c6415
lea edi, [rbx - 0x600]
lea eax, [rbx + 0x200]
xor r15d, r15d
cmp edi, eax
jae 0x1000c6415
mov r14d, edi
lea r13d, [rbx + 0x200]
lea edx, [rdi - 0x400]
mov rax, r14
mov dword [rsp + 0x28], 0x400
shr rax, 6
mov r8d, edi
movzx ecx, word [rsp + rax*2 + 0x50]
mov eax, edx
shr rax, 6
mov dword [rsp + 0x20], ecx
mov rcx, rsi
movzx r9d, word [rsp + rax*2 + 0x50]
call fcn.1000c5f00
cmp eax, r15d
jbe 0x1000c63f2
mov r15d, eax
mov r12d, edi
add edi, 0x40
add r14, 0x40
cmp edi, r13d
jb 0x1000c63b2
mov r13, qword [rsp + 0x38]
cmp r15d, 0x6a4
jb 0x1000c6415
cmp r12d, 0x1000
jae 0x1000c645e
add ebx, 0x400
lea eax, [rbx - 0x800]
cmp eax, dword [rsp + 0x30]
jb 0x1000c62ce
xor eax, eax
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.1000cd7d0
lea r11, [rsp + 0x870]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rcx, qword [rsp + 0x40]
inc bpl
mov byte [rsi + 0x8b0], bpl
mov dword [rcx], r12d
test r13, r13
je 0x1000c6485
mov ecx, r12d
shr rcx, 6
movzx ecx, word [rsp + rcx*2 + 0x50]
mov dword [r13], ecx
mov eax, 1
jmp 0x1000c642d
Function at 0x1000c6678
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1000de138]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, qword [rsp + 0xb0]
xor ebx, ebx
mov r12, r9
movsxd rbp, edx
mov rdi, rcx
lea r13d, [rbx + 1]
lea r14d, [rbx + 2]
cmp ebp, ebx
mov dword [rdi + 0x256c], ebp
mov qword [rdi + 0x9d8], r8
mov qword [rdi + 0x9e8], r9
movzx r10d, bp
mov byte [rdi + 0x2572], bl
mov word [rdi + 0x2570], bx
mov word [rdi + 0x9f2], bx
movzx edx, bx
jle 0x1000c67c2
mov rax, qword [rdi + 0x9e8]
movsx rcx, dx
mov byte [rcx + rax], bl
cmp word [r8 + rcx*2], bx
je 0x1000c6715
add word [rdi + 0x2570], r13w
movsx rax, word [rdi + 0x2570]
mov word [rdi + rax*2 + 0x9f0], dx
add dx, r13w
movsx eax, dx
cmp eax, ebp
jl 0x1000c66e8
movzx eax, word [rdi + 0x2570]
cmp ax, r14w
jge 0x1000c6752
cmp ax, bx
je 0x1000c67c2
cmp word [rdi + 0x9f2], bx
jne 0x1000c6749
mov word [r8 + 2], r13w
jmp 0x1000c66b1
mov word [r8], r13w
jmp 0x1000c66b1
mov r9, rsi
movzx edx, r10w
mov rcx, rdi
call fcn.1000c67f0
cmp dword [rsp + 0xb8], ebx
je 0x1000c67ce
mov word [rsp + 0x20], bx
mov word [rsp + 0x22], bx
mov rcx, r13
add rdi, 0x254a
movzx eax, word [rsp + rcx*2 + 0x20]
add ax, word [rdi]
add rdi, r14
add ax, ax
mov word [rsp + rcx*2 + 0x22], ax
add rcx, r13
cmp rcx, 0x10
jle 0x1000c677e
cmp rbp, rbx
jle 0x1000c67ce
movsx rax, byte [rbx + r12]
movzx ecx, word [rsp + rax*2 + 0x20]
mov word [rsi + rbx*2], cx
movsx rax, byte [rbx + r12]
add rbx, r13
add word [rsp + rax*2 + 0x20], r13w
cmp rbx, rbp
jl 0x1000c679f
jmp 0x1000c67ce
movsx rax, word [rdi + 0x9f2]
mov word [rsi + rax*2], bx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1000cd7d0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1000cabf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x10
mov rax, qword [0x1000de138]
xor rax, rsp
mov qword [rsp + 8], rax
cmp r8d, 6
mov r9, rcx
jg 0x1000cac1a
add dword [rcx + 0x2ed8], r8d
jmp 0x1000cad0e
mov ecx, dword [rcx + 0x2ed8]
add ecx, r8d
cmp ecx, 0xa
jae 0x1000cac34
mov dword [r9 + 0x2ed8], ecx
jmp 0x1000cad0e
lea rcx, [rsp]
movsxd r10, r8d
add r10, rdx
mov eax, dword [r10 - 6]
mov dword [rcx], eax
movzx eax, word [r10 - 2]
mov word [rcx + 4], ax
lea eax, [r8 - 6]
movsxd rcx, eax
movabs rax, 0xe8e8e8e8e8e8e8e8
mov dword [rcx + rdx], eax
mov word [rcx + rdx + 4], ax
mov eax, dword [r9 + 0x2ed8]
lea r11d, [rax + r8 - 0xa]
jmp 0x1000cac7e
inc rdx
inc dword [r9 + 0x2ed8]
cmp byte [rdx], 0xe8
jne 0x1000cac74
mov r8d, dword [r9 + 0x2ed8]
cmp r8d, r11d
jae 0x1000cacf0
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 4]
mov ebx, dword [r9 + 0x2ed4]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 1]
shl ecx, 8
or ecx, eax
cmp ecx, ebx
jae 0x1000cacbe
sub ecx, r8d
jmp 0x1000cacc9
mov eax, ecx
neg eax
cmp eax, r8d
ja 0x1000cace2
add ecx, ebx
mov eax, ecx
mov byte [rdx + 1], cl
shr eax, 8
mov byte [rdx + 2], al
mov eax, ecx
shr eax, 0x10
shr ecx, 0x18
mov byte [rdx + 4], cl
mov byte [rdx + 3], al
add rdx, 5
add dword [r9 + 0x2ed8], 5
jmp 0x1000cac7e
lea eax, [r11 + 0xa]
lea rcx, [rsp]
mov dword [r9 + 0x2ed8], eax
mov eax, dword [rcx]
mov dword [r10 - 6], eax
movzx eax, word [rcx + 4]
mov word [r10 - 2], ax
mov rcx, qword [rsp + 8]
xor rcx, rsp
call fcn.1000cd7d0
add rsp, 0x10
pop rbx
ret

Function at 0x1000cd2b8
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1000de138]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call sub.msvcrt.dll_memset
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x100000000]
mov esi, 0x94
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x1000cd34b
cmp dword [rsp + 0x24], 5
jb 0x1000cd365
jmp 0x1000cd361
cmp dword [rsp + 0x30], esi
jne 0x1000cd365
cmp dword [rsp + 0x24], 4
ja 0x1000cd361
jne 0x1000cd365
cmp dword [rsp + 0x28], 0
jbe 0x1000cd365
mov byte [rbx + 0x18], sil
lea rax, [0x100002328]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.1000483d0
movzx ecx, byte [0x1000e2c2c]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x1000e2c2c], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1000cd7d0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140002c30
Capabilities:
Parse pe header

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

Function at 0x140009790
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000958c
Function at 0x14000ec40
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14000ec70
xor eax, eax
jmp 0x14000ed33
mov rbp, rbx
cmp word [rax], si
je 0x14000ec95
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000ec7c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000ec78
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14000eb60
movsxd r14, eax
test eax, eax
jne 0x14000ecd3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000ec69
mov rcx, r14
call fcn.14000b28c
mov rdi, rax
test rax, rax
jne 0x14000ecec
xor ecx, ecx
call fcn.14000a614
jmp 0x14000ecc8
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14000eb60
test eax, eax
jne 0x14000ed1d
mov rcx, rdi
call fcn.14000a614
jmp 0x14000ed27
xor ecx, ecx
call fcn.14000a614
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret