joyce8/EMBER2024-capa huggingface dataset:
Function at 0x28a2873f20
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x28a288f018]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
cmp edx, 1
jne 0x28a2874080
mov r8d, 0x104
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
js 0x28a287407c
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test rax, rax
je 0x28a2873f93
mov r8d, 6
lea rdx, str.dialer
mov rcx, rax
call fcn.28a287a610
test eax, eax
je 0x28a287407c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x28a287402e
movzx ecx, word [rbx + 0x40]
mov eax, 0x7268
sub cx, ax
cmp cx, 0xf
ja 0x28a2873fc7
mov eax, 0x8801
bt eax, ecx
jb 0x28a287407c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 4
mov r8d, 0x200
mov rcx, rax
mov rdx, rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x28a287402e
mov eax, 0x7277
mov word [rbx + 0x40], ax
lea rax, [0x28a2874750]
mov qword [rbx + 0x42], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, dword [rsp + 0x30]
mov r8d, 0x200
mov rcx, rax
mov rdx, rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp byte [0x28a2890cb9], 0
jne 0x28a2874089
cmp qword [0x28a2890c90], 0
mov byte [0x28a2890cb9], 1
mov qword [0x28a2890cf0], rdi
jne 0x28a2874075
xor eax, eax
lea r8, [0x28a2871ed0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x28a2890c90], rax
call fcn.28a2871f20
jmp 0x28a2874089
xor eax, eax
jmp 0x28a287408e
test edx, edx
jne 0x28a2874089
call fcn.28a28744f0
mov eax, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.28a28783e0
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
Function at 0x28a28740b0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov rax, qword gs:[0x60]
mov esi, edx
mov edi, ecx
xor ebp, ebp
mov r8, qword [rax + 0x18]
mov rbx, qword [r8 + 0x20]
mov r10, rbx
nop
mov r9, qword [r10 + 0x50]
test r9, r9
je 0x28a2874120
movzx ecx, word [r10 + 0x48]
mov eax, ebp
cmp bp, cx
jae 0x28a287411c
mov r11d, ecx
nop dword [rax + rax]
movsx edx, byte [r9]
lea r9, [r9 + 1]
ror eax, 0xd
cmp dl, 0x61
lea ecx, [rdx - 0x20]
cmovl ecx, edx
add eax, ecx
sub r11, 1
jne 0x28a2874100
cmp eax, edi
je 0x28a287413f
mov r10, qword [r10]
cmp r10, rbx
jne 0x28a28740e0
xor eax, eax
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
mov r11, qword [r10 + 0x20]
mov r9d, ebp
movsxd rax, dword [r11 + 0x3c]
mov edi, dword [rax + r11 + 0x88]
add rdi, r11
mov r8d, dword [rdi + 0x20]
mov r10d, dword [rdi + 0x24]
add r8, r11
mov ebx, dword [rdi + 0x18]
add r10, r11
test ebx, ebx
je 0x28a2874128
nop word [rax + rax]
mov edx, dword [r8]
mov ecx, ebp
add rdx, r11
movzx eax, byte [rdx]
test al, al
je 0x28a2874193
nop
ror ecx, 0xd
lea rdx, [rdx + 1]
movsx eax, al
add ecx, eax
movzx eax, byte [rdx]
test al, al
jne 0x28a2874180
cmp ecx, esi
je 0x28a28741ac
inc r9d
add r8, 4
add r10, 2
cmp r9d, ebx
jb 0x28a2874170
jmp 0x28a2874128
mov ecx, dword [rdi + 0x1c]
movzx edx, word [r10]
add rcx, r11
mov eax, dword [rcx + rdx*4]
add rax, r11
jmp 0x28a287412a
Function at 0x28a28744f0
Capabilities:
Terminate thread

Disassembly:
sub rsp, 0x48
mov rax, qword [0x28a288f018]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp byte [0x28a2890cb9], 0
je 0x28a287473a
xor ecx, ecx
mov qword [rsp + 0x40], rbx
mov byte [0x28a2890cb9], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x28a2874596
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 4
mov r8d, 0x200
mov rcx, rax
mov rdx, rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x28a2874596
mov eax, 0x1f0e
mov word [rbx + 0x40], ax
movabs rax, 0xb821cd09b4000eba
mov qword [rbx + 0x42], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, dword [rsp + 0x30]
mov r8d, 0x200
mov rcx, rax
mov rdx, rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, qword [0x28a2890c90]
mov rbx, qword [rsp + 0x40]
test rcx, rcx
je 0x28a28745ba
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov qword [0x28a2890c90], 0
cmp byte [0x28a2890cb8], 0
je 0x28a287473a
mov byte [0x28a2890cb8], 0
call fcn.28a28769c0
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.28a2876ee0
mov rax, qword [0x28a2890cb0]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x28a2874603
lea rdx, [0x28a2872260]
lea rcx, [rsp + 0x30]
call fcn.28a2876620
mov rax, qword [0x28a2890c98]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x28a2874625
lea rdx, [0x28a28724f0]
lea rcx, [rsp + 0x30]
call fcn.28a2876620
mov rax, qword [0x28a2890ce8]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x28a2874647
lea rdx, [0x28a2872630]
lea rcx, [rsp + 0x30]
call fcn.28a2876620
mov rax, qword [0x28a2890ca8]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x28a2874669
lea rdx, [0x28a2872a10]
lea rcx, [rsp + 0x30]
call fcn.28a2876620
mov rax, qword [0x28a2890ca0]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x28a287468b
lea rdx, [0x28a2873030]
lea rcx, [rsp + 0x30]
call fcn.28a2876620
mov rax, qword [0x28a2890cc0]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x28a28746ad
lea rdx, [0x28a2873120]
lea rcx, [rsp + 0x30]
call fcn.28a2876620
mov rax, qword [0x28a2890cc8]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x28a28746cf
lea rdx, [0x28a2873210]
lea rcx, [rsp + 0x30]
call fcn.28a2876620
mov rax, qword [0x28a2890cd0]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x28a28746f1
lea rdx, [0x28a28732a0]
lea rcx, [rsp + 0x30]
call fcn.28a2876620
mov rax, qword [0x28a2890cd8]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x28a2874713
lea rdx, [0x28a2873330]
lea rcx, [rsp + 0x30]
call fcn.28a2876620
mov rax, qword [0x28a2890ce0]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x28a2874735
lea rdx, [0x28a28733c0]
lea rcx, [rsp + 0x30]
call fcn.28a2876620
call fcn.28a2876a30
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.28a28783e0
add rsp, 0x48
ret
Function at 0x28a28748f0
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.28a2874b40
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x28a2874a0a
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x28a2874954
mov rax, qword [0x28a288f008]
cmp qword [rsp + 0x20], rax
ja 0x28a2874954
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x28a2874916
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.28a2879890
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x28a2874985
jmp 0x28a2874a0a
cmp dword [rsp + 0x50], 0x10000
jne 0x28a28749ed
cmp qword [rsp + 0x48], 0x10000
jb 0x28a28749ed
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 0x28a28749cb
mov rax, qword [rsp + 0x28]
jmp 0x28a2874a0c
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x28a28749db
xor eax, eax
jmp 0x28a2874a0c
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x28a2874a05
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.28a2874b40
mov qword [rsp + 0x20], rax
jmp 0x28a2874916
xor eax, eax
add rsp, 0x68
ret

Function at 0x28a2874a20
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.28a2874b80
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x28a2874b36
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x28a2874a7b
mov rax, qword [0x28a288f008]
cmp qword [rsp + 0x20], rax
ja 0x28a2874a7b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x28a2874a3d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.28a2879890
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x28a2874aac
jmp 0x28a2874b36
cmp dword [rsp + 0x50], 0x10000
jne 0x28a2874b14
cmp qword [rsp + 0x48], 0x10000
jb 0x28a2874b14
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 0x28a2874af2
mov rax, qword [rsp + 0x28]
jmp 0x28a2874b38
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x28a2874b02
xor eax, eax
jmp 0x28a2874b38
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x28a2874b31
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.28a2874b80
mov qword [rsp + 0x20], rax
jmp 0x28a2874a3d
xor eax, eax
add rsp, 0x68
ret
Function at 0x28a2874bd0
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.28a2875160
mov qword [rsp + 0x28], 0
cmp qword [0x28a288faa8], 0
jne 0x28a2874c18
cmp qword [0x28a288faa0], 0
je 0x28a2874c18
mov rax, qword [0x28a288faa0]
mov qword [0x28a288faa8], rax
cmp qword [0x28a288faa8], 0
je 0x28a2874cbe
mov rax, qword [0x28a288faa8]
cmp qword [rax + 0x10], 0
je 0x28a2874cbe
mov rax, qword [0x28a288faa8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x28a2874cbe
mov rax, qword [0x28a288faa8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x28a2874cbe
mov rax, qword [0x28a288faa8]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x28a2874c84
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x28a2874c8b
xor eax, eax
jmp 0x28a2874e39
mov rax, qword [0x28a288faa8]
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.28a2879890
mov rax, qword [rsp + 0x28]
jmp 0x28a2874e39
mov rax, qword [0x28a288faa0]
mov qword [0x28a288faa8], rax
jmp 0x28a2874ce0
mov rax, qword [0x28a288faa8]
mov rax, qword [rax + 8]
mov qword [0x28a288faa8], rax
cmp qword [0x28a288faa8], 0
je 0x28a2874d2d
cmp qword [0x28a288faa8], 0
je 0x28a2874d2b
mov rax, qword [0x28a288faa8]
cmp qword [rax + 0x10], 0
je 0x28a2874d2b
mov rax, qword [0x28a288faa8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x28a2874d2b
mov rax, qword [0x28a288faa8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x28a2874d2b
jmp 0x28a2874c5c
jmp 0x28a2874cce
mov rcx, qword [rsp + 0x60]
call fcn.28a2876fd0
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.28a2874e40
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x28a2874e37
mov rax, qword [rsp + 0x48]
mov qword [0x28a288faa8], rax
mov rax, qword [0x28a288faa8]
mov dword [rax], 0x52727464
mov rax, qword [0x28a288faa8]
mov qword [rax + 0x10], 0
mov rax, qword [0x28a288faa8]
mov rcx, qword [0x28a288faa0]
mov qword [rax + 8], rcx
mov rax, qword [0x28a288faa8]
mov qword [0x28a288faa0], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x28a288faa8]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x28a2874de8
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x28a2874e22
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 0x28a2874dde
mov rax, qword [0x28a288faa8]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x28a2874c5c
xor eax, eax
add rsp, 0x58
ret
Function at 0x28a2875b50
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 0x28a2875b97
xor al, al
jmp 0x28a2875c39
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 0x28a2875bc1
xor al, al
jmp 0x28a2875c39
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 0x28a2875c31
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 0x28a2875c31
mov al, 1
jmp 0x28a2875c39
jmp 0x28a2875c37
xor al, al
add rsp, 0x78
ret

Function at 0x28a2875f40
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x28a288faa0]
mov qword [rsp + 0x28], rax
jmp 0x28a2875f60
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x28a2875f8f
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x28a2875f8d
call sub.KERNEL32.dll_GetLastError
jmp 0x28a2875f91
jmp 0x28a2875f52
xor eax, eax
add rsp, 0x38
ret
Function at 0x28a2876620
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 [0x28a288fab8], eax
je 0x28a287664d
mov eax, 0x10dd
jmp 0x28a2876866
cmp dword [0x28a288fabc], 0
je 0x28a2876661
mov eax, dword [0x28a288fabc]
jmp 0x28a2876866
cmp qword [rsp + 0x78], 0
jne 0x28a2876673
mov eax, 0x57
jmp 0x28a2876866
cmp qword [rsp + 0x70], 0
jne 0x28a2876685
mov eax, 6
jmp 0x28a2876866
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
jne 0x28a28766b7
mov dword [rsp + 0x20], 6
mov eax, dword [rsp + 0x20]
mov dword [0x28a288fabc], eax
mov rax, qword [rsp + 0x70]
mov qword [0x28a288fac0], rax
mov eax, dword [rsp + 0x20]
jmp 0x28a2876866
mov ecx, 0x30
call fcn.28a287840c
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x28a2876729
mov dword [rsp + 0x20], 8
mov eax, dword [rsp + 0x20]
mov dword [0x28a288fabc], eax
cmp qword [rsp + 0x30], 0
je 0x28a2876714
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x50]
call fcn.28a2878404
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x70]
mov qword [0x28a288fac0], rax
mov eax, dword [rsp + 0x20]
jmp 0x28a2876866
xor edx, edx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call fcn.28a28765f0
mov qword [rsp + 0x38], rax
xor edx, edx
mov rcx, qword [rsp + 0x78]
call fcn.28a28765f0
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 0x28a2876786
movsxd rax, dword [rsp + 0x24]
cmp rax, 0x1e
jbe 0x28a28767a3
mov dword [rsp + 0x20], 9
cmp dword [0x28a288fab0], 0
je 0x28a287679e
jmp 0x28a28766ea
jmp 0x28a28766e0
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x78]
cmp qword [rax + 0x50], rcx
je 0x28a28767d0
mov dword [rsp + 0x20], 9
cmp dword [0x28a288fab0], 0
je 0x28a28767cb
jmp 0x28a28766ea
jmp 0x28a28766e0
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 0x28a2876807
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x28a28766e0
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 [0x28a288fad0]
mov qword [rax], rcx
mov rax, qword [rsp + 0x30]
mov qword [0x28a288fad0], rax
xor eax, eax
add rsp, 0x68
ret
Function at 0x28a2876870
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x28a288fab8], eax
je 0x28a287688b
mov eax, 0x10dd
jmp 0x28a28769b0
mov rax, qword [0x28a288fad0]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x28a2876935
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 0x28a2876900
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x28a2876900
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.28a28752a0
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.28a2878404
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x28a2876897
mov qword [0x28a288fad0], 0
call fcn.28a2875d00
mov rax, qword [0x28a288fac8]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x28a2876999
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.28a2878404
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x28a2876951
mov qword [0x28a288fac8], 0
mov dword [0x28a288fab8], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x28a2876ee0
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x28a288fabc], 0
je 0x28a2876efd
mov eax, dword [0x28a288fabc]
jmp 0x28a2876fc3
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x28a2876f10
xor eax, eax
jmp 0x28a2876fc3
mov ecx, 0x10
call fcn.28a287840c
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x28a2876f7e
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x28a2876f63
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.28a2878404
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x28a288fabc], eax
mov qword [0x28a288fac0], 0
mov eax, dword [rsp + 0x20]
jmp 0x28a2876fc3
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x28a2876f98
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x28a2876f39
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x28a288fac8]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x28a288fac8], rax
xor eax, eax
add rsp, 0x48
ret

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

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x28a2870000], ax
jne 0x28a287902b
movsxd rcx, dword [0x28a287003c]
lea rdx, [0x28a2870000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x28a287902b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x28a287902b
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x28a2879027
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x28a2879021
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jae 0x28a2879021
test rdx, rdx
je 0x28a2879027
cmp dword [rdx + 0x24], 0
jge 0x28a287901d
xor al, al
jmp 0x28a2879031
mov al, 1
jmp 0x28a2879031
add rdx, 0x28
jmp 0x28a2878ff3
xor al, al
jmp 0x28a2879031
xor al, al
jmp 0x28a2879031
add rsp, 0x18
ret
Function at 0x14000f704
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
movsxd r10, dword [rcx + 0xc]
mov r9, rcx
movsxd r11, r8d
test r8d, r8d
jle 0x14000f75b
mov rsi, qword [rcx]
mov rbx, r10
movsxd rbp, dword [rcx + 8]
xor edi, edi
mov al, byte [rdi + rdx]
lea rcx, [rbx + 1]
xor byte [rbx + rsi], al
lea eax, [r10 + 1]
xor r10d, r10d
cmp rcx, rbp
cmovl r10d, eax
xor ebx, ebx
inc rdi
cmp rcx, rbp
cmovl rbx, rcx
cmp rdi, r11
jl 0x14000f732
add dword [r9 + 0x10], r8d
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov dword [r9 + 0xc], r10d
ret

Function at 0x14001d160
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, r9
mov ebp, r8d
mov esi, edx
mov rbx, rcx
cmp edx, 1
jge 0x14001d1b9
lea rax, [0x1400dbe54]
mov edi, 0xb
mov ecx, edi
mov qword [r11 - 0x18], rax
mov r9d, 0xfcd1
lea r8, str.database_corruption
lea rdx, str._s_at_line__d_of___.10s_
call fcn.14000ab30
jmp 0x14001d29f
cmp byte [rcx + 0x11], 0
je 0x14001d1cd
inc dword [rcx + 0x14]
cmp byte [rcx + 0x12], 0
jne 0x14001d1cd
call fcn.140018e68
mov rdi, qword [rbx + 8]
test ebp, ebp
je 0x14001d21f
mov rax, qword [rdi + 0x80]
test rax, rax
jne 0x14001d21f
mov ecx, dword [rdi + 0x30]
call fcn.14001079c
mov qword [rdi + 0x80], rax
test rax, rax
je 0x14001d218
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 8]
call qword [sym.imp.VCRUNTIME140.dll_memset]
add qword [rdi + 0x80], 4
mov rax, qword [rdi + 0x80]
test rax, rax
jne 0x14001d21f
mov edi, 7
jmp 0x14001d28b
cmp esi, 1
jne 0x14001d22d
mov eax, dword [rdi + 0x3c]
neg eax
sbb ecx, ecx
and esi, ecx
mov rcx, qword [rsp + 0x60]
test ebp, ebp
setne al
neg ebp
mov byte [rcx + 1], al
sbb al, al
not al
mov dword [rcx + 0x50], esi
and al, 2
mov byte [rcx + 0x58], 0xff
mov byte [rcx + 2], al
mov qword [rcx + 0x88], r14
mov qword [rcx + 8], rbx
mov qword [rcx + 0x10], rdi
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x14001d27e
cmp dword [rax + 0x50], esi
jne 0x14001d271
or byte [rax + 1], 0x20
or byte [rcx + 1], 0x20
mov rax, qword [rax + 0x18]
test rax, rax
jne 0x14001d264
mov rax, qword [rdi + 0x10]
mov qword [rcx + 0x18], rax
mov qword [rdi + 0x10], rcx
xor edi, edi
mov byte [rcx], 0
cmp byte [rbx + 0x11], 0
je 0x14001d29f
sub dword [rbx + 0x14], 1
jne 0x14001d29f
mov rcx, rbx
call fcn.140018e18
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, 0x30
pop r14
ret