joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b5650
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r12
mov eax, 0x11cd0
call fcn.1400d23d0
sub rsp, rax
xor ebx, ebx
mov rbp, r8
movzx esi, dl
mov r12, rcx
test r8, r8
je 0x1400b5679
mov qword [r8], rbx
cmp qword [rcx + 0x10], rbx
jne 0x1400b5689
mov eax, 1
jmp 0x1400b5881
mov dl, 1
call fcn.1400b5a80
test eax, eax
je 0x1400b5881
mov qword [rsp + 0x11cf0], rdi
mov qword [rsp + 0x11cf8], r13
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8, qword [0x1401144a8]
mov rcx, r12
mov rdx, rax
mov rdi, rax
call fcn.1400b5b30
mov ecx, dword [0x14011b198]
test rax, rax
mov dword [rsp + 0x1874], ebx
mov qword [rsp + 0x1878], rbx
setne r13b
mov qword [rsp + 0x1880], rbx
mov qword [rsp + 0x1898], rbx
test r13b, r13b
mov qword [rsp + 0x18a8], rbx
mov qword [rsp + 0x18b0], rbx
cmove ecx, ebx
mov dword [0x14011b198], ecx
test sil, sil
je 0x1400b571c
mov byte [rsp + 0x1871], bl
test r13b, r13b
je 0x1400b5724
mov byte [rsp + 0x1871], 1
mov r8, qword [0x14011b190]
lea rax, [0x1400e346c]
test ecx, ecx
mov qword [rsp + 0x1038], rax
mov qword [rsp + 0x1048], rax
mov qword [rsp + 0x1050], rax
mov rax, qword [0x1401144a8]
mov qword [rsp + 0x1888], r8
mov dword [rsp + 0x1890], ecx
mov qword [rsp + 0x1040], rbx
mov qword [rsp + 0x1068], r12
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayGetDim
mov qword [rsp + 0x28], rax
setg sil
test r13b, r13b
je 0x1400b57b7
mov edx, ebx
test ecx, ecx
jle 0x1400b57a0
mov rax, r8
cmp qword [rax], rdi
je 0x1400b57b7
inc edx
add rax, 8
cmp edx, ecx
jl 0x1400b5791
cmp ecx, 0x1f4
jge 0x1400b57b7
movsxd rax, ecx
inc ecx
mov qword [r8 + rax*8], rdi
mov dword [0x14011b198], ecx
mov dword [rsp + 0x1890], ecx
lea rdx, [rsp + 0x20]
lea rcx, [0x1400b2f30]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rcx, qword [rsp + 0x1878]
test rcx, rcx
jne 0x1400b580d
test sil, sil
je 0x1400b57f6
mov r8, qword [0x14011b190]
mov ecx, ebx
mov dword [0x14011b198], ebx
xor sil, sil
jmp 0x1400b5783
test rbp, rbp
je 0x1400b5809
mov rax, qword [r12 + 0x20]
test rax, rax
je 0x1400b5809
mov qword [rbp], rax
xor eax, eax
jmp 0x1400b5871
call fcn.1400b2670
movsxd rcx, dword [0x14011b198]
mov rdx, qword [rsp + 0x1878]
mov r8, qword [0x14011b190]
test ecx, ecx
jle 0x1400b583f
mov rax, r8
nop
cmp qword [rax], rdx
je 0x1400b5853
inc ebx
add rax, 8
cmp ebx, ecx
jl 0x1400b5830
cmp ecx, 0x1f4
jge 0x1400b5853
mov qword [r8 + rcx*8], rdx
inc ecx
mov dword [0x14011b198], ecx
mov rax, qword [0x1401144a8]
mov ecx, dword [rax + 0x74]
cmp ecx, 0xffffffff
jle 0x1400b586c
mov edx, 1
call fcn.140001a70
mov eax, 1
mov rdi, qword [rsp + 0x11cf0]
mov r13, qword [rsp + 0x11cf8]
mov rbx, qword [rsp + 0x11d00]
add rsp, 0x11cd0
pop r12
pop rsi
pop rbp
ret
Function at 0x1400b58a0
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
mov eax, 0x11ce0
call fcn.1400d23d0
sub rsp, rax
cmp qword [rcx + 0x10], 0
movzx edi, dl
mov rbx, rcx
je 0x1400b5a65
xor edx, edx
call fcn.1400b5a80
test eax, eax
jne 0x1400b58e0
mov rbx, qword [rsp + 0x11d00]
add rsp, 0x11ce0
pop rdi
ret
mov qword [rsp + 0x11cf0], rbp
mov qword [rsp + 0x11cf8], rsi
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8, qword [0x1401144a8]
mov rcx, rbx
mov rdx, rax
mov rsi, rax
call fcn.1400b5b30
mov ecx, dword [0x14011b198]
xor ebp, ebp
test rax, rax
lea rax, [0x1400e346c]
cmovne ecx, ebp
mov qword [rsp + 0x1048], rax
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x1884], ebp
mov qword [rsp + 0x1888], rbp
mov qword [rsp + 0x1890], rbp
mov dword [0x14011b198], ecx
mov qword [rsp + 0x18b8], rbp
mov qword [rsp + 0x18c0], rbp
test dil, dil
je 0x1400b596a
mov byte [rsp + 0x1881], bpl
test ecx, ecx
je 0x1400b5972
mov byte [rsp + 0x1881], 1
mov rax, qword [0x14011b190]
mov dword [rsp + 0x18a0], ecx
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x1898], rax
mov rax, qword [rbx + 0x10]
lea rcx, [0x1400b5c50]
mov qword [rsp + 0x18a8], rax
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [rsp + 0x1888]
test rax, rax
je 0x1400b5a29
lea rdx, [rsp + 0x20]
lea rcx, [0x1400b41b0]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rbp
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbx, qword [rsp + 0x28]
test rbx, rbx
je 0x1400b59f0
mov rcx, qword [rsp + 0x1888]
call fcn.1400b50c0
mov qword [rsp + 0x1888], rbx
jmp 0x1400b59f8
mov rbx, qword [rsp + 0x1888]
mov rcx, rbx
call fcn.1400b2670
mov rcx, qword [rsp + 0x1888]
call fcn.1400b50c0
mov r11, qword [0x1401144a8]
mov ecx, dword [r11 + 0x74]
cmp ecx, 0xffffffff
jle 0x1400b5a55
mov edx, 1
call fcn.140001a70
jmp 0x1400b5a55
mov eax, dword [0x14011b198]
test eax, eax
je 0x1400b5a55
cmp eax, 1
mov dword [0x14011b198], ebp
setg al
test al, al
je 0x1400b5a55
mov rcx, rsi
call fcn.1400b50c0
xor edx, edx
mov rcx, rbx
call fcn.1400b58a0
mov rsi, qword [rsp + 0x11cf8]
mov rbp, qword [rsp + 0x11cf0]
mov eax, 1
mov rbx, qword [rsp + 0x11d00]
add rsp, 0x11ce0
pop rdi
ret
Function at 0x1400caf8c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.1400cadfc

Function at 0x1400d4a38
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x140112e90]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.1400ce708
xor ebx, ebx
cmp qword [0x140117a48], rbx
mov rdi, rax
jne 0x1400d4b4b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x1400d4c22
lea rdx, [0x1400e29f0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400d4c22
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140117a48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140117a50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x140117a58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140117a68], rax
test rax, rax
je 0x1400d4b42
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140117a60], rax
jmp 0x1400d4b52
mov rax, qword [0x140117a60]
jmp 0x1400d4b59
mov rax, qword [0x140117a60]
mov r11, qword [0x140117a68]
cmp rax, rdi
je 0x1400d4bc0
cmp r11, rdi
je 0x1400d4bc0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140117a68]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x1400d4bc0
test rax, rax
je 0x1400d4bc0
call rsi
test rax, rax
je 0x1400d4bba
lea rcx, [rsp + 0x30]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400d4bba
test byte [rsp + 0x40], 1
jne 0x1400d4bc0
bts ebp, 0x15
jmp 0x1400d4c00
mov rcx, qword [0x140117a50]
cmp rcx, rdi
je 0x1400d4c00
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400d4c00
call rax
mov rbx, rax
test rax, rax
je 0x1400d4c00
mov rcx, qword [0x140117a58]
cmp rcx, rdi
je 0x1400d4c00
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400d4c00
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140117a48]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400d4c22
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x1400d4c24
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400d1940
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400d6cb7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140112e90]
jne 0x1400d195a
rol rcx, 0x10
test cx, 0xffff
jne 0x1400d1956
repz ret
ror rcx, 0x10
jmp 0x1400d6c10
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140117b90]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140117c88]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400d6c95
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140117b90]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1400d6cb7
mov rax, qword [rsp + 0x88]
mov qword [0x140117c88], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140117c28], rax
mov rax, qword [0x140117c88]
mov qword [0x140117b00], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140117c10], rax
mov dword [0x140117af0], 0xc0000409
mov dword [0x140117af4], 1
mov rax, qword [0x140112e90]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140112e98]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140117b88], eax
mov ecx, 1
call fcn.1400d475c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400e33c0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140117b88], 0
jne 0x1400d6d3e
mov ecx, 1
call fcn.1400d475c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140029bbc
Capabilities:
Clear file content

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, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001d294
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001d294
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140029d0c
cmp rax, 0xffffffffffffffff
je 0x140029d0c
xor edi, edi
test rbp, rbp
jle 0x140029cb7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001fbc0
mov rbx, rax
test rax, rax
jne 0x140029c44
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140029cad
mov edx, 0x8000
mov ecx, r14d
call fcn.14001abfc
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001df70
cmp eax, 0xffffffff
je 0x140029c8d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029c54
mov edx, r15d
mov ecx, r14d
call fcn.14001abfc
jmp 0x140029cad
cmp byte [rsi + 0x38], dil
je 0x140029ca4
cmp dword [rsi + 0x34], 5
jne 0x140029ca4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140029cad
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b960
jmp 0x140029d20
jns 0x140029d20
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001d294
cmp rax, 0xffffffffffffffff
jne 0x140029cd8
cmp byte [rsi + 0x30], dil
je 0x140029d20
mov edi, dword [rsi + 0x2c]
jmp 0x140029d20
mov ecx, r14d
call fcn.1400190b8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029d20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140029d20
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029d19
mov eax, dword [rsi + 0x2c]
jmp 0x140029d1e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001d294
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14002ae10
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002ae38
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002ae38
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1400019a0
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x7ff7e4c4577a
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 0x7ff7e4c457a3
pop rbp
sub rbp, 0x33
sub rbp, 0xf55770
sub rsp, 0x20
jmp 0x7ff7e4c457c2
mov rax, 0xf55770
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x7e5a4c24
xor byte [rax], dl
inc rax
dec rcx
jne 0x7ff7e4c457e1
jmp 0x7ff7e4c457f8
mov rcx, rbp
mov ecx, dword [rcx + 0x3c]
add rcx, 0x108
add rcx, rbp
mov rax, 7
mov rdx, 0x28
mul rdx
add rcx, rax
mov eax, dword [rcx + 0xc]
add rax, rbp
push rax
push rax
movabs rax, 0x2696c0
movabs rcx, 0xcec0ad
add rcx, rbp
movabs rdx, 0x6e821edb
call fcn.7ff7e4c45855
jmp 0x7ff7e4c4586b
pop rax
pop rdx
push rdx
push rax
movabs rax, 0x2696c0
movabs rcx, 0xcec0ad
add rcx, rbp
call fcn.7ff7e4c45890
jmp 0x7ff7e4c45b1d
pop rdi
pop rsi
jmp 0x7ff7e4c45b28
mov rax, 0xf55770
add rax, rbp
add rax, 0x3ea
mov rcx, 0x2a5
mov rdx, 0xfd82cfd
xor byte [rax], dl
inc rax
dec rcx
jne 0x7ff7e4c45b47
jmp 0x7ff7e4c45b5e
push rsi
mov rsi, rdi
pop rdi
mov edi, dword [rsi + 0x3c]
mov edi, dword [rdi + rsi + 0xb0]
add rdi, rsi
mov eax, dword [rsi + 0x3c]
add rax, rsi
mov rax, qword [rax + 0x30]
mov rbx, rsi
sub rbx, rax
mov edx, dword [rdi]
mov ecx, dword [rdi + 4]
cmp edx, 0
je 0x7ff7e4c45be8
add rdx, rsi
add rdi, 8
sub rcx, 8
cmp ecx, 0
je 0x7ff7e4c45b83
mov ax, word [rdi]
shr eax, 0xc
and eax, 0xf
cmp eax, 0xa
jne 0x7ff7e4c45bd6
mov ax, word [rdi]
and eax, 0xfff
add rax, rdx
add qword [rax], rbx
dec rcx
dec rcx
add rdi, 2
jmp 0x7ff7e4c45ba6
jmp 0x7ff7e4c45bf1
mov rax, 0xf55770
add rax, rbp
add rax, 0x4b3
mov rcx, 0x1dc
mov rdx, 0x453a8d8a
xor byte [rax], dl
inc rax
dec rcx
jne 0x7ff7e4c45c10
jmp 0x7ff7e4c45c27
mov edi, dword [rsi + 0x3c]
mov edi, dword [rdi + rsi + 0x90]
add rdi, rsi
cmp dword [rdi + 0xc], 0
je 0x7ff7e4c45cdc
mov ecx, dword [rdi + 0xc]
add rcx, rsi
call qword [rbp + 0xc55ef4]
cmp eax, 0
jne 0x7ff7e4c45c62
mov ecx, dword [rdi + 0xc]
add rcx, rsi
call qword [rbp + 0xc55f0c]
cmp dword [rdi + 0xc], 0
je 0x7ff7e4c45cdc
cmp dword [rdi], 0
jne 0x7ff7e4c45c80
cmp dword [rdi + 0x10], 0
je 0x7ff7e4c45cd0
mov r13, rax
mov eax, dword [rdi + 0x10]
add rax, rsi
cmp dword [rax], 0
je 0x7ff7e4c45cd0
mov r12, rax
mov rdx, qword [rax]
or edx, edx
jns 0x7ff7e4c45caa
jmp 0x7ff7e4c45cb4
add rdx, rsi
add rdx, 2
mov rcx, r13
call qword [rbp + 0xc55efc]
mov qword [r12], rax
add r12, 8
mov rax, r12
jmp 0x7ff7e4c45c89
add rdi, 0x14
jmp 0x7ff7e4c45c34
add rsp, 0x20
mov r9, rsp
mov r8, 0xf55e00
mov rdx, rbp
mov rcx, rsi
mov eax, dword [rsi + 0x3c]
mov eax, dword [rax + rsi + 0x28]
add rax, rsi
jmp rax

