joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002460
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rdi
cmp dword [0x1400442b4], 0
lea rdi, [0x1400442b0]
mov r11d, r8d
mov r9d, edx
mov r10, rcx
jne 0x140002538
mov qword [rsp + 0x10], rbx
xor edx, edx
mov rbx, rdi
nop dword [rax]
mov r8d, edx
lea rbx, [rbx + 4]
and r8d, 1
mov eax, edx
shr eax, 1
neg r8d
and r8d, 0xedb88320
inc edx
xor r8d, eax
mov eax, r8d
shr r8d, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, r8d
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [rbx - 4], eax
cmp edx, 0x100
jb 0x140002490
mov rbx, qword [rsp + 0x10]
not r11d
mov eax, r11d
test r9d, r9d
jle 0x14000256e
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r10]
lea r10, [r10 + 1]
movzx edx, al
xor rdx, rcx
shr eax, 8
xor eax, dword [rdi + rdx*4]
sub r9d, 1
jne 0x140002550
not eax
pop rdi
ret
movzx r9d, byte [r10]
lea r8, [r10 + 1]
test r9b, r9b
je 0x1400025af
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x140002593
cmp byte [r8], r9b
jne 0x140002593
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rdi + rdx*4]
test r9b, r9b
jne 0x140002580
not eax
pop rdi
ret
Function at 0x140002790
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
test r8, r8
je 0x1400027a9
mov qword [r8], 0
lea rdx, [0x1400387b8]
call fcn.1400025c0
mov rbx, rax
test rax, rax
jne 0x1400027c8
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor edx, edx
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rsi
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140002888
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x140002888
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140002888
mov rax, qword [0x140044080]
mov rbp, rsi
test rax, rax
je 0x140002825
inc dword [rax + 0x3c8]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140002888
mov r9, rbx
mov r8, rbp
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rbp
je 0x140002875
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140044080]
test rax, rax
je 0x14000286a
dec dword [rax + 0x3c8]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140002891
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rdi, rdi
je 0x140002883
mov qword [rdi], rbp
mov rax, rsi
jmp 0x140002893
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140012600
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push r15
sub rsp, 0x20
mov rdi, qword [0x140044080]
xor esi, esi
mov r15, rcx
mov dword [rdi + 0x2d9c], esi
test rcx, rcx
je 0x14001271a
mov qword [rsp + 0x40], rbx
lea rbx, [rdi + 0x2da0]
mov dword [rdi + 0x2d9c], esi
mov ecx, dword [rbx + 4]
mov qword [rsp + 0x48], rbp
test ecx, ecx
jns 0x14001265a
mov eax, ecx
cdq
sub eax, edx
mov edx, esi
sar eax, 1
add eax, ecx
mov rcx, rbx
test eax, eax
cmovg edx, eax
call fcn.1400136e0
mov dword [rbx], esi
cmp dword [rbx + 4], esi
jne 0x14001266e
mov edx, 8
mov rcx, rbx
call fcn.1400136e0
movsxd rcx, dword [rbx]
mov ebp, esi
mov rax, qword [rbx + 8]
mov byte [rcx + rax], sil
inc dword [rbx]
cmp dword [rdi + 0x2db0], esi
jle 0x1400126ba
mov qword [rsp + 0x50], r14
mov r14, rsi
nop dword [rax]
mov r9, qword [rdi + 0x2db8]
mov r8, rbx
add r9, r14
mov rcx, rdi
mov rdx, r9
call qword [r9 + 0x20]
inc ebp
add r14, 0x30
cmp ebp, dword [rdi + 0x2db0]
jl 0x140012690
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
cmp qword [rbx + 8], rsi
je 0x1400126c9
mov esi, dword [rbx]
dec esi
mov rax, qword [rdi + 0x2da8]
lea rdx, [0x1400387bc]
test rax, rax
movsxd rsi, esi
lea rdi, [0x140044078]
mov rcx, r15
cmovne rdi, rax
call fcn.1400025c0
mov rbx, rax
test rax, rax
je 0x140012715
mov r9, rax
mov r8, rsi
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret
Function at 0x14001f030
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test r9d, 0xff000000
je 0x14001f1e7
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
movss xmm3, dword [rsp + 0x70]
xorps xmm0, xmm0
comiss xmm3, xmm0
mov esi, r9d
mov rdi, r8
mov rbp, rdx
mov rbx, rcx
jbe 0x14001f0c6
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
call fcn.14001ea00
mov r8d, dword [rbx + 0x80]
mov r9d, esi
mov rdx, qword [rbx + 0x88]
mov rcx, rbx
call fcn.14001e010
mov ecx, dword [rbx + 0x84]
test ecx, ecx
jns 0x14001f0b7
mov eax, ecx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, ecx
lea rcx, [rbx + 0x80]
test eax, eax
cmovg edx, eax
call fcn.140013380
mov dword [rbx + 0x80], 0
jmp 0x14001f1d3
mov edx, 6
movaps xmmword [rsp + 0x30], xmm6
lea r8d, [rdx - 2]
call fcn.14001ce40
movzx edx, word [rbx + 0x48]
mov rax, qword [rbx + 0x38]
movss xmm1, dword [rdi]
movss xmm2, dword [rbp + 4]
movss xmm3, dword [rbp]
lea ecx, [rdx + 1]
movss xmm6, dword [rax + 4]
movss xmm5, dword [rax]
movss xmm4, dword [rdi + 4]
mov rax, qword [rbx + 0x58]
mov word [rax], dx
mov rax, qword [rbx + 0x58]
mov word [rax + 2], cx
lea ecx, [rdx + 2]
mov rax, qword [rbx + 0x58]
mov word [rax + 4], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 6], dx
add dx, 3
mov rax, qword [rbx + 0x58]
mov word [rax + 8], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 0xa], dx
movsd xmm0, qword [rbp]
mov rax, qword [rbx + 0x50]
movsd qword [rax], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 8], xmm5
movss dword [rax + 0xc], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x10], esi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x14], xmm1
movss dword [rax + 0x18], xmm2
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x1c], xmm5
movss dword [rax + 0x20], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x24], esi
movsd xmm0, qword [rdi]
mov rax, qword [rbx + 0x50]
movsd qword [rax + 0x28], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x30], xmm5
movss dword [rax + 0x34], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x38], esi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x3c], xmm3
movss dword [rax + 0x40], xmm4
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x44], xmm5
movss dword [rax + 0x48], xmm6
mov rax, qword [rbx + 0x50]
movaps xmm6, xmmword [rsp + 0x30]
mov dword [rax + 0x4c], esi
add qword [rbx + 0x50], 0x50
add dword [rbx + 0x48], 4
add qword [rbx + 0x58], 0xc
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140037284
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400372ce
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400372ce
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400372ce
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400372ce
cmp dword [rcx + 0x84], 0xe
jbe 0x1400372ce
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400372d0
xor al, al
add rsp, 0x28
ret
Function at 0x1800015c0
Capabilities:
Get token membership

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor ebx, ebx
mov dword [rsp + 0x70], 0
lea rax, [rsp + 0x68]
mov word [rsp + 0x74], 0x500
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x60], eax
test eax, eax
je 0x180001659
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [rsp + 0x60]
test eax, eax
cmove ecx, ebx
mov dword [rsp + 0x60], ecx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
movzx eax, byte [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180002460
add rsp, 0x80
pop rbx
ret

Function at 0x180001790
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
lea rax, [0x180006031]
mov r8d, 2
mov r9d, 0x400
lea r10, str.KKKEEEYYY
nop dword [rax]
lea rcx, [r8 - 2]
and ecx, 0xfff
movzx ecx, byte [rcx + r10]
xor byte [rax - 1], cl
lea rcx, [r8 - 1]
and ecx, 0xfff
movzx ecx, byte [rcx + r10]
xor byte [rax], cl
mov rcx, r8
and ecx, 0xfff
movzx ecx, byte [rcx + r10]
xor byte [rax + 1], cl
lea rdx, [r8 + 1]
and edx, 0xfff
movzx edx, byte [rdx + r10]
xor byte [rax + 2], dl
add r8, 4
lea rax, [rax + 4]
sub r9, 1
jne 0x1800017c0
xor edx, edx
mov r8d, 0x1000
mov rcx, r10
call sub.msvcrt.dll_memset
lea rax, [0x1800033e0]
mov qword [rsp + 0x28], rax
mov r8d, 0x1000
lea rdx, str.PPPRRROOOFFFIIILLLEEE
lea rcx, [rsp + 0x28]
call fcn.1800018b0
mov rbx, rax
xor edx, edx
mov r8d, 0x1000
lea rcx, str.PPPRRROOOFFFIIILLLEEE
call sub.msvcrt.dll_memset
mov rax, rbx
add rsp, 0x50
pop rbx
ret
Function at 0x180001df0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov dword [rax + 0x20], r9d
push rdi
sub rsp, 0x40
xor ebx, ebx
mov dword [rax - 0x18], 0x18
mov rsi, rdx
mov dword [rax - 0x14], 0xf0000000
mov rdi, rcx
mov qword [rax - 0x10], rbx
xor r8d, r8d
mov dword [rax - 0x28], 0xf0000000
lea r9d, [rbx + 0x18]
xor edx, edx
lea rcx, [rax - 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x180001e70
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x180001e6a
mov r9d, dword [rsp + 0x30]
lea rcx, [rsp + 0x38]
xor r8d, r8d
mov dword [rsp + 0x20], 8
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x180001e70
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180001ee8
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x180001ee2
mov rcx, qword [rdi]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x180001ee2
mov r8, qword [rsp + 0x70]
lea r9, [rsp + 0x68]
xor eax, eax
mov dword [rsp + 0x68], 0x20
mov dword [rsp + 0x20], ebx
mov qword [r8], rax
mov qword [r8 + 8], rax
lea edx, [rax + 2]
mov qword [r8 + 0x10], rax
mov qword [r8 + 0x18], rax
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x180001eeb
call qword [sym.imp.KERNEL32.dll_GetLastError]
or ebx, 0xffffffff
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180001efd
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x180001f10
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
xor ebx, ebx
mov qword [rsp + 0x30], 1
mov edi, edx
mov qword [rsp + 0x38], rbx
mov rsi, rcx
mov dword [rsp + 0x20], ebx
xor r8d, r8d
lea rcx, [rsp + 0x38]
lea r9d, [rbx + 1]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x180001f84
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x180001f7e
mov r9d, dword [rsp + 0x30]
lea rcx, [rsp + 0x38]
xor r8d, r8d
mov dword [rsp + 0x20], 8
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x180001f84
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180001fa2
mov r8, rsi
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x38]
test eax, eax
jne 0x180001fa5
or ebx, 0xffffffff
test rcx, rcx
je 0x180001fb2
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x180002020
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x4f0]
sub rsp, 0x5f0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x18000205c
mov ecx, 5
int 0x29
mov ecx, 2
call fcn.1800026c8
xorps xmm0, xmm0
lea rcx, [rbp + 0x10]
xor eax, eax
xor edx, edx
mov r8d, 0x4d0
mov qword [rbp], rax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0x10]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rbp + 0x108]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x180002118
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], 0
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov rax, qword [rbp + 0x4f8]
mov qword [rbp + 0x108], rax
lea rax, [rbp + 0x4f8]
add rax, 8
mov dword [rsp + 0x70], 0xc0000417
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x4f8]
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x74], 1
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x18000217e
test ebx, ebx
jne 0x18000217e
lea ecx, [rax + 2]
call fcn.1800026c8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.180002460
mov rbx, qword [rsp + 0x600]
add rsp, 0x5f0
pop rbp
ret
Function at 0x1400047e0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
mov edi, esi
xor eax, eax
lock cmpxchg qword [0x140008a68], rbx
je 0x140004826
cmp rax, rbx
jne 0x140004819
mov edi, 1
jmp 0x140004826
mov ecx, 0x3e8
call qword [sym.imp.orauts.dll_Sleep]
jmp 0x140004800
mov eax, dword [0x140008a64]
cmp eax, 1
jne 0x14000483b
lea ecx, [rax + 0x1e]
call sub.MSVCR80.dll__amsg_exit
jmp 0x14000487a
mov eax, dword [0x140008a64]
test eax, eax
jne 0x140004870
mov dword [0x140008a64], 1
lea rdx, [0x140005278]
lea rcx, [0x140005260]
call sub.MSVCR80.dll__initterm_e
test eax, eax
je 0x14000487a
mov eax, 0xff
jmp 0x14000495b
mov dword [0x140008a4c], 1
mov eax, dword [0x140008a64]
cmp eax, 1
jne 0x1400048a2
lea rdx, [0x140005258]
lea rcx, [0x140005248]
call sub.MSVCR80.dll__initterm
mov dword [0x140008a64], 2
test edi, edi
jne 0x1400048ad
xchg qword [0x140008a68], rsi
cmp qword [0x140008a80], 0
je 0x1400048d6
lea rcx, [0x140008a80]
call fcn.140004d10
test eax, eax
je 0x1400048d6
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x140008a80]
mov rcx, qword [sym.imp.MSVCR80.dll___initenv]
mov rax, qword [0x140008a30]
mov qword [rcx], rax
mov r8, qword [0x140008a30]
mov rdx, qword [0x140008a38]
mov ecx, dword [0x140008a28]
call section..text
mov dword [0x140008a48], eax
cmp dword [0x140008a2c], 0
jne 0x140004917
mov ecx, eax
call qword [sym.imp.MSVCR80.dll_exit]
cmp dword [0x140008a4c], 0
jne 0x14000492c
call qword [sym.imp.MSVCR80.dll__cexit]
mov eax, dword [0x140008a48]
jmp 0x14000495b
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
sub rsp, 0x28
call fcn.140004d90
add rsp, 0x28
jmp 0x1400047e0
Function at 0x140013ec0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013cec

