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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400353b8
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140039700]
cmp byte [rcx + rax], 0
je 0x1400353b8
dec r8
sub rdx, 1
jne 0x14003539e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400365f4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003663e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003663e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003663e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003663e
cmp dword [rcx + 0x84], 0xe
jbe 0x14003663e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140036640
xor al, al
add rsp, 0x28
ret
Function at 0x140001da0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140073060]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x20], rcx
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x140001e89
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x140001e89
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
xor r8d, r8d
mov qword [rsp + 0x50], r8
mov ebx, dword [rax + rdx + 0xb0]
add rbx, rdx
mov eax, dword [rbx]
mov rdx, qword [rsp + 0x48]
test eax, eax
je 0x140001e77
nop
add rax, rsi
mov qword [rsp + 0x28], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x30], rax
mov eax, dword [rbx + 4]
sub rax, 8
shr rax, 1
mov dword [rsp + 0x38], eax
cmp rdx, r8
je 0x140001e52
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rdx], xmm0
movsd xmm1, qword [rsp + 0x38]
movsd qword [rdx + 0x10], xmm1
add rdx, 0x18
mov qword [rsp + 0x48], rdx
jmp 0x140001e6b
lea r8, [rsp + 0x28]
lea rcx, [rsp + 0x40]
call fcn.140002d60
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov eax, dword [rbx + 4]
add rbx, rax
mov eax, dword [rbx]
test eax, eax
jne 0x140001e10
mov rcx, qword [rsp + 0x40]
mov qword [rdi], rcx
mov qword [rdi + 8], rdx
mov qword [rdi + 0x10], r8
jmp 0x140001e97
xor r8d, r8d
mov qword [rcx], r8
mov qword [rcx + 8], r8
mov qword [rcx + 0x10], r8
mov rax, rdi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140017910
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x140006570
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov eax, 0x5a4d
xor edi, edi
mov rbx, r8
mov rsi, rcx
cmp word [rdx], ax
je 0x1400065b1
mov qword [rcx], rdi
mov qword [rcx + 8], rdi
mov rdx, qword [r8 + 0x18]
cmp rdx, 0x10
jb 0x140006660
mov rcx, qword [r8]
jmp 0x140006637
movsxd rcx, dword [rdx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400065c9
mov qword [rsi], rdi
mov qword [rsi + 8], rdi
jmp 0x14000659b
movzx eax, word [rcx + 0x14]
lea r14, [rcx + 0x18]
movzx r11d, word [rcx + 6]
add r14, rax
movzx r9d, di
cmp di, r11w
jae 0x140006623
mov rbp, qword [r8 + 0x18]
mov r8, rbx
cmp rbp, 0x10
jb 0x1400065f3
mov r8, qword [rbx]
movzx r10d, r9w
lea rax, [r10 + r10*4]
lea rcx, [r14 + rax*8]
sub r8, rcx
movzx edx, byte [rcx]
movzx eax, byte [rcx + r8]
sub edx, eax
jne 0x140006615
inc rcx
test eax, eax
jne 0x140006602
test edx, edx
je 0x140006685
inc r9w
cmp r9w, r11w
jb 0x1400065e7
mov qword [rsi], rdi
mov qword [rsi + 8], rdi
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140006660
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x14000665b
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000669e
mov rcx, r8
call fcn.140017930
mov rbp, qword [rsp + 0x58]
mov rax, rsi
mov byte [rbx], dil
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], rdi
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
lea rax, [r10 + r10*4]
lea rcx, [r14 + rax*8]
mov eax, dword [r14 + rax*8 + 8]
mov qword [rsi], rax
mov eax, dword [rcx + 0xc]
mov qword [rsi + 8], rax
jmp 0x14000662a
call fcn.140020c78
int3
Function at 0x14000c340
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x14000c362
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x14000c3dc
mov rdi, r14
mov rcx, rbx
call fcn.14000e690
test rax, rax
jle 0x14000c3b4
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.14001c780
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14000c3cc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x14000c3d4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x14000c376
sub r14, rdi
jmp 0x14000c4c9
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x14000c3f3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000c3f5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000c42a
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.14001c780
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14000c4c6
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x14000c465
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x14000c4a1
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1400248a8
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x14000c4df
cmp rbp, rax
ja 0x14000c471
mov r8, rdi
test rdi, rdi
je 0x14000c4c6
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1400248a8
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
sub r14, rbp
jmp 0x14000c4c9
Function at 0x14000c8f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140073060]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000c91d
xor eax, eax
jmp 0x14000ca63
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000c957
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14000c957
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x14000ca63
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000ca56
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000c99a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14000c9a9
movsx ecx, dil
jmp 0x14000c9fd
lea r8, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [rax + 0x38]
test eax, eax
je 0x14000ca17
sub eax, 1
je 0x14000ca17
cmp eax, 2
jne 0x14000ca56
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call fcn.140020f10
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000ca5b
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14000ca44
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call fcn.1400240f4
cmp rsi, rax
jne 0x14000ca56
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x14000ca5b
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140017910
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140029200
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002902c
Function at 0x140001070
Capabilities:
Encode data using xor
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x110
mov r12d, edx
mov rbp, rcx
test rcx, rcx
je 0x1400011f8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400011f8
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x1400011f8
movups xmm0, xmmword [rax + 0x18]
lea rcx, [rsp + 0x20]
xor esi, esi
movups xmm1, xmmword [rax + 0x28]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x38]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x48]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x58]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x68]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x78]
movups xmmword [rcx + 0x50], xmm1
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax + 0x88]
sub rax, 0xffffffffffffff68
movups xmmword [rcx - 0x10], xmm0
movups xmm1, xmmword [rax]
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rcx], xmm1
movups xmm1, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm0
movups xmm0, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm1
movups xmm1, xmmword [rax + 0x40]
movups xmmword [rcx + 0x30], xmm0
movups xmm0, xmmword [rax + 0x50]
movups xmmword [rcx + 0x40], xmm1
movups xmm1, xmmword [rax + 0x60]
movups xmmword [rcx + 0x50], xmm0
movups xmmword [rcx + 0x60], xmm1
mov r15d, dword [rsp + 0x90]
add r15, rbp
mov r13d, dword [r15 + 0x20]
mov ecx, dword [r15 + 0x1c]
add r13, rbp
mov edx, dword [r15 + 0x24]
add rcx, rbp
add rdx, rbp
mov qword [rsp + 0x150], rcx
mov qword [rsp + 0x160], rdx
cmp dword [r15 + 0x14], esi
jbe 0x1400011f8
nop dword [rax]
movzx eax, word [rdx + rsi*2]
xor ebx, ebx
mov edi, dword [r13 + rsi*4]
add rdi, rbp
mov r14d, dword [rcx + rax*4]
mov rcx, rdi
add r14, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenA]
xor ecx, ecx
movsxd rdx, eax
test eax, eax
je 0x1400011cb
nop word [rax + rax]
movsx eax, byte [rcx + rdi]
inc rcx
add eax, ebx
imul ebx, eax, 0x81
mov eax, ebx
shr eax, 6
xor ebx, eax
cmp rcx, rdx
jne 0x1400011b0
lea eax, [rbx + rbx*8]
mov ecx, eax
shr ecx, 0xb
xor ecx, eax
imul eax, ecx, 0x8001
cmp r12d, eax
je 0x140001215
mov rcx, qword [rsp + 0x150]
inc esi
mov rdx, qword [rsp + 0x160]
cmp esi, dword [r15 + 0x14]
jb 0x140001180
xor eax, eax
mov rbx, qword [rsp + 0x158]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rax, r14
jmp 0x1400011fa
Function at 0x140002934
Capabilities:
Parse pe header

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

Disassembly:
call fcn.14065a1df
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 0x14065a089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14065a06f
add dl, dl
jne 0x14065a096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14065a0f6
xor eax, eax
add dl, dl
jne 0x14065a0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14065a1ad
add dl, dl
jne 0x14065a0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14065a0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14065a0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14065a0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14065a0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14065a07e
mov eax, 1
add dl, dl
jne 0x14065a106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14065a113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14065a0fb
sub eax, ebx
mov ebx, 1
jne 0x14065a14c
mov ecx, 1
add dl, dl
jne 0x14065a12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14065a13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14065a123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14065a07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14065a168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14065a175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14065a15d
cmp eax, 0x7d00
jae 0x14065a19b
cmp eax, 0x500
jb 0x14065a196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14065a07e
cmp eax, 0x7f
ja 0x14065a19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14065a07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14065a1d2
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 0x14065a07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400301f4
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140056f20], eax
call fcn.140030aa0
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140056f20], 0
jne case.default.0x14003024a
mov ecx, 1
call fcn.140030aa0
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
invalid
Function at 0x6d7d7380
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d7f85e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d7d7508
mov rax, qword [0x6d7f85e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d7d73cc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d7d7455
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d7d73b0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d7d753d
mov rax, qword [0x6d7f85e8]
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 [0x6d7f85e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d7d7520
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d7d744e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d7d74b0
add dword [0x6d7f85e4], 1
cmp edi, 8
jae 0x6d7d7483
test dil, 4
jne 0x6d7d74f4
test edi, edi
je 0x6d7d7478
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d7d750f
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 0x6d7d7478
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 0x6d7d749c
jmp 0x6d7d7478
add rsi, qword [0x6d7f85e8]
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 0x6d7d744e
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 0x6d7d7478
xor esi, esi
jmp 0x6d7d73d7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d7d7478
mov rax, qword [0x6d7f85e8]
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 0x6d7d7c90
Capabilities:
Get thread local storage value

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

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

Function at 0x6d7d7f40
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 0x6d7d7f81
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 0x6d7d7f78
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d7d7f83
add rax, 0x28
cmp rax, r9
jne 0x6d7d7f64
xor eax, eax
ret

Function at 0x6d7d8020
Capabilities:
Enumerate pe sections

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

Function at 0x6d7d8190
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f51f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d7d81b0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d81a8
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 0x6d7d820d
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 0x6d7d8204
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d8214
add rax, 0x28
cmp rax, r9
jne 0x6d7d81f0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d7d8230
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d7f51f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d7d829e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d829e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d7d829e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d7d829e
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 0x6d7d8295
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d7d82a5
add rcx, 0x28
cmp rcx, rax
jne 0x6d7d8280
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d7d82b8
jmp 0x6d7d829e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d7d82c6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d7d829e
test r9d, r9d
jg 0x6d7d82b0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d7d8600
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 0x1409352c0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140935447
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 0x1409352f1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409352d7
add dl, dl
jne 0x1409352fe
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14093535e
xor eax, eax
add dl, dl
jne 0x14093530d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140935415
add dl, dl
jne 0x14093531e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14093532b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140935338
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140935345
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140935352
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1409352e6
mov eax, 1
add dl, dl
jne 0x14093536e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14093537b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140935363
sub eax, ebx
mov ebx, 1
jne 0x1409353b4
mov ecx, 1
add dl, dl
jne 0x140935396
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409353a3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14093538b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409352e6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1409353d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409353dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409353c5
cmp eax, 0x7d00
jae 0x140935403
cmp eax, 0x500
jb 0x1409353fe
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409352e6
cmp eax, 0x7f
ja 0x140935406
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409352e6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14093543a
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 0x1409352e6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20