joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007a10
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xd8
mov rax, qword [0x140023f00]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov r14, r9
mov r13, r8
mov r12, rdx
mov r15, rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x28], xmm0
lea rcx, [rsp + 0x118]
movabs rbx, 0xff00ff00ff00ff00
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rcx
mov rsi, qword [rcx]
xor rsi, rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], rsi
mov qword [rcx], rax
movzx edi, word [r9 + 0x14]
add rdi, 0x2c
movzx ebp, ax
cmp ax, word [r9 + 6]
jae 0x140007b41
lea rsi, [rsp + 0x118]
add rdi, r9
nop dword [rax]
call fcn.1400031d0
mov r9, rax
mov r8d, dword [rdi - 4]
mov edx, dword [rdi]
add rdx, r13
mov ecx, dword [rdi - 8]
add rcx, r12
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
mov rbx, qword [rsi]
mov rax, rbx
movabs r10, 0xff00ff00ff00ff00
xor rax, r10
mov qword [rsp + 0x40], rax
mov qword [rsi], 0
mov dword [rsp + 0x60], 1
mov dword [rsp + 0x80], r15d
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x78], r8
lea rdx, [rsp + 0x60]
mov rcx, r9
call fcn.1400071e0
nop
mov qword [rsi], rbx
inc bp
lea rdi, [rdi + 0x28]
cmp bp, word [r14 + 6]
movabs rbx, 0xff00ff00ff00ff00
jb 0x140007aa0
mov rsi, qword [rsp + 0x20]
lea rcx, [rsp + 0x118]
xor rsi, rbx
mov qword [rcx], rsi
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140009ab0
add rsp, 0xd8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000a0f4
Capabilities:
Parse pe header

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

Function at 0x140001000
Capabilities:
Find process by pid

Disassembly:
sub rsp, 0x28
movsxd rax, dword [rcx]
test eax, eax
je 0x14000104b
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jne 0x14000104b
mov rcx, qword [rsp + 0x30]
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
mov rcx, rax
call fcn.140001158
mov rcx, qword [rsp + 0x30]
mov qword [0x140003010], rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor eax, eax
jmp 0x140001050
mov eax, 0xc0000001
add rsp, 0x28
ret

Function at 0x140001450
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
movsxd rax, dword [rcx + 4]
mov rbx, rcx
test eax, eax
je 0x14000149f
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000149f
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
test rax, rax
je 0x14000149f
mov rcx, qword [rbx + 8]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor eax, eax
jmp 0x1400014a4
mov eax, 0xc0000001
add rsp, 0x20
pop rbx
ret

Function at 0x1400014ac
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
movsxd rax, dword [rcx + 4]
mov rbx, rcx
test eax, eax
je 0x140001558
and qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140001558
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rdx, qword [rbx + 8]
mov rcx, qword [0x140003010]
mov rdi, qword [rbx + 0x18]
call fcn.140001834
test rax, rax
je 0x140001558
mov ecx, eax
mov edx, 0x1000
and ecx, 0xfff
sub edx, ecx
mov rcx, qword [rbx + 0x10]
cmp edx, edi
cmovl edi, edx
and qword [rsp + 0x48], 0
cmp byte [rbx + 0x20], 0
movsxd r8, edi
je 0x14000153b
mov rdx, rcx
lea r9, [rsp + 0x48]
mov rcx, rax
call fcn.140001a14
jmp 0x140001554
lea rdx, [rsp + 0x48]
mov r9d, 1
mov qword [rsp + 0x20], rdx
mov rdx, rax
call qword [sym.imp.ntoskrnl.exe_MmCopyMemory]
xor eax, eax
jmp 0x14000155d
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1800061d8
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x58
lea r12, [0x1800a8820]
mov qword [rax - 0x58], r12
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea rdi, [rsp + 0x98]
call fcn.180005dfc
mov r14, rax
mov rcx, qword [rax]
or rcx, 1
mov qword [rsp + 0x28], rdi
and qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x90]
xor r8d, r8d
xor edx, edx
call fcn.1800325c8
or ecx, 0xffffffff
test eax, eax
cmovs eax, ecx
inc eax
movsxd rbx, eax
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.1800063a4
nop
mov rcx, qword [r14]
or rcx, 1
mov qword [rsp + 0x28], rdi
and qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x90]
mov r8, rbx
mov rbx, qword [rsp + 0x38]
mov rdx, rbx
call fcn.1800325c8
mov ecx, dword [0x1800a8868]
mov rax, qword gs:[0x58]
mov r13d, 8
mov rsi, qword [rax + rcx*8]
mov rax, qword [rsi + r13]
mov edi, 2
test rax, rax
jne 0x1800062d3
mov ecx, edi
call fcn.180033e08
mov rdx, rax
mov rcx, rbx
call fcn.1800344d0
mov ecx, edi
call fcn.180033e08
mov rdx, rax
lea ecx, [rdi + 8]
call fcn.1800343a8
jmp 0x1800062dc
mov rcx, rbx
call qword [0x180052448]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [0x1800a8850], 0
je 0x180006339
mov ecx, edi
call fcn.180033e08
mov rdi, qword [0x1800a8848]
cmp rdi, rax
jne 0x180006308
cmp qword [rsi + r13], 0
je 0x180006339
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, qword [rsp + 0x90]
mov rdx, rdi
mov rcx, qword [r14]
call fcn.1800324d8
mov ecx, 0xa
mov rdx, rdi
call fcn.1800343a8
nop
test rbx, rbx
je 0x180006355
mov rdx, qword [rsp + 0x48]
sub rdx, rbx
sar rdx, 1
add rdx, rdx
mov rcx, rbx
call fcn.180001acc
nop
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x58
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1800071d0
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, 0x20
xor r14d, r14d
mov rbx, rdx
mov qword [rdx + 0x10], r14
mov rdi, rcx
cmp qword [rdx + 0x18], 8
mov rax, rdx
jb 0x180007203
mov rax, qword [rdx]
xor r8d, r8d
mov word [rax], r14w
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebp, eax
test eax, eax
jne 0x18000724f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x18000724b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r8d, ax
mov rdx, rdi
or r8d, 0x80070000
lea rcx, str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
test eax, eax
cmovle r8d, eax
call fcn.1800061d8
xor al, al
jmp 0x180007295
mov rcx, 0xffffffffffffffff
mov eax, 2
mul rbp
cmovo rax, rcx
mov rcx, rax
call fcn.18002842c
mov r8d, ebp
mov rdx, rax
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x180007225
mov rdx, rsi
mov rcx, rbx
call fcn.1800018c4
mov rcx, rsi
call fcn.180027be4
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x18000775c
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x180092078]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov rdi, r9
mov rbx, rdx
mov rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.180003de8
nop
xor esi, esi
cmp qword [rsp + 0x60], rsi
je 0x1800077fc
lea rcx, [rsp + 0x50]
call fcn.18000b7ec
test al, al
jne 0x1800077fc
lea rcx, [rsp + 0x50]
call fcn.18000b6f4
test al, al
jne 0x1800077fc
lea rcx, [rsp + 0x50]
call fcn.18000b770
test al, al
jne 0x1800077fc
lea rcx, [rsp + 0x50]
call fcn.18000b868
test al, al
jne 0x1800077e8
cmp qword [rsp + 0x60], 0x104
jb 0x1800077fc
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.1800072b0
test al, al
je 0x1800079b6
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.180003de8
nop
cmp qword [rbx + 0x18], 8
jb 0x180007816
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.1800029a0
xor edx, edx
mov r8d, 0x250
lea rcx, [rbp - 0x70]
call fcn.18002a0d0
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rcx, qword [rsp + 0x70]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea r8, [rbp - 0x70]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180007989
lea r13, [0x1800622b0]
lea r12, [0x180063300]
test byte [rbp - 0x70], 0x10
je 0x18000796a
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], si
lea rdx, [rbp - 0x44]
lea rcx, [rsp + 0x30]
call fcn.1800018c4
nop
lea rdx, [rsp + 0x30]
mov r8, qword [rsp + 0x48]
cmp r8, 8
setae r11b
mov r10, qword [rsp + 0x30]
cmovae rdx, r10
cmp qword [rsp + 0x40], 1
jne 0x1800078e7
mov r9d, 1
mov rcx, r13
sub rdx, r13
movzx eax, word [rcx]
cmp word [rcx + rdx], ax
jne 0x1800078e7
add rcx, 2
sub r9, 1
jne 0x1800078d2
jmp 0x180007954
lea rdx, [rsp + 0x30]
test r11b, r11b
cmovne rdx, r10
cmp qword [rsp + 0x40], 2
jne 0x18000791c
mov r9d, 2
mov rcx, r12
sub rdx, r12
movzx eax, word [rcx]
cmp word [rcx + rdx], ax
jne 0x18000791c
add rcx, 2
sub r9, 1
jne 0x180007907
jmp 0x180007954
mov rax, qword [rdi + 8]
cmp rax, qword [rdi + 0x10]
je 0x18000793a
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.180003de8
add qword [rdi + 8], 0x20
jmp 0x18000794a
lea r8, [rsp + 0x30]
mov rdx, rax
mov rcx, rdi
call fcn.18000470c
mov r10, qword [rsp + 0x30]
mov r8, qword [rsp + 0x48]
cmp r8, 8
jb 0x18000796a
lea rdx, [r8*2 + 2]
mov rcx, r10
call fcn.180001acc
lea rdx, [rbp - 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180007877
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x1800079a5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
call fcn.180001acc
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], si
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x1800079d3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
call fcn.180001acc
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.180028080
mov rbx, qword [rsp + 0x330]
add rsp, 0x2f0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180011790
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x180092078]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [rcx + 0x18], 8
mov esi, r8d
mov rbx, rdx
jb 0x1800117b7
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1800117fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x180011850
movzx eax, ax
or eax, 0x80070000
jmp 0x180011850
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, esi
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180011841
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x180011834
movzx ebx, ax
or ebx, 0x80070000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x180011850
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1800117ea
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180028080
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret

Function at 0x180011c00
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x180092078]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov rcx, qword [rcx]
call qword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
mov rax, qword [rbx]
xor r11d, r11d
movsxd rcx, dword [rax + 0x18]
test rcx, rcx
jle 0x180011c6d
mov r10d, r11d
nop dword [rax + rax]
mov r9, qword [rsp + 0x20]
mov eax, r11d
cdq
inc r11d
idiv dword [0x180092008]
mov rax, qword [section..data]
movsxd r8, edx
movzx edx, byte [r8 + rax]
xor byte [r9 + r10], dl
inc r10
cmp r10, rcx
jl 0x180011c40
mov rcx, qword [rbx]
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180028080
add rsp, 0x30
pop rbx
ret
Function at 0x180024ed8
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 0x180024f5c
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180053640]
cmp byte [rcx + rax], 0
je 0x180024f5c
dec r8
sub rdx, 1
jne 0x180024f42
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x180026f18
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x180026f46
xor eax, eax
jmp 0x18002702c
cmp qword [rcx + 0x68], 0
je 0x180026f57
call fcn.180027048
jmp 0x18002702c
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x180026f6e
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180026f70
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180026fa2
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.180029a20
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x180027026
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x180026fd9
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x180027002
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.180037800
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x180027026
cmp rsi, rbx
ja 0x180026fe0
test rsi, rsi
je 0x180027026
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.180037800
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x18002710c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x18002713b
call fcn.1800271cc
jmp 0x1800271b2
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x180027152
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x180027154
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1800271ac
test ecx, ecx
jle 0x18002718d
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call fcn.180029a20
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1800271ac
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1800271ac
mov r8, rbx
mov edx, 1
mov rcx, r15
call fcn.180037d60
sub rbx, rax
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x6d7d5650
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d7f65e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d7d57d8
mov rax, qword [0x6d7f65e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d7d569c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d7d5725
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d7d5680
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d7d580d
mov rax, qword [0x6d7f65e8]
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 [0x6d7f65e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d7d57f0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d7d571e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d7d5780
add dword [0x6d7f65e4], 1
cmp edi, 8
jae 0x6d7d5753
test dil, 4
jne 0x6d7d57c4
test edi, edi
je 0x6d7d5748
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d7d57df
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 0x6d7d5748
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 0x6d7d576c
jmp 0x6d7d5748
add rsi, qword [0x6d7f65e8]
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 0x6d7d571e
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 0x6d7d5748
xor esi, esi
jmp 0x6d7d56a7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d7d5748
mov rax, qword [0x6d7f65e8]
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 0x6d7d5f60
Capabilities:
Get thread local storage value

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

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

Function at 0x6d7d6210
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 0x6d7d6251
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 0x6d7d6248
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d7d6253
add rax, 0x28
cmp rax, r9
jne 0x6d7d6234
xor eax, eax
ret

Function at 0x6d7d62f0
Capabilities:
Enumerate pe sections

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

Function at 0x6d7d6460
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f31f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d7d6480
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d6478
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 0x6d7d64dd
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 0x6d7d64d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d64e4
add rax, 0x28
cmp rax, r9
jne 0x6d7d64c0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d7d6500
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d7f31f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d7d656e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d656e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d7d656e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d7d656e
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 0x6d7d6565
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d7d6575
add rcx, 0x28
cmp rcx, rax
jne 0x6d7d6550
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d7d6588
jmp 0x6d7d656e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d7d6596
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d7d656e
test r9d, r9d
jg 0x6d7d6580
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d7d68d0
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 0x180004f85
Capabilities:
Encode data using xor

Disassembly:
add byte [r9 + 0x7d04e541], dl
clc
or bl, byte [rcx + 0x12807ad0]
jmp qword [rax + rax]
jo 0x180004f71
mov al, 0xff
push rsi
add al, bl
push rbx
pop rax
jg 0x180004f2b
inc dword [rax]
add byte [rax], al
add byte [rcx - 0x2b], ah
and byte [rbp + rcx*8 + 0x44], bh
add byte [rbx + 0x60d72fe8], al
leave
push 0xffffffffffffff8b
add byte [rax - 0x4d], ah
movabs al, byte [0x97606a6affb16134]
sub al, 0xe5
enter 0x79e1, 0x6a
or al, 0
jo 0x180004f07
add byte [rax], al
add byte [rax], al
invalid
cmp al, 0x2f
enter 0, 0
jo 0x180004f7a
mov ch, 6
mov cl, bh
and bh, bh
add dword [rax], eax
movabs rcx, 0x25ec000000cdf490
invalid
mov esp, dword [rdx + 0x7d]
invalid
add byte [rax], al
add dh, ah
jo 0x180004f20
int 0
add byte [rax], al
add byte [rdx + rax*2 + 0x10921cdc], al
pop rbx
and cl, byte [rbx + 0x44008900]
mov ch, 0x96
invalid