joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400202ba
Capabilities:
Encrypt data using rc4 via systemfunction032

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb0
test rdx, rdx
lea rdi, [0x140177ab8]
cmovne rdi, rdx
movabs rax, 0x1000000010
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x30], rax
cmp qword [rdi + 8], 0
je 0x1400203ec
cmp dword [rdi], 0
je 0x1400203ec
mov rsi, rcx
mov ebp, dword [rcx]
test ebp, ebp
je 0x1400203f5
cmp qword [rsi + 8], 0
je 0x1400203f5
lea r15d, [rbp + 0x14]
mov ecx, r15d
call fcn.14001dfda
test rax, rax
je 0x140020401
mov r12, rax
lea rbx, [rax + 0x14]
mov rdx, qword [rsi + 8]
mov r8d, dword [rsi]
mov rcx, rbx
call fcn.1400eeb30
mov r14, r12
add r14, 0x10
mov r8d, dword [rsi]
mov dword [rsp + 0x20], 4
mov ecx, 0x8000
mov rdx, rbx
mov r9, r14
call fcn.140006b54
test eax, eax
je 0x140020417
mov rcx, r12
mov edx, 0x10
call sub.cryptdll.dll_CDGenerateRandomBits
lea rbx, [rsp + 0x48]
mov rcx, rbx
call sub.cryptdll.dll_MD5Init
mov r8d, dword [rdi]
mov rdx, qword [rdi + 8]
mov rcx, rbx
call sub.cryptdll.dll_MD5Update
mov rcx, rbx
mov rdx, r12
mov r8d, 0x10
call sub.cryptdll.dll_MD5Update
mov rcx, rbx
call sub.cryptdll.dll_MD5Final
add ebp, 4
lea rcx, [rsp + 0x38]
mov dword [rcx + 4], ebp
mov dword [rcx], ebp
mov qword [rcx + 8], r14
lea rdx, [rsp + 0x28]
call sub.advapi32.dll_SystemFunction032
test eax, eax
js 0x140020420
mov rax, qword [rsi + 8]
mov qword [rsi + 8], r12
mov dword [rsi], r15d
mov esi, 1
mov r12, rax
jmp 0x14002042e
lea rcx, [0x140145df0]
jmp 0x1400203fc
lea rcx, [0x140145dc0]
call fcn.140016430
xor esi, esi
mov eax, esi
add rsp, 0xb0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [0x140145d30]
jmp 0x140020427
lea rcx, [0x140145d80]
call fcn.140016430
xor esi, esi
mov rcx, r12
call fcn.14001dfe9
jmp 0x140020403
Function at 0x14002086a
Capabilities:
Listen for remote procedure calls

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
xor edi, edi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
mov rcx, qword [0x140146770]
add rcx, 4
call fcn.140020747
test rax, rax
je 0x140020a02
mov rsi, rax
lea rcx, [0x140146100]
mov edx, 0xa
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.RPCRT4.dll_RpcServerUseProtseqEpW]
test eax, eax
je 0x1400208d1
mov edi, eax
lea rcx, [0x140146420]
jmp 0x1400209f2
mov rcx, rsi
mov edx, 9
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.RPCRT4.dll_RpcServerRegisterAuthInfoW]
test eax, eax
je 0x1400208f7
mov edi, eax
lea rcx, [0x1401463c0]
jmp 0x1400209f2
mov rcx, qword [0x140146770]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xffffffff
mov dword [rsp + 0x20], 0x4d2
xor edx, edx
xor r8d, r8d
mov r9d, 8
call qword [sym.imp.RPCRT4.dll_RpcServerRegisterIf2]
test eax, eax
je 0x14002093a
mov edi, eax
lea rcx, [0x140146370]
jmp 0x1400209f2
lea rcx, [rsp + 0x40]
call qword [sym.imp.RPCRT4.dll_RpcServerInqBindings]
test eax, eax
je 0x140020957
mov edi, eax
lea rcx, [0x140146320]
jmp 0x1400209f2
mov rdx, qword [rsp + 0x40]
cmp dword [rdx], 0
je 0x1400209c3
xor edi, edi
lea rbx, [rsp + 0x48]
mov r12, qword [sym.imp.RPCRT4.dll_RpcBindingToStringBindingW]
lea r14, [0x140146120]
mov r13, qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
lea r15, [0x140146150]
mov rcx, qword [rdx + rdi*8 + 8]
mov rdx, rbx
call r12
test eax, eax
je 0x14002099f
mov rcx, r15
mov edx, eax
call fcn.140016430
jmp 0x1400209b4
mov r8, qword [rsp + 0x48]
mov rcx, r14
mov edx, edi
call fcn.140016430
mov rcx, rbx
call r13
inc rdi
mov rdx, qword [rsp + 0x40]
mov eax, dword [rdx]
cmp rdi, rax
jb 0x140020984
mov rcx, qword [0x140146770]
lea r9, [0x1401461b0]
xor r8d, r8d
call qword [sym.imp.RPCRT4.dll_RpcEpRegisterW]
mov edi, eax
lea rcx, [rsp + 0x40]
call qword [sym.imp.RPCRT4.dll_RpcBindingVectorFree]
test edi, edi
je 0x140020a14
lea rcx, str._z_z_z5z_zZzZzAzZz_z_nz
mov edx, edi
call fcn.140016430
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x1401461f0]
call fcn.140016430
mov ecx, 1
mov edx, 0x4d2
mov r8d, 1
call qword [sym.imp.RPCRT4.dll_RpcServerListen]
cmp eax, 0x6b1
je 0x140020a4c
mov edi, eax
test eax, eax
jne 0x140020a5c
lea rcx, [0x140146220]
jmp 0x140020a53
lea rcx, [0x140146260]
call fcn.140016430
xor edi, edi
jmp 0x1400209f9
lea rcx, [0x1401462a0]
jmp 0x1400209f2
Function at 0x140022d18
Capabilities:
Query service status

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov r14, rdx
mov rdi, rcx
lea rdx, [0x1401467b0]
xor ebx, ebx
xor ecx, ecx
mov r8d, 1
call qword [sym.imp.advapi32.dll_OpenSCManagerW]
test rax, rax
je 0x140022d96
mov rsi, rax
mov rcx, rax
mov rdx, rdi
mov r8d, 4
call qword [sym.imp.advapi32.dll_OpenServiceW]
test rax, rax
je 0x140022d8b
mov rdi, rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov rcx, rdi
xor edx, edx
mov r8, r14
mov r9d, reloc.WLDAP32.dll_Ordinal_36
call qword [sym.imp.advapi32.dll_QueryServiceStatusEx]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.advapi32.dll_CloseServiceHandle]
jmp 0x140022d8d
xor ebx, ebx
mov rcx, rsi
call qword [sym.imp.advapi32.dll_CloseServiceHandle]
mov eax, ebx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140022da2
Capabilities:
Start service

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rdx, [0x1401467b0]
xor edi, edi
xor ecx, ecx
mov r8d, 1
call qword [sym.imp.advapi32.dll_OpenSCManagerW]
test rax, rax
je 0x140022e0b
mov rsi, rax
mov rcx, rax
mov rdx, rbx
mov r8d, 0x10
call qword [sym.imp.advapi32.dll_OpenServiceW]
test rax, rax
je 0x140022e00
mov rbx, rax
mov rcx, rax
xor edx, edx
xor r8d, r8d
call qword [sym.imp.advapi32.dll_StartServiceW]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.advapi32.dll_CloseServiceHandle]
jmp 0x140022e02
xor edi, edi
mov rcx, rsi
call qword [sym.imp.advapi32.dll_CloseServiceHandle]
mov eax, edi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x140022e15
Capabilities:
Delete service

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rdx, [0x1401467b0]
xor edi, edi
xor ecx, ecx
mov r8d, 1
call qword [sym.imp.advapi32.dll_OpenSCManagerW]
test rax, rax
je 0x140022e79
mov rsi, rax
mov rcx, rax
mov rdx, rbx
mov r8d, 0x10000
call qword [sym.imp.advapi32.dll_OpenServiceW]
test rax, rax
je 0x140022e6e
mov rbx, rax
mov rcx, rax
call qword [sym.imp.advapi32.dll_DeleteService]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.advapi32.dll_CloseServiceHandle]
jmp 0x140022e70
xor edi, edi
mov rcx, rsi
call qword [sym.imp.advapi32.dll_CloseServiceHandle]
mov eax, edi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x140023108
Capabilities:
Create service
Start service

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov r12d, r9d
mov rbp, r8
mov r15, rdx
mov r14, rcx
lea rdx, [0x1401467b0]
xor edi, edi
xor ecx, ecx
mov r8d, 3
call qword [sym.imp.advapi32.dll_OpenSCManagerW]
test rax, rax
je 0x1400231a6
mov rsi, rax
mov rcx, rax
mov rdx, r14
mov r8d, 0x10
call qword [sym.imp.advapi32.dll_OpenServiceW]
test rax, rax
je 0x1400231bf
mov rbx, rax
lea rcx, [0x1401467d0]
mov rdx, r14
call fcn.140016430
xor edi, edi
cmp dword [rsp + 0xd8], 0
je 0x1400232ab
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call qword [sym.imp.advapi32.dll_StartServiceW]
test eax, eax
je 0x140023277
mov edi, eax
lea rcx, [0x1401469f0]
mov rdx, r14
call fcn.140016430
jmp 0x1400232ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__2_2___2___________
mov edx, eax
call fcn.140016430
jmp 0x1400232d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x140023268
mov edi, dword [rsp + 0xd0]
lea rcx, str.z__v__
mov rdx, r14
call fcn.140016430
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], r12d
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x30], 1
mov rcx, rsi
mov rdx, r14
mov r8, r15
mov r9d, 0x60010
call qword [sym.imp.advapi32.dll_CreateServiceW]
test rax, rax
je 0x1400232b6
mov rbx, rax
lea rcx, [0x140146860]
mov rdx, r14
call fcn.140016430
mov rcx, rbx
call fcn.140022f6e
test eax, eax
je 0x1400232e6
mov edi, eax
lea rcx, [0x1401468c0]
mov rdx, r14
call fcn.140016430
jmp 0x14002316c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x1401469b0]
jmp 0x1400232c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x140023295
lea rcx, str.pZp_pPpWpUp
mov rdx, r14
call fcn.140016430
jmp 0x1400232a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140146a80]
mov edx, eax
call fcn.140016430
xor edi, edi
mov rcx, rbx
call qword [sym.imp.advapi32.dll_CloseServiceHandle]
jmp 0x1400232cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR____CreateService__0x_08x__n
mov edx, eax
call fcn.140016430
xor edi, edi
mov rcx, rsi
call qword [sym.imp.advapi32.dll_CloseServiceHandle]
mov eax, edi
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140146910]
mov edx, eax
call fcn.140016430
jmp 0x14002316a
Function at 0x1400244b1
Capabilities:
Decode data using base64 via winapi

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rbx, r8
mov r14, rdx
mov rdi, rcx
mov qword [rdx], 0
mov dword [r8], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], r8
xor esi, esi
xor edx, edx
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x14002453f
mov edx, dword [rbx]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [r14], rax
test rax, rax
je 0x14002453f
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], rbx
mov rcx, rdi
xor edx, edx
mov r8d, 1
mov r9, rax
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
mov esi, eax
test eax, eax
jne 0x14002453f
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [r14], rax
xor esi, esi
mov eax, esi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140025210
Capabilities:
Get token membership

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov r14, r8
mov rdi, rdx
mov rsi, rcx
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x34]
mov edx, 8
mov r9d, 4
call qword [sym.imp.advapi32.dll_GetTokenInformation]
test eax, eax
je 0x1400252a1
cmp dword [rsp + 0x34], 1
jne 0x1400252b9
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
xor ebx, ebx
mov rcx, rsi
mov edx, 8
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.advapi32.dll_DuplicateTokenEx]
mov sil, 1
test eax, eax
jne 0x1400252c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140147000]
mov edx, eax
call fcn.140016430
cmp dword [rsp + 0x34], 1
mov esi, 0
jne 0x1400252c0
jmp 0x1400252fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x1401470a0]
mov edx, eax
call fcn.140016430
xor ebx, ebx
jmp 0x1400252fb
mov qword [rsp + 0x38], rsi
xor esi, esi
mov rcx, qword [rsp + 0x38]
mov rdx, rdi
mov r8, r14
call qword [sym.imp.advapi32.dll_CheckTokenMembership]
mov ebx, eax
test eax, eax
jne 0x1400252eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140147050]
mov edx, eax
call fcn.140016430
test sil, sil
je 0x1400252fb
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140025324
Capabilities:
Get user security identifier

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r14, r8
mov r12, rdx
mov rbx, rcx
mov r15, qword [rsp + 0xb0]
test r9, r9
lea rsi, [rsp + 0x4c]
cmovne rsi, r9
xor edi, edi
lea r9, [rsp + 0x44]
mov dword [r9], edi
lea r13, [rsp + 0x48]
mov dword [r13], edi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], 0
mov rcx, r15
mov rdx, rbx
xor r8d, r8d
call qword [sym.imp.advapi32.dll_LookupAccountNameW]
test eax, eax
jne 0x140025413
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140025413
mov edx, dword [rsp + 0x44]
add rdx, rdx
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [r12], rax
test rax, rax
je 0x140025413
mov edx, dword [rsp + 0x48]
add rdx, rdx
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [r14], rax
test rax, rax
je 0x140025403
mov r8, qword [r12]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.advapi32.dll_LookupAccountNameW]
mov edi, eax
test eax, eax
jne 0x140025413
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [r14], rax
mov rcx, qword [r12]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [r12], rax
xor edi, edi
mov eax, edi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140037438
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
cmp r9b, 1
jne 0x140037452
xor r10d, r10d
mov r9d, 1
mov rax, rcx
jmp 0x14003749b
movzx eax, r9b
mov ebp, 3
mov ebx, 3
sub ebx, eax
xor r10d, r10d
cmp ebx, r8d
jge 0x140037489
sub ebp, eax
movsxd rbx, ebp
movsxd rbp, r8d
cmp byte [rcx + rbx], 0
jne 0x140037483
add rbx, 2
cmp rbx, rbp
jl 0x140037472
jmp 0x140037489
mov r10d, 1
xor ebx, 1
and eax, 1
add rax, rcx
mov r9d, 2
mov r8d, ebx
movsxd rbp, r8d
add rcx, rbp
mov r8b, 1
cmp rax, rcx
jae 0x1400374dd
mov ebx, r9d
lea rbp, [0x140149950]
movzx edi, byte [rax]
test byte [rdi + rbp], 1
je 0x1400374c6
add rax, rbx
cmp rax, rcx
jb 0x1400374b3
jmp 0x1400374dd
cmp dil, 0x2b
je 0x1400374da
cmp dil, 0x2d
jne 0x1400374dd
add rax, rbx
xor r8d, r8d
jmp 0x1400374dd
add rax, rbx
mov r11, rax
cmp rax, rcx
jae 0x1400374f9
mov esi, r9d
mov r11, rax
cmp byte [r11], 0x30
jne 0x1400374f9
add r11, rsi
cmp r11, rcx
jb 0x1400374eb
cmp r11, rcx
jae 0x140037548
mov r14d, r9d
xor esi, esi
xor ebx, ebx
movzx edi, byte [r11 + rsi]
lea ebp, [rdi - 0x30]
cmp bpl, 9
ja 0x14003752b
lea rbx, [rbx + rbx*4]
lea rbx, [rdi + rbx*2]
add rbx, 0xffffffffffffffd0
add rsi, r14
lea rdi, [r11 + rsi]
cmp rdi, rcx
jb 0x140037505
cmp bpl, 9
seta dil
test rbx, rbx
jns 0x14003754e
movabs rbx, 0x7fffffffffffffff
lea rbp, [rbx + 1]
jmp 0x140037554
xor edi, edi
xor esi, esi
xor ebx, ebx
mov rbp, rbx
neg rbp
test r8b, r8b
cmovne rbp, rbx
mov qword [rdx], rbp
test esi, esi
sete bl
cmp rax, r11
sete al
and al, bl
test r10d, r10d
setne bl
or bl, al
movzx eax, bl
test al, al
jne 0x1400375a8
test dil, dil
je 0x1400375a8
mov eax, esi
mov ebp, r9d
add rax, r11
lea rbx, [0x140149950]
movzx edi, byte [rax]
test byte [rdi + rbx], 1
je 0x1400375a3
add rax, rbp
cmp rax, rcx
jb 0x14003758e
xor eax, eax
jmp 0x1400375a8
mov eax, 1
lea ecx, [r9 + r9*8]
lea ecx, [r9 + rcx*2]
cmp esi, ecx
jb 0x14003764a
jbe 0x1400375d9
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + 1]
test r8b, r8b
cmovne rcx, rax
mov qword [rdx], rcx
mov eax, 2
jmp 0x14003764a
mov ecx, r9d
xor ebp, ebp
lea r9, str.RYYXXY_X_S_S_k
mov rsi, r11
movsx ebx, byte [rsi]
movsx edi, byte [rbp + r9]
sub ebx, edi
cmp rbp, 0x10
ja 0x140037603
inc rbp
add rsi, rcx
test ebx, ebx
je 0x1400375e8
test ebx, ebx
je 0x14003760e
add ebx, ebx
lea ecx, [rbx + rbx*4]
jmp 0x14003761a
lea rcx, [rcx + rcx*8]
movsx ecx, byte [r11 + rcx*2]
add ecx, 0xffffffc8
test ecx, ecx
js 0x14003764a
movabs rbp, 0x7fffffffffffffff
lea rbx, [rbp + 1]
test r8b, r8b
cmovne rbx, rbp
mov qword [rdx], rbx
mov edx, 3
cmovne eax, edx
test ecx, ecx
mov ecx, 2
cmove ecx, eax
mov eax, ecx
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x14003f8f3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
mov r14d, r9d
mov r15, r8
mov rsi, rcx
test rdx, rdx
je 0x14003f982
mov rbx, rdx
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsi + 0x80]
mov rcx, rbp
call fcn.14003e209
test rax, rax
je 0x14003f9a0
mov rdi, rax
mov rcx, rbp
mov edx, r15d
mov r8, rbx
mov r9, rax
call fcn.14003e25f
movzx eax, word [rdi + 0x10]
test ax, ax
je 0x14003f951
cmp ax, word [rbp + 8]
jbe 0x14003f9a7
lea rax, [0x140149dd4]
mov qword [rsp + 0x20], rax
lea rdx, str.7a2sf2w27v2t2I7__aO
lea r8, [0x14014a700]
mov ebx, reloc.Cabinet.dll_FCIAddFile
mov ecx, reloc.Cabinet.dll_FCIAddFile
mov r9d, 0xf980
call fcn.14002815a
jmp 0x14003f9bf
mov rcx, rsi
xor edx, edx
mov r8, r15
mov r9d, r14d
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp fcn.14003dcd9
mov ebx, 7
jmp 0x14003f9d2
mov qword [rsp + 0x20], r12
mov rcx, rsi
mov rdx, rdi
mov r8, r15
mov r9d, r14d
call fcn.14003dcd9
mov ebx, eax
mov rax, qword [rsi + 0x80]
mov rcx, qword [rax + 0x10]
mov rdx, rdi
call fcn.14002e981
mov eax, ebx
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140058ab2
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, 0x78
mov qword [rsp + 0x40], rcx
mov r14d, dword [rdx]
test r14d, r14d
jle 0x140058c6f
mov esi, r9d
mov edi, r8d
mov rbx, rdx
mov cl, byte [rsp + 0xe0]
mov eax, ecx
and al, 1
xor al, 0x4f
movzx ebp, cl
and cl, 0xfd
mov rdx, qword [rsp + 0x40]
cmp byte [rdx + 0x23], 0
mov rdx, qword [rdx + 0x10]
mov qword [rsp + 0x38], rdx
movzx r15d, cl
cmovne r15d, ebp
dec esi
mov byte [rsp + 0x33], al
movzx eax, al
mov dword [rsp + 0x34], eax
add rbx, 0x28
xor r13d, r13d
mov r12, qword [rbx - 0x20]
test r15b, 4
je 0x140058b57
movzx r8d, word [rbx]
test r8d, r8d
je 0x140058b57
test r15b, 8
jne 0x140058c59
lea r9d, [rdi + r13]
add r8d, esi
mov dword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x38]
mov edx, dword [rsp + 0x34]
jmp 0x140058c52
test r15b, 2
jne 0x140058be6
lea ebp, [rdi + r13]
mov rcx, qword [rsp + 0x40]
mov rdx, r12
mov r8d, ebp
call fcn.14005731c
cmp eax, ebp
je 0x140058c5f
cmp byte [rsp + 0x33], 0x4e
jne 0x140058c3b
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx]
cmp byte [rcx + 0x61], 0
lea rcx, [0x140177e98]
jne 0x140058bbc
mov rdx, qword [rsp + 0x38]
movsxd rcx, dword [rdx + 0x90]
lea rcx, [rcx + rcx*2]
mov rdx, qword [rdx + 0x88]
lea rcx, [rdx + rcx*8]
add rcx, 0xffffffffffffffe8
cmp byte [rcx], 0x4e
jne 0x140058c3b
mov edx, dword [rcx + 0xc]
inc edx
mov r8d, esi
mov esi, dword [rcx + 4]
add esi, edx
cmp esi, eax
mov esi, r8d
jne 0x140058c3b
mov esi, dword [rcx + 8]
add esi, edx
cmp esi, ebp
mov esi, r8d
jne 0x140058c3b
mov dword [rcx + 0xc], edx
jmp 0x140058c5f
mov byte [rsp + 0x6c], 2
lea rax, [0x140059dd8]
mov qword [rsp + 0x50], rax
lea rax, [0x140059ebc]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x70], 0
test r12, r12
je 0x140058c28
lea rcx, [rsp + 0x48]
mov rdx, r12
call fcn.140059ed2
cmp byte [rsp + 0x6c], 0
je 0x140058b61
lea r8d, [rdi + r13]
mov rcx, qword [rsp + 0x40]
mov rdx, r12
call fcn.14005880b
jmp 0x140058c5f
mov dword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x38]
mov edx, dword [rsp + 0x34]
mov r8d, eax
mov r9d, ebp
call fcn.1400571db
jmp 0x140058c5f
dec r13d
dec r14d
inc r13d
add rbx, 0x28
cmp r13d, r14d
jl 0x140058b1d
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14007c6e1
Capabilities:
Set console window title

