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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov r9, rcx
xor ecx, ecx
movabs r8, 0xcbf29ce484222325
mov rsi, rdx
movzx eax, byte [rbx + rcx + 0x10]
movabs rdx, 0x100000001b3
xor r8, rax
inc rcx
imul r8, rdx
cmp rcx, 4
jb 0x14000905c
mov rdx, qword [r9 + 0x30]
mov rcx, qword [r9 + 0x18]
and rdx, r8
add rdx, rdx
cmp qword [rcx + rdx*8 + 8], rbx
jne 0x1400090b3
cmp qword [rcx + rdx*8], rbx
jne 0x1400090a8
mov rax, qword [r9 + 8]
mov qword [rcx + rdx*8], rax
mov rcx, qword [r9 + 0x18]
mov rax, qword [r9 + 8]
jmp 0x1400090ac
mov rax, qword [rbx + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x1400090c0
cmp qword [rcx + rdx*8], rbx
jne 0x1400090c0
mov rax, qword [rbx]
mov qword [rcx + rdx*8], rax
mov rax, qword [rbx + 8]
mov rdi, qword [rbx]
mov qword [rax], rdi
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
dec qword [r9 + 0x10]
mov rdx, qword [rbx + 0x30]
cmp rdx, 8
jb 0x1400090f5
mov rcx, qword [rbx + 0x18]
inc rdx
mov r8d, 2
call fcn.1400020a4
mov edx, 1
mov rcx, rbx
lea r8d, [rdx + 0x37]
call fcn.1400020a4
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov qword [rsi], rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14000b51c
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_1.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400148a0], eax
call fcn.14000b2a4
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_UnhandledExceptionFilter]
cmp dword [0x1400148a0], 0
jne case.default.0x14000b572
mov ecx, 1
call fcn.14000b2a4
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_TerminateProcess]
cmp al, 0xfd
movabs byte [0x767dd949d2a79b5b], al
add al, 0x5d
pop rax
invalid
Function at 0x402ffd
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov r12, rdx
test rcx, rcx
je 0x40310f
mov rax, qword [rcx]
test rax, rax
jle 0x40310f
mov dl, byte [rcx + 0x10]
or rbp, 0xffffffffffffffff
cmp dl, 0x2b
je 0x40303a
xor ebx, ebx
cmp dl, 0x2d
jne 0x403048
mov ebp, 1
dec rax
je 0x40310f
mov ebx, 1
mov al, byte [rdi + rbx + 0x10]
sub eax, 0x30
cmp al, 9
ja 0x40310f
mov qword [r12], 0
movabs rsi, 0x7fffffffffffffd0
cmp qword [rdi], rbx
mov r8, qword [r12]
jle 0x403089
test rbx, rbx
jns 0x40307c
mov rdx, qword [rdi]
jmp 0x4030d6
movzx eax, byte [rdi + rbx + 0x10]
lea edx, [rax - 0x30]
cmp dl, 9
jbe 0x403091
cmp rbp, 0xffffffffffffffff
jne 0x4030fe
jmp 0x4030f0
lea rcx, [rax - 0x30]
add rax, rsi
mov r9d, 0xa
cqo
idiv r9
cmp rax, r8
jle 0x4030af
call fcn.0043b795
jmp 0x4030c3
imul rax, r8, 0xa
jno 0x4030ba
call fcn.0044097b
sub rax, rcx
jo 0x4030b5
mov qword [r12], rax
add rbx, 1
jo 0x4030b5
mov rdx, qword [rdi]
cmp rdx, rbx
jle 0x403069
test rbx, rbx
jns 0x4030e1
dec rdx
mov rcx, rbx
call fcn.00441535
cmp byte [rdi + rbx + 0x10], 0x5f
jne 0x403069
add rbx, 1
jno 0x4030cc
jmp 0x4030b5
mov eax, 1
shl rax, 0x3f
cmp r8, rax
je 0x40310a
imul r8, rbp
jo 0x4030b5
mov qword [r12], r8
jmp 0x403111
call fcn.0043b795
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x41db88
Capabilities:
Encode data using xor
Hash data using murmur3
Resolve function by parsing pe exports

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [rcx]
and eax, 0x3f
mov byte [rcx + rax + 0x28], pe_nt_image_headers64
mov rbx, rcx
inc rax
lea rsi, [rcx + 0x28]
lea rdi, [rcx + 8]
cmp rax, 0x38
jne 0x41dbde
mov eax, dword [rbx]
mov ecx, dword [rbx + 4]
mov edx, eax
shl eax, 3
shr edx, 0x1d
mov dword [rbx], eax
bswap eax
lea edx, [rdx + rcx*8]
mov rcx, rdi
mov dword [rbx + 0x64], eax
mov dword [rbx + 4], edx
bswap edx
mov dword [rbx + 0x60], edx
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp fcn.00403c6f
cmp rax, 0x40
jne 0x41dbf1
mov rdx, rsi
mov rcx, rdi
call fcn.00403c6f
xor eax, eax
mov byte [rbx + rax + 0x28], 0
inc rax
jmp 0x41dba7

Function at 0x41e2f2
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x138
lea rbp, [rsp + 0x20]
mov rbx, rcx
mov r13, rdx
mov edx, 0x40
mov rcx, rbp
lea rsi, [rsp + 0xc8]
lea r12, [rbx + 0x68]
mov rdi, rbx
mov qword [rsp + 0x180], r8
call fcn.00407b5f
mov rcx, rsi
mov edx, 0x68
call fcn.00407b5f
mov ecx, 0x1a
mov edx, 0x68
rep movsd dword [rdi], dword [rsi]
lea rsi, [rsp + 0x60]
lea rdi, [rbx + 0x68]
mov rcx, rsi
call fcn.00407b5f
mov r8, qword [rsp + 0x180]
mov ecx, 0x1a
movabs r9, 0xbb67ae856a09e667
rep movsd dword [rdi], dword [rsi]
mov qword [rbx + 0x70], r9
movabs rcx, 0xa54ff53a3c6ef372
movabs rdx, 0x9b05688c510e527f
movabs rax, 0x5be0cd191f83d9ab
test r8, r8
mov qword [rbx + 0x78], rcx
mov qword [rbx + 0x68], 0
mov qword [rbx + 0x80], rdx
mov qword [rbx + 0x88], rax
jle 0x41e3c5
cmp r8, 0x40
jg 0x41e3c9
mov ecx, r8d
mov rdi, rbp
mov rsi, r13
rep movsb byte [rdi], byte [rsi]
xor eax, eax
jmp 0x41e43d
mov qword [rbx + 0x20], rax
mov qword [rbx + 8], r9
mov qword [rbx + 0x10], rcx
mov rcx, rbx
mov qword [rbx + 0x18], rdx
mov rdx, r13
mov qword [rbx], 0
call fcn.0041daea
mov rcx, rbx
call fcn.0041db88
mov eax, dword [rbx + 8]
bswap eax
mov dword [rsp + 0x20], eax
mov eax, dword [rbx + 0xc]
bswap eax
mov dword [rsp + 0x24], eax
mov eax, dword [rbx + 0x10]
bswap eax
mov dword [rsp + 0x28], eax
mov eax, dword [rbx + 0x14]
bswap eax
mov dword [rsp + 0x2c], eax
mov eax, dword [rbx + 0x18]
bswap eax
mov dword [rsp + 0x30], eax
mov eax, dword [rbx + 0x1c]
bswap eax
mov dword [rsp + 0x34], eax
mov eax, dword [rbx + 0x20]
bswap eax
mov dword [rsp + 0x38], eax
mov eax, dword [rbx + 0x24]
bswap eax
mov dword [rsp + 0x3c], eax
jmp 0x41e3c5
mov dl, byte [rbp + rax]
mov ecx, edx
xor edx, 0x36
xor ecx, 0x5c
mov byte [rbx + rax + 0xd0], dl
mov byte [rbx + rax + 0x110], cl
inc rax
cmp rax, 0x40
jne 0x41e43d
mov qword [rbx], 0
lea rdx, [rbx + 0xd0]
mov rcx, rbx
movabs rax, 0xbb67ae856a09e667
mov qword [rbx + 8], rax
mov r8d, 0x40
movabs rax, 0xa54ff53a3c6ef372
mov qword [rbx + 0x10], rax
movabs rax, 0x9b05688c510e527f
mov qword [rbx + 0x18], rax
movabs rax, 0x5be0cd191f83d9ab
mov qword [rbx + 0x20], rax
call fcn.0041daea
lea rdx, [rbx + 0x110]
mov r8d, 0x40
mov rcx, r12
call fcn.0041daea
nop
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x434faf
Capabilities:
Hash data using murmur3

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rsi, rcx
test rcx, rcx
je 0x434fce
mov rbx, qword [rcx]
add rsi, 0x10
test rbx, rbx
jns 0x434fd0
call fcn.00441207
xor ebx, ebx
lea r8, [rsp + 0x28]
mov edx, 4
mov rcx, rbx
call fcn.00414651
test al, al
je 0x434feb
call fcn.0044097b
imul r9, qword [rsp + 0x28], 4
mov r8d, 0
mov edx, 0
jo 0x434fe6
cmp r9, r8
jg 0x43500e
mov r9, rbx
xor eax, eax
and r9d, 3
jmp 0x435068
test r8, r8
js 0x435018
cmp r8, rbx
jl 0x435021
lea rdx, [rbx - 1]
mov rcx, r8
jmp 0x435073
mov ecx, dword [rsi + r8]
add r8, 4
jo 0x434fe6
imul ecx, ecx, 0xcc9e2d51
rol ecx, 0xf
imul eax, ecx, 0x1b873593
xor eax, edx
rol eax, 0xd
lea eax, [rax + rax*4]
lea edx, [rax - 0x19ab949c]
jmp 0x434ffe
dec r9
mov rcx, r8
add rcx, r9
jo 0x434fe6
test rcx, rcx
js 0x43506f
cmp rcx, rbx
jge 0x43506f
movzx ecx, byte [rsi + rcx]
shl eax, 8
or eax, ecx
test r9, r9
jne 0x43504a
jmp 0x435078
lea rdx, [rbx - 1]
call fcn.00441535
imul eax, eax, 0xcc9e2d51
xor edx, ebx
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, edx
mov edx, eax
shr edx, 0x10
xor eax, edx
imul eax, eax, 0x85ebca6b
mov edx, eax
shr edx, 0xd
xor eax, edx
imul eax, eax, 0xc2b2ae35
mov edx, eax
shr edx, 0x10
xor eax, edx
add rsp, 0x38
pop rbx
pop rsi
ret

