joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ff6d8e944c0
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov esi, 1
lea rbx, [0x7ff6d8ef1910]
mov ebp, esi
lea r12, [0x7ff6d8ef18a0]
xor r15d, r15d
nop word [rax + rax]
mov qword [rbx + 0x10], r15
movsxd rax, ebp
lea rcx, [rax + rax*4]
add rcx, rcx
mov dword [r12 + rcx*8 + 0x38], r15d
mov qword [r12 + rcx*8 + 8], r15
mov r14, qword [rbx]
mov rdi, qword [r14 + 8]
cmp byte [rdi + 0x19], r15b
jne 0x7ff6d8e94555
nop word [rax + rax]
mov r8, qword [rdi + 0x10]
mov rdx, rbx
mov rcx, rbx
call fcn.7ff6d8e8f5a0
mov rcx, rdi
mov edx, 0x30
mov rdi, qword [rdi]
call fcn.7ff6d8e98b74
cmp byte [rdi + 0x19], r15b
je 0x7ff6d8e94530
mov qword [r14 + 8], r14
xor r8d, r8d
mov qword [r14], r14
xor edx, edx
mov qword [r14 + 0x10], r14
xor ecx, ecx
mov qword [rbx + 8], r15
call qword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov qword [rbx - 0x20], rax
test rax, rax
je 0x7ff6d8e945e0
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov qword [rbx - 0x10], rax
test rax, rax
je 0x7ff6d8e945e0
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov qword [rbx - 8], rax
test rax, rax
je 0x7ff6d8e945e0
inc ebp
add rbx, 0x50
cmp ebp, 5
jl 0x7ff6d8e94500
lea rbx, [0x7ff6d8ee00e4]
nop dword [rax]
mov edx, dword [rbx]
movsxd rcx, esi
call fcn.7ff6d8e94280
mov edi, eax
test eax, eax
jne 0x7ff6d8e945e5
inc esi
add rbx, 4
cmp esi, 4
jl 0x7ff6d8e945c0
jmp 0x7ff6d8e9466f
mov edi, 0xb
lea rbx, [0x7ff6d8ef1920]
mov esi, 3
mov rax, qword [rbx - 0x28]
test rax, rax
je 0x7ff6d8e9462a
mov rax, qword [0x7ff6d8ef3ad0]
mov rcx, qword [rbx - 0x28]
call qword [0x7ff6d8ec9610]
mov rcx, qword [rbx]
test rcx, rcx
je 0x7ff6d8e94621
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rbx], r15
mov rcx, qword [rbx - 0x18]
test rcx, rcx
je 0x7ff6d8e9463d
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rbx - 0x18], r15
mov rcx, qword [rbx - 0x20]
test rcx, rcx
je 0x7ff6d8e94650
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rbx - 0x20], r15
mov rcx, qword [rbx - 0x30]
test rcx, rcx
je 0x7ff6d8e94663
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rbx - 0x30], r15
add rbx, 0x50
sub rsi, 1
jne 0x7ff6d8e945f1
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x7ff6d8e967a0
Capabilities:
Check mutex on windows

Disassembly:
mov r11, rsp
push r14
sub rsp, 0xd0
mov rax, qword [0x7ff6d8eee010]
xor rax, rsp
mov qword [rsp + 0xb0], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x40], xmm0
mov r14, rdx
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
mov dword [r11 - 0x38], eax
mov eax, dword [0x7ff6d8ef2a94]
movups xmmword [r11 - 0x58], xmm0
movups xmmword [r11 - 0x48], xmm0
cmp eax, 1
je 0x7ff6d8e967fd
mov eax, 1
jmp 0x7ff6d8e96892
test rcx, rcx
je 0x7ff6d8e969c4
test r14, r14
je 0x7ff6d8e969c4
lea rdx, [rsp + 0x58]
call fcn.7ff6d8e97e20
test eax, eax
je 0x7ff6d8e969c4
mov ecx, 0x38
mov qword [rsp + 0xf0], rbx
call fcn.7ff6d8eac5b0
mov rbx, rax
test rax, rax
jne 0x7ff6d8e96840
lea eax, [rbx + 5]
jmp 0x7ff6d8e9688a
mov qword [rsp + 0xf8], rbp
xor r8d, r8d
xor ebp, ebp
xor edx, edx
mov qword [rax], rbp
xor ecx, ecx
mov qword [rax + 8], rbp
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rbp
mov qword [rax + 0x28], rbp
call qword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov qword [rbx + 0x30], rax
test rax, rax
jne 0x7ff6d8e968ac
mov rcx, rbx
call fcn.7ff6d8ea4cd0
lea eax, [rbp + 0xb]
mov rbp, qword [rsp + 0xf8]
mov rbx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.7ff6d8e98b50
add rsp, 0xd0
pop r14
ret
mov qword [rsp + 0xc8], rsi
mov rdx, rbx
mov ecx, 2
mov qword [rsp + 0xc0], rdi
mov dword [rbx + 0x28], 1
mov dword [rbx + 0x20], 1
call fcn.7ff6d8e937d0
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x50], 0xb
mov rsi, rax
mov dword [rsp + 0x20], ebp
lea r8d, [r9 + 0x28]
lea ecx, [r9 + 2]
call fcn.7ff6d8e93cb0
mov edi, eax
test eax, eax
jne 0x7ff6d8e96909
mov edi, dword [rbx + 8]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x7ff6d8e9691b
call fcn.7ff6d8ea4cd0
mov qword [rbx + 0x10], rbp
mov qword [rsp + 0x30], rsi
mov edx, 0xffffffff
test edi, edi
jne 0x7ff6d8e96946
mov qword [r14], rsi
mov rcx, qword [0x7ff6d8ef1958]
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
add dword [rbx + 0x28], 0xffffffff
jne 0x7ff6d8e969a0
cmp dword [rbx + 0x24], ebp
je 0x7ff6d8e969a0
jmp 0x7ff6d8e96959
mov rcx, qword [0x7ff6d8ef1958]
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
add dword [rbx + 0x28], 0xffffffff
jne 0x7ff6d8e96999
lea rdx, [rsp + 0x30]
lea rcx, [0x7ff6d8ef1960]
call fcn.7ff6d8e94e60
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x7ff6d8e9697d
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rbx + 0x30], rbp
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x7ff6d8e9698f
call fcn.7ff6d8ea4cd0
mov qword [rbx + 0x10], rbp
mov rcx, rbx
call fcn.7ff6d8ea4cd0
jmp 0x7ff6d8e969a0
mov dword [rbx + 0x24], 1
mov rcx, qword [0x7ff6d8ef1958]
call qword [sym.imp.KERNEL32.DLL_ReleaseMutex]
mov rsi, qword [rsp + 0xc8]
mov eax, edi
mov rdi, qword [rsp + 0xc0]
jmp 0x7ff6d8e96882
mov eax, 6
jmp 0x7ff6d8e96892
Function at 0x7ff6d8e98230
Capabilities:
Print debug messages

Disassembly:
test ecx, ecx
jg 0x7ff6d8e982d2
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rdi
sub rsp, 0x448
mov rax, qword [0x7ff6d8eee010]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov qword [r11 - 0x18], rsi
mov rbx, rdx
lea rsi, [r11 + 0x18]
mov edi, ecx
call fcn.7ff6d8e61f80
mov qword [rsp + 0x28], rsi
lea rdx, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], 0
mov r8d, 0x400
mov rcx, qword [rax]
call fcn.7ff6d8ea3ad4
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov rsi, qword [rsp + 0x440]
test edi, edi
jne 0x7ff6d8e982b9
lea rcx, [rsp + 0x30]
call fcn.7ff6d8e7f150
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.7ff6d8e98b50
add rsp, 0x448
pop rdi
pop rbx
ret

Function at 0x7ff6d8e98238
Capabilities:
Print debug messages

Disassembly:
test ecx, ecx
jg 0x7ff6d8e982d2
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rdi
sub rsp, 0x448
mov rax, qword [0x7ff6d8eee010]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov qword [r11 - 0x18], rsi
mov rbx, rdx
lea rsi, [r11 + 0x18]
mov edi, ecx
call fcn.7ff6d8e61f80
mov qword [rsp + 0x28], rsi
lea rdx, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], 0
mov r8d, 0x400
mov rcx, qword [rax]
call fcn.7ff6d8ea3ad4
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
mov rsi, qword [rsp + 0x440]
test edi, edi
jne 0x7ff6d8e982b9
lea rcx, [rsp + 0x30]
call fcn.7ff6d8e7f150
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.7ff6d8e98b50
add rsp, 0x448
pop rdi
pop rbx
ret

Function at 0x7ff6d8ea5e64
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x7ff6d8ea5e84
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.7ff6d8ea9824
or eax, 0xffffffff
jmp 0x7ff6d8ea5e86
xor eax, eax
add rsp, 0x28
ret

