joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400648d0
Capabilities:
Access peb ldr_data
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov ecx, 1
call fcn.14006437c
test al, al
je 0x140064837
xor sil, sil
mov byte [rsp + 0x20], sil
call fcn.140064210
mov bl, al
mov ecx, dword [0x1400d6e90]
cmp ecx, 1
je 0x140064842
test ecx, ecx
jne 0x14006476d
mov dword [0x1400d6e90], 1
lea rdx, [0x1400c13e0]
lea rcx, [0x1400c13a8]
call fcn.140078c8c
test eax, eax
je 0x14006474e
mov eax, 0xff
jmp 0x140064827
lea rdx, [0x1400c13a0]
lea rcx, [0x1400c1378]
call fcn.140078c48
mov dword [0x1400d6e90], 2
jmp 0x140064775
mov sil, 1
mov byte [rsp + 0x20], sil
mov cl, bl
call fcn.1400644dc
call fcn.1400655c8
mov rbx, rax
cmp qword [rax], 0
je 0x1400647a8
mov rcx, rax
call fcn.140064444
test al, al
je 0x1400647a8
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [rbx]
call qword [0x1400c1350]
call fcn.1400655d0
mov rbx, rax
cmp qword [rax], 0
je 0x1400647ca
mov rcx, rax
call fcn.140064444
test al, al
je 0x1400647ca
mov rcx, qword [rbx]
call fcn.14007693c
call fcn.140077fd0
mov rdi, rax
call fcn.140078f80
mov rbx, qword [rax]
call fcn.140078f78
mov r8, rdi
mov rdx, rbx
mov ecx, dword [rax]
call main
mov ebx, eax
call fcn.140065374
test al, al
je 0x14006484c
test sil, sil
jne 0x140064801
call fcn.140076918
xor edx, edx
mov cl, 1
call fcn.140064500
mov eax, ebx
jmp 0x140064827
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, 7
call fcn.1400651e4
nop
mov ecx, 7
call fcn.1400651e4
mov ecx, ebx
call fcn.14007697c
nop
mov ecx, ebx
call fcn.140076928
nop
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
call fcn.140077fd0
mov rdi, rax
call fcn.140078f80
mov rbx, qword [rax]
call fcn.140078f78
mov r8, rdi
mov rdx, rbx
mov ecx, dword [rax]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp main
sub rsp, 0x28
call fcn.1400654a4
add rsp, 0x28
jmp 0x1400646e0

Function at 0x140065374
Capabilities:
Parse pe header

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

Function at 0x14007697c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140076704
Function at 0x1400a55b0
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400a55e0
xor eax, eax
jmp 0x1400a56a3
mov rbp, rbx
cmp word [rax], si
je 0x1400a5605
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400a55ec
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400a55e8
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400a5430
movsxd r14, eax
test eax, eax
jne 0x1400a5643
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400a55d9
mov rcx, r14
call fcn.1400a1a8c
mov rdi, rax
test rax, rax
jne 0x1400a565c
xor ecx, ecx
call fcn.1400a2040
jmp 0x1400a5638
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400a5430
test eax, eax
jne 0x1400a568d
mov rcx, rdi
call fcn.1400a2040
jmp 0x1400a5697
xor ecx, ecx
call fcn.1400a2040
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400b1948
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400a3304
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400b19d2
cmp byte [rbp - 0x21], r15b
je 0x1400b19cd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400b1a08
call fcn.1400a700c
test eax, eax
jne 0x1400b19f4
cmp byte [rbp - 0x21], r15b
je 0x1400b19ec
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400b1a08
cmp byte [rbp - 0x21], r15b
je 0x1400b1a05
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400a20a4
test eax, eax
jne 0x1400b1aa8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400a3304
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400b1a47
cmp byte [rbp - 0x21], r15b
je 0x1400b1a7c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400b1a7c
call fcn.1400a700c
test eax, eax
jne 0x1400b1a68
cmp byte [rbp - 0x21], r15b
je 0x1400b1a61
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400b1a7c
cmp byte [rbp - 0x21], r15b
je 0x1400b1a79
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400a20a4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400b1aa8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400b1aab
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400b1ab9
mov rcx, rdi
call fcn.1400a2040
cmp byte [rbp + 0x3f], r15b
je 0x1400b1ac8
mov rcx, qword [rbp + 0x27]
call fcn.1400a2040
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400be690
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400be6b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400be6b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140f70e80
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f70e8a
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f70eb3
pop rbp
sub rbp, 0x33
sub rbp, 0xf70e80
sub rsp, 0x20
jmp 0x140f70ed2
mov rax, 0xf70e80
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x7546f52a
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f70ef1
jmp 0x140f70f08
invalid
Function at 0x140006170
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
mov r9d, eax
lea r8, [sym.ServiceExecutionThread]
xor eax, eax
lea rax, [rsp + 0x30]
mov rcx, r9
mov rdx, r9
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], rax
call qword [sym.imp.kernel32.dll_CreateThread]
mov qword [0x14000a070], rax
cmp qword [0x14000a070], 0
jne 0x1400061dc
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Failed_to_create_thread_n
call sym.fprintf_1
mov dword [rsp + 0x34], 0
jmp 0x1400061e4
mov dword [rsp + 0x34], 1
mov eax, dword [rsp + 0x34]
add rsp, 0x38
ret

