joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14020da20
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1402ee010]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0x9f8]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], pe_nt_image_headers64
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x14020dab5
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x14020db16
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1401ebac0
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140084100
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x14020dbd1
sub ecx, 1
je 0x14020dc44
sub ecx, 1
je 0x14020db80
cmp ecx, 1
je 0x14020db63
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x140253ae0]
call fcn.1401ebac0
jmp 0x14020dc44
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.14020d750
test eax, eax
je 0x14020dc44
jmp 0x14020daea
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x14020dc44
sub rax, rsi
cmp rax, rbp
jae 0x14020dc44
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.1401ebc40
jmp 0x14020dc44
cmp r8d, 4
jle 0x14020dc44
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x14020dc44
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1401eb9e0
mov esi, eax
test eax, eax
je 0x14020dc23
mov edx, 5
mov rcx, rbx
call fcn.14020e710
mov eax, esi
jmp 0x14020daea
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1401f5e20
mov rcx, r14
call fcn.1401f6100
test eax, eax
je 0x14020dae8
mov edx, 5
mov rcx, rbx
call fcn.14020e710
mov eax, Ordinal_46
jmp 0x14020daea
Function at 0x14021f500
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1402ee010]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, r8
mov dword [rbp - 0x40], 8
mov rbx, rdx
mov dword [rsp + 0x20], 0xf0000000
mov rsi, rcx
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x38]
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14021f637
movzx edx, byte [rdi + 1]
movzx ecx, byte [rdi]
movzx eax, dl
movzx r8d, byte [rdi + 5]
shr al, 1
mov byte [rbp - 0x1c], cl
shl cl, 7
or al, cl
shl dl, 6
movzx ecx, byte [rdi + 2]
mov byte [rbp - 0x1b], al
movzx eax, cl
shr al, 2
or al, dl
shl cl, 5
movzx edx, byte [rdi + 3]
mov byte [rbp - 0x1a], al
movzx eax, dl
shr al, 3
or al, cl
shl dl, 4
movzx ecx, byte [rdi + 4]
mov byte [rbp - 0x19], al
movzx eax, cl
shr al, 4
or al, dl
shl cl, 3
mov byte [rbp - 0x18], al
movzx eax, r8b
shr al, 5
or al, cl
shl r8b, 2
movzx ecx, byte [rdi + 6]
mov byte [rbp - 0x17], al
movzx eax, cl
add cl, cl
shr al, 6
or al, r8b
mov byte [rbp - 0x15], cl
mov qword [rsp + 0xa0], r14
lea rcx, [rbp - 0x1c]
xor r14d, r14d
mov byte [rbp - 0x16], al
mov dword [rbp - 0x28], 0x208
mov dword [rbp - 0x24], 0x6601
mov dword [rbp - 0x20], 8
lea edx, [r14 + 8]
call fcn.140221580
mov rcx, qword [rbp - 0x38]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
lea r8d, [r14 + 0x14]
xor r9d, r9d
mov dword [rsp + 0x20], r14d
lea rdx, [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov r14, qword [rsp + 0xa0]
test eax, eax
jne 0x14021f63b
mov rcx, qword [rbp - 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
jmp 0x14021f680
mov rax, qword [rsi]
xor r9d, r9d
mov rcx, qword [rbp - 0x30]
xor r8d, r8d
mov qword [rbx], rax
xor edx, edx
mov eax, dword [rbp - 0x40]
mov dword [rsp + 0x30], eax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rbp - 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140084100
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x1402215f0
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1402ee010]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebp, ebp
mov dword [rsp + 0x20], 0xf0000000
mov rsi, r8
mov qword [rsp + 0x38], rbp
mov rdi, rdx
mov qword [rsp + 0x40], rbp
mov rbx, rcx
xor r8d, r8d
lea r9d, [rbp + 1]
xor edx, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x140221660
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8002
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov rcx, rsi
call fcn.1401ee380
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, eax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x20], ebp
lea edx, [r8 + 2]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x30], 0x10
jne 0x1402216be
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov r8, rbx
mov dword [rsp + 0x20], ebp
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1402216ce
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1402216e0
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140084100
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x140221770
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1402217b2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1402217f9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x140221852
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x140221810
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140221893
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1402c92aa]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1402c92ab]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140221860
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x140722de2
Capabilities:
Encode data using xor

Disassembly:
push rdx
push qword [rsp + 0x10]
popfq
lea rsp, [rsp + 0x20]
and al, 0x20
call fcn.140e224ce
lodsd eax, dword [rsi]
out 0xf4, al
pop rbp
xchg ebx, eax
movabs al, byte [0xeb9cd4ff769cd5bd]
sbb cl, byte [rcx]
xor al, 0x14
xor al, 0xd4
xor ah, bh
sbb byte [rbp + 0x66], ah
loopne 0x140722dea
invalid
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
push rcx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
push rsi
mov rsi, qword [rdx + 0x50]
movzx rcx, word [rdx + 0x4a]
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov r8d, dword [rax + 0x20]
mov ecx, dword [rax + 0x18]
push rax
add r8, rdx
jrcxz 0x1400040ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
pop r8
add rax, rdx
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x1400041f0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
sub rsp, 0x30
mov rsi, r8
mov rbp, rdx
mov r12, rcx
test r8, r8
jne 0x140004223
lea eax, [r8 + 0xd]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rdi
xor edi, edi
mov rbx, r8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea rbx, [rbx + rax*2]
lea edi, [rdi + rax*2]
cmp eax, 1
jne 0x140004232
mov rcx, qword [r12]
lea r9d, [rax + 6]
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
Function at 0x1400048a0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1400170d0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov edi, dword [rcx + 8]
xor eax, eax
mov rsi, rcx
mov rcx, qword [rcx]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x58]
or edi, 0x2001f
xor r8d, r8d
mov r9d, edi
mov rbp, rdx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x1400049ec
test rcx, rcx
je 0x140004915
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x58]
and edi, 0x300
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x50], edi
test ebx, ebx
jne 0x1400049ec
xor edi, edi
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400049c1
nop word [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1400048a0
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x1400049ec
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
xor edx, edx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140004970
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400049d6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rdi
mov rdx, rbp
mov rcx, rsi
mov dword [rsp + 0x50], edi
call fcn.140004ad0
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test rcx, rcx
je 0x1400049f7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140007200
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret

Function at 0x140004ad0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp byte [0x1400197d8], 0
mov rdi, rdx
mov rbx, rcx
jne 0x140004b2b
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004b1b
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x1400197d8], 1
mov qword [0x1400197e0], rax
jmp 0x140004b32
mov rax, qword [0x1400197e0]
mov byte [0x1400197d8], 1
jmp 0x140004b32
mov rax, qword [0x1400197e0]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x140004b51
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
Function at 0x140005870
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x4b0], rbx
mov rax, qword [0x1400170d0]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rsi, r9
mov rbx, r8
mov rax, rdx
xor r12d, r12d
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x70], r12
xor edx, edx
lea r8d, [r12 + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x1400058e8
call fcn.140003a80
mov ebx, eax
jmp 0x140005a2a
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14000590b
call fcn.140003a80
mov ebx, eax
jmp 0x140005a20
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x140005930
call fcn.140003a80
mov ebx, eax
jmp 0x140005a20
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x140005969
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x14000595f
lea rcx, [rsp + 0x70]
call fcn.140003a70
nop
mov eax, 0x8007000e
jmp 0x140005a43
mov ecx, eax
test eax, eax
je 0x1400059a6
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x14000599c
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x1400059a6
lea rcx, [rsp + 0x70]
call fcn.1400041c0
mov rax, qword [rsp + 0x70]
jmp 0x1400059b0
mov ecx, 0x80070057
call fcn.140006060
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x1400059c8
test rax, rax
jne 0x1400059d4
mov ebx, 0x8007000e
jmp 0x140005a20
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1400059fb
call fcn.140003a80
mov ebx, eax
jmp 0x140005a20
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r12w
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140005660
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x140005a41
lea rcx, [rsp + 0x70]
call fcn.140003a70
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140007200
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop r12
pop rdi
pop rsi
ret

Function at 0x1400061d0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x1400170d0]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor r9d, r9d
mov rbx, rdx
lea rdx, [rsp + 0x20]
lea r8d, [r9 + 0x26]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x14000620d
mov eax, 0x80004005
jmp 0x14000621d
lea rcx, [rsp + 0x20]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140007200
add rsp, 0x240
pop rbx
ret
Function at 0x140006240
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x1400170d0]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor r9d, r9d
mov rbx, rdx
lea rdx, [rsp + 0x20]
lea r8d, [r9 + 0x2b]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x14000627d
mov eax, 0x80004005
jmp 0x14000628d
lea rcx, [rsp + 0x20]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140007200
add rsp, 0x240
pop rbx
ret

Function at 0x1400062b0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x1400170d0]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rdx
lea rcx, [rsp + 0x20]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1400062f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x140006306
movzx eax, ax
or eax, 0x80070000
jmp 0x140006306
lea rcx, [rsp + 0x20]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140007200
add rsp, 0x240
pop rbx
ret

Function at 0x140006320
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x1400170d0]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rdx
lea rcx, [rsp + 0x20]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
jne 0x140006366
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x140006376
movzx eax, ax
or eax, 0x80070000
jmp 0x140006376
lea rcx, [rsp + 0x20]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140007200
add rsp, 0x240
pop rbx
ret

Function at 0x140007d1c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xd0
mov qword [rbp - 0x40], 6
mov r13, 7
Function at 0x140007d40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, 0x54
mov r10, qword [rbp - 0x40]
cqo
idiv r10
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x58], 9
xor r15d, r15d
mov r10, qword [rbp - 0x58]
mov r14, r10
sub r14, 9
movabs r10, 0x6fe
mov qword [rbp - 0xb8], r10
mov edi, 0xd1df8d2e
mov r14d, 0x4275
mov r10, qword [rbp - 0xb8]
movabs r9, 0x92772
mov r15, r10
imul r15, r9
mov r10d, r14d
movabs r9, 0x76cc
mov r14, r10
add r14, r9
movabs r10, 0x100000000
mov qword [rbp - 0x60], r10
add r15, qword [rbp - 0x60]
mov r10, qword [rbp - 0x40]
mov r12, r10
sub r12, 6
mov esi, 0x1e4b
movabs r10, 0x62c
add r15, r10
mov r10d, r14d
movabs r9, 0x43abf
mov r14, r10
add r14, r9
sub edi, 1
sub r15, rsi
mov r10, qword [rbp - 0x40]
sub r10, 3
mov r9d, esi
mov r11, r10
add r11, r9
jmp 0x140007e72
mov r10d, r11d
mov r10b, byte [r15 + r10]
mov byte [rbp - 0x31], r10b
movzx r10d, byte [rbp - 0x31]
mov dword [rbp - 0xf4], r10d
mov eax, r12d
mov qword [rbp - 0xf0], rax
mov rax, 0x2a
cqo
idiv r13
mov r10, rax
mov rax, qword [rbp - 0xf0]
cqo
idiv r10
mov r10d, edi
mov r9, rax
add r9, r10
movzx r10d, r9b
movsxd r9, dword [rbp - 0xf4]
xor r9d, r10d
mov byte [rbp - 0x31], r9b
mov r10d, r11d
mov r9b, byte [rbp - 0x31]
mov byte [r15 + r10], r9b
lea r11, [r11 + 1]
mov r10d, esi
add r10d, r14d
cmp r11d, r10d
jb 0x140007e0c
mov qword [rbp - 0x88], 0x4001d948
lea r12, [r12 + 1]
mov qword [rbp - 0x78], 0x400a4000
mov r10, qword [rbp - 0x60]
add qword [rbp - 0x78], r10
mov r10, qword [rbp - 0x60]
add qword [rbp - 0x88], r10
mov r10, qword [rbp - 0x50]
sub r10, 8
mov r9d, r12d
cmp r10, r9
jge 0x140007df9
mov qword [rbp - 0x90], 0x401df000
mov r10, qword [rbp - 0x50]
sub r10, 0xe
mov dword [rbp - 0x64], r10d
mov r10d, dword [rbp - 0x64]
mov r9, qword [rbp - 0x88]
mov r10b, byte [r9 + r10]
mov byte [rbp - 0x31], r10b
mov r10d, dword [rbp - 0x64]
mov r9, qword [rbp - 0x78]
mov r8b, byte [rbp - 0x31]
mov byte [r9 + r10], r8b
mov r10d, r10d
lea r10, [r10 + 1]
mov dword [rbp - 0x64], r10d
movabs r9, 0x3dbf0
cmp r10, r9
jl 0x140007ed3
mov qword [rbp - 0x98], 0x4005cd48
mov r10, qword [rbp - 0x60]
add qword [rbp - 0x90], r10
mov r10, qword [rbp - 0x60]
add qword [rbp - 0x98], r10
mov r10, qword [rbp - 0x58]
add r10, qword [rbp - 0x40]
sub r10, 0xf
mov dword [rbp - 0x68], r10d
mov r10d, dword [rbp - 0x68]
lea r10, [r10 + 1]
mov dword [rbp - 0x68], r10d
mov r9, qword [rbp - 0x90]
mov r8, r13
add r8, qword [rbp - 0x40]
sub r8, 0xc
mov rdx, r10
sub rdx, r8
mov qword [rbp - 0xf0], rdx
mov r8, qword [rbp - 0x98]
mov rax, 7
cqo
idiv r13
sub r10, rax
mov r10b, byte [r10 + r8]
mov r8, qword [rbp - 0xf0]
mov byte [r8 + r9], r10b
mov r10d, dword [rbp - 0x68]
movabs r9, 0xe0a0
cmp r10, r9
jl 0x140007f41
mov qword [rbp - 0x48], 0x4006c348
movabs r10, 0x4006d134
mov qword [rbp - 0xa0], r10
movabs r10, 0x8000000
mov qword [rbp - 0xc0], r10
mov r10, qword [rbp - 0xa0]
add r10, qword [rbp - 0x60]
mov qword [rbp - 0xa0], r10
Function at 0x14000882b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400170d0]
jne 0x14000721a
rol rcx, 0x10
test cx, 0xffff
jne 0x140007216
repz ret
ror rcx, 0x10
jmp 0x140008784
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140018900]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1400189f8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140008809
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140018900]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14000882b
mov rax, qword [rsp + 0x88]
mov qword [0x1400189f8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140018998], rax
mov rax, qword [0x1400189f8]
mov qword [0x140018870], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140018980], rax
mov dword [0x140018860], 0xc0000409
mov dword [0x140018864], 1
mov rax, qword [0x1400170d0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400170d8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400188f8], eax
mov ecx, 1
call fcn.14000bfa8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400106f8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400188f8], 0
jne 0x1400088b2
mov ecx, 1
call fcn.14000bfa8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret