joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18002c910
Capabilities:
Hash data with crc32

Disassembly:
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x18002c960
lea r11, [0x1800629c0]
nop dword [rax]
cmp r9b, 0x23
jne 0x18002c943
cmp byte [r8], r9b
jne 0x18002c943
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x18002c930
mov rcx, qword [0x180078e88]
not eax
movsxd rdx, dword [rcx + 0x3e70]
mov r9, qword [rcx + 0x3e78]
mov r10, rdx
shl r10, 4
add r10, r9
test rdx, rdx
je 0x18002c9c1
nop word [rax + rax]
mov r8, rdx
shr r8, 1
mov rcx, r8
add rcx, rcx
cmp dword [r9 + rcx*8], eax
jae 0x18002c9b9
lea r9, [r9 + rcx*8]
mov rcx, 0xffffffffffffffff
sub rcx, r8
add r9, 0x10
add rdx, rcx
jmp 0x18002c9bc
mov rdx, r8
test rdx, rdx
jne 0x18002c990
cmp r9, r10
je 0x18002c9d0
cmp dword [r9], eax
jne 0x18002c9d0
mov rax, qword [r9 + 8]
ret
xor eax, eax
ret

Function at 0x180037980
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x53e0], 0
lea rbx, [rcx + 0x53e8]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x180037a27
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x1800379da
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.180039f30
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.180025d90
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x53e0]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x53f0]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x180078e98]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x180037a2f
mov rcx, rbx
call fcn.180025d90
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x180037eb0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x180078e88]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x180037f13
mov qword [rsp], rbx
lea rbx, [0x1800629c0]
nop dword [rax]
cmp r9b, 0x23
jne 0x180037ef3
cmp byte [r8], r9b
jne 0x180037ef3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x180037ee0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5390]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x180037f47
mov r10, qword [r10 + 0x5398]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x180037f4e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x180037f34
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x18004e8b0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.18004eb00
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x18004e9ca
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x18004e914
mov rax, qword [0x180076008]
cmp qword [rsp + 0x20], rax
ja 0x18004e914
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18004e8d6
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x18004e945
jmp 0x18004e9ca
cmp dword [rsp + 0x50], 0x10000
jne 0x18004e9ad
cmp qword [rsp + 0x48], 0x10000
jb 0x18004e9ad
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18004e98b
mov rax, qword [rsp + 0x28]
jmp 0x18004e9cc
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x18004e99b
xor eax, eax
jmp 0x18004e9cc
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18004e9c5
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.18004eb00
mov qword [rsp + 0x20], rax
jmp 0x18004e8d6
xor eax, eax
add rsp, 0x68
ret

