joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800a6090
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x52727464
je 0x1800a60ad
xor eax, eax
jmp 0x1800a6146
mov rax, qword [rsp + 0x30]
mov qword [rsp], rax
mov rax, qword [rsp]
add rax, 0x10000
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x30]
add rax, 0x60
mov qword [rsp + 0x10], rax
mov dword [rsp + 0x18], 0
jmp 0x1800a60e8
mov eax, dword [rsp + 0x18]
add eax, 1
mov dword [rsp + 0x18], eax
cmp dword [rsp + 0x18], 0x2a9
jae 0x1800a6141
movsxd rcx, dword [rsp + 0x18]
imul rcx, rcx, 0x60
mov rax, qword [rsp + 0x10]
cmp qword [rax + rcx + 0x48], 0
je 0x1800a613f
movsxd rdx, dword [rsp + 0x18]
imul rdx, rdx, 0x60
mov rcx, qword [rsp + 0x10]
mov rax, qword [rsp]
cmp qword [rcx + rdx + 0x48], rax
jb 0x1800a613b
movsxd rdx, dword [rsp + 0x18]
imul rdx, rdx, 0x60
mov rcx, qword [rsp + 0x10]
mov rax, qword [rsp + 8]
cmp qword [rcx + rdx + 0x48], rax
jb 0x1800a613f
xor eax, eax
jmp 0x1800a6146
jmp 0x1800a60dd
mov eax, 1
add rsp, 0x28
ret

Function at 0x1800a6230
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x1801082ec], 0
je 0x1800a624d
mov eax, dword [0x1801082ec]
jmp 0x1800a6311
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp qword [rsp + 0x50], rax
jne 0x1800a6261
xor eax, eax
jmp 0x1800a6311
mov ecx, sendto
call fcn.18009a960
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1800a62ca
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x1800a62af
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call fcn.18009a864
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x1801082ec], eax
mov qword [0x1801082f0], 0
mov eax, dword [rsp + 0x20]
jmp 0x1800a6311
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1800a62e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
jmp 0x1800a628a
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x50]
mov qword [rcx + 8], rax
mov rcx, qword [rsp + 0x28]
mov rax, qword [0x1801082f8]
mov qword [rcx], rax
mov rax, qword [rsp + 0x28]
mov qword [0x1801082f8], rax
xor eax, eax
add rsp, 0x48
ret
Function at 0x1800a73b0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.1800a74c0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x1800a74ad
mov rax, qword [0x1801020f0]
cmp qword [rsp + 0x20], rax
jb 0x1800a740b
mov rax, qword [0x1801020f8]
cmp qword [rsp + 0x20], rax
ja 0x1800a740b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1800a73cd
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.18009e990
mov r8d, 0x30
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1800a743a
jmp 0x1800a74ad
cmp dword [rsp + 0x48], 0x10000
jne 0x1800a7491
cmp qword [rsp + 0x40], 0x10000
jb 0x1800a7491
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x1800a747f
mov rax, qword [rsp + 0x58]
jmp 0x1800a74af
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1800a74a8
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
add rcx, rax
call fcn.1800a74c0
mov qword [rsp + 0x20], rax
jmp 0x1800a73cd
xor eax, eax
add rsp, 0x68
ret

