joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000e490
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140021010]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edi, edi
lea r9, [rsp + 0x20]
mov rsi, rcx
mov dword [rsp + 0x20], edi
xor r8d, r8d
xor edx, edx
mov ebx, edi
lea ecx, [rdi + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x14000e521
test rbx, rbx
je 0x14000e4e9
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, 0xb
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x14000e4d3
test eax, eax
jns 0x14000e542
test rbx, rbx
je 0x14000e547
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x14000e60d
test rbx, rbx
jne 0x14000e54e
xor eax, eax
jmp 0x14000e60d
mov qword [rsp + 0x68], rbp
cmp dword [rbx], edi
jbe 0x14000e5f5
nop dword [rax + rax]
mov eax, edi
imul rcx, rax, 0x128
movzx edx, word [rcx + rbx + 0x2e]
lea rbp, [rcx + rbx]
add rcx, 0x30
add rdx, rcx
lea rcx, [rsp + 0x28]
add rdx, rbx
call fcn.140005a80
cmp qword [rsi + 0x18], 0x10
mov rdx, rsi
jb 0x14000e593
mov rdx, qword [rsi]
cmp qword [rsp + 0x40], 0x10
lea rcx, [rsp + 0x28]
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14000e62a
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x14000e5eb
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e5e6
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000e673
call fcn.14000e700
inc edi
cmp edi, dword [rbx]
jb 0x14000e560
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbp, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000e6e0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
mov rdi, qword [rbp + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x14000e67f
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e67a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000e67a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000e700
mov rax, rdi
jmp 0x14000e608
Function at 0x14000f2b4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f2fe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f2fe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f2fe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f2fe
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f2fe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000f300
xor al, al
add rsp, 0x28
ret
Function at 0x140058c20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
cmp qword [rsp + 0x60], 0
je 0x140058c3e
cmp qword [rsp + 0x68], 0
jne 0x140058c45
xor eax, eax
jmp 0x140058d71
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov dword [rsp], 0
jmp 0x140058ce6
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x18]
cmp dword [rsp], eax
jae 0x140058d6f
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
movzx edx, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x140058d2e
inc rax
test dl, dl
jne 0x140058d1b
xor eax, eax
jmp 0x140058d33
sbb eax, eax
or eax, 1
test eax, eax
jne 0x140058d6a
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x38]
movzx eax, word [rcx + rax*2]
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 0x10]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
jmp 0x140058d71
jmp 0x140058cde
xor eax, eax
add rsp, 0x58
ret

Function at 0x1405ed666
Capabilities:
Encode data using xor

Disassembly:
adc rbp, 0xc
xor edi, edi
push 0x5b882615
test rcx, rcx
lea rsp, [rsp + 0x10]
je 0x1405ed6e4
push r8
mov edx, 0x7e37d611
mov r8d, 0xb2aedab7
xor r8b, dl
lea rdx, [0x1405f5cb8]
movzx r8d, byte [rsi]
push 0x6911e01
shl qword [rsp], 0x97
xor r8d, edi
ror byte [rsp + 7], 0x23
sbb byte [rsp + 5], 0x89
and r8d, 0xff
mov r8d, dword [rdx + r8*4]
shr edi, 8
xor edi, r8d
inc rsi
xor edi, 0xcf3698a8
dec rcx
lea rsp, [rsp + 8]
jne 0x1405ed699
mov r8d, 0x5209ac1a
pop r8
jmp 0x1405f80cf

Function at 0x1405f0cd9
Capabilities:
Encode data using xor

Disassembly:
jmp fcn.1405d1519
mov rbp, qword [r8]
mov r10, qword [r8 + 8]
add r8, 0xc
xor r11d, r11d
test r10, r10
lea rsp, [rsp + 0x10]
je 0x1405f0d56
mov r9d, 0x622675a8
push rsi
lea rsi, [0x1405ffb88]
mov r9d, 0xdfbc1a90
movzx r9d, byte [rbp + riz]
push 0xffffffff89b14589
xor r9d, r11d
xor word [rsp], 0xcdb8
and r9d, 0xff
rol qword [rsp], 0x52
mov r9d, dword [rsi + r9*4]
shr r11d, 8
xor r11d, r9d
sar word [rsp + 4], 0xae
inc rbp
xor r11d, 0xf294d034
dec r10
lea rsp, [rsp + 8]
jne 0x1405f0d06
pop rsi
not r11d
mov dword [r8], r11d
jmp 0x1405ec5cf
Function at 0x421fd0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.00423190
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.00423190
mov rdx, rbx
mov r8, rsi
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x422040
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x004ce614]
mov rsi, rcx
mov rbp, rdx
mov rbx, r8
test edi, edi
jle 0x4221e0
mov rax, qword [0x004ce618]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rsi, rdx
jb 0x42208c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rsi, rdx
jb 0x422119
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x422070
mov rcx, rsi
call fcn.00422de0
mov r12, rax
test rax, rax
je 0x422215
mov rax, qword [0x004ce618]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00422f10
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x004ce618]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x422224
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x422112
sub eax, 0x40
and eax, 0xffffffbf
jne 0x422192
add dword [0x004ce614], 1
cmp ebx, 8
jae 0x422145
test bl, 4
jne 0x4221f0
test ebx, ebx
je 0x42213a
movzx eax, byte [rbp]
mov byte [rsi], al
test bl, 2
jne 0x422204
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rbp]
lea rcx, [rsi + 8]
and rcx, 0xfffffffffffffff8
mov qword [rsi], rax
mov eax, ebx
mov rdx, qword [rbp + rax - 8]
mov qword [rsi + rax - 8], rdx
sub rsi, rcx
add ebx, esi
sub rbp, rsi
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x42213a
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rbp + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x422175
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x004ce618]
mov r9, rdi
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x422112
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00421fd0
nop word cs:[rax + rax]
xor edi, edi
jmp 0x422097
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rsi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rsi + rbx - 4], eax
jmp 0x42213a
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rsi + rbx - 2], ax
jmp 0x42213a
mov rdx, rsi
lea rcx, str.Address__p_has_no_image_section
call fcn.00421fd0
mov rax, qword [0x004ce618]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.00421fd0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x422a30
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004ce900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004ce8e0]
test rbx, rbx
je 0x422a84
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 0x422a7b
test rsi, rsi
je 0x422a7b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x422a60
lea rcx, [0x004ce900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x422de0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x004ca890]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x422e4f
mov rcx, r9
call fcn.00422cb0
test eax, eax
je 0x422e4f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x422e4d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x422e44
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x422e4f
add rdx, 0x28
cmp rdx, r9
jne 0x422e30
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x1408ae0b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1408ae237
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 0x1408ae0e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408ae0c7
add dl, dl
jne 0x1408ae0ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408ae14e
xor eax, eax
add dl, dl
jne 0x1408ae0fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408ae205
add dl, dl
jne 0x1408ae10e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408ae11b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408ae128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408ae135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1408ae142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1408ae0d6
mov eax, 1
add dl, dl
jne 0x1408ae15e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408ae16b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408ae153
sub eax, ebx
mov ebx, 1
jne 0x1408ae1a4
mov ecx, 1
add dl, dl
jne 0x1408ae186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408ae193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408ae17b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408ae0d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1408ae1c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408ae1cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408ae1b5
cmp eax, 0x7d00
jae 0x1408ae1f3
cmp eax, 0x500
jb 0x1408ae1ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408ae0d6
cmp eax, 0x7f
ja 0x1408ae1f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408ae0d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1408ae22a
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 0x1408ae0d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180003ad0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180003b01
xor eax, eax
lea r8, [0x180003730]
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 rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x38
ret

