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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x478
mov rdi, rcx
lea rbx, [rsp + 0x78]
mov rcx, rbx
call fcn.140019bd4
lea rsi, [rsp + 0x58]
mov rcx, rsi
mov rdx, rbx
call fcn.14001a379
mov rax, qword [rsi]
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14001a307
mov qword [rsp + 0x30], rdi
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rax], 2
xorps xmm0, xmm0
movups xmmword [rax + 8], xmm0
mov r8d, 0x200
mov r12d, 2
xor r15d, r15d
mov r14d, 0xffffffff
xor r13d, r13d
cmp r8, 0x201
jae 0x14001a24b
lea rbp, [rsp + 0x78]
mov edi, 0x200
mov rbx, r8
jmp 0x14001a280
sub r8, r13
lea rcx, [rsp + 0x40]
mov rdx, r8
call fcn.140014acb
mov r12, qword [rsp + 0x40]
mov r15, qword [rsp + 0x48]
cmp r15, r14
mov r13d, 0xffffffff
cmovb r13, r15
mov qword [rsp + 0x50], r13
mov rbp, r12
mov rdi, r13
mov rbx, r13
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov rcx, qword [rsp + 0x38]
mov rdx, rbp
mov r8d, ebx
call sub.kernel32.dll_GetEnvironmentVariableW
mov esi, eax
test eax, eax
jne 0x14001a2a6
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x14001a30d
mov r8d, esi
cmp rbx, r8
jne 0x14001a2ce
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x14001a375
add rbx, rbx
cmp rbx, r14
cmovae rbx, r14
mov r8, rbx
jmp 0x14001a233
jb 0x14001a233
cmp rdi, r8
jb 0x14001a375
lea rsi, [rsp + 0x58]
mov rcx, rsi
mov rdx, rbp
call fcn.1400159ed
mov bl, byte [rsi + 0x18]
mov rcx, r12
mov rdx, r15
call fcn.1400159bd
cmp bl, 2
jne 0x14001a338
mov rbx, qword [rsp + 0x58]
jmp 0x14001a320
mov byte [rdi + 0x18], 2
jmp 0x14001a360
call fcn.1400017a8
mov rbx, rax
mov rcx, r12
mov rdx, r15
call fcn.1400159bd
mov rax, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x28]
mov byte [rax + 0x18], 2
mov rcx, rbx
call fcn.140014dd8
jmp 0x14001a353
movups xmm0, xmmword [rsp + 0x58]
movups xmm1, xmmword [rsp + 0x68]
mov rax, qword [rsp + 0x30]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov rsi, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x38]
mov rdx, rsi
call fcn.1400159bd
nop
add rsp, 0x478
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
Function at 0x14001a5a3
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x140029028]
lea rax, [rsp + 0x60]
movaps xmmword [rax], xmm0
mov ecx, 0xffffffff
cmp r9, rcx
cmovb rcx, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x14001a60b
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x14001a61a
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14001a64e
cmp eax, 0x103
je 0x14001a658
test eax, eax
js 0x14001a634
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
and qword [rsi], 0
jmp 0x14001a64e
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x58]
mov byte [rcx + 4], 0
and dword [rcx], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
lea rdx, [rsp + 0x78]
mov qword [rdx], rax
mov qword [rdx + 8], 1
lea rax, [rsp + 0x50]
mov qword [rdx + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rdx + 0x18], xmm0
call fcn.140016b32
mov rcx, rax
call fcn.14001661f
mov ecx, 7
int 0x29
ud2

Function at 0x14001b961
Capabilities:
Initialize winsock library

Disassembly:
push rsi
push rdi
sub rsp, 0x1b8
mov rax, qword [rcx]
mov rdi, qword [rax]
and qword [rax], 0
test rdi, rdi
je 0x14001b9b2
lea rsi, [rsp + 0x20]
mov r8d, 0x198
mov rcx, rsi
xor edx, edx
call sub.msvcrt.dll_memset
mov cx, 0x202
mov rdx, rsi
call sub.ws2_32.dll_WSAStartup
test eax, eax
jne 0x14001b9b2
lea rax, [0x140021158]
mov qword [rdi], rax
add rsp, 0x1b8
pop rdi
pop rsi
ret
ud2

Function at 0x14001b9b6
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
movzx eax, dl
lea r8, [rsp + 0x24]
mov dword [r8], eax
mov edx, 0x8004667e
call sub.ws2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x14001b9d8
xor eax, eax
jmp 0x14001b9dd
call fcn.14001652d
nop
add rsp, 0x28
ret

Function at 0x14001bd4a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rsi, rcx
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.14001bdb6
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov rdx, rdi
call fcn.14001a379
mov rdi, qword [rbx]
test rdi, rdi
je 0x14001bda7
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov rcx, rdi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x14001bd9c
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r14
jmp 0x14001bda9
mov rcx, rdi
mov rdx, rbx
call fcn.1400159bd
xor edi, edi
mov qword [rsi], rdi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14001c22f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
mov r14, qword [rdx]
lea rcx, [rdx + 8]
call fcn.14001c411
test rax, rax
jne 0x14001c37c
xor bl, 1
test r14, r14
movzx ecx, bl
mov eax, 2
cmove eax, ecx
mov r12, qword [rdi + 8]
mov rdi, qword [rdi + 0x18]
test al, al
je 0x14001c2ad
movzx eax, al
cmp eax, 1
jne 0x14001c29b
xor eax, eax
cmp rdi, rax
je 0x14001c2a3
movzx ecx, byte [r12 + rax]
cmp ecx, 9
je 0x14001c2ad
inc rax
cmp ecx, 0x20
jne 0x14001c282
jmp 0x14001c2ad
xor r14d, r14d
xor r15d, r15d
jmp 0x14001c2bf
test rdi, rdi
je 0x14001c2ad
mov r14b, 1
jmp 0x14001c29e
mov rcx, rsi
mov dx, 0x22
call fcn.140019d75
mov r14b, 1
mov r15b, 1
add rdi, r12
lea rbx, [rsp + 0x28]
mov qword [rbx], r12
mov qword [rbx + 8], rdi
and word [rbx + 0x10], 0
xor edi, edi
mov rcx, rbx
call fcn.140014c7a
test ax, ax
je 0x14001c342
mov ebp, edx
test r14b, r14b
je 0x14001c336
cmp bp, 0x22
je 0x14001c2fc
movzx eax, bp
cmp eax, 0x5c
jne 0x14001c334
inc rdi
jmp 0x14001c336
mov rdx, rdi
inc rdx
je 0x14001c38e
mov rcx, rsi
call fcn.140014acb
mov rax, qword [rsi]
mov rcx, qword [rsi + 0x10]
inc rcx
sub rdi, 1
jb 0x14001c329
mov word [rax + rcx*2 - 2], 0x5c
jmp 0x14001c317
mov word [rax + rcx*2 - 2], 0x5c
mov qword [rsi + 0x10], rcx
xor edi, edi
mov rcx, rsi
mov edx, ebp
call fcn.140019d75
jmp 0x14001c2d5
test r15b, r15b
je 0x14001c37a
mov rcx, rsi
mov rdx, rdi
call fcn.140014acb
mov rcx, qword [rsi]
mov rax, qword [rsi + 0x10]
sub rdi, 1
jb 0x14001c36a
mov word [rcx + rax*2], 0x5c
inc rax
jmp 0x14001c359
mov qword [rsi + 0x10], rax
mov rcx, rsi
mov dx, 0x22
call fcn.140019d75
xor edx, edx
mov rax, rdx
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
ud2
Function at 0x14001cdba
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
mov edx, 0x10
call sub.advapi32.dll_SystemFunction036
test al, al
je 0x14001cde6
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.1400017a8
ud2

Function at 0x140021e90
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 fcn.1400231b0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1400231b0
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140022b62
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14002e2a8]
test eax, eax
je 0x140022bfa
lea rax, [0x14002e280]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14002e2b0]
mov qword [rbp - 8], rax
jmp 0x140022bde
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 0x140022bd2
cmp qword [rbp - 0x10], 0
je 0x140022bd2
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 0x140022b98
lea rax, [0x14002e280]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140022bfb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140022d00
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 0x140022d28
mov eax, 0
jmp 0x140022d76
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 0x140022d51
mov eax, 0
jmp 0x140022d76
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 0x140022d71
mov eax, 0
jmp 0x140022d76
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140022d7c
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 0x140022dfa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140022df1
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 0x140022df1
mov rax, qword [rbp - 8]
jmp 0x140022e0f
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 0x140022dc4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc56fd00
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.2fc570de0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc570702
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc593108]
test eax, eax
je 0x2fc57079a
lea rax, [0x2fc5930e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc593110]
mov qword [rbp - 8], rax
jmp 0x2fc57077e
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 0x2fc570772
cmp qword [rbp - 0x10], 0
je 0x2fc570772
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 0x2fc570738
lea rax, [0x2fc5930e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc57079b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc5708a0
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 0x2fc5708c8
mov eax, 0
jmp 0x2fc570916
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 0x2fc5708f1
mov eax, 0
jmp 0x2fc570916
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 0x2fc570911
mov eax, 0
jmp 0x2fc570916
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc57091c
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 0x2fc57099a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc570991
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 0x2fc570991
mov rax, qword [rbp - 8]
jmp 0x2fc5709af
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 0x2fc570964
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc541ba0
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.2fc542c80
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc5425a2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc565108]
test eax, eax
je 0x2fc54263a
lea rax, [0x2fc5650e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc565110]
mov qword [rbp - 8], rax
jmp 0x2fc54261e
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 0x2fc542612
cmp qword [rbp - 0x10], 0
je 0x2fc542612
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 0x2fc5425d8
lea rax, [0x2fc5650e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc54263b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc542740
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 0x2fc542768
mov eax, 0
jmp 0x2fc5427b6
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 0x2fc542791
mov eax, 0
jmp 0x2fc5427b6
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 0x2fc5427b1
mov eax, 0
jmp 0x2fc5427b6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc5427bc
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 0x2fc54283a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc542831
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 0x2fc542831
mov rax, qword [rbp - 8]
jmp 0x2fc54284f
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 0x2fc542804
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d40e0
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.2fc4d51c0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d4ae2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f7108]
test eax, eax
je 0x2fc4d4b7a
lea rax, [0x2fc4f70e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f7110]
mov qword [rbp - 8], rax
jmp 0x2fc4d4b5e
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 0x2fc4d4b52
cmp qword [rbp - 0x10], 0
je 0x2fc4d4b52
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 0x2fc4d4b18
lea rax, [0x2fc4f70e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d4b7b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d4c80
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 0x2fc4d4ca8
mov eax, 0
jmp 0x2fc4d4cf6
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 0x2fc4d4cd1
mov eax, 0
jmp 0x2fc4d4cf6
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 0x2fc4d4cf1
mov eax, 0
jmp 0x2fc4d4cf6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d4cfc
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 0x2fc4d4d7a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d4d71
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 0x2fc4d4d71
mov rax, qword [rbp - 8]
jmp 0x2fc4d4d8f
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 0x2fc4d4d44
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140f6f854
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f6f85e
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f6f887
pop rbp
sub rbp, 0x33
sub rbp, 0xf6f854
sub rsp, 0x20
jmp 0x140f6f8a6
mov rax, 0xf6f854
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xfffffffffc966b8c
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f6f8c5
jmp 0x140f6f8dc
invalid
Function at 0x2fc4d3ee0
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.2fc4d4fc0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d48e2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f7108]
test eax, eax
je 0x2fc4d497a
lea rax, [0x2fc4f70e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f7110]
mov qword [rbp - 8], rax
jmp 0x2fc4d495e
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 0x2fc4d4952
cmp qword [rbp - 0x10], 0
je 0x2fc4d4952
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 0x2fc4d4918
lea rax, [0x2fc4f70e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d497b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d4a80
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 0x2fc4d4aa8
mov eax, 0
jmp 0x2fc4d4af6
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 0x2fc4d4ad1
mov eax, 0
jmp 0x2fc4d4af6
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 0x2fc4d4af1
mov eax, 0
jmp 0x2fc4d4af6
mov eax, 1
add rsp, 0x20
pop rbp
ret