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

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140004f78
add rsp, 0x20
pop r15
pop rdi
pop rbx
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 + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140004f9e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140004fa0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140004ff9
test ecx, ecx
jle 0x140004fd9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140004ff9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140004ff9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140005020
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140005042
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140005058
add rsp, 0x30
pop r14
pop rsi
pop rbp
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 + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140005074
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140005076
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400050b2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000514e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400050ed
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000512e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000514e
cmp rbx, rax
ja 0x140005100
test rbx, rbx
je 0x14000514e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x1400055b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140023040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400055dd
xor eax, eax
jmp 0x140005749
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140005617
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140005617
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140005749
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000573c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000565a
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 rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140005685
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 0x140005741
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
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
je 0x1400056f4
sub eax, 1
je 0x1400056f4
cmp eax, 2
jne 0x14000573c
movsx ecx, byte [rsp + 0x50]
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 0x140005741
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140005722
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 0x14000573c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140005741
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000ec00
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140005b50
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140023040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140005c23
cmp byte [rcx + 0x71], 0
je 0x140005c23
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140005c1f
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_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140005be4
sub eax, 1
je 0x140005be8
cmp eax, 2
jne 0x140005c1f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000ec00
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140005c16
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 0x140005c1f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140005bcc
xor al, al
jmp 0x140005bcc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000ec00
add rsp, 0x60
pop rbx
ret

