joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180063ad0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1800d5010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov r8d, 0x40
add rbx, qword [0x180131530]
mov rdx, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [rdx - 5]
cmove rdi, rdx
lea rsi, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180063b39
mov eax, 0xa
jmp 0x180063b86
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180063b55
mov rax, qword [rbx]
mov word [rax], 0xf9eb
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [rbx + 0x20], 6
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800a3d60
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x180063bb0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov eax, dword [0x18013153c]
xor edi, edi
mov ebx, edi
test eax, eax
je 0x180063cc0
mov rcx, qword [0x180131530]
add rcx, 0x20
test byte [rcx], 2
je 0x180063bf3
inc ebx
add rcx, 0x38
cmp ebx, eax
jb 0x180063bd7
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x180063cc0
mov edx, 0xffffffff
lea rcx, [rsp + 0x20]
mov r8d, 1
call fcn.180063920
mov edx, dword [0x18013153c]
cmp ebx, edx
jae 0x180063c4d
nop dword [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x180131530]
test byte [rcx + rax + 0x20], 2
jne 0x180063c47
mov ecx, ebx
call fcn.180063ad0
mov edi, eax
test eax, eax
jne 0x180063c4d
mov edx, dword [0x18013153c]
inc ebx
cmp ebx, edx
jb 0x180063c20
cmp qword [rsp + 0x20], 0
je 0x180063cc0
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180063cac
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
mov qword [rsp + 0x48], rsi
nop
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180063c98
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180063c70
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180130220]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x50]
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x180064020
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov rdi, rcx
mov ebx, r15d
xor eax, eax
mov esi, 1
lock cmpxchg dword [0x180130218], esi
je 0x180064075
cmp rbx, 0x20
jae 0x18006405e
xor ecx, ecx
jmp 0x180064060
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180130218], esi
jne 0x180064054
cmp qword [0x180130220], r15
je 0x18006415f
test rdi, rdi
jne 0x180064093
call fcn.180063bb0
mov ebp, eax
jmp 0x180064164
mov ecx, dword [0x18013153c]
mov ebx, r15d
test ecx, ecx
je 0x1800640bf
mov r8, qword [0x180131530]
mov rax, r8
nop word [rax + rax]
cmp rdi, qword [rax]
je 0x1800640c9
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800640b0
mov ebp, 4
jmp 0x180064164
cmp ebx, 0xffffffff
je 0x1800640bf
mov eax, ebx
imul rdx, rax, 0x38
test byte [rdx + r8 + 0x20], 2
jne 0x180064158
mov r8d, esi
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.180063920
mov ecx, ebx
call fcn.180063ad0
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x180064164
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180064142
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x180064138
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x180064110
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180130220]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180064164
mov ebp, 5
jmp 0x180064164
mov ebp, 2
xchg dword [0x180130218], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x18006ee00
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x18006ee58
mov qword [rsp + 0x30], rbx
lea r8, [0x180067b80]
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x28], rbx
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r9d, r9d
mov qword [rsp + 0x28], rbx
lea r8, [0x18006eda0]
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x38
ret

Function at 0x18007c9d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov eax, dword [rdx]
lea rdi, [rdx + 8]
mov ebp, r8d
mov rsi, rdx
mov rbx, rcx
cmp eax, 0xc
jne 0x18007ca32
mov rax, qword [rcx]
movsxd r10, dword [rdi]
mov r9, qword [rax + 0x38]
mov edx, dword [r9 + r10*4]
mov eax, edx
and eax, 0x3f
cmp al, 0xe
jne 0x18007ca37
dec dword [rcx + 0x20]
and edx, 0xffddffff
or edx, 0x5c0000
xor eax, eax
shr edx, 0x11
mov ecx, 0x4000
test r8d, r8d
cmove eax, ecx
or edx, eax
jmp 0x18007ca91
cmp eax, 7
je 0x18007ca6e
mov rdx, qword [rbx]
movzx ecx, byte [rcx + 0x3c]
inc ecx
movzx eax, byte [rdx + 0xc]
cmp ecx, eax
jbe 0x18007ca53
cmp ecx, 0xff
jae 0x18007cab5
mov byte [rdx + 0xc], cl
inc byte [rbx + 0x3c]
mov rdx, rsi
movzx r8d, byte [rbx + 0x3c]
mov rcx, rbx
dec r8d
call fcn.18007c2c0
cmp dword [rsi], 7
jne 0x18007ca81
mov edx, dword [rdi]
bt edx, 8
jb 0x18007ca81
movzx eax, byte [rbx + 0x3a]
cmp edx, eax
jl 0x18007ca81
dec byte [rbx + 0x3c]
mov edx, dword [rdi]
shl edx, 9
or edx, ebp
shl edx, 0xe
or edx, 0x3fe3
mov rcx, rbx
call fcn.18007be70
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.18007bb90
mov rcx, qword [rbx + 0x10]
lea rdx, str.function_or_expression_needs_too_many_registers
call fcn.1800880d0
int3
Function at 0x180086610
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x2050
call fcn.1800a5d40
sub rsp, rax
mov rax, qword [0x1800d5010]
xor rax, rsp
mov qword [rsp + 0x2040], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x20], rax
mov rbx, rdx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0x2000
nop dword [rax]
mov edx, 0x2000
lea rcx, [rsp + 0x20]
call fcn.180078670
mov r9, rbx
mov edx, 1
mov r8d, 0x2000
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r8, qword [rsp + 0x30]
add r8, rax
mov qword [rsp + 0x30], r8
cmp rax, 0x2000
je 0x180086660
mov rdi, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x20]
mov rcx, rdi
call fcn.180075880
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x20], rax
je 0x180086718
mov rax, qword [rdi + 0x18]
mov rbx, qword [rdi + 0x10]
mov rcx, qword [rax + 8]
mov r10, qword [rax]
mov eax, dword [rbx - 0x18]
and eax, 0xf
cmp eax, 2
je 0x1800866e6
cmp eax, 7
je 0x1800866dc
xor ebx, ebx
jmp 0x1800866ea
mov rbx, qword [rbx - 0x20]
add rbx, 0x28
jmp 0x1800866ea
mov rbx, qword [rbx - 0x20]
mov r8, qword [rbx + 8]
xor r9d, r9d
mov rdx, qword [rbx]
call r10
mov edx, 0xfffffffe
mov qword [rbx], rax
mov rcx, rdi
mov qword [rbx + 8], 0
lea r8d, [rdx + 1]
call fcn.180074f80
add qword [rdi + 0x10], 0xfffffffffffffff0
mov rcx, qword [rsp + 0x2040]
xor rcx, rsp
call fcn.1800a3d60
mov rbx, qword [rsp + 0x2060]
add rsp, 0x2050
pop rdi
ret

