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

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400af040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400726b3
cmp byte [rcx + 0x71], 0
je 0x1400726b3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400726af
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140072674
sub eax, 1
je 0x140072678
cmp eax, 2
jne 0x1400726af
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400754c0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400726a6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400726af
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14007265c
xor al, al
jmp 0x14007265c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400754c0
add rsp, 0x60
pop rbx
ret

Function at 0x140074cd0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x1400af040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbp, rcx
xor edi, edi
mov ecx, 2
xor edx, edx
mov ebx, edi
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140074d1a
xor eax, eax
jmp 0x140074d7d
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140074d72
nop dword [rax]
nop dword [rax + rax]
mov rdx, rbp
lea rcx, [rsp + 0x4c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x140074d60
mov eax, dword [rsp + 0x3c]
cmp eax, ebx
jbe 0x140074d60
mov edi, dword [rsp + 0x28]
mov ebx, eax
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140074d40
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400754c0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140076304
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14007634e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14007634e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14007634e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14007634e
cmp dword [rcx + 0x84], 0xe
jbe 0x14007634e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140076350
xor al, al
add rsp, 0x28
ret
Function at 0x1409980b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140998237
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 0x1409980e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409980c7
add dl, dl
jne 0x1409980ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14099814e
xor eax, eax
add dl, dl
jne 0x1409980fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140998205
add dl, dl
jne 0x14099810e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14099811b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140998128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140998135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140998142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1409980d6
mov eax, 1
add dl, dl
jne 0x14099815e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14099816b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140998153
sub eax, ebx
mov ebx, 1
jne 0x1409981a4
mov ecx, 1
add dl, dl
jne 0x140998186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140998193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14099817b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409980d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1409981c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409981cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409981b5
cmp eax, 0x7d00
jae 0x1409981f3
cmp eax, 0x500
jb 0x1409981ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409980d6
cmp eax, 0x7f
ja 0x1409981f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409980d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14099822a
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 0x1409980d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x2fc4c4e50
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.2fc4c5f10
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4c5852
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ea108]
test eax, eax
je 0x2fc4c58ea
lea rax, [0x2fc4ea0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ea110]
mov qword [rbp - 8], rax
jmp 0x2fc4c58ce
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 0x2fc4c58c2
cmp qword [rbp - 0x10], 0
je 0x2fc4c58c2
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 0x2fc4c5888
lea rax, [0x2fc4ea0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4c58eb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4c59f0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4c5a18
mov eax, 0
jmp 0x2fc4c5a66
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 0x2fc4c5a41
mov eax, 0
jmp 0x2fc4c5a66
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4c5a61
mov eax, 0
jmp 0x2fc4c5a66
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4c5a6c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4c5aea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4c5ae1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4c5ae1
mov rax, qword [rbp - 8]
jmp 0x2fc4c5aff
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4c5ab4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000d460
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Read file via mapping

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
lea rcx, [0x14003249b]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea r8, [rsp + 0x60]
mov rcx, 0xffffffffffffffff
mov qword [rsp + 0x50], rax
mov rdx, rax
mov r9d, 0x18
call sub.KERNEL32.dll_K32GetModuleInformation
mov rbp, qword [rsp + 0x60]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
lea rcx, str.c:windows_system32_ntdll.dll
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x48], rax
mov rcx, rax
xor edx, edx
mov r8d, 0x1000002
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x40], rax
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x58], rax
movsxd rsi, dword [rbp + 0x3c]
movzx r14d, word [rsi + rbp + 6]
test r14w, r14w
je 0x14000d5f5
lea rdi, [rsi + rbp]
add rdi, 0x18
xor ebx, ebx
lea r15, str..text
lea r12, [rsp + 0x3c]
jmp 0x14000d580
inc rbx
movzx eax, r14w
add rdi, 0x28
cmp rbx, rax
jae 0x14000d5f5
movzx r13d, word [rbp + rsi + 0x14]
add r13, rdi
mov rcx, r13
mov rdx, r15
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x14000d570
mov dword [rsp + 0x3c], 0
mov edx, dword [r13 + 8]
mov ecx, dword [r13 + 0xc]
add rcx, rbp
mov r8d, 0x40
mov r9, r12
mov r14, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call r14
mov r8d, dword [r13 + 8]
mov edx, dword [r13 + 0xc]
lea rcx, [rdx + rbp]
add rdx, qword [rsp + 0x58]
call fcn.14000eac0
mov r8d, dword [rsp + 0x3c]
mov edx, dword [r13 + 8]
mov ecx, dword [r13 + 0xc]
add rcx, rbp
mov r9, r12
call r14
movzx r14d, word [rbp + rsi + 6]
jmp 0x14000d570
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
call rsi
mov rcx, qword [rsp + 0x40]
call rsi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14000e810
Capabilities:
Access peb ldr_data
Encode data using xor
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
mov edx, dword [0x14003b148]
test edx, edx
je 0x14000e894
mov r8d, edx
cmp edx, 2
jb 0x14000e860
mov edx, r8d
and edx, 0xfffffffe
lea r9, [0x14003b160]
xor eax, eax
nop dword [rax + rax]
cmp dword [r9 - 0x10], ecx
je 0x14000ea80
cmp dword [r9], ecx
je 0x14000e9df
add rax, 2
add r9, 0x20
cmp rdx, rax
jne 0x14000e840
mov edx, r8d
and edx, 0xfffffffe
mov eax, 0xffffffff
cmp rdx, r8
je 0x14000ea80
mov rax, rdx
shl rax, 4
lea r8, [0x14003b148]
cmp dword [rax + r8 + 8], ecx
mov eax, 0xffffffff
cmove eax, edx
jmp 0x14000ea80
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rdx, qword [rax + 0x10]
mov r11, qword [rdx + 0x30]
mov eax, 0xffffffff
test r11, r11
je 0x14000ea80
xor r10d, r10d
mov r9d, 0xdfdfdfdf
jmp 0x14000e8df
mov r10, rsi
mov rdx, qword [rdx]
mov r11, qword [rdx + 0x30]
test r11, r11
je 0x14000e921
mov r8, r11
movsxd r11, dword [r11 + 0x3c]
mov esi, dword [r11 + r8 + 0x88]
test rsi, rsi
je 0x14000e8d3
mov r10d, dword [rsi + r8 + 0xc]
add rsi, r8
mov r11d, dword [r10 + r8]
and r11d, r9d
cmp r11d, 0x4c44544e
jne 0x14000e8d0
mov r11d, dword [r10 + r8 + 4]
and r11d, r9d
mov r10, rsi
cmp r11d, 0x4c440e4c
jne 0x14000e8d3
jmp 0x14000e92d
mov rsi, r10
test r10, r10
je 0x14000ea80
mov r9d, dword [rsi + 0x18]
mov r10d, dword [rsi + 0x1c]
add r10, r8
mov r11d, dword [rsi + 0x20]
add r11, r8
mov esi, dword [rsi + 0x24]
add rsi, r8
xor edx, edx
lea rdi, [0x14003b148]
jmp 0x14000e959
test r9, r9
je 0x14000e9e6
dec r9d
mov ebx, dword [r11 + r9*4]
movzx ebp, word [r8 + rbx]
cmp ebp, 0x775a
jne 0x14000e950
add rbx, r8
mov ebp, 0x75776791
mov r14d, 1
xor r15d, r15d
nop
mov r12d, ebp
movzx r15d, word [r15 + rbx]
rol ebp, 0x18
add ebp, r15d
xor ebp, r12d
mov r15d, r14d
inc r14d
cmp byte [rbx + r15], 0
jne 0x14000e980
mov ebx, edx
shl rbx, 4
mov dword [rbx + rdi + 8], ebp
movzx r14d, word [rsi + r9*2]
mov ebp, dword [r10 + r14*4]
mov dword [rbx + rdi + 0xc], ebp
mov qword [rbx + rdi + 0x10], 0
inc edx
cmp edx, 0x258
jne 0x14000e950
mov dword [0x14003b148], 0x258
mov edx, 0x258
mov r8d, 0x257
jmp 0x14000e9f8
inc eax
jmp 0x14000ea80
mov dword [0x14003b148], edx
mov r8d, edx
dec r8d
je 0x14000ea8b
xor r9d, r9d
lea r10, [0x14003b168]
mov r11d, r8d
jmp 0x14000ea18
dec r11d
cmp r9d, r8d
je 0x14000ea78
mov r11d, r11d
inc r9d
cmp edx, r9d
je 0x14000ea10
mov edi, dword [0x14003b154]
mov rsi, r11
mov rbx, r10
jmp 0x14000ea6d
mov r14d, dword [rbx - 0x18]
mov r15, qword [rbx - 0x10]
mov r12d, dword [rbx - 8]
mov dword [rbx - 0x18], r12d
mov dword [rbx - 0x14], ebp
mov r12, qword [rbx]
mov qword [rbx - 0x10], r12
mov dword [rbx - 8], r14d
mov dword [rbx - 4], edi
mov qword [rbx], r15
add rbx, 0x10
dec rsi
je 0x14000ea10
mov ebp, dword [rbx - 4]
cmp edi, ebp
ja 0x14000ea40
mov edi, ebp
jmp 0x14000ea64
test edx, edx
jne 0x14000e824
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor edx, edx
jmp 0x14000e874
Function at 0x140012830
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x8395cb5a
call fcn.14000e810
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140015e60
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov rbp, r9
mov r14, r8
mov rbx, rdx
mov rsi, rcx
call fcn.140015be0
mov rdi, qword [rsp + 0x70]
mov qword [rax + 0x138], rbx
mov rbx, qword [rdi + 8]
call fcn.140015be0
mov qword [rax + 0x128], rbx
mov rax, qword [rsi]
mov rbx, qword [rax + 0x38]
call fcn.140015be0
mov ecx, dword [0x14003a0b4]
mov r9, rdi
mov byte [rsp + 0x38], 1
mov r8, rbp
mov edx, 8
mov qword [rax + 0x130], rbx
xor ebx, ebx
mov rax, qword gs:[0x58]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov rcx, qword [rax + rcx*8]
mov eax, dword [rsp + 0x80]
mov dword [rdx + rcx], eax
mov rdx, r14
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsi]
mov qword [rsp + 0x20], rax
call fcn.14001b910
call fcn.140015be0
mov rcx, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov qword [rax + 0x138], rbx
lea eax, [rbx + 1]
mov rbx, qword [rsp + 0x50]
mov dword [rcx], 1
add rsp, 0x40
pop r14
ret

Function at 0x140019580
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
xor eax, eax
mov ebx, ecx
xor ecx, ecx
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x68], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400195dc
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400195dc
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400195dc
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400195dc
cmp dword [rcx + 0x84], 0xe
jbe 0x1400195dc
cmp dword [rcx + 0xf8], 0
je 0x1400195dc
mov ecx, ebx
call fcn.1400197f0
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x14003b040]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.140019970
cmp dword [rsp + 0x60], 0
jne 0x14001961f
mov ecx, ebx
call fcn.140019870
int3
add rsp, 0x40
pop rbx
ret
Function at 0x140019630
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov ebx, ecx
mov dword [rsp + 0x60], 0
xor ecx, ecx
mov dword [rsp + 0x68], 2
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140019692
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140019692
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
jne 0x140019692
mov eax, 0x20b
cmp word [rdx + 0x18], ax
jne 0x140019692
cmp dword [rdx + 0x84], 0xe
jbe 0x140019692
cmp dword [rdx + 0xf8], 0
je 0x140019692
mov ecx, ebx
call fcn.1400197f0
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x14003b040]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.140019970
cmp dword [rsp + 0x60], 0
jne 0x1400196d5
mov ecx, ebx
call fcn.140019870
int3
add rsp, 0x40
pop rbx
ret

