joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4021d0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r8, rdx
lea rdx, [rax + rcx]
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x40221c
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov ecx, dword [rax + 0xc]
mov rdx, rcx
cmp rcx, r8
ja 0x402213
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x40221e
add rax, 0x28
cmp rax, r9
jne 0x402200
xor eax, eax
ret

Function at 0x402220
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x4022b0
mov rdx, qword [0x00409700]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x40229e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x40229e
cmp word [rax + 0x18], 0x20b
jne 0x40229e
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x4022b0
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x402289
add r12, 0x28
cmp r12, rsi
je 0x4022b0
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x402280
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

Function at 0x4022c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x00409700]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x4022e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x4022e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x4022e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x402335
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x40232c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4022e0
add rax, 0x28
cmp rax, r9
jne 0x402318
xor eax, eax
ret

Function at 0x402340
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x00409700]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x402360
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x402368
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x402360
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x402380
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x00409700]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x4023a0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x4023a8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x4023a0
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x4023e8
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x4023df
test rcx, rcx
je 0x4023a0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x4023d0
xor eax, eax
ret

Function at 0x4023f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x00409700]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x402410
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x402418
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x402430
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x00409700]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x402450
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x402458
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x402450
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x402450
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x402494
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4024a8
add rax, 0x28
cmp r9, rax
jne 0x402480
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

Function at 0x4024c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x00409700]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x4024e2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x4024f0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x4024e2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x4024e2
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x4024e2
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x40253d
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x402550
add rdx, 0x28
cmp r10, rdx
jne 0x402528
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x40255f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x40256f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x402546
test ecx, ecx
jg 0x402558
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00404620]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x00404630]
mov dword [rax], 1
mov rax, qword [0x00404640]
mov dword [rax], 1
mov rax, qword [0x00404610]
mov dword [rax], 1
mov rax, qword [0x00404500]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x00404600]
mov dword [0x0040700c], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x004045c0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x004044b0]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058

Function at 0x401550
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
push rdi
push rsi
sub rsp, 0x200
lea rbp, [rsp + 0x80]
call dbg.__main
lea rax, [rbp - 0x60]
lea rdx, section..rdata
mov ecx, 0x39
mov rdi, rax
mov rsi, rdx
rep movsq qword [rdi], qword [rsi]
mov rdx, rsi
mov rax, rdi
mov ecx, dword [rdx]
mov dword [rax], ecx
lea rax, [rax + 4]
lea rdx, [rdx + 4]
movzx ecx, byte [rdx]
mov byte [rax], cl
lea rax, [rax + 1]
lea rdx, [rdx + 1]
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x1cd
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0x178], rax
mov rax, qword [rbp + 0x178]
mov rdx, rax
lea rax, [rbp - 0x60]
mov ecx, 0x1cd
mov r8, qword [rax]
mov qword [rdx], r8
mov r8d, ecx
add r8, rdx
lea r9, [r8 + 8]
mov r8d, ecx
add r8, rax
add r8, 8
mov r8, qword [r8 - 0x10]
mov qword [r9 - 0x10], r8
lea r8, [rdx + 8]
and r8, 0xfffffffffffffff8
sub rdx, r8
sub rax, rdx
add ecx, edx
and ecx, 0xfffffff8
shr ecx, 3
mov edx, ecx
mov edx, edx
mov rdi, r8
mov rsi, rax
mov rcx, rdx
rep movsq qword [rdi], qword [rsi]
mov rax, qword [rbp + 0x178]
call rax
mov ecx, 0xea60
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov eax, 0
add rsp, 0x200
pop rsi
pop rdi
pop rbp
ret
Function at 0x401b70
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00407624]
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
test esi, esi
jle 0x401d24
mov rax, qword [0x00407628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x401bbc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x401c49
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x401ba0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x401d59
mov rax, qword [0x00407628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00407628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401d3c
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401c42
sub eax, 0x40
and eax, 0xffffffbf
jne 0x401cc4
add dword [0x00407624], 1
cmp edi, 8
jae 0x401c80
test dil, 4
jne 0x401d10
test edi, edi
je 0x401c6c
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x401d2b
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rbp]
mov qword [rbx], rax
mov eax, edi
mov rdx, qword [rbp + rax - 8]
mov qword [rbx + rax - 8], rdx
lea rax, [rbx + 8]
and rax, 0xfffffffffffffff8
sub rbx, rax
sub rbp, rbx
add ebx, edi
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x401c6c
and ebx, 0xfffffff8
xor edx, edx
mov ecx, edx
add edx, 8
mov r8, qword [rbp + rcx]
cmp edx, ebx
mov qword [rax + rcx], r8
jb 0x401cb0
jmp 0x401c6c
add rsi, qword [0x00407628]
mov rcx, qword [rsp + 0x20]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401c42
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax + rax]
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x401c6c
xor esi, esi
jmp 0x401bc7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x401c6c
mov rax, qword [0x00407628]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rsi + 0x18]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call dbg.__report_error
nop
nop dword [rax]
Function at 0x4024b0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00407900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004078e0]
test rbx, rbx
je 0x402504
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x4024fb
test rsi, rsi
je 0x4024fb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4024e0
lea rcx, [0x00407900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x402740
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x402750
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x402760
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x4027a1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x402798
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x4027a3
add rax, 0x28
cmp rax, r9
jne 0x402784
xor eax, eax
ret

Function at 0x402840
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00404500]
mov rdx, rcx
cmp word [r8], 0x5a4d
jne 0x4028ad
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4028ad
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x4028ad
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4028a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4028af
add rax, 0x28
cmp rax, r9
jne 0x402890
xor eax, eax
add rsp, 0x28
ret

Function at 0x4029b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00404500]
xor eax, eax
mov rdx, rcx
cmp word [r8], 0x5a4d
je 0x4029d0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4029c8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402a2d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402a24
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402a34
add rax, 0x28
cmp rax, r9
jne 0x402a10
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x402a50
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00404500]
mov r9d, ecx
cmp word [r11], 0x5a4d
jne 0x402abe
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402abe
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x402abe
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x402abe
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x402ab5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x402ac5
add rcx, 0x28
cmp rcx, rax
jne 0x402aa0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x402ad8
jmp 0x402abe
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x402ae6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x402abe
test r9d, r9d
jg 0x402ad0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret

Function at 0x402d20
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
mov r8d, 0x1b
mov edx, 1
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400301f4
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rax, r8
xor ecx, ecx
mov rdi, rdx
mov r8, r9
mov rdx, rax
mov qword [rbx], rcx
mov qword [rbx + 8], rcx
mov rcx, rbx
mov dword [rbx + 0x50], 0x6a09e667
mov dword [rbx + 0x54], 0xbb67ae85
mov dword [rbx + 0x58], 0x3c6ef372
mov dword [rbx + 0x5c], 0xa54ff53a
mov dword [rbx + 0x60], 0x510e527f
mov dword [rbx + 0x64], 0x9b05688c
mov dword [rbx + 0x68], 0x1f83d9ab
mov dword [rbx + 0x6c], 0x5be0cd19
call fcn.14002e44c
mov rdx, rdi
mov rcx, rbx
call fcn.14002e1e0
mov rbx, qword [rsp + 0x40]
mov rax, rdi
add rsp, 0x30
pop rdi
ret

Function at 0x140031254
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rsi, rcx
mov rdi, qword [rax + 0x18]
add rdi, 0x20
mov rbx, qword [rdi]
jmp 0x140031290
mov rcx, qword [rbx + 0x40]
mov rdx, rsi
call fcn.14000a854
test rax, rax
jne 0x1400312a7
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x14003127c
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rbx + 0x20]
jmp 0x140031297

Function at 0x1400315ec
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x240
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.14000b210
lea rcx, [0x140041750]
call fcn.1400106c8
lea rdx, [rsp + 0x30]
mov r8, rax
sub rdx, 2
lea rdx, [rdx + 2]
cmp word [rdx], 0
jne 0x140031622
xor ecx, ecx
movzx eax, word [r8 + rcx*2]
mov word [rdx + rcx*2], ax
inc rcx
test ax, ax
jne 0x14003162e
lea rcx, [rsp + 0x30]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x140031648
mov eax, dword [0x1400417b8]
lea rdx, [0x1400417c0]
movaps xmm0, xmmword [str.MicrosoftWindowsFontsAdSlavicF.ttf]
mov r9d, 1
movaps xmm1, xmmword [0x140041780]
xor r8d, r8d
movups xmmword [rcx], xmm0
mov dword [rsp + 0x28], 0x208
movaps xmm0, xmmword [0x140041790]
movups xmmword [rcx + 0x10], xmm1
movaps xmm1, xmmword [0x1400417a0]
movups xmmword [rcx + 0x20], xmm0
movsd xmm0, qword [0x1400417b0]
movups xmmword [rcx + 0x30], xmm1
movsd qword [rcx + 0x40], xmm0
mov dword [rcx + 0x48], eax
movzx eax, word [0x1400417bc]
mov word [rcx + 0x4c], ax
lea rax, [rsp + 0x30]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x240
pop rbx
ret
Function at 0x140031d40
Capabilities:
Create directory
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x360
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x104
call fcn.14000b210
lea rcx, str.LOCALAPPDATA
call fcn.1400106d0
lea rcx, [rsp + 0x40]
mov r8, rax
dec rcx
xor edi, edi
inc rcx
cmp byte [rcx], dil
jne 0x140031d78
xor edx, edx
mov al, byte [r8 + rdx]
mov byte [rcx + rdx], al
inc rdx
test al, al
jne 0x140031d82
lea rcx, [rsp + 0x40]
dec rcx
inc rcx
cmp byte [rcx], dil
jne 0x140031d98
movups xmm0, xmmword [str.MicrosoftWindowsFonts]
mov al, byte [0x140041800]
xor edx, edx
movups xmmword [rcx], xmm0
movsd xmm0, qword [0x1400417f8]
movsd qword [rcx + 0x10], xmm0
mov byte [rcx + 0x18], al
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
xor edx, edx
lea rcx, [rsp + 0x150]
mov r8d, 0x208
call fcn.14000b210
lea rcx, [0x140041750]
call fcn.1400106c8
lea rcx, [rsp + 0x150]
mov r8, rax
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], di
jne 0x140031dfd
xor edx, edx
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
inc rdx
test ax, ax
jne 0x140031e08
lea rcx, [rsp + 0x150]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], di
jne 0x140031e25
movaps xmm0, xmmword [str.MicrosoftWindowsFontsAdSlavicF.ttf]
xor r9d, r9d
movaps xmm1, xmmword [0x140041780]
xor r8d, r8d
mov eax, dword [0x1400417b8]
mov edx, 0x40000000
movups xmmword [rcx], xmm0
mov qword [rsp + 0x30], rdi
movaps xmm0, xmmword [0x140041790]
movups xmmword [rcx + 0x10], xmm1
mov dword [rsp + 0x28], pe_nt_image_headers64
movaps xmm1, xmmword [0x1400417a0]
movups xmmword [rcx + 0x20], xmm0
mov dword [rsp + 0x20], 2
movsd xmm0, qword [0x1400417b0]
movups xmmword [rcx + 0x30], xmm1
movsd qword [rcx + 0x40], xmm0
mov dword [rcx + 0x48], eax
movzx eax, word [0x1400417bc]
mov word [rcx + 0x4c], ax
lea rcx, [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea r9, [rsp + 0x370]
mov qword [rsp + 0x20], rdi
mov rcx, rax
lea rdx, [0x14006f210]
mov r8d, 0x155b4
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x378]
add rsp, 0x360
pop rdi
ret
Function at 0x140032640
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r10, rdx
mov r9, rcx
test rcx, rcx
je 0x1400326c1
test rdx, rdx
je 0x1400326c1
movsxd rax, dword [rcx + 0x3c]
mov r8d, dword [rax + rcx + 0x88]
add r8, rcx
mov edi, dword [r8 + 0x1c]
mov edx, dword [r8 + 0x20]
add rdi, rcx
mov esi, dword [r8 + 0x24]
add rdx, rcx
mov ebp, dword [r8 + 0x18]
add rsi, rcx
xor ecx, ecx
test ebp, ebp
je 0x1400326c1
mov eax, dword [rdx]
mov rbx, r10
add rax, r9
sub rbx, rax
movzx r8d, byte [rax]
movzx r11d, byte [rax + rbx]
sub r8d, r11d
jne 0x1400326b2
inc rax
test r11d, r11d
jne 0x14003269c
test r8d, r8d
je 0x1400326d8
inc ecx
add rdx, 4
cmp ecx, ebp
jb 0x140032691
xor eax, eax
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
movzx ecx, word [rsi + rcx*2]
mov eax, dword [rdi + rcx*4]
add rax, r9
jmp 0x1400326c3

Function at 0x1400326e4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
xor ebx, ebx
mov r13, rdx
mov rsi, rcx
mov edi, dword [rax + rcx + 0x88]
add rdi, rcx
mov r14d, dword [rdi + 0x1c]
mov r15d, dword [rdi + 0x20]
add r14, rcx
mov r12d, dword [rdi + 0x24]
add r15, rcx
add r12, rcx
cmp dword [rdi + 0x18], ebx
jbe 0x140032757
movzx eax, word [r12 + rbx*2]
mov rdx, r13
mov ecx, dword [r15 + rbx*4]
add rcx, rsi
mov ebp, dword [r14 + rax*4]
add rbp, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x140032776
inc ebx
cmp ebx, dword [rdi + 0x18]
jb 0x140032730
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rax, rbp
jmp 0x140032759
Function at 0x1400087bc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140008808
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140008800
cmp dword [rcx + 0x3c], edx
jl 0x140008800
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140008800
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 0x140008808
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140002704
Capabilities:
Parse pe header

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

Function at 0x140cc2058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140cc21df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140cc2089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cc206f
add dl, dl
jne 0x140cc2096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cc20f6
xor eax, eax
add dl, dl
jne 0x140cc20a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cc21ad
add dl, dl
jne 0x140cc20b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cc20c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cc20d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cc20dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140cc20ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140cc207e
mov eax, 1
add dl, dl
jne 0x140cc2106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cc2113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cc20fb
sub eax, ebx
mov ebx, 1
jne 0x140cc214c
mov ecx, 1
add dl, dl
jne 0x140cc212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140cc213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cc2123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cc207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140cc2168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140cc2175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cc215d
cmp eax, 0x7d00
jae 0x140cc219b
cmp eax, 0x500
jb 0x140cc2196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cc207e
cmp eax, 0x7f
ja 0x140cc219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cc207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140cc21d2
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 0x140cc207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20