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

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x1401150f4
cmp r8d, 0xff
jne 0x140115031
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x14011501b
lea r8, [0x140000000]
mov r9, qword [r8 + r10*8 + 0x167ac0]
mov r8, rdx
lea rdx, str._s_IAC__s_n
add rsp, 0x38
jmp fcn.1400eaee0
mov r8, rdx
mov r9d, r10d
lea rdx, str._s_IAC__d_n
add rsp, 0x38
jmp fcn.1400eaee0
cmp r8d, 0xfb
jne 0x140115043
lea r9, str.WILL
jmp 0x140115081
cmp r8d, 0xfc
jne 0x140115055
lea r9, str.WONT
jmp 0x140115081
cmp r8d, 0xfd
jne 0x140115067
lea r9, [0x1401684e4]
jmp 0x140115081
xor r9d, r9d
lea rax, str.DONT
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x1401150dd
cmp r10d, 0x27
jg 0x1401150b4
lea r8, [0x140000000]
mov r8, qword [r8 + r10*8 + 0x1680e0]
test r8, r8
jne 0x1401150c4
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, str._s__s__d_n
call fcn.1400eaee0
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x14011509b
lea r8, str.EXOPL
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, str._s__s__s_n
call fcn.1400eaee0
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, str._s__d__d_n
call fcn.1400eaee0
add rsp, 0x38
ret

Function at 0x1401157f0
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x4c0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14011584f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400ead60
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.140114fd0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140115a00
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x140115ba8
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x140115a65
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x140115a65
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140115a65
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x140115a9c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x140115af2
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140115af2
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140115af2
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140115af2
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140115af2
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.140115100
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x140115b54
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400ead60
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.140115880
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140115ba0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400ead60
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1401176a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x14018db80]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x140117735
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x140117796
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1400ead60
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14012def0
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x140117851
sub ecx, 1
je 0x1401178c4
sub ecx, 1
je 0x140117800
cmp ecx, 1
je 0x1401177e3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x14013eba4]
call fcn.1400ead60
jmp 0x1401178c4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.140117380
test eax, eax
je 0x1401178c4
jmp 0x14011776a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1401178c4
sub rax, rsi
cmp rax, rbp
jae 0x1401178c4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.1400eaee0
jmp 0x1401178c4
cmp r8d, 4
jle 0x1401178c4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x1401178c4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1400eac80
mov esi, eax
test eax, eax
je 0x1401178a3
mov edx, 5
mov rcx, rbx
call fcn.140118390
mov eax, esi
jmp 0x14011776a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1400fae70
mov rcx, r14
call fcn.1400fb150
test eax, eax
je 0x140117768
mov edx, 5
mov rcx, rbx
call fcn.140118390
mov eax, Ordinal_46
jmp 0x14011776a
Function at 0x14012d830
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x14012d872
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x14012d8b9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x14012d912
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x14012d8d0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14012d953
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14016b692]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14016b693]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14012d920
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x14012ebc4
Capabilities:
Create thread
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov ecx, 1
call fcn.14012e2b8
test al, al
je 0x14012eb9f
xor sil, sil
mov byte [rsp + 0x20], sil
call fcn.14012e14c
mov bl, al
mov ecx, dword [0x140195568]
cmp ecx, 1
je 0x14012ebaa
test ecx, ecx
jne 0x14012ead5
mov dword [0x140195568], 1
lea rdx, [0x140136070]
lea rcx, [0x140136058]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
test eax, eax
je 0x14012eab6
mov eax, 0xff
jmp 0x14012eb8f
lea rdx, [0x140136050]
lea rcx, [0x140135fc0]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [0x140195568], 2
jmp 0x14012eadd
mov sil, 1
mov byte [rsp + 0x20], sil
mov cl, bl
call fcn.14012e418
call fcn.14012f790
mov rbx, rax
cmp qword [rax], 0
je 0x14012eb10
mov rcx, rax
call fcn.14012e380
test al, al
je 0x14012eb10
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [rbx]
call qword [0x140135f98]
call fcn.14012f798
mov rbx, rax
cmp qword [rax], 0
je 0x14012eb32
mov rcx, rax
call fcn.14012e380
test al, al
je 0x14012eb32
mov rcx, qword [rbx]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_initial_narrow_environment
mov rdi, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argv
mov rbx, qword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argc
mov r8, rdi
mov rdx, rbx
mov ecx, dword [rax]
call main
mov ebx, eax
call fcn.14012f4a8
test al, al
je 0x14012ebb4
test sil, sil
jne 0x14012eb69
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
xor edx, edx
mov cl, 1
call fcn.14012e43c
mov eax, ebx
jmp 0x14012eb8f
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, 7
call fcn.14012f318
nop
mov ecx, 7
call fcn.14012f318
mov ecx, ebx
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
mov ecx, ebx
call sub.api_ms_win_crt_runtime_l1_1_0.dll__exit
nop
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_initial_narrow_environment
mov rdi, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argv
mov rbx, qword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argc
mov r8, rdi
mov rdx, rbx
mov ecx, dword [rax]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp main
sub rsp, 0x28
call fcn.14012f67c
add rsp, 0x28
jmp 0x14012ea48

Function at 0x14012f4a8
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x1412d7ba6
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x1412d7bcf
pop rbp
sub rbp, 0x33
sub rbp, 0x12d7b9c
sub rsp, 0x20
jmp 0x1412d7bee
mov rax, 0x12d7b9c
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x62bc7e14
xor byte [rax], dl
inc rax
dec rcx
jne 0x1412d7c0d
jmp 0x1412d7c24
pop rsp
popfq
std
lahf
popfq
sub byte [rsp + rdx], dl
adc al, 0x5c
xchg ebp, eax
invalid
Function at 0x7ffa11cea180
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
lea eax, [r8 - 2]
xor r10d, r10d
cdqe
lea rsi, [0x7ffa11d43880]
mov rbx, rdx
mov rdi, rcx
mov r9, rcx
test rax, rax
jle 0x7ffa11cea23e
lea r10, [rax - 1]
movabs rax, 0xaaaaaaaaaaaaaaab
lea r11, [rdx + 2]
mul r10
shr rdx, 1
inc rdx
lea r10d, [rdx + rdx*2]
movzx eax, byte [r11 - 2]
lea r11, [r11 + 3]
shr rax, 2
movzx eax, byte [rax + rsi]
mov byte [r9], al
movsx rcx, byte [r11 - 5]
movzx eax, byte [r11 - 4]
and ecx, 3
shr rax, 4
shl rcx, 4
or rcx, rax
movzx eax, byte [rcx + rsi]
mov byte [r9 + 1], al
movsx rax, byte [r11 - 4]
movzx ecx, byte [r11 - 3]
and eax, 0xf
shl rax, 2
shr rcx, 6
or rcx, rax
movzx eax, byte [rcx + rsi]
mov byte [r9 + 2], al
movsx rax, byte [r11 - 3]
and eax, 0x3f
movzx eax, byte [rax + rsi]
mov byte [r9 + 3], al
add r9, 4
sub rdx, 1
jne 0x7ffa11cea1d0
cmp r10d, r8d
jge 0x7ffa11cea2af
movsxd rdx, r10d
movzx eax, byte [rdx + rbx]
shr rax, 2
movzx eax, byte [rax + rsi]
mov byte [r9], al
lea eax, [r8 - 1]
cmp r10d, eax
jne 0x7ffa11cea275
movsx rax, byte [rdx + rbx]
mov cl, 0x3d
and eax, 3
add rax, rax
movzx eax, byte [rsi + rax*8]
mov byte [r9 + 1], al
jmp 0x7ffa11cea2a2
movsx rcx, byte [rdx + rbx]
movzx eax, byte [rbx + rdx + 1]
and ecx, 3
shr rax, 4
shl rcx, 4
or rcx, rax
movzx eax, byte [rcx + rsi]
mov byte [r9 + 1], al
movsx rax, byte [rbx + rdx + 1]
and eax, 0xf
movzx ecx, byte [rsi + rax*4]
mov byte [r9 + 2], cl
mov byte [r9 + 3], 0x3d
add r9, 4
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov byte [r9], 0
sub r9d, edi
mov rdi, qword [rsp + 0x18]
lea eax, [r9 + 1]
ret
Function at 0x1409360b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140936237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1409360e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409360c7
add dl, dl
jne 0x1409360ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14093614e
xor eax, eax
add dl, dl
jne 0x1409360fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140936205
add dl, dl
jne 0x14093610e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14093611b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140936128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140936135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140936142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1409360d6
mov eax, 1
add dl, dl
jne 0x14093615e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14093616b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140936153
sub eax, ebx
mov ebx, 1
jne 0x1409361a4
mov ecx, 1
add dl, dl
jne 0x140936186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140936193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14093617b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409360d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1409361c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409361cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409361b5
cmp eax, 0x7d00
jae 0x1409361f3
cmp eax, 0x500
jb 0x1409361ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409360d6
cmp eax, 0x7f
ja 0x1409361f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409360d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14093622a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1409360d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400c0220
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1400c022d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400c023d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400c0225
lea eax, [rcx + 1]
jmp 0x1400c024b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1400c025e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400c0244
sub eax, 3
jb 0x1400c027e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400c02cd
sar eax, 1
movsxd rbp, eax
jb 0x1400c02b4
jmp 0x1400c028c
add ebx, ebx
jne 0x1400c028a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400c02b4
inc ecx
add ebx, ebx
jne 0x1400c029a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400c02b4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400c02ad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400c029c
add ecx, 2
jmp 0x1400c02b9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1400c01e2
jmp 0x1400c022d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x76600
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400c031d
cmp rsi, rcx
jae 0x1400c0325
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400c0304
cmp al, 0x8f
ja 0x1400c0304
cmp byte [rsi - 2], 0xf
je 0x1400c030a
sub al, 0xe8
cmp al, 1
ja 0x1400c02ee
cmp rsi, rcx
jae 0x1400c0325
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400c02f4
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400c0325
lodsb al, byte [rsi]
jmp 0x1400c0304
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xbd000]
mov eax, dword [rdi]
or eax, eax
je 0x1400c0382
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xc3630]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1400c0332
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1400c037c
mov qword [rbx], rax
add rbx, 8
jmp 0x1400c0352
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1400c03bc
cmp al, 0xef
ja 0x1400c03ae
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400c038e
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400c039d
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x23f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400c0410
sub rsp, 0xffffffffffffff80
jmp 0x14004e254
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400097b0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400097c0]
mov dword [rax], 1
mov rax, qword [0x1400097d0]
mov dword [rax], 1
mov rax, qword [0x140009740]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400097a0]
mov dword [0x14000c00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140009880]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140009860]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x1400096f0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x1400014a4
Capabilities:
Execute command

Disassembly:
push rbp
sub rsp, 0x110
lea rbp, [rsp + 0x80]
call sym.__main
lea rax, [rbp - 0x60]
lea rdx, section..data
mov ecx, 0xe8
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov dword [rbp + 0x8c], 0
jmp 0x14000154a
mov dword [rbp + 0x88], 0
jmp 0x14000153a
lea rax, [rbp - 0x60]
mov edx, dword [rbp + 0x88]
movsxd rdx, edx
mov ecx, dword [rbp + 0x8c]
movsxd rcx, ecx
add rcx, rcx
add rdx, rcx
shl rdx, 2
lea rcx, [rax + rdx]
mov edx, dword [rbp + 0x88]
mov eax, dword [rbp + 0x8c]
mov r9, rcx
mov r8d, edx
mov edx, eax
lea rax, str.s__d___d____d_n
mov rcx, rax
call sym.printf
add dword [rbp + 0x88], 1
cmp dword [rbp + 0x88], 1
jle 0x1400014ec
add dword [rbp + 0x8c], 1
cmp dword [rbp + 0x8c], 0x1c
jle 0x1400014e0
lea rax, str.pause
mov rcx, rax
call sym.system
mov eax, 0
add rsp, 0x110
pop rbp
ret

Function at 0x140001830
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]