Function at 0x18004e9e0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.18004eb40
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x18004eaf6
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x18004ea3b
mov rax, qword [0x180076008]
cmp qword [rsp + 0x20], rax
ja 0x18004ea3b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18004e9fd
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x18004ea6c
jmp 0x18004eaf6
cmp dword [rsp + 0x50], 0x10000
jne 0x18004ead4
cmp qword [rsp + 0x48], 0x10000
jb 0x18004ead4
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18004eab2
mov rax, qword [rsp + 0x28]
jmp 0x18004eaf8
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x18004eac2
xor eax, eax
jmp 0x18004eaf8
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18004eaf1
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.18004eb40
mov qword [rsp + 0x20], rax
jmp 0x18004e9fd
xor eax, eax
add rsp, 0x68
ret
Function at 0x18004eb90
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.18004f120
mov qword [rsp + 0x28], 0
cmp qword [0x180077d68], 0
jne 0x18004ebd8
cmp qword [0x180077d60], 0
je 0x18004ebd8
mov rax, qword [0x180077d60]
mov qword [0x180077d68], rax
cmp qword [0x180077d68], 0
je 0x18004ec7e
mov rax, qword [0x180077d68]
cmp qword [rax + 0x10], 0
je 0x18004ec7e
mov rax, qword [0x180077d68]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18004ec7e
mov rax, qword [0x180077d68]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18004ec7e
mov rax, qword [0x180077d68]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x18004ec44
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x18004ec4b
xor eax, eax
jmp 0x18004edf9
mov rax, qword [0x180077d68]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x18004edf9
mov rax, qword [0x180077d60]
mov qword [0x180077d68], rax
jmp 0x18004eca0
mov rax, qword [0x180077d68]
mov rax, qword [rax + 8]
mov qword [0x180077d68], rax
cmp qword [0x180077d68], 0
je 0x18004eced
cmp qword [0x180077d68], 0
je 0x18004eceb
mov rax, qword [0x180077d68]
cmp qword [rax + 0x10], 0
je 0x18004eceb
mov rax, qword [0x180077d68]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18004eceb
mov rax, qword [0x180077d68]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18004eceb
jmp 0x18004ec1c
jmp 0x18004ec8e
mov rcx, qword [rsp + 0x60]
call fcn.180050d70
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.18004ee00
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x18004edf7
mov rax, qword [rsp + 0x48]
mov qword [0x180077d68], rax
mov rax, qword [0x180077d68]
mov dword [rax], 0x52727464
mov rax, qword [0x180077d68]
mov qword [rax + 0x10], 0
mov rax, qword [0x180077d68]
mov rcx, qword [0x180077d60]
mov qword [rax + 8], rcx
mov rax, qword [0x180077d68]
mov qword [0x180077d60], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x180077d68]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x18004eda8
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x18004ede2
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x18004ed9e
mov rax, qword [0x180077d68]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18004ec1c
xor eax, eax
add rsp, 0x58
ret
Function at 0x18004fb10
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x18004fb57
xor al, al
jmp 0x18004fbf9
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x18004fb81
xor al, al
jmp 0x18004fbf9
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jb 0x18004fbf1
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x18004fbf1
mov al, 1
jmp 0x18004fbf9
jmp 0x18004fbf7
xor al, al
add rsp, 0x78
ret

Function at 0x18004ff00
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x180077d60]
mov qword [rsp + 0x28], rax
jmp 0x18004ff20
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18004ff4f
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x18004ff4d
call sub.KERNEL32.dll_GetLastError
jmp 0x18004ff51
jmp 0x18004ff12
xor eax, eax
add rsp, 0x38
ret
Function at 0x180050610
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x180077d78], eax
je 0x18005062b
mov eax, 0x10dd
jmp 0x180050750
mov rax, qword [0x180077d90]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800506d5
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x1800506a0
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x1800506a0
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.18004f260
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x38]
call fcn.180052964
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x180050637
mov qword [0x180077d90], 0
call fcn.18004fcc0
mov rax, qword [0x180077d88]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x180050739
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x48]
call fcn.180052964
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x1800506f1
mov qword [0x180077d88], 0
mov dword [0x180077d78], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x180050c80
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x180077d7c], 0
je 0x180050c9d
mov eax, dword [0x180077d7c]
jmp 0x180050d63
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x180050cb0
xor eax, eax
jmp 0x180050d63
mov ecx, 0x10
call fcn.1800525b0
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x180050d1e
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x180050d03
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.180052964
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x180077d7c], eax
mov qword [0x180077d80], 0
mov eax, dword [rsp + 0x20]
jmp 0x180050d63
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x180050d38
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x180050cd9
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x180077d88]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x180077d88], rax
xor eax, eax
add rsp, 0x48
ret

Function at 0x180052220
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x18005225a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x18005225f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1800522a8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180056970]
cmp byte [rcx + rax], 0
je 0x1800522a8
dec r8
sub rdx, 1
jne 0x18005228e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1401e7ce0
Capabilities:
Encode data using xor

Disassembly:
adc al, 0xbf
xor ebx, dword [rbp - 0x2b]
cwde
xchg ebx, eax
loop 0x1401e7ce2
invalid

