joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009c1f0
Capabilities:
Get geographical location

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x40
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x40], rbx
mov qword [rbp + 0x48], rsi
mov qword [rbp + 0x50], rdi
mov rax, qword [0x1400e2e38]
xor rax, rbp
mov qword [rbp], rax
mov eax, dword [0x1400eb820]
mov r15, r9
mov r13d, r8d
test eax, eax
mov r14d, edx
mov rbx, rcx
jne 0x14009c271
lea edx, [rax + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14009c254
mov dword [0x1400eb820], 1
jmp 0x14009c276
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x14009c26b
mov dword [0x1400eb820], 2
jmp 0x14009c29b
mov eax, dword [0x1400eb820]
cmp eax, 1
jne 0x14009c28e
mov r9d, dword [rbp + 0x60]
mov r8, r15
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x14009c3a2
cmp eax, 2
je 0x14009c29b
test eax, eax
jne 0x14009c3a0
mov esi, dword [rbp + 0x68]
xor edi, edi
test esi, esi
jne 0x14009c2aa
mov rax, qword [rbx]
mov esi, dword [rax + 4]
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
movsxd r12, eax
je 0x14009c3a0
jle 0x14009c3a0
xor edx, edx
mov rax, 0xffffffffffffffe0
mov rcx, r12
div r12
cmp rax, 1
jb 0x14009c3a0
add rcx, 0x10
cmp rcx, 0x400
ja 0x14009c328
lea rax, [rcx + 0xf]
cmp rax, rcx
ja 0x14009c306
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1400a7480
sub rsp, rax
lea rbx, [rsp + 0x30]
test rbx, rbx
je 0x14009c3a0
mov dword [rbx], 0xcccc
jmp 0x14009c33b
call fcn.1400800c0
test rax, rax
mov rbx, rax
je 0x14009c33f
mov dword [rax], 0xdddd
add rbx, 0x10
test rbx, rbx
je 0x14009c3a0
mov r9d, r12d
mov r8, rbx
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x14009c38a
mov eax, dword [rbp + 0x60]
or r9d, 0xffffffff
mov r8, rbx
test eax, eax
lea edx, [r9 + 2]
mov ecx, esi
jne 0x14009c379
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
jmp 0x14009c382
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
cmp dword [rbx - 0x10], 0xdddd
lea rcx, [rbx - 0x10]
jne 0x14009c39c
call fcn.140080070
mov eax, edi
jmp 0x14009c3a2
xor eax, eax
mov rcx, qword [rbp]
xor rcx, rbp
call fcn.14007d3d0
mov rbx, qword [rbp + 0x40]
mov rsi, qword [rbp + 0x48]
mov rdi, qword [rbp + 0x50]
lea rsp, [rbp + 0x10]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14009c500
Capabilities:
Get geographical location

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x50
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x40], rbx
mov qword [rbp + 0x48], rsi
mov qword [rbp + 0x50], rdi
mov rax, qword [0x1400e2e38]
xor rax, rbp
mov qword [rbp], rax
mov eax, dword [0x1400eb824]
mov r15, r9
mov r13d, r8d
test eax, eax
mov r14d, edx
mov rbx, rcx
jne 0x14009c5b8
lea edx, [rax + 1]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14009c564
mov dword [0x1400eb824], 1
jmp 0x14009c5c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x14009c5b2
mov dword [0x1400eb824], 2
mov r9d, dword [rbp + 0x60]
mov r8, r15
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov rcx, qword [rbp]
xor rcx, rbp
call fcn.14007d3d0
mov rbx, qword [rbp + 0x40]
mov rsi, qword [rbp + 0x48]
mov rdi, qword [rbp + 0x50]
lea rsp, [rbp + 0x10]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov eax, dword [0x1400eb824]
cmp eax, 2
je 0x14009c579
test eax, eax
je 0x14009c579
cmp eax, 1
jne 0x14009c5ee
mov esi, dword [rbp + 0x68]
xor edi, edi
test esi, esi
jne 0x14009c5d5
mov rax, qword [rbx]
mov esi, dword [rax + 4]
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
movsxd r12, eax
jne 0x14009c5f2
xor eax, eax
jmp 0x14009c58c
jle 0x14009c5ee
xor edx, edx
mov rax, 0xffffffffffffffe0
div r12
cmp rax, 2
jb 0x14009c5ee
lea rcx, [r12 + r12 + 0x10]
cmp rcx, 0x400
ja 0x14009c645
lea rax, [rcx + 0xf]
cmp rax, rcx
ja 0x14009c627
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1400a7480
sub rsp, rax
lea rbx, [rsp + 0x40]
test rbx, rbx
je 0x14009c5ee
mov dword [rbx], 0xcccc
jmp 0x14009c658
call fcn.1400800c0
test rax, rax
mov rbx, rax
je 0x14009c65c
mov dword [rax], 0xdddd
add rbx, 0x10
test rbx, rbx
je 0x14009c5ee
mov r9d, r12d
mov r8, rbx
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14009c6af
mov eax, dword [rbp + 0x60]
or r9d, 0xffffffff
xor edx, edx
test eax, eax
mov qword [rsp + 0x38], rdi
mov r8, rbx
mov ecx, esi
mov qword [rsp + 0x30], rdi
jne 0x14009c69e
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
jmp 0x14009c6a7
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
cmp dword [rbx - 0x10], 0xdddd
lea rcx, [rbx - 0x10]
jne 0x14009c6c1
call fcn.140080070
mov eax, edi
jmp 0x14009c58c