Function at 0x1800a7510
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x78]
sub rcx, 0x10000
call fcn.1800a7620
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x1800a7613
mov rax, qword [0x1801020f0]
cmp qword [rsp + 0x20], rax
jb 0x1800a7572
mov rax, qword [0x1801020f8]
cmp qword [rsp + 0x20], rax
ja 0x1800a7572
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1800a7534
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.18009e990
mov r8d, 0x30
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1800a75a1
jmp 0x1800a7613
cmp dword [rsp + 0x48], 0x10000
jne 0x1800a75f8
cmp qword [rsp + 0x40], 0x10000
jb 0x1800a75f8
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x1800a75e6
mov rax, qword [rsp + 0x58]
jmp 0x1800a7615
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1800a760e
mov rcx, qword [rsp + 0x30]
sub rcx, 0x10000
call fcn.1800a7620
mov qword [rsp + 0x20], rax
jmp 0x1800a7534
xor eax, eax
add rsp, 0x68
ret
Function at 0x1800a7660
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x2c], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1801082e8], eax
je 0x1800a768e
mov eax, 0x10dd
jmp 0x1800a789e
cmp dword [0x1801082ec], 0
je 0x1800a76a2
mov eax, dword [0x1801082ec]
jmp 0x1800a789e
cmp qword [rsp + 0x78], 0
jne 0x1800a76b4
mov eax, 0x57
jmp 0x1800a789e
cmp qword [rsp + 0x70], 0
jne 0x1800a76c6
mov eax, 6
jmp 0x1800a789e
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
jne 0x1800a76f8
mov dword [rsp + 0x2c], 6
mov eax, dword [rsp + 0x2c]
mov dword [0x1801082ec], eax
mov rax, qword [rsp + 0x70]
mov qword [0x1801082f0], rax
mov eax, dword [rsp + 0x2c]
jmp 0x1800a789e
mov ecx, 0x30
call fcn.18009a960
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x1800a7765
mov dword [rsp + 0x2c], 8
mov eax, dword [rsp + 0x2c]
mov dword [0x1801082ec], eax
cmp qword [rsp + 0x40], 0
je 0x1800a7750
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call fcn.18009a864
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x70]
mov qword [0x1801082f0], rax
mov eax, dword [rsp + 0x2c]
jmp 0x1800a789e
xor edx, edx
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx]
call fcn.1800a5510
mov qword [rsp + 0x30], rax
xor edx, edx
mov rcx, qword [rsp + 0x78]
call fcn.1800a5510
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax + 0x3e]
mov dword [rsp + 0x28], eax
movsxd rcx, dword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x48]
sub rax, rcx
mov qword [rsp + 0x20], rax
cmp dword [rsp + 0x28], 0
je 0x1800a77bf
movsxd rax, dword [rsp + 0x28]
cmp rax, 0x1e
jbe 0x1800a77dc
mov dword [rsp + 0x2c], 9
cmp dword [0x1801082e0], 0
je 0x1800a77d7
jmp 0x1800a772b
jmp 0x1800a7721
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x78]
cmp qword [rcx + 0x50], rax
je 0x1800a7809
mov dword [rsp + 0x2c], 9
cmp dword [0x1801082e0], 0
je 0x1800a7804
jmp 0x1800a772b
jmp 0x1800a7721
mov dword [rsp + 0x38], 0
movsxd rdx, dword [rsp + 0x28]
lea r9, [rsp + 0x38]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800a783f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x2c], eax
jmp 0x1800a7721
mov rax, qword [rsp + 0x40]
mov dword [rax + 8], 1
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x70]
mov qword [rcx + 0x10], rax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x30]
mov qword [rcx + 0x20], rax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x20]
mov qword [rcx + 0x18], rax
mov rcx, qword [rsp + 0x40]
mov eax, dword [rsp + 0x38]
mov dword [rcx + 0x28], eax
mov rcx, qword [rsp + 0x40]
mov rax, qword [0x180108300]
mov qword [rcx], rax
mov rax, qword [rsp + 0x40]
mov qword [0x180108300], rax
xor eax, eax
add rsp, 0x68
ret
Function at 0x1800a78b0
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x38
cmp dword [0x180108360], 0
je 0x1800a78c4
xor eax, eax
jmp 0x1800a7b2f
cmp qword [0x180108358], 0
je 0x1800a78da
mov rax, qword [0x180108358]
jmp 0x1800a7b2f
mov r8d, 0x48
xor edx, edx
lea rcx, [0x180108310]
call fcn.18009e990
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [0x180108310], rax
xor r8d, r8d
xor edx, edx
lea rcx, str.dbghelp.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [0x180108318], rax
cmp qword [0x180108318], 0
jne 0x1800a7993
mov dword [0x180108360], 1
cmp qword [0x180108318], 0
je 0x1800a793f
mov rcx, qword [0x180108318]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x180108320], 0
mov qword [0x180108328], 0
mov qword [0x180108330], 0
mov qword [0x180108338], 0
mov qword [0x180108340], 0
mov qword [0x180108348], 0
mov qword [0x180108350], 0
xor eax, eax
jmp 0x1800a7b2f
lea rdx, str.ImagehlpApiVersionEx
mov rcx, qword [0x180108318]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180108320], rax
lea rdx, str.SymInitialize
mov rcx, qword [0x180108318]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180108328], rax
lea rdx, str.SymSetOptions
mov rcx, qword [0x180108318]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180108330], rax
lea rdx, str.SymGetOptions
mov rcx, qword [0x180108318]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180108338], rax
lea rdx, str.SymLoadModule64
mov rcx, qword [0x180108318]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180108340], rax
lea rdx, str.SymGetModuleInfo64
mov rcx, qword [0x180108318]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180108348], rax
lea rdx, str.SymFromName
mov rcx, qword [0x180108318]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180108350], rax
mov r8d, 8
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.18009e990
mov r11d, 0xb
mov word [rsp + 0x20], r11w
cmp qword [0x180108320], 0
je 0x1800a7aa0
cmp qword [0x180108328], 0
je 0x1800a7aa0
cmp qword [0x180108340], 0
je 0x1800a7aa0
cmp qword [0x180108348], 0
je 0x1800a7aa0
cmp qword [0x180108350], 0
jne 0x1800a7aa5
jmp 0x1800a791e
lea rcx, [rsp + 0x20]
call qword [0x180108320]
movzx eax, word [rsp + 0x20]
cmp eax, 0xb
jge 0x1800a7abf
jmp 0x1800a791e
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x180108310]
call qword [0x180108328]
test eax, eax
jne 0x1800a7ada
jmp 0x1800a791e
cmp qword [0x180108338], 0
je 0x1800a7b1a
cmp qword [0x180108330], 0
je 0x1800a7b1a
call qword [0x180108338]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
and eax, 0xfffffff8
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
or eax, 0x2704
mov dword [rsp + 0x28], eax
mov ecx, dword [rsp + 0x28]
call qword [0x180108330]
lea rax, [0x180108310]
mov qword [0x180108358], rax
mov rax, qword [0x180108358]
add rsp, 0x38
ret
Function at 0x14063c058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14063c1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14063c089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14063c06f
add dl, dl
jne 0x14063c096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14063c0f6
xor eax, eax
add dl, dl
jne 0x14063c0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14063c1ad
add dl, dl
jne 0x14063c0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14063c0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14063c0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14063c0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14063c0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14063c07e
mov eax, 1
add dl, dl
jne 0x14063c106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14063c113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14063c0fb
sub eax, ebx
mov ebx, 1
jne 0x14063c14c
mov ecx, 1
add dl, dl
jne 0x14063c12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14063c13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14063c123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14063c07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14063c168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14063c175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14063c15d
cmp eax, 0x7d00
jae 0x14063c19b
cmp eax, 0x500
jb 0x14063c196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14063c07e
cmp eax, 0x7f
ja 0x14063c19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14063c07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14063c1d2
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 0x14063c07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140005460]
mov dword [rax], 1
mov rax, qword [0x140005470]
mov dword [rax], 1
mov rax, qword [0x140005480]
mov dword [rax], 1
mov rax, qword [0x1400053e0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001af0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x1400027c2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140009168]
test eax, eax
je 0x14000285a
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140009170]
mov qword [rbp - 8], rax
jmp 0x14000283e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140002832
cmp qword [rbp - 0x10], 0
je 0x140002832
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400027f8
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000285b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x40c560
Capabilities:
Reference http user-agent string

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x40c617
sub rsp, 0x28
mov qword [rsp + 0x20], rbp
lea rbp, [rsp + 0x20]
mov qword [rsp + 0x30], rax
xor ebx, ebx
mov rcx, rbx
call fcn.00415420
test rax, rax
jne 0x40c605
mov rax, qword [rsp + 0x30]
mov rcx, rax
shl rax, 0x10
or rax, 0x7ffff
sar rax, 0x13
shl rax, 3
cmp rcx, rax
jne 0x40c5b5
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
ret
call fcn.0043b740
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x18], rax
call fcn.0043b740
lea rax, [0x0109f257]
mov ebx, 0x1c
call fcn.0043c040
mov rax, qword [rsp + 0x18]
nop
call fcn.0043bea0
call fcn.0043b9a0
call fcn.0043b7c0
lea rax, [0x0108d4a4]
mov ebx, 0x12
nop dword [rax + rax]
call fcn.00439e00
lea rax, [0x010b1f53]
mov ebx, 0x24
call fcn.00439e00
nop
mov qword [rsp + 8], rax
nop dword [rax]
call fcn.0046b6c0
mov rax, qword [rsp + 8]
jmp fcn.0040c560