Function at 0x180086740
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
mov eax, 0x2050
call fcn.1800a5d40
sub rsp, rax
mov rax, qword [0x1800d5010]
xor rax, rsp
mov qword [rsp + 0x2040], rax
mov rbx, rdx
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], 0x2000
xor esi, esi
mov qword [rsp + 0x20], rax
mov rdx, r8
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x20]
mov rdi, r8
call fcn.180078670
mov r9, rbx
lea edx, [rsi + 1]
mov r8, rdi
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r8, qword [rsp + 0x30]
mov rbp, rax
mov rdi, qword [rsp + 0x38]
add r8, rax
mov rdx, qword [rsp + 0x20]
mov rcx, rdi
mov qword [rsp + 0x30], r8
call fcn.180075880
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x20], rax
je 0x180086834
mov rax, qword [rdi + 0x18]
mov rbx, qword [rdi + 0x10]
mov rcx, qword [rax + 8]
mov r10, qword [rax]
mov eax, dword [rbx - 0x18]
and eax, 0xf
cmp eax, 2
je 0x180086806
cmp eax, 7
je 0x1800867fc
mov ebx, esi
jmp 0x18008680a
mov rbx, qword [rbx - 0x20]
add rbx, 0x28
jmp 0x18008680a
mov rbx, qword [rbx - 0x20]
mov r8, qword [rbx + 8]
xor r9d, r9d
mov rdx, qword [rbx]
call r10
mov edx, 0xfffffffe
mov qword [rbx], rax
mov rcx, rdi
mov qword [rbx + 8], rsi
lea r8d, [rdx + 1]
call fcn.180074f80
add qword [rdi + 0x10], 0xfffffffffffffff0
test rbp, rbp
setne sil
mov eax, esi
mov rcx, qword [rsp + 0x2040]
xor rcx, rsp
call fcn.1800a3d60
mov rbx, qword [rsp + 0x2070]
add rsp, 0x2050
pop rdi
pop rsi
pop rbp
ret
Function at 0x18008b3c0
Capabilities:
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x148
mov rax, qword [0x1800d5010]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov r14, r9
mov r15, rdx
lea r9, str._5_3
mov rbx, r8
lea rdx, str._s_s
mov rdi, rcx
call fcn.180075a00
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xor esi, esi
mov rbp, rax
test rax, rax
jne 0x18008b42b
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rbp, rax
test rax, rax
jne 0x18008b42b
lea rbx, [rdi + 0x10]
jmp 0x18008b461
mov rdx, qword [rdi + 0x18]
lea r8, str.LUA_NOENV
add rdx, 0x40
mov rcx, rdi
call fcn.180075b30
mov rax, qword [rdi + 0x10]
lea rbx, [rdi + 0x10]
add rax, 0xfffffffffffffff0
mov ecx, dword [rax + 8]
test ecx, ecx
je 0x18008b4a1
cmp ecx, 1
jne 0x18008b45e
cmp dword [rax], esi
je 0x18008b4a1
mov qword [rbx], rax
test r14, r14
jne 0x18008b46e
mov rax, qword [rbx]
mov dword [rax + 8], esi
jmp 0x18008b489
mov rdx, r14
mov rcx, rdi
call fcn.180096510
mov rcx, qword [rbx]
mov qword [rcx], rax
movzx eax, byte [rax + 8]
or eax, 0x40
mov dword [rcx + 8], eax
mov rax, qword [rdi + 0x18]
add qword [rbx], 0x10
cmp qword [rax + 0x18], rsi
jle 0x18008b4e7
mov rcx, rdi
call fcn.180085110
jmp 0x18008b4e7
lea r9, [0x1800c1a64]
mov qword [rbx], rax
lea r8, [0x1800c1a68]
mov rdx, rbp
mov rcx, rdi
call fcn.180079720
mov r9, r14
lea r8, [0x1800c1a6c]
mov rdx, rax
mov rcx, rdi
call fcn.180079720
mov edx, 0xfffffffe
mov rcx, rdi
lea r8d, [rdx + 1]
call fcn.180074f80
add qword [rbx], 0xfffffffffffffff0
mov r8d, 0x105
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x18008b5cd
cmp eax, 0x105
je 0x18008b5cd
mov edx, 0x5c
lea rcx, [rsp + 0x20]
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
test rax, rax
je 0x18008b5cd
mov byte [rax], sil
mov rax, qword [rbx]
sub rax, 0x10
mov ecx, dword [rax + 8]
and ecx, 0xf
cmp ecx, 4
je 0x18008b564
cmp ecx, 3
jne 0x18008b56b
mov rdx, rax
mov rcx, rdi
call fcn.18008d990
mov rax, qword [rdi + 0x18]
cmp qword [rax + 0x18], rsi
jle 0x18008b55d
mov rcx, rdi
call fcn.180085110
mov rax, qword [rbx]
sub rax, 0x10
mov rsi, qword [rax]
add rsi, 0x18
lea r9, [rsp + 0x20]
mov rdx, rsi
lea r8, [0x1800c1a28]
mov rcx, rdi
call fcn.180079720
mov edx, 0xfffffffe
mov rcx, rdi
lea r8d, [rdx + 1]
call fcn.180074f80
add qword [rbx], 0xfffffffffffffff0
mov r8, r15
mov rdx, qword [rbx]
mov rcx, rdi
add rdx, 0xffffffffffffffd0
call fcn.180075fd0
add qword [rbx], 0xfffffffffffffff0
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1800a3d60
add rsp, 0x148
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea rdx, str.unable_to_get_ModuleFileName
mov rcx, rdi
call fcn.180077dc0
int3
Function at 0x18008d430
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x28
mov qword [rsp + 0x70], rbx
mov r12, rdx
mov rbx, rcx
call qword [sym.imp.api_ms_win_crt_locale_l1_1_0.dll_localeconv]
xor edi, edi
lea r13, [0x1800b2f70]
xorps xmm1, xmm1
mov r10d, edi
mov esi, edi
mov r9d, edi
mov r8, qword [rax]
mov r11d, edi
movsx r14d, byte [r8]
mov qword [r12], rbx
movzx eax, byte [rbx]
test byte [rax + r13 + 1], 8
je 0x18008d48f
nop dword [rax]
movzx eax, byte [rbx + 1]
inc rbx
test byte [rax + r13 + 1], 8
jne 0x18008d480
mov qword [rsp + 0x20], r15
lea rdx, [rbx + 1]
mov ebp, 1
cmp al, 0x2d
jne 0x18008d4a6
mov r15d, ebp
jmp 0x18008d4af
cmp al, 0x2b
mov r15d, edi
cmovne rdx, rbx
cmp byte [rdx], 0x30
mov rbx, qword [rsp + 0x70]
jne 0x18008d5e8
movzx eax, byte [rdx + 1]
sub al, 0x58
test al, 0xdf
jne 0x18008d5e8
movsd xmm2, qword [0x1800c2c90]
add rdx, 2
nop word [rax + rax]
movzx r8d, byte [rdx]
movsx rcx, r8b
cmp ecx, r14d
jne 0x18008d4fa
test r11d, r11d
jne 0x18008d54f
mov r11d, ebp
inc rdx
jmp 0x18008d4e0
test byte [r8 + r13 + 1], 0x10
je 0x18008d54f
test r10d, r10d
jne 0x18008d511
cmp r8b, 0x30
jne 0x18008d511
inc esi
jmp 0x18008d542
inc r10d
cmp r10d, 0x1e
jg 0x18008d53f
test byte [rcx + r13 + 1], 2
je 0x18008d527
add ecx, 0xffffffd0
jmp 0x18008d52d
or ecx, 0x20
sub ecx, 0x57
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm2
addsd xmm1, xmm0
jmp 0x18008d542
inc r9d
test r11d, r11d
je 0x18008d54a
dec r9d
inc rdx
jmp 0x18008d4e0
lea eax, [rsi + r10]
test eax, eax
je 0x18008d5e8
mov qword [r12], rdx
lea r9d, [r9*4]
movzx eax, byte [rdx]
sub al, 0x50
test al, 0xdf
jne 0x18008d5ce
movzx ecx, byte [rdx + 1]
cmp cl, 0x2d
jne 0x18008d580
mov eax, 2
jmp 0x18008d58e
cmp cl, 0x2b
mov rax, rdi
mov ebp, edi
sete al
inc rax
lea r8, [rdx + rax]
movzx edx, byte [rdx + rax]
test byte [rdx + r13 + 1], 2
je 0x18008d5e8
nop
movsx eax, dl
lea edi, [rdi + rdi*4]
inc r8
lea edi, [rdi - 0x18]
lea edi, [rax + rdi*2]
movzx eax, byte [r8]
movzx edx, al
test byte [rax + r13 + 1], 2
jne 0x18008d5a0
mov eax, edi
mov qword [r12], r8
neg eax
test ebp, ebp
cmove eax, edi
add r9d, eax
test r15d, r15d
je 0x18008d5da
xorps xmm1, xmmword [0x1800c36e0]
mov edx, r9d
movaps xmm0, xmm1
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_ldexp]
jmp 0x18008d5eb
xorps xmm0, xmm0
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180095f50
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
sub rsp, 0x58
mov rax, qword [0x1800d5010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, rdx
mov rdi, rcx
xor edx, edx
mov r9d, 0x610
mov rcx, rbp
lea r8d, [rdx + 8]
call rdi
test rax, rax
je 0x180096186
mov qword [rsp + 0x80], rbx
xor ecx, ecx
lea rbx, [rax + 0xd8]
mov qword [rsp + 0x88], rsi
lea rsi, [rax + 8]
mov eax, 1
mov dword [rsi + 8], pe_nt_image_headers64
mov word [rsi + 0xc4], ax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x30], rax
lea rax, [0x1800b37d0]
mov qword [rsp + 0x38], rax
lea rax, [fcn.180095f50]
mov byte [rbx + 0x54], 1
mov qword [rsi + 0x18], rbx
mov qword [rsi + 0x50], rsi
mov qword [rbx], rdi
mov qword [rsp + 0x50], r14
xor r14d, r14d
mov qword [rsi], r14
mov qword [rsi + 0x38], r14
mov qword [rsi + 0x20], r14
mov dword [rsi + 0xb8], r14d
lea edi, [r14 + 0x20]
mov qword [rsi + 0x58], r14
mov word [rsi + 0xc6], r14w
mov qword [rsp + 0x40], rax
mov qword [rsi + 0xa8], r14
mov dword [rsi + 0xc8], r14d
mov qword [rsi + 0xbc], r14
mov byte [rsi + 0xcc], 1
mov qword [rsi + 0x40], r14
mov byte [rsi + 0xc], r14b
mov qword [rsi + 0xb0], r14
mov qword [rbx + 8], rbp
mov qword [rbx + 0xc8], rsi
mov qword [rsp + 0x28], rsi
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
xor eax, edi
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [rsp + rdi + 0x27]
mov ecx, eax
shl ecx, 5
sub rdi, 2
add edx, ecx
mov ecx, eax
shr ecx, 2
add edx, ecx
xor eax, edx
cmp rdi, 2
jae 0x180096060
mov dword [rbx + 0x50], eax
lea rdx, [0x180095c90]
mov word [rbx + 0x56], r14w
xor r8d, r8d
mov qword [rbx + 0x28], r14
mov rcx, rsi
mov qword [rbx + 0x38], r14
mov qword [rbx + 0x30], r14
mov dword [rbx + 0x48], r14d
mov qword [rbx + 0xc0], r14
mov qword [rbx + 0xd0], r14
mov byte [rbx + 0x55], 7
mov qword [rbx + 0xa0], r14
mov qword [rbx + 0x98], r14
mov qword [rbx + 0x68], r14
mov qword [rbx + 0x58], r14
mov qword [rbx + 0x60], r14
mov qword [rbx + 0x78], r14
mov qword [rbx + 0x70], r14
mov qword [rbx + 0x90], r14
mov qword [rbx + 0x88], r14
mov qword [rbx + 0x80], r14
mov qword [rbx + 0xa8], r14
mov qword [rbx + 0x10], 0x610
mov qword [rbx + 0x18], r14
mov dword [rbx + 0xb0], r14d
mov dword [rbx + 0xb4], 0xc8
mov dword [rbx + 0xb8], 0xc8
mov qword [rbx + 0x1a0], r14
mov qword [rbx + 0x1a8], r14
mov qword [rbx + 0x1b0], r14
mov qword [rbx + 0x1b8], r14
mov qword [rbx + 0x1c0], r14
mov qword [rbx + 0x1c8], r14
mov qword [rbx + 0x1d0], r14
mov qword [rbx + 0x1d8], r14
mov qword [rbx + 0x1e0], r14
call fcn.1800814e0
mov rbx, qword [rsp + 0x80]
test eax, eax
je 0x180096176
mov rcx, rsi
call fcn.180095e50
mov rsi, r14
mov r14, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800a3d60
add rsp, 0x58
pop rdi
pop rbp
ret
Function at 0x180096450
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbp
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
cmp r8, 0x28
ja 0x180096477
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp fcn.1800962c0
movabs rax, 0x7fffffffffffffe7
cmp rbp, rax
jae 0x180096504
mov qword [rsp + 0x30], rbx
lea r9, [r8 + 0x19]
xor edx, edx
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rdi
mov rdi, qword [rcx + 0x18]
lea r8d, [rdx + 4]
mov ebx, dword [rdi + 0x50]
call fcn.18008b250
movzx ecx, byte [rdi + 0x54]
mov r8, rbp
and cl, 3
mov rdx, r14
mov rsi, rax
mov byte [rax + 9], cl
mov byte [rax + 8], 0x14
mov rcx, qword [rdi + 0x58]
mov qword [rax], rcx
lea rcx, [rax + 0x18]
mov qword [rdi + 0x58], rax
mov dword [rax + 0xc], ebx
mov byte [rax + 0xa], 0
mov byte [rax + rbp + 0x18], 0
mov qword [rax + 0x10], rbp
call sub.VCRUNTIME140.dll_memcpy
mov rdi, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
call fcn.18008b230
int3
Function at 0x1800a5ad4
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 0x1800a5b58
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1800a8ba0]
cmp byte [rcx + rax], 0
je 0x1800a5b58
dec r8
sub rdx, 1
jne 0x1800a5b3e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004810]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004820]
mov dword [rax], 1
mov rax, qword [0x140004830]
mov dword [rax], 1
mov rax, qword [0x1400047d0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140004800]
mov dword [0x14000700c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x1400048e0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1400048c0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140004780]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x140004860]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x140004870]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x140007008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x1400047c0]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call dbg._pei386_runtime_relocator
mov rcx, qword [dbg._gnu_exception_handler]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x140004850]
lea rcx, [dbg.__mingw_invalidParameterHandler]
mov qword [rdx], rax
call sym._set_invalid_parameter_handler
call dbg._fpreset
mov ebx, dword [0x140007028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sym.malloc
mov r12, qword [0x140007020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
mov rcx, qword [r12 + rbx]
call sym.strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sym.malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sym.memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x140007020], rbp
call dbg.__main
mov rax, qword [0x1400047e0]
mov r8, qword [0x140007018]
mov ecx, dword [0x140007028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x140007020]
call dbg.main
mov ecx, dword [0x14000700c]
mov dword [0x140007010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x140007008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x140004870]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call dbg._amsg_exit
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x140004890]
mov rcx, qword [0x140004880]
call sym._initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sym._cexit
mov eax, dword [0x140007010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x1400048b0]
mov rcx, qword [0x1400048a0]
mov dword [rsi], 1
call sym._initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sym.exit
nop