joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006d370
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x1400e6010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rax, qword [rcx]
mov r13, r8
movsxd r10, edx
mov r12, rcx
shl r10, 5
mov r15d, 1
mov qword [rsp + 0x38], r9
mov rdx, qword [rax + 0x20]
mov rsi, qword [r10 + rdx]
nop dword [rax]
nop word [rax + rax]
mov r9d, r15d
lea r8, str.sqlite_stat_d
lea rdx, [rsp + 0x40]
mov ecx, 0x18
call fcn.140018ef0
mov rbp, qword [r12]
lea rdi, [rsp + 0x40]
lea r14, [rbp + 0x20]
mov r11, r14
nop dword [rax]
xor ebx, ebx
cmp dword [rbp + 0x28], ebx
jle 0x14006d4b9
nop dword [rax + rax]
mov eax, ebx
xor eax, 1
cmp ebx, 2
cmovge eax, ebx
movsxd r10, eax
test rsi, rsi
je 0x14006d480
mov rcx, qword [r11]
lea r14, [0x1400cd490]
movzx r8d, byte [rsi]
mov rdx, r10
shl rdx, 5
mov rax, rsi
mov r9, qword [rdx + rcx]
lea rcx, [0x1400cd490]
movzx edx, byte [r8 + rcx]
movzx ecx, byte [r9]
movzx ecx, byte [rcx + r14]
lea r14, [rbp + 0x20]
cmp edx, ecx
jne 0x14006d4ab
sub r9, rsi
nop
test r8b, r8b
je 0x14006d480
movzx ecx, byte [r9 + rax + 1]
lea rdx, [0x1400cd490]
movzx r8d, byte [rax + 1]
inc rax
movzx edx, byte [rcx + rdx]
lea rcx, [0x1400cd490]
movzx ecx, byte [r8 + rcx]
cmp ecx, edx
je 0x14006d450
jmp 0x14006d4ab
mov rax, qword [r11]
mov ecx, 0x20
imul rcx, r10
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rcx + rax + 0x18]
add rcx, 8
call fcn.14001b050
cmp qword [rax + 0x10], 0
jne 0x14006d55d
inc ebx
mov r11, r14
cmp ebx, dword [rbp + 0x28]
jl 0x14006d400
movzx edx, byte [rdi]
lea rbx, [0x1400cd490]
cmp byte [rdx + rbx], 0x73
jne 0x14006d583
lea r8, str.sqlite_master
sub r8, rdi
test dl, dl
je 0x14006d4f8
movzx eax, byte [r8 + rdi + 1]
inc rdi
movzx ecx, byte [rax + rbx]
movzx edx, byte [rdi]
movzx eax, byte [rdx + rbx]
cmp eax, ecx
je 0x14006d4d7
jmp 0x14006d583
mov rax, qword [r14]
mov r11, r14
mov r9, qword [rax + 0x20]
test rsi, rsi
jne 0x14006d50e
neg r9
sbb eax, eax
jmp 0x14006d54d
test r9, r9
je 0x14006d583
movzx eax, byte [r9]
mov r8, rsi
movzx edx, byte [rsi]
movzx ecx, byte [rax + rbx]
movzx eax, byte [rdx + rbx]
sub eax, ecx
jne 0x14006d54d
sub r9, rsi
nop dword [rax]
test dl, dl
je 0x14006d54d
movzx eax, byte [r9 + r8 + 1]
inc r8
movzx ecx, byte [rax + rbx]
movzx edx, byte [r8]
movzx eax, byte [rdx + rbx]
sub eax, ecx
je 0x14006d530
test eax, eax
jne 0x14006d583
lea rdi, str.sqlite_temp_master
jmp 0x14006d3f0
mov rax, qword [rsp + 0x38]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, str.DELETE_FROM__Q._s_WHERE__s_Q
mov r8, rsi
mov qword [rsp + 0x20], r13
mov rcx, r12
call fcn.140068200
inc r15d
cmp r15d, 4
jle 0x14006d3c0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400c69d0
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400a1220
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, qword [rcx + 0xa0]
mov r10, rcx
test rax, rax
cmovne r10, rax
mov rax, qword [r10 + 0x238]
test rax, rax
je 0x1400a124e
cmp qword [rax], rdx
jne 0x1400a1248
cmp dword [rax + 0x18], r9d
je 0x1400a1253
mov rax, qword [rax + 8]
jmp 0x1400a1238
jmp fcn.1400a0ca0
ret
Function at 0x1400a7220
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rax, qword [rcx + 0x20]
lea r12, [0x1400cd490]
xor r13d, r13d
movsxd rdx, edx
shl rdx, 5
mov rsi, r8
mov r14, rcx
mov r15d, r13d
mov rbp, qword [rdx + rax]
nop
mov ebx, r13d
cmp dword [r14 + 0x28], ebx
jle 0x1400a730c
nop dword [rax]
mov eax, ebx
xor eax, 1
cmp ebx, 2
cmovge eax, ebx
movsxd r10, eax
test rbp, rbp
je 0x1400a72d2
mov rcx, qword [r14 + 0x20]
mov rdx, r10
movzx r8d, byte [rbp]
mov rax, rbp
shl rdx, 5
mov r9, qword [rdx + rcx]
movzx edx, byte [r8 + r12]
movzx ecx, byte [r9]
movzx ecx, byte [rcx + r12]
cmp edx, ecx
jne 0x1400a7300
sub r9, rbp
nop
test r8b, r8b
je 0x1400a72d2
movzx ecx, byte [r9 + rax + 1]
inc rax
movzx edx, byte [rcx + r12]
movzx r8d, byte [rax]
movzx ecx, byte [r8 + r12]
cmp ecx, edx
je 0x1400a72b0
jmp 0x1400a7300
mov rax, qword [r14 + 0x20]
mov ecx, 0x20
imul rcx, r10
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rcx + rax + 0x18]
add rcx, 8
call fcn.14001b050
mov rdi, qword [rax + 0x10]
test rdi, rdi
jne 0x1400a73c2
inc ebx
cmp ebx, dword [r14 + 0x28]
jl 0x1400a7270
movzx edx, byte [rsi]
cmp byte [rdx + r12], 0x73
jne 0x1400a733e
lea r8, str.sqlite_master
sub r8, rsi
test dl, dl
je 0x1400a735e
movzx eax, byte [r8 + rsi + 1]
inc rsi
movzx ecx, byte [rax + r12]
movzx edx, byte [rsi]
movzx eax, byte [rdx + r12]
cmp eax, ecx
je 0x1400a7320
mov eax, r15d
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rax, qword [r14 + 0x20]
mov r9, qword [rax + 0x20]
test rbp, rbp
jne 0x1400a7372
neg r9
sbb eax, eax
jmp 0x1400a73b2
test r9, r9
je 0x1400a733e
movzx eax, byte [r9]
mov r8, rbp
movzx edx, byte [rbp]
movzx ecx, byte [rax + r12]
movzx eax, byte [rdx + r12]
sub eax, ecx
jne 0x1400a73b2
sub r9, rbp
test dl, dl
je 0x1400a73b2
movzx eax, byte [r9 + r8 + 1]
inc r8
movzx ecx, byte [rax + r12]
movzx edx, byte [r8]
movzx eax, byte [rdx + r12]
sub eax, ecx
je 0x1400a7393
test eax, eax
jne 0x1400a733e
lea rsi, str.sqlite_temp_master
jmp 0x1400a7260
mov rcx, qword [rdi + 0x60]
test rcx, rcx
je 0x1400a733e
mov rdx, rcx
mov rax, qword [rdx + 0x10]
cmp dword [rax + 8], r13d
jg 0x1400a7454
mov rdx, qword [rdx + 0x28]
test rdx, rdx
jne 0x1400a73d2
mov qword [rdi + 0x60], r13
mov rbx, r13
mov rdx, qword [rcx]
mov r8, qword [rcx + 0x28]
cmp rdx, r14
jne 0x1400a7409
mov qword [rdi + 0x60], rcx
mov rbx, rcx
mov qword [rcx + 0x28], r13
jmp 0x1400a741b
mov rax, qword [rdx + 0x1f0]
mov qword [rcx + 0x28], rax
mov qword [rdx + 0x1f0], rcx
mov rcx, r8
test r8, r8
jne 0x1400a73f0
mov rax, qword [rbx + 8]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rax]
mov rax, qword [rdx + 0x28]
call rax
mov r15d, eax
test eax, eax
jne 0x1400a733e
mov qword [rbx + 0x10], r13
mov rcx, rbx
mov qword [rdi + 0x60], r13
call fcn.1400a5b20
jmp 0x1400a733e
mov eax, 6
jmp 0x1400a7341
Function at 0x1400c746c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400c74b6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400c74b6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400c74b6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400c74b6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400c74b6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400c74b8
xor al, al
add rsp, 0x28
ret
Function at 0x1406200b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140620237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1406200e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406200c7
add dl, dl
jne 0x1406200ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14062014e
xor eax, eax
add dl, dl
jne 0x1406200fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140620205
add dl, dl
jne 0x14062010e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14062011b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140620128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140620135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140620142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406200d6
mov eax, 1
add dl, dl
jne 0x14062015e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14062016b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140620153
sub eax, ebx
mov ebx, 1
jne 0x1406201a4
mov ecx, 1
add dl, dl
jne 0x140620186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140620193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14062017b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406200d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406201c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406201cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406201b5
cmp eax, 0x7d00
jae 0x1406201f3
cmp eax, 0x500
jb 0x1406201ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406200d6
cmp eax, 0x7f
ja 0x1406201f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406200d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14062022a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1406200d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140013ec0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013cec

Function at 0x10000129c
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1000036f8]
lea rdx, [0x100003700]
call qword [sym.imp.API_MS_WIN_Service_Core_L1_1_0.dll_SetServiceStatus]
test eax, eax
jne 0x1000012e6
mov dword [0x100003704], 1
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
cmp qword [0x1000036f8], 0
mov dword [0x10000370c], eax
je 0x1000012dd
call fcn.10000129c
xor ecx, ecx
call qword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_ExitProcess]
inc dword [0x100003714]
add rsp, 0x28
ret
Function at 0x6d7d34a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d7f45e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d7d3628
mov rax, qword [0x6d7f45e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d7d34ec
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d7d3575
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d7d34d0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d7d365d
mov rax, qword [0x6d7f45e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d7f45e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d7d3640
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d7d356e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d7d35d0
add dword [0x6d7f45e4], 1
cmp edi, 8
jae 0x6d7d35a3
test dil, 4
jne 0x6d7d3614
test edi, edi
je 0x6d7d3598
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d7d362f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d7d3598
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d7d35bc
jmp 0x6d7d3598
add rsi, qword [0x6d7f45e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d7d356e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d7d3598
xor esi, esi
jmp 0x6d7d34f7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d7d3598
mov rax, qword [0x6d7f45e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d7d3db0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d7f48c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d7f48a0]
test rbx, rbx
je 0x6d7d3e04
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d7d3dfb
test rsi, rsi
je 0x6d7d3dfb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d7d3de0
lea rcx, [0x6d7f48c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d7d4040
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d7d4050
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d7d4060
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d7d40a1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d7d4098
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d7d40a3
add rax, 0x28
cmp rax, r9
jne 0x6d7d4084
xor eax, eax
ret

Function at 0x6d7d4140
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f11f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d7d41ad
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d41ad
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d7d41ad
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7d41a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d41af
add rax, 0x28
cmp rax, r9
jne 0x6d7d4190
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d7d42b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f11f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d7d42d0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d42c8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d7d432d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7d4324
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d4334
add rax, 0x28
cmp rax, r9
jne 0x6d7d4310
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d7d4350
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d7f11f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d7d43be
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d43be
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d7d43be
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d7d43be
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d7d43b5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d7d43c5
add rcx, 0x28
cmp rcx, rax
jne 0x6d7d43a0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d7d43d8
jmp 0x6d7d43be
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d7d43e6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d7d43be
test r9d, r9d
jg 0x6d7d43d0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d7d4720
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140013ec0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013cec

Function at 0x140001030
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
mov ecx, ecx
lea rdx, [rsp + 0x50]
xor ebx, ebx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x14000105c
xor eax, eax
jmp 0x1400010e3
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeAttachProcess]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessPeb]
mov rsi, rax
test rax, rax
je 0x1400010cf
mov rax, qword [rax + 0x18]
test rax, rax
je 0x1400010cf
cmp byte [rax + 4], bl
je 0x1400010cf
mov rdx, rdi
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rax, qword [rsi + 0x18]
add rax, 0x10
mov rdi, qword [rax]
jmp 0x1400010c4
lea rcx, [rdi + 0x58]
mov r8b, 1
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
test eax, eax
je 0x1400010cb
mov rax, qword [rsi + 0x18]
mov rdi, qword [rdi]
add rax, 0x10
cmp rdi, rax
jne 0x1400010a3
jmp 0x1400010cf
mov rbx, qword [rdi + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeDetachProcess]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140011226
Capabilities:
Terminate process

Disassembly:
jmp 0x140013f80
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400112b7
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400152c0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400152e0
xor al, al
jmp 0x140015361
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400152f3
xor al, al
jmp 0x140015361
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001531d
xor al, al
jmp 0x140015361
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015331
xor al, al
jmp 0x140015361
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140015343
xor al, al
jmp 0x140015361
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001535f
xor al, al
jmp 0x140015361
mov al, 1
add rsp, 0x38
ret
Function at 0x14001134d
Capabilities:
Link many functions at runtime

Disassembly:
jmp 0x140011c80
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1400250a5]
call fcn.1400113ca
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140011cc8
xor edx, edx
lea rcx, str.Failed_to_load_kernel32.dll._n
call fcn.1400113d4
xor eax, eax
jmp 0x140011e0a
lea rcx, [0x14001c168]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x140011cff
xor edx, edx
lea rcx, str.Failed_to_load_advapi32.dll._n
call fcn.1400113d4
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x140011e0a
lea rdx, str.CreateToolhelp32Snapshot
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001f170], rax
lea rdx, str.Process32First
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001f178], rax
lea rdx, str.Process32Next
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001f180], rax
lea rdx, str.OpenProcess
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001f188], rax
lea rdx, str.OpenProcessToken
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001f190], rax
lea rdx, str.DuplicateTokenEx
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001f198], rax
lea rdx, str.CreateProcessWithTokenW
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001f1a0], rax
cmp qword [0x14001f170], 0
je 0x140011ded
cmp qword [0x14001f178], 0
je 0x140011ded
cmp qword [0x14001f180], 0
je 0x140011ded
cmp qword [0x14001f188], 0
je 0x140011ded
cmp qword [0x14001f190], 0
je 0x140011ded
cmp qword [0x14001f198], 0
je 0x140011ded
cmp qword [0x14001f1a0], 0
jne 0x140011e05
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x140011e0a
mov eax, 1
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x180002d50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x68
mov eax, dword [rsp + 0x90]
sub eax, 0x2286
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x80]
xor eax, 0x2d3
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x98]
sub eax, 0x16b3
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x98]
sub eax, 0x16b3
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x70]
xor eax, 0x3a15
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x90]
sub eax, 0x331
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x88]
sub eax, 0x19a5
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x88]
xor eax, 0xc3b
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x80]
sub eax, 0x60
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x2c]
xor eax, 0x347e
cmp dword [rsp + 0x28], eax
je 0x180002e42
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x9c]
sub eax, 0x962ff
mov rcx, qword [rsp + 0x78]
mov ecx, dword [rcx + 0x28]
sub ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x78]
mov dword [rcx + 0x28], eax
mov eax, dword [rsp + 0x24]
add eax, 0x159e
mov dword [rsp + 0x24], eax
jmp 0x180002ee1
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x90]
mov dword [rsp + 0x20], eax
jmp 0x180002e5e
mov eax, dword [rsp + 0x20]
add eax, 2
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x34]
sub ecx, eax
mov eax, ecx
cmp dword [rsp + 0x20], eax
jge 0x180002ee1
mov eax, dword [rsp + 0x38]
sub eax, 0x16b3
sub eax, dword [rsp + 0x28]
mov dword [rsp + 0x44], eax
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x78]
mov eax, dword [rdx + rax + 0x3c]
mov ecx, dword [rcx + 0x38]
sub ecx, eax
mov eax, ecx
mov ecx, 4
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x78]
and eax, dword [rdx + rcx + 0xa4]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x48]
sub eax, 0x1c5f
mov dword [rsp + 0x3c], eax
mov r8d, dword [rsp + 0x3c]
mov edx, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_OpenThread]
jmp 0x180002e53
mov eax, dword [rsp + 0x2c]
add eax, 0xb9b
add rsp, 0x68
ret