Function at 0x140019a80
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x530
mov rax, qword [0x140038068]
xor rax, rsp
mov qword [rsp + 0x520], rax
xor ebx, ebx
mov rdi, rdx
mov esi, ecx
test rdx, rdx
je 0x140019aec
lea edx, [rbx + 0x2d]
mov rcx, rdi
call sub.msvcrt.dll_strchr
test rax, rax
je 0x140019aec
mov ecx, ebx
lea r8, [rsp + 0x120]
mov rdx, rdi
nop dword [rax]
movsx eax, byte [rdx]
test al, al
je 0x140019b3f
mov word [r8], ax
inc ecx
add r8, 2
inc rdx
cmp ecx, 0x100
jne 0x140019ad0
mov rcx, qword [0x14003b048]
test rcx, rcx
jne 0x140019b22
call fcn.14001cce0
mov rcx, rax
lea rdx, str.setlocale
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov rcx, 0xffffffffffffffff
cmovne rcx, rax
mov qword [0x14003b048], rcx
cmp rcx, 0xffffffffffffffff
cmovne rbx, rcx
test rbx, rbx
je 0x140019c23
mov rdx, rdi
mov ecx, esi
call rbx
jmp 0x140019c25
movsxd rax, ecx
add rax, rax
cmp rax, 0x200
jae 0x140019c4a
mov edx, 0x2d
mov word [rsp + rax + 0x120], bx
lea rcx, [rsp + 0x120]
call sub.msvcrt.dll_wcsrchr
test rax, rax
je 0x140019aec
mov r9d, 0xff
lea r8, [rsp + 0x320]
mov edx, 0x1001
lea rcx, [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
je 0x140019aec
lea ecx, [rax - 1]
mov r9d, 0x100
movsxd rdx, ecx
lea r8, [rsp + 0x320]
sub r9d, eax
mov ecx, 0x5f
cdqe
mov word [rsp + rdx*2 + 0x320], cx
mov edx, 0x1002
lea rcx, [rsp + 0x120]
lea r8, [r8 + rax*2]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
je 0x140019aec
lea rcx, [rsp + 0x320]
mov eax, ebx
lea rdx, [rsp + 0x20]
movzx r8d, word [rcx]
test r8w, r8w
je 0x140019c13
mov byte [rdx], r8b
inc eax
inc rdx
add rcx, 2
cmp eax, 0x100
jne 0x140019bf1
jmp 0x140019aec
cdqe
lea rdi, [rsp + 0x20]
mov byte [rsp + rax + 0x20], bl
jmp 0x140019aec
xor eax, eax
mov rcx, qword [rsp + 0x520]
xor rcx, rsp
call fcn.140014260
lea r11, [rsp + 0x530]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140014e1c
int3
Function at 0x14001a200
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x4f0]
sub rsp, 0x5f0
mov rax, qword [0x140038068]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14001a23c
mov ecx, 5
int 0x29
mov ecx, 2
call fcn.140014994
xorps xmm0, xmm0
lea rcx, [rbp + 0x10]
xor eax, eax
xor edx, edx
mov r8d, 0x4d0
mov qword [rbp], rax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0x10]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rbp + 0x108]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14001a2f8
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], 0
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov rax, qword [rbp + 0x4f8]
mov qword [rbp + 0x108], rax
lea rax, [rbp + 0x4f8]
add rax, 8
mov dword [rsp + 0x70], 0xc0000417
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x4f8]
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x74], 1
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x14001a35e
test ebx, ebx
jne 0x14001a35e
lea ecx, [rax + 2]
call fcn.140014994
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.140014260
mov rbx, qword [rsp + 0x600]
add rsp, 0x5f0
pop rbp
ret
Function at 0x140f9a058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140f9a1df
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 0x140f9a089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f9a06f
add dl, dl
jne 0x140f9a096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f9a0f6
xor eax, eax
add dl, dl
jne 0x140f9a0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f9a1ad
add dl, dl
jne 0x140f9a0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f9a0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f9a0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f9a0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140f9a0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140f9a07e
mov eax, 1
add dl, dl
jne 0x140f9a106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f9a113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f9a0fb
sub eax, ebx
mov ebx, 1
jne 0x140f9a14c
mov ecx, 1
add dl, dl
jne 0x140f9a12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140f9a13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f9a123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f9a07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140f9a168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140f9a175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f9a15d
cmp eax, 0x7d00
jae 0x140f9a19b
cmp eax, 0x500
jb 0x140f9a196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f9a07e
cmp eax, 0x7f
ja 0x140f9a19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f9a07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140f9a1d2
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 0x140f9a07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20