joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140583bc0
Capabilities:
Terminate process

Disassembly:
adc ch, al
and byte [rcx - 0x3f], 0x6b
stosb byte [rdi], al
invalid
cld
pop r11
jmp 0x140583bcd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140583bdd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140583bc5
lea eax, [rcx + 1]
jmp 0x140583beb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140583bfe
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140583be4
sub eax, 3
jb 0x140583c1e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140583c6d
sar eax, 1
movsxd rbp, eax
jb 0x140583c54
jmp 0x140583c2c
add ebx, ebx
jne 0x140583c2a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140583c54
inc ecx
add ebx, ebx
jne 0x140583c3a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140583c54
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140583c4d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140583c3c
add ecx, 2
jmp 0x140583c59
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140583b82
jmp 0x140583bcd
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0x57b000]
mov eax, dword [rdi]
or eax, eax
je 0x140583cd9
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x5831dc]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140583c7d
jns 0x140583cb2
movzx rdx, word [rdi]
add rdi, 2
jmp 0x140583cbc
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140583cd3
mov qword [rbx], rax
add rbx, 8
jmp 0x140583c9d
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140583d1d
cmp al, 0xef
ja 0x140583d05
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140583ce5
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x140583cf4
mov eax, dword [rdi]
add rdi, 4
jmp 0x140583cf4
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x247]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140583d71
sub rsp, 0xffffffffffffff80
jmp 0x14038ab60
Function at 0x140056e70
Capabilities:
Terminate process

Disassembly:
push rbp
sub rsp, 0x68
mov rcx, qword [str.KERNEL32.dll]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, dword [0x14019f168]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
xor ecx, ecx
mov rdx, rbp
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor r8d, r8d
xor eax, eax

Function at 0x140056ec0
Capabilities:
Terminate process

Disassembly:
movzx r9d, word [rbp + r8*2]
cmp r9d, 0x5c
je 0x140057298
test r9d, r9d
je 0x140056ed0
inc r8
jmp 0x140056eb6
lea r13, [rbp + rax*2 + 2]
mov rbp, qword [0x14019f174]
cmp dword [rbp], 0
je 0x140056f2e
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movzx eax, al
cmp al, byte [rbp]
je 0x140056efc
cmp al, byte [rbp + 1]
jne 0x140056fc9
movzx r8d, word [r13]
xor edx, edx
xor eax, eax
test r8d, r8d
je 0x140056f20
movzx r8d, word [r13 + rax*2]
add edx, r8d
inc eax
movzx r9d, word [r13 + rax*2]
test r9d, r9d
jne 0x140056f0a
cmp edx, dword [rbp + 4]
je 0x140056f2e
cmp edx, dword [rbp + 8]
jne 0x140056fc9
invalid
invalid

Function at 0x1400570e0
Capabilities:
Terminate process

Disassembly:
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
neg ecx
xor edx, edx
add ecx, 0x10
shr ecx, 2
mov eax, ecx
mov ebp, dword [r9 + rdx*4 + 8]
add ebp, r10d
mov dword [r8 + rdx*4 + 8], ebp
inc rdx
cmp rdx, rax
jb 0x1400570ec
jmp 0x140057105
mov edx, ecx
lea ecx, [rcx*4 + 8]
neg edx
add edx, 0xe
add rcx, r9
and edx, 0xf
neg edx
lea ebp, [rdx + 0x17fe]
add byte [rcx - 0x77], al
jmp 0x14005716d
test ecx, 0xf
je 0x140057189
movd xmm0, r10d
pshufd xmm0, xmm0, 0
nop dword [rax]
lea rcx, [r9 + rax*4 + 8]
movdqu xmm1, xmmword [rcx]
paddd xmm1, xmm0
movdqu xmmword [r8 + rax*4 + 8], xmm1
movdqu xmm2, xmmword [rcx + 0x10]
paddd xmm2, xmm0
movdqu xmmword [r8 + rax*4 + 0x18], xmm2
movdqu xmm3, xmmword [rcx + 0x20]
paddd xmm3, xmm0
movdqu xmmword [r8 + rax*4 + 0x28], xmm3
invalid
invalid

Function at 0x140057120
Capabilities:
Terminate process

Disassembly:
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
neg ecx
xor edx, edx
add ecx, 0x10
shr ecx, 2
mov eax, ecx
mov ebp, dword [r9 + rdx*4 + 8]
add ebp, r10d
mov dword [r8 + rdx*4 + 8], ebp
inc rdx
cmp rdx, rax
jb 0x1400570ec
jmp 0x140057105
mov edx, ecx
lea ecx, [rcx*4 + 8]
neg edx
add edx, 0xe
add rcx, r9
and edx, 0xf
neg edx
lea ebp, [rdx + 0x17fe]
add byte [rcx - 0x77], al
jmp 0x14005716d
test ecx, 0xf
je 0x140057189
movd xmm0, r10d
pshufd xmm0, xmm0, 0
nop dword [rax]
lea rcx, [r9 + rax*4 + 8]
movdqu xmm1, xmmword [rcx]
paddd xmm1, xmm0
movdqu xmmword [r8 + rax*4 + 8], xmm1
movdqu xmm2, xmmword [rcx + 0x10]
paddd xmm2, xmm0
movdqu xmmword [r8 + rax*4 + 0x18], xmm2
movdqu xmm3, xmmword [rcx + 0x20]
paddd xmm3, xmm0
movdqu xmmword [r8 + rax*4 + 0x28], xmm3
invalid
invalid
Function at 0x1400d2198
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rbx, r8
mov rcx, qword [rcx + 0x40]
call fcn.1400d8a38
mov rdi, rax
test rax, rax
je 0x1400d2214
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov esi, eax
test rbx, rbx
je 0x1400d220f
cmp dword [rbx], 0x40
jb 0x1400d220f
mov rcx, qword [rbp + 0x40]
xor r9d, r9d
or dword [rbx + 4], 1
xor r8d, r8d
or qword [rbx + 0x30], 0xffffffffffffffff
mov edx, 0x87
mov qword [rbx + 8], rcx
mov rcx, rdi
mov qword [rbx + 0x10], rdi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xd
jb 0x1400d220f
or dword [rbx + 4], 0x80000002
mov rax, rsi
jmp 0x1400d2218
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400d6abf
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x38
mov rcx, qword [str.KERNEL32.dll]
mov qword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, qword [str.InitOnceExecuteOnce]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
adc eax, 0x62d57
lea rcx, [rsp + 0x28]
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [0x14019f1a8]
call rax
test eax, eax
jne 0x1400d6b0a
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
add rsp, 0x38
ret

Function at 0x1400d6ae4
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x38
mov rcx, qword [str.KERNEL32.dll]
mov qword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, qword [str.InitOnceExecuteOnce]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
adc eax, 0x62d57
lea rcx, [rsp + 0x28]
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [0x14019f1a8]
call rax
test eax, eax
jne 0x1400d6b0a
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
add rsp, 0x38
ret
Function at 0x1400d91b0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x230
mov rax, qword [0x14019cfa0]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov rbx, rdx
mov rdi, rcx
test rcx, rcx
je 0x1400d8a2f
test rdx, rdx
je 0x1400d8a2f
mov rcx, rdx
call fcn.1400e9024
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x200
mov rsi, rax
call fcn.1400e17c0
mov eax, 0x100
cmp rsi, rax
ja 0x1400d89fe
mov r8d, eax
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, esi
jne 0x1400d89fe
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1400d8a0a
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.1400dbfd0
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.1400c8068
int3
sub rsp, 0x78
test rdx, rdx
je 0x1400d9218
mov r10, qword [rcx + 0x10]
test r10, r10
je 0x1400d9202
cmp qword [rcx + 0x18], 0
jne 0x1400d91fd
mov eax, dword [rcx + 0xc]
cmp eax, dword [rcx + 0x30]
jae 0x1400d921e
mov qword [rsp + 0x58], rdx
lea r9, [rsp + 0x20]
mov dword [rsp + 0x20], 0x50
mov edx, eax
mov dword [rsp + 0x24], 0x40
mov r8d, 1
mov rcx, qword [r10 + 8]
call qword [sym.imp.USER32.dll_SetMenuItemInfoW]
add rsp, 0x78
ret
mov rcx, qword [rcx + 0x20]
test rcx, rcx
je 0x1400d9218
mov rcx, qword [rcx + 0x40]
add rsp, 0x78
jmp 0x1400d8978
call fcn.1400c8068
int3
call fcn.1400c8068
int3

Function at 0x1400fc3d4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400fc138

Function at 0x1401067bc
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x140106799
call fcn.1400e4174
mov dword [rax], socket
call fcn.1400e4024
or eax, 0xffffffff
jmp 0x1401067b6
sub dword [rcx + 0x10], 1
jns 0x1401067a8
add rsp, 0x28
jmp fcn.140107960
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x140106778
Function at 0x14000720c
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.14000719c
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021170]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400205b8]
jmp 0x140007248
cmp qword [rbx + 0x18], rdi
je 0x14000724f
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000723f
jmp 0x140007269
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x1400205b8]
call fcn.140011c68
lea rcx, [0x140021170]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
invalid
invalid
jg 0x14003f679
invalid
test dl, bh
std
jp 0x14003f616
pop rcx
cmp ebx, eax
xchg dword [rax + 0x25], esp
insb byte [rdi], dx
call rbp
mov dword [rsi], ecx
mov ah, 8
add byte [rbx], dl
mov eax, 0xc3f8bbc
mov esp, 0x8f0c3f8b
mov esp, 0x8f0c3f8b
and esi, edx
invalid
xor ebx, dword [rcx + 0x51]
pop rcx
push rcx
or dh, byte [rsi - 0x7d]
push rsp
mov sil, 0x62
movabs al, byte [0x5b0985781930e287]
test dword [rcx], ecx
invalid
pop rbx
test dword [rcx], ecx
invalid
pop rbx
jbe 0x14003f6f5
mov edi, 0xd5d881b
invalid
pop rbp
or eax, 0xd6eca237
mov bh, dl
enter 0xffffffffffffcfe8, 2
invalid
lea esp, [rax + 0x3b]
xchg byte [rbx - 0x2d13cb1b], bl
out 0x10, eax
invalid
insb byte [rdi], dx
lodsd eax, dword [rsi]
scasb al, byte [rdi]
popfq
push rax
std
sub al, 0x45
loopne 0x14003f725
sbb byte [rsi + 0x3de04f1b], ch
invalid
invalid
test al, 0x37
sub cl, byte [rsi + rdi*2 + 0x5f60c2f4]
sub dword [rdi + 0x1a], 0x558c11e4
lock xchg byte [rbp + 9], bl
invalid
pop rdx
invalid