Function at 0x14009e5f0
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1400e2e38]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x14009e637
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14007d3d0
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.14009f7f0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14007d3d0
add rsp, 0x38
ret
Function at 0x1400a0820
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r13
sub rsp, 0x20
mov rbp, rdx
xor edi, edi
xor edx, edx
lea r8d, [rdi + 1]
mov esi, ecx
call fcn.1400979f0
cmp rax, 0xffffffffffffffff
mov r13, rax
je 0x1400a09c4
lea r8d, [rdi + 2]
xor edx, edx
mov ecx, esi
call fcn.1400979f0
cmp rax, 0xffffffffffffffff
je 0x1400a09c4
mov qword [rsp + 0x40], rbx
mov rbx, rbp
mov qword [rsp + 0x50], r14
sub rbx, rax
test rbx, rbx
jle 0x1400a0943
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r14d, 0x1000
lea edx, [rdi + 8]
mov rcx, rax
mov r8, r14
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbp, rax
jne 0x1400a08c9
call fcn.14007f4d0
mov dword [rax], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
call fcn.14007f4d0
mov eax, dword [rax]
mov rbx, qword [rsp + 0x40]
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop rdi
pop rsi
ret
mov edx, 0x8000
mov ecx, esi
mov qword [rsp + 0x48], r12
call fcn.1400a0a90
mov r12d, eax
nop
mov r8d, ebx
cmp rbx, r14
mov rdx, rbp
cmovge r8d, r14d
mov ecx, esi
call fcn.140097bf0
cmp eax, 0xffffffff
je 0x1400a0905
cdqe
sub rbx, rax
test rbx, rbx
jg 0x1400a08e0
jmp 0x1400a091e
call fcn.14007f500
cmp dword [rax], 5
jne 0x1400a091a
call fcn.14007f4d0
mov dword [rax], SafeArrayGetDim
or rdi, 0xffffffffffffffff
mov edx, r12d
mov ecx, esi
call fcn.1400a0a90
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r12, qword [rsp + 0x48]
jmp 0x1400a099c
test rbx, rbx
jns 0x1400a09a6
xor r8d, r8d
mov rdx, rbp
mov ecx, esi
call fcn.1400979f0
cmp rax, 0xffffffffffffffff
je 0x1400a08aa
mov ecx, esi
call fcn.14009e0a0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb rdi, rdi
neg rdi
sub rdi, 1
cmp rdi, 0xffffffffffffffff
jne 0x1400a09a6
call fcn.14007f4d0
mov dword [rax], SafeArrayGetDim
call fcn.14007f500
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
cmp rdi, 0xffffffffffffffff
je 0x1400a08aa
xor r8d, r8d
mov rdx, r13
mov ecx, esi
call fcn.1400979f0
cmp rax, 0xffffffffffffffff
je 0x1400a08aa
xor eax, eax
jmp 0x1400a08b1
call fcn.14007f4d0
mov rbp, qword [rsp + 0x58]
mov eax, dword [rax]
add rsp, 0x20
pop r13
pop rdi
pop rsi
ret
Function at 0x1400a6b1c
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1400e2e38]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.140082240
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x140000000]
mov esi, 0x94
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call fcn.140082240
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x1400a6baf
cmp dword [rsp + 0x24], 5
jb 0x1400a6bc9
jmp 0x1400a6bc5
cmp dword [rsp + 0x30], esi
jne 0x1400a6bc9
cmp dword [rsp + 0x24], 4
ja 0x1400a6bc5
jne 0x1400a6bc9
cmp dword [rsp + 0x28], 0
jbe 0x1400a6bc9
mov byte [rbx + 0x18], sil
lea rax, [0x1400b5280]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.1400a69dc
movzx ecx, byte [0x1400ecb58]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x1400ecb58], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14007d3d0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140004884
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.140012b50
mov r15, qword [0x140020514]
cmp r15, 1
jne 0x140004953
push qword [0x140020604]
pop rcx
call fcn.14000dd04
mov r15, rax
and r15, r15
jle 0x1400048e9
mov rcx, qword [0x140020604]
call fcn.14000dd0c
mov rcx, qword [0x140020604]
call fcn.14000dd20
or rax, rax
je 0x1400048e9
mov rbp, qword [0x14002060c]
push qword [rbp + 0x10]
pop rcx
call fcn.14000e1bc
jmp 0x1400048c6
push qword [0x1400205f4]
pop rcx
call fcn.14000dd04
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x140004953
push 5
push 0
push 1
push qword [0x1400205f4]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009060
mov rcx, qword [0x1400205f4]
call fcn.14000dd0c
mov rcx, qword [0x1400205f4]
call fcn.14000dd20
or rax, rax
je 0x140004953
mov rbp, qword [0x1400205fc]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x140004930
mov rax, 1
jmp 0x14000495f
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140006b38
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001f190]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021210]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020640]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020640]
call fcn.1400123b8
lea rcx, [0x140021210]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sbb dword [rbp - 0x45], edx
jmp 0x14003f6c4
invalid
invalid
out dx, al
invalid
or dword [rdx + 0x69], ebp
std
mov al, cl
outsb dx, byte [rsi]
clc
out 0x20, al
cld
loope case.0x140007389.0
invalid
retf 0x8d57
xchg esp, eax
jb 0x14003f6f9
invalid
invalid
invalid
invalid
cmp eax, 0xb74134fa
push rdx
xor al, 0x41
mov bh, 0x52
test dword [rax - 0x67b33a8f], 0xfdc86847
lahf
invalid
Function at 0x1400014d0
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.140001720
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x1400015eb
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x140001534
mov rax, qword [0x140026008]
cmp qword [rsp + 0x20], rax
ja 0x140001534
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1400014f6
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1400192c0
nop
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x140001566
jmp 0x1400015eb
cmp dword [rsp + 0x50], 0x10000
jne 0x1400015ce
cmp qword [rsp + 0x48], 0x10000
jb 0x1400015ce
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 0x1400015ac
mov rax, qword [rsp + 0x28]
jmp 0x1400015ed
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1400015bc
xor eax, eax
jmp 0x1400015ed
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1400015e6
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.140001720
mov qword [rsp + 0x20], rax
jmp 0x1400014f6
xor eax, eax
add rsp, 0x68
ret

