joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401b10
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x0040d0b4]
test esi, esi
mov rbx, rcx
jle 0x401c40
mov rax, qword [0x0040d0b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x401b5b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x401be5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x401b40
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x401c62
mov rax, qword [0x0040d0b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x0040d0b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401c47
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401bde
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x401bf0
add dword [0x0040d0b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x0040d0b8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401bde
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x401b68
mov rax, qword [0x0040d0b8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x402200
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x0040d120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0040d100]
test rbx, rbx
je 0x40225c
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 0x402253
test eax, eax
jne 0x402253
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402238
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x402470
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x402488
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x402490
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x4024a0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx r8d, word [rcx + 6]
movzx eax, word [rcx + 0x14]
test r8w, r8w
lea rax, [rcx + rax + 0x18]
je 0x4024ed
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rdx, r8
mov rcx, r8
jb 0x4024e4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x4024ef
add rax, 0x28
cmp rax, r9
jne 0x4024d0
xor eax, eax
ret

Function at 0x4024f0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x402580
mov rdx, qword [0x0040a7c0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x40256e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x40256e
cmp word [rax + 0x18], 0x20b
jne 0x40256e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x402580
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x402559
add rbx, 0x28
cmp rbx, rdi
je 0x402580
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x402550
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
mov rdx, qword [0x0040a7c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x4025b0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x4025b8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x4025b0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x40260d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402604
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4025b0
add rax, 0x28
cmp rax, r9
jne 0x4025f0
xor eax, eax
ret

Function at 0x402610
Capabilities:
Parse pe header

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

Function at 0x402650
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x0040a7c0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x402670
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x402678
ret
cmp word [rdx + 0x18], 0x20b
jne 0x402670
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x4026c0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x4026b7
test rcx, rcx
je 0x402670
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x4026a8
xor eax, eax
ret

Function at 0x4026d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x0040a7c0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x4026ef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x4026f8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x402710
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x0040a7c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x402730
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x402738
ret
cmp word [r8 + 0x18], 0x20b
jne 0x402730
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x402730
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x402784
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x402790
add rdx, 0x28
cmp r9, rdx
jne 0x402770
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x0040a7c0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x4027c2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x4027d0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x4027c2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x4027c2
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x4027c2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov r8, r9
jb 0x402825
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x402838
add rdx, 0x28
cmp r10, rdx
jne 0x402810
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x402847
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x402857
mov edx, dword [rax + 0xc]
test edx, edx
je 0x40282e
test ecx, ecx
jg 0x402840
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1400022b0
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 case.default.0x1400022d1
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 0x1400022fe
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140002300
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140002359
test ecx, ecx
jle 0x140002339
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 0x140002359
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002359
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 0x140002380
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 0x1400023a2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x1400023b1
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 0x1400023d4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400023d6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002412
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 0x1400024ae
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000244d
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 0x14000248e
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 0x1400024ae
cmp rbx, rax
ja 0x140002460
test rbx, rbx
je 0x1400024ae
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
invalid
Function at 0x140002910
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000293d
xor eax, eax
jmp 0x140002aa9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002977
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002977
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 0x140002aa9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140002a9c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400029ba
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 0x1400029e5
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 0x140002aa1
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 0x140002a54
sub eax, 1
je 0x140002a54
cmp eax, 2
jne 0x140002a9c
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 0x140002aa1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002a82
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 0x140002a9c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002aa1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400037c0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002d70
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002e43
cmp byte [rcx + 0x71], 0
je 0x140002e43
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140002e3f
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 0x140002e04
sub eax, 1
je 0x140002e08
cmp eax, 2
jne 0x140002e3f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400037c0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002e36
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 0x140002e3f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140002dec
xor al, al
jmp 0x140002dec
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400037c0
add rsp, 0x60
pop rbx
ret

Function at 0x140004140
Capabilities:
Parse pe header

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

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1403f8f20
Function at 0x1004012f0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov eax, dword [0x10043b010]
mov edx, dword [0x10043b014]
test eax, eax
je 0x10040134e
test edx, edx
jne 0x100401312
mov dword [0x10043b014], 1
mov edx, dword [0x10043b018]
test edx, edx
jne 0x100401370
test al, 2
je 0x100401335
mov edx, 2
mov ecx, 0x14
call sub.msys_gcrypt_20.dll_gcry_control
mov eax, dword [0x10043b010]
test al, 4
je 0x100401348
mov edx, 1
mov ecx, 0x14
call sub.msys_gcrypt_20.dll_gcry_control
mov edx, dword [0x10043b014]
mov ecx, 0x13
call sub.msys_gcrypt_20.dll_gcry_control
mov eax, dword [0x10043b010]
test eax, eax
jne 0x100401380
add rsp, 0x28
ret
mov dword [0x10043b018], 0
jmp 0x10040131c
lea r8, [0x10042b0a0]
lea rdx, [0x10043b010]
xor ecx, ecx
add rsp, 0x28
jmp fcn.10041c680

Function at 0x1004015b0
Capabilities:
Get file attributes

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0xa0
xor r8d, r8d
lea rdx, [0x10042c057]
lea rsi, str._rwxr_x
call fcn.100413980
lea rdx, [rsp + 0x20]
mov rcx, rax
mov rbx, rax
call fcn.100416f50
test eax, eax
jne 0x100401607
mov rdx, rsi
mov rcx, rbx
call fcn.100416c20
test eax, eax
jne 0x100401649
mov rcx, rbx
call sub.msys_gcrypt_20.dll_gcry_free
nop
add rsp, 0xa0
pop rbx
pop rsi
pop rdi
ret
call sub.msys_2.0.dll___errno
lea rsi, str._rwxr_x
cmp dword [rax], 2
jne 0x1004015e4
mov rdx, rsi
mov rcx, rbx
call fcn.100416bf0
test eax, eax
jne 0x100401677
cmp dword [0x10043b018], 0
jne 0x1004015e4
lea rcx, [0x10042c091]
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 0x1004015e4
call sub.msys_2.0.dll___errno
mov ecx, dword [rax]
call sub.msys_2.0.dll_strerror
lea rcx, str.cant_set_permissions_of__s:__s_n
mov rsi, rax
call sub.msys_intl_8.dll_libintl_gettext
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call sub.msys_gpg_error_0.dll_gpgrt_log_error
jmp 0x1004015f3
call sub.msys_2.0.dll___errno
mov ecx, dword [rax]
call sub.msys_2.0.dll_strerror
lea rcx, [0x10042c070]
mov rdi, rax
call sub.msys_intl_8.dll_libintl_gettext
mov r8, rdi
mov rdx, rbx
mov rcx, rax
call sub.msys_gpg_error_0.dll_gpgrt_log_error
jmp 0x1004015e4

Function at 0x100401e30
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.100401af0
test byte [0x10043b010], 0x80
jne 0x100401e50
test ebx, ebx
je 0x100401e5c
mov ecx, ebx
call sub.msys_2.0.dll_exit
mov ecx, 0x17
call sub.msys_gcrypt_20.dll_gcry_control
jmp 0x100401e45
xor ecx, ecx
call sub.msys_gpg_error_0.dll_gpgrt_get_errorcount
mov ebx, eax
test eax, eax
je 0x100401e49
mov ebx, 2
jmp 0x100401e49
Function at 0x100406f10
Capabilities:
Reference sql statements

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
xor r9d, r9d
lea r8, [0x10042e563]
mov qword [rdx], 0
mov rdi, rdx
mov rdx, rcx
lea rcx, str.SELECT_value_FROM_config_WHERE_name
call fcn.100414080
mov rsi, rax
test rax, rax
je 0x100406fa8
xor r8d, r8d
xor edx, edx
lea r9, [rsp + 0x28]
mov rcx, rax
call fcn.100406cd0
mov rcx, rsi
mov ebx, eax
call sub.msys_gcrypt_20.dll_gcry_free
test ebx, ebx
je 0x100406f70
mov eax, ebx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
mov rcx, qword [rsp + 0x28]
call fcn.100406e50
mov ebx, eax
movzx eax, ax
cmp bx, 0x640
je 0x100406fe0
cmp eax, 0x641
je 0x100406fd0
test ebx, ebx
je 0x10040700e
mov rcx, qword [rsp + 0x28]
call sub.msys_sqlite3_0.dll_sqlite3_finalize
mov eax, ebx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
call sub.msys_gpg_error_0.dll_gpg_err_code_from_syserror
mov ebx, eax
movzx eax, ax
or eax, 0x8000000
test ebx, ebx
cmovne ebx, eax
mov eax, ebx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
mov ebx, 0x800001b
jmp 0x100406f91
mov rcx, qword [rsp + 0x28]
xor edx, edx
call sub.msys_sqlite3_0.dll_sqlite3_column_text
test rax, rax
mov rcx, rax
lea rax, [0x10042e4eb]
cmove rcx, rax
call sub.msys_gcrypt_20.dll_gcry_strdup
mov qword [rdi], rax
test rax, rax
je 0x10040702e
xor ebx, ebx
jmp 0x100406f91
lea r9, str.get_config_value
mov r8d, 0x342
lea rdx, str.backend_sqlite.c
lea rcx, [0x10042e59f]
call sub.msys_gpg_error_0.dll__gpgrt_log_assert
call fcn.100406bb0
mov ebx, eax
jmp 0x100406f91

Function at 0x10040c2a0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rdx
lea rdx, [rsp + 0x28]
mov rsi, r8
call fcn.10040bf20
mov rdx, qword [rsp + 0x28]
mov rcx, rax
mov eax, 0x8000043
cmp rdx, 0x500000
ja 0x10040c2e7
test rbx, rbx
je 0x10040c2f0
mov r9, rbx
mov r8d, 1
call sub.msys_gpg_error_0.dll_gpgrt_fwrite
cmp rax, 1
jne 0x10040c304
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
ret
mov r9, rsi
mov r8d, 1
call sub.msys_2.0.dll_fwrite
cmp rax, 1
je 0x10040c2e5
call sub.msys_gpg_error_0.dll_gpg_err_code_from_syserror
mov ecx, eax
movzx eax, ax
or eax, 0x8000000
mov edx, eax
xor eax, eax
test ecx, ecx
cmovne eax, edx
add rsp, 0x38
pop rbx
pop rsi
ret
Function at 0x1004140d0
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 0x100414108
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x28], rdx
call fcn.100413fb0
test rax, rax
je 0x100414116
add rsp, 0x38
ret
lea rcx, [0x100430b60]
call sub.msys_gcrypt_20.dll_gcry_xstrdup
jmp 0x1004140f7
call sub.msys_2.0.dll___errno
cmp dword [rax], 0x16
je 0x10041414a
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 0x100414140
Function at 0x100415a50
Capabilities:
Get file attributes

Disassembly:
test rcx, rcx
je 0x100415a60
test rdx, rdx
je 0x100415a60
jmp 0x100415250
xor eax, eax
ret
Function at 0x100415de0
Capabilities:
Get file attributes

Disassembly:
push rsi
push rbx
sub rsp, 0x128
mov rsi, rdx
mov rbx, rcx
call fcn.100413a40
mov edx, eax
mov eax, 1
test edx, edx
jne 0x100415e10
add rsp, 0x128
pop rbx
pop rsi
ret
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.100428750
test eax, eax
je 0x100415e30
xor eax, eax
add rsp, 0x128
pop rbx
pop rsi
ret
lea rdx, [rsp + 0xa0]
mov rcx, rsi
call fcn.100428750
test eax, eax
jne 0x100415e21
mov eax, dword [rsp + 0xa0]
cmp dword [rsp + 0x20], eax
jne 0x100415e21
mov rax, qword [rsp + 0xa8]
cmp qword [rsp + 0x28], rax
sete al
movzx eax, al
jmp 0x100415dff

Function at 0x100416a90
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x100416ab8
lea rdx, [0x100431023]
call sub.msys_2.0.dll_strcmp
test eax, eax
jne 0x100416ab8
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.100428680

Function at 0x100416ad0
Capabilities:
Move file

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rdi, rdx
mov rbx, r8
test r8, r8
je 0x100416ba8
mov edx, dword [r8]
test edx, edx
jne 0x100416b88
mov rdx, rdi
mov rcx, rsi
call sub.msys_2.0.dll_rename
test eax, eax
jne 0x100416b18
xor ebp, ebp
mov eax, ebp
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sub.msys_gpg_error_0.dll_gpg_err_code_from_syserror
mov rdx, qword [0x100434d40]
mov ebp, dword [rdx]
test eax, eax
je 0x100416b04
shl ebp, 0x18
movzx eax, ax
and ebp, 0x7f000000
or ebp, eax
mov eax, dword [rbx]
test eax, eax
je 0x100416be0
test ebp, ebp
je 0x100416b04
call fcn.100422c80
mov dword [rbx], 0
mov ecx, ebp
call sub.msys_gpg_error_0.dll_gpg_strerror
lea rcx, str.renaming__s_to__s_failed:__s_n
mov rbx, rax
call sub.msys_intl_8.dll_libintl_gettext
mov r9, rbx
mov r8, rdi
mov rdx, rsi
mov rcx, rax
call sub.msys_gpg_error_0.dll_gpgrt_log_error
mov eax, ebp
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.100422c30
mov rdx, rdi
mov rcx, rsi
call sub.msys_2.0.dll_rename
test eax, eax
je 0x100416b04
jmp 0x100416b18
call sub.msys_2.0.dll_rename
test eax, eax
je 0x100416b04
call sub.msys_gpg_error_0.dll_gpg_err_code_from_syserror
mov rdx, qword [0x100434d40]
mov ebp, dword [rdx]
test eax, eax
je 0x100416b04
shl ebp, 0x18
movzx eax, ax
and ebp, 0x7f000000
or ebp, eax
nop dword [rax]
test ebp, ebp
jne 0x100416b51
jmp 0x100416b04