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

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rdi, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov rsi, qword [0x005ab200]
mov rax, qword [rdi]
mov qword [rsp + 0x38], rax
xor eax, eax
mov r14, rcx
mov rcx, qword [0x005f3c00]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], rsi
call fcn.00504090
test r14, r14
je 0x505d88
mov edx, dword [r14 + 0x1c]
lea r12, [rsp + 0x20]
lea r13, [0x0059ae28]
lea rbp, [0x0059ae31]
test edx, edx
jne 0x505d02
jmp 0x505da8
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x30]
cmp rax, rsi
je 0x505d60
mov byte [rax], 0
test ebx, ebx
jne 0x505d80
mov eax, dword [r14 + 0x1c]
test eax, eax
je 0x505d80
mov rdx, r12
mov rcx, r14
call fcn.00504920
mov r8, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
mov edx, 1
mov ebx, eax
mov rax, qword [r14 + 8]
mov r9, qword [rax + 0x6e8]
call sub.msvcrt.dll_fwrite
test ebx, ebx
jne 0x505cd8
mov rax, qword [r14 + 8]
mov ecx, 0xa
mov rdx, qword [rax + 0x6e8]
call sub.msvcrt.dll_putc
mov rax, qword [r14 + 8]
lea rcx, [rax + 0x560]
call fcn.00504090
jmp 0x505cd8
cmp byte [rsi], 0
je 0x505cee
mov r8d, 0xa8
mov rdx, r13
mov rcx, rbp
call qword [sym.imp.msvcrt.dll__assert]
test ebx, ebx
je 0x505cf6
nop
mov rcx, r12
call fcn.004727a0
mov rax, qword [rsp + 0x38]
xor rax, qword [rdi]
jne 0x505dba
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, r14
call fcn.00505bc0
mov rcx, r12
call fcn.004727a0
jmp 0x505d88
call sub.libssp_0.dll___stack_chk_fail
nop

