joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a9050
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1403644c8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400a907d
xor eax, eax
jmp 0x1400a91d2
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x1400a90a8
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x1400a90a8
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x1400a91d2
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400a91c5
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x1400a90eb
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400a9116
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400a91ca
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
js 0x1400a91c5
cmp eax, 1
jle 0x1400a9185
cmp eax, 3
jne 0x1400a91c5
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400a91ca
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400a91b3
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1400a91c5
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov eax, edi
jne 0x1400a91ca
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400e39a0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400abf30
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rdi, r8
mov r14, rdx
mov rbx, rcx
je 0x1400abf67
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x30], rbp
mov rbp, rdi
mov qword [rsp + 0x38], rsi
mov rdx, qword [rax]
test rdx, rdx
je 0x1400abf88
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400abf8a
xor ecx, ecx
movsxd rsi, ecx
test rdi, rdi
jle 0x1400ac01b
test ecx, ecx
jle 0x1400abfc2
cmp rdi, rsi
mov rcx, r14
cmovl rsi, rdi
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbx + 0x50]
add r14, rsi
sub rdi, rsi
sub dword [rax], esi
mov rcx, qword [rbx + 0x38]
movsxd rax, esi
add qword [rcx], rax
test rdi, rdi
jle 0x1400ac01b
mov r9, qword [rbx + 0x80]
test r9, r9
je 0x1400ac01b
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400ac007
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov r9, qword [rbx + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
mov rsi, qword [rsp + 0x38]
sub rbp, rdi
mov rbx, qword [rsp + 0x40]
mov rax, rbp
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1400ac040
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x1400ac077
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x1400ac098
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400ac09a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400ac0f3
test ecx, ecx
jle 0x1400ac0ce
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r14, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1400ac0f3
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400ac0f3
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400ad500
Capabilities:
Hash data via bcrypt

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x80
mov qword [rax - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov r10, r8
mov r14, rdx
mov rsi, rcx
xorps xmm0, xmm0
movdqu xmmword [rax - 0x70], xmm0
mov r8, qword [rcx + 0x18]
test r8, r8
je 0x1400ad567
mov eax, dword [r8 + 8]
test eax, eax
je 0x1400ad567
nop word [rax + rax]
lea ecx, [rax + 1]
lock cmpxchg dword [r8 + 8], ecx
je 0x1400ad653
mov eax, dword [r8 + 8]
test eax, eax
jne 0x1400ad550
mov rbx, qword [rsp + 0x30]
xor r15d, r15d
mov qword [rsp + 0x38], r15
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov rcx, r10
mov rdx, qword [r10 + 0x18]
cmp rdx, 0x10
jb 0x1400ad58d
mov rcx, qword [r10]
mov r8, qword [r10 + 0x10]
add r8, rcx
cmp rdx, 0x10
jb 0x1400ad59d
mov r10, qword [r10]
movzx r9d, byte [rsp + 0xa0]
mov rdx, r10
lea rcx, [rsp + 0x38]
call fcn.1400ad1e0
mov r8, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
sub r8, rdi
mov rbp, qword [rsp + 0x28]
xor r9d, r9d
mov rdx, rdi
mov rcx, qword [rbp + 0x10]
call sub.ncrypt.dll_BCryptHashData
test eax, eax
js 0x1400ad6ee
xor r9d, r9d
mov r8d, dword [rsi + 8]
mov rdx, qword [rsi]
mov rcx, qword [rbp + 0x10]
call sub.ncrypt.dll_BCryptFinishHash
test eax, eax
js 0x1400ad6cb
mov rdx, qword [rsi]
mov r8d, dword [rsi + 8]
add r8, rdx
mov qword [r14], r15
mov qword [r14 + 8], r15
mov qword [r14 + 0x10], r15
movzx r9d, byte [rsp + 0xa0]
mov rcx, r14
call fcn.1400ac730
nop
test rdi, rdi
je 0x1400ad673
mov rdx, qword [rsp + 0x48]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x1400ad66a
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400ad66a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rax, qword [rsi + 0x10]
mov qword [rsp + 0x28], rax
mov rbx, qword [rsi + 0x18]
mov qword [rsp + 0x30], rbx
jmp 0x1400ad56c
mov rcx, rdi
call fcn.140082ab0
nop
test rbx, rbx
je 0x1400ad6ab
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400ad6ab
mov rbx, qword [rsp + 0x30]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1400ad6ab
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, r14
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
lea rdx, str.Failed_to_extract_the_hash_data.
lea rcx, [rsp + 0x68]
call fcn.140082580
lea rdx, [0x140359df0]
lea rcx, [rsp + 0x68]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.Failed_to_hash_data.
lea rcx, [rsp + 0x50]
call fcn.140082580
lea rdx, [0x140359df0]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1400b99b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1403644c8]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400b9a62
cmp byte [rcx + 0x72], 0
je 0x1400b9a62
mov rax, qword [rcx]
mov edi, 0xffff
mov edx, edi
call qword [rax + 0x18]
cmp di, ax
je 0x1400b9a23
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400b9a27
sub eax, 1
je 0x1400b9a2b
sub eax, 2
je 0x1400b9a62
xor al, al
jmp 0x1400b9a64
mov byte [rbx + 0x72], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400b9a59
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400b9a23
cmp byte [rbx + 0x72], 0
sete al
jmp 0x1400b9a64
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400e39a0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x1400ba950
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1403644c8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, 0xffff
movzx edi, dx
mov rbx, rcx
cmp si, dx
jne 0x1400ba98b
xor eax, eax
cmp dx, si
cmove di, ax
movzx eax, di
jmp 0x1400baacb
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x1400ba9b8
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
lea rdx, [rax + r8*2]
cmp rax, rdx
jae 0x1400ba9b8
call qword [sym.imp.MSVCP140.dll_protected:_wchar_t____ptr64___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::_Pninc_void____ptr64]
mov word [rax], di
movzx eax, di
jmp 0x1400baacb
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xb0], rbp
je 0x1400baac0
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x1400ba9ff
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub rdx, rcx
mov rax, qword [rbx + 0x38]
sar rdx, 1
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400baa29
movzx ecx, di
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
cmp ax, si
je 0x1400baac0
movzx esi, di
jmp 0x1400baac0
lea rax, [rsp + 0x48]
mov word [rsp + 0x40], di
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x42]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
js 0x1400baac0
cmp eax, 1
jle 0x1400baa7f
cmp eax, 3
jne 0x1400baac0
movzx ecx, word [rsp + 0x40]
jmp 0x1400baa0b
mov rbp, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rbp, rax
je 0x1400baaad
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbp
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbp, rax
jne 0x1400baac0
lea rax, [rsp + 0x40]
mov byte [rbx + 0x72], 1
cmp qword [rsp + 0x50], rax
movzx eax, di
jne 0x1400baac3
movzx eax, si
mov rbp, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400e39a0
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400c0bd0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x2e0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1403644c8]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov rbx, rcx
mov qword [rsp + 0x50], rcx
mov dil, 1
mov byte [rsp + 0x30], dil
movdqa xmm0, xmmword [0x14027bc70]
movdqu xmmword [rsp + 0x68], xmm0
xor esi, esi
mov word [rsp + 0x58], si
mov rdx, qword [str.SOFTWARENITROPRO13NitroPDFCreator]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], si
jne 0x1400c0c31
lea rcx, [rsp + 0x58]
call fcn.140086f50
nop
mov r8d, 1
lea rdx, [0x140286520]
lea rcx, [rsp + 0x58]
call fcn.1400adcd0
mov r8d, reloc.WS2_32.dll_ntohl
lea rdx, str.SupportOptions
lea rcx, [rsp + 0x58]
call fcn.1400adcd0
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rdx, qword [rsp + 0x58]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400c0d87
movdqa xmm0, xmmword [0x14027bc70]
movdqu xmmword [rsp + 0x88], xmm0
mov word [rsp + 0x78], si
mov dword [rsp + 0x34], esi
mov dword [rsp + 0x3c], 4
mov dword [rsp + 0x38], 4
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400c0ce4
mov rdx, qword [rbx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400c0d1e
cmp dword [rsp + 0x34], eax
setne dil
mov byte [rsp + 0x30], dil
jmp 0x1400c0d79
xor r8d, r8d
lea edx, [r8 + 4]
lea rcx, [rsp + 0xa0]
call fcn.14025b540
nop
lea rcx, [rsp + 0xa0]
call fcn.14025c1a0
test al, al
je 0x1400c0d6c
lea rdx, str.getvalue_error_could_not_query_value
lea rcx, [rsp + 0xa0]
call fcn.140253210
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rsi
call fcn.140253100
nop
lea rcx, [rsp + 0xa0]
call fcn.140252b50
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x1400c0de3
xor r8d, r8d
lea edx, [r8 + 4]
lea rcx, [rsp + 0xa0]
call fcn.14025b540
nop
lea rcx, [rsp + 0xa0]
call fcn.14025c1a0
test al, al
je 0x1400c0dd5
lea rdx, str.getvalue_error_could_not_open_key
lea rcx, [rsp + 0xa0]
call fcn.140253210
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rsi
call fcn.140253100
nop
lea rcx, [rsp + 0xa0]
call fcn.140252b50
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x1400c0e29
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c0e23
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400c0e23
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140082ab0
nop
jmp 0x1400c0e35
mov rcx, rbx
call fcn.1400867f0
nop
movzx eax, dil
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.1400e39a0
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400cd0d0
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x2f0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1403644c8]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x38], rcx
xor esi, esi
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
mov byte [rcx + 0x10], sil
movzx eax, word [reloc.WS2_32.dll_accept]
mov word [rcx + 0x12], ax
test r8b, r8b
je 0x1400cd143
mov rcx, rdx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400cd143
mov rdx, rdi
mov rcx, rbx
call fcn.1400d25a0
jmp 0x1400cd1c9
mov qword [rbx + 8], rdi
lea rdx, str.Wstring
lea rcx, [rsp + 0x48]
call qword [sym.imp.npdf.dll_class_nitro::pdf::atom___cdecl_ASAtomFromString_char_const____ptr64_]
mov qword [rsp + 0x20], rsi
mov r9, rdi
mov r8, qword [rax]
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.npdf.dll_class_nitro::box_class_nitro::as_layer::file_path____cdecl_ASFileSysCreatePathName_class_nitro::as_layer::file_system_const__const___ptr64__class_nitro::pdf::atom__void_const____ptr64__void_const____ptr64_]
nop
mov qword [rsp + 0xa8], rsi
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400cd1f8
xor r8d, r8d
lea rdx, [rsp + 0x70]
call qword [sym.imp.npdf.dll_PDDocOpen]
mov qword [rbx], rax
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x1400cd1b4
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400cd1c9
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
nop
jmp 0x1400cd1d0
mov rax, rbx
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.1400e39a0
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
lea rcx, [rsp + 0x50]
call fcn.1400cd3c0
lea rdx, [0x14035a7e8]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1400d78d0
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x270
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1403644c8]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x28], rcx
mov rcx, rdx
cmp qword [rdx + 0x18], 8
jb 0x1400d7916
mov rcx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
cmp rax, 0x20
jae 0x1400d796c
xor r8d, r8d
lea edx, [r8 + 4]
lea rcx, [rsp + 0x30]
call fcn.14025b540
nop
lea rcx, [rsp + 0x30]
call fcn.14025c1a0
test al, al
je 0x1400d7962
lea rdx, str.Cant_load_GS_dll:
lea rcx, [rsp + 0x30]
call fcn.140253210
mov rdx, rdi
mov rcx, rax
call fcn.140252e40
nop
lea rcx, [rsp + 0x30]
call fcn.140252b50
mov qword [rbx], rsi
mov ecx, 0x28
call fcn.1400e351c
xor ecx, ecx
test rax, rax
je 0x1400d7995
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
mov qword [rax + 0x20], rcx
jmp 0x1400d7998
mov rax, rcx
mov qword [rbx + 8], rax
mov rcx, qword [rbx]
cmp rcx, 0x20
jbe 0x1400d7a24
lea rdx, str.gsapi_new_instance
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
mov rax, qword [rbx + 8]
mov qword [rax], rcx
lea rdx, str.gsapi_delete_instance
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
mov rax, qword [rbx + 8]
mov qword [rax + 8], rcx
lea rdx, str.gsapi_init_with_args
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
mov rax, qword [rbx + 8]
mov qword [rax + 0x10], rcx
lea rdx, str.gsapi_exit
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
mov qword [rcx + 0x18], rax
lea rdx, str.gsapi_set_poll
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
mov qword [rcx + 0x20], rax
jmp 0x1400d7a61
xor r8d, r8d
lea edx, [r8 + 4]
lea rcx, [rsp + 0x30]
call fcn.14025b540
nop
lea rcx, [rsp + 0x30]
call fcn.14025c1a0
test al, al
je 0x1400d7a56
lea rdx, str.Ghostscript_not_found_
lea rcx, [rsp + 0x30]
call fcn.140253210
nop
lea rcx, [rsp + 0x30]
call fcn.140252b50
nop
mov rax, rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400e39a0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400db380
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop
test rax, rax
jne 0x1400db3b7
xor eax, eax
jmp 0x1400db406
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
nop
mov rbx, rax
test rax, rax
je 0x1400db3b3
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
nop
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x1400db3f5
cmp rbx, rcx
jae 0x1400db3b3
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x1400db3e0
cmp rbx, rcx
jae 0x1400db3b3
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14010c150
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rbp
push rdi
push r13
sub rsp, 0x58
mov rax, qword [0x1403644c8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rdx
mov r13, rcx
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rdx + rbx], 0
jne 0x14010c176
mov qword [rsp + 0x90], rsi
xor ebp, ebp
cmp byte [rdx], 0x5b
mov qword [rsp + 0x98], r14
mov qword [rsp + 0x50], r15
jne 0x14010c2dc
cmp rbx, 4
jb 0x14010c2f1
inc rdi
sub rbx, 2
cmp byte [rdi + rbx], 0x5d
lea r14, [rdi + rbx]
jne 0x14010c2f1
lea rdx, str.0123456789abcdefABCDEF:.
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strspn]
cmp rbx, rax
je 0x14010c284
cmp byte [rdi + rax], 0x25
lea r14, [rdi + rax]
jne 0x14010c2f1
lea r8d, [rbp + 2]
mov esi, ebp
lea rdx, [0x14029161c]
lea rcx, [r14 + 1]
lea rbx, [r14 + 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x14010c217
movzx eax, byte [r14 + 3]
lea rcx, [r14 + 3]
test al, al
je 0x14010c217
cmp al, 0x5d
cmovne rbx, rcx
movzx eax, byte [rbx]
test al, al
je 0x14010c2f1
mov rcx, rbp
cmp al, 0x5d
je 0x14010c242
cmp rcx, 0xf
jge 0x14010c242
inc rbx
mov byte [rsp + rcx + 0x20], al
inc esi
inc rcx
movzx eax, byte [rbx]
test al, al
jne 0x14010c225
test esi, esi
je 0x14010c2f1
cmp byte [rbx], 0x5d
jne 0x14010c2f1
movsxd rax, esi
cmp rax, 0x10
jae 0x14010c2f8
lea rcx, [rsp + 0x20]
mov byte [rsp + rax + 0x20], bpl
call qword [str.Z__]
mov qword [r13 + 0x28], rax
test rax, rax
jne 0x14010c280
mov eax, 7
jmp 0x14010c2b0
mov byte [r14 + 1], bpl
lea r8, [rsp + 0x30]
mov byte [r14], bpl
mov rdx, rdi
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x14010c2f1
mov byte [r14], 0x5d
cmp byte [rdi], bpl
mov eax, reloc.WS2_32.dll_ntohl
cmove ebp, eax
mov eax, ebp
mov r15, qword [rsp + 0x50]
mov r14, qword [rsp + 0x98]
mov rsi, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400e39a0
add rsp, 0x58
pop r13
pop rdi
pop rbp
pop rbx
ret
lea rdx, [0x14027c234]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcspn]
cmp rbx, rax
je 0x14010c2a3
mov eax, 3
jmp 0x14010c2b0
call fcn.1400e41cc
int3

Function at 0x14010d0f0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
cdqe
add rsp, 0x28
ret