joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180025990
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
jmp 0x180025990
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov eax, 0x1070
call fcn.180001c12
sub rsp, rax
mov rax, qword [0x1802ed080]
xor rax, rsp
mov qword [rsp + 0x1060], rax
mov rsi, rdx
mov rbx, rcx
mov qword [rsp + 0x30], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.Downloader
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rbp, rax
test rax, rax
je 0x180025a22
cmp qword [rsi + 0x18], 0xf
jbe 0x1800259f2
mov rsi, qword [rsi]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x84000000
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rsi, rax
test rax, rax
jne 0x180025a2b
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [rbx + 0x18], dil
jmp 0x180025b08
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x30], edi
lea r9, [rsp + 0x30]
mov r8d, 0x1000
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x180025aa1
nop word [rax + rax]
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x180025a9c
mov r9d, eax
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x38]
call fcn.18000280b
lea r9, [rsp + 0x30]
mov r8d, 0x1000
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x180025a60
mov rdi, qword [rsp + 0x48]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x40]
cmp rcx, rax
jne 0x180025af9
mov byte [rbx + 0x18], 0
test rcx, rcx
je 0x180025b08
sub rdi, rcx
mov rax, rcx
cmp rdi, 0x1000
jb 0x180025aef
add rdi, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180025b2e
mov rdx, rdi
call fcn.18000452f
jmp 0x180025b08
mov qword [rbx], rcx
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rdi
mov byte [rbx + 0x18], 1
mov rax, rbx
mov rcx, qword [rsp + 0x1060]
xor rcx, rsp
call fcn.180002f7c
mov rbx, qword [rsp + 0x10a0]
add rsp, 0x1070
pop rdi
pop rsi
pop rbp
ret
call fcn.180002522
int3
Function at 0x18003d91c
Capabilities:
Parse pe header

Disassembly:
jmp 0x18003dc2c
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 0x18003d98b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18003d98b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18003d98b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18003d98b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18003d98b
cmp dword [rcx + 0x84], 0xe
jbe 0x18003d98b
cmp dword [rcx + 0xf8], 0
je 0x18003d98b
mov ecx, ebx
call fcn.18003daf4
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.18003d660
nop
cmp dword [rbp + 0x20], 0
je 0x18003d9d9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18003da14
int3
xor r8d, r8d
xor edx, edx
jmp 0x18003d91c

Function at 0x18003e0e8
Capabilities:
Create thread

Disassembly:
jmp 0x18003e0e8
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x18003e11f
call fcn.18000278e
mov dword [rax], 0x16
call fcn.18000169a
xor eax, eax
jmp 0x18003e1ad
mov rdx, r9
mov rcx, r8
call fcn.18003decc
mov rbx, rax
test rax, rax
je 0x18003e1aa
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x18003dc54]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x18003e197
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.180002324
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x18003e17e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x18003e18d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.180001208
jmp 0x18003e1aa
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x18003e1a7
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x18007f4f8
Capabilities:
Query environment variable

Disassembly:
jmp 0x18007f4f8
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 0x18007f528
xor eax, eax
jmp 0x18007f5eb
mov rbp, rbx
cmp word [rax], si
je 0x18007f54d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18007f534
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18007f530
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.1800040a2
movsxd r14, eax
test eax, eax
jne 0x18007f58b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18007f521
mov rcx, r14
call fcn.18000105a
mov rdi, rax
test rax, rax
jne 0x18007f5a4
xor ecx, ecx
call fcn.180001208
jmp 0x18007f580
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.1800040a2
test eax, eax
jne 0x18007f5d5
mov rcx, rdi
call fcn.180001208
jmp 0x18007f5df
xor ecx, ecx
call fcn.180001208
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 0x18007f64c
Capabilities:
Query environment variable