Function at 0x140cd1058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140cd11df
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 0x140cd1089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cd106f
add dl, dl
jne 0x140cd1096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cd10f6
xor eax, eax
add dl, dl
jne 0x140cd10a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cd11ad
add dl, dl
jne 0x140cd10b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cd10c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cd10d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cd10dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140cd10ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140cd107e
mov eax, 1
add dl, dl
jne 0x140cd1106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cd1113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cd10fb
sub eax, ebx
mov ebx, 1
jne 0x140cd114c
mov ecx, 1
add dl, dl
jne 0x140cd112e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140cd113b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cd1123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cd107e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140cd1168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140cd1175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cd115d
cmp eax, 0x7d00
jae 0x140cd119b
cmp eax, 0x500
jb 0x140cd1196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cd107e
cmp eax, 0x7f
ja 0x140cd119e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cd107e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140cd11d2
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 0x140cd107e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400023f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebp, ebp
mov rdi, rcx
cmp qword [rcx + 0x18], 0xf
mov dword [rsp + 0x40], ebp
jbe 0x140002421
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x10000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x1400024bd
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x14000248f
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14000248a
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002559
mov rcx, r8
call fcn.14000ad34
mov al, 1
mov byte [rdi], bpl
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], rbp
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000acd0
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
cmp rsi, 0xffffffffffffffff
jne 0x1400024fd
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x1400024f9
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400024f4
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002559
mov rcx, r8
call fcn.14000ad34
xor al, al
jmp 0x140002491
lea r9, [rsp + 0x40]
mov qword [rsp + 0x68], rbx
mov r8d, 0x2b08
mov qword [rsp + 0x20], rbp
lea rdx, [0x140010080]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rdi + 0x18]
test bl, bl
mov rbx, qword [rsp + 0x68]
jne 0x140002546
cmp rax, 0xf
jbe 0x1400024f9
lea rdx, [rax + 1]
jmp 0x1400024d0
cmp rax, 0xf
jbe 0x14000248f
lea rdx, [rax + 1]
jmp 0x140002462
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140002560
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebp, ebp
mov rdi, rcx
cmp qword [rcx + 0x18], 0xf
mov dword [rsp + 0x40], ebp
jbe 0x140002591
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x10000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x14000262d
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x1400025ff
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400025fa
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400026c9
mov rcx, r8
call fcn.14000ad34
mov al, 1
mov byte [rdi], bpl
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], rbp
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000acd0
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
cmp rsi, 0xffffffffffffffff
jne 0x14000266d
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x140002669
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140002664
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400026c9
mov rcx, r8
call fcn.14000ad34
xor al, al
jmp 0x140002601
lea r9, [rsp + 0x40]
mov qword [rsp + 0x68], rbx
mov r8d, 0x18fe00
mov qword [rsp + 0x20], rbp
lea rdx, [0x140012b90]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rdi + 0x18]
test bl, bl
mov rbx, qword [rsp + 0x68]
jne 0x1400026b6
cmp rax, 0xf
jbe 0x140002669
lea rdx, [rax + 1]
jmp 0x140002640
cmp rax, 0xf
jbe 0x1400025ff
lea rdx, [rax + 1]
jmp 0x1400025d2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14000a4c8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, [0x14000d460]
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14000a502
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14000a507
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14000a550
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14000d360]
cmp byte [rcx + rax], 0
je 0x14000a550
dec r8
sub rdx, 1
jne 0x14000a536
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14000b6c4
Capabilities:
Parse pe header

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

Disassembly:
call fcn.1407141df
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 0x140714089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14071406f
add dl, dl
jne 0x140714096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407140f6
xor eax, eax
add dl, dl
jne 0x1407140a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407141ad
add dl, dl
jne 0x1407140b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407140c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407140d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407140dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407140ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14071407e
mov eax, 1
add dl, dl
jne 0x140714106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140714113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407140fb
sub eax, ebx
mov ebx, 1
jne 0x14071414c
mov ecx, 1
add dl, dl
jne 0x14071412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14071413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140714123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14071407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140714168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140714175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14071415d
cmp eax, 0x7d00
jae 0x14071419b
cmp eax, 0x500
jb 0x140714196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14071407e
cmp eax, 0x7f
ja 0x14071419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14071407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407141d2
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 0x14071407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20