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

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x18003716d
lea rbx, [0x180094320]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180037154
cmp r10, 2
jb 0x180037154
cmp byte [r9], r8b
jne 0x180037154
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x180037130
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1800371af
lea rbx, [0x180094320]
cmp r8b, 0x23
jne 0x180037193
cmp byte [r9], r8b
jne 0x180037193
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x180037180
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x1800372f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x18003730a
mov qword [r8], 0
lea rdx, [0x180093f44]
call fcn.1800371c0
mov rbx, rax
test rax, rax
jne 0x18003732a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x180037403
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180037403
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180037403
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180037403
cmp rdi, 0xffffffffffffffff
je 0x180037403
mov rax, qword [0x1800ee7d8]
test rax, rax
je 0x1800373a0
inc dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x180037403
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x1800373f0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1800ee7d8]
test rax, rax
je 0x1800373e5
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x18003740c
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x1800373fe
mov qword [r14], rdi
mov rax, rsi
jmp 0x18003740e
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x1800396f0
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0xd8]
lea r8, [0x180094320]
movsxd rcx, dword [rcx + 0xd0]
mov r11d, edx
shr r11d, 0x18
mov r9d, edx
shr r9d, 8
mov r10d, edx
shr r10d, 0x10
mov ebx, dword [rax + rcx*4 - 4]
not ebx
movzx eax, dl
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r9b
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r10b
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, r11
shr ebx, 8
xor ebx, dword [r8 + rcx*4]
mov rcx, qword [0x1800ee7d8]
not ebx
cmp dword [rcx + 0x3ec4], ebx
jne 0x180039785
movsxd r8, edx
mov ecx, ebx
mov edx, 4
call fcn.18004ae70
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x18003e3f0
Capabilities:
Hash data with crc32

Disassembly:
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x18003e440
lea r11, [0x180094320]
nop dword [rax]
cmp r9b, 0x23
jne 0x18003e423
cmp byte [r8], r9b
jne 0x18003e423
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 0x18003e410
mov rcx, qword [0x1800ee7d8]
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 0x18003e4a1
nop word [rax + rax]
mov r8, rdx
shr r8, 1
mov rcx, r8
add rcx, rcx
cmp dword [r9 + rcx*8], eax
jae 0x18003e499
lea r9, [r9 + rcx*8]
mov rcx, 0xffffffffffffffff
sub rcx, r8
add r9, 0x10
add rdx, rcx
jmp 0x18003e49c
mov rdx, r8
test rdx, rdx
jne 0x18003e470
cmp r9, r10
je 0x18003e4b0
cmp dword [r9], eax
jne 0x18003e4b0
mov rax, qword [r9 + 8]
ret
xor eax, eax
ret

Function at 0x180049980
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 0x180049a27
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x1800499da
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.18004bf30
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.180037750
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, [0x1800ee724]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x180049a2f
mov rcx, rbx
call fcn.180037750
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x180049eb0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x1800ee7d8]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x180049f13
mov qword [rsp], rbx
lea rbx, [0x180094320]
nop dword [rax]
cmp r9b, 0x23
jne 0x180049ef3
cmp byte [r8], r9b
jne 0x180049ef3
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 0x180049ee0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5390]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x180049f47
mov r10, qword [r10 + 0x5398]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x180049f4e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x180049f34
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 0x1800662b0
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.180066500
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x1800663ca
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180066314
mov rax, qword [0x1800a8008]
cmp qword [rsp + 0x20], rax
ja 0x180066314
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1800662d6
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 0x180066345
jmp 0x1800663ca
cmp dword [rsp + 0x50], 0x10000
jne 0x1800663ad
cmp qword [rsp + 0x48], 0x10000
jb 0x1800663ad
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 0x18006638b
mov rax, qword [rsp + 0x28]
jmp 0x1800663cc
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x18006639b
xor eax, eax
jmp 0x1800663cc
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1800663c5
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180066500
mov qword [rsp + 0x20], rax
jmp 0x1800662d6
xor eax, eax
add rsp, 0x68
ret

Function at 0x1800663e0
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.180066540
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x1800664f6
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x18006643b
mov rax, qword [0x1800a8008]
cmp qword [rsp + 0x20], rax
ja 0x18006643b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1800663fd
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 0x18006646c
jmp 0x1800664f6
cmp dword [rsp + 0x50], 0x10000
jne 0x1800664d4
cmp qword [rsp + 0x48], 0x10000
jb 0x1800664d4
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 0x1800664b2
mov rax, qword [rsp + 0x28]
jmp 0x1800664f8
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1800664c2
xor eax, eax
jmp 0x1800664f8
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1800664f1
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180066540
mov qword [rsp + 0x20], rax
jmp 0x1800663fd
xor eax, eax
add rsp, 0x68
ret
Function at 0x180066590
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.180066b20
mov qword [rsp + 0x28], 0
cmp qword [0x1800ecfd8], 0
jne 0x1800665d8
cmp qword [0x1800ecfd0], 0
je 0x1800665d8
mov rax, qword [0x1800ecfd0]
mov qword [0x1800ecfd8], rax
cmp qword [0x1800ecfd8], 0
je 0x18006667e
mov rax, qword [0x1800ecfd8]
cmp qword [rax + 0x10], 0
je 0x18006667e
mov rax, qword [0x1800ecfd8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18006667e
mov rax, qword [0x1800ecfd8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18006667e
mov rax, qword [0x1800ecfd8]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x180066644
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x18006664b
xor eax, eax
jmp 0x1800667f9
mov rax, qword [0x1800ecfd8]
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 0x1800667f9
mov rax, qword [0x1800ecfd0]
mov qword [0x1800ecfd8], rax
jmp 0x1800666a0
mov rax, qword [0x1800ecfd8]
mov rax, qword [rax + 8]
mov qword [0x1800ecfd8], rax
cmp qword [0x1800ecfd8], 0
je 0x1800666ed
cmp qword [0x1800ecfd8], 0
je 0x1800666eb
mov rax, qword [0x1800ecfd8]
cmp qword [rax + 0x10], 0
je 0x1800666eb
mov rax, qword [0x1800ecfd8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1800666eb
mov rax, qword [0x1800ecfd8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1800666eb
jmp 0x18006661c
jmp 0x18006668e
mov rcx, qword [rsp + 0x60]
call fcn.180068770
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.180066800
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x1800667f7
mov rax, qword [rsp + 0x48]
mov qword [0x1800ecfd8], rax
mov rax, qword [0x1800ecfd8]
mov dword [rax], 0x52727464
mov rax, qword [0x1800ecfd8]
mov qword [rax + 0x10], 0
mov rax, qword [0x1800ecfd8]
mov rcx, qword [0x1800ecfd0]
mov qword [rax + 8], rcx
mov rax, qword [0x1800ecfd8]
mov qword [0x1800ecfd0], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x1800ecfd8]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x1800667a8
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x1800667e2
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 0x18006679e
mov rax, qword [0x1800ecfd8]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18006661c
xor eax, eax
add rsp, 0x58
ret
Function at 0x180067510
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 0x180067557
xor al, al
jmp 0x1800675f9
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 0x180067581
xor al, al
jmp 0x1800675f9
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 0x1800675f1
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 0x1800675f1
mov al, 1
jmp 0x1800675f9
jmp 0x1800675f7
xor al, al
add rsp, 0x78
ret

Function at 0x180067900
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1800ecfd0]
mov qword [rsp + 0x28], rax
jmp 0x180067920
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18006794f
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x18006794d
call sub.KERNEL32.dll_GetLastError
jmp 0x180067951
jmp 0x180067912
xor eax, eax
add rsp, 0x38
ret
Function at 0x180068010
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1800ecfe8], eax
je 0x18006802b
mov eax, 0x10dd
jmp 0x180068150
mov rax, qword [0x1800ed000]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800680d5
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 0x1800680a0
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x1800680a0
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.180066c60
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.18006a434
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x180068037
mov qword [0x1800ed000], 0
call fcn.1800676c0
mov rax, qword [0x1800ecff8]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x180068139
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.18006a434
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x1800680f1
mov qword [0x1800ecff8], 0
mov dword [0x1800ecfe8], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x180068680
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x1800ecfec], 0
je 0x18006869d
mov eax, dword [0x1800ecfec]
jmp 0x180068763
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x1800686b0
xor eax, eax
jmp 0x180068763
mov ecx, 0x10
call fcn.18006a080
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x18006871e
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x180068703
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.18006a434
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x1800ecfec], eax
mov qword [0x1800ecff0], 0
mov eax, dword [rsp + 0x20]
jmp 0x180068763
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x180068738
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x1800686d9
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x1800ecff8]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x1800ecff8], rax
xor eax, eax
add rsp, 0x48
ret

Function at 0x180069c20
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 0x180069c5a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x180069c5f
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 0x180069ca8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x18006f9d0]
cmp byte [rcx + rax], 0
je 0x180069ca8
dec r8
sub rdx, 1
jne 0x180069c8e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14000ae10
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
and dword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
mov r9d, 4
lea r8, str.ShowStoreBanner
mov dword [rsp + 0x28], r9d
lea rdx, str.SoftwareMicrosoftNotepad
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_1.dll_RegSetKeyValueW]
nop dword [rax + rax]
mov rcx, qword [0x140036130]
call qword [sym.imp.USER32.dll_DestroyWindow]
nop dword [rax + rax]
and qword [0x140036130], 0
call fcn.14000b4d0
add rsp, 0x38
ret

Function at 0x14000b790
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 8], ecx
mov r11, rsp
sub rsp, 0x48
lea rax, [r11 + 8]
mov dword [rsp + 0x50], 4
mov qword [r11 - 0x18], rax
lea r8, str.ShowStoreBanner
lea rax, [r11 + 0x10]
mov r9d, 0x10
mov qword [r11 - 0x20], rax
lea rdx, str.SoftwareMicrosoftNotepad
and qword [r11 - 0x28], 0
mov rcx, 0xffffffff80000001
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
jne 0x14000b7e9
cmp dword [rsp + 0x58], eax
je 0x14000b829
and qword [rsp + 0x28], 0
lea r8, [0x14000b840]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__beginthreadex]
nop dword [rax + rax]
test rax, rax
jne 0x14000b81a
mov eax, 0x80004005
jmp 0x14000b82b
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
xor eax, eax
add rsp, 0x48
ret
Function at 0x14000cdd4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x1400343f0]
xor rax, rsp
mov qword [rsp + 0x450], rax
and qword [rsp + 0x30], 0
xor r9d, r9d
mov ebx, dword [0x1400355b0]
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
nop dword [rax + rax]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14000cf0a
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, 0x400
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
jle 0x14000cefb
mov edi, dword [rsp + 0x44]
test edi, edi
je 0x14000cefb
mov ebx, dword [0x1400355b0]
cmp edi, 1
jbe 0x14000cefb
movzx eax, word [rsp + 0x50]
cmp eax, 0xbbef
je 0x14000cee9
cmp eax, 0xfeff
je 0x14000cec4
cmp eax, 0xfffe
je 0x14000cee2
or dword [rsp + 0x40], 0xffffffff
lea r8, [rsp + 0x40]
mov edx, edi
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_base_util_l1_1_0.dll_IsTextUnicode]
nop dword [rax + rax]
test eax, eax
je 0x14000cecb
cmp dword [rsp + 0x40], 2
jne 0x14000cec4
cmp edi, 0x64
jl 0x14000cecb
mov ebx, 2
jmp 0x14000cefb
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140023fd0
neg eax
sbb ebx, ebx
and ebx, 4
inc ebx
jmp 0x14000cefb
mov ebx, 3
jmp 0x14000cefb
cmp edi, 2
jbe 0x14000cefb
cmp byte [rsp + 0x52], 0xbf
mov eax, 4
cmove ebx, eax
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1400019d0
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140010a98
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x340]
sub rsp, 0x440
mov rax, qword [0x1400343f0]
xor rax, rsp
mov qword [rbp + 0x330], rax
mov edi, ecx
xor edx, edx
lea rcx, [rbp + 0x90]
mov r8d, 0x294
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea rcx, [rsp + 0x38]
mov ebx, 1
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetLocalTime]
nop dword [rax + rax]
mov ecx, 0x400
mov dword [rsp + 0x30], ebx
call fcn.140010c98
test eax, eax
je 0x140010b4d
lea r9d, [rbx + 1]
mov edx, 0x20001009
lea r8, [rsp + 0x30]
mov ecx, 0x400
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
nop dword [rax + rax]
mov eax, dword [rsp + 0x30]
cmp eax, ebx
jne 0x140010c6e
call qword [sym.imp.api_ms_win_core_localization_obsolete_l1_2_0.dll_GetUserDefaultUILanguage]
nop dword [rax + rax]
movzx ecx, ax
call fcn.140010c98
test eax, eax
jne 0x140010c85
mov ebx, 0x11
lea rax, [rbp - 0x10]
mov dword [rsp + 0x28], 0x50
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x38]
mov edx, ebx
mov ecx, 0x400
call qword [sym.imp.api_ms_win_core_datetime_l1_1_0.dll_GetDateFormatW]
nop dword [rax + rax]
xor r9d, r9d
mov dword [rsp + 0x28], 0x50
lea rax, [rsp + 0x50]
mov ecx, 0x400
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea edx, [r9 + 2]
call qword [sym.imp.api_ms_win_core_datetime_l1_1_0.dll_GetTimeFormatW]
nop dword [rax + rax]
mov ebx, 0x14a
test edi, edi
je 0x140010bc6
lea r8, [0x14002b3e0]
mov edx, ebx
lea rcx, [rbp + 0x90]
call fcn.140008484
lea r8, [rsp + 0x50]
mov rdx, rbx
lea rcx, [rbp + 0x90]
call fcn.140008484
lea r8, [0x14002b3e8]
mov rdx, rbx
lea rcx, [rbp + 0x90]
call fcn.140008484
lea r8, [rbp - 0x10]
mov rdx, rbx
lea rcx, [rbp + 0x90]
call fcn.140008484
test edi, edi
je 0x140010c1d
lea r8, [0x14002b3e0]
mov rdx, rbx
lea rcx, [rbp + 0x90]
call fcn.140008484
mov rcx, qword [0x1400365c8]
lea r9, [rbp + 0x90]
mov edx, 0xc2
mov r8d, 1
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
mov ecx, edi
call fcn.140023eb8
mov rcx, qword [rbp + 0x330]
xor rcx, rsp
call fcn.1400019d0
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
cmp eax, 0x17
ja 0x140010b48
mov ecx, 0x800540
bt ecx, eax
jae 0x140010b48
mov ebx, 0x21
jmp 0x140010b4d

Function at 0x140010c98
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1400343f0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r9d, 0x10
lea r8, [rsp + 0x20]
lea edx, [r9 + 0x48]
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
nop dword [rax + rax]
xor ecx, ecx
test eax, eax
je 0x140010cdd
mov eax, 0x800
test word [rsp + 0x2e], ax
je 0x140010cdd
mov ecx, 1
mov eax, ecx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400019d0
add rsp, 0x58
ret