joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180002758
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
not r8d
mov r10, rcx
mov r9d, r8d
test rdx, rdx
je 0x1800027b2
mov r11b, 0x23
lea rbx, [0x180046a40]
movzx edi, byte [r10]
dec rdx
inc r10
cmp dil, r11b
jne 0x18000279c
cmp rdx, 2
jb 0x18000279c
cmp byte [r10], r11b
jne 0x18000279c
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
xor rcx, rdi
shr r9d, 8
xor r9d, dword [rbx + rcx*4]
test rdx, rdx
jne 0x18000277a
jmp 0x1800027f3
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x1800027f3
mov r11b, 0x23
lea rbx, [0x180046a40]
cmp dl, r11b
jne 0x1800027d7
cmp byte [r10], r11b
jne 0x1800027d7
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
movzx eax, dl
mov dl, byte [r10]
xor rcx, rax
shr r9d, 8
inc r10
xor r9d, dword [rbx + rcx*4]
test dl, dl
jne 0x1800027c5
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret

Function at 0x1800056dc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xf0]
mov r9, rcx
mov rax, qword [rcx + 0xf8]
mov r10d, 8
mov ebx, dword [rax + r8*4 - 4]
lea r8, [rsp + 0x38]
not ebx
movzx eax, byte [r8]
inc r8
movzx ecx, bl
xor rcx, rax
shr ebx, 8
lea rax, [0x180046a40]
xor ebx, dword [rax + rcx*4]
sub r10, 1
jne 0x180005709
mov rcx, qword [r9]
not ebx
cmp dword [rcx + 0x1228], ebx
jne 0x180005744
mov r8, rdx
mov ecx, ebx
lea edx, [r10 + 0xc]
call fcn.180016030
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x18000574c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xf0]
mov r11d, 4
mov rax, qword [rcx + 0xf8]
mov r9, rcx
mov r10d, r11d
mov ebx, dword [rax + r8*4 - 4]
lea r8, [rsp + 0x38]
not ebx
movzx eax, byte [r8]
inc r8
movzx ecx, bl
xor rcx, rax
shr ebx, 8
lea rax, [0x180046a40]
xor ebx, dword [rax + rcx*4]
sub r10, 1
jne 0x18000577b
mov rcx, qword [r9]
not ebx
cmp dword [rcx + 0x1228], ebx
jne 0x1800057b5
movsxd r8, edx
mov ecx, ebx
mov edx, r11d
call fcn.180016030
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x1800057c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x18
movss xmm2, dword [rcx + 0x110]
lea r9, [rsp]
movss xmm3, dword [rcx + 0x114]
mov r10d, 0x10
movss xmm0, dword [rdx]
movss xmm1, dword [rdx + 4]
subss xmm0, xmm2
mov rax, qword [rcx + 0xf8]
subss xmm1, xmm3
movsxd rcx, dword [rcx + 0xf0]
movss dword [rsp], xmm0
movss xmm0, dword [rdx + 8]
mov r8d, dword [rax + rcx*4 - 4]
subss xmm0, xmm2
movss dword [rsp + 4], xmm1
not r8d
movss xmm1, dword [rdx + 0xc]
subss xmm1, xmm3
movss dword [rsp + 8], xmm0
movss dword [rsp + 0xc], xmm1
movzx ecx, byte [r9]
lea rax, [0x180046a40]
movzx edx, r8b
inc r9
xor rdx, rcx
shr r8d, 8
xor r8d, dword [rax + rdx*4]
sub r10, 1
jne 0x18000582e
not r8d
mov eax, r8d
add rsp, 0x18
ret
Function at 0x180025228
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, qword [0x180052720]
mov ecx, 0x11
add rbx, 8
movaps xmmword [rsp + 0x20], xmm6
call qword [sym.imp.USER32.dll_GetKeyState]
movss xmm6, dword [0x18004ce58]
shr eax, 0xf
and al, 1
cmp byte [rbx + 0xab1], 0
je 0x18002527b
test al, al
je 0x180025268
movaps xmm3, xmm6
jmp 0x18002526b
xorps xmm3, xmm3
mov r8b, al
mov edx, 0x1000
mov rcx, rbx
call fcn.1800021cc
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp byte [rbx + 0xab1], 0
je 0x1800252b0
test al, al
je 0x18002529d
movaps xmm3, xmm6
jmp 0x1800252a0
xorps xmm3, xmm3
mov r8b, al
mov edx, 0x2000
mov rcx, rbx
call fcn.1800021cc
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp byte [rbx + 0xab1], 0
je 0x1800252e5
test al, al
je 0x1800252d2
movaps xmm3, xmm6
jmp 0x1800252d5
xorps xmm3, xmm3
mov r8b, al
mov edx, 0x4000
mov rcx, rbx
call fcn.1800021cc
mov ecx, 0x5d
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp byte [rbx + 0xab1], 0
je 0x180025318
test al, al
jne 0x180025305
xorps xmm6, xmm6
movaps xmm3, xmm6
mov r8b, al
mov edx, 0x8000
mov rcx, rbx
call fcn.1800021cc
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x30
pop rbx
ret
Function at 0x18003ce20
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
lea rcx, [0x1800527a0]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x18003ce46
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
cmp dword [0x1800527ec], 0x7fffffff
jne 0x18003ce68
mov dword [0x1800527ec], 0x7ffffffe
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
cmp qword [0x180052300], 0xffffffffffffffff
jne 0x18003cec9
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 3]
lea rcx, str.debuglog.txt
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x180052300], rax
cmp rax, 0xffffffffffffffff
jne 0x18003cec9
xor r9d, r9d
lea r8, str.ASSERTION_FAILURE
lea rdx, str.Could_not_write_to_debuglog.txt
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x18003cf00
mov edx, 0x1000
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov r8, rax
and qword [rsp + 0x20], 0
xor r9d, r9d
mov rdx, rbx
mov rcx, qword [0x180052300]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x180052300]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea rcx, [0x1800527a0]
add rsp, 0x40
pop rbx
jmp qword [sym.imp.MSVCP140.dll__Mtx_unlock]
popfq
invalid
leave
insd dword [rdi], dx
invalid
adc eax, 0x576e4e44
invalid
call 0x1ef077bcc
cmp ecx, 0xffffffa2
sub dword [0x1d7dab66e], edx
invalid
Function at 0x18003e9c0
Capabilities:
Hash data using fnv

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rdi, qword [0x180052738]
mov rsi, rcx
mov al, byte [rcx]
mov rdx, rcx
mov r8, rdi
movabs r9, 0xcbf29ce484222325
movabs rcx, 0x100000001b3
jmp 0x18003ea0a
inc rdx
movzx eax, al
xor r9, rax
imul r9, rcx
mov al, byte [rdx]
test al, al
jne 0x18003e9fb
test rdi, rdi
je 0x18003ea2f
mov al, byte [rdi]
xor r9, 0x3a
jmp 0x18003ea27
inc r8
movzx eax, al
xor r9, rax
mov al, byte [r8]
imul r9, rcx
test al, al
jne 0x18003ea1b
mov r8, qword [0x180052828]
mov rbx, qword [0x180052820]
sub r8, rbx
sar r8, 5
test r8, r8
jle 0x18003ea7c
or rbp, 0xffffffffffffffff
mov rdx, r8
shr rdx, 1
mov r11, rdx
shl r11, 5
cmp qword [r11 + rbx], r9
jae 0x18003ea72
add rbx, 0x20
mov rax, rbp
add rbx, r11
sub rax, rdx
add r8, rax
jmp 0x18003ea77
jbe 0x18003ea93
mov r8, rdx
test r8, r8
jg 0x18003ea4d
xor eax, eax
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
mov rax, rbx
test rdx, rdx
je 0x18003eac8
mov r10, rdx
shr r10, 1
mov rcx, r10
shl rcx, 5
cmp qword [rcx + rax], r9
jae 0x18003eac0
add rcx, 0x20
add rax, rcx
mov rcx, rbp
sub rcx, r10
add rdx, rcx
jmp 0x18003eac3
mov rdx, r10
test rdx, rdx
jg 0x18003ea9b
shl r8, 5
lea rcx, [rbx + 0x20]
add rcx, r11
sub r8, rcx
add r8, rbx
sar r8, 5
jmp 0x18003eb07
mov r10, r8
shr r10, 1
mov rdx, r10
shl rdx, 5
cmp r9, qword [rdx + rcx]
jae 0x18003eaf7
mov r8, r10
jmp 0x18003eb07
add rdx, 0x20
add rcx, rdx
mov rdx, rbp
sub rdx, r10
add r8, rdx
test r8, r8
jg 0x18003eadf
jmp 0x18003eb65
cmp byte [rsi], 0
mov r10, rsi
mov r8, qword [rax + 8]
je 0x18003eb33
mov r9b, byte [rsi]
mov dl, byte [r8]
inc r8
cmp r9b, dl
jne 0x18003eb61
inc r10
mov r9b, byte [r10]
test r9b, r9b
jne 0x18003eb1d
mov dl, byte [r8]
inc r8
cmp dl, 0x3a
jne 0x18003eb61
mov r9b, byte [rdi]
mov r10, rdi
jmp 0x18003eb57
mov dl, byte [r8]
inc r8
cmp r9b, dl
jne 0x18003eb61
inc r10
mov r9b, byte [r10]
test r9b, r9b
jne 0x18003eb46
cmp byte [r8], r9b
je 0x18003eb6f
add rax, 0x20
cmp rax, rcx
jne 0x18003eb0e
jmp 0x18003ea7c
mov rax, qword [rax + 0x10]
jmp 0x18003ea7e
Function at 0x1800415c4
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov eax, ecx
mov esi, edx
imul rbx, rax, 0x38
add rbx, qword [0x180093ba0]
mov rdx, qword [rbx]
mov cl, byte [rbx + 0x20]
mov rbp, rdx
lea rdi, [rdx - 5]
and cl, 1
je 0x1800415fa
mov rbp, rdi
movzx eax, cl
lea r9, [rsp + 0x40]
test cl, cl
mov r8d, 0x40
cmove rdi, rdx
lea r14, [rax*2 + 5]
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180041630
mov eax, 0xa
jmp 0x1800416bc
test esi, esi
je 0x180041652
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, ebp
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180041673
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180041673
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x18004166d
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
mov al, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180041673
mov al, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, r14
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [rbx + 0x20], 0xfd
and sil, 1
mov al, sil
shl sil, 2
add al, al
or al, byte [rbx + 0x20]
and al, 0xfb
or al, sil
mov byte [rbx + 0x20], al
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x180041be0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
je 0x180041c44
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x180041c32
mov rax, qword [rbx]
xor edx, edx
mov r8d, dword [rax + rdi*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180041c2b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x180041bff
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [0x180052678]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180041ce0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rbp - 0x58]
cmp rdi, 0x40000000
jbe 0x180041d2a
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rbx, qword [0x180093b98]
lea r12, [rdi + 0x40000000]
cmp qword [rbp - 0x50], r12
cmovbe r12, qword [rbp - 0x50]
sub r12, 0xfff
xor esi, esi
test rbx, rbx
je 0x180041d68
cmp rbx, r14
jb 0x180041d63
cmp rbx, r12
jae 0x180041d63
cmp qword [rbx + 8], rsi
jne 0x180041ebf
mov rbx, qword [rbx]
jmp 0x180041d4a
mov r15, rdi
cmp rdi, r14
jb 0x180041dec
mov r13d, dword [rbp - 0x38]
xor edx, edx
mov rax, r15
div r13
sub r15, rdx
sub r15, r13
cmp r15, r14
jb 0x180041de3
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180041de3
cmp dword [rbp - 0x10], 0x10000
je 0x180041db3
mov r15, qword [rbp - 0x28]
cmp r15, r13
jb 0x180041de3
jmp 0x180041d7f
test r15, r15
je 0x180041de3
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x180041e84
cmp r15, r14
jae 0x180041d70
test rbx, rbx
jne 0x180041e84
cmp rdi, r12
ja 0x180041ebf
mov r15d, dword [rbp - 0x38]
xor edx, edx
mov rax, rdi
mov r14d, r15d
div r15
mov eax, r15d
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r12
ja 0x180041ebf
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180041ebf
cmp dword [rbp - 0x10], 0x10000
je 0x180041e5a
xor edx, edx
lea edi, [r15 - 1]
add rdi, qword [rbp - 0x18]
add rdi, qword [rbp - 0x30]
mov rax, rdi
div r14
sub rdi, rdx
cmp rdi, r12
jmp 0x180041e13
test rdi, rdi
je 0x180041ebf
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jmp 0x180041de6
lea rcx, [rbx + 0x40]
mov dword [rbx + 0x10], esi
mov edx, 0x40
mov qword [rcx], rsi
mov rax, rcx
mov qword [rbx + 8], rcx
add rdx, 0x40
add rcx, 0x40
mov rsi, rax
cmp rdx, 0xfc0
jbe 0x180041e90
mov rax, qword [0x180093b98]
mov qword [rbx], rax
mov qword [0x180093b98], rbx
lea r11, [rsp + 0x80]
mov rax, rbx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x180042258
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9d, edx
test r8b, r8b
je 0x18004226f
cmp r8b, 0x90
je 0x18004226f
cmp r8b, 0xcc
jne 0x180042291
mov r10d, 1
mov edx, r10d
cmp r9d, r10d
jbe 0x18004228d
mov eax, edx
cmp byte [rax + rcx], r8b
jne 0x180042291
add edx, r10d
cmp edx, r9d
jb 0x18004227d
mov eax, r10d
ret
xor eax, eax
ret

Function at 0x14004d600
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub rsp, 0x28
mov edx, dword [0x140050628]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
cmp dword [0x140050628], 1
jge 0x14004d769
mov qword [rsp + 0x30], rbx
mov r9d, 0x40
mov ebx, 0x4c600
mov qword [rsp + 0x20], rdi
mov edx, ebx
mov r8d, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, ebx
lea rdx, section..text
mov rcx, rax
mov rdi, rax
call sub.VCRUNTIME140.dll_memcpy
cmp dword [0x140050018], 2
jl 0x14004d743
movdqa xmm4, xmmword [0x14004f230]
mov eax, 8
movdqa xmm5, xmmword [0x14004f240]
mov ecx, 0x98c0
movd xmm3, eax
lea rax, [rdi + 4]
nop dword [rax]
movd xmm0, dword [rax - 4]
lea rax, [rax + 8]
pmovzxbd xmm1, xmm0
xorps xmm0, xmm0
paddd xmm1, xmm4
pcmpgtd xmm0, xmm1
pand xmm0, xmm5
paddd xmm0, xmm1
psrad xmm0, xmm3
pslld xmm0, xmm3
psubd xmm1, xmm0
pshuflw xmm0, xmm1, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x14004f250]
packuswb xmm2, xmm2
movd dword [rax - 0xc], xmm2
movd xmm0, dword [rax - 8]
pmovzxbd xmm1, xmm0
xorps xmm0, xmm0
paddd xmm1, xmm4
pcmpgtd xmm0, xmm1
pand xmm0, xmm5
paddd xmm0, xmm1
psrad xmm0, xmm3
pslld xmm0, xmm3
psubd xmm1, xmm0
pshuflw xmm0, xmm1, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x14004f250]
packuswb xmm2, xmm2
movd dword [rax - 8], xmm2
sub rcx, 1
jne 0x14004d690
call rdi
mov rdi, qword [rsp + 0x20]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
mov rax, rdi
nop word [rax + rax]
add byte [rax], 3
lea rax, [rax + 1]
sub rbx, 1
jne 0x14004d750
call rdi
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x28
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00405650]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x00405660]
mov dword [rax], 1
mov rax, qword [0x00405670]
mov dword [rax], 1
mov rax, qword [0x00405640]
mov dword [rax], 1
mov rax, qword [0x00405530]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x00405630]
mov dword [0x00408008], 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 [0x004055f0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x004054a0]
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 0x402bf0
Capabilities:
Parse pe header

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

