joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401319a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rdi, rcx
mov esi, dword [0x140177610]
test esi, esi
je 0x140131a69
dec esi
mov ecx, esi
call fcn.140173a38
cmp rax, 1
ja 0x140131a5e
je 0x1401319fb
xor ebx, ebx
test rdi, rdi
je 0x1401319ff
test byte [rdi], 1
mov qword [rdi], 0
mov eax, dword [rdi + 0x10]
cmove eax, ebx
mov r14d, 0
cmovne r14, qword [rdi + 8]
mov ebx, eax
jmp 0x140131a02
xor eax, eax
jmp 0x140131a5e
xor r14d, r14d
mov rax, qword [0x1401b5f98]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140131a8a
mov qword [rax], r14
mov byte [rax + 8], bl
mov dword [rax + 0x10], esi
mov ecx, esi
mov rbx, rax
call fcn.140173a38
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x140131a5b
mov edx, 0x18
mov r8d, 8
mov rcx, rdi
call sym.__rust_dealloc
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, sym.std::sys::thread_local::os::destroy_value::h5ce69e43e05462f1
call sym.std::sys::thread_local::key::windows::LazyKey::init::h3b25bd09068d2560
mov esi, eax
mov ecx, esi
call fcn.140173a38
cmp rax, 1
jbe 0x1401319d3
jmp 0x140131a5e
mov ecx, 8
mov edx, 0x18
call sym.alloc::alloc::handle_alloc_error::h5b2832badfdb0979
int3

Function at 0x140131aa0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rdi, rcx
mov esi, dword [0x140177630]
test esi, esi
je 0x140131ad6
dec esi
mov ecx, esi
call fcn.140173a38
cmp rax, 1
jbe 0x140131af1
add rax, 4
jmp 0x140131b6a
lea rcx, sym.std::sys::thread_local::os::destroy_value::hec7bba4e7582b8ef
call sym.std::sys::thread_local::key::windows::LazyKey::init::h3b25bd09068d2560
mov esi, eax
mov ecx, esi
call fcn.140173a38
cmp rax, 1
ja 0x140131acd
je 0x140131b68
xor r14d, r14d
test rdi, rdi
je 0x140131b09
cmp byte [rdi], 0
mov byte [rdi], 0
movzx eax, byte [rdi + 1]
cmovne r14d, eax
mov rax, qword [0x1401b5f98]
movzx eax, byte [rax]
mov ecx, 8
mov edx, 4
call sym.__rust_alloc
test rax, rax
je 0x140131b77
mov rbx, rax
mov dword [rax], esi
add rax, 4
mov r15, rax
mov byte [rbx + 4], r14b
mov ecx, esi
call fcn.140173a38
mov rdi, rax
mov ecx, esi
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x140131b63
mov edx, 8
mov r8d, 4
mov rcx, rdi
call sym.__rust_dealloc
mov rax, r15
jmp 0x140131b6a
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov ecx, 4
mov edx, 8
call sym.alloc::alloc::handle_alloc_error::h5b2832badfdb0979
int3
Function at 0x140131b90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov rdi, rcx
mov esi, dword [0x140177670]
test esi, esi
je 0x140131c62
dec esi
mov ecx, esi
call fcn.140173a38
cmp rax, 1
ja 0x140131c59
je 0x140131bdd
test rdi, rdi
je 0x140131be1
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x140131be3
mov rbx, qword [rdi + 8]
jmp 0x140131be3
xor eax, eax
jmp 0x140131c59
xor ebx, ebx
mov qword [rbp - 8], rbx
mov dword [rbp], esi
mov rax, qword [0x1401b5f98]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140131c83
mov qword [rax], rbx
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call fcn.140173a38
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
test rdi, rdi
je 0x140131c56
mov rax, qword [rdi]
test rax, rax
je 0x140131c43
lock dec qword [rax]
jne 0x140131c43
mov rcx, rdi
call sym.alloc::sync::Arc_T_A_::drop_slow::h9d2214d21699a437
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call sym.__rust_dealloc
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, sym.std::sys::thread_local::os::destroy_value::h58f229c4acbf425a
call sym.std::sys::thread_local::key::windows::LazyKey::init::h3b25bd09068d2560
mov esi, eax
mov ecx, esi
call fcn.140173a38
cmp rax, 1
jbe 0x140131bc1
jmp 0x140131c59
mov ecx, 8
mov edx, 0x10
call sym.alloc::alloc::handle_alloc_error::h5b2832badfdb0979
ud2

Function at 0x140135610
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
test rdx, rdx
je 0x14013562a
mov r8d, edx
and r8d, 3
cmp rdx, 4
jae 0x14013562e
xor eax, eax
jmp 0x1401356a5
xor eax, eax
pop rbp
ret
and rdx, 0xfffffffffffffffc
xor eax, eax
nop word cs:[rax + rax]
shl eax, 4
movzx r9d, byte [rcx]
add r9d, eax
mov eax, r9d
shr eax, 0x18
and eax, 0xfffffff0
xor eax, r9d
shl eax, 4
movzx r9d, byte [rcx + 1]
add r9d, eax
mov eax, r9d
shr eax, 0x18
and eax, 0xfffffff0
xor eax, r9d
shl eax, 4
movzx r9d, byte [rcx + 2]
add r9d, eax
mov eax, r9d
shr eax, 0x18
and eax, 0xfffffff0
xor eax, r9d
shl eax, 4
movzx r9d, byte [rcx + 3]
add rcx, 4
add r9d, eax
mov eax, r9d
shr eax, 0x18
and eax, 0xfffffff0
xor eax, r9d
add rdx, 0xfffffffffffffffc
jne 0x140135640
test r8, r8
je 0x1401356cf
xor edx, edx
nop dword [rax]
shl eax, 4
movzx r9d, byte [rcx + rdx]
add r9d, eax
mov eax, r9d
shr eax, 0x18
and eax, 0xfffffff0
xor eax, r9d
inc rdx
cmp r8, rdx
jne 0x1401356b0
and eax, 0xfffffff
pop rbp
ret
Function at 0x1401356e0
Capabilities:
Hash data using djb2

Disassembly:
push rbp
mov rbp, rsp
test rdx, rdx
je 0x140135700
mov r8d, edx
and r8d, 7
cmp rdx, 8
jae 0x140135707
mov eax, 0x1505
jmp 0x14013578d
mov eax, 0x1505
pop rbp
ret
and rdx, 0xfffffffffffffff8
mov eax, 0x1505
mov r9d, eax
shl r9d, 5
add r9d, eax
movzx eax, byte [rcx]
add eax, r9d
movzx r9d, byte [rcx + 1]
add r9d, eax
shl eax, 5
add r9d, eax
movzx eax, byte [rcx + 2]
add eax, r9d
shl r9d, 5
add eax, r9d
movzx r9d, byte [rcx + 3]
add r9d, eax
shl eax, 5
add r9d, eax
movzx eax, byte [rcx + 4]
add eax, r9d
shl r9d, 5
add eax, r9d
movzx r9d, byte [rcx + 5]
add r9d, eax
shl eax, 5
add r9d, eax
movzx r10d, byte [rcx + 6]
add r10d, r9d
shl r9d, 5
add r10d, r9d
movzx eax, byte [rcx + 7]
add eax, r10d
shl r10d, 5
add rcx, 8
add eax, r10d
add rdx, 0xfffffffffffffff8
jne 0x140135710
test r8, r8
je 0x1401357b9
xor edx, edx
nop word cs:[rax + rax]
mov r9d, eax
shl r9d, 5
add r9d, eax
movzx eax, byte [rcx + rdx]
add eax, r9d
inc rdx
cmp r8, rdx
jne 0x1401357a0
pop rbp
ret
Function at 0x14016d270
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
movzx eax, byte [rcx]
mov ecx, dword [rdx + 0x34]
test cl, 0x10
jne 0x14016d2d1
test cl, 0x20
jne 0x14016d314
movzx r8d, al
cmp r8b, 0x64
jb 0x14016d381
lea ecx, [r8 + r8*4]
lea r8d, [r8 + rcx*8]
shr r8d, 0xc
imul ecx, r8d, 0x64
sub al, cl
movzx eax, al
lea rcx, [0x1401a9d1e]
movzx eax, word [rcx + rax*2]
mov word [rbp - 0x47], ax
xor ecx, ecx
mov eax, r8d
jmp 0x14016d38a
lea r9, [rbp + 0x38]
xor r8d, r8d
mov ecx, eax
nop word [rax + rax]
mov r10d, eax
and r10b, 0xf
shr cl, 4
lea r11d, [r10 + 0x30]
lea esi, [r10 + 0x57]
cmp r10b, 0xa
movzx r10d, r11b
movzx r11d, sil
cmovb r11d, r10d
mov byte [r9 - 1], r11b
dec r9
inc r8
cmp al, 0x10
mov eax, ecx
jae 0x14016d2e0
jmp 0x14016d352
lea r9, [rbp + 0x38]
xor r8d, r8d
mov ecx, eax
nop dword [rax]
mov r10d, eax
and r10b, 0xf
shr cl, 4
lea r11d, [r10 + 0x30]
lea esi, [r10 + 0x37]
cmp r10b, 0xa
movzx r10d, r11b
movzx r11d, sil
cmovb r11d, r10d
mov byte [r9 - 1], r11b
dec r9
inc r8
cmp al, 0x10
mov eax, ecx
jae 0x14016d320
mov ecx, pe_nt_image_headers64
sub rcx, r8
cmp rcx, 0x81
jae 0x14016d3db
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r9
lea r8, [0x1401a9d1a]
mov r9d, 2
mov rcx, rdx
mov dl, 1
jmp 0x14016d3cb
mov ecx, 2
cmp al, 0xa
jae 0x14016d392
or al, 0x30
mov byte [rbp + rcx - 0x48], al
jmp 0x14016d3a7
lea rax, [0x1401a9d1e]
movzx eax, word [rax + r8*2]
mov word [rbp - 0x47], ax
mov ecx, 1
lea rax, [rcx + rbp]
add rax, 0xffffffffffffffb8
xor rcx, 3
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r8d, 1
mov rcx, rdx
mov dl, 1
xor r9d, r9d
call sym.core::fmt::Formatter::pad_integral::heec9e20fbd78c161
nop
add rsp, 0xb8
pop rsi
pop rbp
ret
lea r8, str.core_src_fmt_num.rs
mov edx, pe_nt_image_headers64
call sym.core::slice::index::slice_start_index_len_fail::h5bb5bcafc5a182a4
int3
Function at 0x140175380
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rbx, rcx
lea rax, [rbp + 0x28]
mov ecx, 2
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
mov qword [rbp - 8], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x1401753f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
movsxd rsi, dword [0x1401ea2e4]
mov rbx, rcx
test esi, esi
jle 0x140175520
mov rax, qword [0x1401ea2e8]
xor r9d, r9d
add rax, 0x18
nop dword [rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14017543b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1401754c3
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140175420
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140175542
mov rax, qword [0x1401ea2e8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1401ea2e8]
lea rdx, [rbp - 0x30]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140175527
mov eax, dword [rbp - 0xc]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1401754bc
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1401754d0
add dword [0x1401ea2e4], 1
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 2
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1401ea2e8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1401754bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop word [rax + rax]
xor esi, esi
jmp 0x140175448
mov rax, qword [0x1401ea2e8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140175ad0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
lea r13, [0x1401ea340]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401ea320]
test rbx, rbx
je 0x140175b35
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [rbx]
call r12
mov rsi, rax
call rdi
test rsi, rsi
je 0x140175b2c
test eax, eax
jne 0x140175b2c
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140175b10
mov rcx, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140175d70
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140175d88
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140175d90
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140175da0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x140175ded
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140175de4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140175def
add rax, 0x28
cmp rax, r9
jne 0x140175dd0
xor eax, eax
ret

Function at 0x140175df0
Capabilities:
Parse pe header

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140175e88
mov rdx, qword [0x1401b5ee0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x140175e76
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140175e76
cmp word [rax + 0x18], 0x20b
jne 0x140175e76
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140175e88
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140175e61
add rbx, 0x28
cmp rbx, rdi
je 0x140175e88
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140175e58
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x140175ea0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1401b5ee0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140175ec0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140175ec8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140175ec0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140175f1d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140175f14
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140175ec0
add rax, 0x28
cmp rax, r9
jne 0x140175f00
xor eax, eax
ret
Function at 0x140175f20
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1401b5ee0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140175f3f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140175f48
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140175f3f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140175f60
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1401b5ee0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140175f80
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140175f88
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140175f80
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140175fd0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140175fc7
test rcx, rcx
je 0x140175f80
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140175fb8
xor eax, eax
ret

Function at 0x140175fe0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1401b5ee0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140175fff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140176008
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140176020
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1401b5ee0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140176040
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140176048
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140176040
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140176040
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140176094
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1401760a0
add rdx, 0x28
cmp rdx, r9
jne 0x140176080
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x1401760b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1401b5ee0]
xor r8d, r8d
cmp word [r11], 0x5a4d
mov r10d, ecx
jne 0x1401760d4
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
cmp dword [rcx], 0x4550
je 0x1401760e0
mov rax, r8
ret
cmp word [rcx + 0x18], 0x20b
jne 0x1401760d4
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x1401760d4
movzx edx, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rdx, [rcx + rdx + 0x18]
test r9w, r9w
je 0x1401760d4
lea ecx, [r9 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rdx + 0xc]
mov rcx, r8
cmp rax, r8
jb 0x14017612c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x140176140
add rdx, 0x28
cmp r9, rdx
jne 0x140176118
xor r8d, r8d
mov rax, r8
ret
add rax, r11
jmp 0x140176150
sub r10d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x14017615e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140176135
test r10d, r10d
jg 0x140176148
mov r8d, dword [rax + 0xc]
add r8, r11
mov rax, r8
ret
Function at 0x180001080
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x428
mov rax, qword [0x180034080]
xor rax, rsp
mov qword [rsp + 0x410], rax
mov r8d, 0x104
lea rdx, [rsp + 0x200]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x200]
call fcn.18000f2c4
mov ecx, 0x104
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov dx, 0x5c
lea rcx, [rsp + 0x200]
call fcn.180007a10
add rax, 2
lea r8, str.dataextract_and_run.bat
mov rcx, qword [rsp + 0x50]
mov rdx, rcx
mov rcx, rax
call fcn.18000f25c
lea rax, str._n_____echo_off_n____cd__dp0_n____setlocal_enabledelayedexpansion_n_n____rem
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 2
lea rdx, [rsp + 0x200]
lea rcx, [rsp + 0xf0]
call fcn.1800024a0
nop
lea rcx, [rsp + 0xf0]
call fcn.1800066c0
movzx eax, al
test eax, eax
je 0x180001162
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0xf0]
call fcn.180001370
lea rcx, [rsp + 0xf0]
call fcn.180005d30
nop
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0x80]
call fcn.1800230e0
mov dword [rsp + 0x80], 0x68
mov r8d, 0x18
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.1800230e0
nop
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x200]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x180001211
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x18000122e
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.Failed_to_launch_the_batch_file.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
lea rcx, [rsp + 0xf0]
call fcn.180003e60
nop
mov rcx, qword [rsp + 0x410]
xor rcx, rsp
call fcn.180009230
add rsp, 0x428
ret
Function at 0x180007b50
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
cmp qword [rsp + 0x70], 0
jg 0x180007b72
xor eax, eax
jmp 0x180007d16
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x68], 0
je 0x180007b97
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.180007d20
jmp 0x180007d16
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x60]
call fcn.180004cb0
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jbe 0x180007c2e
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.180002130
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x60]
call fcn.180006530
mov r8, qword [rsp + 0x28]
mov rdx, rax
mov rcx, qword [rsp + 0x68]
call fcn.180005d80
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
call fcn.180006440
nop
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x80], 0
je 0x180007d06
mov rcx, qword [rsp + 0x60]
call fcn.1800053f0
mov qword [rsp + 0x48], 0xfff
cmp qword [rsp + 0x20], 0xfff
jbe 0x180007cce
mov rax, qword [rsp + 0x60]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x68]
call fcn.1800103a0
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x30], 0xfff
je 0x180007ccc
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
jmp 0x180007d16
jmp 0x180007c54
cmp qword [rsp + 0x20], 0
jbe 0x180007d06
mov rax, qword [rsp + 0x60]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x20]
mov edx, 1
mov rcx, qword [rsp + 0x68]
call fcn.1800103a0
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
add rsp, 0x58
ret
Function at 0x1800127a8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x180012817
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180012817
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180012817
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180012817
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180012817
cmp dword [rcx + 0x84], 0xe
jbe 0x180012817
cmp dword [rcx + 0xf8], 0
je 0x180012817
mov ecx, ebx
call fcn.1800128bc
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1800126b0
nop
cmp dword [rbp + 0x20], 0
jne 0x180012878
call fcn.18001bb00
cmp eax, 1
jne 0x180012868
xor dl, dl
jmp 0x180012872
call fcn.18001bacc
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x180012883
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18001288c
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1800127a8

Function at 0x18001617c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x18003a050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x1800161e1
test rax, rax
jne 0x1800161cf
lea r9, str.GetLocaleInfoEx
lea r8, [0x1800299f8]
lea rdx, str.GetLocaleInfoEx
lea ecx, [rax + 0xa]
call fcn.180015e50
test rax, rax
je 0x1800161e1
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.180022a00
jmp 0x1800161fb
xor edx, edx
mov rcx, rbp
call fcn.18001646c
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret