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

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x140071be0]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x140017953
mov qword [rsp], rbx
lea rbx, [0x1400480a0]
nop dword [rax]
cmp r9b, 0x23
jne 0x140017933
cmp byte [r8], r9b
jne 0x140017933
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x140017920
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5390]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x140017987
mov r10, qword [r10 + 0x5398]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x14001798e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x140017974
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x140035aa0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
mov eax, 0x13e0
call fcn.1400457a0
sub rsp, rax
mov rax, qword [0x140055040]
xor rax, rsp
mov qword [rsp + 0x13d0], rax
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x13c4], 0xffffffff
mov edx, 1
mov dword [rsp + 0x44], eax
nop
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x44], eax
inc rdx
cmp rdx, 0x270
jb 0x140035af0
mov dword [rsp + 0x40], 0x270
mov esi, 0x190
mov dword [rsp + 0x20], 3
mov r14d, 0xffffffff
nop word [rax + rax]
lea rcx, [rsp + 0x40]
call fcn.14003da80
mov ecx, eax
imul rbx, rcx, 0x439
cmp ebx, 0x319
ja 0x140035b6b
nop dword [rax + rax]
lea rcx, [rsp + 0x40]
call fcn.14003da80
mov ecx, eax
imul rbx, rcx, 0x439
cmp ebx, 0x31a
jb 0x140035b50
lea rcx, [rsp + 0x40]
shr rbx, 0x20
call fcn.14003da80
mov ecx, eax
mov ebp, ebx
imul rax, rcx, 0x7bd
mov rdi, rsi
cmp eax, 0x7bd
jae 0x140035baf
cmp eax, 0x330
jae 0x140035baf
lea rcx, [rsp + 0x40]
call fcn.14003da80
mov ecx, eax
imul rax, rcx, 0x7bd
cmp eax, 0x330
jb 0x140035b95
mov rdx, qword [0x140071ce8]
shr rax, 0x20
cmp rdx, qword [0x140071cf0]
movd xmm1, ebp
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rsp + 0x28], xmm1
movss dword [rsp + 0x24], xmm0
je 0x140035bf4
unpcklps xmm0, xmm1
movsd qword [rdx], xmm0
add qword [0x140071ce8], 8
movsd qword [rsp + 0x24], xmm0
jmp 0x140035c05
lea r8, [rsp + 0x24]
lea rcx, [0x140071ce0]
call fcn.14003d740
lea rcx, [rsp + 0x40]
call fcn.14003da80
mov ebx, eax
lea rcx, [rsp + 0x40]
add rbx, rbx
shr rbx, 0x20
call fcn.14003da80
mov rdx, qword [0x140071d00]
mov ecx, eax
mov eax, 1
add rcx, rcx
shr rcx, 0x20
test ecx, ecx
cmove eax, r14d
test ebx, ebx
movd xmm0, eax
mov eax, 1
cmove eax, r14d
cmp rdx, qword [0x140071d08]
cvtdq2ps xmm0, xmm0
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movss dword [rsp + 0x2c], xmm0
movss dword [rsp + 0x30], xmm1
je 0x140035c82
unpcklps xmm0, xmm1
movsd qword [rdx], xmm0
add qword [0x140071d00], 8
movsd qword [rsp + 0x2c], xmm0
jmp 0x140035c93
lea r8, [rsp + 0x2c]
lea rcx, [0x140071cf8]
call fcn.14003d740
mov rdx, qword [0x140071d18]
cmp rdx, qword [0x140071d20]
je 0x140035cb3
mov dword [rdx], 3
add qword [0x140071d18], 4
jmp 0x140035cbd
lea r8, [rsp + 0x20]
call fcn.14003d590
lea rsi, [rdi - 1]
test rsi, rsi
jne 0x140035b30
mov rcx, qword [rsp + 0x13d0]
xor rcx, rsp
call fcn.1400447d0
lea r11, [rsp + 0x13e0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x14003da80
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x14003dae1
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x14003daa0
mov ecx, dword [r9]
jmp 0x14003dbcb
cmp ecx, 0x4e0
jb 0x14003dbcb
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x14003db00
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x14003db50
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x14003dd40
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x140055040]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
mov dword [rsp + 0x20], 0x238
mov rbx, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14003dea6
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
lea rax, [rsp + 0x4c]
mov rcx, 0xffffffffffffffff
nop dword [rax]
inc rcx
cmp word [rax + rcx*2], 0
jne 0x14003dda0
cmp qword [rbx + 0x18], 7
mov r9, rbx
jbe 0x14003ddb7
mov r9, qword [rbx]
mov r10, qword [rbx + 0x10]
lea rdx, [rsp + 0x4c]
cmp rcx, r10
mov r8, r10
cmovb r8, rcx
test r8, r8
je 0x14003ddf4
lea rax, [rsp + 0x4c]
sub r9, rax
nop word [rax + rax]
movzx eax, word [rdx]
cmp word [r9 + rdx], ax
jne 0x14003ddff
add rdx, 2
sub r8, 1
jne 0x14003dde0
cmp r10, rcx
jb 0x14003ddff
jbe 0x14003dec9
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x14003de9d
nop word [rax + rax]
lea rcx, [rsp + 0x4c]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x14003de30
cmp qword [rbx + 0x18], 7
mov r9, rbx
jbe 0x14003de47
mov r9, qword [rbx]
mov r10, qword [rbx + 0x10]
lea rdx, [rsp + 0x4c]
cmp rax, r10
mov r8, r10
cmovb r8, rax
test r8, r8
je 0x14003de84
lea rcx, [rsp + 0x4c]
sub r9, rcx
nop word [rax + rax]
movzx ecx, word [rdx]
cmp word [r9 + rdx], cx
jne 0x14003de8b
add rdx, 2
sub r8, 1
jne 0x14003de70
cmp r10, rax
jb 0x14003de8b
jbe 0x14003dec9
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14003de20
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400447d0
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
jmp 0x14003dea8
Function at 0x140042b50
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140042b78
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140042b9e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140042ba0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140042bf9
test ecx, ecx
jle 0x140042bd9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140042bf9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140042bf9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140042c20
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140042c42
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140042c58
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140042c74
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140042c76
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140042cb2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140042d4e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140042ced
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140042d2e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140042d4e
cmp rbx, rax
ja 0x140042d00
test rbx, rbx
je 0x140042d4e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x1400431b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140055040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400431dd
xor eax, eax
jmp 0x140043349
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140043217
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140043217
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140043349
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14004333c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14004325a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140043285
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140043341
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400432f4
sub eax, 1
je 0x1400432f4
cmp eax, 2
jne 0x14004333c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140043341
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140043322
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14004333c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140043341
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400447d0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400437d0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140055040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400438a3
cmp byte [rcx + 0x71], 0
je 0x1400438a3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14004389f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140043864
sub eax, 1
je 0x140043868
cmp eax, 2
jne 0x14004389f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400447d0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140043896
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14004389f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14004384c
xor al, al
jmp 0x14004384c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400447d0
add rsp, 0x60
pop rbx
ret

Function at 0x1400452fc
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x40
xor eax, eax
mov ebx, ecx
xor ecx, ecx
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x68], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000beec
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000beec
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000beec
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000beec
cmp dword [rcx + 0x84], 0xe
jbe 0x14000beec
cmp dword [rcx + 0xf8], 0
je 0x14000beec
mov ecx, ebx
call fcn.14000bc60
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x140015598]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.14000bae0
cmp dword [rsp + 0x60], 0
jne 0x14000bf2f
mov ecx, ebx
call fcn.14000bc10
int3
add rsp, 0x40
pop rbx
ret

Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

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

Disassembly:
mov rax, qword [0x14000c008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x14000c008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x14000c008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000c008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret
Function at 0x4c36b0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x78
mov rax, qword [0x004c203c]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [0x004c203c]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [0x004c2034]
mov rcx, qword [0x004c203c]
cmp qword [rax + 0x78], rcx
je 0x4c38a1
mov rax, qword [0x004c2034]
cmp dword [rax + 0x88], 0
je 0x4c38a1
mov rax, qword [0x004c2034]
mov eax, dword [rax + 0x88]
mov rcx, qword [0x004c203c]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
cmp dword [rax], 0
je 0x4c38a1
mov eax, dword [rsp + 0x50]
add rax, 8
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x58], 0
jmp 0x4c3756
mov eax, dword [rsp + 0x58]
add eax, 1
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 4]
sub rax, 8
cdq
sub eax, edx
sar eax, 1
cmp dword [rsp + 0x58], eax
jge 0x4c3885
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
and eax, 0xfff
mov rcx, qword [rsp + 0x50]
add eax, dword [rcx]
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x5c]
add rax, qword [0x004c203c]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
sar eax, 0xc
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x4c37bb
cmp dword [rsp + 0x60], 0xa
je 0x4c37c0
jmp 0x4c386e
jmp 0x4c3872
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [0x004c2034]
mov rax, qword [rax + 0x78]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
add rax, qword [0x004c203c]
mov qword [rsp + 0x48], rax
mov rax, qword [0x004c203c]
cmp qword [rsp + 0x48], rax
jb 0x4c3819
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x50]
mov rcx, qword [0x004c203c]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x48], rax
jbe 0x4c3822
xor eax, eax
jmp 0x4c38a6
lea r9, [rsp + 0x28]
mov r8d, 0x40
mov edx, 8
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, 8
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call fcn.004c2710
lea r9, [rsp + 0x28]
mov r8d, dword [rsp + 0x28]
mov edx, 8
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x4c3872
xor eax, eax
jmp 0x4c38a6
mov rax, qword [rsp + 0x40]
add rax, 2
mov qword [rsp + 0x40], rax
jmp 0x4c374b
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 4]
mov ecx, dword [rsp + 0x50]
add ecx, eax
mov eax, ecx
mov eax, eax
mov qword [rsp + 0x50], rax
jmp 0x4c3726
mov eax, 1
add rsp, 0x78
ret
Function at 0x4c3a70
Capabilities:
Check mutex on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xe8
lea rax, [rsp + 0x28]
lea rcx, [0x004c2210]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x1b
rep movsb byte [rdi], byte [rsi]
xor eax, eax
mov rcx, 0xffffffffffffffff
lea rdx, [rsp + 0x28]
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
mov rax, rcx
mov dword [rsp + 0xc4], eax
mov rax, qword [0x004c2034]
add rax, 0x34
mov qword [rsp + 0xc8], rax
xor ecx, ecx
mov qword [rsp + 0xd0], rcx
mov rcx, 0xffffffffffffffff
mov rdx, qword [rsp + 0xd0]
mov rax, rdx
mov rdx, qword [rsp + 0xc8]
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
mov rax, rcx
mov dword [rsp + 0xc0], eax
mov r8d, dword [rsp + 0xc4]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x50]
call fcn.004c2710
mov rax, qword [0x004c2034]
add rax, 0x34
movsxd rcx, dword [rsp + 0xc4]
lea rcx, [rsp + rcx + 0x50]
mov r8d, dword [rsp + 0xc0]
mov rdx, rax
call fcn.004c2710
mov eax, dword [rsp + 0xc0]
mov ecx, dword [rsp + 0xc4]
add ecx, eax
mov eax, ecx
cdqe
mov byte [rsp + rax + 0x50], 0
lea r8, [rsp + 0x50]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x4c3b8c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4c3b8c
mov eax, 1
jmp 0x4c3b8e
xor eax, eax
add rsp, 0xe8
pop rdi
pop rsi
ret