joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140095ae0
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x140095c88
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 0x140095b45
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x140095b45
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140095b45
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 0x140095b7c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x140095bd2
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140095bd2
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140095bd2
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140095bd2
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140095bd2
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.140095590
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 0x140095c34
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140071d10
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.140095960
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 0x140095c80
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140071d10
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400973f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140127a00]
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 0x140097485
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 0x1400974e6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140071d10
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.1400aaaf0
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 0x1400975a1
sub ecx, 1
je 0x140097614
sub ecx, 1
je 0x140097550
cmp ecx, 1
je 0x140097533
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400b069c]
call fcn.140071d10
jmp 0x140097614
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.140097120
test eax, eax
je 0x140097614
jmp 0x1400974ba
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 0x140097614
sub rax, rsi
cmp rax, rbp
jae 0x140097614
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.140071e90
jmp 0x140097614
cmp r8d, 4
jle 0x140097614
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 0x140097614
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140071c30
mov esi, eax
test eax, eax
je 0x1400975f3
mov edx, 5
mov rcx, rbx
call fcn.1400980e0
mov eax, esi
jmp 0x1400974ba
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.140080510
mov rcx, r14
call fcn.1400807f0
test eax, eax
je 0x1400974b8
mov edx, 5
mov rcx, rbx
call fcn.1400980e0
mov eax, Ordinal_45
jmp 0x1400974ba
Function at 0x1400aa3b0
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 0x1400aa3f2
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 0x1400aa439
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 0x1400aa492
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 0x1400aa450
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400aa4d3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400c4792]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400c4793]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400aa4a0
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 0x1400aa5c8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400aa602
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400aa607
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400aa650
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1400aa650
dec r8
sub rdx, 1
jne 0x1400aa636
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400ab8cc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400ab916
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400ab916
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400ab916
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400ab916
cmp dword [rcx + 0x84], 0xe
jbe 0x1400ab916
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400ab918
xor al, al
add rsp, 0x28
ret
Function at 0x140001000
Capabilities:
Delete registry value
Disable windows defender features via registry on windows
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x40], rax
movzx ebx, cl
lea rax, [rsp + 0x30]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
lea rdx, str.SOFTWAREPoliciesMicrosoftWindows_Defender
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x14000111e
mov rcx, qword [rsp + 0x30]
lea rdx, str.DisableAntiSpyware
test bl, bl
je 0x140001095
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, eax
test eax, eax
jne 0x14000108c
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Windows_Defender_ativado_com_sucesso._Reinicie_o_computador_para_aplicar_as_mudanas._n
call fcn.1400012c0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000114b
lea rdx, str.Erro_ao_ativar_Windows_Defender:
jmp 0x1400010eb
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x38], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jne 0x1400010e4
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Windows_Defender_desativado_com_sucesso._Reinicie_o_computador_para_aplicar_as_mudanas._n
call fcn.1400012c0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000114b
lea rdx, str.Erro_ao_desativar_Windows_Defender:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400012c0
mov edx, ebx
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int____ptr64]
mov rcx, rax
lea rdx, [0x1400033d8]
call fcn.1400012c0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000114b
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Erro_ao_abrir_chave_de_registro:
call fcn.1400012c0
mov rcx, rax
mov edx, edi
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int____ptr64]
mov rcx, rax
lea rdx, [0x1400033d8]
call fcn.1400012c0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400014a0
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x140008b30
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x14003a040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rcx
mov qword [rsp + 0x48], rcx
xor r13d, r13d
mov dword [rsp + 0x20], r13d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx], r13
mov qword [rcx + 8], r13
mov qword [rcx + 0x10], r13
mov dword [rsp + 0x20], 1
mov rsi, qword [rdx]
mov r12, qword [rdx + 8]
mov qword [rsp + 0x28], r12
cmp rsi, r12
je 0x140008d67
movabs rdx, 0x2aaaaaaaaaaaaaab
mov ebp, 0x5a4d
cmp qword [rsi], 5
jne 0x140008d5a
mov rcx, qword [rbx + 8]
sub rcx, qword [rbx]
mov rax, rdx
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
jne 0x140008d67
mov edi, r13d
cmp qword [rsi + 0x18], rdi
jbe 0x140008d19
mov r12d, 0x4550
nop
mov r15d, edi
shl r15d, 0xc
mov r14, qword [rsi + 8]
add r14, r15
mov rcx, qword [0x14003be80]
mov rax, qword [rcx]
mov r9d, 2
lea r8, [rsp + 0x50]
mov rdx, r14
call qword [rax + 0x18]
test eax, eax
jne 0x140008c18
mov word [rsp + 0x50], r13w
jmp 0x140008d06
cmp word [rsp + 0x50], bp
jne 0x140008d06
mov rcx, qword [0x14003be80]
mov rax, qword [rcx]
lea rdx, [r14 + 0x3c]
mov r9d, 4
lea r8, [rsp + 0x58]
call qword [rax + 0x18]
test eax, eax
jne 0x140008c4c
mov eax, r13d
mov dword [rsp + 0x58], eax
jmp 0x140008c50
mov eax, dword [rsp + 0x58]
mov ebp, eax
add rbp, r14
mov rcx, qword [0x14003be80]
mov rax, qword [rcx]
mov r9d, 2
lea r8, [rsp + 0x54]
mov rdx, rbp
call qword [rax + 0x18]
test eax, eax
jne 0x140008c7f
mov word [rsp + 0x54], r13w
jmp 0x140008d01
cmp word [rsp + 0x54], r12w
jne 0x140008d01
mov rcx, qword [rsi + 0x10]
add rcx, r15
mov qword [rsp + 0x30], rcx
mov rcx, qword [rsi + 8]
add rcx, r15
mov qword [rsp + 0x38], rcx
mov rcx, qword [0x14003be80]
mov rax, qword [rcx]
lea rdx, [rbp + 0x50]
mov r9d, 4
lea r8, [rsp + 0x5c]
call qword [rax + 0x18]
test eax, eax
jne 0x140008cc8
mov eax, r13d
mov dword [rsp + 0x5c], eax
jmp 0x140008ccc
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x40], eax
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x140008cf4
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdx], xmm0
movsd xmm1, qword [rsp + 0x40]
movsd qword [rdx + 0x10], xmm1
add qword [rbx + 8], 0x18
jmp 0x140008d01
lea r8, [rsp + 0x30]
mov rcx, rbx
call fcn.140008e20
mov ebp, 0x5a4d
inc edi
mov eax, edi
cmp rax, qword [rsi + 0x18]
jb 0x140008be0
mov r12, qword [rsp + 0x28]
mov r9, qword [rbx + 8]
mov r8, qword [rbx]
mov rcx, r9
sub rcx, r8
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 4
movabs rdx, 0x2aaaaaaaaaaaaaab
jae 0x140008d5a
cmp r8, r9
je 0x140008d5a
mov qword [rbx + 8], r8
add rsi, 0x28
cmp rsi, r12
jne 0x140008ba0
mov rax, rbx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14000ee00
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000fab0
Capabilities:
Parse pe header

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

Function at 0x140017fd4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140028700
sub rsp, rax
mov rax, qword [0x14003a040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001ca94
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140018023
mov rax, rbp
jmp 0x14001812f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x3b6f0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001ee88
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3b6f0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001812b
mov dword [rsp + 0x30], edi
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + r12*8 + 0x28]
lea rdx, [rsp + 0x40]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001812b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001ee88
test rax, rax
js 0x14001812b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001812b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001811d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001811d
cmp byte [rcx], 0xd
jne 0x140018103
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140018112
cmp byte [rcx + 1], 0xa
jne 0x140018112
inc rcx
jmp 0x140018112
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3a3a0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400180e5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001812f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000ee00
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140018c10
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140018c7f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140018c7f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140018c7f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140018c7f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140018c7f
cmp dword [rcx + 0x84], 0xe
jbe 0x140018c7f
cmp dword [rcx + 0xf8], 0
je 0x140018c7f
mov ecx, ebx
call fcn.140018d24
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140018b18
nop
cmp dword [rbp + 0x20], 0
jne 0x140018ce0
call fcn.14001facc
cmp eax, 1
jne 0x140018cd0
xor dl, dl
jmp 0x140018cda
call fcn.14001fa98
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x140018ceb
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140018cf4
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140018c10

Function at 0x140018df8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140018c10
Function at 0x14001ea44
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001ea5a
mov al, 1
jmp 0x14001eac6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001ea6b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001eac4
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400223d4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001eac4
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001eac4
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001eac4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001eac6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001ef34
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
xor edi, edi
mov rax, r15
lea rcx, [0x14003b6f0]
and eax, 0x3f
mov r12, r15
sar r12, 6
mov rsi, rdx
lea r9d, [rdi + 0xa]
mov r14, r15
lea rbp, [rax + rax*8]
mov rax, qword [rcx + r12*8]
mov r10, qword [rax + rbp*8 + 0x28]
test r8, r8
je 0x14001ef8a
cmp word [rdx], r9w
jne 0x14001ef8a
or byte [rax + rbp*8 + 0x38], 4
jmp 0x14001ef8f
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x14001f10e
mov r11d, 0xd
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x14001f0d9
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x14001efd7
cmp rcx, r8
jae 0x14001eff7
cmp word [rcx], r9w
jne 0x14001efd7
add rax, 4
mov edx, r9d
jmp 0x14001efda
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x14001efac
jmp 0x14001f10e
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], di
mov r8d, r13d
mov dword [rsp + 0x80], edi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001f0d2
cmp dword [rsp + 0x80], edi
je 0x14001f0d2
lea r9, [0x14003b6f0]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x14001f0ac
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x14001f05f
mov word [rbx], bp
jmp 0x14001f10b
mov word [rsp + 0x78], ax
mov rdx, r14
mov rax, r14
sar rdx, 6
and eax, 0x3f
mov word [rbx], 0xd
lea r8, [rax + rax*8]
mov rax, qword [r9 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, r13
jl 0x14001f07a
mov rax, r14
sar rax, 6
and r14d, 0x3f
mov rax, qword [r9 + rax*8]
lea rcx, [r14 + r14*8]
mov byte [rax + rcx*8 + 0x3c], bpl
jmp 0x14001f10b
cmp word [rsp + 0x70], bp
jne 0x14001f0b8
cmp rbx, rsi
je 0x14001f057
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001ee90
cmp word [rsp + 0x70], bp
je 0x14001f10e
mov word [rbx], 0xd
jmp 0x14001f10b
mov rcx, r15
lea r9, [0x14003b6f0]
and ecx, 0x3f
mov rax, r15
sar rax, 6
lea r8, [rcx + rcx*8]
mov rcx, qword [r9 + rax*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14001f108
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14001f10e
mov word [rbx], dx
add rbx, r13
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140021508
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140021538
xor eax, eax
jmp 0x1400215fb
mov rbp, rbx
cmp word [rax], si
je 0x14002155d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140021544
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140021540
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140021428
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x14002159e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140021531
call fcn.14001b040
mov rdi, rax
test rax, rax
jne 0x1400215b4
xor ecx, ecx
call fcn.14001a380
jmp 0x140021593
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140021428
test eax, eax
jne 0x1400215e5
mov rcx, rdi
call fcn.14001a380
jmp 0x1400215ef
xor ecx, ecx
call fcn.14001a380
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret