joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14258c058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14258c1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14258c089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14258c06f
add dl, dl
jne 0x14258c096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14258c0f6
xor eax, eax
add dl, dl
jne 0x14258c0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14258c1ad
add dl, dl
jne 0x14258c0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14258c0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14258c0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14258c0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14258c0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14258c07e
mov eax, 1
add dl, dl
jne 0x14258c106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14258c113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14258c0fb
sub eax, ebx
mov ebx, 1
jne 0x14258c14c
mov ecx, 1
add dl, dl
jne 0x14258c12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14258c13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14258c123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14258c07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14258c168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14258c175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14258c15d
cmp eax, 0x7d00
jae 0x14258c19b
cmp eax, 0x500
jb 0x14258c196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14258c07e
cmp eax, 0x7f
ja 0x14258c19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14258c07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14258c1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14258c07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180015680
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
movabs rax, 0xcbf29ce484222325
mov qword [rsp], rax
mov qword [rsp + 8], 0
jmp 0x1800156b4
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 8], rax
jae 0x1800156fc
mov rax, qword [rsp + 8]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rsp]
xor rcx, rax
mov rax, rcx
mov qword [rsp], rax
movabs rax, 0x100000001b3
mov rcx, qword [rsp]
imul rcx, rax
mov rax, rcx
mov qword [rsp], rax
jmp 0x1800156a7
mov rax, qword [rsp]
add rsp, 0x18
ret
Function at 0x180032dc0
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 8], rcx
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x10], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x10], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0x67452301
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0xefcdab89
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0x98badcfe
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0x10325476
ret
Function at 0x180062270
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x2b8
mov rax, qword [rsp + 0x2c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov rcx, rax
call fcn.180006c30
mov rcx, qword [rsp + 0x2c0]
call fcn.180008800
mov rax, qword [rsp + 0x2c0]
mov qword [rsp + 0x98], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftCryptography
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180062383
mov dword [rsp + 0x38], 0x104
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
lea rdx, str.MachineGuid
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180062376
cmp dword [rsp + 0x3c], 1
jne 0x180062376
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x30], 0xffffffffffffffff
inc qword [rsp + 0x30]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
cmp word [rax + rcx*2], 0
jne 0x18006233c
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x58], rax
mov r8, qword [rsp + 0x58]
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x2c0]
call fcn.180059840
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1800623b1
lea rdx, str.Error:_Unable_to_open_registry_key.
lea rcx, [0x180479cc0]
call fcn.18000cc80
mov qword [rsp + 0x60], rax
lea rax, [0x18001d1c0]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x60]
call qword [rsp + 0x68]
nop
jmp 0x1800623b3
mov rax, qword [rsp + 0x2c0]
add rsp, 0x2b8
ret
Function at 0x18007abb0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov rax, qword [rsp + 0x20]
mov qword [rsp], rax
mov qword [rsp + 8], 0
jmp 0x18007abdf
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 4
jae 0x18007ac23
mov rax, qword [rsp + 8]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rsp]
xor rcx, rax
mov rax, rcx
mov qword [rsp], rax
movabs rax, 0x100000001b3
mov rcx, qword [rsp]
imul rcx, rax
mov rax, rcx
mov qword [rsp], rax
jmp 0x18007abd2
mov rax, qword [rsp]
add rsp, 0x18
ret
Function at 0x18008d5a0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov byte [rsp + 0x20], 0
mov rax, qword [rsp + 0x78]
cmp qword [rax + 0x10], 0
jne 0x18008d5c9
mov dword [rsp + 0x24], 1
jmp 0x18008d5d1
mov dword [rsp + 0x24], 0
movzx eax, byte [rsp + 0x24]
test eax, eax
jne 0x18008d67e
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [rsp + Ordinal_41]
movzx eax, al
test eax, eax
jne 0x18008d67e
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x40]
call fcn.180096bb0
lea rcx, [rsp + 0x40]
call fcn.180008bc0
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x18008d631
mov byte [rsp + 0x20], 1
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x18008d674
lea rdx, str.Error_creating_directory
lea rcx, [0x180479de0]
call fcn.18000cc80
mov rdx, qword [rsp + 0x78]
mov rcx, rax
call fcn.18000cc30
mov qword [rsp + 0x30], rax
lea rax, [0x18001d1c0]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x30]
call qword [rsp + gethostname]
lea rcx, [rsp + 0x40]
call fcn.180008940
movzx eax, byte [rsp + 0x20]
add rsp, 0x68
ret
Function at 0x1800bc8a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r9, qword [rsp + 0x48]
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call fcn.1801adc80
add rsp, 0x28
ret

Function at 0x1800be110
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov eax, dword [rsp + 0x40]
not eax
mov dword [rsp], eax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 8], rax
lea rax, [0x1801ea4f0]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x38]
dec rax
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x10], 0
je 0x1800be19e
mov eax, dword [rsp]
shr eax, 8
mov ecx, dword [rsp]
and ecx, 0xff
mov rdx, qword [rsp + 8]
movzx edx, byte [rdx]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rsp + 0x18]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 4], eax
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
mov eax, dword [rsp + 4]
mov dword [rsp], eax
jmp 0x1800be142
mov eax, dword [rsp]
not eax
add rsp, 0x28
ret
Function at 0x1800be1b0
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov eax, dword [rsp + 0x40]
not eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 4], eax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 8], rax
lea rax, [0x1801ea4f0]
mov qword [rsp + 0x10], rax
cmp qword [rsp + 0x38], 0
je 0x1800be2b4
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x38]
dec rax
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x18], 0
je 0x1800be2af
mov rax, qword [rsp + 8]
movzx eax, byte [rax]
mov byte [rsp + 2], al
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
movzx eax, byte [rsp + 2]
mov byte [rsp + 1], al
movzx eax, byte [rsp + 1]
cmp eax, 0x23
jne 0x1800be284
cmp qword [rsp + 0x38], 2
jb 0x1800be284
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x1800be284
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x1800be284
mov eax, dword [rsp + 0x40]
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
shr eax, 8
mov ecx, dword [rsp + 4]
and ecx, 0xff
movzx edx, byte [rsp + 1]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rsp + 0x10]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 4], eax
jmp 0x1800be1f7
jmp 0x1800be346
mov rax, qword [rsp + 8]
movzx eax, byte [rax]
mov byte [rsp + 3], al
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
movzx eax, byte [rsp + 3]
mov byte [rsp], al
movzx eax, byte [rsp]
test eax, eax
je 0x1800be346
movzx eax, byte [rsp]
cmp eax, 0x23
jne 0x1800be31c
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x1800be31c
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x1800be31c
mov eax, dword [rsp + 0x40]
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
shr eax, 8
mov ecx, dword [rsp + 4]
and ecx, 0xff
movzx edx, byte [rsp]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rsp + 0x10]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 4], eax
jmp 0x1800be2b4
mov eax, dword [rsp + 4]
not eax
add rsp, 0x28
ret
Function at 0x1800e50c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov byte [rsp + 0x20], r9b
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x78
mov rax, qword [rsp + 0xa0]
movss xmm0, dword [rax + 4]
movss dword [rsp + 0x60], xmm0
mov rax, qword [rsp + 0xa0]
movss xmm0, dword [rax]
movss dword [rsp + 0x58], xmm0
mov rax, qword [rsp + 0x98]
movss xmm0, dword [rax + 4]
movss dword [rsp + 0x50], xmm0
mov rax, qword [rsp + 0x98]
movss xmm0, dword [rax]
movss dword [rsp + 0x48], xmm0
movss xmm0, dword [rsp + 0x48]
movss dword [rsp + 0x20], xmm0
movss xmm0, dword [rsp + 0x50]
movss dword [rsp + 0x24], xmm0
movss xmm0, dword [rsp + 0x58]
movss dword [rsp + 0x28], xmm0
movss xmm0, dword [rsp + 0x60]
movss dword [rsp + 0x2c], xmm0
movzx eax, byte [rsp + 0xa8]
test eax, eax
je 0x1800e51e6
lea rax, [rsp + 0x38]
mov rcx, qword [rsp + 0x90]
mov rdi, rax
lea rsi, [rcx + 0x88]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
movss xmm0, dword [rsp + 0x38]
comiss xmm0, dword [rsp + 0x20]
jbe 0x1800e519b
movss xmm0, dword [rsp + 0x38]
movss dword [rsp + 0x20], xmm0
movss xmm0, dword [rsp + 0x3c]
comiss xmm0, dword [rsp + 0x24]
jbe 0x1800e51b4
movss xmm0, dword [rsp + 0x3c]
movss dword [rsp + 0x24], xmm0
movss xmm0, dword [rsp + 0x28]
comiss xmm0, dword [rsp + 0x40]
jbe 0x1800e51cd
movss xmm0, dword [rsp + 0x40]
movss dword [rsp + 0x28], xmm0
movss xmm0, dword [rsp + 0x2c]
comiss xmm0, dword [rsp + 0x44]
jbe 0x1800e51e6
movss xmm0, dword [rsp + 0x44]
movss dword [rsp + 0x2c], xmm0
movss xmm0, dword [rsp + 0x20]
comiss xmm0, dword [rsp + 0x28]
jb 0x1800e5201
movss xmm0, dword [rsp + 0x20]
movss dword [rsp + 0x30], xmm0
jmp 0x1800e520d
movss xmm0, dword [rsp + 0x28]
movss dword [rsp + 0x30], xmm0
movss xmm0, dword [rsp + 0x30]
movss dword [rsp + 0x28], xmm0
movss xmm0, dword [rsp + 0x24]
comiss xmm0, dword [rsp + 0x2c]
jb 0x1800e5234
movss xmm0, dword [rsp + 0x24]
movss dword [rsp + 0x34], xmm0
jmp 0x1800e5240
movss xmm0, dword [rsp + 0x2c]
movss dword [rsp + 0x34], xmm0
movss xmm0, dword [rsp + 0x34]
movss dword [rsp + 0x2c], xmm0
mov rax, qword [rsp + 0x90]
add rax, 0x58
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x68]
call fcn.1800d86f0
mov rax, qword [rsp + 0x90]
lea rcx, [rsp + 0x20]
lea rdi, [rax + 0x88]
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0x90]
call fcn.1800e8ae0
add rsp, 0x78
pop rdi
pop rsi
ret
Function at 0x1801502e0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x1801503c2
call fcn.180164970
test al, al
jne 0x1801503c2
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x180150312
mov r8, rdi
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, rbx
call fcn.180170f80
test rax, rax
je 0x180150357
sub rax, rbx
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov r8, rax
mov rcx, rbx
call fcn.180170f80
mov rsi, rax
test rax, rax
je 0x180150357
inc rsi
mov rcx, rbx
sub rcx, rsi
add rdi, rcx
test rsi, rsi
cmovne rbx, rsi
lea rsi, [rbx + rdi]
mov edi, 0x1505
cmp rbx, rsi
jae 0x18015038b
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.180161650
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x180150370
mov rsi, qword [rsp + 0x30]
mov rcx, rdi
movabs rax, 0x410410410410411
mul rdi
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
imul rcx, rcx, 0x3f
sub rdi, rcx
mov rax, rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x18015f460
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x18046cd80]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x18015f4c6
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x18015f4a9
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x18015f4a3
shr ax, 8
cmp al, 2
je 0x18015f4c6
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1801a6340
add rsp, 0x1e8
ret
call fcn.180194b40
test eax, eax
jne 0x18015f6e0
mov qword [rsp + 0x200], rsi
lea rcx, str.kernel32
mov qword [rsp + 0x208], rdi
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x18015f506
mov qword [0x180479a48], rsi
jmp 0x18015f69d
mov qword [rsp + 0x1f0], rbx
lea rdx, [0x1801f2ff8]
mov rcx, rdi
mov qword [rsp + 0x1f8], rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rbx, str.iphlpapi.dll
mov rbp, rax
mov rcx, rbx
lea rdx, [0x1801f3008]
call fcn.1801c0920
test rax, rax
je 0x18015f56a
mov rcx, rbx
test rbp, rbp
je 0x18015f55c
xor edx, edx
lea r8d, [rdx + 8]
call rbp
mov rsi, rax
jmp 0x18015f65c
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
jmp 0x18015f65c
test rbp, rbp
je 0x18015f599
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18015f599
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call rbp
mov rsi, rax
jmp 0x18015f65c
xor edx, edx
mov qword [rsp + 0x1e0], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r14d, eax
test eax, eax
je 0x18015f654
lea ecx, [rax + 1]
lea rcx, [rcx*2 + 0x18]
call qword [fcn.1801b66a8]
mov rdi, rax
test rax, rax
je 0x18015f64b
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x18015f64b
mov rcx, 0xffffffffffffffff
mov rax, rcx
nop dword [rax]
cmp word [rdi + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x18015f5f0
mov dword [rdi + rax*2], 0x5c
cmp word [rdi + rcx*2 + 2], si
lea rcx, [rcx + 1]
jne 0x18015f602
lea rdx, [rcx + rcx]
sub rdx, rbx
add rdx, rdi
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rdx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x18015f620
mov rcx, rdi
test rbp, rbp
je 0x18015f642
xor edx, edx
lea r8d, [rdx + 8]
call rbp
jmp 0x18015f648
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
mov rcx, rdi
call qword [fcn.1801b13c8]
mov r14, qword [rsp + 0x1e0]
mov rbp, qword [rsp + 0x1f8]
mov rbx, qword [rsp + 0x1f0]
mov qword [0x180479a48], rsi
test rsi, rsi
je 0x18015f69d
lea rdx, str.if_nametoindex
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x180479a40]
test rax, rax
cmovne rcx, rax
mov qword [0x180479a40], rcx
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.1801946f0
test al, al
lea rcx, [0x18047b378]
setne byte [0x18047b370]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rdi, qword [rsp + 0x208]
xor eax, eax
mov rsi, qword [rsp + 0x200]
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1801a6340
add rsp, 0x1e8
ret
Function at 0x180171710
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
movaps xmmword [rsp + 0x50], xmm6
lea rcx, [rsp + 0x30]
mov rdi, rdx
call fcn.1801506d0
mov rcx, rbx
movups xmm6, xmmword [rax]
call fcn.18016f620
mov rcx, rdi
mov rsi, rax
call fcn.18016f620
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1801717c0
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.1801506d0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.180150760
cmp rax, 0x3e8
ja 0x1801717f1
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x180171770
test rsi, rsi
je 0x1801717cd
mov rcx, rsi
call fcn.1801b13c8
test rbx, rbx
je 0x1801717da
mov rcx, rbx
call fcn.1801b13c8
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
test rsi, rsi
je 0x1801717fe
mov rcx, rsi
call fcn.1801b13c8
test rbx, rbx
je 0x18017180b
mov rcx, rbx
call fcn.1801b13c8
mov eax, 1
jmp 0x1801717dc
Function at 0x180171ca0
Capabilities:
Resolve dns

Disassembly:
push rdi
push r12
push r13
push r15
sub rsp, 0x28
mov r13, r9
xor edi, edi
mov qword [r9], rdi
xor r15d, r15d
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x180171e3e
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rsi
mov rsi, qword [rsp + 0x68]
test rsi, rsi
je 0x180171e1e
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x20], r14
nop
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x180171d0e
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x180171d00
inc rbx
jmp 0x180171d10
xor ebx, ebx
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x180171d1d
lea ebp, [rax + 0xe]
jmp 0x180171d29
cmp eax, 0x17
jne 0x180171dc1
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], 0
je 0x180171dc1
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x180171dc1
cmp rax, rbp
jb 0x180171dc1
lea rcx, [rbp + 0x30]
add rcx, rbx
call qword [fcn.1801b66a8]
mov r14, rax
test rax, rax
je 0x180171dd0
mov ecx, dword [rsi]
mov r8, rbp
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [r14 + 0x30]
mov dword [rax + 0x10], ebp
xor eax, eax
mov qword [r14 + 0x18], rax
mov qword [r14 + 0x28], rax
mov qword [r14 + 0x20], rcx
mov rdx, qword [rsi + 0x20]
call fcn.1801d9f70
test rbx, rbx
je 0x180171dae
mov rcx, qword [r14 + 0x20]
mov r8, rbx
add rcx, rbp
mov qword [r14 + 0x18], rcx
mov rdx, qword [rsi + 0x18]
call fcn.1801d9f70
test rdi, rdi
cmove rdi, r14
test r15, r15
je 0x180171dbe
mov qword [r15 + 0x28], r14
mov r15, r14
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x180171cf0
jmp 0x180171dd6
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x58]
test rcx, rcx
je 0x180171df0
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x180171e19
test rdi, rdi
je 0x180171e15
nop word [rax + rax]
mov rbx, qword [rdi + 0x28]
mov rcx, rdi
call qword [fcn.1801b13c8]
mov rdi, rbx
test rbx, rbx
jne 0x180171e00
xor edi, edi
jmp 0x180171e2d
test rdi, rdi
jne 0x180171e2d
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rsi, qword [rsp + 0x60]
mov eax, r12d
mov rbx, qword [rsp + 0x50]
mov qword [r13], rdi
add rsp, 0x28
pop r15
pop r13
pop r12
pop rdi
ret
Function at 0x180172340
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbx, rdx
mov edx, Ordinal_46
mov rsi, r8
mov rbp, rcx
test r8, r8
je 0x18017240b
xor r14d, r14d
nop dword [rax]
mov edi, 4
lea rdx, [rsp + 0x50]
cmp rsi, rdi
mov r8d, 4
mov rcx, rbp
cmovb rdi, rsi
call fcn.180156be0
cmp eax, 4
jne 0x1801723bc
cmp byte [0x180479a54], r14b
jne 0x1801723c8
lea r9d, [rax - 2]
mov dword [rsp + 0x50], r14d
mov r8d, eax
lea rdx, [rsp + 0x50]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov edx, eax
test eax, eax
jne 0x18017240d
mov eax, dword [rsp + 0x50]
jmp 0x1801723e7
imul eax, dword [0x180479a50], 0x41c64e6d
mov edx, r14d
add eax, 0x3039
mov dword [0x180479a50], eax
rol eax, 0x10
mov dword [rsp + 0x50], eax
test rdi, rdi
je 0x180172402
sub rsi, rdi
nop
mov byte [rbx], al
inc rbx
shr eax, 8
sub rdi, 1
jne 0x1801723f0
mov dword [rsp + 0x50], eax
test rsi, rsi
jne 0x180172370
mov eax, edx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x180172420
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
sub rdi, 1
je 0x1801724c2
xor ebp, ebp
lea r14, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
nop
mov r8d, 4
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.180156be0
cmp eax, 4
jne 0x18017248e
cmp byte [0x180479a54], bpl
jne 0x1801724da
lea r9d, [rax - 2]
mov dword [rsp + 0x50], ebp
mov r8d, eax
lea rdx, [rsp + 0x50]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
jne 0x1801724f9
mov eax, ebp
test eax, eax
jne 0x1801724c7
mov ecx, dword [rsp + 0x50]
cmp ecx, 0xfffffffc
jae 0x180172450
mov eax, 0x8421085
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x3e
sub ecx, eax
movzx eax, byte [rcx + r14]
mov byte [rsi], al
inc rsi
sub rdi, 1
jne 0x180172450
mov byte [rsi], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
imul ecx, dword [0x180479a50], 0x41c64e6d
add ecx, 0x3039
mov dword [0x180479a50], ecx
rol ecx, 0x10
mov dword [rsp + 0x50], ecx
jmp 0x180172496
mov eax, 2
jmp 0x1801724c7