Function at 0x505dc0
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rdi, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov rsi, qword [0x005ab200]
mov rax, qword [rdi]
mov qword [rsp + 0x38], rax
xor eax, eax
mov rbx, rcx
mov rcx, qword [0x005f3c00]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], rsi
call fcn.00504090
xor eax, eax
test rbx, rbx
je 0x505edd
mov edx, dword [rbx + 0x1c]
test edx, edx
je 0x505edd
lea r12, [rsp + 0x20]
lea r13, [0x0059ae28]
lea rbp, [0x0059ae31]
jmp 0x505e6b
mov byte [rax], 0
mov eax, dword [rbx + 0x1c]
test eax, eax
je 0x505ed0
mov rax, qword [rbx + 8]
mov ecx, 0xa
mov rdx, qword [rax + 0x6e8]
call sub.msvcrt.dll_putc
mov rax, qword [rbx + 8]
lea rcx, [rax + 0x560]
call fcn.00504090
mov rdx, r12
mov rcx, rbx
call fcn.00504920
mov rax, qword [rbx + 8]
mov r8, qword [rsp + 0x28]
mov edx, 1
mov rcx, qword [rsp + 0x30]
mov r9, qword [rax + 0x6e8]
call sub.msvcrt.dll_fwrite
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], 0
cmp rax, rsi
jne 0x505e38
cmp byte [rsi], 0
je 0x505e3b
mov r8d, 0xa8
mov rdx, r13
mov rcx, rbp
call qword [sym.imp.msvcrt.dll__assert]
mov eax, dword [rbx + 0x1c]
test eax, eax
jne 0x505e46
nop word cs:[rax + rax]
mov rcx, r12
call fcn.004727a0
mov eax, 1
mov rsi, qword [rsp + 0x38]
xor rsi, qword [rdi]
jne 0x505ef4
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call sub.libssp_0.dll___stack_chk_fail
nop
nop word [rax + rax]
Function at 0x505f00
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r12, qword [r8 + 0x10]
mov r13, rcx
mov r14, rdx
mov rbx, r8
test r12, r12
je 0x505f7b
nop
mov edx, 0xa
mov rcx, r12
call sub.msvcrt.dll_strchr
mov rsi, rax
test rax, rax
je 0x505f60
lea rdi, [rax + 1]
mov r9, r14
mov edx, 1
mov rcx, r12
mov r8, rdi
sub r8, r12
call sub.msvcrt.dll_fwrite
cmp byte [rsi + 1], 0
jne 0x505fd0
mov r12, rdi
jmp 0x505f20
mov r8, qword [rbx + 8]
add r8, qword [rbx + 0x10]
mov r9, r14
mov edx, 1
sub r8, r12
mov rcx, r12
call sub.msvcrt.dll_fwrite
test r13, r13
je 0x505fc0
mov rax, qword [rbx + 8]
mov edx, dword [r13 + 0x1c]
test rax, rax
je 0x505f98
mov rcx, qword [rbx + 0x10]
cmp byte [rcx + rax - 1], 0xa
je 0x505fe0
test edx, edx
je 0x505fc0
mov rdx, r14
mov ecx, 0xa
call sub.msvcrt.dll_putc
mov rcx, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
jmp fcn.00505dc0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
ret
mov rcx, r13
call fcn.00505b20
jmp 0x505f55
test edx, edx
je 0x505fc0
mov rcx, r13
call fcn.00505dc0
mov rdx, r14
mov ecx, 0xa
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
jmp sub.msvcrt.dll_putc
Function at 0x50bb90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r12, rdx
test ecx, ecx
jle 0x50bbde
lea eax, [rcx - 1]
lea rsi, [rdx + 0xc]
shl rax, 4
lea rdi, [rdx + rax + 0x1c]
mov eax, dword [rsi]
xor ebx, ebx
test eax, eax
jle 0x50bbd5
nop dword [rax + rax]
mov rax, qword [rsi - 0xc]
mov rcx, qword [rax + rbx*8]
add rbx, 1
call fcn.004f4270
cmp dword [rsi], ebx
jg 0x50bbc0
add rsi, 0x10
cmp rsi, rdi
jne 0x50bbb0
mov rcx, r12
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp fcn.004c9260

Function at 0x50bca0
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x58
mov rsi, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov rax, qword [rsi]
mov qword [rsp + 0x48], rax
xor eax, eax
mov rax, qword [0x005aaca0]
mov r13, rcx
mov rbx, rdx
mov qword [rsp + 0x38], 0
lea r12, [rsp + 0x30]
mov qword [rsp + 0x30], rax
test rdx, rdx
je 0x50bcf4
mov rdx, qword [rbx + 8]
mov rcx, r12
call fcn.0040b660
mov rbx, qword [rbx]
test rbx, rbx
jne 0x50bce0
mov rcx, r12
call fcn.0040b930
xor edx, edx
mov r8d, 2
mov rcx, r13
mov qword [rsp + 0x20], rax
mov r12, rax
lea r9, [0x0059b874]
call fcn.004345a0
mov rcx, r12
call fcn.004c9260
mov rax, qword [rsp + 0x48]
xor rax, qword [rsi]
jne 0x50bd38
add rsp, 0x58
pop rbx
pop rsi
pop r12
pop r13
ret
call sub.libssp_0.dll___stack_chk_fail
nop
nop

Function at 0x50bd40
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x88]
mov r14, qword [rsp + 0x90]
mov r15, qword [rsp + 0x98]
mov rax, r9
test r8d, r8d
je 0x50be20
movsxd r9, r8d
lea r10, [r9*4]
mov r9d, dword [rax + r9*4]
lea r13, [rbx + r9 + 1]
cmp r8d, 0xffffffff
jne 0x50be50
movsx r12d, dl
mov rdx, r15
cmp rbx, r13
jbe 0x50bdae
cmp byte [rbx - 1], 0xa
je 0x50be60
call sub.msvcrt.dll_fputs
mov rdx, r15
mov rcx, rsi
sub rbx, r13
call sub.msvcrt.dll_fputs
mov rdx, r15
mov ecx, r12d
call sub.msvcrt.dll_putc
mov r9, r15
mov r8, rbx
mov rcx, r13
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rdx, r15
mov rcx, r14
call sub.msvcrt.dll_fputs
mov rdx, r15
mov ecx, 0xa
call sub.msvcrt.dll_putc
mov r9, r15
mov r8d, 0x1c
mov edx, 1
lea rcx, str._No_newline_at_end_of_file_n
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp sub.msvcrt.dll_fwrite
mov r13, rbx
mov r8d, 4
mov eax, dword [rax + r8]
movsx r12d, dl
mov rdx, r15
lea rbx, [rbx + rax + 1]
cmp rbx, r13
ja 0x50bda4
jmp 0x50bdae
lea r8, [r10 + 4]
jmp 0x50be29
call sub.msvcrt.dll_fputs
mov rdx, r15
mov rcx, rsi
call sub.msvcrt.dll_fputs
mov rdx, r15
mov ecx, r12d
call sub.msvcrt.dll_putc
lea r8, [rbx - 1]
mov r9, r15
mov rcx, r13
sub r8, r13
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rdx, r15
mov rcx, r14
call sub.msvcrt.dll_fputs
mov rdx, r15
mov ecx, 0xa
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp sub.msvcrt.dll_putc
Function at 0x510b30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
sub rsp, 0x20
mov r12, rcx
test rcx, rcx
je 0x510b78
mov rax, qword [rcx + 8]
mov rcx, qword [rcx + 0x18]
test rax, rax
je 0x510b62
mov r8, qword [r12 + 0x20]
test r8, r8
je 0x510b62
mov rdx, rcx
mov rcx, r8
call rax
mov rcx, qword [r12 + 0x18]
call qword [r12 + 0x10]
mov rcx, r12
add rsp, 0x20
pop r12
jmp fcn.004c9260
add rsp, 0x20
pop r12
ret
Function at 0x514640
Capabilities:
Write file on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
and byte [rcx + 0x8c], 0xfd
lea r12, [rcx + 0x560]
mov rbx, rcx
mov rcx, r12
call fcn.004f4db0
call fcn.004f44c0
test eax, eax
jne 0x514698
cmp qword [rbx + 0xb8], 0
je 0x51467d
test byte [rbx + 0x85], 8
je 0x5146c8
mov rcx, r12
call fcn.004f7c10
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
mov esi, dword [rbx + 0x644]
mov rcx, r12
mov dword [rbx + 0x644], 0x800
call fcn.004f7c10
xor eax, eax
mov dword [rbx + 0x644], esi
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
mov rcx, rbx
call fcn.00513ba0
test dword [rbx + 0x644], 0xfffff7ff
je 0x51467d
test byte [rbx + 0x85], 0x10
je 0x51467d
mov ecx, dword [rbx + 0xb4]
cmp ecx, 5
je 0x51467d
call fcn.00523ff0
test eax, eax
jne 0x51467d
mov rax, qword [rbx + 0x740]
test rax, rax
je 0x51472b
mov rdx, qword [rbx + 0x748]
mov rcx, r12
call rax
mov r9, qword [rbx + 0x6e8]
mov r8d, 1
mov rdx, qword [rax + 8]
mov rcx, qword [rax + 0x10]
call sub.msvcrt.dll_fwrite
mov r8, qword [rbx + 0x6e8]
test byte [rbx + 0x8c], 2
jne 0x514749
mov eax, dword [rbx + 0x644]
and eax, 0x12
cmp eax, 0x12
je 0x51475b
mov rdx, r8
mov ecx, 0xa
call sub.msvcrt.dll_putc
jmp 0x51467d
mov rcx, r8
lea rdx, [0x0059c70a]
call sub.libintl_8.dll_libintl_fprintf
mov r8, qword [rbx + 0x6e8]
jmp 0x514749

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

Disassembly:
push r12
push rbx
sub rsp, 0x38
movabs rax, 0x1ffffffff
and rax, qword [0x00578048]
movabs rdx, 0x100000000
mov rbx, qword [rcx]
mov r12, rcx
cmp rax, rdx
je 0x514c9b
mov rax, qword [rbx + 0x10]
sub rax, qword [rbx + 8]
mov qword [rsp + 0x20], rcx
lea r9, str.mem_pool___p_:_discard___I64u__unused_n
mov qword [rsp + 0x28], rax
lea r8, str.GIT_TRACE_MEMPOOL
mov edx, 0x3c
lea rcx, str.mem_pool.c
call fcn.0047ff50
mov rbx, qword [r12]
test rbx, rbx
je 0x514ca0
nop word [rax + rax]
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.004c9260
test rbx, rbx
jne 0x514c90
mov rcx, r12
add rsp, 0x38
pop rbx
pop r12
jmp fcn.004c9260
Function at 0x5172b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rdi, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov rax, qword [rdi]
mov qword [rsp + 0x28], rax
xor eax, eax
mov eax, dword [0x00578050]
mov rsi, rcx
mov r12, rdx
mov r13d, r8d
test eax, eax
js 0x5173a0
test eax, eax
je 0x517370
mov rax, qword [rsi + 0x10]
mov rbx, qword [rax + 0x68]
test rbx, rbx
jne 0x517308
jmp 0x517340
mov rbx, qword [rbx]
test rbx, rbx
je 0x517340
lea rdx, [rbx + 0x70]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x517300
mov eax, 1
mov rsi, qword [rsp + 0x28]
xor rsi, qword [rdi]
jne 0x5173b9
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
mov edx, r13d
mov rcx, r12
call fcn.00515240
test rax, rax
je 0x517398
mov rdx, qword [rsi + 0x10]
mov rcx, qword [rdx + 0x68]
mov qword [rax], rcx
mov qword [rdx + 0x68], rax
mov eax, 1
jmp 0x51731d
lea r8, [rsp + 0x24]
lea rdx, str.core.multipackindex
mov rcx, rsi
call fcn.00413790
test eax, eax
jne 0x517398
mov eax, dword [rsp + 0x24]
test eax, eax
jne 0x5172eb
nop dword [rax]
xor eax, eax
jmp 0x51731d
xor edx, edx
lea rcx, str.GIT_TEST_MULTI_PACK_INDEX
call fcn.00412940
mov dword [0x00578050], eax
jmp 0x5172e3
call sub.libssp_0.dll___stack_chk_fail
nop
nop
xor r8d, r8d
mov r9d, edx
xor edx, edx
jmp fcn.00515960

Function at 0x5173c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rdi, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov rax, qword [rdi]
mov qword [rsp + 0x28], rax
xor eax, eax
mov eax, dword [0x00578050]
mov rsi, rcx
mov r12, rdx
mov r13d, r8d
test eax, eax
js 0x5173a0
test eax, eax
je 0x517370
mov rax, qword [rsi + 0x10]
mov rbx, qword [rax + 0x68]
test rbx, rbx
jne 0x517308
jmp 0x517340
mov rbx, qword [rbx]
test rbx, rbx
je 0x517340
lea rdx, [rbx + 0x70]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x517300
mov eax, 1
mov rsi, qword [rsp + 0x28]
xor rsi, qword [rdi]
jne 0x5173b9
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
mov edx, r13d
mov rcx, r12
call fcn.00515240
test rax, rax
je 0x517398
mov rdx, qword [rsi + 0x10]
mov rcx, qword [rdx + 0x68]
mov qword [rax], rcx
mov qword [rdx + 0x68], rax
mov eax, 1
jmp 0x51731d
lea r8, [rsp + 0x24]
lea rdx, str.core.multipackindex
mov rcx, rsi
call fcn.00413790
test eax, eax
jne 0x517398
mov eax, dword [rsp + 0x24]
test eax, eax
jne 0x5172eb
nop dword [rax]
xor eax, eax
jmp 0x51731d
xor edx, edx
lea rcx, str.GIT_TEST_MULTI_PACK_INDEX
call fcn.00412940
mov dword [0x00578050], eax
jmp 0x5172e3
call sub.libssp_0.dll___stack_chk_fail
nop
nop
xor r8d, r8d
mov r9d, edx
xor edx, edx
jmp fcn.00515960
Function at 0x529c60
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 + 0x18]
mov r12, rcx
test eax, eax
jle 0x529cac
xor ebx, ebx
xor esi, esi
nop word cs:[rax + rax]
mov rax, qword [r12 + 0x10]
add esi, 1
mov rcx, qword [rax + rbx + 0x40]
call fcn.004c9260
mov rax, qword [r12 + 0x10]
mov rcx, qword [rax + rbx + 0x58]
add rbx, 0x60
call fcn.004c9260
cmp esi, dword [r12 + 0x18]
jl 0x529c80
mov rcx, qword [r12 + 0x10]
call fcn.004c9260
mov rcx, qword [r12]
call fcn.004c9260
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
jmp fcn.004c9260

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

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov r12, rcx
mov rcx, qword [rdx]
mov rbx, rdx
call fcn.004c9260
mov rcx, qword [rbx + 8]
call fcn.004c9260
mov rcx, qword [rbx + 0x10]
call fcn.004c9260
mov rax, qword [0x005ab240]
mov r8, qword [rbx + 0x18]
mov rdx, r12
mov rcx, qword [rax]
add rsp, 0x28
pop rbx
pop r12
jmp fcn.004d9290
Function at 0x53e510
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
sub rsp, 0x20
mov r12, rcx
mov rcx, qword [rcx + 0x20]
call fcn.004c9260
mov rcx, qword [r12 + 0x28]
call fcn.004c9260
mov rcx, qword [r12 + 0x30]
call fcn.004c9260
mov rcx, qword [r12 + 0x10]
call fcn.004c9260
mov rcx, qword [r12 + 0x18]
call fcn.004c9260
mov rcx, r12
add rsp, 0x20
pop r12
jmp fcn.004c9260

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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [rsp + 0x90]
mov r13, rcx
mov r15, rdx
mov r14, r8
mov r12, r9
cmp rbx, 0xffffffffffffffff
je 0x53e9d8
mov rdx, r9
mov r8, rbx
lea r12, [r12 + rbx + 1]
call fcn.00472fb0
mov rcx, r13
call fcn.00472a80
mov rcx, r12
call sub.msvcrt.dll_strlen
mov rcx, r15
mov rdx, r12
mov r8, rax
call fcn.00472fb0
mov rcx, r15
call fcn.00472a80
mov rbx, qword [r13 + 8]
mov r12, qword [r13 + 0x10]
mov rcx, qword [str._________AA__A__________________]
jmp 0x53e8eb
movzx eax, byte [r12 + rbx - 1]
lea rdx, [rbx - 1]
test byte [rcx + rax], 6
jne 0x53e8f0
mov rbx, rdx
test rbx, rbx
jne 0x53e8d8
test r14, r14
je 0x53e8ff
lea rax, [0x005f42c0]
mov qword [r14], rax
mov rsi, qword [0x005781c0]
lea rbp, [0x005781c0]
cmp rsi, rbp
je 0x53e9c0
mov rdi, qword [sym.imp.msvcrt.dll__strnicmp_2]
nop dword [rax]
mov rdx, qword [rsi + 0x20]
mov r8, rbx
mov rcx, r12
call rdi
test eax, eax
je 0x53e945
mov rdx, qword [rsi + 0x28]
test rdx, rdx
je 0x53e9a8
mov r8, rbx
mov rcx, r12
call rdi
test eax, eax
jne 0x53e9a8
xor edx, edx
mov rcx, r13
call fcn.004728a0
mov r12, rax
test r14, r14
je 0x53e960
lea rax, [rsi + 0x20]
mov qword [r14], rax
nop
mov r14, qword [rsi + 0x28]
mov rax, qword [rsi + 0x20]
test r14, r14
jne 0x53e977
test r12, r12
cmovne rax, r12
mov r14, rax
mov rcx, r14
call sub.msvcrt.dll_strlen
mov rcx, r13
mov rdx, r14
mov r8, rax
call fcn.00472fb0
mov rcx, r12
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.004c9260
mov rsi, qword [rsi]
cmp rsi, rbp
je 0x53e9c0
mov r12, qword [r13 + 0x10]
jmp 0x53e920
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r9
call sub.msvcrt.dll_strlen
mov rcx, r13
mov rdx, r12
mov r8, rax
call fcn.00472fb0
mov rcx, r13
call fcn.00472a80
jmp 0x53e8c4
Function at 0x53f5a0
Capabilities:
Encode data using base64
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
mov rax, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov r9d, dword [0x005f42a8]
mov rdi, qword [rax]
mov qword [rsp + 0x78], rdi
xor edi, edi
mov qword [rsp + 0x50], rcx
mov rbp, rdx
mov rbx, r8
test r9d, r9d
jne 0x53f5e0
call fcn.0053e680
mov r8d, dword [rbx + 0x14]
test r8d, r8d
je 0x53fb80
mov rcx, rbp
call sub.msvcrt.dll_strlen
movsxd rbx, eax
mov rdx, rbx
mov rcx, rbp
call fcn.004db9f0
sub rbx, rax
movsxd rax, ebx
mov qword [rsp + 0x58], rbx
lea rbx, [rbp + rax]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rbx
cmp rbp, rbx
jae 0x53fc8b
mov rdi, qword [0x005aab40]
mov r10, qword [str._________AA__A__________________]
mov rcx, rbp
movzx r11d, byte [rdi]
nop dword [rax + rax]
movzx eax, byte [rcx]
cmp al, r11b
je 0x53f69b
test al, al
je 0x53f6a4
mov edx, eax
mov r8, rcx
cmp al, 0xa
jne 0x53f672
jmp 0x53fc23
movzx edx, byte [r8 + 1]
add r8, 1
test dl, dl
je 0x53f6a4
cmp dl, 0xa
je 0x53f67d
movzx r9d, dl
test byte [r10 + r9], 1
jne 0x53f660
test dl, dl
je 0x53f6a4
cmp dl, 0xa
je 0x53f6a4
nop word cs:[rax + rax]
add rcx, 1
cmp al, 0xa
je 0x53f69f
movzx eax, byte [rcx]
test al, al
jne 0x53f690
cmp rbx, rcx
ja 0x53f640
sub rcx, rbp
mov qword [rsp + 0x28], rcx
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x53fcbd
xor ebx, ebx
cmp rax, 1
je 0x53f6e9
sub rax, 2
jns 0x53f6de
jmp 0x53f6e9
sub rax, 1
cmp rax, 0xffffffffffffffff
je 0x53fb78
cmp byte [rbp + rax], 0xa
jne 0x53f6d0
lea rbx, [rax + 1]
cmp rbx, qword [rsp + 0x28]
jl 0x53faa8
mov dword [rsp + 0x40], 0
mov rdi, qword [0x005aab40]
xor esi, esi
xor r15d, r15d
mov dword [rsp + 0x4c], 0
mov r10d, 1
xor ebx, ebx
jmp 0x53f6e9
movzx edx, byte [rbp]
mov r11, qword [str._________AA__A__________________]
mov rax, rbp
xor ebx, ebx
test dl, dl
je 0x53f5f8
nop dword [rax + rax]
mov r10d, edx
mov rcx, rax
mov r9d, 0x2d
lea r8, [0x005a23d8]
jmp 0x53fbbc
movzx r10d, byte [rcx]
add rcx, 1
add r8, 1
cmp r9b, r10b
jne 0x53fbf4
movzx r9d, byte [r8]
test r9b, r9b
jne 0x53fbb8
movzx ecx, byte [rcx]
test byte [r11 + rcx], 1
je 0x53fbf4
nop dword [rax]
sub rax, rbp
movsxd rbx, eax
jmp 0x53f5f8
test dl, dl
je 0x53fbe0
add rax, 1
mov ecx, edx
movzx edx, byte [rax]
cmp cl, 0xa
jne 0x53fbf0
test dl, dl
jne 0x53fba0
jmp 0x53fbe0
test al, al
je 0x53f6a4
cmp al, 0xa
jne 0x53f69b
jmp 0x53f6a4
mov qword [rsp + 0x28], 0
jmp 0x53f6ac
mov rbx, 0xffffffffffffffff
jmp 0x53f6e9

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

Disassembly:
push rsi
push rbx
sub rsp, 0x28
cmp qword [rcx + 0x20], 0
mov rsi, rcx
je 0x53fd2f
xor ebx, ebx
nop word [rax + rax]
mov rax, qword [rsi + 0x18]
mov rcx, qword [rax + rbx*8]
add rbx, 1
call fcn.004c9260
cmp qword [rsi + 0x20], rbx
ja 0x53fd18
mov rcx, qword [rsi + 0x18]
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.004c9260
Function at 0x546b80
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rbx, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov rsi, qword [rsp + 0xf8]
mov rdi, qword [rsp + 0x100]
mov r13, rdx
mov r12, rcx
mov rdx, qword [rsp + 0xf0]
mov qword [rsp + 0x68], 0
mov rcx, qword [rbx]
mov qword [rsp + 0x88], rcx
xor ecx, ecx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x58], r9
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x38], 0
test r8, r8
je 0x546c06
lea rax, [0x00546820]
mov qword [rsp + 0x38], rax
lea rax, [0x00546880]
lea r14, [rsp + 0x68]
xor edx, edx
mov qword [rsp + 0x40], rax
mov rcx, r14
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
call fcn.00472870
lea rax, [rsp + 0x30]
mov rcx, r12
mov r9, rdi
mov qword [rsp + 0x20], rax
mov r8, rsi
mov rdx, r13
call fcn.005469d0
mov rcx, r14
mov r12d, eax
call fcn.004727a0
mov rax, qword [rsp + 0x88]
xor rax, qword [rbx]
jne 0x546c72
mov eax, r12d
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
ret
call sub.libssp_0.dll___stack_chk_fail
nop
nop dword [rax + rax]

