joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c8760
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1402fa080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1400c87f5
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x1400c8856
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1400a2cb0
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400dbe60
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x1400c8911
sub ecx, 1
je 0x1400c8984
sub ecx, 1
je 0x1400c88c0
cmp ecx, 1
je 0x1400c88a3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1402e5334]
call fcn.1400a2cb0
jmp 0x1400c8984
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400c8490
test eax, eax
je 0x1400c8984
jmp 0x1400c882a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1400c8984
sub rax, rsi
cmp rax, rbp
jae 0x1400c8984
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.1400a2e30
jmp 0x1400c8984
cmp r8d, 4
jle 0x1400c8984
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x1400c8984
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1400a2bd0
mov esi, eax
test eax, eax
je 0x1400c8963
mov edx, 5
mov rcx, rbx
call fcn.1400c9450
mov eax, esi
jmp 0x1400c882a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1400b16b0
mov rcx, r14
call fcn.1400b1990
test eax, eax
je 0x1400c8828
mov edx, 5
mov rcx, rbx
call fcn.1400c9450
mov eax, Ordinal_45
jmp 0x1400c882a
Function at 0x1400db720
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400db762
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400db7a9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400db802
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400db7c0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400db843
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400f0402]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400f0403]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400db810
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400db870
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400db8aa
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400db8af
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400db8f8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1400db8f8
dec r8
sub rdx, 1
jne 0x1400db8de
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400dcce4
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140005860
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140008400]
cmp byte [rcx + rax], 0
je 0x140005860
dec r8
sub rdx, 1
jne 0x140005846
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140006b24
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006b6e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006b6e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006b6e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006b6e
cmp dword [rcx + 0x84], 0xe
jbe 0x140006b6e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140006b70
xor al, al
add rsp, 0x28
ret
Function at 0x140006882
Capabilities:
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
xor bx, 0xa992
push rsi
btr rax, r10
bt ax, 0x9b
ror rbx, cl
push rdi
not al
push r14
adc al, 0x93
sub rsp, 0x30
shld eax, r15d, 0x17
or ax, r15w
ror bl, cl
and qword [r11 + 8], 0
movsx ebx, si
setns ah
mov rbx, rcx
mov eax, dword [rcx + 0x18]
test r9b, sil
jmp 0x1400068cf
test eax, eax
je 0x140006a2a
mov ecx, eax
lea rdx, [r11 + 8]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov edi, eax
cmc
test eax, eax
jmp 0x1400068ed
jne 0x140006a33
mov rcx, qword [rsp + 0x50]
call fcn.140006704
mov rcx, qword [rsp + 0x50]
movsxd rbp, ebp
movsx bp, spl
mov rbp, rax
jmp 0x140006912
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rsi, qword [rbx + 0x10]
stc
cmc
sub r14d, r14d
jmp 0x140006a0a
mov rdx, qword [rbx + 8]
xadd ch, cl
add cl, 0x14
mov rcx, rbp
cmc
add rdx, r14
call fcn.140006a62
test rax, rax
jmp 0x140006944
je 0x140006a2a
mov rcx, qword [rbx]
jmp 0x140006952
mov rdx, rax
setne r8b
shld r9w, r12w, 0x16
add r8w, 0x889d
and qword [rsp + 0x58], 0
and edx, 0xfff
neg r9w
movsxd r9, r14d
bsr r8d, ebx
add rcx, r14
shl r8d, 0x8e
setg r9b
movsx r8, cx
mov r9d, 0x1000
btr r8d, 0x32
cmc
sub r9, rdx
mov r8, rsi
stc
clc
cmp r9, rsi
movsx rdx, sp
cqo
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x20], rdx
movsx rdx, bp
mov dx, sp
mov rdx, rax
cmovb r8, r9
setno r9b
not r9b
mov r9d, 1
jmp 0x1400069d2
call qword [sym.imp.ntoskrnl.exe_MmCopyMemory]
mov edi, eax
movzx rax, ax
mov rax, qword [rsp + 0x58]
sub rsi, rax
stc
cmp r13b, cl
clc
lea r14, [r14 + rax]
test edi, edi
jmp 0x1400069f6
jne 0x140006a18
test rax, rax
jmp 0x140006a04
je 0x140006a18
test rsi, rsi
jmp 0x140006a12
jne 0x140006926
mov qword [rbx + 0x20], r14
movsx eax, r11w
movsxd rax, eax
mov eax, edi
jmp 0x140006a33
mov eax, 0xc0000001
sal sil, 0x12
mov rbx, qword [rsp + 0x60]
movsx rbp, r10w
test r10b, 0xd
rcr si, cl
mov rbp, qword [rsp + 0x68]
sal dil, 0x89
add rsp, 0x30
xchg r14b, r14b
movzx r14w, r14b
pop r14
pop rdi
pop rsi
jmp 0x140006a61
ret
Function at 0x140006ecd
Capabilities:
Find process by pid

Disassembly:
mov r11, rsp
sar al, cl
xor rax, 0x1eaa6e0b
mov qword [r11 + 0x18], rbx
sar rax, cl
btc ax, 0xb6
cmp ax, 0x733a
mov qword [r11 + 0x20], rbp
or al, 0x22
dec eax
push rsi
rol al, 0xaf
push rdi
btc bx, ax
push r14
sub rsp, 0x20
and qword [r11 + 8], 0
movsx bx, r12b
or bx, 0x4eb3
movzx rbx, r15w
mov rbx, rcx
rcl ah, cl
sub al, 0x91
mov eax, dword [rcx + 0x18]
test eax, eax
jmp 0x140006f24
je 0x14000705e
mov ecx, eax
lea rdx, [r11 + 8]
jmp 0x140006f35
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov edi, eax
test eax, eax
jmp 0x140006f44
jne 0x140007067
mov rcx, qword [rsp + 0x40]
call fcn.140006704
mov rcx, qword [rsp + 0x40]
movsx rbp, si
movzx bp, r12b
cmovle ebp, r9d
mov rbp, rax
jmp 0x140006f6e
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rsi, qword [rbx + 0x10]
stc
xor r14d, r14d
jmp 0x140006f81
jmp 0x14000703a
mov rdx, qword [rbx + 8]
shl ecx, 0x32
sal cl, cl
mov rcx, rbp
add rdx, r14
jmp 0x140006f9a
call fcn.140006a62
test rax, rax
jmp 0x140006fa7
je 0x14000705e
and qword [rsp + 0x48], 0
shl r8b, 0x8a
cqo
lea r9, [rsp + 0x48]
mov rcx, rax
mov edx, 0x1000
and r8, 0xffffffffa834b988
and ecx, 0xfff
mov r8, rsi
sub rdx, rcx
sal cl, 0xba
mov rcx, rax
cmp rdx, rsi
jmp 0x140006fe7
cmovb r8, rdx
inc dx
bts dx, r8w
cmovp rdx, r15
mov rdx, qword [rbx]
test bx, 0xfebb
jmp 0x140007004
add rdx, r14
jmp 0x14000700c
call fcn.140006de0
mov edi, eax
add ax, 0xbd84
mov rax, qword [rsp + 0x48]
clc
sub rsi, rax
clc
add r14, rax
test edi, edi
jmp 0x14000702b
jne 0x140007048
test rax, rax
je 0x140007048
test rsi, rsi
jmp 0x140007042
jne 0x140006f86
mov qword [rbx + 0x20], r14
cdqe
setno al
lahf
mov eax, edi
jmp 0x140007059
jmp 0x140007067
mov eax, 0xc0000001
rol dil, 0x28
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
jmp 0x14000707f
pop r14
not sil
pop rdi
pop rsi
ret
Function at 0x14001121c
Capabilities:
Terminate process

Disassembly:
jmp 0x1400136d0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x140011226
Capabilities:
Enumerate processes

Disassembly:
jmp 0x140011840
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x448
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xaa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x468]
mov rax, qword [0x14001e240]
xor rax, rbp
mov qword [rbp + 0x418], rax
lea rcx, [0x1400240a4]
call fcn.1400113b6
nop
mov qword [rbp + 8], 0
mov qword [rbp + 0x28], 0
mov dword [rbp + 0x50], 0x238
xor edx, edx
mov ecx, 0xf
call fcn.1400111b8
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x1400118d7
lea rcx, str._x__Failed_to_take_snapshot.
call qword [sym.imp.ucrtbased.dll_puts]
nop
xor eax, eax
jmp 0x1400119d9
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 8]
call fcn.140011253
test eax, eax
jne 0x140011908
lea rcx, str._x__Process32First___Failed_
call qword [sym.imp.ucrtbased.dll_puts]
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor eax, eax
jmp 0x1400119d9
lea rdx, [rbp + 0x7c]
mov rcx, qword [rbp + 0x448]
call qword [sym.imp.ucrtbased.dll__wcsicmp]
test eax, eax
jne 0x140011991
lea rcx, str.___Found_Process__Attempting_to_open_handle.
call qword [sym.imp.ucrtbased.dll_puts]
nop
mov r8d, dword [rbp + 0x58]
xor edx, edx
mov ecx, 0x43a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x140011957
lea rcx, str._x__Failed_to_get_handle_to_process_:_
call qword [sym.imp.ucrtbased.dll_puts]
nop
jmp 0x140011991
lea rcx, str.___Got_process_handle__:_
call qword [sym.imp.ucrtbased.dll_puts]
nop
mov rax, qword [rbp + 0x440]
mov rcx, qword [rbp + 0x28]
mov qword [rax], rcx
mov rax, qword [rbp + 0x450]
mov ecx, dword [rbp + 0x58]
mov dword [rax], ecx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, 1
jmp 0x1400119d9
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 8]
call fcn.14001136b
test eax, eax
jne 0x140011908
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rbp + 0x28], 0
je 0x1400119c3
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp + 0x448]
lea rcx, str._x__Failed_to_find_process__ls_n
call fcn.1400111ae
nop
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001ac00]
call fcn.140011348
mov rax, rdi
mov rcx, qword [rbp + 0x418]
xor rcx, rbp
call fcn.1400111cc
lea rsp, [rbp + 0x428]
pop rdi
pop rbp
ret
Function at 0x1400112ad
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014a20
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014a40
xor al, al
jmp 0x140014ac1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014a53
xor al, al
jmp 0x140014ac1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140014a7d
xor al, al
jmp 0x140014ac1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014a91
xor al, al
jmp 0x140014ac1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014aa3
xor al, al
jmp 0x140014ac1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014abf
xor al, al
jmp 0x140014ac1
mov al, 1
add rsp, 0x38
ret
Function at 0x140011438
Capabilities:
Allocate or change rwx memory

