joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003290
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400032a8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400032b0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400032c0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000330d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140003304
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000330f
add rax, 0x28
cmp rax, r9
jne 0x1400032f0
xor eax, eax
ret

Function at 0x140003310
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400033a0
mov rdx, qword [0x140005570]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000338e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000338e
cmp word [rax + 0x18], 0x20b
jne 0x14000338e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400033a0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140003379
add rbx, 0x28
cmp rbx, rdi
je 0x1400033a0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140003370
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
mov rdx, qword [0x140005570]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400033d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400033d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400033d0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000342d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003424
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400033d0
add rax, 0x28
cmp rax, r9
jne 0x140003410
xor eax, eax
ret

Function at 0x140003430
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140005570]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000344f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003458
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000344f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140003470
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140005570]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140003490
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140003498
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140003490
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400034e0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400034d7
test rcx, rcx
je 0x140003490
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400034c8
xor eax, eax
ret

Function at 0x1400034f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140005570]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000350f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003518
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x140005570]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003550
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003558
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003550
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140003550
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400035a4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400035b0
add rdx, 0x28
cmp r9, rdx
jne 0x140003590
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140005570]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400035e2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400035f0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400035e2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400035e2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400035e2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140003645
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140003658
add rdx, 0x28
cmp rdx, r10
jne 0x140003630
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140003667
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140003677
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000364e
test ecx, ecx
jg 0x140003660
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x2fc4d6da0
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.2fc4d7e80
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d77a2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fa108]
test eax, eax
je 0x2fc4d783a
lea rax, [0x2fc4fa0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fa110]
mov qword [rbp - 8], rax
jmp 0x2fc4d781e
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 0x2fc4d7812
cmp qword [rbp - 0x10], 0
je 0x2fc4d7812
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 0x2fc4d77d8
lea rax, [0x2fc4fa0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d783b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d7940
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 0x2fc4d7968
mov eax, 0
jmp 0x2fc4d79b6
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 0x2fc4d7991
mov eax, 0
jmp 0x2fc4d79b6
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 0x2fc4d79b1
mov eax, 0
jmp 0x2fc4d79b6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d79bc
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 0x2fc4d7a3a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d7a31
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 0x2fc4d7a31
mov rax, qword [rbp - 8]
jmp 0x2fc4d7a4f
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 0x2fc4d7a04
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d5480
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.2fc4d6560
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d5e82
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f8108]
test eax, eax
je 0x2fc4d5f1a
lea rax, [0x2fc4f80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f8110]
mov qword [rbp - 8], rax
jmp 0x2fc4d5efe
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 0x2fc4d5ef2
cmp qword [rbp - 0x10], 0
je 0x2fc4d5ef2
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 0x2fc4d5eb8
lea rax, [0x2fc4f80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d5f1b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d6020
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 0x2fc4d6048
mov eax, 0
jmp 0x2fc4d6096
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 0x2fc4d6071
mov eax, 0
jmp 0x2fc4d6096
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 0x2fc4d6091
mov eax, 0
jmp 0x2fc4d6096
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d609c
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 0x2fc4d611a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d6111
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 0x2fc4d6111
mov rax, qword [rbp - 8]
jmp 0x2fc4d612f
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 0x2fc4d60e4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140005ed0
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov rax, rsp
push r14
sub rsp, 0x60
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r14, rdx
xor esi, esi
mov qword [rax - 0x38], rsi
mov dword [rax - 0x40], 0x80
mov dword [rax - 0x48], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rsi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140005f77
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor edx, edx
lea r8d, [rsi + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
test rax, rax
je 0x140005f6e
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rsi, rax
test rax, rax
jne 0x140005f7e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14000605f
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, eax
mov qword [r14], rdx
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbp, rax
test rax, rax
jne 0x140006033
lea rdx, str.Could_not_allocate_memory_in_the_current_process
lea rcx, [0x1400434d0]
call fcn.1400011f0
mov rdi, rax
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
mov rcx, qword [rdx + rax + 0x40]
mov rbx, qword [rcx + 8]
mov qword [rsp + 0x50], rbx
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 8]
nop
lea rcx, [rsp + 0x48]
call fcn.140001a00
mov r8, qword [rax]
mov dl, 0xa
mov rcx, rax
call qword [r8 + 0x40]
movzx esi, al
test rbx, rbx
je 0x14000601b
mov r8, qword [rbx]
mov rcx, rbx
call qword [r8 + 0x10]
test rax, rax
je 0x14000601b
mov r8, qword [rax]
lea edx, [rbp + 1]
mov rcx, rax
call qword [r8]
nop
movzx edx, sil
mov rcx, rdi
call fcn.1400056a0
mov rcx, rdi
call fcn.1400054c0
xor eax, eax
jmp 0x14000605f
mov r8, qword [r14]
mov rdx, rsi
mov rcx, rbp
call fcn.14000adf0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbp
lea r11, [rsp + 0x60]
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 0x1400060a0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
test r8b, r8b
mov r8d, edx
mov rdx, rcx
lea rcx, str._SystemRoot_SysWoW64calc.exe
jne 0x1400060bd
lea rcx, str._SystemRoot__system32calc.exe
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov al, 1
add rsp, 0x28
ret

Function at 0x1400061a0
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x1400061d3
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400061d3
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x1400061d3
add rax, rcx
cmp dword [rax], 0x4550
jne 0x1400061d3
mov ecx, 0x20b
cmp word [rax + 0x18], cx
jne 0x1400061d3
mov al, 1
ret
xor al, al
ret
Function at 0x1400063d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
xor ebx, ebx
mov ebp, r8d
mov qword [rsp + 0x30], rbx
mov r14, rdx
mov rsi, rcx
mov dword [rsp + 0x28], ebx
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call sub.ktmw32.dll_CreateTransaction
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140006435
lea rdx, str.Failed_to_create_transaction_
lea rcx, [0x1400434d0]
call fcn.1400011f0
mov rcx, rax
call fcn.140001960
mov rax, rdi
jmp 0x1400065a3
mov qword [rsp + 0x48], rbx
xor r9d, r9d
mov qword [rsp + 0x40], rbx
xor r8d, r8d
mov qword [rsp + 0x38], rdi
mov edx, 0xc0000000
mov qword [rsp + 0x30], rbx
mov rcx, rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileTransactedW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400064af
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Failed_to_create_transacted_file:
lea rcx, [0x1400434d0]
mov ebx, eax
call fcn.1400011f0
mov rcx, rax
mov edx, ebx
call fcn.140002a60
mov rcx, rax
call fcn.140001960
mov rax, 0xffffffffffffffff
jmp 0x1400065a3
lea r9, [rsp + 0x98]
mov dword [rsp + 0x98], ebx
mov r8d, ebp
mov qword [rsp + 0x20], rbx
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400064e5
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Failed_writing_payload__Error:
jmp 0x140006483
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x28], 0x1000000
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0xf001f
mov qword [rsp + 0x50], rbx
call qword [sym.imp.ntdll.dll_NtCreateSection]
test eax, eax
je 0x14000653d
lea rdx, str.NtCreateSection_failed
lea rcx, [0x1400434d0]
call fcn.1400011f0
mov rcx, rax
call fcn.140001960
mov rax, 0xffffffffffffffff
jmp 0x1400065a3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call sub.ktmw32.dll_RollbackTransaction
test eax, eax
jne 0x140006595
lea rdx, str.RollbackTransaction_failed:
lea rcx, [0x1400434d0]
call fcn.1400011f0
mov rdi, rax
test rax, rax
je 0x140006577
mov rax, qword [rax]
movsxd rbx, dword [rax + 4]
add rbx, rdi
and dword [rbx + 0x18], 0xfffff9ff
or dword [rbx + 0x18], 0x800
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
jmp 0x140006496
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x50]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x1400163f0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001621c
Function at 0x14000c62c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000c458
Function at 0x2fc4cdda0
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.2fc4cee80
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4ce7a2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f1108]
test eax, eax
je 0x2fc4ce83a
lea rax, [0x2fc4f10e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f1110]
mov qword [rbp - 8], rax
jmp 0x2fc4ce81e
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 0x2fc4ce812
cmp qword [rbp - 0x10], 0
je 0x2fc4ce812
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 0x2fc4ce7d8
lea rax, [0x2fc4f10e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4ce83b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4ce940
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 0x2fc4ce968
mov eax, 0
jmp 0x2fc4ce9b6
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 0x2fc4ce991
mov eax, 0
jmp 0x2fc4ce9b6
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 0x2fc4ce9b1
mov eax, 0
jmp 0x2fc4ce9b6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4ce9bc
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 0x2fc4cea3a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cea31
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 0x2fc4cea31
mov rax, qword [rbp - 8]
jmp 0x2fc4cea4f
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 0x2fc4cea04
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001090
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x20
call fcn.140a84448
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x48], 5
mov rbx, rax
call fcn.1400011f0
call fcn.140a84448
movsd xmm0, qword [0x140aa2508]
sub rax, rbx
xorps xmm1, xmm1
cvtsi2sd xmm1, rax
divsd xmm1, qword [0x140aa2510]
comisd xmm0, xmm1
jae 0x1400011de
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], 0
mov edx, 0xa82edc
lea rcx, [fcn.140001420]
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001118
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error:__d
call fcn.140001030
mov r9d, 2
lea r8, [fcn.140001420]
add r8, r9
lea r11, str.joagkla5rp3m8mq8hjgk86fl96plz0nt
mov r10d, 0x2a0bb7
lea eax, [r9 - 2]
and eax, 0x8000001f
jge 0x140001147
dec eax
or eax, 0xffffffe0
inc eax
cdqe
movzx eax, byte [rax + r11]
xor byte [r8 - 2], al
lea eax, [r9 - 1]
and eax, 0x8000001f
jge 0x140001164
dec eax
or eax, 0xffffffe0
inc eax
cdqe
movzx eax, byte [rax + r11]
xor byte [r8 - 1], al
mov eax, r9d
and eax, 0x8000001f
jge 0x140001180
dec eax
or eax, 0xffffffe0
inc eax
cdqe
movzx eax, byte [rax + r11]
xor byte [r8], al
lea eax, [r9 + 1]
and eax, 0x8000001f
jge 0x14000119c
dec eax
or eax, 0xffffffe0
inc eax
cdqe
add r9d, 4
movzx eax, byte [rax + r11]
xor byte [r8 + 1], al
add r8, 4
sub r10, 1
jne 0x140001135
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov edx, 0xa82edc
lea rcx, [fcn.140001420]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.140001420
xor eax, eax
add rsp, 0x20
pop rbx
ret
xor ecx, ecx
call fcn.140a88dc8
int3

Function at 0x140a84dd0
Capabilities:
Parse pe header

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