Disassembly:
sub rsp, 0x28
call fcn.140016714
lea rcx, [0x14014f610]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
lea rcx, [0x14007c723]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
lea rcx, [0x14014f646]
call fcn.140016430
mov ecx, 1
add rsp, 0x28
jmp fcn.14007c735
Function at 0x140090597
Capabilities:
Encode data using base64 via winapi

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov r14, r8
mov rsi, rdx
mov r15, rcx
lea r12, [rsp + 0x34]
mov dword [r12], 0
mov edx, dword [rdx]
mov rcx, qword [rsi + 8]
mov qword [rsp + 0x20], r12
xor ebx, ebx
mov r8d, 0x80000001
xor r9d, r9d
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x14009063b
mov edx, dword [rsp + 0x34]
add rdx, rdx
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
test rax, rax
je 0x14009063b
mov rdi, rax
mov edx, dword [rsi]
mov rcx, qword [rsi + 8]
mov qword [rsp + 0x20], r12
mov r8d, 0x80000001
mov r9, rax
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x140090630
mov qword [rsp + 0x20], r15
lea rdx, [0x140155e90]
mov rcx, r14
mov r8, r15
mov r9, rdi
call fcn.14002454b
mov ebx, eax
jmp 0x140090632
xor ebx, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400a5d12
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov r15, rcx
lea rdx, [rsp + 0x2c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor edi, edi
test rax, rax
je 0x1400a5dc3
cmp dword [rsp + 0x2c], 0
jle 0x1400a5dc3
mov rbx, rax
mov r14, rax
add r14, 8
lea rdi, str._ppp
xor esi, esi
mov rdx, qword [rdi]
mov rcx, qword [rbx]
call fcn.140103e94
test eax, eax
je 0x1400a5d99
test eax, eax
je 0x1400a5d78
lea rax, [rsi + 1]
add rdi, 0x20
cmp rsi, 0x12
mov rsi, rax
jb 0x1400a5d54
mov rcx, r15
call fcn.1401070c4
lea r8d, [rax + rax]
add r8d, 2
mov ecx, 0x22c003
mov rdx, r15
call fcn.140013320
xor edi, edi
jmp 0x1400a5dc3
mov eax, 0x1ff1c
bt rax, rsi
jb 0x1400a5db4
mov ecx, dword [rsp + 0x2c]
dec ecx
mov rdx, r14
call qword [rdi - 0x10]
mov edi, eax
jmp 0x1400a5dc3
mov ecx, dword [rdi - 8]
xor edi, edi
xor edx, edx
xor r8d, r8d
call fcn.140013320
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400aa4ac
Capabilities:
Encrypt data using rc4 via systemfunction032

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xe0
mov r15, r9
mov r14, r8
mov rdi, rdx
mov rsi, rcx
movabs rax, 0x1000000010
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], r9
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x60], rax
lea rcx, [0x14015ec20]
call fcn.140016430
xor ebx, ebx
mov qword [rsp + 0x30], rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [0x14015ec36]
mov rcx, rsi
mov rdx, rdi
xor r8d, r8d
call fcn.14001ba41
test eax, eax
je 0x1400aa5ed
mov rdx, qword [rsp + 0x40]
movzx eax, word [rdx]
cmp eax, 3
je 0x1400aa5fe
cmp ax, 2
jne 0x1400aa670
mov edx, dword [rdx + 0x68]
cmp edx, 1
jne 0x1400aa679
lea rbx, [rsp + 0x78]
mov rcx, rbx
call sub.cryptdll.dll_MD5Init
mov rdx, qword [rsp + 0x40]
add rdx, 0x70
mov rcx, rbx
mov r8d, 0x10
call sub.cryptdll.dll_MD5Update
lea rdx, [0x14015ebc0]
mov rcx, rbx
mov r8d, 0x2f
call sub.cryptdll.dll_MD5Update
mov rcx, rbx
mov rdx, r14
mov r8d, 0x10
call sub.cryptdll.dll_MD5Update
lea rdx, [0x14015ebf0]
mov rcx, rbx
mov r8d, reloc.WLDAP32.dll_Ordinal_41
call sub.cryptdll.dll_MD5Update
mov rcx, rbx
call sub.cryptdll.dll_MD5Final
mov rax, qword [rsp + 0x40]
movups xmm0, xmmword [rax + 0x80]
movups xmmword [r15], xmm0
lea rcx, [rsp + 0x68]
lea rdx, [rsp + 0x58]
call sub.advapi32.dll_SystemFunction032
test eax, eax
jns 0x1400aa64e
lea rcx, [0x14015ec40]
call fcn.140016430
jmp 0x1400aa690
lea rcx, [0x14015edb0]
call fcn.140016430
jmp 0x1400aa69d
mov eax, dword [rdx + 0x68]
cmp eax, 2
jne 0x1400aa682
mov r9d, dword [rdx + 0x74]
lea r8, [rdx + 0x88]
add rdx, 0x78
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, r14
call fcn.140007f0c
test eax, eax
je 0x1400aa690
cmp dword [rsp + 0x4c], 0x10
mov rcx, qword [rsp + 0x50]
jne 0x1400aa6ba
movups xmm0, xmmword [rcx]
movups xmmword [r15], xmm0
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r15
mov edx, 0x10
xor r8d, r8d
call fcn.140023ac7
mov ebx, 1
jmp 0x1400aa69d
lea rcx, [0x14015ed60]
jmp 0x1400aa689
lea rcx, str.d_s_s_n_s_
jmp 0x1400aa68b
lea rcx, str.H_r__r__rB_r__r__r__r6_r__rX_rc_rf_rc_rb_rz_r__r_ry_r
mov edx, eax
call fcn.140016430
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor ebx, ebx
lea rcx, [0x14015e220]
call fcn.140016430
mov eax, ebx
add rsp, 0xe0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rsi, qword [sym.imp.KERNEL32.dll_LocalFree]
call rsi
mov rcx, qword [rsp + 0x40]
call rsi
jmp 0x1400aa69b