Function at 0x43edc9
Capabilities:
Write file on windows

Disassembly:
push rdi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rbx, rcx
mov r10, rdx
test rdx, rdx
je 0x43edf2
mov rdi, rdx
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasb al, byte [rdi]
mov rdx, rcx
not rdx
lea r8, [rdx - 1]
mov rcx, r10
mov r9, rbx
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rdi
jmp fcn.004479b8

Function at 0x441190
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov edx, 0x30
mov rdi, rcx
mov rcx, qword [0x00466f90]
call fcn.0043e9c9
mov rcx, rdi
mov rbx, rax
mov rax, qword [0x004669b0]
mov rsi, qword [rbx + 0x18]
mov qword [rbx], rax
lea rax, str.IndexDefect
mov qword [rbx + 0x10], rax
call fcn.0043e965
mov qword [rbx + 0x18], rax
test rsi, rsi
je 0x4411e0
mov rcx, rsi
call fcn.0043f93b
mov qword [rsp + 0x20], 0x36
lea r9, str.fatal.nim
mov rcx, rbx
lea r8, str.sysFatal
lea rdx, str.IndexDefect
call fcn.0044073e
nop

Function at 0x441207
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
lea rcx, [0x004653a0]
call fcn.00441190
nop

Function at 0x441218
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov edx, 0x30
mov rdi, rcx
mov rcx, qword [0x00467380]
call fcn.0043e9c9
mov rcx, rdi
mov rbx, rax
mov rax, qword [0x00466f20]
mov rsi, qword [rbx + 0x18]
mov qword [rbx], rax
lea rax, str.RangeDefect
mov qword [rbx + 0x10], rax
call fcn.0043e965
mov qword [rbx + 0x18], rax
test rsi, rsi
je 0x441268
mov rcx, rsi
call fcn.0043f93b
mov qword [rsp + 0x20], 0x36
lea r9, str.fatal.nim
mov rcx, rbx
lea r8, str.sysFatal
lea rdx, str.RangeDefect
call fcn.0044073e
nop

Function at 0x44128f
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
lea rcx, [0x004651a0]
call fcn.00441218
nop
Function at 0x4412a0
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov edx, 0x30
mov rdi, rcx
mov rcx, qword [0x00466f30]
call fcn.0043e9c9
mov rcx, rdi
mov rbx, rax
mov rax, qword [0x00466730]
mov rsi, qword [rbx + 0x18]
mov qword [rbx], rax
lea rax, str.AssertionDefect
mov qword [rbx + 0x10], rax
call fcn.0043e965
mov qword [rbx + 0x18], rax
test rsi, rsi
je 0x4412f0
mov rcx, rsi
call fcn.004079ac
mov qword [rsp + 0x20], 0x36
lea r9, str.fatal.nim
mov rcx, rbx
lea r8, str.sysFatal
lea rdx, str.AssertionDefect
call fcn.0044073e
nop

Function at 0x441317
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [0x00467b90]
mov rcx, qword [rax]
test rcx, rcx
je 0x441331
call fcn.004406e8
mov rcx, qword [0x00467390]
mov edx, 0x30
call fcn.0043e9c9
lea rcx, [0x004652a0]
mov rbx, rax
mov rax, qword [0x004673e0]
mov rsi, qword [rbx + 0x18]
mov qword [rbx], rax
lea rax, str.ReraiseDefect
mov qword [rbx + 0x10], rax
call fcn.0043e965
mov qword [rbx + 0x18], rax
test rsi, rsi
je 0x44137b
mov rcx, rsi
call fcn.0043f93b
mov qword [rsp + 0x20], 0x36
lea r9, str.fatal.nim
mov rcx, rbx
lea r8, str.sysFatal
lea rdx, str.ReraiseDefect
call fcn.0044073e
nop

Function at 0x4413a2
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x148
mov byte [rsp + 0x2f], 1
mov al, byte [rsp + 0x2f]
mov rsi, rcx
mov qword [rsp + 0x168], rdx
test al, al
je 0x4413f2
mov ecx, 2
call qword [fcn.00447a60]
mov r8, qword [rsp + 0x168]
mov rcx, rsi
mov edx, 1
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
call fcn.004479b8
nop
add rsp, 0x148
pop rbx
pop rsi
ret

Function at 0x441700
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rsi, qword [fcn.00447a60]
xor ebx, ebx
mov qword [rsp + 0x28], rdx
mov r13, rcx
mov r15, qword [r13 + rbx*8]
mov ecx, 1
mov ebp, 0x80000000
mov r12d, 0xffffffff
call rsi
mov rcx, r15
mov rdi, rax
call fcn.004134e5
lea rdx, [0x00464ec1]
mov rcx, rdi
mov r8, rax
call sub.msvcrt.dll_fprintf
movsxd r14, eax
xor edx, edx
test r15, r15
je 0x441762
mov rdx, qword [r15]
cmp r14, rdx
jge 0x4417d1
test eax, eax
jns 0x441782
or rdx, 0xffffffffffffffff
test r15, r15
je 0x44177a
mov rdx, qword [r15]
dec rdx
mov rcx, r14
call fcn.00441535
cmp byte [r15 + r14 + 0x10], 0
jne 0x4417aa
xor ecx, ecx
mov rdx, rdi
call sub.msvcrt.dll_fputc
test eax, eax
jne 0x4417d1
lea rax, [r14 + 1]
lea rdx, [rax + rbp]
cmp rdx, r12
jbe 0x441755
call fcn.0044097b
mov rdx, qword [r15]
cmp r14, rdx
jge 0x441777
lea r8, [r15 + r14 + 0x10]
lea rdx, [0x00464ec1]
mov rcx, rdi
call sub.msvcrt.dll_fprintf
test eax, eax
jle 0x4417d1
cdqe
add rax, r14
jmp 0x44179c
inc rbx
cmp qword [rsp + 0x28], rbx
jne 0x441721
mov ecx, 1
call rsi
mov r8d, 1
mov edx, 1
lea rcx, [0x00464c8b]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rsi
mov rcx, rax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.004479b8
Function at 0x442a00
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00497ca4]
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
test esi, esi
jle 0x442bb4
mov rax, qword [0x00497ca8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x442a4c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x442ad9
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x442a30
mov rcx, rbx
call fcn.004436d0
test rax, rax
mov r12, rax
je 0x442be9
mov rax, qword [0x00497ca8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00443800
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00497ca8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x442bcc
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x442ad2
sub eax, 0x40
and eax, 0xffffffbf
jne 0x442b54
add dword [0x00497ca4], 1
cmp edi, 8
jae 0x442b10
test dil, 4
jne 0x442ba0
test edi, edi
je 0x442afc
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x442bbb
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rbp]
mov qword [rbx], rax
mov eax, edi
mov rdx, qword [rbp + rax - 8]
mov qword [rbx + rax - 8], rdx
lea rax, [rbx + 8]
and rax, 0xfffffffffffffff8
sub rbx, rax
sub rbp, rbx
add ebx, edi
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x442afc
and ebx, 0xfffffff8
xor edx, edx
mov ecx, edx
add edx, 8
mov r8, qword [rbp + rcx]
cmp edx, ebx
mov qword [rax + rcx], r8
jb 0x442b40
jmp 0x442afc
add rsi, qword [0x00497ca8]
mov rcx, qword [rsp + 0x20]
mov r8d, 0x40
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 0x442ad2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0044e0c0
nop dword [rax + rax]
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x442afc
xor esi, esi
jmp 0x442a57
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x442afc
mov rax, qword [0x00497ca8]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rsi + 0x18]
call fcn.0044e0c0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.0044e0c0
nop
nop dword [rax]
Function at 0x443340
Capabilities:
Get thread local storage value

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

Function at 0x4436d0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00467a20]
mov rdx, rcx
cmp word [r8], 0x5a4d
jne 0x44373d
mov rcx, r8
call fcn.004435b0
test eax, eax
je 0x44373d
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 0x44373d
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 0x443734
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x44373f
add rax, 0x28
cmp rax, r9
jne 0x443720
xor eax, eax
add rsp, 0x28
ret

Function at 0x44e0c0
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp fcn.00401510
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 fcn.00447a60
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
mov r8d, 0x1b
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.00447a60
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x6d8b6980
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d8d75e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d8b6b08
mov rax, qword [0x6d8d75e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d8b69cc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d8b6a55
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d8b69b0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d8b6b3d
mov rax, qword [0x6d8d75e8]
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 [0x6d8d75e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d8b6b20
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d8b6a4e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d8b6ab0
add dword [0x6d8d75e4], 1
cmp edi, 8
jae 0x6d8b6a83
test dil, 4
jne 0x6d8b6af4
test edi, edi
je 0x6d8b6a78
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d8b6b0f
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 0x6d8b6a78
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 0x6d8b6a9c
jmp 0x6d8b6a78
add rsi, qword [0x6d8d75e8]
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 0x6d8b6a4e
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 0x6d8b6a78
xor esi, esi
jmp 0x6d8b69d7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d8b6a78
mov rax, qword [0x6d8d75e8]
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 0x6d8b7290
Capabilities:
Get thread local storage value

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

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

Function at 0x6d8b7540
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 0x6d8b7581
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 0x6d8b7578
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d8b7583
add rax, 0x28
cmp rax, r9
jne 0x6d8b7564
xor eax, eax
ret

Function at 0x6d8b7620
Capabilities:
Enumerate pe sections

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

Function at 0x6d8b7790
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8d41f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d8b77b0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8b77a8
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 0x6d8b780d
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 0x6d8b7804
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8b7814
add rax, 0x28
cmp rax, r9
jne 0x6d8b77f0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d8b7830
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d8d41f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d8b789e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8b789e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d8b789e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d8b789e
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 0x6d8b7895
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d8b78a5
add rcx, 0x28
cmp rcx, rax
jne 0x6d8b7880
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d8b78b8
jmp 0x6d8b789e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d8b78c6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d8b789e
test r9d, r9d
jg 0x6d8b78b0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d8b7c30
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