Disassembly:
jmp 0x140012010
push rbp
push rdi
sub rsp, 0x118
lea rbp, [rsp + 0x30]
lea rcx, [0x140024169]
call fcn.1400113b6
nop
mov qword [rbp + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x3e8
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocExNuma]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x14001208c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x8000
mov r8d, 0x3e8
mov rdx, qword [rbp + 8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
nop
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x140012910
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400113de
movzx eax, al
test eax, eax
jne 0x140012930
mov ecx, 7
call fcn.140011352
nop
mov byte [rsp + 0x20], 0
call fcn.140011366
mov byte [rsp + 0x21], al
cmp dword [0x14001eaa8], 1
jne 0x140012954
mov ecx, 7
call fcn.140011352
nop
jmp 0x1400129ac
cmp dword [0x14001eaa8], 0
jne 0x1400129a7
mov dword [0x14001eaa8], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.1400111b3
test eax, eax
je 0x140012988
mov eax, 0xff
jmp 0x140012ab1
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.14001135c
mov dword [0x14001eaa8], 2
jmp 0x1400129ac
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14001133e
call fcn.1400112d0
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140012a09
mov rcx, qword [rsp + 0x30]
call fcn.14001115e
movzx eax, al
test eax, eax
je 0x140012a09
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140025020]
nop
call fcn.140011302
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140012a3d
mov rcx, qword [rsp + 0x38]
call fcn.14001115e
movzx eax, al
test eax, eax
je 0x140012a3d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011398
nop
call fcn.140012b60
mov dword [rsp + 0x28], eax
call fcn.1400112ad
movzx eax, al
test eax, eax
jne 0x140012a5c
mov ecx, dword [rsp + 0x28]
call fcn.140011055
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140012a6b
call fcn.1400113a7
nop
xor edx, edx
mov cl, 1
call fcn.14001114a
mov eax, dword [rsp + 0x28]
jmp 0x140012ab1
add rsp, 0x68
ret
Function at 0x1800615e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x30
mov byte [rsp + 0x2f], cl
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x18], r8
mov byte [rsp + 0x17], 0
movabs rax, 0x345ccf94c43328b2
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov qword [rsp], rax
movabs rcx, 0xa019b6062c0784eb
sub rax, rcx
je 0x180061715
jmp 0x180061624
mov rax, qword [rsp]
movabs rcx, 0xb2bcb689ecbe1e3a
sub rax, rcx
je 0x18006172e
jmp 0x18006163d
mov rax, qword [rsp]
movabs rcx, 0xcbabf63fd76dbc39
sub rax, rcx
je 0x1800617f9
jmp 0x180061656
mov rax, qword [rsp]
movabs rcx, 0xe109da7c0a888686
sub rax, rcx
je 0x1800617de
jmp 0x18006166f
mov rax, qword [rsp]
movabs rcx, 0x1008a241ef7ea0c3
sub rax, rcx
je 0x1800617cd
jmp 0x180061688
mov rax, qword [rsp]
movabs rcx, 0x227e613f09374174
sub rax, rcx
je 0x180061805
jmp 0x1800616a1
mov rax, qword [rsp]
movabs rcx, 0x345ccf94c43328b2
sub rax, rcx
je 0x1800616eb
jmp 0x1800616b6
mov rax, qword [rsp]
movabs rcx, 0x40e0543924e1d0b3
sub rax, rcx
je 0x180061758
jmp 0x1800616cf
mov rax, qword [rsp]
movabs rcx, 0x7f4fec41c1b1437a
sub rax, rcx
je 0x1800617b2
jmp 0x1800617fe
movzx edx, byte [rsp + 0x17]
movabs rax, 0xcbabf63fd76dbc39
movabs rcx, 0xa019b6062c0784eb
cmp edx, 4
cmovl rax, rcx
mov qword [rsp + 8], rax
jmp 0x180061800
mov byte [rsp + 0x16], 0
movabs rax, 0xb2bcb689ecbe1e3a
mov qword [rsp + 8], rax
jmp 0x180061800
movzx edx, byte [rsp + 0x16]
movabs rax, 0x1008a241ef7ea0c3
movabs rcx, 0x40e0543924e1d0b3
cmp edx, 4
cmovl rax, rcx
mov qword [rsp + 8], rax
jmp 0x180061800
mov rax, qword [rsp + 0x18]
movzx ecx, byte [rsp + 0x2f]
shl ecx, 2
shl ecx, 2
movzx edx, byte [rsp + 0x17]
shl edx, 2
add ecx, edx
movzx edx, byte [rsp + 0x16]
add ecx, edx
movsxd rcx, ecx
movzx r8d, byte [rax + rcx]
mov rax, qword [rsp + 0x20]
movzx ecx, byte [rsp + 0x17]
shl rcx, 2
add rax, rcx
movzx ecx, byte [rsp + 0x16]
movzx edx, byte [rax + rcx]
xor edx, r8d
mov byte [rax + rcx], dl
movabs rax, 0x7f4fec41c1b1437a
mov qword [rsp + 8], rax
jmp 0x180061800
mov al, byte [rsp + 0x16]
add al, 1
mov byte [rsp + 0x16], al
movabs rax, 0xb2bcb689ecbe1e3a
mov qword [rsp + 8], rax
jmp 0x180061800
movabs rax, 0xe109da7c0a888686
mov qword [rsp + 8], rax
jmp 0x180061800
mov al, byte [rsp + 0x17]
add al, 1
mov byte [rsp + 0x17], al
movabs rax, 0x345ccf94c43328b2
mov qword [rsp + 8], rax
jmp 0x180061800
add rsp, 0x30
ret
jmp 0x180061800
jmp 0x180061606
sub rsp, 0xe24e343
movabs rax, 0x227e613f09374174
mov qword [rsp + 8], rax
jmp 0x180061800
Function at 0x180061820
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
sub rsp, 0x20
mov qword [rsp + 0x18], rcx
mov byte [rsp + 0x17], 0
movabs rax, 0xeafe330bd4e48a8e
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov qword [rsp], rax
movabs rcx, 0x837e3c1fe546a2b3
sub rax, rcx
je 0x180061a2e
jmp 0x18006185b
mov rax, qword [rsp]
movabs rcx, 0x91a24ef811d57532
sub rax, rcx
je 0x180061a22
jmp 0x180061874
mov rax, qword [rsp]
movabs rcx, 0x99743fd30c5a5574
sub rax, rcx
je 0x180061961
jmp 0x18006188d
mov rax, qword [rsp]
movabs rcx, 0xd410813e99b1ccc3
sub rax, rcx
je 0x1800619db
jmp 0x1800618a6
mov rax, qword [rsp]
movabs rcx, 0xd893d4d3dad12ebc
sub rax, rcx
je 0x180061948
jmp 0x1800618bf
mov rax, qword [rsp]
movabs rcx, 0xdd3a2693c65ba772
sub rax, rcx
je 0x1800619f6
jmp 0x1800618d8
mov rax, qword [rsp]
movabs rcx, 0xeafe330bd4e48a8e
sub rax, rcx
je 0x18006191e
jmp 0x1800618ed
mov rax, qword [rsp]
movabs rcx, 0xf187340e332f948a
sub rax, rcx
je 0x180061a07
jmp 0x180061906
mov rax, qword [rsp]
movabs rcx, 0xf553faaffaf62bda
sub rax, rcx
je 0x18006198b
jmp 0x180061a27
movzx edx, byte [rsp + 0x17]
movabs rax, 0x91a24ef811d57532
movabs rcx, 0xd893d4d3dad12ebc
cmp edx, 4
cmovl rax, rcx
mov qword [rsp + 8], rax
jmp 0x180061a29
mov byte [rsp + 0x16], 0
movabs rax, 0x99743fd30c5a5574
mov qword [rsp + 8], rax
jmp 0x180061a29
movzx edx, byte [rsp + 0x16]
movabs rax, 0xdd3a2693c65ba772
movabs rcx, 0xf553faaffaf62bda
cmp edx, 4
cmovl rax, rcx
mov qword [rsp + 8], rax
jmp 0x180061a29
mov rax, qword [rsp + 0x18]
movzx ecx, byte [rsp + 0x16]
shl rcx, 2
add rax, rcx
movzx ecx, byte [rsp + 0x17]
movzx eax, byte [rax + rcx]
mov ecx, eax
lea rax, str.cw
mov dl, byte [rax + rcx]
mov rax, qword [rsp + 0x18]
movzx ecx, byte [rsp + 0x16]
shl rcx, 2
add rax, rcx
movzx ecx, byte [rsp + 0x17]
mov byte [rax + rcx], dl
movabs rax, 0xd410813e99b1ccc3
mov qword [rsp + 8], rax
jmp 0x180061a29
mov al, byte [rsp + 0x16]
add al, 1
mov byte [rsp + 0x16], al
movabs rax, 0x99743fd30c5a5574
mov qword [rsp + 8], rax
jmp 0x180061a29
movabs rax, 0xf187340e332f948a
mov qword [rsp + 8], rax
jmp 0x180061a29
mov al, byte [rsp + 0x17]
add al, 1
mov byte [rsp + 0x17], al
movabs rax, 0xeafe330bd4e48a8e
mov qword [rsp + 8], rax
jmp 0x180061a29
add rsp, 0x20
ret
jmp 0x180061a29
jmp 0x18006183d
sub rsp, 0x6a4ceb9
movabs rax, 0x837e3c1fe546a2b3
mov qword [rsp + 8], rax
jmp 0x180061a29
Function at 0x140002e50
Capabilities:
Parse pe header

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

Disassembly:
mov eax, 0x28
call fcn.14005d7e0
sub rsp, rax
xor edx, edx
mov ecx, 0x7640
call sub.libssl_3_x64.dll_OPENSSL_init_ssl
test eax, eax
je 0x140021072
call fcn.140055790
call fcn.1400573e0
lea rcx, str.OPENSSL_TEST_LIBCTX
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140021068
cmp byte [rax], 0x31
jne 0x140021068
cmp byte [rax + 1], 0
jne 0x140021068
call fcn.140054950
xor ecx, ecx
test rax, rax
setne cl
mov eax, ecx
add rsp, 0x28
ret
mov eax, 1
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret