joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180037ab8
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x50
xor ebx, ebx
mov r12, rdx
mov rsi, rcx
cmp rcx, rbx
je 0x180037b95
cmp rdx, rbx
je 0x180037b95
lea rdx, [rax + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebp, eax
cmp eax, ebx
je 0x180037b95
lea rcx, [rbp + rbp]
call fcn.180043168
mov rdi, rax
cmp rax, rbx
je 0x180037b95
mov r8, rbp
xor edx, edx
mov rcx, rax
call fcn.180044a90
mov r9, rdi
mov r8d, ebp
xor edx, edx
mov rcx, rsi
call sub.VERSION.dll_GetFileVersionInfoW
cmp eax, ebx
je 0x180037b8d
lea r9, [rsp + 0x98]
lea r8, [rsp + 0x40]
lea rdx, [0x18006a054]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
cmp eax, ebx
je 0x180037b8d
mov r8, qword [rsp + 0x40]
movzx ecx, word [r8 + 0xe]
movzx edx, word [r8 + 8]
movzx eax, word [r8 + 0xc]
movzx r9d, word [r8 + 0xa]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
lea r8, str._d._d._d._d
mov rcx, r12
mov edx, 0x104
call qword [sym.imp.SHLWAPI.dll_wnsprintfW]
mov ebx, 1
mov rcx, rdi
call fcn.180043128
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x180038588
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov dword [r11 + 0x20], r9d
sub rsp, 0x38
lea rax, [r11 + 0x20]
mov r9d, 4
mov rcx, 0xffffffff80000002
mov dword [r11 - 0x10], r9d
mov qword [r11 - 0x18], rax
call qword [sym.imp.SHLWAPI.dll_SHSetValueW]
xor ecx, ecx
cmp eax, ecx
sete cl
mov eax, ecx
add rsp, 0x38
ret

Function at 0x1800385c0
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov rax, qword [0x180080060]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor ebx, ebx
mov rdi, r9
mov r12, r8
mov rbp, rdx
mov rsi, rcx
cmp r9, rbx
je 0x1800385f8
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x1800385fa
mov eax, ebx
lea r9d, [rax + rax + 2]
mov r8, r12
mov rdx, rbp
mov dword [rsp + 0x28], r9d
mov r9d, 1
mov rcx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.SHLWAPI.dll_SHSetValueW]
cmp eax, ebx
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1800423f0
add rsp, 0x40
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x180038640
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x180080060]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor ebx, ebx
mov rdi, r9
mov rsi, r8
cmp r9, rbx
je 0x180038676
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x180038678
mov eax, ebx
lea ecx, [rax + 1]
lea rdx, str.SoftwareWOW6432Nodeprojonepodlp_
mov r9d, 1
mov dword [rsp + 0x28], ecx
mov rcx, 0xffffffff80000002
mov r8, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.SHLWAPI.dll_SHSetValueA]
cmp eax, ebx
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1800423f0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1800386c8
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x868
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x180080060]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov r12, r9
mov rdi, r8
mov rbp, rdx
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xor r13d, r13d
mov dword [rsp + 0x38], r13d
mov qword [rcx + 0x20], 7
mov qword [rcx + 0x18], r13
mov word [rcx + 8], r13w
mov dword [rsp + 0x38], 1
mov rsi, r13
cmp r8, r13
je 0x180038838
mov word [rsp + 0x50], r13w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rsp + 0x52]
call fcn.180044a90
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x34], r13d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x34]
mov r8, r12
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [rsp + 0x34], 1
je 0x180038788
cmp dword [rsp + 0x34], 2
jne 0x180038838
mov eax, dword [rsp + 0x30]
cmp eax, r13d
je 0x180038838
cmp eax, 0x800
jbe 0x1800387de
lea rcx, [rax + 2]
call fcn.180043168
mov rsi, rax
mov r8d, dword [rsp + 0x30]
add r8, 2
xor edx, edx
mov rcx, rax
call fcn.180044a90
lea r11, [rsp + 0x30]
mov qword [rsp + 0x28], r11
mov qword [rsp + 0x20], rsi
xor r9d, r9d
mov r8, r12
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
jmp 0x180038804
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, r12
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea rdx, [rsp + 0x50]
cmp rsi, r13
cmovne rdx, rsi
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call fcn.1800030e4
cmp rsi, r13
je 0x180038838
mov rcx, rsi
call fcn.180043128
mov rax, rbx
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.1800423f0
add rsp, 0x868
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x18003885c
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x60
and qword [r11 - 0x28], 0
and qword [r11 - 0x18], 0
lea rax, [r11 - 0x18]
mov qword [r11 - 0x30], rax
and qword [r11 - 0x38], 0
lea rdx, str.SoftwareWOW6432Nodeprojonepodlp_volatile_
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x1800388e3
mov rcx, qword [rsp + 0x50]
lea r9d, [rax + 4]
mov rax, qword [rsp + 0x90]
mov dword [rsp + 0x28], r9d
lea rdx, str.__hiExecuted
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x60
pop rbx
ret
Function at 0x180038920
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
push rbx
sub rsp, 0x30
xor ebx, ebx
lea rax, [r11 + 0x10]
lea r9, [r11 + 0x20]
mov qword [r11 - 0x10], rax
lea r8, str.6B335AF6_D799_4236_83F6_35CBFC841448
lea rdx, str.SoftwareWOW6432Nodeprojonepodlp_smpcache_
mov rcx, 0xffffffff80000002
mov qword [r11 - 0x18], rbx
mov dword [rsp + 0x58], ebx
mov dword [rsp + 0x48], ebx
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp eax, ebx
sete al
add rsp, 0x30
pop rbx
ret
Function at 0x180038ef8
Capabilities:
Resolve dns

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbx
push rbp
push rdi
sub rsp, 0x60
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rdi, rdx
mov rbx, rcx
and dword [rax + 0x18], 0
mov ecx, 8
call fcn.180042b10
test rax, rax
je 0x180038f2d
mov qword [rax], rbx
jmp 0x180038f2f
xor eax, eax
mov qword [rbx], rax
and qword [rbx + 0x18], 0
and qword [rbx + 0x20], 0
and qword [rbx + 0x28], 0
mov ebp, 1
mov dword [rsp + 0x90], ebp
test rdi, rdi
je 0x180038fec
and qword [rsp + 0x98], 0
mov edx, ebp
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8d, [rbp + 7]
mov rcx, rdi
call sub.DNSAPI.dll_DnsQuery_A
test eax, eax
jne 0x180038fec
mov rcx, qword [rsp + 0x98]
mov rax, rcx
test rcx, rcx
je 0x180038fe5
cmp word [rax + 0x10], bp
je 0x180038fa7
mov rax, qword [rax]
test rax, rax
jne 0x180038f97
jmp 0x180038fe5
mov edx, dword [rax + 0x20]
lea rcx, [rsp + 0x38]
call fcn.180036acc
nop
mov rdx, rax
mov rcx, rbx
call fcn.180002874
nop
cmp qword [rsp + 0x58], 0x10
jb 0x180038fdd
mov rcx, qword [rsp + 0x40]
call fcn.180042a14
mov rcx, qword [rsp + 0x98]
jmp 0x180038fe5
mov rcx, qword [rsp + 0x98]
mov edx, ebp
call sub.DNSAPI.dll_DnsFree
mov rax, rbx
add rsp, 0x60
pop rdi
pop rbp
pop rbx
ret

