joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140020040
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x14002fe40], 1
je 0x1400200b8
lea rdi, [0x14002fe40]
mov rcx, rdi
call fcn.14001f920
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.14001f2a0
mov esi, dword [0x14002fe40]
test esi, esi
jne 0x1400200c8
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140025488], eax
cmp eax, 0xffffffff
je 0x1400200ef
mov dword [0x14002fe40], 1
mov rcx, rbp
call fcn.14001f590
test rbx, rbx
je 0x1400200b8
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.14001fcc0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x140020094
mov ecx, 2
call qword [fcn.14001eb40]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x140020094
call sub.msvcrt.dll_abort
nop
nop word cs:[rax + rax]

Function at 0x140020100
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.14001fdd0
cmp qword [0x140031048], 0
mov rbx, rax
je 0x140020210
test rax, rax
je 0x140020210
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.1400233a0
cmp eax, 1
je 0x14002021e
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rsi
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x140020223
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x140025488]
mov rdx, rbx
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140020223
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.14001fba0
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140020230
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140020040
mov ecx, dword [0x140025488]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140020250
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.140020100
Function at 0x1400209d0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x140020af8
cmp eax, 1
je 0x140020a2b
call fcn.14001f920
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.14001f2a0
mov r12d, dword [rbx]
test r12d, r12d
je 0x140020a40
cmp r12d, 1
jne 0x140020ad0
mov rcx, rbp
call fcn.14001f590
test rdi, rdi
je 0x140020a2b
mov rcx, rdi
call fcn.14001fcc0
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x14001fda0]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.140020040
mov ecx, dword [0x140025488]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x140020b50
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.140020040
mov ecx, dword [0x140025488]
call r12
test rax, rax
je 0x140020b30
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.140020040
mov ecx, dword [0x140025488]
call r12
test rax, rax
je 0x140020b10
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x140020a16
mov ecx, 2
call qword [fcn.14001eb40]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x140020a16
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140020100
test rax, rax
jne 0x140020ab9
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2
call fcn.140020100
test rax, rax
jne 0x140020a95
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2
call fcn.140020100
test rax, rax
jne 0x140020a6f
mov rax, qword [pe_dos_header]
ud2

Function at 0x140020de0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.140020040
mov ecx, dword [0x140025488]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140020e58
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.1400233b0
cmp esi, dword [rbx + 0x48]
jae 0x140020e33
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x140020e33
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.1400233f0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140020100
mov rbx, rax
jmp 0x140020e0d
Function at 0x140020e70
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.140020040
mov ecx, dword [0x140025488]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140020f70
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.1400233b0
cmp esi, dword [rbx + 0x48]
jae 0x140020ef0
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r13
mov byte [rax + rsi], 1
call fcn.1400233f0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r15d, [rsi + 1]
mov rcx, qword [rbx + 0x50]
movsxd r14, r15d
lea rdx, [r14*8]
call sub.msvcrt.dll_realloc
mov rdi, rax
test rax, rax
je 0x140020f7d
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x140020f7d
mov eax, dword [rbx + 0x48]
mov edx, r15d
sub edx, eax
lea rcx, [rdi + rax*8]
lea r8, [rdx*8]
xor edx, edx
call sub.msvcrt.dll_memset
mov ecx, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
mov rax, rcx
add rcx, r14
sub r8d, eax
call sub.msvcrt.dll_memset
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], r14
mov dword [rbx + 0x48], r15d
jmp 0x140020ebf
call fcn.140020100
mov rbx, rax
jmp 0x140020eaa
mov rcx, r13
call fcn.1400233f0
mov eax, 0xc
jmp 0x140020edd

Function at 0x140021000
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140020040
mov ecx, dword [0x140025488]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140021028
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.140020100
test rax, rax
jne 0x14002101a
add rsp, 0x28
ret

Function at 0x140021090
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140020040
mov ecx, dword [0x140025488]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400210b8
add rax, 0x18
add rsp, 0x28
ret
call fcn.140020100
test rax, rax
jne 0x1400210aa
jmp 0x1400210ae

