joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004f160
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x14004f2c7
push rbp
mov rbp, rsp
sub rsp, 0x18
mov ecx, dword [rax + 0x190]
mov edx, dword [rax + 0x194]
mov rsi, qword [rax + 0x998]
mov edi, dword [rax + 0x194]
cmp edi, edx
jne 0x14004f172
cmp edx, ecx
jne 0x14004f2b5
nop word [rax + rax]
test rsi, rsi
jne 0x14004f2b5
mov qword [rsp + 0x28], rax
test rbx, rbx
jne 0x14004f1d4
nop
call fcn.140074ac0
xorps xmm15, xmm15
mov r14, qword [0x141eddb20]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rbx, qword [rsp]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x10], rbx
call fcn.14004f080
mov rcx, qword [rsp + 0x28]
mov edx, dword [rcx]
mov ebx, edx
sar edx, 0x1f
shr edx, 0x1b
add edx, ebx
mov esi, edx
and edx, 0xffffffe0
sub ebx, edx
test ebx, ebx
jl 0x14004f2b0
mov rdx, qword [0x141e52788]
sar esi, 5
mov rax, rcx
mov ecx, ebx
mov edi, 1
shl edi, cl
movsxd rsi, esi
cmp ecx, 0x20
sbb r8d, r8d
and edi, r8d
cmp rdx, rsi
jbe 0x14004f2a5
mov rcx, qword [0x141e52780]
lea rcx, [rcx + rsi*4]
lock or dword [rcx], edi
mov rcx, qword [0x141e59b70]
mov qword [rax + 8], rcx
mov rcx, rax
nop
mov qword [0x141e59b70], rax
nop
mov edx, 1
lea rsi, [0x141e59b78]
lock xadd dword [rsi], edx
mov rdx, qword [rcx + 0x1248]
shr rdx, 0x3d
test dl, dl
jne 0x14004f293
mov rax, qword [rsp + 0x10]
movabs rdx, 0x1fffffffffffffff
and rdx, rax
bts rdx, 0x3f
nop
nop
xchg qword [rcx + 0x1248], rdx
add rsp, 0x18
pop rbp
ret
lea rax, [0x14101663d]
mov ebx, 0x28
nop
call fcn.14003f0c0
mov rax, rsi
mov rcx, rdx
call fcn.140073180
call fcn.14003d8a0
lea rax, [0x14100a6ca]
mov ebx, 0x23
call fcn.14003f0c0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.140070e80
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.14004f160
Function at 0x140050980
Capabilities:
Get geographical location

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x140050b66
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [0x141edd910], 0x2a
mov qword [0x141edd918], 0
xor eax, eax
lea rcx, [0x141edd910]
mov edx, 1
lock cmpxchg qword [rcx], rdx
sete sil
nop
test sil, sil
jne 0x140050b4f
cmp qword [0x141edd918], 0
jne 0x140050b3e
mov qword [0x141edd918], 0x2a
mov eax, 0x2a
lock cmpxchg qword [rcx], rdx
sete dl
test dl, dl
je 0x140050b2d
cmp qword [0x141edd918], 0x2a
nop
jne 0x140050b1c
cmp qword [0x141edd910], 1
jne 0x140050b1c
mov rdx, qword [0x141edd910]
nop dword [rax + rax]
cmp rdx, 1
jne 0x140050b0b
movabs rdx, 0x10000000001
xchg qword [rcx], rdx
mov rdx, qword [0x141edd910]
movabs rsi, 0x10000000001
cmp rdx, rsi
jne 0x140050afa
movabs rdx, 0x10000000001
lock xadd qword [rcx], rdx
movabs rsi, 0x10000000001
add rdx, rsi
movabs rsi, 0x20000000002
cmp rsi, rdx
jne 0x140050ae9
mov rdx, qword [0x141edd910]
cmp rdx, rsi
jne 0x140050ad8
movabs rdx, 0x30000000003
xchg qword [rcx], rdx
cmp rdx, rsi
jne 0x140050ac7
mov rcx, qword [0x141edd910]
movabs rdx, 0x30000000003
cmp rcx, rdx
jne 0x140050ab6
add rsp, 0x10
pop rbp
ret
lea rax, [0x140fe0d3b]
mov ebx, 0xd
call fcn.14003f0c0
lea rax, [0x140fe0d3b]
mov ebx, 0xd
call fcn.14003f0c0
lea rax, [0x140fe0d2e]
mov ebx, 0xd
call fcn.14003f0c0
lea rax, [0x140fe0d2e]
mov ebx, 0xd
call fcn.14003f0c0
lea rax, [0x140fe2718]
mov ebx, 0xe
call fcn.14003f0c0
lea rax, [0x140fe0d21]
mov ebx, 0xd
call fcn.14003f0c0
lea rax, [0x140fdf20b]
mov ebx, 0xc
call fcn.14003f0c0
lea rax, [0x140fdf20b]
mov ebx, 0xc
call fcn.14003f0c0
lea rax, [0x140fdf20b]
mov ebx, 0xc
call fcn.14003f0c0
lea rax, [0x140fdf20b]
mov ebx, 0xc
nop dword [rax + rax]
call fcn.14003f0c0
nop
call fcn.140070e80
jmp fcn.140050980
Function at 0x14005cb20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x14005cc97
movzx edx, byte [rax]
test edx, edx
jne 0x14005cb54
nop dword [rax]
test r8b, r8b
jne 0x14005cb54
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
add rsp, 0x10
pop rbp
ret
bt edx, 7
jae 0x14005cb67
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x14005cc57
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
nop dword [rax]
cmp rbx, r8
jb 0x14005cc45
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rdx
sar rdx, 0x3f
and r8, rdx
lea rdx, [rax + r8]
test rbx, rbx
jbe 0x14005cc37
movzx esi, byte [rax + r8]
bt esi, 7
jae 0x14005cbbd
xor eax, eax
xor esi, esi
xor r8d, r8d
jmp 0x14005cc00
mov eax, 1
cmp rax, rbx
ja 0x14005cbeb
add qword [rdi], rsi
sub rcx, rax
sub rbx, rax
mov rsi, rcx
neg rsi
sar rsi, 0x3f
and rax, rsi
add rax, rdx
mov edi, 1
add rsp, 0x10
pop rbp
ret
mov rcx, rbx
call fcn.140073240
lea r8d, [rcx + 7]
mov rcx, r11
mov eax, r12d
nop dword [rax]
cmp rax, rbx
jae 0x14005cc2f
movzx r9d, byte [rax + rdx]
mov r10d, r9d
and r9d, 0x7f
mov r11, rcx
mov ecx, r8d
shl r9d, cl
lea r12d, [rax + 1]
or esi, r9d
test r10b, 0x80
jne 0x14005cbf3
mov rcx, r11
mov eax, r12d
jmp 0x14005cbc2
mov rcx, rbx
call fcn.140073180
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.140073180
mov eax, r8d
mov rcx, rbx
call fcn.140073240
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x14005cc8d
movzx r10d, byte [rdx + rax]
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
inc edx
or r8d, r10d
test r11b, 0x80
jne 0x14005cc50
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x14005cb6d
mov eax, edx
mov rcx, rbx
call fcn.140073180
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.140073180
nop
int3

Function at 0x140062cc0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x140062d75
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rdi
test byte [rax], al
lea rdx, [rax + 0x10]
mov rsi, qword [rsp + 0x68]
mov rcx, rdi
mov rax, rdx
mov rbx, rsi
call fcn.140060920
nop
test bl, bl
je 0x140062d6f
mov qword [rsp + 0x18], rax
movups xmmword [rsp + 0x20], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
lea rcx, [0x140062dc0]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x20]
mov qword [rsp], rcx
call fcn.140070d60
xorps xmm15, xmm15
mov r14, qword [0x141eddb20]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x18]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.140070e80
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.140062cc0
Function at 0x140065cc0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x140065d6f
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [0x140065dc0]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.140070d60
xorps xmm15, xmm15
mov r14, qword [0x141eddb20]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.140070e80
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp fcn.140065cc0
Function at 0x140bb7c00
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x141dffce0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140bb7c20
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140bb7c28
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140bb7c20
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140bb7c75
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 0x140bb7c6c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140bb7c20
add rax, 0x28
cmp rax, r9
jne 0x140bb7c58
xor eax, eax
ret

Function at 0x140bb7c80
Capabilities:
Parse pe header

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

Function at 0x140bb7d30
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x141dffce0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140bb7d50
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140bb7d58
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x180001940
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 edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1800019b8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1800019b8
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x1800019a5
nop
cmp rbx, rcx
jae 0x1800019b8
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x180001990
cmp rbx, rcx
jae 0x1800019b8
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
jmp 0x1800019ba
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18000c3b0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x18000c3d8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x18000c3fe
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x18000c400
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x18000c459
test ecx, ecx
jle 0x18000c439
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x18000c459
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x18000c459
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x18000c480
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x18000c4a2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x18000c4b8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x18000c4d4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18000c4d6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18000c512
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x18000c5ae
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x18000c54d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x18000c58e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x18000c5ae
cmp rbx, rax
ja 0x18000c560
test rbx, rbx
je 0x18000c5ae
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x18000c9e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1803d4070]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x18000ca0d
xor eax, eax
jmp 0x18000cb6a
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x18000ca38
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x18000ca38
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x18000cb6a
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x18000cb5d
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x18000ca7b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x18000caa6
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x18000cb62
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x18000cb15
sub eax, 1
je 0x18000cb15
cmp eax, 2
jne 0x18000cb5d
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x18000cb62
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x18000cb43
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x18000cb5d
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x18000cb62
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.18000ffc0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x18000d500
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1803d4070]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x18000d5d3
cmp byte [rcx + 0x71], 0
je 0x18000d5d3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x18000d5cf
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 0x18000d594
sub eax, 1
je 0x18000d598
cmp eax, 2
jne 0x18000d5cf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18000ffc0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x18000d5c6
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 0x18000d5cf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18000d57c
xor al, al
jmp 0x18000d57c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18000ffc0
add rsp, 0x60
pop rbx
ret