Function at 0x1804eb799
Capabilities:
Encode data using xor

Disassembly:
push qword [rsp + 0x38]
popfq
lea rsp, [rsp + 0x50]
call fcn.180ae2608
xor dh, byte [rbx - 0x56c0f024]
adc bl, bh
out dx, eax
fdivr qword [rbx + 0x56b0239d]
jge 0x1804eb7a8
fmul st(7), st(0)
invalid

Function at 0x180a673a4
Capabilities:
Execute anti-debugging instructions

Disassembly:
push rdi
movzx edi, r8w
xchg rdi, rdi
push r10
push rax
movzx ax, ah
movsx rax, r8w
push r14
cmovno di, bx
push rdx
rdtsc
cbw
xchg dl, dil
push r13
not di
movsxd rax, esi
push r12
push rcx
cmovns eax, r8d
push r9
movzx edx, si
lahf
movsx di, cl
push rsi
movsx eax, r11w
push r15
push r11
movzx esi, cx
pushfq
cqo
ror rdx, 0xe9
push rbp
cdq
setno bpl
push rbx
push r8
cdqe
movzx rsi, r14w
movsx bp, r14b
movabs rbx, 0
btc r9d, 0x91
movzx ebp, cx
push rbx
mov rdi, qword [rsp + 0x90]
movsx rdx, bx
lahf
not edi
mov r9b, al
movsxd r9, edx
ror edi, 2
rdtsc
add edi, 0x53ea4e45
rol dx, cl
mov bpl, 0x7b
seta sil
bswap edi
jmp 0x180b22bea
xor r9d, ebp
jmp 0x180b0c9de
inc r9d
not r9d
jmp 0x180b716dc
add edi, 0x634568d0
rol edi, 3
inc r11b
dec edi
lea rdi, [rdi + rbx]
btc rbp, 0x60
movzx rsi, ax
movabs rdx, 0x100000000
cmp sp, 0x64f6
neg al
add rdi, rdx
bt r9w, 0x78
mov r11, rsp
dec al
test si, 0x1dd5
sub rsp, 0x180
sal sil, 0xe3
and rsp, 0xfffffffffffffff0
shr ax, 0xe6
xor al, dh
mov rbp, rdi
bsf rax, rbx
movabs rax, 0
shr r9b, cl
sub rbp, rax
rcr r9, cl
sbb si, 0x5996
lea rsi, [0x180b22c60]
rcr r9, cl
bt r9d, 0x61
sub rdi, 4
mov r9d, dword [rdi]
cmc
test ecx, 0x65aa35ca
jmp 0x180b03cc3
push rsi
ret
rol r9d, 2
xor r9d, 0x73280d75
clc
cmp rdx, rax
stc
push rbp
shr bp, 0xae
xor dword [rsp], r9d
pop rbp
clc
cmp rdx, 0x7a001f18
test r15b, 0xe
movsxd r9, r9d
add rsi, r9
jmp 0x180b53f9e
Function at 0x175030
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
je 0x175040
jne 0x175040
sub rsp, 0x28
mov rax, qword [rdx]
cmp dword [rax + 0x8c], 0
je 0x1750eb
mov rsi, qword [rdx + 8]
mov edi, dword [rax + 0x88]
cmp dword [rdi + rsi + 0x18], 0
je 0x175088
jne 0x175088
je 0x490b51b6
add r12, rsi
add rbx, rsi
je 0x1750eb
cmp dword [rsi + rdi + 0x14], 0
je 0x1750eb
mov r15, r8
mov r13, rcx
mov ebx, dword [rsi + rdi + 0x20]
mov r12d, dword [rsi + rdi + 0x24]
je 0x175069
jne 0x175069
je 0x74daafeb
and eax, 0x44e92375
mov esi, dword [rcx + rax]
Function at 0x182790
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x1827c0
mov eax, dword [rax + 0x20]
mov dword [rdi + 0x38], eax
mov rcx, rbx
mov rdx, rsi
call r15
mov rcx, rdi
jmp 0x182870
xor r14d, r14d
xor edx, edx
jmp 0x1828ff
mov rax, qword [rcx]
jmp 0x18280b
push r15
je 0x1828f6
jne 0x1828f6
add byte [rax], al
add byte [rax], al
nop word cs:[rax + rax]
nop dword [rax]
mov rcx, qword [rdi + 0x10]
mov rax, qword [rcx]
jmp 0x1828de
mov rcx, rbp
jmp 0x1828b1
mov r15, qword [sym.imp.itmkl_beo_UteNpt2HgazewrUmZvtjloS]
je 0x1827d2
jne 0x1827d2
jmp 0xffffffffff19b34d
mov rax, qword [rcx]
call qword [rax + 0x30]
jmp 0x182796
call qword [rax + 8]
je 0x182914
jne 0x182914
jmp 0x18d508
jmp 0x1828cc
call qword [rax + 0x20]
mov rcx, qword [rdi + 0x10]
mov rax, qword [rcx]
call qword [rax + 8]
test eax, eax
je 0x18287d
jne 0x18287d
por mm3, qword [rdx - 0x17]
je 0x1827ed
jne 0x1827ed
je 0xffffffff8427d62d
jmp 0x182821
sub rsp, 0x28
mov rdi, rcx
je 0x18290b
jmp 0x182932
push rdi
push rbp
push rbx
jmp 0x182845
je 0x182920
mov rax, qword [rcx]
jmp 0x1827ad
call fcn.00183060
jmp 0x18295e
jmp 0xd0ac90
je 0x18293b
je 0x18294f
jne 0x18294f
je 0xffffffff8d9c3819
je 0x182925
add byte [rax], al
add byte [rax - 0x75], cl
outsd dx, dword [rsi]
adc byte [rdi], cl
test ch, cl
add byte [rax], al
add byte [rdi], cl
test edi, eax
add byte [rax], al
add byte [rax - 0x7b], cl
leave
mov rbp, qword [rdi + 0x10]
je 0x18296f
jne 0x18296f
test rcx, rcx
jmp 0x18285e
call qword [rax + 0x18]
lea edx, [rax + 1]
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + 0x20]
mov rcx, qword [rdi + 0x10]
jmp 0x1827bb
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [rax + 0x30]
test rax, rax
je 0x18293b
mov rcx, qword [rdi + 0x10]
je 0x182801
jne 0x182801
push r14
push rsi
jmp 0x182857
je 0x182842
jne 0x182842
mov rcx, qword [rcx + 0x10]
je 0x1828a8
jne 0x1828a8
jmp 0x103e99d
test eax, eax
jmp 0x182918
jne 0x1827e0
jmp 0x18293b
xor r14d, r14d
jmp 0x18293b
je 0x182935
jne 0x182935
jmp 0x18287c
jne 0x18290b
jmp 0x19e77a
mov r14d, 1
mov eax, r14d
jmp 0x182942
je 0x18281b
jne 0x18281b
jmp 0x3877b69b
lea rbx, [rdi + 0x38]
lea rsi, [rdi + 0x3c]
jmp 0x1827f5
cmp eax, 1
je 0x182892
jne 0x182892
je 0x5db4bb
mov rax, qword [rbp]
jmp 0x182838
invalid
add al, ah
dec dword [rbp + 0x29]
imul r9, rbx, 0xa2c13
Function at 0x198de0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov eax, dword [rdx]
mov dword [rcx + 0x10], eax
mov eax, dword [rdx + 4]
mov dword [rcx + 0x14], eax
mov eax, dword [rdx + 8]
mov dword [rcx + 0x18], eax
mov eax, dword [rdx + 0xc]
mov dword [rcx + 0x1c], eax
lea rax, [rdx + 0x10]
cmp r8d, 0x100
cmovne rax, rdx
lea r8, str.expand_32_byte_kexpand_16_byte_k
lea r9, [0x001afbe0]
cmove r9, r8
mov edx, dword [rax]
mov dword [rcx + 0x20], edx
mov edx, dword [rax + 4]
mov dword [rcx + 0x24], edx
mov edx, dword [rax + 8]
mov dword [rcx + 0x28], edx
mov eax, dword [rax + 0xc]
mov dword [rcx + 0x2c], eax
mov dword [rcx], 0x61707865
mov rax, qword [r9 + 4]
mov qword [rcx + 4], rax
mov eax, dword [r9 + 0xc]
mov dword [rcx + 0xc], eax
ret
Function at 0x19ee90
Capabilities:
Hash data using sha512

Disassembly:
test rcx, rcx
je 0x19ef1b
mov qword [rcx + 0x48], 0
mov qword [rcx], 0
movabs rax, 0x6a09e667f3bcc908
mov qword [rcx + 8], rax
movabs rax, 0xbb67ae8584caa73b
mov qword [rcx + 0x10], rax
movabs rax, 0x3c6ef372fe94f82b
mov qword [rcx + 0x18], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rcx + 0x20], rax
movabs rax, 0x510e527fade682d1
mov qword [rcx + 0x28], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rcx + 0x30], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rcx + 0x38], rax
mov eax, 1
ret
Function at 0x19f940
Capabilities:
Encrypt data using curve25519

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xc0
mov rsi, rdx
mov rdi, rcx
mov edx, 0x20
mov rcx, r8
mov r8, rsi
call fcn.0019f6b0
and byte [rsi], 0xf8
mov al, byte [rsi + 0x1f]
and al, 0x3f
or al, 0x40
mov byte [rsi + 0x1f], al
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov rdx, rsi
call fcn.0019c300
mov rcx, rdi
mov rdx, rbx
call fcn.0019c280
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
ret