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

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x140021b3a
mov rax, rdx
mov rdx, qword [rbp + 0x50]
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 0x140021b30
cmp r10, r11
jb 0x140021bb6
cmp r10, rdx
ja 0x140021bc8
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x140021b32
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140021b10
jmp 0x140021b97
ja 0x140021b3a
mov r11, r10
cmp rax, r8
jne 0x140021ad7
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x140021b9b
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140021b70
mov r8, r10
sub ecx, r9d
jns 0x140021b8e
jmp 0x140021b9d
cmp r10, rdx
je 0x140021baa
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x140021b9d
xor al, 1
cmp r8, rdx
jne 0x140021b50
jmp 0x140021b9d
xor eax, eax
jmp 0x140021b9d
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.140024df0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140025330
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400252c0
int3

Function at 0x14002350c
Capabilities:
Parse pe header

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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
pxor xmm0, xmm0
mov qword [rcx + 0x10], 0
mov rsi, rcx
movups xmmword [rcx], xmm0
mov ecx, 0x108e00
call fcn.2b7971c20
lea rdi, [rax + 0x108e00]
mov qword [rsi], rax
mov rcx, rax
mov rbx, rax
mov qword [rsi + 0x10], rdi
mov rdx, qword [sym.payload.dll_globalByteArray]
mov r8d, 0x108e00
call sub.msvcrt.dll_memcpy
mov qword [rsi + 8], rdi
mov rbp, qword [sym.payload.dll_encryptionKey]
lea rdi, [rsp + 0x30]
mov qword [rsp + 0x20], rdi
mov rcx, rbp
call sub.msvcrt.dll_strlen
cmp rax, 1
je 0x2b7951610
test rax, rax
jne 0x2b79515e0
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov byte [rsp + rax + 0x30], 0
mov r8, qword [rsp + 0x28]
nop word [rax + rax]
mov rax, rcx
xor edx, edx
div r8
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + rdx]
xor byte [rbx + rcx], al
add rcx, 1
mov rbx, qword [rsi]
mov rax, qword [rsi + 8]
sub rax, rbx
cmp rcx, rax
jb 0x2b7951590
mov rcx, qword [rsp + 0x20]
cmp rcx, rdi
je 0x2b79515cf
mov rax, qword [rsp + 0x30]
lea rdx, [rax + 1]
call fcn.2b7971c10
mov rax, rsi
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov r8, rdi
mov rdx, rbp
cmp eax, 8
jae 0x2b7951620
xor ecx, ecx
test al, 4
jne 0x2b7951660
test al, 2
jne 0x2b7951648
test al, 1
je 0x2b7951576
movzx edx, byte [rdx + rcx]
mov byte [r8 + rcx], dl
jmp 0x2b7951576
movzx edx, byte [rbp]
mov byte [rsp + 0x30], dl
jmp 0x2b7951576
mov r8d, eax
xor edx, edx
and r8d, 0xfffffff8
mov ecx, edx
add edx, 8
mov r9, qword [rbp + rcx]
mov qword [rdi + rcx], r9
cmp edx, r8d
jb 0x2b7951629
lea r8, [rdi + rdx]
add rdx, rbp
jmp 0x2b79515eb
movzx r9d, word [rdx + rcx]
mov word [r8 + rcx], r9w
add rcx, 2
test al, 1
je 0x2b7951576
jmp 0x2b79515fd
mov ecx, dword [rdx]
mov dword [r8], ecx
mov ecx, 4
test al, 2
je 0x2b79515f5
jmp 0x2b7951648
Function at 0x2b79675e0
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 fcn.2b796f4c0
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.2b796f4c0
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 0x2b7967650
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x2b7a81064]
mov rbx, rcx
test esi, esi
jle 0x2b7967780
mov rax, qword [0x2b7a81068]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x2b796769b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x2b7967725
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x2b7967680
mov rcx, rbx
call fcn.2b7967f70
mov rdi, rax
test rax, rax
je 0x2b79677a2
mov rax, qword [0x2b7a81068]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.2b79680b0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x2b7a81068]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x2b7967787
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x2b796771e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x2b7967730
add dword [0x2b7a81064], 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 [0x2b7a81068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x2b796771e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.2b79675e0
nop dword [rax]
xor esi, esi
jmp 0x2b79676a8
mov rax, qword [0x2b7a81068]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.2b79675e0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.2b79675e0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x2b7967c60
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp edx, 2
je 0x2b7967d90
ja 0x2b7967ca8
test edx, edx
je 0x2b7967d28
mov eax, dword [0x2b7a81088]
test eax, eax
je 0x2b7967e10
mov dword [0x2b7a81088], 1
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp edx, 3
jne 0x2b7967c95
mov eax, dword [0x2b7a81088]
test eax, eax
je 0x2b7967c95
lea r12, [0x2b7a810a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x2b7a81080]
test rbx, rbx
je 0x2b7967d14
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 rsi, rsi
je 0x2b7967e38
test eax, eax
jne 0x2b7967e38
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x2b7967ce8
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x2b7967c95
mov eax, dword [0x2b7a81088]
test eax, eax
jne 0x2b7967da8
mov eax, dword [0x2b7a81088]
cmp eax, 1
jne 0x2b7967c95
mov rbx, qword [0x2b7a81080]
test rbx, rbx
je 0x2b7967d61
nop dword [rax]
mov rcx, rbx
mov rbx, qword [rbx + 0x10]
call fcn.2b7970000
test rbx, rbx
jne 0x2b7967d50
lea rcx, [0x2b7a810a0]
mov qword [0x2b7a81080], 0
mov dword [0x2b7a81088], 0
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp 0x2b7967c95
call fcn.2b7968240
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea r12, [0x2b7a810a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x2b7a81080]
test rbx, rbx
je 0x2b7967dfc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word [rax + rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x2b7967e28
test rsi, rsi
je 0x2b7967e28
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x2b7967dd8
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x2b7967d32
lea rcx, [0x2b7a810a0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x2b7967c8b
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x2b7967dd8
jmp 0x2b7967dfc
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x2b7967ce8
jmp 0x2b7967d14

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

Disassembly:
mov r8, qword [0x2b7a7e220]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x2b7967f90
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x2b7967f98
ret
cmp word [rdx + 0x18], 0x20b
jne 0x2b7967f90
movzx eax, word [rdx + 0x14]
sub rcx, r8
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x2b7967fe5
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x2b7967fdc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x2b7967f90
add rax, 0x28
cmp rax, r9
jne 0x2b7967fc8
xor eax, eax
ret
Function at 0x2b7967ff0
Capabilities:
Parse pe header

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

Function at 0x2b79680b0
Capabilities:
Parse pe header

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

Function at 0x2b7968360
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x2b7968390
mov rdx, rbx
mov ecx, eax
mov dword [rsi], eax
add rsp, 0x28
pop rbx
pop rsi
jmp 0x2b79701b0
add rsp, 0x28
pop rbx
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
test rdx, rdx
jne 0x2b79701c0
xor eax, eax
ret
jmp fcn.2b7967b60

Function at 0x2b79683d0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x2b7968400
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x2b7968418
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x14002ab2c
Capabilities:
Parse pe header

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

Function at 0x14002b090
Capabilities:
Accept command line arguments

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x70
xor ebx, ebx
mov dword [rsp + 0x90], ebx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x90]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0xa8], rax
mov rdi, rax
test rax, rax
jne 0x14002b0d6
lea rax, [rbx - 1]
add rsp, 0x70
pop r15
pop rdi
pop rbx
ret
mov eax, dword [rsp + 0x90]
mov r15, 0xffffffffffffffff
inc eax
mov qword [rsp + 0x60], rsi
movsxd rcx, eax
mov eax, 8
mul rcx
mov qword [rsp + 0x48], r14
cmovo rax, r15
mov rcx, rax
call fcn.14002a7c0
mov r14, rax
mov qword [rsp + 0xa0], rax
mov eax, dword [rsp + 0x90]
test eax, eax
je 0x14002b1cf
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x58], r12
mov r12, r14
mov qword [rsp + 0x50], r13
mov r13, rdi
sub r13, r14
mov r14d, ebx
nop dword [rax]
mov rbp, qword [r12 + r13]
mov r9d, r15d
mov qword [rsp + 0x38], rbx
mov r8, rbp
mov qword [rsp + 0x30], rbx
xor edx, edx
mov dword [rsp + 0x28], ebx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
mov rcx, rdi
call fcn.14002a7c0
mov qword [rsp + 0x38], rbx
mov r9d, r15d
mov qword [rsp + 0x30], rbx
mov r8, rbp
mov dword [rsp + 0x28], edi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [r12], rsi
lea r12, [r12 + 8]
mov eax, dword [rsp + 0x90]
inc r14d
cmp r14d, eax
jne 0x14002b140
mov r14, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0xa8]
mov r13, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x68]
cdqe
mov rcx, rdi
mov qword [r14 + rax*8], rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rsp + 0x90]
mov rdx, r14
call fcn.140002a90
mov esi, eax
cmp dword [rsp + 0x90], ebx
je 0x14002b21c
mov rdi, r14
nop dword [rax + rax]
mov rcx, qword [rdi]
test rcx, rcx
je 0x14002b21c
call fcn.140029ea8
inc ebx
add rdi, 8
cmp ebx, dword [rsp + 0x90]
jne 0x14002b200
mov rcx, r14
call fcn.140029ea8
mov r14, qword [rsp + 0x48]
mov eax, esi
mov rsi, qword [rsp + 0x60]
add rsp, 0x70
pop r15
pop rdi
pop rbx
ret
jmp 0x14002b090
Function at 0x3ff8f2ac0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [sym.imp.cygwin1.dll___stack_chk_guard]
mov rdi, qword [rax]
mov qword [rsp + 0x28], rdi
xor edi, edi
mov eax, dword [rdx + 8]
mov r14, rcx
mov r12, rdx
test eax, eax
js 0x3ff8f2cc4
movabs rdx, 0x8000000000000002
mov rax, qword [r12 + 0x10]
cmp rax, rdx
je 0x3ff8f2cd6
movabs rdx, 0x8000000000000003
cmp rax, rdx
je 0x3ff8f2d10
movabs rdx, 0x8000000000000001
cmp rax, rdx
je 0x3ff8f2c00
mov rbx, qword [r12]
mov r9, r14
mov r8d, 2
mov edx, 1
lea rcx, [0x3ff94a42c]
mov r13, qword [r12 + 0x18]
call sub.cygwin1.dll_fwrite
mov r15, rbx
lea rbp, [rbx + 0x3e]
sub r15, 1
cmovns rbp, r15
sar rbp, 6
cmp rbx, 0xffffffffffffffc2
jl 0x3ff8f2c40
mov rdi, qword [r13 + rbp*8]
xor esi, esi
test rdi, rdi
js 0x3ff8f2b86
mov byte [rsp + 0x24], 0x4e
mov esi, 1
movabs rbx, 0x8000000000000000
jmp 0x3ff8f2bca
lea rax, [rbx - 1]
test rax, rdi
je 0x3ff8f2c50
mov rdx, r14
mov ecx, 0x5b
call sub.cygwin1.dll_putc
lea eax, [rsi + 1]
shr rbx, 1
mov byte [rsp + rsi + 0x24], 0x54
movsxd rsi, eax
je 0x3ff8f2c50
sub r15, 1
xor ecx, ecx
test rdi, rbx
mov rdx, r14
setne cl
add ecx, 0x30
call sub.cygwin1.dll_putc
test r15, r15
je 0x3ff8f2b98
shr rbx, 1
jne 0x3ff8f2bc6
sub rbp, 1
cmp rbp, 0xffffffffffffffff
je 0x3ff8f2d51
mov rdi, qword [r13 + rbp*8]
sub r15, 1
jmp 0x3ff8f2b86
mov rdx, r14
mov ecx, 0x30
call sub.cygwin1.dll_fputc
mov rdx, r14
mov ecx, 0xa
call sub.cygwin1.dll_putc
mov rax, qword [sym.imp.cygwin1.dll___stack_chk_guard]
mov rdi, qword [rsp + 0x28]
xor rdi, qword [rax]
jne 0x3ff8f2d5f
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor esi, esi
mov rdx, r14
mov ecx, 0x5d
call sub.cygwin1.dll_putc
nop
movabs rax, 0x8000000000000004
mov rbx, qword [r12 + 0x10]
cmp rbx, rax
je 0x3ff8f2d2f
mov rcx, r14
mov r8, rbx
lea rdx, str.E_ld
call sub.cygwin1.dll_fprintf
mov rcx, qword [0x3ff956760]
call fcn.3ff93a260
cmp rbx, qword [rax]
jl 0x3ff8f2cf5
mov rcx, qword [0x3ff956750]
call fcn.3ff93a260
cmp rbx, qword [rax]
jle 0x3ff8f2cff
mov byte [rsp + rsi + 0x24], 0x3e
lea eax, [rsi + 1]
cdqe
lea r8, [rsp + 0x24]
lea rdx, str.____s___
mov rcx, r14
mov byte [rsp + rax + 0x24], 0
call sub.cygwin1.dll_fprintf
jmp 0x3ff8f2c0d
mov rdx, rcx
mov ecx, 0x2d
call sub.cygwin1.dll_fputc
jmp 0x3ff8f2af2
mov r9, r14
mov r8d, 5
mov edx, 1
lea rcx, [0x3ff94a420]
call sub.cygwin1.dll_fwrite
jmp 0x3ff8f2c0d
mov byte [rsp + rsi + 0x24], 0x3c
lea eax, [rsi + 1]
jmp 0x3ff8f2ca4
test esi, esi
je 0x3ff8f2c0d
mov eax, esi
jmp 0x3ff8f2ca4
mov r9, r14
mov r8d, 5
mov edx, 1
lea rcx, [0x3ff94a426]
call sub.cygwin1.dll_fwrite
jmp 0x3ff8f2c0d
lea r8, [r12 + 0x20]
lea rdx, str.E_Zd
mov rcx, r14
call qword [sym.imp.cyggmp_10.dll___gmp_fprintf]
mov byte [rsp + rsi + 0x24], 0x55
lea eax, [rsi + 1]
jmp 0x3ff8f2ca4
test r15, r15
jns 0x3ff8f2c50
jmp 0x3ff8f2c42
call sub.cygwin1.dll___stack_chk_fail
nop
nop word cs:[rax + rax]
Function at 0x3ff8f2d70
Capabilities:
Write file on windows