Function at 0x40ca00
Capabilities:
Reference http user-agent string

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x40cb20
sub rsp, 0x28
mov qword [rsp + 0x20], rbp
lea rbp, [rsp + 0x20]
mov rcx, qword [r14 + 0x30]
mov rdx, r14
nop
cmp qword [rcx], rdx
jne 0x40cb0e
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x18], rdx
mov rax, rcx
call fcn.00435f60
mov rcx, qword [rsp + 0x18]
mov rdx, qword [rcx + 0x30]
xor eax, eax
mov rbx, qword [rsp + 0x30]
lock cmpxchg qword [rbx], rdx
sete dl
test dl, dl
je 0x40ca87
mov rdx, qword [rcx + 0x30]
mov byte [rdx + 0xe5], 1
mov rdx, qword [0x01b7bf58]
cmp qword [rdx], 0
je 0x40ca74
jmp 0x40cb04
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
call fcn.00435be0
jmp 0x40caa8
cmp qword [rbx], 1
jne 0x40ca97
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
ret
lea rax, [0x010a1072]
mov ebx, 0x1d
call fcn.00439e00
mov rax, qword [rsp + 0x18]
mov rax, qword [rax + 0x30]
mov byte [rax + 0xe5], 0
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
ret
mov eax, 0x989680
call fcn.00435be0
mov rcx, qword [0x01b7bf58]
mov rcx, qword [rcx]
mov qword [rsp], rcx
mov qword [rsp + 8], 0
call fcn.0046d480
xorps xmm15, xmm15
mov r14, qword [0x01bfb078]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rcx, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x30]
mov rdx, qword [rbx]
test rdx, rdx
je 0x40cac2
jmp 0x40caa8
lea rax, [0x0108f535]
mov ebx, 0x13
call fcn.00439e00
nop
mov qword [rsp + 8], rax
call fcn.0046b6c0
mov rax, qword [rsp + 8]
jmp fcn.0040ca00
Function at 0x413926
Capabilities:
Hash data with crc32

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov dword [rbp - 4], 0xffffffff
mov dword [rbp - 8], 0
jmp 0x413985
mov eax, dword [rbp - 4]
shr eax, 8
mov ecx, eax
mov eax, dword [rbp - 8]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
movzx eax, byte [rax]
movzx edx, al
mov eax, dword [rbp - 4]
movzx eax, al
xor eax, edx
mov eax, eax
lea rdx, [rax*4]
lea rax, [0x004686e0]
mov eax, dword [rdx + rax]
xor eax, ecx
mov dword [rbp - 4], eax
add dword [rbp - 8], 1
mov eax, dword [rbp - 8]
cmp eax, dword [rbp + 0x18]
jl 0x413945
mov eax, dword [rbp - 4]
not eax
add rsp, 0x10
pop rbp
ret
Function at 0x416ecd
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
sub rsp, 0x38
lea rbp, [rsp + 0x80]
mov qword [rbp - 0x30], rcx
mov ecx, 0x1000
call sub.msvcrt.dll_malloc
mov qword [rbp - 0x58], rax
mov rax, qword [rbp - 0x58]
mov rdx, qword [rbp - 0x30]
mov rcx, rax
call sub.msvcrt.dll_strcpy
mov rax, qword [rbp - 0x58]
mov rcx, 0xffffffffffffffff
mov rdx, rax
mov eax, 0
mov rdi, rdx
repne scasb al, byte [rdi]
mov rax, rcx
not rax
lea rdx, [rax - 1]
mov rax, qword [rbp - 0x58]
add rax, rdx
mov word [rax], 0x2f
mov rax, qword [rbp - 0x58]
lea rdx, str.CriticalBreachDetected.pdf
mov rcx, rax
call sub.msvcrt.dll_strcat
mov rax, qword [rbp - 0x58]
lea rdx, [0x00469353]
mov rcx, rax
call sub.msvcrt.dll_fopen
mov qword [rbp - 0x60], rax
cmp qword [rbp - 0x60], 0
je 0x416f89
mov eax, dword [0x00468604]
mov edx, eax
mov rax, qword [rbp - 0x60]
mov r9, rax
mov r8d, 1
lea rcx, str._PDF_1.4_n__n1_0_obj_n___n_Title____n_Creator__
call sub.msvcrt.dll_fwrite
mov rax, qword [rbp - 0x60]
mov rcx, rax
call sub.msvcrt.dll_fclose
mov rax, qword [rbp - 0x58]
mov rcx, rax
call fcn.0044ae60
nop
add rsp, 0x38
pop rdi
pop rbp
ret
Function at 0x41abda
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov ecx, 0x400
call sub.msvcrt.dll_malloc
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], 0
lea rax, [rbp - 0x80]
mov rcx, rax
call fcn.0041a678
jmp 0x41ac28
mov rcx, qword [rbp - 0x10]
mov rdx, qword [rbp - 8]
lea rax, [rbp - 0x80]
mov r8, rcx
mov rcx, rax
call fcn.0041a6ba
mov rax, qword [rbp - 8]
mov r9, qword [rbp + 0x10]
mov r8d, 0x400
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fread
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x41ac11
lea rax, [rbp - 0x80]
mov rcx, rax
call fcn.0041a7e6
mov rax, qword [rbp - 8]
mov rcx, rax
call fcn.0044ae60
mov rax, qword [rbp - 0x28]
mov rdx, qword [rbp - 0x20]
mov rcx, qword [rbp + 0x18]
mov qword [rcx], rax
mov qword [rcx + 8], rdx
nop
add rsp, 0xa0
pop rbp
ret
Function at 0x425030
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x4250ff
test rdx, rdx
je 0x4250e6
lea eax, [r8 - 0x10]
and eax, 0xffffffef
jne 0x4250cd
mov r11d, dword [rdx]
test r9d, r9d
mov r10d, 0x14
cmove r9d, r10d
cmp r8d, 0x20
mov dword [rcx + 0x10], r11d
mov eax, dword [rdx + 4]
mov dword [rcx + 0x14], eax
mov r10d, dword [rdx + 8]
lea rax, str.expand_16_byte_k
mov dword [rcx + 0x18], r10d
mov r11d, dword [rdx + 0xc]
mov dword [rcx + 0x1c], r11d
jne 0x425091
lea rax, str.expand_32_byte_k
add rdx, 0x10
mov r8d, dword [rdx]
movdqu xmm0, xmmword [rax]
xor eax, eax
mov dword [rcx + 0x20], r8d
mov r10d, dword [rdx + 4]
mov dword [rcx + 0x24], r10d
mov r11d, dword [rdx + 8]
mov dword [rcx + 0x28], r11d
mov edx, dword [rdx + 0xc]
movups xmmword [rcx], xmm0
mov dword [rcx + 0x88], r9d
mov dword [rcx + 0x84], 0
mov dword [rcx + 0x2c], edx
add rsp, 0x28
ret
lea rdx, str.src_stream_chacha_chacha_setup.c
lea rcx, str.keylen__32__keylen__16
mov r8d, 0x24
call fcn.0041f440
lea rdx, str.src_stream_chacha_chacha_setup.c
lea rcx, [0x00472f94]
mov r8d, 0x23
call fcn.0041f440
lea rdx, str.src_stream_chacha_chacha_setup.c
lea rcx, [0x00472f89]
mov r8d, 0x22
call fcn.0041f440
nop
nop
nop
nop
nop
nop
nop
nop