joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001f910
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, 1
xor eax, eax
lock cmpxchg dword [0x1800a2f80], ebx
je 0x18001f939
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
xor eax, eax
lock cmpxchg dword [0x1800a2f80], ebx
jne 0x18001f927
mov eax, dword [0x1800a2f88]
mov ecx, eax
inc eax
mov qword [rsp + 0x30], rbp
mov dword [0x1800a2f88], eax
test ecx, ecx
je 0x18001f965
xor ebp, ebp
mov dword [0x1800a2f80], ebp
mov rbp, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
lea rcx, str.HWLOC_COMPONENTS_VERBOSE
mov qword [rsp + 0x48], r14
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xor ebp, ebp
test rax, rax
je 0x18001f98f
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [0x1800a2f84], eax
jmp 0x18001f995
mov dword [0x1800a2f84], ebp
mov rdx, qword [0x18008b250]
lea r14, [0x18008b250]
mov qword [0x1800a2fd0], rbp
mov dword [0x1800a2fcc], ebp
test rdx, rdx
je 0x18001f9f7
nop word [rax + rax]
mov ecx, dword [0x1800a2fcc]
inc ecx
mov dword [0x1800a2fcc], ecx
cmp qword [r14 + rcx*8], rbp
jne 0x18001f9c0
test ecx, ecx
je 0x18001f9f7
mov edx, 8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rdx, qword [0x18008b250]
mov qword [0x1800a2fd0], rax
mov dword [0x1800a2fcc], ebp
mov ebx, ebp
test rdx, rdx
je 0x18001fafd
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rdi
nop dword [rax]
mov eax, ebx
lea rdi, [r14 + rax*8]
mov rax, qword [r14 + rax*8]
mov esi, dword [rax + 0x1c]
test esi, esi
je 0x18001fa43
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, esi
lea rdx, str.Ignoring_static_component_with_invalid_flags__lx_n
mov rcx, rax
call fcn.1800100d0
jmp 0x18001fae7
mov rax, qword [rax + 8]
test rax, rax
je 0x18001fa7c
xor ecx, ecx
call rax
test eax, eax
jns 0x18001fa7c
cmp dword [0x1800a2f84], ebp
je 0x18001fae7
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Ignoring_static_component__failed_to_initialize_n
call fcn.1800100d0
jmp 0x18001fae7
mov rax, qword [rdi]
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x18001fa9f
mov ecx, dword [0x1800a2fcc]
mov rax, qword [0x1800a2fd0]
mov qword [rax + rcx*8], rdx
inc dword [0x1800a2fcc]
mov eax, ebx
mov rcx, qword [r14 + rax*8]
mov eax, dword [rcx + 0x18]
test eax, eax
jne 0x18001fab7
mov rcx, qword [rcx + 0x20]
call fcn.18001f660
jmp 0x18001fae7
cmp eax, 1
jne 0x18001fae7
cmp qword [0x1800a2fa0], rbp
mov rdx, qword [rcx + 0x20]
jne 0x18001fad3
mov rax, qword [rdx]
mov qword [0x1800a2fa0], rax
cmp qword [0x1800a2fb0], rbp
jne 0x18001fae7
mov rax, qword [rdx + 8]
mov qword [0x1800a2fb0], rax
inc ebx
cmp qword [r14 + rbx*8], rbp
jne 0x18001fa10
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x48]
mov dword [0x1800a2f80], ebp
mov rbp, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
Function at 0x180023e90
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp dword [0x1800a2fac], 0
jne 0x180023ee2
lea rcx, str.HWLOC_XML_VERBOSE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x180023ecd
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [0x1800a2fa8], eax
mov dword [0x1800a2fac], 1
add rsp, 0x28
ret
mov eax, dword [0x1800a2fa8]
mov dword [0x1800a2fac], 1
add rsp, 0x28
ret
mov eax, dword [0x1800a2fa8]
add rsp, 0x28
ret

Function at 0x180023ef0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp dword [0x1800a2fc4], 0
jne 0x180023f5f
lea rcx, str.HWLOC_LIBXML
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x180023f36
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
xor ecx, ecx
mov dword [0x1800a2fc4], 1
test eax, eax
sete cl
mov dword [0x1800a2fb8], ecx
mov eax, ecx
add rsp, 0x28
ret
lea rcx, str.HWLOC_LIBXML_IMPORT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x180023f0f
mov ecx, dword [0x1800a2fb8]
mov eax, ecx
mov dword [0x1800a2fc4], 1
add rsp, 0x28
ret
mov eax, dword [0x1800a2fb8]
add rsp, 0x28
ret

Function at 0x180023f70
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp dword [0x1800a2f9c], 0
jne 0x180023fdf
lea rcx, str.HWLOC_LIBXML
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x180023fb6
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
xor ecx, ecx
mov dword [0x1800a2f9c], 1
test eax, eax
sete cl
mov dword [0x1800a2fbc], ecx
mov eax, ecx
add rsp, 0x28
ret
lea rcx, str.HWLOC_LIBXML_EXPORT
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
jne 0x180023f8f
mov ecx, dword [0x1800a2fbc]
mov eax, ecx
mov dword [0x1800a2f9c], 1
add rsp, 0x28
ret
mov eax, dword [0x1800a2fbc]
add rsp, 0x28
ret
Function at 0x18002ad50
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r12
push r13
sub rsp, 0x78
mov rax, qword [0x18009d5d8]
xor rax, rsp
mov qword [rsp + 0x50], rax
movzx r9d, byte [rcx]
mov r13, r8
movzx eax, byte [0x18008e178]
mov r12, rdx
sub r9d, eax
jne 0x18002ad8f
movzx r9d, byte [rcx + 1]
movzx eax, byte [0x18008e179]
sub r9d, eax
mov qword [rsp + 0xb8], rsi
lea rbx, str._dev_stdin
test r9d, r9d
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x68], r14
lea rdx, [0x18008e18c]
cmovne rbx, rcx
mov qword [rsp + 0x60], r15
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbp, rax
test rax, rax
je 0x18002aeae
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov edi, 0x1000
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
test eax, eax
jne 0x18002adfc
mov eax, 0x8000
test word [rsp + 0x26], ax
je 0x18002adfc
mov eax, dword [rsp + 0x34]
inc eax
movsxd rdi, eax
lea rcx, [rdi + 1]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x18002aea5
mov r9, rbp
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r15, rax
mov byte [rax + rsi], 0
cmp rax, rdi
jne 0x18002ae83
nop dword [rax]
nop word [rax + rax]
add rdi, rdi
mov rcx, rsi
lea rdx, [rdi + 1]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov r14, rax
test rax, rax
je 0x18002ae9c
mov rbx, rdi
lea rcx, [rax + r15]
shr rbx, 1
mov r9, rbp
mov r8, rbx
mov edx, 1
mov rsi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r15, rax
mov byte [rsi + r15], 0
cmp rax, rbx
je 0x18002ae40
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rax, [r15 + 1]
mov qword [r12], rsi
mov qword [r13], rax
xor eax, eax
jmp 0x18002aeb1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
or eax, 0xffffffff
mov r15, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180076910
add rsp, 0x78
pop r13
pop r12
pop rbp
pop rbx
ret
Function at 0x180032980
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
xor r11d, r11d
lea r15, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov r14, r9
mov rbx, rdx
mov r10, rcx
mov eax, r11d
cmp rdx, 2
jbe 0x180032a53
lea esi, [r11 + 4]
nop dword [rax + rax]
movzx edx, byte [r10]
sub rbx, 3
movzx r9d, byte [r10 + 1]
movzx ebp, dl
movzx edi, byte [r10 + 2]
movzx ecx, r9b
shr cl, 4
and dl, 3
and r9b, 0xf
shl dl, 4
add dl, cl
shl r9b, 2
movzx ecx, dil
shr bpl, 2
shr cl, 6
add r10, 3
add r9b, cl
and dil, 0x3f
cmp rsi, r14
ja 0x180032afe
movzx ecx, bpl
add rsi, 4
movzx ecx, byte [rcx + r15]
mov byte [rax + r8], cl
movzx ecx, dl
movzx ecx, byte [rcx + r15]
mov byte [rax + r8 + 1], cl
movzx ecx, r9b
movzx ecx, byte [rcx + r15]
mov byte [rax + r8 + 2], cl
movzx ecx, dil
movzx ecx, byte [rcx + r15]
mov byte [rax + r8 + 3], cl
add rax, 4
cmp rbx, 2
ja 0x1800329c0
test rbx, rbx
je 0x180032b1c
xor r9b, r9b
mov word [rsp + 0x29], r11w
xor dil, dil
mov byte [rsp + 0x28], r9b
xor dl, dl
test rbx, rbx
je 0x180032aa6
mov rdx, r11
nop word [rax + rax]
movzx ecx, byte [r10]
inc r11d
mov byte [rsp + rdx + 0x28], cl
inc r10
mov edx, r11d
cmp rdx, rbx
jb 0x180032a80
movzx edi, byte [rsp + 0x2a]
movzx edx, byte [rsp + 0x29]
movzx r9d, byte [rsp + 0x28]
movzx ecx, dl
shr dil, 6
movzx r10d, r9b
shr cl, 4
and r9b, 3
shr r10b, 2
and dl, 0xf
shl r9b, 4
shl dl, 2
add r9b, cl
lea rcx, [rax + 4]
add dl, dil
cmp rcx, r14
ja 0x180032afe
movzx ecx, r10b
movzx ecx, byte [rcx + r15]
mov byte [rax + r8], cl
movzx ecx, r9b
movzx ecx, byte [rcx + r15]
mov byte [rax + r8 + 1], cl
cmp rbx, 1
jne 0x180032b03
mov byte [rax + r8 + 2], 0x3d
jmp 0x180032b10
or eax, 0xffffffff
jmp 0x180032b26
movzx ecx, dl
movzx ecx, byte [rcx + r15]
mov byte [rax + r8 + 2], cl
add rax, 3
mov byte [rax + r8], 0x3d
inc rax
cmp rax, r14
jae 0x180032afe
mov byte [rax + r8], 0
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
pop r15
pop r14
pop rdi
ret
Function at 0x18003d990
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rax - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x18009d5d8]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x18003db1a
cmp byte [rcx + 0x71], 0
je 0x18003db1a
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x18003d9e4
xor al, al
jmp 0x18003db1c
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rsp + 0x40]
call fcn.1800383b0
nop
mov rcx, qword [rsp + 0x40]
mov r9, qword [rsp + 0x58]
lea rdx, [rsp + 0x40]
cmp r9, 0x10
cmovae rdx, rcx
lea r8, [rsp + 0x40]
cmovae r8, rcx
mov r9, qword [rsp + 0x50]
add r9, rdx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea rdx, [rbx + 0x74]
mov rcx, qword [rbx + 0x68]
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 0x18003da45
sub eax, 1
jne 0x18003dac2
jmp 0x18003da49
mov byte [rbx + 0x71], 0
lea rax, [rsp + 0x40]
mov rcx, qword [rsp + 0x40]
mov r9, qword [rsp + 0x58]
cmp r9, 0x10
cmovae rax, rcx
mov rdi, qword [rsp + 0x30]
sub rdi, rax
je 0x18003da9e
lea rax, [rsp + 0x40]
cmp r9, 0x10
cmovae rax, rcx
mov r9, qword [rbx + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
cmp rdi, rax
jne 0x18003dad1
cmp byte [rbx + 0x71], 0
je 0x18003dad5
test rdi, rdi
jne 0x18003da00
xor r8d, r8d
lea edx, [rdi + 8]
lea rcx, [rsp + 0x40]
call fcn.18003f940
jmp 0x18003d9f6
sub eax, 2
mov r9, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
je 0x18003dad5
xor bl, bl
jmp 0x18003dad7
mov bl, 1
cmp r9, 0x10
jb 0x18003db15
lea rax, [r9 + 1]
cmp rax, 0x1000
jb 0x18003db10
test cl, 0x1f
jne 0x18003db09
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x18003db09
sub rcx, rax
sub rcx, 8
cmp rcx, 0x1f
ja 0x18003db09
mov rcx, rax
jmp 0x18003db10
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180076934
movzx eax, bl
jmp 0x18003db1c
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180076910
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1800501e0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
test rcx, rcx
je 0x1800502bd
push rbx
sub rsp, 0x40
mov rbx, rcx
cmp rcx, 0x64
jbe 0x18005024c
imul rax, rbx, 0xfffffffffffffff6
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x50], rax
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
xor r9d, r9d
lea rdx, [rsp + 0x50]
mov rbx, rax
xor r8d, r8d
xor eax, eax
mov rcx, rbx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_SetWaitableTimer]
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x40
pop rbx
ret
lea rcx, [rsp + 0x60]
movaps xmmword [rsp + 0x30], xmm6
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
movss xmm6, dword [0x18008f058]
nop
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x50]
xorps xmm1, xmm1
sub rax, qword [rsp + 0x58]
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [rsp + 0x60]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
mulss xmm1, xmm6
mulss xmm1, xmm6
cvttss2si rax, xmm1
cmp rax, rbx
jb 0x180050270
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
ret

Function at 0x1800551d0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x38]
xor r8d, r8d
lea r9, str.XMRSTAK_NOWAIT
xor edx, edx
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv_s]
cmp qword [rsp + 0x38], 0
jne 0x180055219
call fcn.180035160
mov rcx, rax
lea rdx, str.Press_any_key_to_exit.
call fcn.180055130
call fcn.180054f50
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x18006d2a0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
pshufd xmm0, xmmword [rdx], 0x55
lea rbp, [0x180088090]
mov rdi, rcx
movd eax, xmm0
pshufd xmm0, xmmword [rdx], 0xff
mov rsi, rdx
movzx ebx, r8b
mov r10d, eax
movdqu xmm5, xmmword [rdi]
shr rax, 0x10
movzx r9d, al
mov eax, r10d
shr rax, 0x18
pslldq xmm5, 4
movdqa xmm4, xmm5
pslldq xmm5, 4
movzx r11d, byte [r9 + rbp]
movzx eax, byte [rax + rbp]
pxor xmm4, xmmword [rdi]
shl eax, 8
or r11d, eax
mov eax, r10d
shr rax, 8
movzx ecx, al
shl r11d, 8
movzx eax, byte [rcx + rbp]
or r11d, eax
movzx eax, r10b
shl r11d, 8
movzx ecx, byte [rax + rbp]
movd eax, xmm0
or r11d, ecx
mov edx, eax
shr rax, 0x10
movzx ecx, al
mov eax, edx
shr rax, 0x18
movd xmm3, r11d
movzx r8d, byte [rcx + rbp]
movzx eax, byte [rax + rbp]
shl eax, 8
or r8d, eax
mov eax, edx
shr rax, 8
movzx ecx, al
shl r8d, 8
movzx eax, byte [rcx + rbp]
or r8d, eax
movzx eax, dl
shl r8d, 8
movzx ecx, byte [rax + rbp]
mov eax, r11d
ror eax, 8
or r8d, ecx
xor eax, ebx
mov edx, r8d
ror edx, 8
xor edx, ebx
movd xmm0, r8d
movd xmm2, eax
punpckldq xmm3, xmm0
movdqa xmm0, xmm5
movd xmm1, edx
pxor xmm0, xmm4
punpckldq xmm2, xmm1
punpckldq xmm3, xmm2
pslldq xmm5, 4
pxor xmm0, xmm5
pshufd xmm1, xmm3, 0xff
pxor xmm1, xmm0
pshufd xmm0, xmm1, 0x55
movd eax, xmm0
movdqu xmmword [rdi], xmm1
mov edx, eax
shr rax, 0x10
movzx ecx, al
mov eax, edx
shr rax, 0x18
movzx r9d, byte [rcx + rbp]
movzx eax, byte [rax + rbp]
shl eax, 8
movdqu xmm5, xmmword [rsi]
or r9d, eax
mov rbx, qword [rsp + 8]
mov eax, edx
mov rdi, qword [rsp + 0x20]
shr rax, 8
movzx ecx, al
pshufd xmm0, xmm1, 0xff
shl r9d, 8
pslldq xmm5, 4
movzx eax, byte [rcx + rbp]
movdqa xmm4, xmm5
pxor xmm4, xmmword [rsi]
or r9d, eax
movzx eax, dl
shl r9d, 8
pslldq xmm5, 4
movzx ecx, byte [rax + rbp]
movd eax, xmm0
or r9d, ecx
mov edx, eax
shr rax, 0x10
movzx ecx, al
mov eax, edx
shr rax, 0x18
movd xmm3, r9d
movzx r8d, byte [rcx + rbp]
movzx eax, byte [rax + rbp]
shl eax, 8
or r8d, eax
mov eax, edx
shr rax, 8
movzx ecx, al
shl r8d, 8
movzx eax, byte [rcx + rbp]
or r8d, eax
movzx eax, dl
shl r8d, 8
movzx ecx, byte [rax + rbp]
mov rbp, qword [rsp + 0x10]
or r8d, ecx
mov eax, r8d
mov ecx, r9d
ror eax, 8
ror ecx, 8
movd xmm0, r8d
punpckldq xmm3, xmm0
movdqa xmm0, xmm5
movd xmm1, eax
pxor xmm0, xmm4
movd xmm2, ecx
punpckldq xmm2, xmm1
punpckldq xmm3, xmm2
pslldq xmm5, 4
pshufd xmm1, xmm3, 0xaa
pxor xmm0, xmm5
pxor xmm1, xmm0
movdqu xmmword [rsi], xmm1
mov rsi, qword [rsp + 0x18]
ret
Function at 0x2fc4cf1a0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d0280
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4cfba2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f2108]
test eax, eax
je 0x2fc4cfc3a
lea rax, [0x2fc4f20e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f2110]
mov qword [rbp - 8], rax
jmp 0x2fc4cfc1e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4cfc12
cmp qword [rbp - 0x10], 0
je 0x2fc4cfc12
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4cfbd8
lea rax, [0x2fc4f20e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4cfc3b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4cfd40
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4cfd68
mov eax, 0
jmp 0x2fc4cfdb6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4cfd91
mov eax, 0
jmp 0x2fc4cfdb6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4cfdb1
mov eax, 0
jmp 0x2fc4cfdb6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cfdbc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4cfe3a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cfe31
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4cfe31
mov rax, qword [rbp - 8]
jmp 0x2fc4cfe4f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4cfe04
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400019d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001a1a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001a1a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001a1a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001a1a
cmp dword [rcx + 0x84], 0xe
jbe 0x140001a1a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001a1c
xor al, al
add rsp, 0x28
ret
Function at 0x140003f30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov byte [rsp + 0x10], dl
push rdi
sub rsp, 0x50
cmp byte [rcx + 0x40], 0
movzx esi, dl
mov rdi, rcx
je 0x140003fd9
mov rax, qword [0x1400b6960]
mov qword [rsp + 0x38], 1
test rax, rax
jne 0x140003f80
xor r8d, r8d
lea ecx, [rax + 1]
mov edx, 0x100000
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x1400b6960], rax
xor edx, edx
mov qword [rsp + 0x30], 2
mov rcx, rax
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea rdx, [rsp + 0x30]
mov rcx, rdi
mov rbx, rax
mov qword [rsp + 0x40], rax
mov byte [rax], sil
mov byte [rax + 1], 0
call fcn.140011540
mov rcx, qword [0x1400b6960]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, rdi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
mov rax, qword [rcx + 0x18]
cmp rax, 1
jne 0x14000400f
mov rcx, qword [rcx]
lea r9, [0x1400b6970]
xor esi, esi
lea rdx, [rsp + 0x68]
mov r8d, eax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [rsi + 1]
mov rcx, rdi
call fcn.140004a30
jmp 0x140004084
test rax, rax
jne 0x14000403e
lea edx, [rax + 1]
call fcn.140004a30
mov rcx, qword [rdi]
lea r9, [0x1400b6970]
xor esi, esi
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x20], rsi
lea r8d, [rsi + 1]
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140004084
mov rbx, qword [rcx + 0x10]
xor r8d, r8d
shr rbx, 1
mov rdx, rbx
call fcn.140004c50
mov rcx, qword [rdi]
lea r9, [0x1400b6970]
xor esi, esi
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x20], rsi
lea r8d, [rsi + 1]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [rdi + 0x10]
mov r8b, 1
and edx, 1
mov rcx, rdi
add rdx, rbx
call fcn.140004c50
cmp dword [rdi + 0x4c], 0
je 0x1400040a1
movzx edx, word [0x1400b6a08]
mov rcx, qword [rdi]
mov word [rdi + 0x42], dx
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov dword [rdi + 0x4c], esi
mov rbx, qword [rsp + 0x60]
mov rax, rdi
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret