joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001d8c0
Capabilities:
Get hostname

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0xa0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1000341e0]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov r13, rdx
mov rbx, rcx
mov qword [rsp + 0x58], rcx
xor edi, edi
cmp qword [rcx + 0x48], rdi
je 0x10001db06
mov rsi, qword [rcx + 0x50]
cmp rsi, rdi
jne 0x10001d91f
mov rcx, qword [rcx + 0x48]
mov rax, qword [rcx]
call qword [rax + 8]
mov rsi, rax
cmp rsi, rdi
je 0x10001db06
mov rdx, qword [rsi]
mov rcx, rsi
call qword [rdx + 0x60]
cmp eax, edi
jne 0x10001d989
cmp dword [rbx + 0x98], edi
je 0x10001d96b
mov r12, qword [rbx + 0x48]
cmp r12, rdi
je 0x10001d989
mov rcx, qword [r12 + 0x30]
cmp rcx, rdi
je 0x10001d989
xor r9d, r9d
lea r8d, [r9 + 1]
mov rdx, rsi
call fcn.10000e6a0
mov rcx, qword [r12 + 0x30]
call fcn.10000e758
jmp 0x10001d989
mov r8, rsi
mov rdx, qword [rbx + 0x48]
mov rcx, rbx
call fcn.10001ec20
mov ecx, edi
cmp eax, edi
sete cl
cmp ecx, edi
jne 0x10001db06
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
mov qword [rsp + 0x50], rax
cmp rax, 0xffffffffffffffff
je 0x10001da4e
mov edx, 0x10
mov dword [rsp + 0x40], edx
mov word [rsp + 0x78], di
xor eax, eax
mov qword [rsp + 0x7a], rax
mov qword [rsp + 0x82], rax
mov qword [rsp + 0x8a], rax
mov dword [rsp + 0x92], eax
mov word [rsp + 0x96], ax
mov r8, qword [rbx + 0x10]
or rcx, 0xffffffffffffffff
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
jne 0x10001da21
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
jmp 0x10001da2f
or r9, 0xffffffffffffffff
lea rcx, [rsp + 0x78]
call sub.msvcrt.dll_wcsncpy_s
mov rax, qword [rsi]
lea r9, [rsp + 0x78]
mov r8d, 1
mov rdx, r12
mov rcx, rsi
call qword [rax + 0xa0]
jmp 0x10001dae2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov r9d, 0x400
mov r8d, eax
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
lea rcx, [rsp + 0x48]
call sub.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo
nop
mov rsi, qword [0x1000383e0]
call sub.MFC42u.dll_Ordinal_1463
mov qword [rax + 0x18], rsi
mov edx, 0x75
lea rcx, [rsp + 0x48]
call sub.MFC42u.dll_CPropertySheet::OnCtlColor
mov r9d, 0x30
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rsp + 0x40]
cmp rcx, rdi
je 0x10001dad7
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
lea rcx, [rsp + 0x48]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
jmp 0x10001daf7
cmp r12, 0xffffffffffffffff
je 0x10001db06
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.100020710
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x10001f6cc
Capabilities:
Hide graphical window

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x90
and dword [r11 + 8], 0
xor eax, eax
lea rcx, [r11 - 0x30]
and qword [r11 - 0x38], rax
lea r8d, [rax + 0x28]
xor edx, edx
mov dword [r11 + 0xc], eax
call sub.msvcrt.dll_memset
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
and qword [rsp + 0x40], 0
and dword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
or edx, 0xffffffff
xor ecx, ecx
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 4
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
lea rcx, [rsp + 0xa0]
mov dword [rsp + 0xa0], 8
mov dword [rsp + 0xa4], 3
call qword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov rcx, qword [0x10003a8b0]
mov edx, 0xd1
mov qword [0x10003a8b8], rcx
call qword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov rdi, rax
test rax, rax
je 0x10001f8df
mov rcx, qword [0x10003a8b0]
and qword [rsp + 0x20], 0
lea r9, [0x10001f2b0]
xor r8d, r8d
mov edx, 0x190
call qword [sym.imp.USER32.dll_CreateDialogParamW]
mov rbx, rax
test rax, rax
je 0x10001f8d6
mov rdx, qword [0x10003ad20]
lea rbp, [0x10003a8b8]
cmp dword [rdx - 8], 0
je 0x10001f7ce
mov rcx, rbp
call fcn.10001b8b8
mov rdx, qword [0x10003ad30]
cmp dword [rdx - 8], 0
je 0x10001f7eb
xor r8d, r8d
mov rcx, rbp
call fcn.10001d8c0
jmp 0x10001f8d6
mov rdx, qword [0x10003ad38]
cmp dword [rdx - 8], 0
je 0x10001f80b
mov r8d, 1
mov rcx, rbp
call fcn.10001d6f8
jmp 0x10001f8d6
mov rdx, qword [0x10003ad28]
mov r8d, dword [rdx - 8]
test r8d, r8d
je 0x10001f832
cmp r8d, 4
jle 0x10001f827
sub r8d, 3
jmp 0x10001f82a
xor r8d, r8d
mov rcx, rbp
call fcn.10001a538
mov edx, 5
mov rcx, rbx
call qword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x10003ad18], 0
je 0x10001f895
mov rcx, rbp
call fcn.10001f64c
jmp 0x10001f895
cmp eax, 0xffffffff
je 0x10001f895
lea r8, [rsp + 0x60]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x10001f895
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x10001f895
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_DispatchMessageW]
lea rcx, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x10001f853
and qword [rsp + 0x58], 0
lea r8d, [rax + 1]
mov eax, dword [0x1000384d0]
lea r9, [rsp + 0x50]
mov edx, 0x803
xor ecx, ecx
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x50], r8d
call sub.ntdll.dll_WinSqmAddToStream
mov rcx, rdi
call qword [sym.imp.USER32.dll_DestroyAcceleratorTable]
lea r11, [rsp + 0x90]
xor eax, eax
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x10001f8fc
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
xor ebx, ebx
and dword [0x10003ad18], ebx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
lea r14d, [rbx + 1]
test rax, rax
je 0x10001fac8
mov ecx, dword [rsp + 0x60]
cmp ecx, 2
jl 0x10001fac8
dec ecx
mov ebp, r14d
cmp ecx, r14d
jl 0x10001fac8
lea r13, [rax + 8]
lea r12d, [rbx + 2]
mov rdi, r13
mov rsi, qword [rdi]
cmp word [rsi], 0x2d
je 0x10001f979
cmp word [rsi], 0x2f
jne 0x10001fa83
add rsi, 2
lea rdx, [0x1000081c8]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x10001fac1
lea rdx, [0x1000081d0]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x10001fac1
cmp r12d, dword [rsp + 0x60]
jge 0x10001fac8
lea rdx, [0x1000081e0]
mov rcx, rsi
add ebp, r14d
add r12d, r14d
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x10001f9ee
mov rdx, qword [rdi + 8]
lea rcx, [0x10003ad38]
mov dword [0x1000384c8], r14d
call sub.MFC42u.dll_AfxDeleteObject
or ebx, 2
jmp 0x10001fa6a
lea rdx, [0x1000081e8]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x10001fa1e
mov rdx, qword [rdi + 8]
lea rcx, [0x10003ad30]
mov dword [0x1000384c8], r14d
call sub.MFC42u.dll_AfxDeleteObject
or ebx, 4
jmp 0x10001fa6a
lea rdx, [0x1000081f8]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x10001fa4e
mov rdx, qword [rdi + 8]
lea rcx, [0x10003ad20]
mov dword [0x1000384cc], r14d
call sub.MFC42u.dll_AfxDeleteObject
or ebx, 8
jmp 0x10001fa6a
lea rdx, [0x100008210]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x10001fa67
or ebx, 0x10
jmp 0x10001fa6a
or ebx, r14d
mov eax, dword [rsp + 0x60]
add ebp, r14d
add r12d, r14d
add rdi, 0x10
dec eax
cmp ebp, eax
jg 0x10001fa98
jmp 0x10001f966
cmp ebp, r14d
jne 0x10001fa98
mov rdx, qword [r13]
lea rcx, [0x10003ad28]
call sub.MFC42u.dll_AfxDeleteObject
test ebx, ebx
je 0x10001fac8
and qword [rsp + 0x28], 0
lea r9, [rsp + 0x20]
mov r8d, r14d
mov edx, 0x802
xor ecx, ecx
mov dword [rsp + 0x20], r14d
mov dword [rsp + 0x28], ebx
call sub.ntdll.dll_WinSqmAddToStream
jmp 0x10001fac8
mov dword [0x10003ad18], r14d
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov eax, r14d
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x100020710
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1000341e0]
jne 0x10002072b
rol rcx, 0x10
test cx, 0xffff
jne 0x100020727
ret 0
ror rcx, 0x10
jmp 0x100020c90
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x100037ef0]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov r11, qword [0x100037fe8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.ntdll.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x100020d15
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, [0x100037ef0]
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.ntdll.dll_RtlVirtualUnwind
jmp 0x100020d37
mov rax, qword [rsp + 0x88]
mov qword [0x100037fe8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x100037f88], rax
mov rax, qword [0x100037fe8]
mov qword [0x100037e60], rax
mov rax, qword [rsp + 0x90]
mov qword [0x100037f70], rax
mov dword [0x100037e50], 0xc0000409
mov dword [0x100037e54], 1
mov rax, qword [0x1000341e0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1000341e8]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x100001e18]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
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 0x1400020d4
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14001fb10]
mov dword [rax], 1
mov rax, qword [0x14001fb20]
mov dword [rax], 1
mov rax, qword [0x14001fb30]
mov dword [rax], 1
mov rax, qword [0x14001fab0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
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 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140007de0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rcx, qword [0x1400420c0]
test rcx, rcx
je 0x140007e1b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140007e40
mov rcx, qword [0x1400420c0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x1400430e0], 0
jne 0x140007e58
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [0x1400420c0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x140007e0e
mov edx, 0x414
lea r12, [rsp + 0x20]
lea rsi, [0x14001e402]
mov qword [rsp + 0x20], 0
lea rdi, [0x140043100]
movq xmm0, rsi
mov rcx, r12
mov dword [rsp + 0x28], 3
movq xmm6, rdi
mov word [rsp + 0x40], dx
mov rbp, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, 0x14
punpcklqdq xmm6, xmm0
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rsi
movaps xmmword [rsp + 0x30], xmm6
call rbp
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140007f24
test al, 0x10
je 0x140007e24
mov ecx, 0x64
call r14
mov eax, 0x414
mov qword [rsp + 0x50], rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
movaps xmmword [rsp + 0x30], xmm6
call rbp
sub ebx, 1
je 0x140007e24
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x140007ed0
jmp 0x140007e24

Function at 0x14000e590
Capabilities:
Create directory

Disassembly:
push rdi
mov eax, 0x2020
push rsi
push rbx
call fcn.140015a50
sub rsp, rax
mov eax, dword [0x140047100]
mov rsi, rcx
test eax, eax
je 0x14000e630
xor ebx, ebx
lea rdi, [0x140045100]
test eax, eax
jg 0x14000e5cc
jmp 0x14000e5e0
add rbx, 1
cmp dword [0x140047100], ebx
jle 0x14000e5e0
mov rdx, qword [rdi + rbx*8]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14000e5c0
jmp 0x14000e617
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x14000e5f5
cmp word [rsi + 2], 0x3a
je 0x14000e617
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000e680
movsxd rbx, dword [0x140047100]
cmp ebx, 0x3ff
jle 0x14000e698
mov eax, 1
add rsp, 0x2020
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
lea rbx, str.HOME
mov r8d, 0x1000
mov rdx, rbx
mov rcx, rdi
call fcn.140007540
test al, al
je 0x14000e6ba
movsxd rbx, dword [0x140047100]
mov rcx, rdi
lea rdi, [0x140045100]
call sub.msvcrt.dll__wcsdup
mov qword [rdi + rbx*8], rax
mov eax, dword [0x140047100]
add eax, 1
mov dword [0x140047100], eax
jmp 0x14000e5b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000e604
xor eax, eax
jmp 0x14000e61c
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add dword [0x140047100], 1
mov rdx, rax
lea rax, [0x140045100]
mov qword [rax + rbx*8], rdx
jmp 0x14000e617
mov rcx, rbx
call fcn.140007d20
nop
nop word cs:[rax + rax]
nop
Function at 0x1004011e0
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov ecx, 0xb
call sub.msys_gpg_error_0.dll_gpgrt_strusage
lea rcx, str.usage:__s__options___s_n
mov rsi, rax
call sub.msys_intl_8.dll_libintl_gettext
mov ecx, 2
mov rbx, rax
call sub.msys_gpg_error_0.dll__gpgrt_get_std_stream
mov r9, rdi
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call sub.msys_gpg_error_0.dll_gpgrt_fprintf
mov ecx, 2
call sub.msys_2.0.dll_exit
nop
nop dword [rax]

Function at 0x100401400
Capabilities:
Get file attributes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa8
call fcn.1004067a0
xor r8d, r8d
lea rsi, [rsp + 0x20]
lea rdx, str.cache.d
mov rcx, rax
call fcn.100403640
mov rdx, rsi
mov rcx, rax
mov qword [0x100419018], rax
call fcn.100405630
test eax, eax
jne 0x100401497
mov rbx, qword [0x100419018]
xor edi, edi
xor r8d, r8d
lea rdx, str.state
mov rcx, rbx
call fcn.100403640
mov rcx, qword [0x100419018]
mov rbx, rax
call fcn.10040e3a0
mov rdx, rsi
mov rcx, rbx
mov qword [0x100419018], rbx
call fcn.100405630
test eax, eax
jne 0x10040152a
mov rbx, qword [0x100419018]
mov rax, rbx
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sub.msys_2.0.dll___errno
mov rbx, qword [0x100419018]
cmp dword [rax], 2
jne 0x100401444
lea rdx, [0x10041224d]
mov rcx, rbx
call fcn.1004052d0
test eax, eax
jne 0x1004014eb
cmp dword [0x100419048], 0
mov rbx, qword [0x100419018]
jne 0x100401444
lea rcx, [0x100412279]
call sub.msys_intl_8.dll_libintl_gettext
mov rdx, rbx
mov rcx, rax
call sub.msys_gpg_error_0.dll_gpgrt_log_info
jmp 0x10040143d
call sub.msys_gpg_error_0.dll_gpg_err_code_from_syserror
movzx edi, ax
mov ecx, edi
call sub.msys_gpg_error_0.dll_gpg_strerror
mov rbp, qword [0x100419018]
lea rcx, [0x100412258]
mov rbx, rax
call sub.msys_intl_8.dll_libintl_gettext
mov r8, rbx
mov rdx, rbp
mov rcx, rax
call sub.msys_gpg_error_0.dll_gpgrt_log_error
mov rbx, qword [0x100419018]
jmp 0x100401446
call sub.msys_2.0.dll___errno
mov rbx, qword [0x100419018]
cmp dword [rax], 2
jne 0x100401488
mov rcx, rbx
lea rdx, [0x10041224d]
call fcn.1004052d0
mov rbx, qword [0x100419018]
test eax, eax
je 0x10040159e
test edi, edi
jne 0x100401488
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 rsi, qword [0x100419018]
lea rcx, [0x100412258]
mov rbx, rax
call sub.msys_intl_8.dll_libintl_gettext
mov r8, rbx
mov rdx, rsi
mov rcx, rax
call sub.msys_gpg_error_0.dll_gpgrt_log_error
mov rbx, qword [0x100419018]
jmp 0x100401488
cmp dword [0x100419048], 0
jne 0x100401488
lea rcx, [0x100412279]
call sub.msys_intl_8.dll_libintl_gettext
mov rdx, rbx
mov rcx, rax
call sub.msys_gpg_error_0.dll_gpgrt_log_info
jmp 0x100401481
Function at 0x100403d90
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 0x100403dc8
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x28], rdx
call fcn.100403c70
test rax, rax
je 0x100403dd6
add rsp, 0x38
ret
lea rcx, [0x1004130b0]
call sub.msys_gcrypt_20.dll_gcry_xstrdup
jmp 0x100403db7
call sub.msys_2.0.dll___errno
cmp dword [rax], 0x16
je 0x100403e0a
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 0x100403e00
Function at 0x100404ec0
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov edx, 1
mov rbx, rcx
xor ecx, ecx
call sub.msys_2.0.dll_fcntl
cmp eax, 0xffffffff
je 0x100404fb0
xor edi, edi
mov edx, 1
mov ecx, 1
call sub.msys_2.0.dll_fcntl
cmp eax, 0xffffffff
je 0x100404f80
xor ebp, ebp
mov edx, 1
mov ecx, 2
call sub.msys_2.0.dll_fcntl
cmp eax, 0xffffffff
je 0x100404fe0
call sub.msys_2.0.dll___getreent
cmp ebp, 2
mov r12, qword [rax + 0x18]
sete al
cmp edi, 2
sete dl
or eax, edx
mov esi, eax
test r12, r12
je 0x100404f70
cmp edi, 1
je 0x100405070
cmp ebp, 1
je 0x100405048
test sil, sil
je 0x100404f75
mov r8, rbx
lea rdx, str._s:_fatal:_unable_to_reopen_standard_input__output__or_error_n
mov rcx, r12
call sub.msys_2.0.dll_fprintf
mov ecx, 3
call sub.msys_2.0.dll_exit
nop word [rax + rax]
test sil, sil
jne 0x100404f5d
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call sub.msys_2.0.dll___errno
cmp dword [rax], 9
jne 0x100404efc
mov edx, 1
lea rcx, str._dev_null
xor ebp, ebp
call sub.msys_2.0.dll_open
cmp eax, 1
setne bpl
add ebp, 1
jmp 0x100404efe
call sub.msys_2.0.dll___errno
cmp dword [rax], 9
jne 0x100404ee2
xor edx, edx
lea rcx, str._dev_null
mov edi, 1
call sub.msys_2.0.dll_open
cmp eax, 1
sbb edi, 0xffffffff
jmp 0x100404ee4
call sub.msys_2.0.dll___errno
cmp dword [rax], 9
jne 0x100404f16
mov edx, 1
lea rcx, str._dev_null
call sub.msys_2.0.dll_open
cmp eax, 2
je 0x1004050a8
test ebp, ebp
jne 0x100404f5d
call sub.msys_2.0.dll___getreent
mov r12, qword [rax + 0x10]
test r12, r12
je 0x100404f5d
cmp edi, 1
jne 0x100404f4b
mov r8, rbx
lea rdx, str._s:_WARNING:_standard_input_reopened_n
mov rcx, r12
call sub.msys_2.0.dll_fprintf
jmp 0x100404f4b
mov r8, rbx
lea rdx, str._s:_WARNING:_standard_output_reopened_n
mov rcx, r12
call sub.msys_2.0.dll_fprintf
test sil, sil
jne 0x100404f4b
jmp 0x100404f75
mov r8, rbx
lea rdx, str._s:_WARNING:_standard_input_reopened_n
mov rcx, r12
call sub.msys_2.0.dll_fprintf
mov r8, rbx
lea rdx, str._s:_WARNING:_standard_output_reopened_n
mov rcx, r12
cmp ebp, 1
jne 0x100405110
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sub.msys_2.0.dll_fprintf
cmp ebp, 2
sete al
cmp edi, 2
sete dl
or eax, edx
mov esi, eax
test ebp, ebp
jne 0x100404f70
call sub.msys_2.0.dll___getreent
mov rbp, qword [rax + 0x10]
test rbp, rbp
je 0x100404f70
mov r8, rbx
cmp edi, 1
je 0x10040511e
lea rdx, str._s:_WARNING:_standard_error_reopened_n
mov rcx, rbp
call sub.msys_2.0.dll_fprintf
cmp edi, 2
jne 0x100404f75
mov r8, rbx
lea rdx, str._s:_fatal:_unable_to_reopen_standard_input__output__or_error_n
mov rcx, rbp
call sub.msys_2.0.dll_fprintf
jmp 0x100404f5d
cmp ebp, 2
jne 0x100404f75
jmp 0x100404f4b
lea rdx, str._s:_WARNING:_standard_input_reopened_n
mov rcx, rbp
call sub.msys_2.0.dll_fprintf
mov r8, rbx
lea rdx, str._s:_WARNING:_standard_error_reopened_n
mov rcx, rbp
jmp 0x100405094
Function at 0x100405170
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x100405198
lea rdx, str._dev_null
call sub.msys_2.0.dll_strcmp
test eax, eax
jne 0x100405198
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x10040e8b0
jmp qword [sym.imp.msys_2.0.dll_remove]
Function at 0x1004064b0
Capabilities:
Query environment variable

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, str.GNUPGHOME
lea rsi, str._.gnupg
call sub.msys_2.0.dll_getenv
mov rbx, rax
test rax, rax
je 0x1004064d8
cmp byte [rax], 0
jne 0x1004064e8
mov rax, rsi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rcx, rax
call fcn.100406430
test rax, rax
mov rsi, rax
cmove rsi, rbx
xor edx, edx
mov rcx, rsi
call fcn.1004036a0
xor edx, edx
lea rcx, str._.gnupg
mov rbx, rax
call fcn.1004036a0
mov rcx, rbx
mov rdi, rax
mov rdx, rax
call fcn.100403700
mov rcx, rdi
mov ebp, eax
call fcn.10040e3a0
mov rcx, rbx
call fcn.10040e3a0
test ebp, ebp
je 0x1004064d8
mov rax, rsi
mov byte [0x1004191c0], 1
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x1004080a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
xor eax, eax
cmp byte [rcx], 0
lea rdx, [rcx + 8]
jne 0x1004080bb
jmp 0x100408120
mov rcx, rax
movzx eax, byte [rcx]
sub eax, 0x30
cmp al, 9
ja 0x100408130
lea rax, [rcx + 1]
cmp rax, rdx
jne 0x1004080b8
xor eax, eax
cmp byte [rcx + 1], 0x54
jne 0x100408120
lea rdx, [rcx + 2]
add rcx, 8
jmp 0x1004080e3
mov rdx, rbx
movzx eax, byte [rdx]
sub eax, 0x30
cmp al, 9
ja 0x100408130
lea rbx, [rdx + 1]
cmp rbx, rcx
jne 0x1004080e0
movzx ecx, byte [rcx]
cmp cl, 0x5a
jne 0x100408106
movzx ecx, byte [rdx + 2]
lea rbx, [rdx + 2]
test cl, cl
je 0x10040814b
jns 0x100408138
cmp cl, 0x2c
setne al
cmp cl, 0x3a
setne dl
and eax, edx
xor eax, 1
movzx eax, al
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
call sub.msys_2.0.dll___locale_ctype_ptr
movsx rdx, byte [rbx]
mov rcx, rdx
test byte [rdx + rax + 1], 8
je 0x10040810c
mov eax, 1
add rsp, 0x20
pop rbx
ret