Function at 0x140006520
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x38], rcx
mov rcx, qword [rsp + 0x38]
mov rax, qword [sym.imp.ucrtbase.dll_strlen]
call rax
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140006555
mov dword [rsp + 0x44], 0
jmp 0x1400065c7
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
sub rcx, 1
movsx eax, byte [rax + rcx]
cmp eax, 0xa
je 0x14000658b
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x48]
call sym.HandleToULong
mov dword [rsp + 0x2c], eax
jmp 0x140006596
xor eax, eax
mov dword [rsp + 0x2c], eax
jmp 0x140006596
mov eax, dword [rsp + 0x2c]
xchg dword [0x14000a1a4], eax
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov r9, rax
mov r8, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov edx, 1
call qword [sym.imp.ucrtbase.dll_fwrite]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
add rsp, 0x48
ret
Function at 0x140006ae0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
lea rcx, str.WINEDEBUG
call qword [sym.imp.ucrtbase.dll_getenv]
mov qword [rsp + 0x20], rax
mov dword [0x14000a020], 0
cmp qword [rsp + 0x20], 0
je 0x140006b16
mov rcx, qword [rsp + 0x20]
call sym.parse_options
nop
add rsp, 0x28
ret

Function at 0x1400071a0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x38
mov ecx, 1
call sub.ucrtbase.dll__configure_narrow_argv
call sub.ucrtbase.dll__initialize_narrow_environment
call sub.ucrtbase.dll___p___argc
mov eax, dword [rax]
mov dword [rsp + 0x34], eax
call sub.ucrtbase.dll___p___argv
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
call sub.ucrtbase.dll__get_initial_narrow_environment
mov qword [rsp + 0x20], rax
call sym.get_nt_header
movzx edx, word [rax + 0x5c]
mov ecx, 1
mov eax, 2
cmp edx, 2
cmove ecx, eax
call sub.ucrtbase.dll__set_app_type
mov r8, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x34]
call sym.main
mov dword [rsp + 0x30], eax
mov ecx, dword [rsp + 0x30]
call sub.ucrtbase.dll_exit
int3