Function at 0x7ff6d8eadd80
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x7ff6d8eadbac
Function at 0x14075e058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14075e1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14075e089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14075e06f
add dl, dl
jne 0x14075e096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14075e0f6
xor eax, eax
add dl, dl
jne 0x14075e0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14075e1ad
add dl, dl
jne 0x14075e0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14075e0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14075e0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14075e0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14075e0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14075e07e
mov eax, 1
add dl, dl
jne 0x14075e106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14075e113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14075e0fb
sub eax, ebx
mov ebx, 1
jne 0x14075e14c
mov ecx, 1
add dl, dl
jne 0x14075e12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14075e13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14075e123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14075e07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14075e168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14075e175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14075e15d
cmp eax, 0x7d00
jae 0x14075e19b
cmp eax, 0x500
jb 0x14075e196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14075e07e
cmp eax, 0x7f
ja 0x14075e19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14075e07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14075e1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14075e07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x4d5030
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
je 0x4d5040
jne 0x4d5040
sub rsp, 0x28
mov rax, qword [rdx]
cmp dword [rax + 0x8c], 0
je 0x4d50eb
mov rsi, qword [rdx + 8]
mov edi, dword [rax + 0x88]
cmp dword [rdi + rsi + 0x18], 0
je 0x4d5088
jne 0x4d5088
je 0x494151b6
add r12, rsi
add rbx, rsi
je 0x4d50eb
cmp dword [rsi + rdi + 0x14], 0
je 0x4d50eb
mov r15, r8
mov r13, rcx
mov ebx, dword [rsi + rdi + 0x20]
mov r12d, dword [rsi + rdi + 0x24]
je 0x4d5069
jne 0x4d5069
je 0x7510afeb
and eax, 0x44e92375
mov esi, dword [rcx + rax]
Function at 0x4e2790
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x4e27c0
mov eax, dword [rax + 0x20]
mov dword [rdi + 0x38], eax
mov rcx, rbx
mov rdx, rsi
call r15
mov rcx, rdi
jmp 0x4e2870
xor r14d, r14d
xor edx, edx
jmp 0x4e28ff
mov rax, qword [rcx]
jmp 0x4e280b
push r15
je 0x4e28f6
jne 0x4e28f6
add byte [rax], al
add byte [rax], al
nop word cs:[rax + rax]
nop dword [rax]
mov rcx, qword [rdi + 0x10]
mov rax, qword [rcx]
jmp 0x4e28de
mov rcx, rbp
jmp 0x4e28b1
mov r15, qword [sym.imp.itmkl_beo_UteNpt2HgazewrUmZvtjloS]
je 0x4e27d2
jne 0x4e27d2
jmp 0xffffffffff4fb34d
mov rax, qword [rcx]
call qword [rax + 0x30]
jmp 0x4e2796
call qword [rax + 8]
je 0x4e2914
jne 0x4e2914
jmp 0x4ed508
jmp 0x4e28cc
call qword [rax + 0x20]
mov rcx, qword [rdi + 0x10]
mov rax, qword [rcx]
call qword [rax + 8]
test eax, eax
je 0x4e287d
jne 0x4e287d
por mm3, qword [rdx - 0x17]
je 0x4e27ed
jne 0x4e27ed
je 0xffffffff845dd62d
jmp 0x4e2821
sub rsp, 0x28
mov rdi, rcx
je 0x4e290b
jmp 0x4e2932
push rdi
push rbp
push rbx
jmp 0x4e2845
je 0x4e2920
mov rax, qword [rcx]
jmp 0x4e27ad
call fcn.004e3060
jmp 0x4e295e
jmp 0x106ac90
je 0x4e293b
je 0x4e294f
jne 0x4e294f
je 0xffffffff8dd23819
je 0x4e2925
add byte [rax], al
add byte [rax - 0x75], cl
outsd dx, dword [rsi]
adc byte [rdi], cl
test ch, cl
add byte [rax], al
add byte [rdi], cl
test edi, eax
add byte [rax], al
add byte [rax - 0x7b], cl
leave
mov rbp, qword [rdi + 0x10]
je 0x4e296f
jne 0x4e296f
test rcx, rcx
jmp 0x4e285e
call qword [rax + 0x18]
lea edx, [rax + 1]
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + 0x20]
mov rcx, qword [rdi + 0x10]
jmp 0x4e27bb
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [rax + 0x30]
test rax, rax
je 0x4e293b
mov rcx, qword [rdi + 0x10]
je 0x4e2801
jne 0x4e2801
push r14
push rsi
jmp 0x4e2857
je 0x4e2842
jne 0x4e2842
mov rcx, qword [rcx + 0x10]
je 0x4e28a8
jne 0x4e28a8
jmp 0x139e99d
test eax, eax
jmp 0x4e2918
jne 0x4e27e0
jmp 0x4e293b
xor r14d, r14d
jmp 0x4e293b
je 0x4e2935
jne 0x4e2935
jmp 0x4e287c
jne 0x4e290b
jmp 0x4fe77a
mov r14d, 1
mov eax, r14d
jmp 0x4e2942
je 0x4e281b
jne 0x4e281b
jmp 0x38adb69b
lea rbx, [rdi + 0x38]
lea rsi, [rdi + 0x3c]
jmp 0x4e27f5
cmp eax, 1
je 0x4e2892
jne 0x4e2892
je 0x93b4bb
mov rax, qword [rbp]
jmp 0x4e2838
invalid
add al, ah
dec dword [rbp + 0x29]
imul r9, rbx, 0xa2c13
Function at 0x4f8de0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov eax, dword [rdx]
mov dword [rcx + 0x10], eax
mov eax, dword [rdx + 4]
mov dword [rcx + 0x14], eax
mov eax, dword [rdx + 8]
mov dword [rcx + 0x18], eax
mov eax, dword [rdx + 0xc]
mov dword [rcx + 0x1c], eax
lea rax, [rdx + 0x10]
cmp r8d, 0x100
cmovne rax, rdx
lea r8, str.expand_32_byte_kexpand_16_byte_k
lea r9, [0x0050fbe0]
cmove r9, r8
mov edx, dword [rax]
mov dword [rcx + 0x20], edx
mov edx, dword [rax + 4]
mov dword [rcx + 0x24], edx
mov edx, dword [rax + 8]
mov dword [rcx + 0x28], edx
mov eax, dword [rax + 0xc]
mov dword [rcx + 0x2c], eax
mov dword [rcx], 0x61707865
mov rax, qword [r9 + 4]
mov qword [rcx + 4], rax
mov eax, dword [r9 + 0xc]
mov dword [rcx + 0xc], eax
ret
Function at 0x4fee90
Capabilities:
Hash data using sha512

Disassembly:
test rcx, rcx
je 0x4fef1b
mov qword [rcx + 0x48], 0
mov qword [rcx], 0
movabs rax, 0x6a09e667f3bcc908
mov qword [rcx + 8], rax
movabs rax, 0xbb67ae8584caa73b
mov qword [rcx + 0x10], rax
movabs rax, 0x3c6ef372fe94f82b
mov qword [rcx + 0x18], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rcx + 0x20], rax
movabs rax, 0x510e527fade682d1
mov qword [rcx + 0x28], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rcx + 0x30], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rcx + 0x38], rax
mov eax, 1
ret
Function at 0x4ff940
Capabilities:
Encrypt data using curve25519

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xc0
mov rsi, rdx
mov rdi, rcx
mov edx, 0x20
mov rcx, r8
mov r8, rsi
call fcn.004ff6b0
and byte [rsi], 0xf8
mov al, byte [rsi + 0x1f]
and al, 0x3f
or al, 0x40
mov byte [rsi + 0x1f], al
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov rdx, rsi
call fcn.004fc300
mov rcx, rdi
mov rdx, rbx
call fcn.004fc280
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
ret
Function at 0x4ff9a0
Capabilities:
Encrypt data using curve25519

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x198
mov qword [rsp + 0x28], rcx
xor eax, eax
nop word [rax + rax]
movzx ecx, byte [r8 + rax]
mov byte [rsp + rax + 0x30], cl
add rax, 1
cmp rax, 0x20
jne 0x4ff9c0
and byte [rsp + 0x30], 0xf8
mov al, byte [rsp + 0x4f]
and al, 0x3f
or al, 0x40
mov byte [rsp + 0x4f], al
lea rbp, [rsp + 0x140]
mov rcx, rbp
call fcn.004f9700
lea rbx, [rsp + 0x170]
mov rcx, rbx
call fcn.004f9390
lea rsi, [rsp + 0xb0]
mov rcx, rsi
mov rdx, rbp
mov r8, rbx
call fcn.004f93b0
mov rcx, rbx
mov rdx, rbx
mov r8, rbp
call fcn.004fb630
mov rcx, rbx
mov rdx, rbx
call fcn.004f9990
mov rcx, rbp
mov rdx, rsi
mov r8, rbx
call fcn.004fa130
lea rcx, [rsp + 0x80]
call fcn.004f9390
lea rdi, [rsp + 0x110]
mov rcx, rdi
call fcn.004f9370
lea rcx, [rsp + 0x50]
mov rdx, rbp
call fcn.004f96e0
lea r14, [rsp + 0xe0]
mov rcx, r14
call fcn.004f9390
mov r13d, 0xfe
xor r15d, r15d
nop word cs:[rax + rax]
nop
mov ebp, r15d
mov eax, r13d
shr rax, 3
movzx r15d, byte [rsp + rax + 0x30]
mov ecx, r13d
and cl, 7
shr r15d, cl
and r15d, 1
xor ebp, r15d
lea rsi, [rsp + 0x80]
mov rcx, rsi
lea r12, [rsp + 0x50]
mov rdx, r12
mov r8d, ebp
call fcn.004f9540
mov rcx, rdi
mov rdx, r14
mov r8d, ebp
call fcn.004f9540
lea rbp, [rsp + 0xb0]
mov rcx, rbp
mov rdx, r12
mov r8, r14
call fcn.004fb630
mov rcx, rbx
mov rdx, rsi
mov r8, rdi
call fcn.004fb630
mov rcx, rsi
mov rdx, rsi
mov r8, rdi
call fcn.004f93b0
mov rcx, rdi
mov rdx, r12
mov r8, r14
call fcn.004f93b0
mov rcx, r14
mov rdx, rbp
mov r8, rsi
call fcn.004fa130
mov rcx, rdi
mov rdx, rdi
mov r8, rbx
call fcn.004fa130
mov rcx, rbp
mov rdx, rbx
call fcn.004f9c20
mov rcx, rbx
mov rdx, rsi
call fcn.004f9c20
mov rcx, r12
mov rdx, r14
mov r8, rdi
call fcn.004f93b0
mov rcx, rdi
mov rdx, r14
mov r8, rdi
call fcn.004fb630
mov rcx, rsi
mov rdx, rbx
mov r8, rbp
call fcn.004fa130
mov rcx, rbx
mov rdx, rbx
mov r8, rbp
call fcn.004fb630
mov rcx, rdi
mov rdx, rdi
call fcn.004f9c20
mov rcx, r14
mov rdx, rbx
call fcn.004fac70
mov rcx, r12
mov rdx, r12
call fcn.004f9c20
mov rcx, rbp
mov rdx, rbp
mov r8, r14
call fcn.004f93b0
mov rcx, r14
lea rdx, [rsp + 0x140]
mov r8, rdi
call fcn.004fa130
mov rcx, rdi
mov rdx, rbx
mov r8, rbp
call fcn.004fa130
add r13d, 0xffffffff
cmp r13d, 0xffffffff
jne 0x4ffa90
lea rsi, [rsp + 0x80]
lea rdx, [rsp + 0x50]
mov rcx, rsi
mov r8d, r15d
call fcn.004f9540
lea rdi, [rsp + 0x110]
lea rdx, [rsp + 0xe0]
mov rcx, rdi
mov r8d, r15d
call fcn.004f9540
mov rcx, rdi
mov rdx, rdi
call fcn.004f9990
mov rcx, rsi
mov rdx, rsi
mov r8, rdi
call fcn.004fa130
mov rcx, qword [rsp + 0x28]
mov rdx, rsi
call fcn.004fa9a0
add rsp, 0x198
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x6d7d5710
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 0x6d7d5898
mov rax, qword [0x6d7f65e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d7d575c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d7d57e5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d7d5740
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d7d58cd
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 0x6d7d58b0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d7d57de
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d7d5840
add dword [0x6d7f65e4], 1
cmp edi, 8
jae 0x6d7d5813
test dil, 4
jne 0x6d7d5884
test edi, edi
je 0x6d7d5808
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d7d589f
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 0x6d7d5808
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 0x6d7d582c
jmp 0x6d7d5808
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 0x6d7d57de
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 0x6d7d5808
xor esi, esi
jmp 0x6d7d5767
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d7d5808
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 0x6d7d6020
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 0x6d7d6074
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 0x6d7d606b
test rsi, rsi
je 0x6d7d606b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d7d6050
lea rcx, [0x6d7f68c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d7d62b0
Capabilities:
Parse pe header

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

Function at 0x6d7d62d0
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 0x6d7d6311
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 0x6d7d6308
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d7d6313
add rax, 0x28
cmp rax, r9
jne 0x6d7d62f4
xor eax, eax
ret

Function at 0x6d7d63b0
Capabilities:
Enumerate pe sections

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

Function at 0x6d7d6520
Capabilities:
Enumerate pe sections

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

Function at 0x6d7d65c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d7f31f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d7d662e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d662e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d7d662e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d7d662e
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 0x6d7d6625
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d7d6635
add rcx, 0x28
cmp rcx, rax
jne 0x6d7d6610
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d7d6648
jmp 0x6d7d662e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d7d6656
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d7d662e
test r9d, r9d
jg 0x6d7d6640
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d7d6990
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