Function at 0x140007284
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x18]
mov r9, rdx
mov r8, rcx
mov qword [r11 - 0x10], rax
xor edi, edi
mov edx, 0x1000
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
je 0x14000734a
lea rcx, [0x140021170]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400205b8]
jmp 0x14000730e
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14000730b
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x1400205b8]
mov rdx, rsi
call fcn.140011c68
jmp 0x14000730e
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400072db
mov rdx, qword [0x14001f120]
lea rcx, [0x1400205b8]
mov rdi, rdx
inc rdx
mov qword [0x14001f120], rdx
lea edx, [rbx + 0x20]
call fcn.140011cb0
lea rcx, [0x140021170]
mov qword [rax], rbp
mov qword [rax + 8], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov rax, rdi
add rsp, 0x30
pop rdi
ret
Function at 0x62fc33c8
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.62fc354f
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x62fc33f9
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x62fc33df
add dl, dl
jne 0x62fc3406
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x62fc3466
xor eax, eax
add dl, dl
jne 0x62fc3415
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x62fc351d
add dl, dl
jne 0x62fc3426
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x62fc3433
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x62fc3440
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x62fc344d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x62fc345a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x62fc33ee
mov eax, 1
add dl, dl
jne 0x62fc3476
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x62fc3483
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x62fc346b
sub eax, ebx
mov ebx, 1
jne 0x62fc34bc
mov ecx, 1
add dl, dl
jne 0x62fc349e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x62fc34ab
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x62fc3493
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x62fc33ee
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x62fc34d8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x62fc34e5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x62fc34cd
cmp eax, 0x7d00
jae 0x62fc350b
cmp eax, 0x500
jb 0x62fc3506
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x62fc33ee
cmp eax, 0x7f
ja 0x62fc350e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x62fc33ee
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x62fc3542
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 0x62fc33ee
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140cb2058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140cb21df
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 0x140cb2089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cb206f
add dl, dl
jne 0x140cb2096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cb20f6
xor eax, eax
add dl, dl
jne 0x140cb20a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140cb21ad
add dl, dl
jne 0x140cb20b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cb20c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cb20d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cb20dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140cb20ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140cb207e
mov eax, 1
add dl, dl
jne 0x140cb2106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140cb2113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cb20fb
sub eax, ebx
mov ebx, 1
jne 0x140cb214c
mov ecx, 1
add dl, dl
jne 0x140cb212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140cb213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cb2123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cb207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140cb2168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140cb2175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140cb215d
cmp eax, 0x7d00
jae 0x140cb219b
cmp eax, 0x500
jb 0x140cb2196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cb207e
cmp eax, 0x7f
ja 0x140cb219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140cb207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140cb21d2
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 0x140cb207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x6d7d5bb0
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 0x6d7d5d38
mov rax, qword [0x6d7f65e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d7d5bfc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d7d5c85
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d7d5be0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d7d5d6d
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 0x6d7d5d50
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d7d5c7e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d7d5ce0
add dword [0x6d7f65e4], 1
cmp edi, 8
jae 0x6d7d5cb3
test dil, 4
jne 0x6d7d5d24
test edi, edi
je 0x6d7d5ca8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d7d5d3f
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 0x6d7d5ca8
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 0x6d7d5ccc
jmp 0x6d7d5ca8
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 0x6d7d5c7e
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 0x6d7d5ca8
xor esi, esi
jmp 0x6d7d5c07
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d7d5ca8
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 0x6d7d64c0
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 0x6d7d6514
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 0x6d7d650b
test rsi, rsi
je 0x6d7d650b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d7d64f0
lea rcx, [0x6d7f68c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d7d6750
Capabilities:
Parse pe header

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

Function at 0x6d7d6770
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 0x6d7d67b1
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 0x6d7d67a8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d7d67b3
add rax, 0x28
cmp rax, r9
jne 0x6d7d6794
xor eax, eax
ret

Function at 0x6d7d6850
Capabilities:
Enumerate pe sections

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

Function at 0x6d7d69c0
Capabilities:
Enumerate pe sections

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

Function at 0x6d7d6a60
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d7f31f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d7d6ace
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d6ace
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d7d6ace
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d7d6ace
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 0x6d7d6ac5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d7d6ad5
add rcx, 0x28
cmp rcx, rax
jne 0x6d7d6ab0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d7d6ae8
jmp 0x6d7d6ace
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d7d6af6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d7d6ace
test r9d, r9d
jg 0x6d7d6ae0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d7d6e30
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