joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002570
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400025bd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400025b4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400025bf
add rax, 0x28
cmp rax, r9
jne 0x1400025a0
xor eax, eax
ret

Function at 0x1400025c0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002650
mov rdx, qword [0x14000f030]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000263e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000263e
cmp word [rax + 0x18], 0x20b
jne 0x14000263e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002650
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002629
add rbx, 0x28
cmp rbx, rdi
je 0x140002650
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002620
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002660
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000f030]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002680
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002688
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002680
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400026dd
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 0x1400026d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002680
add rax, 0x28
cmp rax, r9
jne 0x1400026c0
xor eax, eax
ret

Function at 0x1400026e0
Capabilities:
Parse pe header

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

Function at 0x140002720
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000f030]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002740
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002748
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002740
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002790
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002787
test rcx, rcx
je 0x140002740
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002778
xor eax, eax
ret
Function at 0x1400027a0
Capabilities:
Parse pe header

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

Function at 0x1400027e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000f030]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002800
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002808
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002800
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002800
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002854
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002860
add rdx, 0x28
cmp r9, rdx
jne 0x140002840
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002870
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14000f030]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002892
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400028a0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002892
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002892
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002892
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400028f5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002908
add rdx, 0x28
cmp rdx, r10
jne 0x1400028e0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002917
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002927
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400028fe
test ecx, ecx
jg 0x140002910
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001590
Capabilities:
Allocate or change rwx memory
Create thread
Execute command
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push rsi
push rdi
mov eax, 0x4b848
call fcn.140002870
sub rsp, rax
lea rcx, str.Translating_english_words__n
call fcn.140007f60
xor eax, eax
lea rcx, str.SATIRISING
lea rdx, section..data
jmp 0x1400015d0
mov byte [rsp + rax + 0x40], r9b
inc rax
cmp rax, 0x4b804
je 0x1400015f7
mov r8, qword [rcx + rax*8]
mov r10, rdx
xor r9d, r9d
nop word [rax + rax]
cmp qword [r10], r8
je 0x1400015c0
inc r9
add r10, 8
cmp r9, 0x100
jne 0x1400015e0
jmp 0x1400015c5
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, 0x1fffff
xor edx, edx
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
mov dword [rsp + 0x20], 0x40
mov r8d, 0x4b803
mov rcx, rax
xor edx, edx
mov r9d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x40]
mov r9d, 0x4b803
mov rcx, rsi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
mov r9, rdi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.pause
call sub.msvcrt.dll_system
nop
add rsp, 0x4b848
pop rdi
pop rsi
ret

Function at 0x140001ab0
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.1400078c0
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.1400078c0
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 0x140001b20
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14027d094]
mov rbx, rcx
test esi, esi
jle 0x140001c50
mov rax, qword [0x14027d098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001b6b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001bf5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001b50
mov rcx, rbx
call fcn.140002590
mov rdi, rax
test rax, rax
je 0x140001c72
mov rax, qword [0x14027d098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400026d0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14027d098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001c57
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001bee
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001c00
add dword [0x14027d094], 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 [0x14027d098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001bee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001ab0
nop dword [rax]
xor esi, esi
jmp 0x140001b78
mov rax, qword [0x14027d098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001ab0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001ab0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002200
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14027d100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14027d0e0]
test rbx, rbx
je 0x14000225c
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 0x140002253
test eax, eax
jne 0x140002253
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002238
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 0x140002590
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1402797a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400025b0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400025b8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400025b0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000260d
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 0x140002604
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400025b0
add rax, 0x28
cmp rax, r9
jne 0x1400025f0
xor eax, eax
ret

Function at 0x140002610
Capabilities:
Parse pe header

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

Function at 0x1400026d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1402797a0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400026ef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400026f8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1400102f0
Capabilities:
Parse credit card information

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov r14, qword [rsp + 0x70]
mov edx, r9d
call fcn.14000b2f0
mov qword [rsi + 0xb0], rbx
mov qword [rsi + 0xb8], rdi
mov rcx, qword [sym.imp.libstdc_6.dll_std::ctype_char_::id]
call fcn.1400017e0
mov rcx, qword [r14]
cmp rax, qword [rcx + 0x10]
jae 0x140010404
mov rcx, qword [rcx + 8]
mov rax, qword [rcx + rax*8]
test rax, rax
je 0x140010404
mov qword [rsi + 0xc0], rax
lea rax, [rsi + 0xd8]
mov qword [rsi + 0xc8], rax
mov qword [rsi + 0xd0], 0
mov byte [rsi + 0xd8], 0
test byte [rsi + 0x8c], 0x10
lea rax, [0x1400101e0]
lea rcx, [0x14000fcb0]
cmove rcx, rax
mov qword [rsi + 0xe8], rcx
mov qword [rsi + 0xf0], 0
mov rax, qword [rsi + 0xb0]
cmp rax, qword [rsi + 0xb8]
je 0x1400103ce
mov eax, dword [rsi + 0x88]
cmp eax, 2
je 0x1400103e2
cmp eax, 1
je 0x1400103f3
test eax, eax
jne 0x1400103d8
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.14000f580
mov dword [rsi + 0x90], 0x1b
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140010050
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.14000f8f0
call fcn.140001760
int3
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004430]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004440]
mov dword [rax], 1
mov rax, qword [0x140004450]
mov dword [rax], 1
mov rax, qword [0x1400043d0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140004420]
mov dword [0x14000700c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400044f0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400044d0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140004380]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001600
Capabilities:
Acquire debug privileges
Create thread
Get memory capacity

Disassembly:
sub rsp, 0x38
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov qword [0x140003208], rax
lea r8, [0x140003210]
mov rcx, rax
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea rdx, str.SeDebugPrivilege
lea r8, [0x14000321c]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
lea r8, [0x140003218]
mov rcx, qword [0x140003210]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor edx, edx
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [0x140003210]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
call qword [sym.imp.KERNEL32.DLL_GetProcessHeap]
mov qword [0x140003228], rax
mov r8d, dword [0x140003238]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov qword [0x140003230], rax
lea rcx, [0x140003240]
call qword [sym.imp.KERNEL32.DLL_GlobalMemoryStatusEx]
xor ecx, ecx
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.DLL_CreateEventA]
mov qword [0x140003280], rax
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [sym.ThreadProc]
xor ecx, ecx
xor edx, edx
xor r9d, r9d
call qword [sym.imp.KERNEL32.DLL_CreateThread]
mov qword [0x140003288], rax
add rsp, 0x38
ret
Function at 0x140001720
Capabilities:
Check for time delay via queryperformancecounter
Enumerate process modules

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r15, qword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
lea rdi, [0x14000323c]
mov r12, qword [sym.imp.KERNEL32.DLL_HeapReAlloc]
mov r13, qword [sym.imp.KERNEL32.DLL_OpenProcess]
lea rbx, [0x1400032a0]
mov rbp, qword [sym.imp.KERNEL32.DLL_CloseHandle]
lea r14, [0x1400032f0]
lea rcx, [0x1400032e8]
call r15
mov rcx, qword [0x140003230]
mov edx, dword [0x140003238]
mov r8, rdi
call sub.PSAPI.DLL_EnumProcesses
mov r9d, dword [0x140003238]
mov ecx, dword [0x14000323c]
cmp r9d, ecx
jne 0x1400017bc
add r9d, 4
mov dword [0x140003238], r9d
mov rcx, qword [0x140003228]
mov r8, qword [0x140003230]
xor edx, edx
call r12
mov rcx, rax
mov qword [0x140003230], rax
jmp 0x140001772
shr rcx, 2
mov qword [0x140003290], rcx
mov rax, qword [0x140003248]
xor edx, edx
div rcx
mov qword [0x140003298], rax
xor esi, esi
cmp rsi, rcx
jae 0x140001840
mov rax, qword [0x140003230]
mov r8d, dword [rax + rsi*4]
mov ecx, 0x500
xor edx, edx
call r13
mov qword [0x140003208], rax
mov r8d, dword [0x1400032a0]
mov rcx, rax
mov rdx, rbx
call sub.PSAPI.DLL_GetProcessMemoryInfo
mov rax, qword [0x1400032b0]
cmp rax, qword [0x140003298]
jbe 0x14000182b
mov rcx, qword [0x140003208]
call sub.PSAPI.DLL_EmptyWorkingSet
mov rcx, qword [0x140003208]
call rbp
inc rsi
mov rcx, qword [0x140003290]
jmp 0x1400017dc
and qword [0x140003208], 0
mov rcx, r14
call r15
mov rdx, qword [0x1400032f0]
sub rdx, qword [0x1400032e8]
mov qword [0x1400032f0], rdx
mov rcx, qword [0x140003280]
shr edx, 6
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x102
je 0x140001761
xor eax, eax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140001b70
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 dbg.__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 dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001be0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400070c4]
mov rbx, rcx
test esi, esi
jle 0x140001d10
mov rax, qword [0x1400070c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001c2b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001cb5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001c10
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001d32
mov rax, qword [0x1400070c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400070c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.DLL_VirtualQuery]
test rax, rax
je 0x140001d17
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001cae
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001cc0
add dword [0x1400070c4], 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 [0x1400070c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.DLL_VirtualProtect]
test eax, eax
jne 0x140001cae
call qword [sym.imp.KERNEL32.DLL_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001c38
mov rax, qword [0x1400070c8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400022a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007120]
mov rcx, r12
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov rbx, qword [0x140007100]
test rbx, rbx
je 0x1400022fc
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 eax, eax
jne 0x1400022f3
test rsi, rsi
je 0x1400022f3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400022d8
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 0x140002510
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002528
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002530
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002540
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000258d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002584
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000258f
add rax, 0x28
cmp rax, r9
jne 0x140002570
xor eax, eax
ret

Function at 0x140002590
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002620
mov rdx, qword [0x1400043d0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000260e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000260e
cmp word [rax + 0x18], 0x20b
jne 0x14000260e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002620
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400025f9
add rbx, 0x28
cmp rbx, rdi
je 0x140002620
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400025f0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002630
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400043d0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002650
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002658
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002650
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400026ad
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 0x1400026a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002650
add rax, 0x28
cmp rax, r9
jne 0x140002690
xor eax, eax
ret

Function at 0x1400026b0
Capabilities:
Parse pe header

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

Function at 0x1400026f0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400043d0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002710
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002718
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002710
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002760
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002757
test rcx, rcx
je 0x140002710
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002748
xor eax, eax
ret