Function at 0x1400091b0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x140023040]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
mov qword [rsp + 0x20], rax
cmp rax, 0xffffffffffffffff
je 0x140009243
xor edx, edx
mov r8d, 0x238
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x30], 0x238
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140009243
cmp dword [rsp + 0x38], edi
je 0x14000923f
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140009225
jmp 0x140009243
mov esi, dword [rsp + 0x50]
cmp rbx, 0xffffffffffffffff
je 0x140009252
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14000ec00
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140009280
Capabilities:
Get explorer pid

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140023040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_GetShellWindow]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call fcn.1400091b0
cmp eax, dword [rsp + 0x20]
jne 0x14000930d
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.___Pausing_to_allow_for_debugging
call fcn.140005e70
lea rdx, [0x140006050]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.___Press_enter_to_close
call fcn.140005e70
lea rdx, [0x140006050]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_istream_char__struct_std::char_traits_char__::get_void____ptr64]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14000ec00
add rsp, 0x38
ret
Function at 0x14000c2d0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140023040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor r8d, r8d
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14000c3f1
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000c3f1
test rax, rax
je 0x14000c3f1
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
mov qword [rsp + 0x58], r8
mov ecx, dword [rax + 0xb0]
test ecx, ecx
jne 0x14000c353
mov qword [rdi], r8
mov qword [rdi + 8], r8
mov qword [rdi + 0x10], r8
jmp 0x14000c3fc
lea rbx, [rdx + rcx]
mov ebp, dword [rax + 0xb4]
add rbp, rbx
mov rcx, qword [rsp + 0x50]
cmp rbx, rbp
jae 0x14000c3df
nop word [rax + rax]
mov edx, dword [rbx + 4]
test edx, edx
je 0x14000c3df
mov eax, dword [rbx]
add rax, rsi
mov qword [rsp + 0x28], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x30], rax
lea rax, [rdx - 8]
shr rax, 1
mov dword [rsp + 0x38], eax
cmp rcx, r8
je 0x14000c3b8
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rsp + 0x38]
movsd qword [rcx + 0x10], xmm1
add rcx, 0x18
mov qword [rsp + 0x50], rcx
jmp 0x14000c3d4
lea r8, [rsp + 0x28]
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.14000cc80
mov r8, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, rbp
jb 0x14000c370
mov rax, qword [rsp + 0x48]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], r8
jmp 0x14000c3fc
mov qword [rcx], r8
mov qword [rcx + 8], r8
mov qword [rcx + 0x10], r8
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14000ec00
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000de90
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x50
mov rax, qword [0x140023040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, rcx
lea r9, [rsp + 0x20]
xor r14d, r14d
mov ecx, 0xb
xor r8d, r8d
mov dword [rsp + 0x20], r14d
xor edx, edx
mov ebx, r14d
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x14000df22
test rbx, rbx
je 0x14000dee8
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, 0xb
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x14000ded2
test eax, eax
jns 0x14000df43
test rbx, rbx
je 0x14000df48
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x14000e047
test rbx, rbx
jne 0x14000df4f
xor eax, eax
jmp 0x14000e047
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x80], rdi
mov edi, r14d
cmp dword [rbx], r14d
jbe 0x14000e027
nop dword [rax + rax]
mov eax, edi
xorps xmm0, xmm0
imul rcx, rax, 0x128
movups xmmword [rsp + 0x28], xmm0
movzx edx, word [rcx + rbx + 0x2e]
lea rbp, [rcx + rbx]
add rdx, 0x30
mov qword [rsp + 0x38], r14
add rdx, rcx
mov qword [rsp + 0x40], r14
add rdx, rbx
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], r14b
jne 0x14000dfa5
lea rcx, [rsp + 0x28]
call fcn.140007730
cmp qword [rsi + 0x18], 0xf
mov rdx, rsi
jbe 0x14000dfc5
mov rdx, qword [rsi]
cmp qword [rsp + 0x40], 0xf
lea rcx, [rsp + 0x28]
cmova rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14000e05d
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x14000e01d
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e018
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000e0a6
call fcn.14000ec20
inc edi
cmp edi, dword [rbx]
jb 0x14000df70
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbp, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000ec00
add rsp, 0x50
pop r14
pop rsi
pop rbx
ret
mov rdi, qword [rbp + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x14000e0b2
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e0ad
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000e0ad
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000ec20
mov rax, rdi
jmp 0x14000e03a
Function at 0x14000e4e0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14000e51a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14000e51f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14000e568
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400116e0]
cmp byte [rcx + rax], 0
je 0x14000e568
dec r8
sub rdx, 1
jne 0x14000e54e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14000fb14
Capabilities:
Parse pe header

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

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb0
xor esi, esi
lea r14, str.error_accessing__s:__s_n
mov qword [rcx], 0
mov r12, rcx
lea rbp, [rsp + 0x30]
mov rcx, qword [0x100429030]
mov qword [rsp + 0x28], 0
lea r13, [rsp + 0x28]
call fcn.10040ed50
mov rdi, rax
test rax, rax
je 0x100401696
nop
mov rcx, rdi
call fcn.10040edb0
mov rbx, rax
test rax, rax
je 0x10040162f
mov rcx, qword [rbx]
cmp byte [rcx], 0x2e
je 0x100401550
mov edx, 0x2e
call sub.msys_2.0.dll_strchr
test rax, rax
je 0x100401550
mov rcx, rsi
call sub.msys_gcrypt_20.dll_gcry_free
mov rdx, qword [rbx]
mov rcx, qword [0x100429030]
xor r8d, r8d
call fcn.10040ba40
mov rsi, rax
test rax, rax
je 0x10040166a
mov rdx, rbp
mov rcx, rax
call fcn.10040ed30
test eax, eax
jne 0x100401600
mov eax, dword [rsp + 0x40]
and eax, 0xf000
cmp eax, 0x4000
jne 0x100401550
mov rdx, rsi
mov rcx, r13
call fcn.10040c9f0
test rax, rax
jne 0x100401550
call sub.msys_gpg_error_0.dll_gpg_err_code_from_syserror
movzx ebx, ax
mov ecx, ebx
call sub.msys_gpg_error_0.dll_gpg_strerror
lea rcx, str.add_to_strlist_failed_in__s:__s_n
lea rdx, str.get_domain_list
mov r8, rax
call sub.msys_gpg_error_0.dll_gpgrt_log_error
mov rcx, qword [rsp + 0x28]
jmp 0x100401641
call sub.msys_gpg_error_0.dll_gpg_err_code_from_syserror
movzx ecx, ax
call sub.msys_gpg_error_0.dll_gpg_strerror
mov rdx, rsi
mov rcx, r14
mov r8, rax
call sub.msys_gpg_error_0.dll_gpgrt_log_error
mov rcx, rdi
call fcn.10040edb0
mov rbx, rax
test rax, rax
jne 0x100401564
xor eax, eax
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x28], rax
mov qword [r12], rcx
xor ecx, ecx
call fcn.10040c930
mov rcx, rdi
call fcn.10040eec0
mov rcx, rsi
call sub.msys_gcrypt_20.dll_gcry_free
mov eax, ebx
add rsp, 0xb0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
call sub.msys_gpg_error_0.dll_gpg_err_code_from_syserror
movzx ebx, ax
mov ecx, ebx
call sub.msys_gpg_error_0.dll_gpg_strerror
lea rcx, str.make_filename_failed_in__s:__s_n
lea rdx, str.get_domain_list
mov r8, rax
call sub.msys_gpg_error_0.dll_gpgrt_log_error
mov rcx, qword [rsp + 0x28]
jmp 0x100401641
call sub.msys_gpg_error_0.dll_gpg_err_code_from_syserror
mov rcx, qword [rsp + 0x28]
movzx ebx, ax
jmp 0x100401641

Function at 0x1004016b0
Capabilities:
Terminate process

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov ecx, 0xb
call sub.msys_gpg_error_0.dll_gpgrt_strusage
mov ecx, 2
mov rbx, rax
call sub.msys_gpg_error_0.dll__gpgrt_get_std_stream
mov r9, rsi
mov r8, rbx
lea rdx, str.usage:__s__options___s_n
mov rcx, rax
call sub.msys_gpg_error_0.dll_gpgrt_fprintf
mov ecx, 2
call sub.msys_2.0.dll_exit
nop
test byte [0x100429004], 4
jne 0x100401700
ret
lea rcx, [0x10041e3a1]
jmp sub.msys_gpg_error_0.dll_gpgrt_log_debug
Function at 0x100404ea0
Capabilities:
Get file attributes

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xe0
mov qword [rcx], 0
mov rsi, rdx
mov rdi, rcx
mov edx, 0x40
mov rcx, rsi
call sub.msys_2.0.dll_strchr
test rax, rax
je 0x100404f28
cmp byte [rax + 1], 0
je 0x100404f28
cmp rsi, rax
je 0x100404f28
lea rbx, [rax + 1]
mov edx, 0x2f
mov rcx, rbx
call sub.msys_2.0.dll_strchr
test rax, rax
jne 0x100404eff
mov edx, 0x5c
mov rcx, rbx
call sub.msys_2.0.dll_strchr
test rax, rax
je 0x100404f40
mov rdx, rbx
lea rcx, str.invalid_domain_detected___s__n
call sub.msys_gpg_error_0.dll_gpgrt_log_info
mov eax, 0x1b
add rsp, 0xe0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, 0x2d
add rsp, 0xe0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, rbx
lea rbp, [rsp + 0x40]
mov r8, rsi
mov ecx, 2
sub rax, rsi
mov rdx, rbp
lea r9, [rax - 1]
call sub.msys_gcrypt_20.dll_gcry_md_hash_buffer
mov edx, 0xa0
mov rcx, rbp
call fcn.100413a00
mov rsi, rax
test rax, rax
je 0x100405040
mov r12, qword [0x100423610]
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [r12 + 0x30]
call fcn.10040ba40
mov rbp, rax
test rax, rax
je 0x100404fac
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.10040ed30
test eax, eax
jne 0x100405098
mov rcx, rbp
call sub.msys_gcrypt_20.dll_gcry_free
mov rcx, qword [r12 + 0x30]
xor r9d, r9d
mov rdx, rbx
lea r8, [0x10041faa0]
call fcn.10040ba40
mov rbp, rax
test rax, rax
je 0x100404fe4
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.10040ed30
test eax, eax
jne 0x100405050
mov rcx, rbp
call sub.msys_gcrypt_20.dll_gcry_free
mov rcx, qword [r12 + 0x30]
mov rdx, rbx
mov r9, rsi
mov qword [rsp + 0x20], 0
lea r8, [0x10041faa0]
call fcn.10040ba40
mov rbx, rax
test rax, rax
je 0x1004050e0
mov qword [rdi], rbx
xor eax, eax
mov rcx, rsi
mov dword [rsp + 0x3c], eax
call sub.msys_gcrypt_20.dll_gcry_free
mov eax, dword [rsp + 0x3c]
add rsp, 0xe0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call sub.msys_gpg_error_0.dll_gpg_err_code_from_syserror
movzx eax, ax
jmp 0x100404f13
call sub.msys_gpg_error_0.dll_gpg_err_code_from_syserror
cmp eax, 0x8051
jne 0x100404fe4
lea rdx, str._rwxr_xr_x
mov rcx, rbp
call fcn.10040e9d0
test eax, eax
jne 0x100404fe4
mov eax, dword [r12]
test eax, eax
je 0x100404fe4
mov rdx, rbp
lea rcx, [0x10041faae]
call sub.msys_gpg_error_0.dll_gpgrt_log_info
jmp 0x100404fe4
call sub.msys_gpg_error_0.dll_gpg_err_code_from_syserror
cmp eax, 0x8051
jne 0x100404fac
lea rdx, str._rwxr_xr_x
mov rcx, rbp
call fcn.10040e9d0
test eax, eax
jne 0x100404fac
mov edx, dword [r12]
test edx, edx
je 0x100404fac
mov rdx, rbp
lea rcx, [0x10041faae]
call sub.msys_gpg_error_0.dll_gpgrt_log_info
jmp 0x100404fac
call sub.msys_gpg_error_0.dll_gpg_err_code_from_syserror
test eax, eax
je 0x100405018
and eax, 0xffff
je 0x100405018
xor ecx, ecx
mov dword [rsp + 0x3c], eax
call sub.msys_gcrypt_20.dll_gcry_free
mov eax, dword [rsp + 0x3c]
jmp 0x10040501d
Function at 0x10040c160
Capabilities:
Terminate process
Write file on windows

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
test rcx, rcx
je 0x10040c198
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x28], rdx
call fcn.10040c040
test rax, rax
je 0x10040c1a6
add rsp, 0x38
ret
lea rcx, [0x100420c40]
call sub.msys_gcrypt_20.dll_gcry_xstrdup
jmp 0x10040c187
call sub.msys_2.0.dll___errno
cmp dword [rax], 0x16
je 0x10040c1da
call sub.msys_2.0.dll___getreent
mov r8d, 0x16
mov edx, 1
lea rcx, str._nfatal:_out_of_memory_n
mov r9, qword [rax + 0x18]
call sub.msys_2.0.dll_fwrite
mov ecx, 2
call sub.msys_2.0.dll_exit
call sub.msys_2.0.dll___getreent
mov r8d, 0x25
mov edx, 1
lea rcx, str._nfatal:_too_many_args_for_xstrconcat_n
mov r9, qword [rax + 0x18]
call sub.msys_2.0.dll_fwrite
jmp 0x10040c1d0