joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400498ec
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14004991c
xor eax, eax
jmp 0x1400499df
mov rbp, rbx
cmp word [rax], si
je 0x140049941
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140049928
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140049924
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14004980c
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x140049982
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140049915
call fcn.1400452a0
mov rdi, rax
test rax, rax
jne 0x140049998
xor ecx, ecx
call fcn.1400400a0
jmp 0x140049977
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14004980c
test eax, eax
jne 0x1400499c9
mov rcx, rdi
call fcn.1400400a0
jmp 0x1400499d3
xor ecx, ecx
call fcn.1400400a0
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400499fc
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140049a83
mov rsi, rbx
cmp word [rax], bp
je 0x140049a42
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140049a2c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140049a28
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400452a0
mov rdi, rax
test rax, rax
je 0x140049a70
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140053cb0
mov rbp, rdi
xor ecx, ecx
call fcn.1400400a0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14004ced4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov dword [rsp + 0x30], esi
mov rbx, rcx
test rcx, rcx
je 0x14004cf47
cmp word [rcx], si
je 0x14004cf47
lea rdx, [0x1400df3f8]
call fcn.1400512b8
test eax, eax
je 0x14004cf47
lea rdx, [0x1400df410]
mov rcx, rbx
call fcn.1400512b8
test eax, eax
jne 0x14004cf3d
mov ecx, dword [rdi + 8]
lea r9d, [rsi + 2]
lea r8, [rsp + 0x30]
mov edx, 0x2000000b
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14004cf64
mov eax, dword [rsp + 0x30]
jmp 0x14004cf76
mov rcx, rbx
call fcn.14003f958
jmp 0x14004cf76
mov ecx, dword [rdi + 8]
lea r8, [rsp + 0x30]
mov r9d, 2
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x14004cf68
xor eax, eax
jmp 0x14004cf76
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x14004cf76
call qword [sym.imp.KERNEL32.dll_GetACP]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14004cf88
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ebp, edx
mov dword [rax + 8], ebx
mov edi, ecx
call fcn.14003fe6c
mov ecx, edi
lea r9d, [rbx + 2]
and ecx, 0x3ff
lea r8, [rsp + 0x30]
bts ecx, 0xa
mov edx, 0x20000001
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14004d02b
cmp edi, dword [rsp + 0x30]
je 0x14004d024
test ebp, ebp
je 0x14004d024
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x14004d000
sub dx, 0x61
cmp dx, 0x19
ja 0x14004d00c
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x14004cfed
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x14004d010
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x14004d02d
mov eax, 1
jmp 0x14004d02d
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140050fb8
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140039268
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140051042
cmp byte [rbp - 0x21], r15b
je 0x14005103d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140051078
call fcn.140041834
test eax, eax
jne 0x140051064
cmp byte [rbp - 0x21], r15b
je 0x14005105c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140051078
cmp byte [rbp - 0x21], r15b
je 0x140051075
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14003f63c
test eax, eax
jne 0x140051118
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140039268
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400510b7
cmp byte [rbp - 0x21], r15b
je 0x1400510ec
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400510ec
call fcn.140041834
test eax, eax
jne 0x1400510d8
cmp byte [rbp - 0x21], r15b
je 0x1400510d1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400510ec
cmp byte [rbp - 0x21], r15b
je 0x1400510e9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14003f63c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140051118
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14005111b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140051129
mov rcx, rdi
call fcn.1400400a0
cmp byte [rbp + 0x3f], r15b
je 0x140051138
mov rcx, qword [rbp + 0x27]
call fcn.1400400a0
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140052eec
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140045038
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140045038
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140053039
cmp rax, 0xffffffffffffffff
je 0x140053039
xor edi, edi
test rbp, rbp
jle 0x140052fe7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140040020
mov rbx, rax
test rax, rax
jne 0x140052f74
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140052fdd
mov edx, 0x8000
mov ecx, r14d
call fcn.14003ba98
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140043320
cmp eax, 0xffffffff
je 0x140052fbd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140052f84
mov edx, r15d
mov ecx, r14d
call fcn.14003ba98
jmp 0x140052fdd
cmp byte [rsi + 0x38], dil
je 0x140052fd4
cmp dword [rsi + 0x34], 5
jne 0x140052fd4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140052fdd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400400a0
jmp 0x14005304b
jns 0x14005304b
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140045038
cmp rax, 0xffffffffffffffff
jne 0x140053005
cmp byte [rsi + 0x30], dil
je 0x14005304b
jmp 0x140053041
mov ecx, r14d
call fcn.14004a84c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14005304b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14005304b
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140053046
mov edi, dword [rsi + 0x2c]
jmp 0x14005304b
mov edi, 0x16
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140045038
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140053870
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140053898
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140053898
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180002490
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x18001f040]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800025bb
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1800025b2
nop dword [rax]
cmp dword [rsp + 0x20], 0x10
jb 0x180002594
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180002594
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180002594
mov rdx, qword [rbx]
test rdx, rdx
jne 0x180002552
mov rcx, qword [0x180024b10]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x1800025b2
jmp 0x180002587
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180002587
mov rcx, qword [0x180024b10]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x1800025b2
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180002500
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x180002613
cmp dword [rbx + 0xc], esi
jbe 0x180002613
nop word [rax + rax]
mov r8, qword [rbx]
xor edx, edx
mov eax, esi
lea ecx, [rdx + 0x5a]
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18000260c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.1800022e0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x1800025d0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180014690
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180002640
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 [0x18001f040]
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 [0x180024af8]
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 0x1800026a9
mov eax, 0xa
jmp 0x1800026f6
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 0x1800026c5
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.180014690
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180002720
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x18001f040]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
cmp rdi, 0x40000000
jbe 0x18000276f
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x180024b60]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x1800027ad
cmp rsi, r14
jb 0x1800027a5
cmp rsi, r15
jae 0x1800027a5
cmp qword [rsi + 8], 0
jne 0x180002977
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180002790
mov qword [rsp + 0xc8], rbx
mov rbx, rdi
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0x90], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x180002842
nop dword [rax]
nop word [rax + rax]
mov ebp, dword [rsp + 0x78]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x180002839
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180002839
cmp dword [rsp + 0x40], 0x10000
je 0x1800028bb
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x180002839
sub rbx, rbp
cmp rbx, r14
jae 0x180002800
test rsi, rsi
jne 0x180002920
cmp rdi, r15
ja 0x18000295f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x78]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x18000295f
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18000295f
cmp dword [rsp + 0x40], 0x10000
je 0x1800028f1
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x38]
add rdi, qword [rsp + 0x20]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x180002872
jmp 0x18000295f
test rbx, rbx
je 0x180002839
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180002920
cmp rbx, r14
jae 0x1800027e0
jmp 0x180002842
test rdi, rdi
je 0x18000295f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180002920
cmp rdi, r15
jbe 0x180002850
jmp 0x18000295f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x180002930
mov rax, qword [0x180024b60]
mov qword [rsi], rax
mov qword [0x180024b60], rsi
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180014690
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x180003560
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r15
sub rsp, 0x40
xor r15d, r15d
mov rdi, rcx
mov ebx, r15d
xor eax, eax
mov esi, 1
lock cmpxchg dword [0x180024b08], esi
je 0x1800035a8
cmp rbx, 0x20
jae 0x180003591
xor ecx, ecx
jmp 0x180003593
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180024b08], esi
jne 0x180003587
cmp qword [0x180024b10], r15
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], r14
je 0x18000375d
mov ecx, dword [0x180024b04]
mov ebx, r15d
test rdi, rdi
jne 0x1800036a7
mov edi, r15d
test ecx, ecx
je 0x180003762
mov rax, qword [0x180024af8]
add rax, 0x20
test byte [rax], 2
je 0x1800035fb
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800035e7
jmp 0x180003762
cmp ebx, 0xffffffff
je 0x180003762
mov r8d, esi
lea rcx, [rsp + 0x20]
mov edx, 0xffffffff
call fcn.180002490
mov edx, dword [0x180024b04]
cmp ebx, edx
jae 0x18000364d
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x180024af8]
test byte [rcx + rax + 0x20], 2
jne 0x180003647
mov ecx, ebx
call fcn.180002640
mov edi, eax
test eax, eax
jne 0x18000364d
mov edx, dword [0x180024b04]
inc ebx
cmp ebx, edx
jb 0x180003620
mov r14, qword [rsp + 0x20]
test r14, r14
je 0x180003762
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180003742
mov rbx, r14
mov ebp, eax
nop dword [rax]
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 0x180003698
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 0x180003670
jmp 0x180003742
test ecx, ecx
je 0x1800036c4
mov r8, qword [0x180024af8]
mov rax, r8
cmp rdi, qword [rax]
je 0x1800036ce
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800036b5
mov edi, 4
jmp 0x180003762
cmp ebx, 0xffffffff
je 0x1800036c4
mov eax, ebx
imul rdx, rax, 0x38
test byte [rdx + r8 + 0x20], 2
jne 0x180003756
mov r8d, esi
lea rcx, [rsp + 0x30]
mov edx, ebx
call fcn.180002490
mov ecx, ebx
call fcn.180002640
mov r14, qword [rsp + 0x30]
mov edi, eax
test r14, r14
je 0x180003762
mov eax, dword [rsp + 0x3c]
test eax, eax
je 0x180003742
mov rbx, r14
mov ebp, eax
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 0x180003738
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 0x180003710
mov rcx, qword [0x180024b10]
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180003762
mov edi, 5
jmp 0x180003762
mov edi, 2
xchg dword [0x180024b08], r15d
mov r14, qword [rsp + 0x68]
mov eax, edi
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop rdi
pop rsi
ret
Function at 0x1800145e0
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 0x18001461a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x18001461f
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 0x180014668
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180016400]
cmp byte [rcx + rax], 0
je 0x180014668
dec r8
sub rdx, 1
jne 0x18001464e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140004118
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r13
push r14
sub rsp, 0x240
mov rax, qword [0x140050110]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov r9d, 1
mov ebx, edx
mov rsi, rcx
lea rdx, [rsp + 0x20]
lea r8d, [r9 + 0x25]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
or r13, 0xffffffffffffffff
lea rdi, [rsp + 0x20]
mov rcx, r13
lea rbp, [0x140056a00]
repne scasw ax, word [rdi]
lea rdx, [rsp + 0x20]
not rcx
lea r8d, [rcx - 1]
mov rcx, rbp
call fcn.140004a5c
lea r14d, [r13 + 0x5d]
mov rcx, rbp
mov edx, r14d
call fcn.140004384
lea rdx, [0x140042760]
xor eax, eax
mov rdi, rdx
mov rcx, r13
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rcx, rbp
call fcn.1400045b8
lea rdx, str.Shadow_Defender
xor eax, eax
mov rdi, rdx
mov rcx, r13
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rcx, rbp
call fcn.1400045b8
mov ebp, 0x104
lea rcx, [rsp + 0x20]
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
lea rdi, [rsp + 0x20]
mov rcx, r13
lea rdx, [rsp + 0x20]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [0x140056a08]
call fcn.140004a5c
lea rcx, [0x140056a08]
mov edx, r14d
call fcn.140004384
lea rcx, [rsp + 0x20]
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor eax, eax
lea rdi, [rsp + 0x20]
mov rcx, r13
lea rdx, [rsp + 0x20]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [0x140056a10]
call fcn.140004a5c
lea rcx, [0x140056a10]
mov edx, r14d
call fcn.140004384
lea rdx, [rsp + 0x20]
mov r8d, ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x20]
mov edx, r14d
call fcn.14001d488
xor ecx, ecx
cmp word [rax], cx
je 0x14000428c
mov word [rax], cx
xor eax, eax
lea rdi, [rsp + 0x20]
mov rcx, r13
repne scasw ax, word [rdi]
lea rdx, [rsp + 0x20]
not rcx
lea r8d, [rcx - 1]
lea rcx, [0x1400569f8]
call fcn.140004a5c
mov r9d, 1
lea rdx, [rsp + 0x20]
lea r8d, [r9 + 0x16]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
lea rdi, [rsp + 0x20]
mov rcx, r13
lea rdx, [rsp + 0x20]
repne scasw ax, word [rdi]
lea rdi, [0x140056a20]
not rcx
lea r8d, [rcx - 1]
mov rcx, rdi
call fcn.140004a5c
mov edx, r14d
mov rcx, rdi
call fcn.140004384
mov edx, r14d
mov rcx, rdi
call fcn.1400046b8
mov rdx, qword [0x1400569f0]
mov rcx, rdi
mov r8d, dword [rdx - 0x10]
call fcn.1400045b8
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov edx, ebx
mov rcx, rsi
call fcn.140002c1c
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14001cb20
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop rdi
ret