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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rax, dword [rsp + 0xc0]
mov r15, qword [rsp + 0xc8]
mov edi, dword [rsp + 0xd0]
mov esi, dword [rsp + 0xd8]
movsx ebp, byte [rcx + rax + 0x194]
mov r14, r8
mov r12, rcx
mov r13, rdx
mov rbx, r9
mov r8d, dword [rsp + 0xe0]
test dword [rcx + 0x110], esi
jne 0x4e9c50
test r13, r13
je 0x4e9d00
mov dword [rsp + 0xd8], edi
mov r8, r14
mov rdx, r13
mov r9d, 1
mov qword [rsp + 0xd0], r15
mov dword [rsp + 0xc8], ebp
mov qword [rsp + 0xc0], rbx
mov rcx, r12
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.004e9910
mov edx, dword [rcx + 0xc4]
mov ecx, 1
mov dword [rsp + 0x4c], r8d
call fcn.004d35c0
mov r8d, dword [rsp + 0x4c]
test eax, eax
je 0x4e9c02
cmp byte [str.e_41m], 0
je 0x4e9c02
test r8d, r8d
jne 0x4e9d30
lea rax, [0x005966b7]
xor r9d, r9d
test r13, r13
mov dword [rsp + 0x28], ebp
cmove r13, r14
mov qword [rsp + 0x30], rax
setne r9b
mov rcx, r12
mov dword [rsp + 0x38], 0
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, r13
call fcn.004e9910
mov r8d, esi
mov edx, edi
mov rcx, r15
mov r9, qword [r12 + 0x188]
lea rax, str.e_41m
mov qword [rsp + 0xc8], rbx
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0xc0], r14
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.0049b3b0
mov dword [rsp + 0xd8], edi
xor r9d, r9d
xor r8d, r8d
mov rdx, r14
mov qword [rsp + 0xd0], r15
mov dword [rsp + 0xc8], ebp
mov qword [rsp + 0xc0], rbx
jmp 0x4e9c35
mov dword [rsp + 0xd8], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.e_41m
mov qword [rsp + 0xd0], r15
mov dword [rsp + 0xc8], ebp
mov qword [rsp + 0xc0], rbx
jmp 0x4e9c35

Function at 0x4f1ea0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rdi
push rbx
sub rsp, 0x248
mov rbx, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov rax, qword [rbx]
mov qword [rsp + 0x238], rax
xor eax, eax
lea r10, [rsp + 0x20]
mov r11, rcx
mov ecx, 0x43
mov rdi, r10
rep stosq qword [rdi], rax
mov rcx, r10
mov qword [rsp + 0x1a8], r11
call fcn.004ef010
mov rax, qword [rsp + 0x238]
xor rax, qword [rbx]
jne 0x4f1ef7
add rsp, 0x248
pop rbx
pop rdi
ret
call sub.libssp_0.dll___stack_chk_fail
nop
nop dword [rax]

Function at 0x4f1f00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [rcx]
mov rsi, rcx
test eax, eax
jle 0x4f1f4d
xor ebx, ebx
nop dword [rax + rax]
mov rax, qword [rsi + 8]
mov r12, qword [rax + rbx*8]
add rbx, 1
mov rcx, qword [r12 + 0x10]
call fcn.004c9260
mov rcx, qword [r12 + 8]
call fcn.004c9260
mov rcx, qword [r12]
call fcn.004c9260
mov rcx, r12
call fcn.004c9260
cmp dword [rsi], ebx
jg 0x4f1f18
mov rcx, qword [rsi + 8]
add rsp, 0x20
pop rbx
pop rsi
pop r12
jmp fcn.004c9260

Function at 0x4f2b20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
sub rsp, 0x20
mov r12, rcx
call fcn.004f2ac0
mov rcx, qword [r12 + 0x30]
call fcn.004c9260
mov rcx, r12
add rsp, 0x20
pop r12
jmp fcn.004c9260
Function at 0x4f2b50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub dword [rcx + 0x3c], 1
je 0x4f2b60
ret
jmp fcn.004f2b20

Function at 0x4f4270
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
sub rsp, 0x20
mov r12, rcx
mov rcx, qword [rcx]
sub dword [rcx + 0x3c], 1
je 0x4f42a0
mov rcx, qword [r12 + 8]
sub dword [rcx + 0x3c], 1
je 0x4f42b0
mov rcx, r12
add rsp, 0x20
pop r12
jmp fcn.004c9260
call fcn.004f2b20
mov rcx, qword [r12 + 8]
sub dword [rcx + 0x3c], 1
jne 0x4f428d
call fcn.004f2b20
mov rcx, r12
add rsp, 0x20
pop r12
jmp fcn.004c9260
Function at 0x4fad40
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xe8
mov rsi, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov r12, rcx
mov r14, rdx
mov r13, r8
mov rbx, r9
mov rax, qword [rsi]
mov qword [rsp + 0xd8], rax
xor eax, eax
test rcx, rcx
je 0x4fafad
cmp byte [rcx], 0x3a
jne 0x4fadd0
cmp byte [rcx + 1], 0
jne 0x4fadd0
test r13, r13
je 0x4fada3
xor r8d, r8d
mov rdx, r14
mov rcx, r13
call fcn.00474a40
test rax, rax
js 0x4faf71
xor eax, eax
mov rdi, qword [rsp + 0xd8]
xor rdi, qword [rsi]
jne 0x4fafc3
add rsp, 0xe8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r14
mov qword [rsp + 0xc0], r12
lea r15, [rsp + 0x30]
call fcn.004ca5c0
mov rdi, r15
mov ecx, 0x11
mov qword [rsp + 0xd0], 0
mov qword [rsp + 0xc8], rax
xor eax, eax
rep stosq qword [rdi], rax
mov rax, qword [0x005aaca0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rax
mov rax, qword [0x005aa9f0]
mov eax, dword [rax]
test eax, eax
jne 0x4faed8
xor edi, edi
lea rax, [rsp + 0xc0]
mov rcx, r15
or byte [rsp + 0xa0], 0x40
mov qword [rsp + 0x30], rax
lea rax, str.editor
mov qword [rsp + 0x98], rbx
mov qword [rsp + 0x70], rax
call fcn.0045f8f0
test eax, eax
js 0x4faf9c
mov edx, 1
mov ecx, 2
call fcn.00471580
mov edx, 1
mov ecx, 3
call fcn.00471580
mov rcx, r15
call fcn.00460550
mov ecx, 2
mov ebx, eax
call fcn.00471670
mov ecx, 3
call fcn.00471670
lea eax, [rbx - 0x82]
cmp eax, 1
jbe 0x4faf50
test ebx, ebx
jne 0x4faf58
test edi, edi
je 0x4fad87
call fcn.004facf0
test eax, eax
jne 0x4fad87
call fcn.0042ffa0
jmp 0x4fad87
mov ecx, 2
call fcn.004b4e00
test eax, eax
je 0x4fae28
call fcn.004facf0
cmp eax, 1
sbb edi, edi
call fcn.00426640
and edi, 0x16
lea rdx, [0x00598e9a]
add edi, 0xa
test eax, eax
je 0x4faf88
mov qword [rsp + 0x28], rdx
mov rbp, qword [fcn.005707a0]
mov ecx, 2
call rbp
mov rdx, qword [rsp + 0x28]
mov r8d, edi
mov edi, 1
mov rcx, rax
call sub.libintl_8.dll_libintl_fprintf
mov ecx, 2
call rbp
mov rcx, rax
call fcn.004ac610
jmp 0x4fae2a
lea ecx, [rbx - 0x80]
call fcn.004ad490
mov rdx, r12
lea rcx, str.There_was_a_problem_with_the_editor__s.
call fcn.00494950
mov eax, 0xffffffff
jmp 0x4fada5
mov rdx, r14
lea rcx, str.could_not_read_file__s
call fcn.004948c0
jmp 0x4faf67
lea rcx, str.hint:_Waiting_for_your_editor_to_close_the_file..._c
call fcn.0056e6a8
mov rdx, rax
jmp 0x4faf0a
mov rdx, r12
lea rcx, str.unable_to_start_editor__s
call fcn.00494950
jmp 0x4faf67
lea rcx, str.Terminal_is_dumb__but_EDITOR_unset
call fcn.00494950
mov eax, 0xffffffff
jmp 0x4fada5
call sub.libssp_0.dll___stack_chk_fail
nop
nop dword [rax]
push r12
push rsi
push rbx
sub rsp, 0x20
mov r12, rcx
mov rbx, rdx
mov rsi, r8
call fcn.004fafd0
mov r9, rsi
mov r8, rbx
mov rdx, r12
mov rcx, rax
add rsp, 0x20
pop rbx
pop rsi
pop r12
jmp 0x4fad40
Function at 0x4fafd0
Capabilities:
Query environment variable

Disassembly:
push r12
sub rsp, 0x20
lea rcx, str.GIT_EDITOR
call fcn.004ae0e0
mov r12, rax
call fcn.004facf0
test r12, r12
je 0x4fb000
mov rax, r12
add rsp, 0x20
pop r12
ret
mov rdx, qword [0x005aac90]
mov r12, qword [rdx]
test r12, r12
jne 0x4fafef
test eax, eax
je 0x4fb028
lea rcx, str.EDITOR
add rsp, 0x20
pop r12
jmp fcn.004ae0e0
lea rcx, str.VISUAL
call fcn.004ae0e0
mov r12, rax
test rax, rax
jne 0x4fafef
lea rcx, str.EDITOR
call fcn.004ae0e0
mov r12, rax
test rax, rax
jne 0x4fafef
lea r12, [0x00598f73]
mov rax, r12
add rsp, 0x20
pop r12
ret

Function at 0x4fb070
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, qword [sym.imp.libssp_0.dll___stack_chk_guard]
lea rcx, str.GIT_SEQUENCE_EDITOR
mov rax, qword [rbx]
mov qword [rsp + 0x28], rax
xor eax, eax
call fcn.004ae0e0
mov qword [rsp + 0x20], rax
test rax, rax
je 0x4fb0b0
mov rdx, qword [rsp + 0x28]
xor rdx, qword [rbx]
jne 0x4fb0d2
add rsp, 0x30
pop rbx
ret
lea rdx, [rsp + 0x20]
lea rcx, str.sequence.editor
call fcn.00413e60
mov rax, qword [rsp + 0x20]
test rax, rax
jne 0x4fb09c
call fcn.004fafd0
jmp 0x4fb09c
call sub.libssp_0.dll___stack_chk_fail
nop
nop dword [rax + rax]
Function at 0x4fb0e0
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xe8
mov rsi, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov r12, rcx
mov r14, rdx
mov r13, r8
mov rbx, r9
mov rax, qword [rsi]
mov qword [rsp + 0xd8], rax
xor eax, eax
test rcx, rcx
je 0x4fafad
cmp byte [rcx], 0x3a
jne 0x4fadd0
cmp byte [rcx + 1], 0
jne 0x4fadd0
test r13, r13
je 0x4fada3
xor r8d, r8d
mov rdx, r14
mov rcx, r13
call fcn.00474a40
test rax, rax
js 0x4faf71
xor eax, eax
mov rdi, qword [rsp + 0xd8]
xor rdi, qword [rsi]
jne 0x4fafc3
add rsp, 0xe8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r14
mov qword [rsp + 0xc0], r12
lea r15, [rsp + 0x30]
call fcn.004ca5c0
mov rdi, r15
mov ecx, 0x11
mov qword [rsp + 0xd0], 0
mov qword [rsp + 0xc8], rax
xor eax, eax
rep stosq qword [rdi], rax
mov rax, qword [0x005aaca0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rax
mov rax, qword [0x005aa9f0]
mov eax, dword [rax]
test eax, eax
jne 0x4faed8
xor edi, edi
lea rax, [rsp + 0xc0]
mov rcx, r15
or byte [rsp + 0xa0], 0x40
mov qword [rsp + 0x30], rax
lea rax, str.editor
mov qword [rsp + 0x98], rbx
mov qword [rsp + 0x70], rax
call fcn.0045f8f0
test eax, eax
js 0x4faf9c
mov edx, 1
mov ecx, 2
call fcn.00471580
mov edx, 1
mov ecx, 3
call fcn.00471580
mov rcx, r15
call fcn.00460550
mov ecx, 2
mov ebx, eax
call fcn.00471670
mov ecx, 3
call fcn.00471670
lea eax, [rbx - 0x82]
cmp eax, 1
jbe 0x4faf50
test ebx, ebx
jne 0x4faf58
test edi, edi
je 0x4fad87
call fcn.004facf0
test eax, eax
jne 0x4fad87
call fcn.0042ffa0
jmp 0x4fad87
mov ecx, 2
call fcn.004b4e00
test eax, eax
je 0x4fae28
call fcn.004facf0
cmp eax, 1
sbb edi, edi
call fcn.00426640
and edi, 0x16
lea rdx, [0x00598e9a]
add edi, 0xa
test eax, eax
je 0x4faf88
mov qword [rsp + 0x28], rdx
mov rbp, qword [fcn.005707a0]
mov ecx, 2
call rbp
mov rdx, qword [rsp + 0x28]
mov r8d, edi
mov edi, 1
mov rcx, rax
call sub.libintl_8.dll_libintl_fprintf
mov ecx, 2
call rbp
mov rcx, rax
call fcn.004ac610
jmp 0x4fae2a
lea ecx, [rbx - 0x80]
call fcn.004ad490
mov rdx, r12
lea rcx, str.There_was_a_problem_with_the_editor__s.
call fcn.00494950
mov eax, 0xffffffff
jmp 0x4fada5
mov rdx, r14
lea rcx, str.could_not_read_file__s
call fcn.004948c0
jmp 0x4faf67
lea rcx, str.hint:_Waiting_for_your_editor_to_close_the_file..._c
call fcn.0056e6a8
mov rdx, rax
jmp 0x4faf0a
mov rdx, r12
lea rcx, str.unable_to_start_editor__s
call fcn.00494950
jmp 0x4faf67
lea rcx, str.Terminal_is_dumb__but_EDITOR_unset
call fcn.00494950
mov eax, 0xffffffff
jmp 0x4fada5
call sub.libssp_0.dll___stack_chk_fail
nop
nop dword [rax]
push r12
push rsi
push rbx
sub rsp, 0x20
mov r12, rcx
mov rbx, rdx
mov rsi, r8
call fcn.004fafd0
mov r9, rsi
mov r8, rbx
mov rdx, r12
mov rcx, rax
add rsp, 0x20
pop rbx
pop rsi
pop r12
jmp 0x4fad40

Function at 0x4fb110
Capabilities:
Query environment variable

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov r12, rcx
mov rbx, rdx
mov rsi, r8
call fcn.004fb070
mov r9, rsi
mov r8, rbx
mov rdx, r12
mov rcx, rax
add rsp, 0x20
pop rbx
pop rsi
pop r12
jmp 0x4fad40
Function at 0x500c00
Capabilities:
Encode data using base64
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, rdx
mov r12, rdx
mov rbp, r8
call fcn.004ffbe0
movsxd rsi, eax
test esi, esi
js 0x500bdc
mov rcx, rbp
call fcn.004ffc60
mov edi, eax
cmp eax, 1
je 0x500b86
mov rax, rsi
lea rdx, str.NUL_IN_HEADER
shl rax, 5
cmp dword [rdx + rax + 0x18], 0xffffffff
je 0x500beb
mov r9, qword [rbx + 0x18]
test r9, r9
je 0x500ba0
mov dword [r9 + rsi*4], edi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov ecx, 0xcc
call fcn.004996e0
xor r8d, r8d
mov r9, rax
mov ecx, r8d
mov rdx, rbx
call fcn.004ffd00
mov dword [r9 + r8*4], eax
add r8, 1
cmp r8, 0x33
jne 0x500bb0
mov qword [rbx + 0x18], r9
mov dword [r9 + rsi*4], edi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, r12
lea rcx, str.Unhandled_message_id:__s
call fcn.00494770
mov r8, rbp
mov rdx, r12
lea rcx, str.Cannot_demote__s_to__s
call fcn.00494770
nop
nop
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rbp, str.skiplist
mov rbx, rcx
mov rcx, rdx
call fcn.004996c0
mov r14, qword [str._________AA__A__________________]
mov qword [rsp + 0x28], rax
mov r13, rax
jmp 0x500c45
add r13, 1
test r12b, r12b
je 0x500d00
lea rdx, [0x0059a034]
mov rcx, r13
call sub.msvcrt.dll_strcspn
movsxd r15, eax
lea rdx, [r13 + r15]
movzx r12d, byte [rdx]
test eax, eax
je 0x500c38
mov byte [rdx], 0
mov rcx, r13
lea edi, [rax - 1]
mov r8d, 0
jg 0x500cba
jmp 0x500d4d
cmp dl, 0x3d
je 0x500cc5
mov r11d, edx
movzx esi, dl
and r11d, 0xdf
or r11d, 0x20
test byte [r14 + rsi], 4
cmovne edx, r11d
add r10d, 1
add rcx, 1
mov byte [rcx - 1], dl
lea rdx, [r8 + 1]
cmp r8, rdi
je 0x500d40
mov r8, rdx
movzx edx, byte [rcx]
mov r10d, r8d
cmp dl, 0x3a
jne 0x500c80
mov byte [rcx], 0
mov rsi, r13
mov ecx, 9
mov rdi, rbp
repe cmpsb byte [rsi], byte [rdi]
seta dl
sbb dl, 0
test dl, dl
jne 0x500d20
cmp eax, r10d
je 0x500d63
lea rdx, [r13 + r8 + 1]
lea rcx, [rbx + 0x20]
call fcn.0051df30
lea r13, [r13 + r15 + 1]
test r12b, r12b
jne 0x500c45
mov rcx, qword [rsp + 0x28]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.004c9260
cmp eax, r10d
je 0x500d54
lea r8, [r13 + r8 + 1]
mov rdx, r13
lea r13, [r13 + r15 + 1]
mov rcx, rbx
call fcn.00500b40
jmp 0x500c3c
movsxd r8, r10d
lea rcx, [r13 + r8]
jmp 0x500cc5
mov byte [r13], 0
jmp 0x500d25
mov rdx, r13
lea rcx, str.Missing_:__s
call fcn.00494770
lea rcx, str.skiplist_requires_a_path
call fcn.00494770
nop
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x48], 0
mov rbx, rcx
je 0x500d88
add rsp, 0x20
pop rbx
ret
mov edx, 0x28
mov ecx, 1
call fcn.004997f0
mov qword [rbx + 0x48], rax
add rsp, 0x20
pop rbx
ret
Function at 0x500db0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x90
mov r11, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov r9, qword [rcx + 0x48]
mov rax, qword [r11]
mov qword [rsp + 0x88], rax
xor eax, eax
test r9, r9
je 0x500f1d
movdqu xmm4, xmmword [rdx]
movdqu xmm5, xmmword [rdx + 0x10]
mov ebx, dword [r9]
movaps xmmword [rsp + 0x20], xmm4
movaps xmmword [rsp + 0x30], xmm5
test ebx, ebx
je 0x500f1d
mov edi, dword [rdx]
lea ebp, [rbx - 1]
mov r13, qword [r9 + 0x10]
xor r10d, r10d
mov esi, ebp
mov r12, qword [0x005ab240]
lea r8, [rsp + 0x40]
and esi, edi
mov eax, esi
jmp 0x500e60
mov rdx, qword [rsp + 0x60]
xor r14, qword [r8 + 8]
xor rdx, qword [r8]
or r14, rdx
jne 0x500e3f
mov edx, dword [r8 + 0x10]
cmp dword [rsp + 0x70], edx
je 0x500f04
mov edx, 1
xor edx, 1
test edx, edx
jne 0x500f18
add r10d, 1
add eax, r10d
and eax, ebp
cmp esi, eax
je 0x500f1d
mov edx, eax
lea ecx, [rax + rax]
shr edx, 4
and ecx, 0x1e
mov edx, dword [r13 + rdx*4]
shr edx, cl
mov ecx, edx
test dl, 2
jne 0x500f18
test dl, 1
jne 0x500e4f
mov edx, eax
mov dword [rsp + 0x20], edi
movdqa xmm3, xmmword [rsp + 0x30]
shl rdx, 5
add rdx, qword [r9 + 0x18]
movdqa xmm2, xmmword [rsp + 0x20]
movdqu xmm0, xmmword [rdx]
movdqu xmm1, xmmword [rdx + 0x10]
movaps xmmword [rsp + 0x50], xmm3
mov rdx, qword [r12]
movaps xmmword [rsp + 0x40], xmm2
movaps xmmword [rsp + 0x60], xmm0
mov r14, qword [rsp + 0x68]
mov rdx, qword [rdx + 0xc8]
movaps xmmword [rsp + 0x70], xmm1
cmp qword [rdx + 0x10], 0x20
jne 0x500e20
mov rdx, qword [rsp + 0x60]
xor r14, qword [r8 + 8]
xor rdx, qword [r8]
or r14, rdx
jne 0x500e3f
mov r14, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
xor r14, qword [r8 + 0x18]
xor rdx, qword [r8 + 0x10]
or r14, rdx
jne 0x500e3f
xor edx, edx
xor edx, 1
test edx, edx
je 0x500e4f
nop dword [rax]
and ecx, 3
je 0x500f40
xor eax, eax
mov rdi, qword [rsp + 0x88]
xor rdi, qword [r11]
jne 0x500f4e
add rsp, 0x90
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
cmp ebx, eax
jbe 0x500f1d
mov rdx, qword [r9 + 0x20]
mov rax, qword [rdx + rax*8]
jmp 0x500f1f
call sub.libssp_0.dll___stack_chk_fail
nop
nop word cs:[rax + rax]
nop
Function at 0x503610
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xd8
mov rbp, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov rax, qword [rbp]
mov qword [rsp + 0xc8], rax
xor eax, eax
mov r12, rcx
lea rdi, [rsp + 0x40]
mov ecx, 0x11
mov rsi, rdx
mov r9, r8
lea r8, str._bsau
lea r13, [rsp + 0x40]
rep stosq qword [rdi], rax
mov rax, qword [0x005aaca0]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x58], rax
mov rax, qword [0x00577ba0]
mov rdx, qword [rax + 8]
mov qword [rsp + 0x20], 0
call fcn.0040b730
mov edx, 1
mov ecx, 0xd
mov rbx, qword [rsi + 8]
call fcn.00471580
mov rdx, qword [r12 + 0x10]
mov rcx, r13
mov r9, rsi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0x400
mov r8, qword [r12 + 8]
call fcn.00460f20
mov ecx, 0xd
mov r12d, eax
call fcn.00471670
test r12d, r12d
jne 0x503781
cmp qword [rsi + 8], rbx
je 0x503781
mov rax, rbx
jbe 0x503713
nop dword [rax]
mov rdx, qword [rsi + 0x10]
movzx ecx, byte [rdx + rax]
cmp cl, 0xd
je 0x503709
cmp rbx, rax
je 0x503705
mov byte [rdx + rbx], cl
add rbx, 1
add rax, 1
cmp qword [rsi + 8], rax
ja 0x5036f0
mov rax, qword [rsi]
cmp rax, 1
adc rax, 0xffffffffffffffff
cmp rax, rbx
jb 0x5037af
mov rax, qword [rsi + 0x10]
cmp rax, qword [0x005ab200]
mov qword [rsi + 8], rbx
je 0x503760
mov byte [rax + rbx], 0
mov rax, qword [rsp + 0xc8]
xor rax, qword [rbp]
jne 0x5037bb
mov eax, r12d
add rsp, 0xd8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
cmp byte [rax], 0
je 0x50373c
mov r8d, 0xa8
lea rdx, [0x0059a98b]
lea rcx, [0x0059a994]
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x50373c
call fcn.00426640
lea rcx, [0x0059a932]
test eax, eax
je 0x50379e
call fcn.00494950
mov r12d, 0xffffffff
jmp 0x50373c
lea rcx, str.gpg_failed_to_sign_the_data
call fcn.0056e6a8
mov rcx, rax
jmp 0x503791
lea rcx, [0x0059a968]
call fcn.00494770
call sub.libssp_0.dll___stack_chk_fail
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x504300
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rsi, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov rax, qword [rsi]
mov qword [rsp + 0x88], rax
xor eax, eax
mov rbx, rcx
mov ecx, 0x70
call fcn.004996e0
cmp qword [0x005f3c10], 0
mov r12, rax
je 0x504460
movzx eax, word [0x005f3c08]
sub eax, 1
mov qword [r12 + 8], rbx
mov ecx, 0x1e0
mov qword [r12], 0
mov dword [r12 + 0x10], 0
mov word [r12 + 0x68], ax
mov qword [r12 + 0x18], 0
mov qword [r12 + 0x20], 0
mov qword [r12 + 0x28], 0
mov qword [r12 + 0x30], 0
mov qword [r12 + 0x38], 0x1e
mov qword [r12 + 0x40], 0
call fcn.004996e0
movsxd rcx, dword [r12 + 0x38]
mov qword [r12 + 0x48], rax
mov rax, rcx
shr rax, 0x3c
jne 0x5045d8
shl rcx, 4
call fcn.004996e0
mov qword [r12 + 0x50], rax
mov eax, dword [r12 + 0x38]
lea ecx, [rax + rax]
movsxd rcx, ecx
mov rax, rcx
shr rax, 0x3e
jne 0x5045c4
shl rcx, 2
call fcn.004996e0
mov qword [r12 + 0x58], rax
mov eax, dword [r12 + 0x38]
lea ecx, [rax + rax]
movsxd rcx, ecx
mov rax, rcx
shr rax, 0x3e
jne 0x5045c4
shl rcx, 2
call fcn.004996e0
mov qword [r12 + 0x60], rax
lea rax, [0x00505a50]
mov qword [rbx + 0x740], rax
mov rax, qword [rsp + 0x88]
xor rax, qword [rsi]
mov qword [rbx + 0x748], r12
jne 0x5045ec
mov rax, r12
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, [rsp + 0x28]
lea rcx, str.log.graphcolors
call fcn.00413d80
test eax, eax
je 0x5044a0
mov rax, qword [0x005aaaf0]
mov rcx, qword [0x005aaae0]
mov edx, dword [rax]
mov qword [0x005f3c10], rcx
mov word [0x005f3c08], dx
mov eax, edx
jmp 0x50434c
lea rcx, [0x00577c40]
lea rbp, [rsp + 0x30]
call fcn.0040b8d0
mov r15, qword [rsp + 0x28]
mov rcx, r15
call sub.msvcrt.dll_strlen
lea r13, [r15 + rax]
cmp r15, r13
jae 0x504540
nop word [rax + rax]
movzx eax, byte [r15]
cmp al, 0x2c
je 0x5045a0
mov rdi, r15
test al, al
jne 0x5044f4
jmp 0x5045a0
test al, al
je 0x504500
movzx eax, byte [rdi + 1]
add rdi, 1
cmp al, 0x2c
jne 0x5044f0
mov r14d, edi
sub r14d, r15d
mov r8, rbp
mov edx, r14d
mov rcx, r15
call fcn.004d2d50
test eax, eax
je 0x504588
call fcn.00426640
lea rcx, [0x0059ac80]
test eax, eax
je 0x5045b0
mov r8, r15
mov edx, r14d
call fcn.00494a30
lea r15, [rdi + 1]
cmp r13, r15
ja 0x5044d0
lea rdx, [0x0059acd7]
lea rcx, [0x00577c40]
call fcn.0040b660
mov rcx, qword [rsp + 0x28]
call fcn.004c9260
movzx eax, word [0x00577c48]
mov rdx, qword [0x00577c40]
sub eax, 1
mov qword [0x005f3c10], rdx
mov word [0x005f3c08], ax
jmp 0x50434c
mov rdx, rbp
lea rcx, [0x00577c40]
call fcn.0040b660
jmp 0x504537
xor r14d, r14d
mov rdi, r15
jmp 0x504506
lea rcx, str.ignore_invalid_color__.s_in_log.graphColors
call fcn.0056e6a8
mov rcx, rax
jmp 0x50452c
mov r8, rcx
mov edx, 4
lea rcx, [0x0059ace0]
call fcn.00494770
mov r8, rcx
mov edx, 0x10
lea rcx, [0x0059ace0]
call fcn.00494770
call sub.libssp_0.dll___stack_chk_fail
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x505b20
Capabilities:
Write file on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x40
mov rsi, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov rax, qword [rsi]
mov qword [rsp + 0x38], rax
xor eax, eax
mov rbx, rcx
mov rax, qword [0x005ab200]
mov rcx, qword [0x005f3c00]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], rax
call fcn.00504090
test rbx, rbx
je 0x505ba2
lea r12, [rsp + 0x20]
mov rcx, rbx
mov rdx, r12
call fcn.00504920
mov rax, qword [rbx + 8]
mov rcx, qword [rsp + 0x30]
mov edx, 1
mov r8, qword [rsp + 0x28]
mov r9, qword [rax + 0x6e8]
call sub.msvcrt.dll_fwrite
mov rcx, r12
call fcn.004727a0
mov rax, qword [rsp + 0x38]
xor rax, qword [rsi]
jne 0x505bb5
add rsp, 0x40
pop rbx
pop rsi
pop r12
ret
call sub.libssp_0.dll___stack_chk_fail
nop
nop dword [rax + rax]

Function at 0x505bc0
Capabilities:
Write file on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x40
mov rsi, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov rax, qword [rsi]
mov qword [rsp + 0x38], rax
xor eax, eax
mov rbx, rcx
mov rax, qword [0x005ab200]
mov rcx, qword [0x005f3c00]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], rax
call fcn.00504090
test rbx, rbx
je 0x505c42
lea r12, [rsp + 0x20]
mov rcx, rbx
mov rdx, r12
call fcn.005058d0
mov rax, qword [rbx + 8]
mov rcx, qword [rsp + 0x30]
mov edx, 1
mov r8, qword [rsp + 0x28]
mov r9, qword [rax + 0x6e8]
call sub.msvcrt.dll_fwrite
mov rcx, r12
call fcn.004727a0
mov rax, qword [rsp + 0x38]
xor rax, qword [rsi]
jne 0x505c55
add rsp, 0x40
pop rbx
pop rsi
pop r12
ret
call sub.libssp_0.dll___stack_chk_fail
nop
nop dword [rax + rax]