Function at 0x546c80
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
mov rdi, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov rax, qword [rdi]
mov qword [rsp + 0x78], rax
xor eax, eax
mov r14, rdx
mov rsi, rcx
lea rdx, [rsp + 0x20]
mov rcx, r14
call fcn.004b3d70
mov r13d, eax
test eax, eax
jne 0x546d70
lea rdx, [0x005a4c2b]
mov rcx, r14
call fcn.004b1680
mov r12, rax
test rax, rax
je 0x546d8a
mov rbx, qword [rsp + 0x38]
mov ecx, 1
test rbx, rbx
cmovne rcx, rbx
call fcn.004996e0
mov qword [rsi], rax
mov rcx, rax
test rbx, rbx
jne 0x546d30
mov rcx, r12
call sub.msvcrt.dll_fclose
mov dword [rsi + 8], ebx
mov rax, qword [rsp + 0x78]
xor rax, qword [rdi]
jne 0x546da4
mov eax, r13d
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
ret
mov r9, r12
mov r8d, 1
mov rdx, rbx
call sub.msvcrt.dll_fread
cmp rax, 1
je 0x546cfb
mov rcx, r12
mov r13d, 0xffffffff
call sub.msvcrt.dll_fclose
mov rdx, r14
lea rcx, str.Could_not_read__s
call fcn.00494950
jmp 0x546d06
mov rdx, r14
lea rcx, str.Could_not_stat__s
mov r13d, 0xffffffff
call fcn.004948c0
jmp 0x546d06
mov rdx, r14
lea rcx, str.Could_not_open__s
mov r13d, 0xffffffff
call fcn.004948c0
jmp 0x546d06
call sub.libssp_0.dll___stack_chk_fail
nop
nop word [rax + rax]

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