Function at 0x18000fd34
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x18000fdb8
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180013650]
cmp byte [rcx + rax], 0
je 0x18000fdb8
dec r8
sub rdx, 1
jne 0x18000fd9e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140014c8b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14001fa70]
jne 0x14000edfa
rol rcx, 0x10
test cx, 0xffff
jne 0x14000edf6
repz ret
ror rcx, 0x10
jmp 0x140014be4
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140021a60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140021b58]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140014c69
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140021a60]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140014c8b
mov rax, qword [rsp + 0x88]
mov qword [0x140021b58], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140021af8], rax
mov rax, qword [0x140021b58]
mov qword [0x1400219d0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140021ae0], rax
mov dword [0x1400219c0], 0xc0000409
mov dword [0x1400219c4], 1
mov rax, qword [0x14001fa70]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14001fa78]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140021a58], eax
mov ecx, 1
call fcn.140012844
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14001abc8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140021a58], 0
jne 0x140014d12
mov ecx, 1
call fcn.140012844
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0xb86058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00b861df
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 0xb86089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xb8606f
add dl, dl
jne 0xb86096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xb860f6
xor eax, eax
add dl, dl
jne 0xb860a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xb861ad
add dl, dl
jne 0xb860b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb860c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb860d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb860dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0xb860ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0xb8607e
mov eax, 1
add dl, dl
jne 0xb86106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb86113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xb860fb
sub eax, ebx
mov ebx, 1
jne 0xb8614c
mov ecx, 1
add dl, dl
jne 0xb8612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb8613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xb86123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xb8607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xb86168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb86175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xb8615d
cmp eax, 0x7d00
jae 0xb8619b
cmp eax, 0x500
jb 0xb86196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xb8607e
cmp eax, 0x7f
ja 0xb8619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xb8607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0xb861d2
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 0xb8607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20