Function at 0x1400211d0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14002fe48]
test eax, eax
jne 0x1400211e8
xor eax, eax
add rsp, 0x28
ret
call fcn.140020040
mov ecx, dword [0x140025488]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140021218
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x1400211de
test byte [rax + 0x40], 3
je 0x1400211de
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x1400211e0
call fcn.140020100
test rax, rax
jne 0x1400211fe
jmp 0x1400211de

Function at 0x140021230
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.140020040
mov ecx, dword [0x140025488]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140021270
test ebx, ebx
jle 0x140021260
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.140020100
test rax, rax
jne 0x14002124d
add rsp, 0x20
pop rbx
ret
Function at 0x140021360
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140020040
mov ecx, dword [0x140025488]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400213d8
test byte [rbx + 0x40], 0xc
jne 0x14002138f
mov eax, dword [0x14002fe48]
test eax, eax
jne 0x1400213a0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14001f2a0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x1400213c3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x1400213c3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x1400213ec
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001f590
call fcn.140020100
mov rbx, rax
test rax, rax
jne 0x14002137f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14002140a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14001f590
call fcn.140021280
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140021490
call fcn.140022540
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x1400214c8
call fcn.140020040
mov ecx, dword [0x140025488]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140021520
test esi, esi
je 0x1400214a6
call fcn.140021360
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140021500
mov edx, edi
call fcn.1400225f0
call fcn.140021360
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140020040
mov ecx, dword [0x140025488]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140021510
call fcn.140021360
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140021360
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140020040
mov ecx, dword [0x140025488]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140021465
call fcn.140020100
mov rbx, rax
jmp 0x140021465
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14002147e
call fcn.140020100
jmp 0x1400214a6
call fcn.140020100
mov rbx, rax
jmp 0x140021461
Function at 0x140021420
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140020040
mov ecx, dword [0x140025488]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400213d8
test byte [rbx + 0x40], 0xc
jne 0x14002138f
mov eax, dword [0x14002fe48]
test eax, eax
jne 0x1400213a0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14001f2a0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x1400213c3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x1400213c3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x1400213ec
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001f590
call fcn.140020100
mov rbx, rax
test rax, rax
jne 0x14002137f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14002140a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14001f590
call fcn.140021280
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140021490
call fcn.140022540
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x1400214c8
call fcn.140020040
mov ecx, dword [0x140025488]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140021520
test esi, esi
je 0x1400214a6
call fcn.140021360
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140021500
mov edx, edi
call fcn.1400225f0
call fcn.140021360
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140020040
mov ecx, dword [0x140025488]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140021510
call fcn.140021360
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140021360
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140020040
mov ecx, dword [0x140025488]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140021465
call fcn.140020100
mov rbx, rax
jmp 0x140021465
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14002147e
call fcn.140020100
jmp 0x1400214a6
call fcn.140020100
mov rbx, rax
jmp 0x140021461

Function at 0x140021530
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.140020040
mov ecx, dword [0x140025488]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400215a0
test esi, esi
je 0x140021580
call fcn.140021360
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400215b0
mov edx, esi
call fcn.1400225f0
call fcn.140021360
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140021360
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140021360
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140020100
mov rbx, rax
jmp 0x140021551
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14002156a
Function at 0x6d8b2fa0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d8d45e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d8b3128
mov rax, qword [0x6d8d45e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d8b2fec
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d8b3075
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d8b2fd0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d8b315d
mov rax, qword [0x6d8d45e8]
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 [0x6d8d45e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d8b3140
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d8b306e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d8b30d0
add dword [0x6d8d45e4], 1
cmp edi, 8
jae 0x6d8b30a3
test dil, 4
jne 0x6d8b3114
test edi, edi
je 0x6d8b3098
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d8b312f
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 0x6d8b3098
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 0x6d8b30bc
jmp 0x6d8b3098
add rsi, qword [0x6d8d45e8]
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 0x6d8b306e
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 0x6d8b3098
xor esi, esi
jmp 0x6d8b2ff7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d8b3098
mov rax, qword [0x6d8d45e8]
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 0x6d8b38b0
Capabilities:
Get thread local storage value

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

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

Function at 0x6d8b3b60
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 0x6d8b3ba1
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 0x6d8b3b98
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d8b3ba3
add rax, 0x28
cmp rax, r9
jne 0x6d8b3b84
xor eax, eax
ret

Function at 0x6d8b3c40
Capabilities:
Enumerate pe sections

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

Function at 0x6d8b3db0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8d11f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d8b3dd0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8b3dc8
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 0x6d8b3e2d
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 0x6d8b3e24
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8b3e34
add rax, 0x28
cmp rax, r9
jne 0x6d8b3e10
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d8b3e50
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d8d11f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d8b3ebe
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8b3ebe
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d8b3ebe
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d8b3ebe
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 0x6d8b3eb5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d8b3ec5
add rcx, 0x28
cmp rcx, rax
jne 0x6d8b3ea0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d8b3ed8
jmp 0x6d8b3ebe
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d8b3ee6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d8b3ebe
test r9d, r9d
jg 0x6d8b3ed0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d8b4250
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 0x180001000
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x140
mov rax, qword gs:[0x60]
mov esi, ecx
mov rbx, qword [rax + 0x18]
mov rbx, qword [rbx + 0x20]
test ecx, ecx
jne 0x180001039
mov rax, qword [rbx + 0x20]
mov rbx, qword [rsp + 0x160]
add rsp, 0x140
pop rsi
ret
mov qword [rsp + 0x150], rbp
mov qword [rsp + 0x158], rdi
test rbx, rbx
je 0x180001105
mov ebp, 0x104
nop word [rax + rax]
mov rdi, qword [rbx + 0x50]
test rdi, rdi
je 0x1800010f9
cmp word [rbx + 0x48], bp
jae 0x1800010f9
mov r8, rbp
lea rcx, [rsp + 0x30]
xor edx, edx
call fcn.180001e20
xor r9d, r9d
cmp word [rdi], r9w
je 0x1800010d1
xor r10d, r10d
mov r11, rdi
xor eax, eax
nop word [rax + rax]
movzx r8d, byte [rax + r11]
lea eax, [r8 + 0x20]
movzx ecx, al
lea edx, [r8 - 0x41]
cmp dl, 0x19
cmova ecx, r8d
inc r9d
mov byte [rsp + r10 + 0x30], cl
mov rdi, qword [rbx + 0x50]
mov r10d, r9d
lea rax, [r9 + r9]
cmp word [rax + rdi], 0
jne 0x1800010a0
mov rcx, rdi
mov byte [rsp + r9 + 0x30], 0
call fcn.180001540
cmp eax, esi
je 0x1800011d2
lea rcx, [rsp + 0x30]
call fcn.180001540
cmp eax, esi
je 0x1800011d2
mov rbx, qword [rbx]
test rbx, rbx
jne 0x180001060
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0x208
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x1800011af
lea rbx, str.C:CodeModule_CodeNew_ModulesModule_23PayloadLoaderDllLoaderApiHashing.c
mov edx, 0x5c
mov rcx, rbx
call fcn.180001e50
test rax, rax
je 0x180001155
mov edx, 0x5c
mov rcx, rbx
call fcn.180001e50
lea rbx, [rax + 1]
mov r9, rbx
mov dword [rsp + 0x20], 0x88
mov r8d, esi
lea rdx, str.____GetModuleHandleH_Failed:_Module_Of_Hash_0x_08X_Was_Not_Found____s._d_n
mov rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0xfffffff5
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
xor r9d, r9d
mov qword [rsp + 0x20], 0
mov rcx, rax
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov rbp, qword [rsp + 0x150]
mov rdi, qword [rsp + 0x158]
mov rbx, qword [rsp + 0x160]
add rsp, 0x140
pop rsi
ret
mov rax, qword [rbx + 0x20]
jmp 0x1800011b1

Function at 0x180001540
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r8, rcx
mov eax, 0xffffffff
movzx ecx, byte [rcx]
test cl, cl
je 0x1800015ec
movsx edx, cl
lea r8, [r8 + 1]
xor eax, edx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
movzx ecx, byte [r8]
test cl, cl
jne 0x180001553
not eax
ret