Function at 0x140007250
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0xc8
mov dword [rsp + 0xc4], 0
mov qword [rsp + 0xb8], rdx
mov dword [rsp + 0xb4], ecx
call qword [sym.imp.kernel32.dll_GetCommandLineA]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x3c], 0
mov dword [rsp + 0x38], 0
mov rax, qword [rsp + 0x40]
cmp byte [rax], 0
je 0x140007353
mov rax, qword [rsp + 0x40]
movsx eax, byte [rax]
cmp eax, 9
je 0x1400072bc
mov rax, qword [rsp + 0x40]
movsx eax, byte [rax]
cmp eax, 0x20
jne 0x1400072cc
cmp dword [rsp + 0x38], 0
jne 0x1400072cc
jmp 0x140007353
mov rax, qword [rsp + 0x40]
movsx eax, byte [rax]
cmp eax, 0x5c
jne 0x1400072ed
mov eax, dword [rsp + 0x3c]
add eax, 1
mov dword [rsp + 0x3c], eax
jmp 0x14000733b
mov rax, qword [rsp + 0x40]
movsx eax, byte [rax]
cmp eax, 0x22
jne 0x14000732e
mov eax, dword [rsp + 0x3c]
and eax, 1
cmp eax, 0
jne 0x140007321
cmp dword [rsp + 0x38], 0
setne al
xor al, 0xff
and al, 1
movzx eax, al
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x3c], 0
jmp 0x140007336
mov dword [rsp + 0x3c], 0
jmp 0x14000733b
jmp 0x140007340
mov rax, qword [rsp + 0x40]
add rax, 1
mov qword [rsp + 0x40], rax
jmp 0x14000728c
jmp 0x140007358
mov rax, qword [rsp + 0x40]
movsx ecx, byte [rax]
mov al, 1
cmp ecx, 9
mov byte [rsp + 0x37], al
je 0x140007381
mov rax, qword [rsp + 0x40]
movsx eax, byte [rax]
cmp eax, 0x20
sete al
mov byte [rsp + 0x37], al
mov al, byte [rsp + 0x37]
test al, 1
jne 0x140007392
jmp 0x1400073a5
mov rax, qword [rsp + 0x40]
add rax, 1
mov qword [rsp + 0x40], rax
jmp 0x140007358
lea rcx, [rsp + 0x48]
call qword [sym.imp.kernel32.dll_GetStartupInfoA]
mov eax, dword [rsp + 0x84]
and eax, 1
cmp eax, 0
jne 0x1400073cd
mov word [rsp + 0x88], 1
movzx eax, word [rsp + 0x88]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
xor eax, eax
mov ecx, eax
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
mov r8, qword [rsp + 0x28]
mov r9d, dword [rsp + 0x30]
mov rcx, rax
xor eax, eax
mov edx, eax
call sym.WinMain
nop
add rsp, 0xc8
ret
Function at 0x18000114a
Capabilities:
Hash data with md5

Disassembly:
jmp 0x180109ff0
xor eax, eax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rax
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x28], rax
mov qword [rcx + 0x30], rax
mov qword [rcx + 0x38], rax
mov qword [rcx + 0x40], rax
mov qword [rcx + 0x48], rax
mov qword [rcx + 0x50], rax
mov dword [rcx + 0x58], eax
mov eax, 1
mov dword [rcx], 0x67452301
mov dword [rcx + 4], 0xefcdab89
mov dword [rcx + 8], 0x98badcfe
mov dword [rcx + 0xc], 0x10325476
ret
Function at 0x180001163
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
jmp 0x1800723b0
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x3f]
mov eax, 0xb0
call fcn.180001055
sub rsp, rax
mov rax, qword [0x1802946b8]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov eax, dword [r9]
mov rdi, rcx
mov rcx, qword [rbp + 0x7f]
mov r14, r8
mov dword [rbp - 1], eax
mov rsi, rdx
mov eax, dword [r9 + 4]
mov dword [rbp + 3], eax
mov eax, dword [r9 + 8]
mov dword [rbp + 7], eax
mov eax, dword [r9 + 0xc]
mov dword [rbp + 0xb], eax
mov eax, dword [r9 + 0x10]
mov dword [rbp + 0xf], eax
mov eax, dword [r9 + 0x14]
mov dword [rbp + 0x13], eax
mov eax, dword [r9 + 0x18]
mov dword [rbp + 0x17], eax
mov eax, dword [r9 + 0x1c]
mov dword [rbp + 0x1b], eax
mov eax, dword [rcx]
mov dword [rbp + 0x1f], eax
mov eax, dword [rcx + 4]
mov dword [rbp + 0x23], eax
mov eax, dword [rcx + 8]
mov dword [rbp + 0x27], eax
mov eax, dword [rcx + 0xc]
mov dword [rbp + 0x2b], eax
mov dword [rbp - 0x11], 0x61707865
mov dword [rbp - 0xd], 0x3320646e
mov dword [rbp - 9], 0x79622d32
mov dword [rbp - 5], 0x6b206574
test r8, r8
je 0x1800725c4
mov qword [rsp + 0xd8], rbx
nop dword [rax]
nop word [rax + rax]
mov ebx, 0x40
lea rdx, [rbp - 0x11]
cmp r14, rbx
lea rcx, [rbp - 0x51]
cmovb rbx, r14
call fcn.180072680
xor eax, eax
test rbx, rbx
je 0x1800725aa
cmp rbx, 0x40
jb 0x180072577
lea rdx, [rdi - 1]
add rdx, rbx
lea rcx, [rbp + rbx - 0x52]
cmp rdi, rcx
ja 0x1800724bc
lea rcx, [rbp - 0x51]
cmp rdx, rcx
jae 0x180072577
lea rcx, [rsi - 1]
add rcx, rbx
cmp rdi, rcx
ja 0x1800724d1
cmp rdx, rsi
jae 0x180072577
mov r9, rbx
and r9, 0xffffffffffffffc0
lea rcx, [rbp - 0x51]
mov rdx, rsi
sub rdx, rcx
mov r8, rdi
lea rcx, [rbp - 0x51]
sub r8, rcx
nop dword [rax]
movdqu xmm0, xmmword [rbp + rax - 0x51]
lea rcx, [rbp - 0x41]
movdqu xmm1, xmmword [rsi + rax]
add rcx, rdx
pxor xmm1, xmm0
movdqu xmm0, xmmword [rbp + rax - 0x41]
movdqu xmmword [rdi + rax], xmm1
movdqu xmm1, xmmword [rcx + rax]
lea rcx, [rbp - 0x41]
add rcx, r8
pxor xmm1, xmm0
movdqu xmm0, xmmword [rbp + rax - 0x31]
movdqu xmmword [rcx + rax], xmm1
lea rcx, [rbp - 0x31]
add rcx, rdx
movdqu xmm1, xmmword [rcx + rax]
lea rcx, [rbp - 0x31]
add rcx, r8
pxor xmm1, xmm0
movdqu xmm0, xmmword [rbp + rax - 0x21]
movdqu xmmword [rcx + rax], xmm1
lea rcx, [rbp - 0x21]
add rcx, rdx
movdqu xmm1, xmmword [rcx + rax]
lea rcx, [rbp - 0x21]
add rcx, r8
pxor xmm1, xmm0
movdqu xmmword [rcx + rax], xmm1
add rax, 0x40
cmp rax, r9
jb 0x1800724f0
cmp rax, rbx
jae 0x1800725aa
lea rcx, [rbp - 0x51]
mov r8, rsi
sub r8, rcx
mov r9, rdi
lea rcx, [rbp - 0x51]
sub r9, rcx
lea rdx, [rbp - 0x51]
add rdx, rax
inc rax
movzx ecx, byte [r8 + rdx]
xor cl, byte [rdx]
mov byte [r9 + rdx], cl
cmp rax, rbx
jb 0x180072590
inc dword [rbp + 0x1f]
add rdi, rbx
add rsi, rbx
sub r14, rbx
jne 0x180072470
mov rbx, qword [rsp + 0xd8]
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1800028c4
mov rsi, qword [rsp + 0xe0]
add rsp, 0xb0
pop r14
pop rdi
pop rbp
ret
Function at 0x1800011ae
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x18016e5b0
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x20
call fcn.180001055
sub rsp, rax
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180001618
Capabilities:
Encrypt data using chaskey
Hash data using murmur3
Resolve function by parsing pe exports