Function at 0x7ff7e4c45855
Capabilities:
Encode data using xor

Disassembly:
shr eax, 2
xor dword [rcx], edx
add rcx, 4
dec rax
jne 0x7ff7e4c45858
ret
Function at 0x7ff7e4c45913
Capabilities:
Decompress data using aplib

Disassembly:
push rsi
push rdi
push rbp
push rdx
mov rdi, rdx
mov rsi, rcx
cld
mov dl, 0x80
mov al, byte [rsi]
add rsi, 1
mov byte [rdi], al
add rdi, 1
mov rbx, 2
add dl, dl
jne 0x7ff7e4c45948
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x7ff7e4c45920
add dl, dl
jne 0x7ff7e4c4595d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x7ff7e4c459e2
xor rax, rax
add dl, dl
jne 0x7ff7e4c45975
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x7ff7e4c45ae1
add dl, dl
jne 0x7ff7e4c4598a
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc rax, rax
add dl, dl
jne 0x7ff7e4c4599c
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc rax, rax
add dl, dl
jne 0x7ff7e4c459ae
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc rax, rax
add dl, dl
jne 0x7ff7e4c459c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc rax, rax
je 0x7ff7e4c459d1
mov rbx, rdi
sub rbx, rax
mov al, byte [rbx]
mov byte [rdi], al
inc rdi
mov rbx, 2
jmp 0x7ff7e4c45939
mov rax, 1
add dl, dl
jne 0x7ff7e4c459f8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc rax, rax
add dl, dl
jne 0x7ff7e4c45a0a
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x7ff7e4c459e9
sub rax, rbx
mov rbx, 1
jne 0x7ff7e4c45a5d
mov rcx, 1
add dl, dl
jne 0x7ff7e4c45a36
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc rcx, rcx
add dl, dl
jne 0x7ff7e4c45a48
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x7ff7e4c45a27
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x7ff7e4c45939
dec rax
shl rax, 8
mov al, byte [rsi]
inc rsi
mov rbp, rax
mov rcx, 1
add dl, dl
jne 0x7ff7e4c45a82
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc rcx, rcx
add dl, dl
jne 0x7ff7e4c45a94
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x7ff7e4c45a73
cmp rax, 0x7d00
sbb rcx, 0xffffffffffffffff
cmp rax, 0x500
sbb rcx, 0xffffffffffffffff
cmp rax, 0x80
adc rcx, 0
cmp rax, 0x80
adc rcx, 0
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x7ff7e4c45939
mov al, byte [rsi]
inc rsi
xor rcx, rcx
shr al, 1
je 0x7ff7e4c45b12
adc rcx, 2
mov rbp, rax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov rbx, 1
jmp 0x7ff7e4c45939
pop rdx
sub rdi, rdx
mov rax, rdi
pop rbp
pop rdi
pop rsi
ret
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14002c8e0]
mov dword [rax], 1
mov rax, qword [0x14002c8f0]
mov dword [rax], 1
mov rax, qword [0x14002c900]
mov dword [rax], 1
mov rax, qword [0x14002c8d0]
mov dword [rax], 1
mov rax, qword [0x14002c790]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
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 0x14000150a
mov eax, 0
jmp 0x14000158b
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 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140006036
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
cmp qword [rbp + 0x18], 0
je 0x140006066
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.nimCStrLen_1
mov rdx, rax
jmp 0x14000606b
mov edx, 0
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rcx, qword [rbp + 0x10]
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140010327
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp - 8], 0
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rcx, qword [rbp + 0x10]
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140011d71
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
lea rax, str.echoBinSafe
mov qword [rbp - 0x58], rax
lea rax, [0x140029418]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov word [rbp - 0x40], 0
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.nimFrame_6
call sym.nimErrorFlag_5
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x50], 0xad7
lea rax, [0x140034180]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x50], 0x12
lea rax, [0x140029bf8]
mov qword [rbp - 0x48], rax
mov qword [rbp - 8], 0
mov qword [rbp - 0x50], 0x13
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x18]
jge 0x140011ed1
mov qword [rbp - 0x50], 0xad8
lea rax, [0x140029418]
mov qword [rbp - 0x48], rax
cmp qword [rbp - 8], 0
js 0x140011e35
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x18]
jl 0x140011e4e
mov rax, qword [rbp + 0x18]
lea rdx, [rax - 1]
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.raiseIndexError2
jmp 0x140011f62
mov rax, qword [rbp - 8]
shl rax, 4
mov rdx, rax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x50], 0xaef
mov ecx, 1
mov rax, qword [sym.__acrt_iob_func]
call rax
mov rcx, rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rax + 8]
mov rax, qword [rax]
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
lea rax, [rbp - 0x70]
mov r8d, 0
mov rdx, rax
call sym.writeWindows__system_u9015
mov rax, qword [rbp - 0x10]
movzx eax, byte [rax]
movzx eax, al
test eax, eax
jne 0x140011f61
mov qword [rbp - 0x50], 0xd
lea rax, [0x140029bf8]
mov qword [rbp - 0x48], rax
add qword [rbp - 8], 1
jmp 0x140011e03
nop
mov qword [rbp - 0x50], 0xaf3
lea rax, [0x140029418]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x20], 0
mov ecx, 1
mov rax, qword [sym.__acrt_iob_func]
call rax
mov r9, rax
mov r8d, 1
mov edx, 1
lea rax, [0x140029409]
mov rcx, rax
call sym.fwrite
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x50], 0xaf4
mov dword [rbp - 0x24], 0
mov ecx, 1
mov rax, qword [sym.__acrt_iob_func]
call rax
mov rcx, rax
call sym.fflush
mov dword [rbp - 0x24], eax
mov qword [rbp - 0x50], 0xaf8
lea rax, [0x140034180]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140011f62
nop
call sym.popFrame_6
nop
add rsp, 0x90
pop rbp
ret