Disassembly:
jmp 0x18007f64c
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 0x18007f6d3
mov rsi, rbx
cmp word [rax], bp
je 0x18007f692
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x18007f67c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x18007f678
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.18000105a
mov rdi, rax
test rax, rax
je 0x18007f6c0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.180002f90
mov rbp, rdi
xor ecx, ecx
call fcn.180001208
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 0x180081f84
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180081f9a
mov al, 1
jmp 0x180081ffa
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180081fab
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180081ff8
mov ecx, dword [rcx + 0x18]
nop
call fcn.180005367
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180081ff8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180081ff8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180081ff8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180081ffa
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x180087160
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.180001e60
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x180087201
cmp ebx, dword [rsp + 0x30]
je 0x1800871fa
test esi, esi
je 0x1800871fa
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1800871d5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1800871e2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1800871bf
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1800871e6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x180087203
mov eax, 1
jmp 0x180087203
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18008fb04
Capabilities:
Set environment variable

Disassembly:
jmp 0x18008fb04
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.180002883
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x18008fb8e
cmp byte [rbp - 0x21], r15b
je 0x18008fb89
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x18008fbc4
call fcn.1800053df
test eax, eax
jne 0x18008fbb0
cmp byte [rbp - 0x21], r15b
je 0x18008fba8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x18008fbc4
cmp byte [rbp - 0x21], r15b
je 0x18008fbc1
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.1800056c8
test eax, eax
jne 0x18008fc64
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.180002883
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x18008fc03
cmp byte [rbp - 0x21], r15b
je 0x18008fc38
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x18008fc38
call fcn.1800053df
test eax, eax
jne 0x18008fc24
cmp byte [rbp - 0x21], r15b
je 0x18008fc1d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x18008fc38
cmp byte [rbp - 0x21], r15b
je 0x18008fc35
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.1800056c8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x18008fc64
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x18008fc67
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x18008fc75
mov rcx, rdi
call fcn.180001208
cmp byte [rbp + 0x3f], r15b
je 0x18008fc84
mov rcx, qword [rbp + 0x27]
call fcn.180001208
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 0x180095a9c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1802efdf0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x180095af3
cmp word [rdx], r13w
jne 0x180095af3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180095af8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180095c1d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180095c3e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180095b31
mov rdx, r9
mov word [rbx], cx
jmp 0x180095b58
cmp r9, r8
jae 0x180095b68
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x180095b12
jmp 0x180095c1d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180095c12
cmp dword [rsp + 0x80], esi
je 0x180095c12
lea r8, [0x1802efdf0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180095bea
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180095bba
mov word [rbx], r13w
jmp 0x180095c1a
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x180095bc7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180095c1a
cmp word [rsp + 0x70], r13w
jne 0x180095bf7
cmp rbx, r14
je 0x180095bb4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180001aeb
cmp word [rsp + 0x70], r13w
je 0x180095c1d
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1802efdf0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180095c17
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180095c1d
Function at 0x1400010d2
Capabilities:
Execute anti-debugging instructions

Disassembly:
xor eax, eax
cpuid
mov eax, 1
cpuid
movabs r9, 0xb2d05e00
cpuid
rdtsc
shl rdx, 0x20
or rax, rdx
mov rcx, rax
fldpi
frndint
rdtsc
shl rdx, 0x20
or rax, rdx
sub rax, rcx
cmp rax, r9
jb 0x1400010f5
push rbp
mov rbp, rsp
sub rsp, 8
mov r10, 0xa
mov rcx, 0x12345678
dec rcx
xor r9, r9
mov rax, rcx
jne 0x140001120
xor rax, rax
mov rax, rbx
add rax, rdx
nop
nop
nop
dec r10
xor r11, r11
jne 0x140001119
xor rax, rax
mov rax, 0xa
dec rax
nop
nop
add rsp, 8
pop rbp
ret

Function at 0x140002b26
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub rsp, 0xa0
mov rcx, 0
mov rdx, 0xa694
mov r8, 0x1000
lea r9, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x140002b77
mov rbx, rax
call 0x140002b5a
nop
pop rsi
mov r9, rax
add rsi, 0x4ff99
mov rcx, 0xa694
mov r8, rcx
lea rax, [rsi]
mov dl, byte [rax]
mov byte [rbx], dl
add rsi, 1
add rbx, 1
add rax, 1
dec r8
jne 0x140002b73
call r9
mov ecx, 1
ret

Function at 0x140004690
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x248
call qword [sym.imp.KERNEL32.dll_GetVersion]
mov eax, eax
and rax, 0xffff
movzx eax, ax
and rax, 0xff
movzx eax, al
cmp eax, 6
jl 0x1400046c4
xor eax, eax
jmp 0x140004702
lea r8, [rsp + 0x20]
mov rdx, qword [rsp + 0x258]
mov rcx, qword [rsp + 0x250]
call fcn.140008530
test rax, rax
jne 0x1400046f0
mov dword [rsp + 0x230], 1
jmp 0x1400046fb
mov dword [rsp + 0x230], 0
mov eax, dword [rsp + 0x230]
add rsp, 0x248
ret
Function at 0x140007710
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp qword [rsp + 0x48], 0
je 0x1400077ce
mov r9d, 2
lea r8, [rsp + 0x20]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.140006980
test eax, eax
je 0x1400077ce
movzx eax, word [rsp + 0x20]
cmp eax, 0x5a4d
jne 0x1400077ce
mov rdx, qword [rsp + 0x48]
add rdx, 0x3c
mov r9d, 4
lea r8, [rsp + 0x24]
mov rcx, qword [rsp + 0x40]
call fcn.140006980
test eax, eax
je 0x1400077ce
mov eax, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x48]
add rdx, rax
mov r9d, 0x108
mov r8, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call fcn.140006980
test eax, eax
je 0x1400077ce
mov rax, qword [rsp + 0x50]
cmp dword [rax], 0x4550
jne 0x1400077ce
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x16]
and eax, 0x2000
test eax, eax
jne 0x1400077ce
mov dword [rsp + 0x2c], 1
jmp 0x1400077d6
mov dword [rsp + 0x2c], 0
movzx eax, byte [rsp + 0x2c]
mov byte [rsp + 0x28], al
movzx eax, byte [rsp + 0x28]
test eax, eax
je 0x1400077fc
mov rcx, qword [rsp + 0x50]
add rcx, 0x88
mov rax, qword [rsp + 0x58]
mov qword [rax], rcx
mov al, byte [rsp + 0x28]
add rsp, 0x38
ret
Function at 0x140007810
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x40], rsp
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.1400079e0
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400079b7
mov edx, 0x10000
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x28], rax
mov r8d, 0x8000
mov rdx, qword [rsp + 0x28]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x14000788e
mov dword [rsp + 0x30], 0
lea rdx, [0x1400079be]
mov rcx, qword [rsp + 0x40]
call fcn.140026e18
mov r9b, 1
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.1400079e0
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400079ac
mov r8d, 0x8000
mov rdx, qword [rsp + 0x28]
mov rcx, qword [0x140051e60]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x1400078eb
mov dword [rsp + 0x34], 0
lea rdx, [0x1400079c4]
mov rcx, qword [rsp + 0x40]
call fcn.140026e18
mov r9b, 1
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.1400079e0
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400079ac
mov rdx, qword [rsp + 0x28]
mov ecx, 0x8000
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x140007940
mov dword [rsp + 0x38], 0
lea rdx, [0x1400079ca]
mov rcx, qword [rsp + 0x40]
call fcn.140026e18
xor r9d, r9d
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.1400079e0
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400079ac
mov edx, 0x8000
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x140007991
mov dword [rsp + 0x3c], 0
lea rdx, [0x1400079d0]
mov rcx, qword [rsp + 0x40]
call fcn.140026e18
xor r9d, r9d
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.1400079e0
mov byte [rsp + 0x20], al
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LocalFree]
movzx eax, byte [rsp + 0x20]
jmp 0x1400079d4
add rsp, 0x58
ret
Function at 0x1400079e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov byte [rsp + 0x20], r9b
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x248
mov byte [rsp + 0x230], 0
movzx eax, byte [rsp + 0x268]
test eax, eax
je 0x140007a27
cmp qword [rsp + 0x260], 0
je 0x140007a27
mov rcx, qword [rsp + 0x260]
call fcn.140007ab0
mov r8, qword [rsp + 0x250]
mov rdx, qword [rsp + 0x260]
lea rcx, [rsp + 0x20]
call fcn.140007b20
lea rcx, [rsp + 0x20]
call fcn.14002b1e0
cmp rax, 6
jbe 0x140007a99
movzx eax, word [rsp + 0x22]
cmp eax, 0x3a
je 0x140007a6f
movzx eax, word [rsp + 0x20]
cmp eax, 0x5c
jne 0x140007a99
movzx eax, word [rsp + 0x22]
cmp eax, 0x5c
jne 0x140007a99
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140007a99
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x258]
call fcn.140013c30
mov byte [rsp + 0x230], 1
mov al, byte [rsp + 0x230]
add rsp, 0x248
ret
Function at 0x140007de0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x88
mov qword [rsp + 0x30], 0
cmp dword [rsp + 0x90], 0
jbe 0x140007ff3
cmp qword [rsp + 0x98], 0
jne 0x140007e25
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
cmp qword [rsp + 0xa0], 0
je 0x140007eff
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x38], rax
mov r9d, 0x30
lea r8, [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp rax, 0x30
jne 0x140007efa
cmp dword [rsp + 0x60], 0x10000
jne 0x140007ebd
mov r8d, dword [rsp + 0x90]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x2000
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140007eb4
jmp 0x140007efa
mov qword [rsp + 0x58], 0x10000
cmp qword [rsp + 0x58], 0x10000
jae 0x140007ed3
mov qword [rsp + 0x58], 0x10000
jmp 0x140007ee3
mov rax, qword [rsp + 0x58]
and rax, 0xffffffffffff0000
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x38]
add rax, rcx
mov qword [rsp + 0x38], rax
jmp 0x140007e4a
jmp 0x140007fc5
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp qword [rsp + 0x98], rax
je 0x140007f20
mov rcx, qword [rsp + 0x98]
call fcn.14000acd0
test eax, eax
je 0x140007f31
movabs rax, 0x7feffff0000
mov qword [rsp + 0x38], rax
jmp 0x140007f3a
mov qword [rsp + 0x38], 0x71af0000
mov r9d, 0x30
lea r8, [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp rax, 0x30
jne 0x140007fc5
cmp dword [rsp + 0x60], 0x10000
jne 0x140007f98
mov r8d, dword [rsp + 0x90]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x2000
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x30], rax
jmp 0x140007fc5
mov rax, qword [rsp + 0x48]
cmp qword [rsp + 0x38], rax
jne 0x140007fb6
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov qword [rsp + 0x38], rax
jmp 0x140007fc0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x38], rax
jmp 0x140007f3a
mov r8d, dword [rsp + 0x90]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x30], rax
jmp 0x140007ffe
mov rax, qword [rsp + 0x30]
add rsp, 0x88
ret

Function at 0x140008140
Capabilities:
Allocate or change rwx memory

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov edx, dword [rsp + 0x48]
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
add rsp, 0x38
ret
Function at 0x140008400
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov dword [rsp + 0x38], 0
xor edx, edx
mov ecx, 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0xffffffffffffffff
je 0x14000851d
mov rcx, qword [rsp + 0xa0]
call fcn.140008dc0
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x40], 0x1c
cmp dword [rsp + 0x60], 0
je 0x140008512
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x140008512
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x4c], eax
jne 0x1400084fb
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov ecx, 0x48
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x1400084f9
mov rcx, qword [rsp + 0x68]
call fcn.1400082d0
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x70], 0
je 0x1400084f9
mov rdx, qword [rsp + 0x70]
add rdx, 0x30
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rsp + 0x80]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1400084f9
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x38], eax
jmp 0x140008512
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x14000846c
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x38]
add rsp, 0x98
ret