Disassembly:
jmp 0x18013f620
mov eax, 0x28
call fcn.180001055
sub rsp, rax
lea r8d, [rax - 0x27]
add rsp, 0x28
jmp fcn.1800056e1

Function at 0x180001645
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x18016e600
push rbx
mov eax, 0x20
call fcn.180001055
sub rsp, rax
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
xor ecx, ecx
mov dword [rbx], eax
cmp eax, 0xffffffff
setne cl
mov eax, ecx
add rsp, 0x20
pop rbx
ret

Function at 0x18000171c
Capabilities:
Query environment variable

Disassembly:
jmp 0x180101320
push rbx
mov eax, 0x20
call fcn.180001055
sub rsp, rax
mov rbx, rcx
call sym.libcrypto_1_1_x64.dll_OPENSSL_issetugid
test eax, eax
je 0x180101343
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]

Function at 0x180001870
Capabilities:
Hash data using sha256

Disassembly:
jmp 0x180156b80
xor eax, eax
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x28], rax
mov qword [rcx + 0x30], rax
mov qword [rcx + 0x38], rax
mov qword [rcx + 0x40], rax
mov qword [rcx + 0x48], rax
mov qword [rcx + 0x50], rax
mov qword [rcx + 0x58], rax
mov qword [rcx + 0x60], rax
mov dword [rcx + 0x68], eax
mov eax, 1
mov dword [rcx], 0x6a09e667
mov dword [rcx + 4], 0xbb67ae85
mov dword [rcx + 8], 0x3c6ef372
mov dword [rcx + 0xc], 0xa54ff53a
mov dword [rcx + 0x10], 0x510e527f
mov dword [rcx + 0x14], 0x9b05688c
mov dword [rcx + 0x18], 0x1f83d9ab
mov dword [rcx + 0x1c], 0x5be0cd19
mov dword [rcx + 0x6c], 0x20
ret