Disassembly:
push r12
sub rsp, 0x20
mov r12, rcx
mov rcx, qword [rcx + 0x48]
call fcn.00547390
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, qword [r12 + 0x50]
call fcn.004c9260
mov rcx, r12
add rsp, 0x20
pop r12
jmp fcn.004c9260
Function at 0x548080
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov ebp, dword [rsp + 0x90]
mov rbx, rcx
mov ecx, edx
mov rdi, r8
mov esi, r9d
call fcn.0049b1d0
mov r12, rax
mov eax, dword [rbx + 0x60]
test eax, eax
js 0x5480dd
mov rbx, qword [rbx + 0x70]
mov ecx, 2
call qword [fcn.005707a0]
mov qword [rsp + 0x30], rdi
mov r9d, ebp
lea rdx, str._s:_d:__s._n_.s_n
mov dword [rsp + 0x28], esi
mov rcx, rax
mov r8, rbx
mov qword [rsp + 0x20], r12
call sub.libintl_8.dll_libintl_fprintf
mov rcx, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.004c9260
Function at 0x5559c0
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, qword [sym.imp.libssp_0.dll___stack_chk_guard]
mov rax, qword [rbx]
mov qword [rsp + 0x38], rax
xor eax, eax
mov rax, qword [0x005ab240]
mov r9, rdx
lea rdx, [rcx + 0x48]
mov dword [rsp + 0x20], 1
lea r8, [rsp + 0x34]
mov rcx, qword [rax]
call fcn.0046a6f0
test rax, rax
je 0x555a05
cmp dword [rsp + 0x34], 3
jne 0x555a18
mov rdx, qword [rsp + 0x38]
xor rdx, qword [rbx]
jne 0x555a24
add rsp, 0x40
pop rbx
ret
mov rcx, rax
call fcn.004c9260
xor eax, eax
jmp 0x555a05
call sub.libssp_0.dll___stack_chk_fail
nop
nop word [rax + rax]

Function at 0x555a30
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
push r12
sub rsp, 0x20
mov eax, dword [rdx + 0x34]
mov edx, eax
and edx, 0xf000
mov r12, rcx
test r8d, r8d
je 0x555a80
cmp edx, 0x8000
lea rax, str..merge_file_XXXXXX
lea r9, str..merge_link_XXXXXX
mov edx, 0x19
cmove r9, rax
lea r8, [0x005a7746]
call fcn.0049a500
mov rcx, r12
add rsp, 0x20
pop r12
jmp fcn.004b12f0
mov r8d, 0x1b6
cmp edx, 0x8000
je 0x555aa8
mov edx, 0x501
mov rcx, r12
add rsp, 0x20
pop r12
jmp fcn.004b0de0
and eax, 0x40
cmp eax, 1
sbb r8d, r8d
and r8d, 0xffffffb7
add r8d, 0x1ff
jmp 0x555a8e
Function at 0x558870
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
sub rsp, 0x20
xor edx, edx
mov r12, rcx
call fcn.00566cc0
mov rcx, r12
add rsp, 0x20
pop r12
jmp fcn.004c9260