joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140040203
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x3f8
movdqa xmmword [rsp + 0x3e0], xmm15

Function at 0x140044702
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xf8
mov esi, edx
sub r8w, word [rcx + 0x1a]
imul r8w, word [rcx + 0x1c]
mov rax, qword [rsp + 0x170]
movzx r14d, dx
sub si, word [rcx + 0x18]
mov rdx, qword [rsp + 0x160]
add esi, r8d
mov r8d, 0xffff
and esi, r8d
mov r10, qword [rcx + 0x18]
mov r11, r10
shr r11, 0x20
add r11w, r10w
cmovb r11d, r8d
and r11d, r8d
mov r8, qword [rsp + 0x168]
add r8, r14
mov rbp, 0xffffffffffffffff
cmovae rbp, r8
cmp r11, rbp
cmovb rbp, r11
xor r8d, r8d
lea rbx, [rsp + 0x58]
mov qword [rbx], r8
mov qword [rbx + 0x10], r8
mov qword [rbx + 0x20], r8
mov qword [rbx + 0x28], rdx
mov qword [rbx + 0x30], r8
mov r10b, 2
mov byte [rbx + 0x38], r10b
mov r11d, 0xf020001
mov dword [rbx + 0x3c], r11d
mov dil, 0xf
mov byte [rbx + 0x40], dil
mov qword [rbx + 0x48], r8
mov qword [rbx + 0x58], r8
mov qword [rbx + 0x68], rdx
mov qword [rbx + 0x70], rdx
mov qword [rbx + 0x78], r8
mov byte [rbx + 0x80], r10b
mov dword [rbx + 0x84], r11d
mov byte [rbx + 0x88], dil
mov rdi, r14
mov qword [rbx + 0x90], r9
mov qword [rbx + 0x98], rdx
mov rdx, qword [rcx + 8]
mov r14, qword [rcx + 0x10]
mov cl, byte [rax]
mov byte [rsp + 0x2d], cl
mov ecx, dword [rax]
mov dword [rsp + 0x40], ecx
mov ecx, dword [rax + 4]
mov dword [rsp + 0x3c], ecx
mov cl, byte [rax + 4]
mov byte [rsp + 0x2c], cl
movzx ecx, word [rax + 8]
mov word [rsp + 0x2e], cx
movzx eax, word [rax + 0xa]
not eax
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x30], rdx
lea rax, [rdx + 0x28]
mov qword [rsp + 0x48], rax
mov rcx, rbx
call fcn.14003f051
test rax, rax
je 0x14004491b
mov r12, rax
mov r13, rdx
mov rcx, rax
call fcn.140062982
test rax, rax
je 0x140044829
mov r15, rax
mov rax, rbp
sub rax, rdi
mov ecx, 0
cmovae rcx, rax
cmp r15, rcx
ja 0x14004491b
cmp r14, rsi
jbe 0x140044943
mov qword [rsp + 0x50], rdi
lea rdi, [rsi + rsi*4]
mov rax, qword [rsp + 0x30]
lea rcx, [rax + rdi*8]
mov qword [rcx + 0x10], 0
mov r8, r12
add r8, r13
mov rdx, r12
call fcn.140023b94
cmp byte [rsp + 0x2d], 0x13
je 0x1400448ad
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x40]
mov dword [rax + rdi*8 + 0x18], ecx
cmp byte [rsp + 0x2c], 0x13
je 0x1400448c1
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x3c]
mov dword [rax + rdi*8 + 0x1c], ecx
mov rcx, qword [rsp + 0x30]
movzx eax, word [rcx + rdi*8 + 0x20]
or ax, word [rsp + 0x2e]
and eax, dword [rsp + 0x44]
mov word [rcx + rdi*8 + 0x20], ax
lea r13, [r15 + rsi]
inc rsi
cmp rsi, r13
jae 0x14004490b
mov rax, qword [rsp + 0x48]
lea r12, [rax + rdi*8]
lea rdi, [r15 - 1]
cmp r14, rsi
jbe 0x140044931
mov rcx, r12
call fcn.140044674
inc rsi
add r12, 0x28
dec rdi
jne 0x1400448f2
mov rdi, qword [rsp + 0x50]
add rdi, r15
mov rsi, r13
jmp 0x140044829
mov eax, edi
add rsp, 0xf8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, [0x140081a30]
mov rcx, rsi
mov rdx, r14
call fcn.1400736b0
lea r8, [0x140081a18]
jmp 0x140044938
Function at 0x140047649
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x1b8
lea rbp, [rsp + 0x80]
and rsp, 0xffffffffffffff80
mov rsi, rdx
mov rdi, rcx
mov r14, qword [rdx + 0x28]
mov r15b, byte [rdx + 0x30]
lea rcx, [rsp + 0x80]
call fcn.140046b11
mov rax, qword [rsi + 0x60]
mov qword [rsp + 0x78], rax
movabs rax, 0x7465646279746573
movabs rcx, 0x6c7967656e657261
movabs rdx, 0xded7d4e2d7dedfc6
movabs r8, 0xa60c596fc19fead0
movabs r9, 0xe414a674f0de7325
mov r12d, 1
lock xadd qword [0x14009e1d0], r12
mov r10, r12
xor r10, rax
lea r13, [r10 + rcx]
mov r11, r10
rol r11, 0x10
xor r11, r13
lea rbx, [r11 + rdx]
rol r11, 0x15
add r10, r8
mov r13, r10
xor r13, r9
rol r10, 0x20
xor r12, rbx
add r12, r13
rol r13, 0xd
xor r11, rbx
xor r13, r12
rol r12, 0x20
btc r11, 0x3b
add r10, r11
rol r11, 0x10
xor r11, r10
add r12, r11
rol r11, 0x15
add r10, r13
rol r13, 0x11
xor r11, r12
xor r13, r10
rol r10, 0x20
btc r12, 0x3b
add r12, r13
rol r13, 0xd
xor r13, r12
rol r12, 0x20
xor r10, 0xff
add r10, r11
rol r11, 0x10
xor r11, r10
add r12, r11
rol r11, 0x15
add r10, r13
rol r13, 0x11
xor r13, r10
rol r10, 0x20
xor r11, r12
add r12, r13
rol r13, 0xd
xor r13, r12
rol r12, 0x20
add r10, r11
rol r11, 0x10
xor r11, r10
add r12, r11
rol r11, 0x15
add r10, r13
rol r13, 0x11
xor r13, r10
rol r10, 0x20
xor r11, r12
add r12, r13
rol r13, 0xd
add r10, r11
rol r11, 0x10
xor r11, r10
rol r11, 0x15
xor r13, r12
add r10, r13
rol r13, 0x11
mov r12, r10
rol r12, 0x20
xor r12, r13
xor r12, r11
xor r12, r10
je 0x1400476be
mov rbx, qword [rsi + 0x58]
movups xmm0, xmmword [rsi + 0x38]
movups xmm1, xmmword [rsi + 0x48]
movups xmmword [rdi + 0x128], xmm1
movups xmmword [rdi + 0x118], xmm0
mov qword [rdi + 0x138], r14
mov byte [rdi + 0x140], r15b
lea rdx, [rsp + 0x80]
mov r8d, 0x100
mov rcx, rdi
call fcn.1400712b0
mov rax, qword [rsp + 0x78]
mov qword [rdi + 0x100], rax
mov qword [rdi + 0x108], r12
mov qword [rdi + 0x110], rbx
mov rax, qword [rsi + 0x10]
shl rax, 1
test rax, rax
je 0x140047849
mov r8, qword [rsi + 0x18]
mov rcx, qword [0x14009e2b0]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
nop
lea rsp, [rbp + 0x138]
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x140050020
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.14001b0c0
cmp rax, rcx
je 0x140050045
cmp rdx, 4
jae 0x140050048
xor eax, eax
xor r8d, r8d
jmp 0x1400500e0
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x140078160]
movdqa xmm3, xmmword [0x140078170]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x140050070
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x1400500f7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x1400500e0
ret