Function at 0x402c10
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 0x402c51
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 0x402c48
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x402c53
add rax, 0x28
cmp rax, r9
jne 0x402c34
xor eax, eax
ret

Function at 0x402cf0
Capabilities:
Enumerate pe sections

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

Function at 0x402e60
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00405530]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x402e80
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402e78
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 0x402edd
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 0x402ed4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402ee4
add rax, 0x28
cmp rax, r9
jne 0x402ec0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x402f00
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00405530]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x402f6e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402f6e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x402f6e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x402f6e
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 0x402f65
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x402f75
add rcx, 0x28
cmp rcx, rax
jne 0x402f50
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x402f88
jmp 0x402f6e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x402f96
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x402f6e
test r9d, r9d
jg 0x402f80
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x403210
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 0x140002cac
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x10], edx
push rdi
push r14
push r15
sub rsp, 0x30
mov r14, qword [0x140045c40]
mov rsi, rcx
mov rax, qword [0x140045c48]
mov edi, 1
jmp 0x140002d6b
test edi, edi
js 0x140002e63
mov rbx, qword [r14]
test rbx, rbx
je 0x140002d67
and qword [rsp + 0x50], 0
mov rdi, qword [rbx + 0x10]
test rdi, rdi
je 0x140002d67
mov rcx, rdi
call qword [fcn.140003d10]
mov rcx, qword [rbx + 0x18]
lea r8, [rsp + 0x50]
lea rdx, [0x14003c210]
call rdi
mov edi, eax
test eax, eax
js 0x140002d41
mov rdx, qword [rsp + 0x50]
lea rax, [rbx + 0x28]
mov rcx, qword [rbx]
mov r9d, 5
mov qword [rsp + 0x20], rax
lea r8d, [r9 - 1]
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoRegisterClassObject]
mov edi, eax
mov r15, qword [rsp + 0x50]
test r15, r15
je 0x140002d60
mov rax, qword [r15]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.140003d10]
mov rcx, r15
call rbx
mov rax, qword [0x140045c48]
add r14, 8
cmp r14, rax
jb 0x140002cde
test edi, edi
js 0x140002e63
jne 0x140002e5f
cmp byte [rsi + 0x60], 0
je 0x140002e15
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_CreateEventW]
mov qword [rsi + 0x50], rax
test rax, rax
je 0x140002e0e
lea rax, [rsp + 0x58]
mov r9, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400038f0]
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_CreateThread]
mov rbx, rax
test rax, rax
jne 0x140002dda
mov rcx, qword [rsi + 0x50]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test rbx, rbx
je 0x140002e0e
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoResumeClassObjects]
mov edi, eax
test eax, eax
jns 0x140002e03
mov rcx, qword [rsi + 0x50]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_SetEvent]
mov edx, dword [rsi + 0x58]
mov rcx, rbx
add edx, edx
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x140002e1d
mov edi, 0x80004005
jmp 0x140002e21
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoResumeClassObjects]
mov edi, eax
test edi, edi
jns 0x140002e63
mov rbx, qword [0x140045c40]
xor eax, eax
mov rcx, qword [0x140045c48]
jmp 0x140002e58
test eax, eax
jne 0x140002e63
mov rdx, qword [rbx]
test rdx, rdx
je 0x140002e54
cmp dword [rdx + 0x28], eax
je 0x140002e54
mov ecx, dword [rdx + 0x28]
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoRevokeClassObject]
mov rcx, qword [0x140045c48]
add rbx, 8
cmp rbx, rcx
jb 0x140002e33
jmp 0x140002e63
mov byte [rsi + 0x60], 0
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret