joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d512c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400d0bc4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400d51b6
cmp byte [rbp - 0x21], r15b
je 0x1400d51b1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400d51ec
call fcn.1400d3244
test eax, eax
jne 0x1400d51d8
cmp byte [rbp - 0x21], r15b
je 0x1400d51d0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400d51ec
cmp byte [rbp - 0x21], r15b
je 0x1400d51e9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400d01a0
test eax, eax
jne 0x1400d528c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400d0bc4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400d522b
cmp byte [rbp - 0x21], r15b
je 0x1400d5260
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400d5260
call fcn.1400d3244
test eax, eax
jne 0x1400d524c
cmp byte [rbp - 0x21], r15b
je 0x1400d5245
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400d5260
cmp byte [rbp - 0x21], r15b
je 0x1400d525d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400d01a0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400d528c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400d528f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400d529d
mov rcx, rdi
call fcn.1400d0150
cmp byte [rbp + 0x3f], r15b
je 0x1400d52ac
mov rcx, qword [rbp + 0x27]
call fcn.1400d0150
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400db9b0
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov ebx, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.140027220
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400dba0e
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x1400dba98
not rdx
shr rdx, 0x3f
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.1400605d0
mov rdi, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x1400dba6d
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x1400dba80
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bx
xor eax, eax
mov qword [rsi], rax
mov byte [rdi], 0
test r14, r14
je 0x1400dba98
mov edx, 1
mov rcx, rdi
call fcn.1400605d0
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x141473058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1414731df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141473089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14147306f
add dl, dl
jne 0x141473096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1414730f6
xor eax, eax
add dl, dl
jne 0x1414730a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1414731ad
add dl, dl
jne 0x1414730b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1414730c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1414730d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1414730dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1414730ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14147307e
mov eax, 1
add dl, dl
jne 0x141473106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141473113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1414730fb
sub eax, ebx
mov ebx, 1
jne 0x14147314c
mov ecx, 1
add dl, dl
jne 0x14147312e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14147313b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141473123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14147307e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141473168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141473175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14147315d
cmp eax, 0x7d00
jae 0x14147319b
cmp eax, 0x500
jb 0x141473196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14147307e
cmp eax, 0x7f
ja 0x14147319e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14147307e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1414731d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14147307e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14014c1bc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14014c208
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14014c200
cmp dword [rcx + 0x3c], edx
jl 0x14014c200
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14014c200
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14014c208
mov rax, rdx
add rsp, 0x18
ret

Function at 0x14014c468
Capabilities:
Print debug messages

Disassembly:
jmp 0x14014c474
push rbx
sub rsp, 0x540
mov rax, qword [0x14017b608]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14014c4f1
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x14014c511
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.14014bb60
add rsp, 0x540
pop rbx
ret

Function at 0x14014c474
Capabilities:
Print debug messages

Disassembly:
jmp 0x14014c474
push rbx
sub rsp, 0x540
mov rax, qword [0x14017b608]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14014c4f1
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x14014c511
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.14014bb60
add rsp, 0x540
pop rbx
ret

Function at 0x14021293e
Capabilities:
Encode data using xor

Disassembly:
invalid
jge 0x1402128f0
lodsd eax, dword [rsi]
xor byte [rsi + 0x6e], bh
sbb eax, 0x9a3317a7
mov ch, 0x3d
pop rcx
stosd dword [rdi], eax
xor ebx, dword [rdx - 0x54a6c24b]
push 0xffffffffda92440e
xchg edx, eax
je 0x140212947
mov ah, 0x9a
nop
sbb eax, 0x97698ec7
hlt
Function at 0x1400111ef
Capabilities:
Terminate process

Disassembly:
jmp 0x140012dd0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011276
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014120
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014140
xor al, al
jmp 0x1400141c1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014153
xor al, al
jmp 0x1400141c1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001417d
xor al, al
jmp 0x1400141c1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014191
xor al, al
jmp 0x1400141c1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400141a3
xor al, al
jmp 0x1400141c1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400141bf
xor al, al
jmp 0x1400141c1
mov al, 1
add rsp, 0x38
ret
Function at 0x6d8c4090
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d8e55e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d8c4218
mov rax, qword [0x6d8e55e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d8c40dc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d8c4165
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d8c40c0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d8c424d
mov rax, qword [0x6d8e55e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d8e55e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d8c4230
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d8c415e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d8c41c0
add dword [0x6d8e55e4], 1
cmp edi, 8
jae 0x6d8c4193
test dil, 4
jne 0x6d8c4204
test edi, edi
je 0x6d8c4188
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d8c421f
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 0x6d8c4188
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 0x6d8c41ac
jmp 0x6d8c4188
add rsi, qword [0x6d8e55e8]
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 0x6d8c415e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d8c4188
xor esi, esi
jmp 0x6d8c40e7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d8c4188
mov rax, qword [0x6d8e55e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d8c49a0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d8e58c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d8e58a0]
test rbx, rbx
je 0x6d8c49f4
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 0x6d8c49eb
test rsi, rsi
je 0x6d8c49eb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d8c49d0
lea rcx, [0x6d8e58c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d8c4c30
Capabilities:
Parse pe header

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

Function at 0x6d8c4c50
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 0x6d8c4c91
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 0x6d8c4c88
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d8c4c93
add rax, 0x28
cmp rax, r9
jne 0x6d8c4c74
xor eax, eax
ret

Function at 0x6d8c4d30
Capabilities:
Enumerate pe sections

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

Function at 0x6d8c4ea0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8e21f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d8c4ec0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8c4eb8
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 0x6d8c4f1d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d8c4f14
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8c4f24
add rax, 0x28
cmp rax, r9
jne 0x6d8c4f00
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d8c4f40
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d8e21f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d8c4fae
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8c4fae
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d8c4fae
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d8c4fae
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d8c4fa5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d8c4fb5
add rcx, 0x28
cmp rcx, rax
jne 0x6d8c4f90
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d8c4fc8
jmp 0x6d8c4fae
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d8c4fd6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d8c4fae
test r9d, r9d
jg 0x6d8c4fc0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d8c5340
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x4027e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x00411040]
xor edx, edx
mov r8, rcx
cmp word [r9], 0x5a4d
je 0x402800
mov rax, rdx
add rsp, 0x28
ret
mov rcx, r9
call fcn.004026c0
test eax, eax
je 0x4027f8
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add rax, r9
movzx edx, word [rax + 0x14]
lea rdx, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x40285d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x402854
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x4027f8
add rdx, 0x28
cmp rdx, r9
jne 0x402840
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret

Function at 0x4076a0
Capabilities:
Query environment variable

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12d, 1
sub r8d, 1
mov edi, ecx
mov ecx, 0x66666667
mov eax, r8d
mov rbp, rdx
movsxd rsi, r8d
imul ecx
sar r8d, 0x1f
mov rbx, r9
mov ecx, edx
sar ecx, 2
sub ecx, r8d
je 0x4076f5
mov r8d, 0x66666667
nop dword [rax]
mov eax, ecx
sar ecx, 0x1f
add r12d, 1
imul r8d
sar edx, 2
sub edx, ecx
mov ecx, edx
jne 0x4076e0
mov edx, dword [rbx + 0x2c]
cmp edx, 0xffffffff
je 0x407770
mov ecx, dword [rbx + 0xc]
cmp r12d, edx
mov r9, rbx
cmovl r12d, edx
mov r8d, 1
lea edx, [r12 + 2]
mov eax, ecx
sub eax, edx
cmp ecx, edx
mov edx, 0xffffffff
cmovle eax, edx
mov ecx, edi
mov rdx, rbp
mov dword [rbx + 0xc], eax
add r12d, 1
call fcn.00406f60
mov ecx, dword [rbx + 8]
mov eax, dword [rbx + 0x2c]
mov rdx, rbx
mov dword [rbx + 0x10], eax
mov eax, ecx
and ecx, 0x20
or eax, 0x1c0
or ecx, 0x45
mov dword [rbx + 8], eax
call fcn.00406b10
add dword [rbx + 0xc], r12d
mov rdx, rbx
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.004073d0
mov eax, dword [0x0040f0a0]
cmp eax, 0xffffffff
je 0x40779c
test eax, eax
je 0x40778c
mov edx, 2
mov dword [rbx + 0x2c], edx
jmp 0x4076fd
call fcn.0040e870
test al, 1
mov edx, 3
jne 0x40777f
jmp 0x407784
lea rcx, str.PRINTF_EXPONENT_DIGITS
call sub.msvcrt.dll_getenv
test rax, rax
je 0x4077c4
movsx eax, byte [rax]
sub eax, 0x30
cmp eax, 2
setbe al
movzx eax, al
mov dword [0x0040f0a0], eax
jmp 0x40777b
xor eax, eax
jmp 0x4077b9
Function at 0x40ec00
Capabilities:
Create process on windows

Disassembly:
push rbp
xor ecx, ecx
mov r8d, 0x104
mov rbp, rsp
push rdi
push rsi
push rbx
xor esi, esi
and rsp, 0xfffffffffffffff0
sub rsp, 0x1f0
lea rbx, [rsp + 0xe0]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40ec40
lea rsp, [rbp - 0x18]
mov eax, esi
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rdi, [rsp + 0x78]
xor eax, eax
mov ecx, 0xc
lea rsi, [rsp + 0x70]
mov qword [rsp + 0x74], 0
mov qword [rsp + 0xd0], 0
rep stosq qword [rdi], rax
lea rdi, [rsp + 0x50]
mov rcx, rbx
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
call fcn.0040ed20
mov qword [rsp + 0x40], rsi
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x38], 0
mov rdx, rbx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov rcx, rbx
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
mov esi, eax
je 0x40ed00
mov rcx, qword [rsp + 0x50]
mov edx, 0xffffffff
mov esi, 1
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rsp, [rbp - 0x18]
mov eax, esi
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rcx, str.Create_process_failed
call fcn.0040ed20
lea rsp, [rbp - 0x18]
mov eax, esi
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x40ed80
Capabilities:
Enumerate gui resources

Disassembly:
push rbp
mov ecx, 0xa8
mov edx, 1
mov rbp, rsp
push rdi
push rsi
lea rsi, str.5dff652a5b0f2c7c949500a6853c852d570c583c108470b8662b470c58024c38845dff000000002e986921ab949f9894000002000c7c94ad98841f98847e9884353539845dff000000005e354a85ab94000001000c7c94012e1c1d9894a504a69535000000558eaabe2047fcff845dff000000000e530f44ab94000031881c7c84f1570c585dffb78160d22c7c9435359c13d49c13d41f9884a5350c13d45dff0000000068e96457ab94951440a60e9894000033088625a5f1a61f9884f5a0a66c98845dffb3e255be2c7c9435350500000000488a23008b84359c13d48514a5351c98840016f4672365d4131717b4e47493d46436f565469474b4d4c4c6566686f597a753365343268784440536d4164544432403d2178555858343d437856616a52647742626f5079376f42456c4c49345331315553553534463331436555314071724d41624a74784834443276777c616f227d6e667e6362787f2000000878e5dff000000006cf99875ab943530a635359c13d4000020690c7c941c9884a500331323e21383e22313e2435313000000e08e5dff000000007a9765a3ab9435359c13d40c13d4a5351e988435355dff706277c42c7c941e98846514004756e696e69677eb9435bd1384d5ffffffb49e21b884a59514850eff251402ce3884a51495148514a595e5851485140d10848840b8140d1094c104b84484c0b814660d10944204b844858d571d93548042c430c41f570e831c1014cad09c1c140c13846d10849c13d48843b8149cff84653e0d10940204b844058184b80d108476470c58840000008808b80000002758f020b0818718660d1084c324b80225b884151425de2e1c1014d09c1c1402c220c716c3ca0c13840527b8849c13d4a4a47bf0840225b88465158125b8840625b884562d13842505141514000000cc8e0f4e3884cf
and rsp, 0xfffffffffffffff0
sub rsp, 0x570
lea rdi, [rsp + 0x20]
rep movsq qword [rdi], qword [rsi]
mov ecx, 0x2a1
movzx eax, word [rsi]
mov word [rdi], ax
movzx eax, byte [0x0041054a]
mov byte [rdi + 2], al
call sub.msvcrt.dll_calloc
lea rcx, [rsp + 0x20]
mov rsi, rax
mov rdx, rax
call fcn.0040ea60
xor r8d, r8d
xor edx, edx
mov ecx, 0x40000
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov r8d, 8
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdx, rsi
mov r8d, 0x2a1
mov rcx, rax
call sub.msvcrt.dll_memmove
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_EnumWindows]
lea rsp, [rbp - 0x10]
pop rsi
pop rdi
pop rbp
ret

Function at 0x40ee20
Capabilities:
Accept command line arguments

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
call fcn.004016e0
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea rdx, [0x00410561]
mov rcx, rax
call sub.msvcrt.dll_strtok
test rax, rax
je 0x40eede
lea r12, [0x00410561]
mov rdi, rax
xor ebp, ebp
nop dword [rax]
mov rcx, rdi
add ebp, 1
call sub.msvcrt.dll_strlen
lea rbx, [rax + 1]
mov rcx, rbx
call sub.msvcrt.dll_malloc
mov rdx, rdi
mov r8, rbx
mov rcx, rax
mov rsi, rax
call sub.msvcrt.dll_strncpy
xor ecx, ecx
mov rdx, r12
call sub.msvcrt.dll_strtok
test rax, rax
mov rdi, rax
jne 0x40ee60
cmp ebp, 1
je 0x40eede
lea rdi, [0x00410563]
mov ecx, 2
repe cmpsb byte [rsi], byte [rdi]
jne 0x40eede
mov rbx, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40eec7
mov ecx, 0x2710
call rbx
call fcn.0040ec00
test eax, eax
jne 0x40eec0
lea rcx, str.Create_process_failed
call fcn.0040ed20
jmp 0x40eee3
call fcn.0040ed80
add rsp, 0x20
xor eax, eax
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1400ed048
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400ed092
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400ed092
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400ed092
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400ed092
cmp dword [rcx + 0x84], 0xe
jbe 0x1400ed092
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400ed094
xor al, al
add rsp, 0x28
ret