Disassembly:
push r12
sub rsp, 0x20
mov r12, rcx
call sub.cygwin1.dll___getreent
mov rdx, r12
mov rcx, qword [rax + 0x10]
add rsp, 0x20
pop r12
jmp sym.cygmpfr_6.dll_mpfr_fdump
Function at 0x3ff8f88f0
Capabilities:
Encode data using base64

Disassembly:
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x50
mov rsi, qword [sym.imp.cygwin1.dll___stack_chk_guard]
mov edx, 0x40
mov rax, qword [rsi]
mov qword [rsp + 0x48], rax
xor eax, eax
lea r13, [rsp + 0x20]
cmp qword [rcx], 0x40
cmovge rdx, qword [rcx]
mov r14, rcx
mov rcx, r13
call sym.cygmpfr_6.dll_mpfr_init2
mov rcx, qword [r14 + 0x10]
mov r8d, 1
mov edx, 0xa
call sym.cygmpfr_6.dll_mpfr_ceil_mul
xor r8d, r8d
mov r9d, 2
mov rcx, r13
lea r12, [rax - 1]
mov rbx, rax
mov rdx, r12
call sym.cygmpfr_6.dll_mpfr_set_si_2exp
mov r8, r13
mov edx, 0xa
mov rcx, r13
mov r9d, 2
call sym.cygmpfr_6.dll_mpfr_ui_pow
mov rdx, r13
mov rcx, r14
call sym.cygmpfr_6.dll_mpfr_cmpabs
mov rcx, r13
movsxd r12, eax
call sym.cygmpfr_6.dll_mpfr_clear
not r12
shr r12, 0x3f
mov rax, qword [rsp + 0x48]
xor rax, qword [rsi]
lea r12, [rbx + r12 - 2]
jne 0x3ff8f89ab
mov rax, r12
add rsp, 0x50
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
call sub.cygwin1.dll___stack_chk_fail
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x3ff8f89c0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
cmp qword [rsp + 0xa0], 0
mov r14d, dword [rsp + 0xa8]
mov r12, rcx
mov edi, edx
mov rbp, r8
mov r13, r9
jne 0x3ff8f8a70
lea eax, [rdx + 0x2f]
lea ebx, [rdx + 0x56]
cmp edx, 0xa
cmovle ebx, eax
cmp r8, 8
jbe 0x3ff8f8a68
mov esi, 0x3d
mov r15d, 8
nop
mov dword [rsp + 0x28], 1
xor ecx, ecx
mov rdx, r12
mov r9, r15
mov qword [rsp + 0x20], r13
mov r8d, edi
call sym.cygmpfr_6.dll_mpfr_get_str
xor ecx, ecx
cmp byte [rax], 0x2d
sete cl
lea rdx, [rax + rcx]
cmp bl, byte [rdx]
jne 0x3ff8f8a48
nop dword [rax]
add rdx, 1
cmp byte [rdx], bl
je 0x3ff8f8a40
add rcx, r15
add rcx, rax
cmp rdx, rcx
jb 0x3ff8f8ab8
mov rcx, rax
call sym.cygmpfr_6.dll_mpfr_free_str
sub esi, 1
je 0x3ff8f8aa0
add r15, r15
cmp rbp, r15
ja 0x3ff8f8a10
mov dword [rsp + 0xa8], r14d
mov r9, rbp
mov r8d, edi
mov rdx, r12
xor ecx, ecx
mov qword [rsp + 0xa0], r13
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sym.cygmpfr_6.dll_mpfr_get_str
lea r8, str.ndigits_____size_t___1____2
mov edx, 0x3df
lea rcx, str._mnt_share_cygpkgs_mpfr_mpfr.x86_64_src_mpfr_4.0.2_src_vasprintf.c
call sym.cygmpfr_6.dll_mpfr_assert_fail
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x3ff9048b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rax, qword [rdx + 0x10]
mov rsi, rdx
mov r12, rcx
movabs rdx, 0x8000000000000004
cmp rax, rdx
jl 0x3ff904960
mov rax, qword [rsi]
lea rbx, [rax - 1]
sar rbx, 6
add rbx, 1
cmp rbx, 0x7fffffff
jg 0x3ff942400
mov rdx, rbx
shl rdx, 6
call qword [sym.imp.cyggmp_10.dll___gmpz_realloc2]
mov rdx, qword [rsi]
mov r9d, edx
neg r9d
and r9d, 0x3f
je 0x3ff9049a8
mov rdx, qword [rsi + 0x18]
mov rcx, qword [r12 + 8]
mov r8, rbx
call qword [sym.imp.cyggmp_10.dll___gmpn_rshift]
mov rdx, qword [rsi]
mov ecx, dword [rsi + 8]
mov eax, ebx
test ecx, ecx
jns 0x3ff904931
neg eax
movabs rbx, 0x8000000000000000
mov dword [r12 + 4], eax
mov rax, qword [rsi + 0x10]
lea rcx, [rax + rbx]
sub rax, rdx
cmp rcx, rdx
jb 0x3ff904990
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
sub rdx, 3
cmp rax, rdx
jne 0x3ff9049d2
xor edx, edx
mov rcx, r12
call qword [sym.imp.cyggmp_10.dll___gmpz_set_ui]
mov rcx, qword [0x3ff956760]
call fcn.3ff93a260
mov rax, qword [rax]
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
mov rcx, qword [0x3ff956770]
call fcn.3ff93a260
or dword [rax], 0x10
mov rax, rbx
jmp 0x3ff904950
mov rcx, qword [r12 + 8]
mov r9, qword [rsi + 0x18]
cmp rcx, r9
je 0x3ff904926
mov rdx, r9
lea r8, [rbx*8]
call sub.cygwin1.dll_memcpy
mov rdx, qword [rsi]
jmp 0x3ff904926
mov rcx, qword [0x3ff956770]
call fcn.3ff93a260
or dword [rax], 0x10
jmp 0x3ff904969
lea r8, str.fn___0x7fffffff
mov edx, 0x3c
lea rcx, str._mnt_share_cygpkgs_mpfr_mpfr.x86_64_src_mpfr_4.0.2_src_get_z_exp.c
call sym.cygmpfr_6.dll_mpfr_assert_fail
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x3ff90f7f0
Capabilities:
Encode data using base64
Resolve function by parsing pe exports

Disassembly:
push r14
push r13
push r12
push rbx
sub rsp, 0x38
mov r13, rcx
mov r14, rdx
mov r12, r8
mov ebx, r9d
mov rcx, r8
call qword [sym.imp.cyggmp_10.dll___gmpz_fits_slong_p]
test eax, eax
je 0x3ff90f840
mov rcx, r12
call qword [sym.imp.cyggmp_10.dll___gmpz_get_si]
mov r9d, ebx
mov rdx, r14
mov rcx, r13
mov r8, rax
add rsp, 0x38
pop rbx
pop r12
pop r13
pop r14
jmp sym.cygmpfr_6.dll_mpfr_div_si
mov rax, qword [sym.cygmpfr_6.dll_mpfr_div]
mov r9d, ebx
mov r8, r12
mov rdx, r14
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.3ff90f630
add rsp, 0x38
pop rbx
pop r12
pop r13
pop r14
ret
Function at 0x3ff91bcc0
Capabilities:
Encode data using base64
Resolve function by parsing pe exports

Disassembly:
push r12
sub rsp, 0x20
mov r12, rcx
test r8, r8
js 0x3ff91bce0
add rsp, 0x20
pop r12
jmp sym.cygmpfr_6.dll_mpfr_div_ui
neg r8
cmp r9d, 2
je 0x3ff91bd10
cmp r9d, 3
mov eax, 2
cmove r9d, eax
mov rcx, r12
call sym.cygmpfr_6.dll_mpfr_div_ui
neg dword [r12 + 8]
neg eax
add rsp, 0x20
pop r12
ret
mov r9d, 3
jmp 0x3ff91bcf6

Function at 0x3ff926390
Capabilities:
Encode data using base64

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
mov rax, qword [rdx + 0x10]
mov r12, rdx
mov r13, rcx
mov ebx, r8d
movabs rdx, 0x8000000000000004
cmp rax, rdx
jl 0x3ff9263e0
mov edx, dword [r12 + 8]
test edx, edx
js 0x3ff926430
mov r8d, ebx
mov rdx, r12
mov rcx, r13
add rsp, 0x20
pop rbx
pop r12
pop r13
jmp fcn.3ff926480
mov rax, qword [r12 + 0x10]
nop word [rax + rax]
movabs rdx, 0x8000000000000002
cmp rax, rdx
je 0x3ff926463
movabs rdx, 0x8000000000000003
cmp rax, rdx
je 0x3ff92640d
mov rcx, qword [0x3ff956770]
call fcn.3ff93a260
or dword [rax], 0x20
movabs rax, 0x8000000000000003
mov dword [r13 + 8], 1
mov qword [r13 + 0x10], rax
xor eax, eax
add rsp, 0x20
pop rbx
pop r12
pop r13
ret
mov rcx, r12
call sym.cygmpfr_6.dll_mpfr_integer_p
test eax, eax
jne 0x3ff9263d5
mov eax, dword [r12 + 8]
test eax, eax
jns 0x3ff9263be
mov rcx, r12
call fcn.3ff926330
test eax, eax
jne 0x3ff9263be
movabs rax, 0x8000000000000002
mov qword [r13 + 0x10], rax
mov rcx, qword [0x3ff956770]
call fcn.3ff93a260
or dword [rax], 4
jmp 0x3ff926423

Function at 0x3ff933a40
Capabilities:
Encode data using base64
Resolve function by parsing pe exports

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
mov edi, dword [rsp + 0x70]
mov rbx, r9
mov r9d, dword [rdx + 8]
mov rsi, r8
mov r8d, edi
mov r12, rcx
call sym.cygmpfr_6.dll_mpfr_set4
mov rax, rbx
mul rsi
jo 0x3ff933a87
mov rbx, rax
mov r9d, edi
mov r8, rbx
mov rdx, r12
mov rcx, r12
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp sym.cygmpfr_6.dll_mpfr_div_ui
mov r9d, edi
mov r8, rsi
mov rdx, r12
mov rcx, r12
call sym.cygmpfr_6.dll_mpfr_div_ui
jmp 0x3ff933a6d