Function at 0x180001951
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x180019bc0
mov eax, 0x28
call fcn.180001055
sub rsp, rax
mov r8d, dword [rcx + 4]
mov r9, rdx
movsxd rdx, dword [rcx]
and r8d, 0x100
mov rcx, qword [rcx + 8]
add rsp, 0x28
jmp fcn.180019c00
Function at 0x180001d93
Capabilities:
Resolve dns

Disassembly:
jmp 0x18003a520
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
mov eax, 0x60
call fcn.180001055
sub rsp, rax
xor edi, edi
mov ebx, r9d
mov ebp, r8d
mov r14, rdx
mov rsi, rcx
cmp r9d, 0x17
ja 0x18003a6b2
mov eax, 0x800005
bt eax, ebx
jae 0x18003a6b2
call sym.libcrypto_1_1_x64.dll_BIO_sock_init
cmp eax, 1
jne 0x18003a6d2
mov eax, dword [rsp + 0xa0]
mov ecx, edi
mov dword [rsp + 0x38], eax
xorps xmm0, xmm0
mov eax, dword [rsp + 0xa8]
xorps xmm1, xmm1
mov qword [rsp + 0x80], r15
mov r15d, edi
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x34], ebx
movdqu xmmword [rsp + 0x40], xmm0
movdqu xmmword [rsp + 0x50], xmm1
test rsi, rsi
je 0x18003a5bd
test ebx, ebx
jne 0x18003a5bd
bts ecx, 0xa
mov dword [rsp + 0x30], ecx
cmp ebp, 1
jne 0x18003a5c8
or ecx, ebp
mov dword [rsp + 0x30], ecx
mov rbp, qword [rsp + 0xb0]
lea r8, [rsp + 0x30]
mov r9, rbp
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebx, eax
test eax, eax
je 0x18003a62b
nop word [rax + rax]
cmp ebx, 8
je 0x18003a686
mov ecx, dword [rsp + 0x30]
bt ecx, 0xa
jae 0x18003a63f
btr ecx, 0xa
lea r8, [rsp + 0x30]
or ecx, 4
mov r9, rbp
mov dword [rsp + 0x30], ecx
mov rdx, r14
mov rcx, rsi
mov r15d, ebx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebx, eax
test eax, eax
jne 0x18003a5f0
mov edi, 1
mov r15, qword [rsp + 0x80]
mov eax, edi
jmp 0x18003a6d4
mov edx, 0x8f
mov dword [rsp + 0x20], 0x2da
lea r9, str.crypto_bio_b_addr.c
lea ecx, [rdx - 0x6f]
lea r8d, [rcx - 0x1e]
call sym.libcrypto_1_1_x64.dll_ERR_put_error
test r15d, r15d
cmovne ebx, r15d
mov ecx, ebx
call fcn.1800066cc
mov rdx, rax
mov ecx, 1
call sym.libcrypto_1_1_x64.dll_ERR_add_error_data
mov r15, qword [rsp + 0x80]
mov eax, edi
jmp 0x18003a6d4
mov edx, 0x8f
mov dword [rsp + 0x20], 0x2cb
lea r9, str.crypto_bio_b_addr.c
lea ecx, [rdx - 0x6f]
lea r8d, [rdx - 0x4e]
call sym.libcrypto_1_1_x64.dll_ERR_put_error
mov r15, qword [rsp + 0x80]
mov eax, edi
jmp 0x18003a6d4
mov edx, 0x8f
mov dword [rsp + 0x20], 0x297
lea r9, str.crypto_bio_b_addr.c
lea ecx, [rdx - 0x6f]
lea r8d, [rdx - 0xc]
call sym.libcrypto_1_1_x64.dll_ERR_put_error
xor eax, eax
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x180002239
Capabilities:
Set socket configuration

Disassembly:
jmp 0x18003ddf0
push rbx
mov eax, gethostbyname
call fcn.180001055
sub rsp, rax
mov dword [rsp + 0x40], edx
lea r8, [rsp + 0x40]
mov edx, 0x8004667e
movsxd rcx, ecx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, eax
test eax, eax
jns 0x18003de41
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, 5
mov dword [rsp + 0x20], 0xc3
mov r8d, eax
lea r9, str.crypto_bio_b_sock.c
lea ecx, [rdx - 3]
call sym.libcrypto_1_1_x64.dll_ERR_put_error
xor eax, eax
test ebx, ebx
sete al
add rsp, 0x30
pop rbx
ret
Function at 0x180002266
Capabilities:
Terminate process

Disassembly:
jmp 0x1801b8f80
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x1800025b8
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x180037870
mov eax, 0x28
call fcn.180001055
sub rsp, rax
lea rcx, [0x18029488c]
add rsp, 0x28
jmp sym.libcrypto_1_1_x64.dll_CRYPTO_THREAD_get_local
Function at 0x180002a7c
Capabilities:
Encrypt data using chaskey
Hash data using murmur3
Resolve function by parsing pe exports

Disassembly:
jmp 0x1801091e0
mov eax, 0x28
call fcn.180001055
sub rsp, rax
lea r8d, [rax - 0x27]
add rsp, 0x28
jmp fcn.180003706

Function at 0x180002a9a
Capabilities:
Initialize winsock library

Disassembly:
jmp 0x18003dcc0
mov eax, 0x38
call fcn.180001055
sub rsp, rax
cmp dword [0x1802948b0], 0
jne 0x18003dd5d
xor edx, edx
mov dword [0x1802948b0], 1
mov r8d, 0x198
lea rcx, [0x1802948c0]
call sub.VCRUNTIME140.dll_memset
mov ecx, 0x202
lea rdx, [0x1802948c0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x18003dd5d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, 9
mov dword [rsp + 0x20], 0x87
lea r9, str.crypto_bio_b_sock.c
mov r8d, eax
lea ecx, [rdx - 7]
call sym.libcrypto_1_1_x64.dll_ERR_put_error
mov edx, reloc.WS2_32.dll_WSASetLastError
mov dword [rsp + 0x20], 0x88
lea r9, str.crypto_bio_b_sock.c
lea r8d, [rdx + 0xa]
lea ecx, [rdx - 0x50]
call sym.libcrypto_1_1_x64.dll_ERR_put_error
mov eax, 0xffffffff
add rsp, 0x38
ret
mov eax, 1
add rsp, 0x38
ret

Function at 0x180002c52
Capabilities:
Check for software breakpoints

Disassembly:
jmp 0x180150010
mov eax, 0x38
call fcn.180001055
sub rsp, rax
mov r11, rcx
cmp dword [rsp + 0x60], r9d
jne 0x1801500fc
movzx r10d, byte [r8]
lea eax, [r10 - 0x6a]
cmp al, 1
ja 0x1801500fc
mov qword [rsp + 0x30], rbx
lea rdx, [r8 + 1]
cmp r10b, 0x6b
jne 0x1801500a9
lea ebx, [r9 - 3]
xor eax, eax
test ebx, ebx
jle 0x18015006a
movzx ecx, byte [rdx]
inc rdx
cmp cl, 0xba
je 0x18015006a
cmp cl, 0xbb
jne 0x18015009f
inc eax
cmp eax, ebx
jl 0x180150054
sub ebx, eax
test eax, eax
jne 0x1801500ad
mov dword [rsp + 0x20], 0x50
mov edx, 0x80
lea r9, str.crypto_rsa_rsa_x931.c
lea ecx, [rdx - 0x7c]
lea r8d, [rdx + 0xa]
call sym.libcrypto_1_1_x64.dll_ERR_put_error
mov rbx, qword [rsp + 0x30]
mov eax, 0xffffffff
add rsp, 0x38
ret
mov dword [rsp + 0x20], 0x48
jmp 0x180150078
lea ebx, [r9 - 2]
movsxd rax, ebx
cmp byte [rax + rdx], 0xcc
je 0x1801500e5
mov edx, 0x80
mov dword [rsp + 0x20], 0x59
lea r9, str.crypto_rsa_rsa_x931.c
lea ecx, [rdx - 0x7c]
lea r8d, [rdx + 0xb]
call sym.libcrypto_1_1_x64.dll_ERR_put_error
mov rbx, qword [rsp + 0x30]
mov eax, 0xffffffff
add rsp, 0x38
ret
mov r8d, ebx
mov rcx, r11
call sub.VCRUNTIME140.dll_memcpy
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x38
ret
mov edx, 0x80
mov dword [rsp + 0x20], 0x3d
lea r9, str.crypto_rsa_rsa_x931.c
lea ecx, [rdx - 0x7c]
lea r8d, [rdx + 9]
call sym.libcrypto_1_1_x64.dll_ERR_put_error
mov eax, 0xffffffff
add rsp, 0x38
ret