Function at 0x140001600
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.140001760
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x140001717
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x14000165b
mov rax, qword [0x140026008]
cmp qword [rsp + 0x20], rax
ja 0x14000165b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x14000161d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.1400192c0
nop
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x14000168d
jmp 0x140001717
cmp dword [rsp + 0x50], 0x10000
jne 0x1400016f5
cmp qword [rsp + 0x48], 0x10000
jb 0x1400016f5
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 0x1400016d3
mov rax, qword [rsp + 0x28]
jmp 0x140001719
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1400016e3
xor eax, eax
jmp 0x140001719
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x140001712
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.140001760
mov qword [rsp + 0x20], rax
jmp 0x14000161d
xor eax, eax
add rsp, 0x68
ret
Function at 0x1400017b0
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.140001d40
mov qword [rsp + 0x28], 0
cmp qword [0x140026ba8], 0
jne 0x1400017f8
cmp qword [0x140026ba0], 0
je 0x1400017f8
mov rax, qword [0x140026ba0]
mov qword [0x140026ba8], rax
cmp qword [0x140026ba8], 0
je 0x14000189e
mov rax, qword [0x140026ba8]
cmp qword [rax + 0x10], 0
je 0x14000189e
mov rax, qword [0x140026ba8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x14000189e
mov rax, qword [0x140026ba8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x14000189e
mov rax, qword [0x140026ba8]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x140001864
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x14000186b
xor eax, eax
jmp 0x140001a15
mov rax, qword [0x140026ba8]
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 fcn.1400192c0
mov rax, qword [rsp + 0x28]
jmp 0x140001a15
mov rax, qword [0x140026ba0]
mov qword [0x140026ba8], rax
jmp 0x1400018c0
mov rax, qword [0x140026ba8]
mov rax, qword [rax + 8]
mov qword [0x140026ba8], rax
cmp qword [0x140026ba8], 0
je 0x14000190d
cmp qword [0x140026ba8], 0
je 0x14000190b
mov rax, qword [0x140026ba8]
cmp qword [rax + 0x10], 0
je 0x14000190b
mov rax, qword [0x140026ba8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x14000190b
mov rax, qword [0x140026ba8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x14000190b
jmp 0x14000183c
jmp 0x1400018ae
mov rax, qword [rsp + 0x60]
and rax, 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.140001a20
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140001a13
mov rax, qword [rsp + 0x48]
mov qword [0x140026ba8], rax
mov rax, qword [0x140026ba8]
mov dword [rax], 0x52727464
mov rax, qword [0x140026ba8]
mov qword [rax + 0x10], 0
mov rax, qword [0x140026ba8]
mov rcx, qword [0x140026ba0]
mov qword [rax + 8], rcx
mov rax, qword [0x140026ba8]
mov qword [0x140026ba0], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x140026ba8]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x1400019c4
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x1400019fe
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 0x1400019ba
mov rax, qword [0x140026ba8]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x14000183c
xor eax, eax
add rsp, 0x58
ret
Function at 0x140002730
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 0x140002777
xor al, al
jmp 0x140002819
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 0x1400027a1
xor al, al
jmp 0x140002819
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 0x140002811
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 0x140002811
mov al, 1
jmp 0x140002819
jmp 0x140002817
xor al, al
add rsp, 0x78
ret

Function at 0x140002b20
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140026ba0]
mov qword [rsp + 0x28], rax
jmp 0x140002b40
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140002b6f
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x140002b6d
call sub.KERNEL32.dll_GetLastError
jmp 0x140002b71
jmp 0x140002b32
xor eax, eax
add rsp, 0x38
ret
Function at 0x140003240
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x20], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x140026bb8], eax
je 0x14000326d
mov eax, 0x10dd
jmp 0x140003487
cmp dword [0x140026bbc], 0
je 0x140003281
mov eax, dword [0x140026bbc]
jmp 0x140003487
cmp qword [rsp + 0x78], 0
jne 0x140003293
mov eax, 0x57
jmp 0x140003487
cmp qword [rsp + 0x70], 0
jne 0x1400032a5
mov eax, 6
jmp 0x140003487
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
jne 0x1400032d7
mov dword [rsp + 0x20], 6
mov eax, dword [rsp + 0x20]
mov dword [0x140026bbc], eax
mov rax, qword [rsp + 0x70]
mov qword [0x140026bc0], rax
mov eax, dword [rsp + 0x20]
jmp 0x140003487
mov ecx, 0x30
call fcn.140005314
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x14000334a
mov dword [rsp + 0x20], 8
mov eax, dword [rsp + 0x20]
mov dword [0x140026bbc], eax
cmp qword [rsp + 0x30], 0
je 0x140003335
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x50]
call fcn.140005350
nop
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x70]
mov qword [0x140026bc0], rax
mov eax, dword [rsp + 0x20]
jmp 0x140003487
xor edx, edx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call fcn.140003210
mov qword [rsp + 0x38], rax
xor edx, edx
mov rcx, qword [rsp + 0x78]
call fcn.140003210
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + 0x3e]
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x48]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp dword [rsp + 0x24], 0
je 0x1400033a7
movsxd rax, dword [rsp + 0x24]
cmp rax, 0x1e
jbe 0x1400033c4
mov dword [rsp + 0x20], 9
cmp dword [0x140026bb0], 0
je 0x1400033bf
jmp 0x14000330a
jmp 0x140003300
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x78]
cmp qword [rax + 0x50], rcx
je 0x1400033f1
mov dword [rsp + 0x20], 9
cmp dword [0x140026bb0], 0
je 0x1400033ec
jmp 0x14000330a
jmp 0x140003300
mov dword [rsp + 0x28], 0
movsxd rax, dword [rsp + 0x24]
lea r9, [rsp + 0x28]
mov r8d, 0x40
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x140003428
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x140003300
mov rax, qword [rsp + 0x30]
mov dword [rax + 8], 1
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0x28], ecx
mov rax, qword [rsp + 0x30]
mov rcx, qword [0x140026bd0]
mov qword [rax], rcx
mov rax, qword [rsp + 0x30]
mov qword [0x140026bd0], rax
xor eax, eax
add rsp, 0x68
ret
Function at 0x1400034f0
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x140026bb8], eax
je 0x14000350b
mov eax, 0x10dd
jmp 0x140003634
mov rax, qword [0x140026bd0]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1400035b7
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
nop
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x140003581
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x140003581
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.140001e80
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.140005350
nop
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x140003517
mov qword [0x140026bd0], 0
call fcn.1400028e0
nop
mov rax, qword [0x140026bc8]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14000361d
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.140005350
nop
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x1400035d4
mov qword [0x140026bc8], 0
mov dword [0x140026bb8], 0
xor eax, eax
add rsp, 0x68
ret