Function at 0x180038ff8
Capabilities:
Send icmp echo request

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x4a0
mov rax, qword [0x180080060]
xor rax, rsp
mov qword [rsp + 0x490], rax
xor ebx, ebx
mov ebp, r8d
mov rsi, rdx
mov rdi, rcx
cmp rcx, rbx
jne 0x180039030
xor eax, eax
jmp 0x180039148
cmp rdx, rbx
jne 0x180039041
lea rsi, str.abcdefghijklmnopqrstuvwabcdefghi
mov ebp, 0x20
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], ebx
call fcn.180036370
cmp eax, ebx
jne 0x1800390b9
lea rcx, [rsp + 0x68]
mov rdx, rdi
call fcn.180038dec
cmp qword [rsp + 0x80], rbx
jne 0x180039081
cmp qword [rsp + 0x88], 0x10
jb 0x180039029
mov rcx, qword [rsp + 0x70]
call fcn.180042a14
jmp 0x180039029
cmp qword [rsp + 0x88], 0x10
lea rcx, [rsp + 0x70]
cmovae rcx, qword [rsp + 0x70]
cmp rcx, rbx
je 0x1800390a4
lea rdx, [rsp + 0x60]
call fcn.180036370
cmp qword [rsp + 0x88], 0x10
jb 0x1800390b9
mov rcx, qword [rsp + 0x70]
call fcn.180042a14
call sub.IPHLPAPI.DLL_IcmpCreateFile
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180039029
lea rcx, [rsp + 0x91]
xor edx, edx
mov r8d, 0x3ff
mov byte [rsp + 0x90], bl
call fcn.180044a90
mov dword [rsp + 0x50], 0x7d0
mov dword [rsp + 0x48], 0x400
lea rax, [rsp + 0x90]
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x60]
mov qword [rsp + 0x38], rbx
mov word [rsp + 0x30], bp
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
call sub.IPHLPAPI.DLL_IcmpSendEcho2
cmp eax, ebx
je 0x18003913e
cmp dword [rsp + 0x94], ebx
mov eax, 1
cmove ebx, eax
mov rcx, rdi
call sub.IPHLPAPI.DLL_IcmpCloseHandle
mov eax, ebx
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.1800423f0
mov rbx, qword [rsp + 0x4d8]
add rsp, 0x4a0
pop rdi
pop rsi
pop rbp
ret
Function at 0x18003ba40
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
mov eax, 0x1038
call fcn.180057cb0
sub rsp, rax
mov rax, qword [0x180080060]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov r8, rcx
lea r9, [rsp + 0x1048]
lea rcx, [rsp + 0x20]
mov edx, 0x800
call qword [sym.imp.SHLWAPI.dll_wvnsprintfW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.1800423f0
add rsp, 0x1038
ret

Function at 0x18003bab0
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
mov eax, 0x1880
call fcn.180057cb0
sub rsp, rax
mov rax, qword [0x180080060]
xor rax, rsp
mov qword [rsp + 0x1870], rax
lea rax, [rsp + 0x38]
mov rbx, rcx
mov r8, rcx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
lea rdx, str.SoftwareWOW6432Nodeprojonepodlp_smpcache_
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x38], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x18003bb2b
cmp dword [rsp + 0x34], 4
jne 0x18003bb2b
mov eax, dword [rsp + 0x30]
jmp 0x18003bb2d
xor eax, eax
test eax, eax
je 0x18003bc0f
lea rcx, [rsp + 0x72]
xor edx, edx
mov r8d, 0x7fe
call fcn.180044a90
mov r11d, 0x5b
lea rcx, [rsp + 0x70]
mov r8d, 0x400
mov rdx, rbx
mov word [rsp + 0x70], r11w
call qword [sym.imp.SHLWAPI.dll_StrNCatW]
lea rdx, [0x18006a648]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rsp + 0x40]
mov edx, 1
call fcn.1800366ec
cmp qword [rax + 0x20], 8
jb 0x18003bb95
mov rdx, qword [rax + 8]
jmp 0x18003bb99
lea rdx, [rax + 8]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
cmp qword [rsp + 0x60], 8
jb 0x18003bbb6
mov rcx, qword [rsp + 0x48]
call fcn.180042a14
lea rdx, [0x18006a650]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, qword [rsp + 0x1898]
lea rcx, [rsp + 0x70]
mov r8d, 0x400
call qword [sym.imp.SHLWAPI.dll_StrNCatW]
lea r9, [rsp + 0x18a0]
lea r8, [rsp + 0x70]
lea rcx, [rsp + 0x870]
mov edx, 0x800
call qword [sym.imp.SHLWAPI.dll_wvnsprintfW]
lea rcx, [rsp + 0x870]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x1870]
xor rcx, rsp
call fcn.1800423f0
add rsp, 0x1880
pop rbx
ret

Function at 0x18003c054
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
or r11d, 0xffffffff
mov r9d, edx
mov r10, rcx
mov eax, r11d
test edx, edx
je 0x18003c08c
movzx r8d, byte [r10]
mov edx, eax
mov ecx, eax
xor r8, rdx
shr ecx, 8
inc r10
movzx edx, r8b
lea r8, [0x180081a00]
mov eax, dword [r8 + rdx*4]
xor eax, ecx
add r9d, r11d
jne 0x18003c065
not eax
ret
Function at 0x18003c090
Capabilities:
Hash data using sha1

Disassembly:
push rbx
sub rsp, 0xb0
mov rax, qword [0x180080060]
xor rax, rsp
mov qword [rsp + 0xa8], rax
and dword [rsp + 0x20], 0
and dword [rsp + 0x48], 0
and dword [rsp + 0x44], 0
mov rbx, rcx
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x67452301
mov dword [rsp + 0x34], 0xefcdab89
mov dword [rsp + 0x38], 0x98badcfe
mov dword [rsp + 0x3c], 0x10325476
mov dword [rsp + 0x40], 0xc3d2e1f0
call fcn.180041d54
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x90]
call fcn.180041e10
and qword [rbx + 0x18], 0
mov qword [rbx + 0x20], sendto
lea rdx, [rsp + 0x90]
mov r8d, reloc.WS2_32.dll_sendto
mov rcx, rbx
mov byte [rbx + 8], 0
call fcn.180002e60
mov rax, rbx
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1800423f0
add rsp, 0xb0
pop rbx
ret