Function at 0x140054f80
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov edi, edx
mov rsi, rcx
movups xmm0, xmmword [0x140085450]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
push rdi
ror byte [rdi], 0x11
and al, 0x38
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140054ff3
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
invalid
je 0x14005502a
test eax, eax
js 0x140055004
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14005501d
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.aT_b_
add byte [rax - 0x77], cl
and al, 0x78
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
test byte [rax + rdx*4], ah
add byte [rax], al
add byte [rax - 0x73], cl
and al, 0x58
lea rdx, [rsp + 0x78]
call fcn.1400543d0
mov qword [rsp + 0x70], rax
jo 0x1400550c4
lea ecx, [rsp + 0x70]
call fcn.140053a30
mov ecx, 7
int 0x29
ud2
Function at 0x14005e200
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x14005e243
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [fcn.14005a4e0]
mov qword [rbp - 0x28], rax
lea rax, str._bW_b_
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.0W_b_
lea rcx, [rbp - 0x60]
call fcn.1400735f0
ud2
Function at 0x140063b82
Capabilities:
Create process on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rbx, rdx
mov rsi, rcx
mov rdx, qword [rcx + 0x10]
cmp rdx, qword [rcx]
jne 0x140063ba8
mov rcx, rsi
call fcn.14003736c
mov rdx, qword [rsi + 0x10]
mov rdi, qword [rsi + 8]
mov byte [rdi + rdx], 0
inc rdx
mov qword [rsi + 0x10], rdx
mov r15, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp rdx, r15
jne 0x140063bd2
mov rcx, rbx
call fcn.14003736c
mov r15, qword [rbx]
mov rdx, qword [rbx + 0x10]
mov r14, qword [rbx + 8]
mov byte [r14 + rdx], 0
inc rdx
mov qword [rbx + 0x10], rdx
mov dword [rsp + 0x28], 6
mov qword [rsp + 0x20], 0
xor ecx, ecx
xor edx, edx
mov r8, rdi
mov r9, r14
call sub.shell32.dll_ShellExecuteA
test r15, r15
je 0x140063c19
mov rcx, qword [0x14009e2b0]
xor edx, edx
mov r8, r14
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rsi], 0
je 0x140063c3d
mov rcx, qword [0x14009e2b0]
xor edx, edx
mov r8, rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.kernel32.dll_HeapFree]
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140063d41
Capabilities:
Impersonate user

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x80
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
lea r13, [rsp + 0x30]
mov qword [r13], 0
mov rdx, qword [rdx + 8]
mov r8, qword [rdi + 0x10]
lea r14, [rsp + 0x38]
mov rcx, r14
call fcn.140063cbb
mov rdx, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
lea r15, [rsp + 0x50]
mov rcx, r15
call fcn.140063cbb
mov rdx, qword [rbx + 8]
mov r8, qword [rbx + 0x10]
lea r12, [rsp + 0x68]
mov rcx, r12
call fcn.140063cbb
mov r14, qword [r14 + 8]
mov r15, qword [r15 + 8]
mov r12, qword [r12 + 8]
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], 0
mov rcx, r14
mov rdx, r15
mov r8, r12
mov r9d, 3
call sub.advapi32.dll_LogonUserW
test eax, eax
je 0x140063def
mov rcx, qword [rsp + 0x30]
call sub.advapi32.dll_ImpersonateLoggedOnUser
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.kernel32.dll_CloseHandle]
cmp qword [rsp + 0x68], 0
je 0x140063e09
mov rcx, qword [0x14009e2b0]
xor edx, edx
mov r8, r12
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rsp + 0x50], 0
je 0x140063e23
mov rcx, qword [0x14009e2b0]
xor edx, edx
mov r8, r15
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rsp + 0x38], 0
je 0x140063e3d
mov rcx, qword [0x14009e2b0]
xor edx, edx
mov r8, r14
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rbx], 0
je 0x140063e56
mov r8, qword [rbx + 8]
mov rcx, qword [0x14009e2b0]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rdi], 0
je 0x140063e6f
mov r8, qword [rdi + 8]
mov rcx, qword [0x14009e2b0]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rsi], 0
je 0x140063e88
mov r8, qword [rsi + 8]
mov rcx, qword [0x14009e2b0]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14006464c
Capabilities:
Parse pe header

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

Function at 0x140065664
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400657ac

Function at 0x1400668e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140066908
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140066908
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140075200
Capabilities:
Link many functions at runtime

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rcx, str.api_ms_win_core_synch_l1_2_0.dll
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x140075255
mov rdi, rax
lea rdx, str.WaitOnAddress
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x140075255
mov rsi, rax
lea rdx, str.WakeByAddressSingle
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x140075255
mov r14, rax
xor edi, edi
jmp 0x1400752dd
lea rcx, [0x140081460]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x140075348
mov rsi, rax
lea rdx, str.NtCreateKeyedEvent
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x140075348
mov rbx, rax
lea rdx, str.NtReleaseKeyedEvent
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x140075348
mov rdi, rax
lea rdx, str.NtWaitForKeyedEvent
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x140075348
mov rsi, rax
lea rcx, [rsp + 0x28]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rbx
test eax, eax
jne 0x140075348
mov r14, qword [rsp + 0x28]
mov al, byte [0x14009e330]
mov edx, 0x18
xor ecx, ecx
call fcn.14005ea40
test rax, rax
je 0x14007537d
mov rbx, rax
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], r14
xor eax, eax
lock cmpxchg qword [0x14009e1b8], rbx
je 0x14007533b
mov rsi, rax
cmp qword [rbx], 0
je 0x140075326
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, qword [0x14009e2b0]
xor edx, edx
mov r8, rbx
call qword [sym.imp.kernel32.dll_HeapFree]
mov rbx, rsi
mov rax, rbx
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rax, str.parking_lot_requires_either_NT_Keyed_Events__WinXP__or_WaitOnAddress_WakeByAddress__Win8_
lea rcx, [rsp + 0x28]
mov qword [rcx], rax
mov qword [rcx + 8], 1
lea rax, [0x14008d200]
mov qword [rcx + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rcx + 0x18], xmm0
lea rdx, str.x___qm____B_L__eW_S3N__KDqh_____L___Sat69_T_EX_iw__hg_Gm_uP_HQ_X_mH_W_____m_u__T__m__US4__U_84o_M_cS_Y__PsH_b__b__fcZ1_i
call fcn.1400735f0
mov ecx, 8
mov edx, 0x18
call fcn.140072100
int3
Function at 0x140001000
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x200
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
xor ebx, ebx
nop dword [rax]
mov r8d, 0x104
lea rdx, [rsp + 0xe0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1400010af
xorps xmm0, xmm0
mov dword [rsp + 0x50], 0x68
lea rax, [rsp + 0xc0]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0xe0]
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor edx, edx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], ebx
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rsp + 0x88], xmm0
movups xmmword [rsp + 0x98], xmm0
movups xmmword [rsp + 0xa8], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001020

Function at 0x1400019cc
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x0044f480]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x0044f490]
mov dword [rax], 1
mov rax, qword [0x0044f4a0]
mov dword [rax], 1
mov rax, qword [0x0044f470]
mov dword [rax], 1
mov rax, qword [0x0044f360]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x0044f460]
mov dword [0x00452008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x0044f420]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x0044f310]
cmp dword [rax], 1
je 0x4010f0
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 0x401103
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, [sym._matherr]
call sym.__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 0x401550
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov eax, 0x4b170
call fcn.00402aa0
sub rsp, rax
lea rbp, [rsp + 0x80]
call sym.__main
lea rax, [rbp - 0x60]
lea rdx, [0x00403020]
mov ecx, 0x4b147
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x4b147
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0x4b0e8], rax
cmp qword [rbp + 0x4b0e8], 0
jne 0x4015c9
lea rcx, section..rdata
call sym.puts
mov eax, 1
jmp 0x401613
mov rax, qword [rbp + 0x4b0e8]
mov rcx, rax
lea rax, [rbp - 0x60]
mov edx, 0x4b147
mov r8, rdx
mov rdx, rax
call sym.memcpy
mov rax, qword [rbp + 0x4b0e8]
call rax
mov rax, qword [rbp + 0x4b0e8]
mov r8d, 0x8000
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
call rax
mov eax, 0
add rsp, 0x4b170
pop rbp
ret
Function at 0x401b40
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00452624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x401cc8
mov rax, qword [0x00452628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x401b8c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x401c15
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x401b70
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x401cfd
mov rax, qword [0x00452628]
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 [0x00452628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401ce0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401c0e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x401c70
add dword [0x00452624], 1
cmp edi, 8
jae 0x401c43
test dil, 4
jne 0x401cb4
test edi, edi
je 0x401c38
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x401ccf
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 0x401c38
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 0x401c5c
jmp 0x401c38
add rsi, qword [0x00452628]
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 0x401c0e
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 0x401c38
xor esi, esi
jmp 0x401b97
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x401c38
mov rax, qword [0x00452628]
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 0x402450
Capabilities:
Get thread local storage value

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