Function at 0x180003b10
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, dword [0x18001ff84]
syscall
ret
Function at 0x18000c9fc
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18000ca2c
xor eax, eax
jmp 0x18000caef
mov rbp, rbx
cmp word [rax], si
je 0x18000ca51
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18000ca38
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18000ca34
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.18000c91c
movsxd r14, eax
test eax, eax
jne 0x18000ca8f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18000ca25
mov rcx, r14
call fcn.18000a964
mov rdi, rax
test rax, rax
jne 0x18000caa8
xor ecx, ecx
call fcn.18000a928
jmp 0x18000ca84
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.18000c91c
test eax, eax
jne 0x18000cad9
mov rcx, rdi
call fcn.18000a928
jmp 0x18000cae3
xor ecx, ecx
call fcn.18000a928
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 0x6d7d2720
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d7f35e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d7d28a8
mov rax, qword [0x6d7f35e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d7d276c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d7d27f5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d7d2750
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d7d28dd
mov rax, qword [0x6d7f35e8]
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 [0x6d7f35e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d7d28c0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d7d27ee
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d7d2850
add dword [0x6d7f35e4], 1
cmp edi, 8
jae 0x6d7d2823
test dil, 4
jne 0x6d7d2894
test edi, edi
je 0x6d7d2818
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d7d28af
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 0x6d7d2818
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 0x6d7d283c
jmp 0x6d7d2818
add rsi, qword [0x6d7f35e8]
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 0x6d7d27ee
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 0x6d7d2818
xor esi, esi
jmp 0x6d7d2777
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d7d2818
mov rax, qword [0x6d7f35e8]
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 0x6d7d3030
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d7f38c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d7f38a0]
test rbx, rbx
je 0x6d7d3084
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 0x6d7d307b
test rsi, rsi
je 0x6d7d307b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d7d3060
lea rcx, [0x6d7f38c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d7d32c0
Capabilities:
Parse pe header

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

Function at 0x6d7d32e0
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 0x6d7d3321
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 0x6d7d3318
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d7d3323
add rax, 0x28
cmp rax, r9
jne 0x6d7d3304
xor eax, eax
ret

Function at 0x6d7d33c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f01f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d7d342d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d342d
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 0x6d7d342d
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 0x6d7d3424
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d342f
add rax, 0x28
cmp rax, r9
jne 0x6d7d3410
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d7d3530
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f01f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d7d3550
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d3548
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 0x6d7d35ad
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 0x6d7d35a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d35b4
add rax, 0x28
cmp rax, r9
jne 0x6d7d3590
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d7d35d0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d7f01f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d7d363e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d363e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d7d363e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d7d363e
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 0x6d7d3635
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d7d3645
add rcx, 0x28
cmp rcx, rax
jne 0x6d7d3620
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d7d3658
jmp 0x6d7d363e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d7d3666
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d7d363e
test r9d, r9d
jg 0x6d7d3650
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d7d39a0
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 0x140634058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1406341df
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 0x140634089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14063406f
add dl, dl
jne 0x140634096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406340f6
xor eax, eax
add dl, dl
jne 0x1406340a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406341ad
add dl, dl
jne 0x1406340b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406340c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406340d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406340dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406340ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14063407e
mov eax, 1
add dl, dl
jne 0x140634106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140634113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406340fb
sub eax, ebx
mov ebx, 1
jne 0x14063414c
mov ecx, 1
add dl, dl
jne 0x14063412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14063413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140634123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14063407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140634168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140634175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14063415d
cmp eax, 0x7d00
jae 0x14063419b
cmp eax, 0x500
jb 0x140634196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14063407e
cmp eax, 0x7f
ja 0x14063419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14063407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406341d2
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 0x14063407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20