Function at 0x18003c454
Capabilities:
Authenticate hmac
Encode data using xor
Hash data using sha256

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x178
mov rax, qword [0x180080060]
xor rax, rsp
mov qword [rsp + 0x160], rax
and dword [rsp + 0x20], 0
mov rsi, rdx
xor edx, edx
mov ebp, r8d
mov rdi, rcx
lea r8d, [rdx + 0x3f]
lea rcx, [rsp + 0xa1]
mov rbx, r9
mov byte [rsp + 0xa0], 0
call fcn.180044a90
mov eax, dword [rbx]
xor edx, edx
mov dword [rsp + 0xa0], eax
movzx eax, word [rbx + 4]
lea r9d, [rdx + 0x40]
mov word [rsp + 0xa4], ax
mov r8, r9
mov cl, byte [rsp + rdx + 0xa0]
inc rdx
mov al, cl
xor cl, 0x5c
xor al, 0x36
sub r8, 1
mov byte [rsp + rdx + 0x11f], cl
mov byte [rsp + rdx + 0xdf], al
jne 0x18003c4bc
and dword [rsp + 0x70], r8d
and qword [rsp + 0x78], r8
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x30]
mov ebx, 0x5be0cd19
mov r8d, r9d
mov dword [rsp + 0x80], 0x6a09e667
mov dword [rsp + 0x84], 0xbb67ae85
mov dword [rsp + 0x88], 0x3c6ef372
mov dword [rsp + 0x8c], 0xa54ff53a
mov dword [rsp + 0x90], 0x510e527f
mov dword [rsp + 0x94], 0x9b05688c
mov dword [rsp + 0x98], 0x1f83d9ab
mov dword [rsp + 0x9c], ebx
call fcn.180042108
lea rcx, [rsp + 0x30]
mov r8d, ebp
mov rdx, rsi
call fcn.180042108
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0xe0]
call fcn.180042168
xor esi, esi
lea rdx, [rsp + 0x120]
lea rcx, [rsp + 0x30]
lea r8d, [rsi + 0x40]
mov dword [rsp + 0x70], esi
mov qword [rsp + 0x78], rsi
mov dword [rsp + 0x80], 0x6a09e667
mov dword [rsp + 0x84], 0xbb67ae85
mov dword [rsp + 0x88], 0x3c6ef372
mov dword [rsp + 0x8c], 0xa54ff53a
mov dword [rsp + 0x90], 0x510e527f
mov dword [rsp + 0x94], 0x9b05688c
mov dword [rsp + 0x98], 0x1f83d9ab
mov dword [rsp + 0x9c], ebx
call fcn.180042108
lea ebx, [rsi + 0x20]
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x30]
mov r8d, ebx
call fcn.180042108
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0xa0]
call fcn.180042168
mov qword [rdi + 0x20], sendto
mov qword [rdi + 0x18], rsi
lea rdx, [rsp + 0xa0]
mov r8, rbx
mov rcx, rdi
mov byte [rdi + 8], sil
call fcn.180002e60
mov rax, rdi
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1800423f0
add rsp, 0x178
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18003e348
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc0
xor r15d, r15d
mov r13, r8
mov r14, rdx
mov rbx, rcx
cmp dword [0x1800899d4], r15d
je 0x18003e38d
xor edx, edx
xor ecx, ecx
mov dword [0x1800899d4], r15d
call qword [sym.imp.ole32.dll_CoInitializeEx]
lea rax, [rsp + 0x68]
mov edi, 1
lea r9, [0x180065340]
lea rcx, [0x180065410]
xor edx, edx
mov r8d, edi
mov qword [rsp + 0x20], rax
mov ebp, r15d
mov qword [rsp + 0x68], r15
call qword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, r15d
jge 0x18003e3c9
xor eax, eax
jmp 0x18003e52d
mov rcx, qword [rsp + 0x68]
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x58], r15
mov rax, qword [rcx]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
lea rdx, [0x1800672c0]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
call qword [rax + 0x18]
cmp eax, r15d
jl 0x18003e520
mov rcx, qword [rsp + 0x58]
mov eax, 3
mov dword [rsp + 0x38], r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], eax
lea edx, [rax + 7]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], eax
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
cmp eax, r15d
jl 0x18003e515
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x60], r15
mov rax, qword [rcx]
mov qword [rsp + 0x28], rdx
lea rdx, [0x18006a8b8]
mov r9d, 0x30
mov r8, rbx
mov qword [rsp + 0x20], r15
call qword [rax + SHCreateDirectory]
cmp eax, r15d
jl 0x18003e515
mov ebp, edi
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0x50]
lea r9, [rsp + 0x70]
mov rax, qword [rcx]
mov qword [rsp + 0x20], rdx
mov r8d, 0xa
or edx, 0xffffffff
mov esi, r15d
call qword [rax + 0x20]
mov ecx, dword [rsp + 0x50]
mov r12d, eax
cmp ecx, r15d
je 0x18003e50a
mov edi, r15d
jbe 0x18003e4da
lea rbx, [rsp + 0x70]
mov rcx, qword [rbx]
mov rdx, r13
call r14
mov ecx, dword [rsp + 0x50]
cmp eax, r15d
je 0x18003e4d8
inc edi
add rbx, 8
cmp edi, ecx
jb 0x18003e4ba
jmp 0x18003e4da
mov esi, ebp
mov edi, r15d
cmp ecx, r15d
jbe 0x18003e4fc
lea rbx, [rsp + 0x70]
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + recvfrom]
inc edi
add rbx, 8
cmp edi, dword [rsp + 0x50]
jb 0x18003e4e7
cmp esi, r15d
jne 0x18003e50a
cmp r12d, r15d
je 0x18003e47e
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rcx]
call qword [rdx + recvfrom]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rcx]
call qword [rdx + recvfrom]
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rcx]
call qword [rdx + recvfrom]
mov eax, ebp
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x18003f2d4
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x60
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
mov rax, qword [0x180080060]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r12, rdx
mov rbx, rcx
and dword [rsp + 0x20], 0
xor esi, esi
xor eax, eax
or r14, 0xffffffffffffffff
mov rcx, r14
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
mov r13, rcx
mov qword [r11 - 0x38], 0xf
mov qword [r11 - 0x40], rax
mov byte [rsp + 0x38], al
je 0x18003f4c6
lea rdi, [0x180069410]
movsx rax, byte [r12 + rsi]
mov cl, byte [rax + rdi]
inc rsi
cmp rsi, r13
jae 0x18003f35a
cmp cl, r14b
je 0x18003f345
cmp cl, r14b
je 0x18003f4c6
movsx rax, byte [r12 + rsi]
mov bpl, byte [rax + rdi]
inc rsi
cmp rsi, r13
jae 0x18003f379
cmp bpl, r14b
je 0x18003f363
cmp bpl, r14b
je 0x18003f4c6
mov r8b, bpl
sar r8b, 4
and r8b, 3
shl cl, 2
or r8b, cl
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.18000daac
jmp 0x18003f3ab
lea rdi, [0x180069410]
mov al, byte [r12 + rsi]
inc rsi
cmp al, 0x3d
je 0x18003f48a
movsx rax, al
mov dil, byte [rax + rdi]
cmp rsi, r13
jae 0x18003f3cc
cmp dil, r14b
je 0x18003f3a4
cmp dil, r14b
je 0x18003f4c6
mov r8b, dil
sar r8b, 2
and r8b, 0xf
shl bpl, 4
or r8b, bpl
mov ebp, 1
mov rdx, rbp
lea rcx, [rsp + 0x30]
call fcn.18000daac
lea rdx, [0x180069410]
mov al, byte [r12 + rsi]
add rsi, rbp
cmp al, 0x3d
je 0x18003f44e
movsx rax, al
mov cl, byte [rax + rdx]
cmp rsi, r13
jae 0x18003f41c
cmp cl, r14b
je 0x18003f400
cmp cl, r14b
je 0x18003f4c6
shl dil, 6
or dil, cl
mov r8b, dil
mov rdx, rbp
lea rcx, [rsp + 0x30]
call fcn.18000daac
cmp rsi, r13
lea rdi, [0x180069410]
jb 0x18003f345
jmp 0x18003f4c6
mov qword [rbx + 0x20], sendto
and qword [rbx + 0x18], 0
mov byte [rbx + 8], 0
mov r9, r14
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.180002954
nop
cmp qword [rsp + 0x50], 0x10
jb 0x18003f485
mov rcx, qword [rsp + 0x38]
call fcn.180042a14
mov rax, rbx
jmp 0x18003f500
mov qword [rbx + 0x20], sendto
and qword [rbx + 0x18], 0
mov byte [rbx + 8], 0
mov r9, r14
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.180002954
nop
cmp qword [rsp + 0x50], 0x10
jb 0x18003f4c1
mov rcx, qword [rsp + 0x38]
call fcn.180042a14
mov rax, rbx
jmp 0x18003f500
mov qword [rbx + 0x20], sendto
and qword [rbx + 0x18], 0
mov byte [rbx + 8], 0
mov r9, r14
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.180002954
nop
cmp qword [rsp + 0x50], 0x10
jb 0x18003f4fd
mov rcx, qword [rsp + 0x38]
call fcn.180042a14
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800423f0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x18003f8a4
Capabilities:
Encrypt data using aes
Reference aes constants

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, 0x20
xor eax, eax
xor esi, esi
mov rbp, r8
mov qword [rcx], rax
mov qword [rcx + 8], rax
mov eax, dword [rcx + 0x10]
shl eax, 2
mov r10, rdx
mov rbx, rcx
cmp eax, esi
mov r9d, esi
jle 0x18003f912
mov eax, r9d
inc r9d
cdq
and edx, 3
add eax, edx
mov ecx, eax
and eax, 3
sub eax, edx
sar ecx, 2
movsxd rdx, eax
movsxd rax, ecx
lea rcx, [rbx + rax]
mov al, byte [r10]
inc r10
mov byte [rcx + rdx*4], al
mov eax, dword [rbx + 0x10]
shl eax, 2
cmp r9d, eax
jl 0x18003f8de
mov edx, dword [rbx + 0x18]
mov rcx, rbx
call fcn.18003fa18
mov edi, dword [rbx + 0x18]
lea r14, [0x180081f10]
jmp 0x18003f96d
mov r9, rsi
movzx edx, byte [r11 + r9]
mov ecx, edx
and edx, 0xf
shr ecx, 4
shl rcx, 4
add rcx, rdx
mov al, byte [rcx + r14]
mov byte [r11 + r9], al
inc r9
cmp r9, 4
jl 0x18003f92c
add r11, 4
sub r8, 1
jne 0x18003f929
mov edx, edi
mov rcx, rbx
call fcn.18003fa18
mov rcx, rbx
call fcn.18003fb58
mov rcx, rbx
dec edi
call fcn.18003fad0
cmp edi, 1
mov r11, rbx
mov r8d, 4
jge 0x18003f929
mov r9, rsi
movzx edx, byte [r11 + r9]
mov ecx, edx
and edx, 0xf
shr ecx, 4
shl rcx, 4
add rcx, rdx
mov al, byte [rcx + r14]
mov byte [r11 + r9], al
inc r9
cmp r9, 4
jl 0x18003f988
add r11, 4
sub r8, 1
jne 0x18003f985
xor edx, edx
mov rcx, rbx
call fcn.18003fa18
mov eax, dword [rbx + 0x10]
shl eax, 2
cmp eax, esi
jle 0x18003f9fc
mov eax, esi
inc esi
cdq
and edx, 3
add eax, edx
mov ecx, eax
and eax, 3
sub eax, edx
sar ecx, 2
movsxd rdx, eax
movsxd rax, ecx
lea rcx, [rbx + rax]
mov al, byte [rcx + rdx*4]
mov byte [rbp], al
mov eax, dword [rbx + 0x10]
inc rbp
shl eax, 2
cmp esi, eax
jl 0x18003f9cb
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x18003fa18
Capabilities:
Encode data using xor

Disassembly:
movsxd rax, edx
mov r11d, 4
add rax, rax
mov r10, r11
lea rdx, [rcx + rax*8 + 0x3c]
xor r8d, r8d
mov r9, rdx
mov al, byte [r9]
add r9, r11
xor byte [rcx + r8], al
inc r8
cmp r8, r11
jl 0x18003fa32
inc rdx
add rcx, r11
sub r10, 1
jne 0x18003fa2c
repz ret