joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d2e0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
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.140018140
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.140018140
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x14000d350
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14010e094]
mov rbx, rcx
test esi, esi
jle 0x14000d480
mov rax, qword [0x14010e098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000d39b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000d425
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000d380
mov rcx, rbx
call fcn.14000ddd0
mov rdi, rax
test rax, rax
je 0x14000d4a2
mov rax, qword [0x14010e098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000df10
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14010e098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000d487
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000d41e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14000d430
add dword [0x14010e094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14010e098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000d41e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000d2e0
nop dword [rax]
xor esi, esi
jmp 0x14000d3a8
mov rax, qword [0x14010e098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000d2e0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000d2e0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000da40
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14010e100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14010e0e0]
test rbx, rbx
je 0x14000da9c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x14000da93
test eax, eax
jne 0x14000da93
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000da78
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14000ddd0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400dae70]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000ddf0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000ddf8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000ddf0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000de4d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000de44
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000ddf0
add rax, 0x28
cmp rax, r9
jne 0x14000de30
xor eax, eax
ret

Function at 0x14000de50
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400dae70]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000de6f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000de78
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000de6f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14000df10
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400dae70]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000df2f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000df38
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x14000ee50
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2d
lea rdx, str._buffer_overflow_detected_:_terminated_n
call sub.msvcrt.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x14000ee80
mov ecx, 8
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x14000eea0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2c
lea rdx, str._stack_smashing_detected_:_terminated_n
call sub.msvcrt.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x14000eed0
mov ecx, 2
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x14001acc0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x14010ec40], 1
je 0x14001ad60
lea rdi, [0x14010ec40]
mov rcx, rdi
call fcn.14001a660
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.140019f70
mov esi, dword [0x14010ec40]
test esi, esi
jne 0x14001ad38
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400d0308], eax
cmp eax, 0xffffffff
je 0x1400cf366
mov dword [0x14010ec40], 1
mov rcx, rbp
call fcn.14001a240
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.14001a940
cmp esi, 1
je 0x14001ad1c
mov ecx, 2
call qword [fcn.140018140]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__ld_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x14001ad1c
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [0x28]
ud2

Function at 0x14001ad70
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.14001aa50
mov rbx, rax
test rax, rax
je 0x14001ae6c
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.14001a550
cmp eax, 1
je 0x14001ae78
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rsi
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1400cf36c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400d0308]
mov rdx, rbx
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400cf36c
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.14001a8b0
nop
nop

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

Disassembly:
sub rsp, 0x28
call fcn.14001acc0
mov ecx, dword [0x1400d0308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001aea0
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.14001ad70
Function at 0x14001b660
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov r12, qword [0x1400daf70]
mov rax, qword [r12]
mov qword [rsp + 0x38], rax
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x14001b7c0
cmp eax, 1
je 0x14001b6c5
call fcn.14001a660
lea r13, [rax + 8]
mov rdi, rax
mov rcx, r13
call fcn.140019f70
mov ebp, dword [rbx]
test ebp, ebp
je 0x14001b6e8
cmp ebp, 1
jne 0x14001b788
mov rcx, r13
call fcn.14001a240
mov rcx, rdi
call fcn.14001a940
xor eax, eax
mov rdx, qword [rsp + 0x38]
sub rdx, qword [r12]
jne 0x14001b80b
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rax, [0x14001aa20]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.14001acc0
mov ecx, dword [0x1400d0308]
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rbp
test rax, rax
je 0x14001b7f8
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.14001acc0
mov ecx, dword [0x1400d0308]
call rbp
test rax, rax
je 0x14001b7e0
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.14001acc0
mov ecx, dword [0x1400d0308]
call rbp
test rax, rax
je 0x14001b7d0
mov rdx, qword [rsp + 0x30]
mov rcx, r13
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
call fcn.14001a240
mov rcx, rdi
call fcn.14001a940
jmp 0x14001b6c5
mov ecx, 2
call qword [fcn.140018140]
mov r9d, ebp
mov r8, rbx
lea rdx, str._once__p_is__ld_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
mov rcx, r13
call fcn.14001a240
mov rcx, rdi
call fcn.14001a940
jmp 0x14001b6c5
mov eax, 0x16
jmp 0x14001b6c7
call fcn.14001ad70
test rax, rax
jne 0x14001b75e
jmp 0x1400cf39e
call fcn.14001ad70
test rax, rax
jne 0x14001b73b
jmp 0x1400cf38f
call fcn.14001ad70
test rax, rax
jne 0x14001b716
jmp 0x1400cf385
call fcn.14000eea0
nop
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2

Function at 0x14001ba90
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.14001acc0
mov ecx, dword [0x1400d0308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001bb08
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.14001a560
cmp esi, dword [rbx + 0x48]
jae 0x14001bae3
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x14001bae3
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.14001a5b0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.14001ad70
mov rbx, rax
jmp 0x14001babd
Function at 0x14001bb20
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.14001acc0
mov ecx, dword [0x1400d0308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001bc18
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.14001a560
mov rdi, qword [rbx + 0x50]
cmp esi, dword [rbx + 0x48]
jb 0x14001bbe3
lea r15d, [rsi + 1]
mov rcx, rdi
movsxd r14, r15d
lea rdx, [r14*8]
call sub.msvcrt.dll_realloc
mov rdi, rax
test rax, rax
je 0x14001bc25
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x14001bc25
mov eax, dword [rbx + 0x48]
mov edx, r15d
sub edx, eax
lea rcx, [rdi + rax*8]
lea r8, [rdx*8]
xor edx, edx
call sub.msvcrt.dll_memset
mov ecx, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
mov rax, rcx
add rcx, r14
sub r8d, eax
call sub.msvcrt.dll_memset
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], r14
mov dword [rbx + 0x48], r15d
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r13
mov byte [rax + rsi], 1
call fcn.14001a5b0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call fcn.14001ad70
mov rbx, rax
jmp 0x14001bb5a
mov rcx, r13
call fcn.14001a5b0
mov eax, 0xc
jmp 0x14001bc01

Function at 0x14001bcc0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001acc0
mov ecx, dword [0x1400d0308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001bce8
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.14001ad70
test rax, rax
jne 0x14001bcda
add rsp, 0x28
ret

Function at 0x14001bd50
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001acc0
mov ecx, dword [0x1400d0308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001bd78
add rax, 0x18
add rsp, 0x28
ret
call fcn.14001ad70
test rax, rax
jne 0x14001bd6a
jmp 0x14001bd6e

Function at 0x14001be90
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14010ec48]
test eax, eax
jne 0x14001bea8
xor eax, eax
add rsp, 0x28
ret
call fcn.14001acc0
mov ecx, dword [0x1400d0308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001bed8
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14001be9e
test byte [rax + 0x40], 3
je 0x14001be9e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x14001bea0
call fcn.14001ad70
test rax, rax
je 0x14001be9e
jmp 0x14001bebe

Function at 0x14001bef0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.14001acc0
mov ecx, dword [0x1400d0308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001bf30
test ebx, ebx
jle 0x14001bf20
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.14001ad70
test rax, rax
jne 0x14001bf0d
add rsp, 0x20
pop rbx
ret
Function at 0x14001c020
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001acc0
mov ecx, dword [0x1400d0308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001c098
test byte [rbx + 0x40], 0xc
jne 0x14001c04f
mov eax, dword [0x14010ec48]
test eax, eax
jne 0x14001c060
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140019f70
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001c083
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001c083
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001c0ac
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001a240
call fcn.14001ad70
mov rbx, rax
test rax, rax
jne 0x14001c03f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001c0ca
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14001a240
call fcn.14001bf40
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001c148
call fcn.140019c30
mov rsi, rax
mov eax, 0xffffffff
cmp rsi, rax
cmovbe rax, rsi
mov rdi, rax
call fcn.14001acc0
mov ecx, dword [0x1400d0308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001c190
test rsi, rsi
je 0x14001c15e
call fcn.14001c020
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001c180
mov edx, edi
call fcn.140019d00
call fcn.14001c020
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001acc0
mov ecx, dword [0x1400d0308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c1a0
call fcn.14001c020
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001c020
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001c136
call fcn.14001ad70
mov rbx, rax
jmp 0x14001c11c
call fcn.14001ad70
jmp 0x14001c15e
Function at 0x14001c0e0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001acc0
mov ecx, dword [0x1400d0308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001c098
test byte [rbx + 0x40], 0xc
jne 0x14001c04f
mov eax, dword [0x14010ec48]
test eax, eax
jne 0x14001c060
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140019f70
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001c083
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001c083
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001c0ac
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001a240
call fcn.14001ad70
mov rbx, rax
test rax, rax
jne 0x14001c03f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001c0ca
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14001a240
call fcn.14001bf40
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001c148
call fcn.140019c30
mov rsi, rax
mov eax, 0xffffffff
cmp rsi, rax
cmovbe rax, rsi
mov rdi, rax
call fcn.14001acc0
mov ecx, dword [0x1400d0308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001c190
test rsi, rsi
je 0x14001c15e
call fcn.14001c020
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001c180
mov edx, edi
call fcn.140019d00
call fcn.14001c020
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001acc0
mov ecx, dword [0x1400d0308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c1a0
call fcn.14001c020
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001c020
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001c136
call fcn.14001ad70
mov rbx, rax
jmp 0x14001c11c
call fcn.14001ad70
jmp 0x14001c15e

Function at 0x14001c1b0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.14001acc0
mov ecx, dword [0x1400d0308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001c220
test esi, esi
je 0x14001c200
call fcn.14001c020
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001c230
mov edx, esi
call fcn.140019d00
call fcn.14001c020
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001c020
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001c020
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001ad70
mov rbx, rax
jmp 0x14001c1d1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001c1ea
Function at 0x140091470
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, qword [sym.imp.msvcrt.dll__read]
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, rdi
call fcn.140091280
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call rbp
movsxd r13, eax
cmp eax, 0xffffffff
je 0x1400914c0
mov rax, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call r12
cmp dword [rax], 4
je 0x140091493
mov rax, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00405870]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x00405880]
mov dword [rax], 1
mov rax, qword [0x00405890]
mov dword [rax], 1
mov rax, qword [0x00405860]
mov dword [rax], 1
mov rax, qword [0x00405720]
cmp word [rax], 0x5a4d
je 0x4010d0
mov rax, qword [0x00405850]
mov dword [0x00408008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010c2
mov ecx, 2
call sym.__set_app_type
mov rcx, 0xffffffffffffffff
call dbg._encode_pointer
mov rdx, qword [0x004057b0]
mov qword [rdx], rax
mov rdx, qword [0x004057a0]
mov qword [rdx], rax
mov rax, qword [0x00405810]
mov edx, dword [rax]
mov rax, qword [sym.imp.msvcrt.dll__fmode]
mov rax, qword [rax]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x004056d0]
cmp dword [rax], 1
je 0x401120
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401133
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058

Function at 0x401530
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
lea rcx, section..rdata
call sym.system
lea rcx, str._n_n_n_n
call sym.puts
lea rcx, str._t_t________________
call sym.puts
lea rcx, str._t_t_t_1._
call sym.puts
lea rcx, str._t_t_t_2.
call sym.puts
lea rcx, str._t_t_t_3._
call sym.puts
lea rcx, str._t_t_t_4.
call sym.puts
lea rcx, str._t_t_t_5._
call sym.puts
lea rcx, str._t_t_t_6.
call sym.puts
lea rcx, str._t_t_t_0.
call sym.puts
lea rcx, str._t_t________________________________________________n
call sym.puts
lea rcx, [0x004051c5]
call sym.printf
nop
add rsp, 0x20
pop rbp
ret
Function at 0x402450
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rbp, dword [0x00408054]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x40256a
mov rax, qword [0x00408058]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x40249e
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x402550
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x402482
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x4025a2
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x00408058]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call dbg._GetPEImageBase
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x00408058]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x402585
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x402549
sub eax, 0x40
and eax, 0xffffffbf
je 0x402549
mov r9, rbp
add r9, qword [0x00408058]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x402571
add dword [0x00408054], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.memcpy
xor ebp, ebp
jmp 0x4024ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
mov rax, qword [0x00408058]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call dbg.__report_error
nop
nop word cs:[rax + rax]

Function at 0x403180
Capabilities:
Parse pe header

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

Function at 0x4031a0
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 0x4031e1
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 0x4031d8
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x4031e3
add rax, 0x28
cmp rax, r9
jne 0x4031c4
xor eax, eax
repz ret

Function at 0x403290
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x00405720]
cmp word [rbx], 0x5a4d
je 0x4032b0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4032a4
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp dbg._FindPESection