joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180004c50
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180004c97
xor al, al
jmp 0x180004d39
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x180004cc1
xor al, al
jmp 0x180004d39
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jb 0x180004d31
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x180004d31
mov al, 1
jmp 0x180004d39
jmp 0x180004d37
xor al, al
add rsp, 0x78
ret

Function at 0x180005040
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x180021ac0]
mov qword [rsp + 0x28], rax
jmp 0x180005060
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18000508f
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x18000508d
call sub.KERNEL32.dll_GetLastError
jmp 0x180005091
jmp 0x180005052
xor eax, eax
add rsp, 0x38
ret
Function at 0x180005720
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x20], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x180021ad8], eax
je 0x18000574d
mov eax, 0x10dd
jmp 0x180005966
cmp dword [0x180021adc], 0
je 0x180005761
mov eax, dword [0x180021adc]
jmp 0x180005966
cmp qword [rsp + 0x78], 0
jne 0x180005773
mov eax, 0x57
jmp 0x180005966
cmp qword [rsp + 0x70], 0
jne 0x180005785
mov eax, 6
jmp 0x180005966
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
jne 0x1800057b7
mov dword [rsp + 0x20], 6
mov eax, dword [rsp + 0x20]
mov dword [0x180021adc], eax
mov rax, qword [rsp + 0x70]
mov qword [0x180021ae0], rax
mov eax, dword [rsp + 0x20]
jmp 0x180005966
mov ecx, 0x30
call fcn.180007880
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x180005829
mov dword [rsp + 0x20], 8
mov eax, dword [rsp + 0x20]
mov dword [0x180021adc], eax
cmp qword [rsp + 0x30], 0
je 0x180005814
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x50]
call fcn.1800078bc
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x70]
mov qword [0x180021ae0], rax
mov eax, dword [rsp + 0x20]
jmp 0x180005966
xor edx, edx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call fcn.1800056f0
mov qword [rsp + 0x38], rax
xor edx, edx
mov rcx, qword [rsp + 0x78]
call fcn.1800056f0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + 0x3e]
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x48]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp dword [rsp + 0x24], 0
je 0x180005886
movsxd rax, dword [rsp + 0x24]
cmp rax, 0x1e
jbe 0x1800058a3
mov dword [rsp + 0x20], 9
cmp dword [0x180021ad0], 0
je 0x18000589e
jmp 0x1800057ea
jmp 0x1800057e0
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x78]
cmp qword [rax + 0x50], rcx
je 0x1800058d0
mov dword [rsp + 0x20], 9
cmp dword [0x180021ad0], 0
je 0x1800058cb
jmp 0x1800057ea
jmp 0x1800057e0
mov dword [rsp + 0x28], 0
movsxd rax, dword [rsp + 0x24]
lea r9, [rsp + 0x28]
mov r8d, 0x40
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x180005907
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x1800057e0
mov rax, qword [rsp + 0x30]
mov dword [rax + 8], 1
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0x28], ecx
mov rax, qword [rsp + 0x30]
mov rcx, qword [0x180021af0]
mov qword [rax], rcx
mov rax, qword [rsp + 0x30]
mov qword [0x180021af0], rax
xor eax, eax
add rsp, 0x68
ret
Function at 0x180005970
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x180021ad8], eax
je 0x18000598b
mov eax, 0x10dd
jmp 0x180005ab0
mov rax, qword [0x180021af0]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180005a35
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x180005a00
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x180005a00
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.1800043a0
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x38]
call fcn.1800078bc
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x180005997
mov qword [0x180021af0], 0
call fcn.180004e00
mov rax, qword [0x180021ae8]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x180005a99
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x48]
call fcn.1800078bc
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x180005a51
mov qword [0x180021ae8], 0
mov dword [0x180021ad8], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x180005fe0
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x180021adc], 0
je 0x180005ffd
mov eax, dword [0x180021adc]
jmp 0x1800060c3
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x180006010
xor eax, eax
jmp 0x1800060c3
mov ecx, 0x10
call fcn.180007880
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x18000607e
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x180006063
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.1800078bc
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x180021adc], eax
mov qword [0x180021ae0], 0
mov eax, dword [rsp + 0x20]
jmp 0x1800060c3
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x180006098
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x180006039
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x180021ae8]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x180021ae8], rax
xor eax, eax
add rsp, 0x48
ret
Function at 0x18000f198
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18000f1c8
xor eax, eax
jmp 0x18000f28b
mov rbp, rbx
cmp word [rax], si
je 0x18000f1ed
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18000f1d4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18000f1d0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18000f0e8
movsxd r14, eax
test eax, eax
jne 0x18000f22b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18000f1c1
mov rcx, r14
call fcn.18000ca3c
mov rdi, rax
test rax, rax
jne 0x18000f244
xor ecx, ecx
call fcn.18000d750
jmp 0x18000f220
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18000f0e8
test eax, eax
jne 0x18000f275
mov rcx, rdi
call fcn.18000d750
jmp 0x18000f27f
xor ecx, ecx
call fcn.18000d750
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x403730
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x0040a624]
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
test esi, esi
jle 0x4038e4
mov rax, qword [0x0040a628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x40377c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x403809
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x403760
mov rcx, rbx
call fcn.00404400
test rax, rax
mov r12, rax
je 0x403919
mov rax, qword [0x0040a628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00404530
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0040a628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4038fc
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x403802
sub eax, 0x40
and eax, 0xffffffbf
jne 0x403884
add dword [0x0040a624], 1
cmp edi, 8
jae 0x403840
test dil, 4
jne 0x4038d0
test edi, edi
je 0x40382c
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x4038eb
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 0x40382c
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 0x403870
jmp 0x40382c
add rsi, qword [0x0040a628]
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 0x403802
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.004059a0
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 0x40382c
xor esi, esi
jmp 0x403787
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x40382c
mov rax, qword [0x0040a628]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rsi + 0x18]
call fcn.004059a0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.004059a0
nop
nop dword [rax]
Function at 0x404070
Capabilities:
Get thread local storage value

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

Function at 0x404400
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004075b0]
mov rdx, rcx
cmp word [r8], 0x5a4d
jne 0x40446d
mov rcx, r8
call fcn.004042e0
test eax, eax
je 0x40446d
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 0x40446d
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 0x404464
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40446f
add rax, 0x28
cmp rax, r9
jne 0x404450
xor eax, eax
add rsp, 0x28
ret

Function at 0x4059a0
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp 0x401510
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.00405830
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.00405830
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 0x4020ee
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x00424200]
test rax, rax
je 0x402101
call rax
mov ecx, 2
call qword [fcn.004169a0]
mov r8d, 0xe
mov edx, 1
lea rcx, str.out_of_memory_n
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
call sub.msvcrt.dll_fflush
mov ecx, 1
call sub.msvcrt.dll_exit
nop

Function at 0x4062f0
Capabilities:
Allocate or change rwx memory
Copy file
Delete file

Disassembly:
sub rsp, 0x38
movaps xmm0, xmmword [0x0041b750]
lea rcx, [rsp + 0x20]
movaps xmmword [rsp + 0x20], xmm0
call fcn.00405c7f
nop
add rsp, 0x38
ret
push rsi
push rbx
sub rsp, 0x48
mov r9d, 0x40
mov r8d, 0x1000
mov rbx, rdx
mov rsi, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, rbx
mov rdx, rsi
mov rcx, rax
call sub.msvcrt.dll_memmove
lea rcx, str.C:WindowsTemp_backup.log
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x38], 0
mov r9, rax
mov eax, 0x8000001
shl rax, 5
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea r8, [rsp + 0x20]
lea rdx, str.C:WindowsTemp_backup.log
lea rcx, str.C:WindowsDirectX.log
call qword [sym.imp.KERNEL32.dll_CopyFile2]
nop
sub rsp, 0x28
call fcn.00401f90
nop
add rsp, 0x28
jmp 0x4062c8
Function at 0x40fff0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00424844]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x410178
mov rax, qword [0x00424848]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x41003c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x4100c5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x410020
mov rcx, rbx
call fcn.00410c90
test rax, rax
mov r12, rax
je 0x4101ad
mov rax, qword [0x00424848]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00410dc0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00424848]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x410190
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4100be
sub eax, 0x40
and eax, 0xffffffbf
jne 0x410120
add dword [0x00424844], 1
cmp edi, 8
jae 0x4100f3
test dil, 4
jne 0x410164
test edi, edi
je 0x4100e8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x41017f
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 0x4100e8
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 0x41010c
jmp 0x4100e8
add rsi, qword [0x00424848]
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 0x4100be
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00419230
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x4100e8
xor esi, esi
jmp 0x410047
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x4100e8
mov rax, qword [0x00424848]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.00419230
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00419230
nop
nop dword [rax]

Function at 0x410900
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00424b20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00424b00]
test rbx, rbx
je 0x410954
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 0x41094b
test rsi, rsi
je 0x41094b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x410930
lea rcx, [0x00424b20]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x410c90
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x0041e7c0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x410cfd
mov rcx, r8
call fcn.00410b70
test eax, eax
je 0x410cfd
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 0x410cfd
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 0x410cf4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x410cff
add rax, 0x28
cmp rax, r9
jne 0x410ce0
xor eax, eax
add rsp, 0x28
ret

Function at 0x411a50
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [0x00424b80], 0xffffffff
mov r8d, 0xffff
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x00424b88], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x411aa0
lea rdx, [0x00411970]
mov ecx, eax
mov dword [0x00424b78], eax
call fcn.00416c50
test eax, eax
jne 0x411aaa
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x411a9b
call sub.msvcrt.dll_abort
nop
Function at 0x411ab0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x0041e6a0]
mov r11d, dword [rbx]
mov rdi, rcx
test r11d, r11d
jne 0x411ae4
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x411b40
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rsi, qword [rcx + 0x10]
test rsi, rsi
je 0x411b50
mov ebx, dword [0x00424b78]
mov r12, qword [sym.imp.KERNEL32.dll_GetLastError]
call r12
mov ebp, eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebp
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x411bc1
mov rbp, qword [rbx]
cmp rbp, rsi
jb 0x411c01
lea rbx, [rbx + rsi*8]
mov rax, qword [rbx]
test rax, rax
jne 0x411ad7
mov rcx, rdi
call fcn.004119b0
mov qword [rbx], rax
jmp 0x411ad7
call fcn.004119b0
mov qword [rdi + 0x10], rax
jmp 0x411ad7
mov r10d, dword [rbx]
test r10d, r10d
je 0x411c62
mov r9d, dword [0x0041a450]
test r9d, r9d
je 0x411c90
lock add dword [0x00424b80], 1
jne 0x411cc0
mov rsi, qword [rdi + 0x10]
test rsi, rsi
je 0x411c6f
mov eax, dword [rbx]
test eax, eax
je 0x411aed
mov eax, 0xffffffff
lock xadd dword [0x00424b80], eax
sub eax, 1
js 0x411aed
xor r8d, r8d
mov edx, 1
mov rcx, qword [0x00424b88]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x411aed
lea rcx, [rsi + 0x21]
mov edx, 8
call sub.msvcrt.dll_calloc
lea rbp, [rsi + 0x20]
test rax, rax
mov rbx, rax
je 0x411ce7
mov qword [rax], rbp
mov rdx, rbx
mov ecx, dword [0x00424b78]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x411b27
call r12
jmp 0x411b27
lea r13, [rbp + rbp]
mov rcx, rbx
lea rax, [rsi + 0x20]
cmp rsi, r13
cmova r13, rax
lea rdx, [r13*8 + 8]
call sub.msvcrt.dll_realloc
test rax, rax
mov rbx, rax
je 0x411ce7
mov qword [rax], r13
lea rcx, [rax + rbp*8 + 8]
sub r13, rbp
xor edx, edx
lea r8, [r13*8]
call sub.msvcrt.dll_memset
jmp 0x411be2
call fcn.00411a50
mov dword [0x0041a450], 1
mov edx, dword [rbx]
test edx, edx
jne 0x411b6c
mov rsi, qword [rdi + 0x10]
test rsi, rsi
jne 0x411aed
mov rax, qword [0x00424b70]
lea rsi, [rax + 1]
mov qword [0x00424b70], rsi
mov qword [rdi + 0x10], rsi
jmp 0x411b87
lock add dword [0x0041a454], 1
je 0x411c49
mov r8d, dword [0x0041a450]
lea rsi, [0x0041a450]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
test r8d, r8d
jne 0x411c58
xor ecx, ecx
call rbp
mov ecx, dword [rsi]
test ecx, ecx
je 0x411cb4
jmp 0x411c58
mov edx, 0xffffffff
mov rcx, qword [0x00424b88]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x411b7a
lock sub dword [0x00424b80], 1
jmp 0x411b7a
call sub.msvcrt.dll_abort
nop
nop dword [rax]
cmp qword [rcx], rdx
jae 0x411d00
mov qword [rcx], rdx
mov qword [rcx + 0x18], 0
cmp qword [rcx + 8], r8
jae 0x411d0a
mov qword [rcx + 8], r8
test r9, r9
je 0x411d14
cmp qword [rcx], rdx
je 0x411d15
ret
mov qword [rcx + 0x18], r9
ret

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

Disassembly:
lea rcx, [0x0041a580]
jmp fcn.00411ab0
Function at 0x419230
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.004169a0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.004169a0
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 0x140480af1
Capabilities:
Execute anti-debugging instructions

Disassembly:
dec rbp
lea rsp, [rsp + 0x10]
jne 0x140487dfe
mov r11d, 0xee08bfb8
lea r11, [r11*2 + 0xb341e98]
pop r11

Function at 0x140487de5
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov qword [rsp], r11
mov r11d, 0x55bdada3
mov eax, 0xa3a2bbb
dec r11d
lea r11, [0x140486a20]
mov eax, 0xb16669b
not rax
xor rax, 0x66b8bc0f
movzx eax, byte [rcx + rax + 0x6daeda95]
push 0x79b87288
js 0x14048b382
jle 0x14049e32e
xor eax, edx
not qword [rsp]
jmp 0x14049a457