joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140078834
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14006b65c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14006b65c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140078981
cmp rax, 0xffffffffffffffff
je 0x140078981
xor edi, edi
test rbp, rbp
jle 0x14007892f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14006cec0
mov rbx, rax
test rax, rax
jne 0x1400788bc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140078925
mov edx, 0x8000
mov ecx, r14d
call fcn.14006a498
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14006e4d0
cmp eax, 0xffffffff
je 0x140078905
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400788cc
mov edx, r15d
mov ecx, r14d
call fcn.14006a498
jmp 0x140078925
cmp byte [rsi + 0x38], dil
je 0x14007891c
cmp dword [rsi + 0x34], 5
jne 0x14007891c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140078925
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14006cf40
jmp 0x140078993
jns 0x140078993
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14006b65c
cmp rax, 0xffffffffffffffff
jne 0x14007894d
cmp byte [rsi + 0x30], dil
je 0x140078993
jmp 0x140078989
mov ecx, r14d
call fcn.140073fa0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140078993
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140078993
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14007898e
mov edi, dword [rsi + 0x2c]
jmp 0x140078993
mov edi, 0x16
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14006b65c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140079840
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140079868
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140079868
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000aa10]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000aa20]
mov dword [rax], 1
mov rax, qword [0x14000aa30]
mov dword [rax], 1
mov rax, qword [0x14000a970]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000aa00]
mov dword [0x14000d00c], 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 [0x14000aae0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x14000aac0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x14000a950]
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 0x14000151c
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push rbp
sub rsp, 0x1e0
lea rbp, [rsp + 0x80]
lea rax, [rbp - 0x60]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
test eax, eax
je 0x140001564
mov rax, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rax
mov edx, eax
lea rax, str.Falha_no_WSAStartup._Cdigo_de_erro:__d_n
mov rcx, rax
call sym.printf
jmp 0x1400016a2
mov r8d, 0
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov dword [rbp + 0x15c], eax
cmp dword [rbp + 0x15c], 0
jns 0x1400015ab
mov rax, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rax
mov edx, eax
lea rax, str.Erro_ao_abrir_socket:__d_n
mov rcx, rax
call sym.printf
jmp 0x1400016a2
mov word [rbp + 0x140], 2
mov dword [rbp + 0x144], 0
mov ecx, 0x115c
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp + 0x142], ax
mov eax, dword [rbp + 0x15c]
cdqe
lea rdx, [rbp + 0x140]
mov r8d, 0x10
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_bind]
call rax
test eax, eax
jns 0x140001628
mov rax, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rax
mov edx, eax
lea rax, str.Erro_ao_fazer_bind_na_porta_4444:__d_n
mov rcx, rax
call sym.printf
mov eax, dword [rbp + 0x15c]
cdqe
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
jmp 0x1400016a2
mov eax, dword [rbp + 0x15c]
cdqe
mov edx, 5
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_listen]
call rax
test eax, eax
jns 0x140001675
mov rax, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rax
mov edx, eax
lea rax, str.Erro_ao_ouvir_na_porta_4444:__d_n
mov rcx, rax
call sym.printf
mov eax, dword [rbp + 0x15c]
cdqe
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
jmp 0x1400016a2
lea rax, str.Porta_4444_aberta_e_aguardando_conexes_n
mov rcx, rax
call sym.printf
mov eax, dword [rbp + 0x15c]
cdqe
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
nop
add rsp, 0x1e0
pop rbp
ret
Function at 0x1400016ab
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Resolve dns

Disassembly:
push rbp
sub rsp, 0x1e0
lea rbp, [rsp + 0x80]
lea rax, [rbp - 0x60]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
test eax, eax
je 0x1400016f3
mov rax, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rax
mov edx, eax
lea rax, str.Falha_no_WSAStartup._Cdigo_de_erro:__d_n
mov rcx, rax
call sym.printf
jmp 0x14000185f
lea rax, str.malware.com.br
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_gethostbyname]
call rax
mov qword [rbp + 0x158], rax
cmp qword [rbp + 0x158], 0
jne 0x14000172b
lea rax, str.Erro:_Domnio_no_encontrado_n
mov rcx, rax
call sym.printf
jmp 0x14000185f
mov r8d, 0
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov dword [rbp + 0x154], eax
cmp dword [rbp + 0x154], 0
jns 0x140001772
mov rax, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rax
mov edx, eax
lea rax, str.Erro_ao_abrir_socket:__d_n
mov rcx, rax
call sym.printf
jmp 0x14000185f
lea rax, [rbp + 0x140]
mov r8d, 0x10
mov edx, 0
mov rcx, rax
call sym.memset
mov word [rbp + 0x140], 2
mov rax, qword [rbp + 0x158]
movzx eax, word [rax + 0x12]
movsx rcx, ax
mov rax, qword [rbp + 0x158]
mov rax, qword [rax + 0x18]
mov rdx, qword [rax]
lea rax, [rbp + 0x140]
add rax, 4
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov ecx, 0x50
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp + 0x142], ax
mov eax, dword [rbp + 0x154]
cdqe
lea rdx, [rbp + 0x140]
mov r8d, 0x10
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
test eax, eax
jns 0x140001832
mov rax, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rax
mov edx, eax
lea rax, str.Erro_ao_conectar_ao_domnio_malware.com.br:__d_n
mov rcx, rax
call sym.printf
mov eax, dword [rbp + 0x154]
cdqe
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
jmp 0x14000185f
lea rax, str.Conexo_estabelecida_com_o_domnio_malware.com.br_n
mov rcx, rax
call sym.printf
mov eax, dword [rbp + 0x154]
cdqe
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
nop
add rsp, 0x1e0
pop rbp
ret

Function at 0x140001be0
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]
Function at 0x140001c50
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000d094]
test esi, esi
mov rbx, rcx
jle 0x140001d80
mov rax, qword [0x14000d098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001c9b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001d25
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001c80
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x140001da2
mov rax, qword [0x14000d098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000d098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001d87
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001d1e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001d30
add dword [0x14000d094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x14000d098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001d1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001ca8
mov rax, qword [0x14000d098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002310
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000d100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000d0e0]
test rbx, rbx
je 0x14000236c
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 0x140002363
test rsi, rsi
je 0x140002363
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002348
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 0x140002580
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop

Function at 0x140002590
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
Function at 0x1400025a0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400025b8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400025c0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400025d0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx r8d, word [rcx + 6]
movzx eax, word [rcx + 0x14]
test r8w, r8w
lea rax, [rcx + rax + 0x18]
je 0x14000261d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rdx, r8
mov rcx, r8
jb 0x140002614
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000261f
add rax, 0x28
cmp rax, r9
jne 0x140002600
xor eax, eax
ret

Function at 0x140002620
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400026b0
mov rdx, qword [0x14000a970]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000269e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000269e
cmp word [rax + 0x18], 0x20b
jne 0x14000269e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400026b0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002689
add rbx, 0x28
cmp rbx, rdi
je 0x1400026b0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002680
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x1400026c0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140002740
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a970]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000275f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002768
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000275f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140002780
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000a970]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400027a0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400027a8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400027a0
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x1400027f0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400027e7
test rcx, rcx
je 0x1400027a0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400027d8
xor eax, eax
ret

Function at 0x140002800
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a970]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000281f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002828
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002840
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000a970]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002860
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002868
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002860
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x140002860
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x1400028b4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400028c0
add rdx, 0x28
cmp r9, rdx
jne 0x1400028a0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x1400028d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14000a970]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400028f2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002900
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400028f2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400028f2
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x1400028f2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov r8, r9
jb 0x140002955
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002968
add rdx, 0x28
cmp rdx, r10
jne 0x140002940
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002977
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002987
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000295e
test ecx, ecx
jg 0x140002970
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1400029e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x138
mov rbx, rcx
call sym._errno
test rbx, rbx
mov dword [rax], 0
je 0x140002b20
cmp byte [rbx], 0
je 0x140002ae8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140002b30
test al, 0x10
je 0x140002ae8
lea rdi, [rsp + 0x20]
mov rdx, rbx
mov r8d, 0x104
mov rcx, rdi
call sym._fullpath
mov rcx, rdi
call sym.strlen
lea rcx, [rax + 0x24b]
mov rsi, rax
call sym.malloc
test rax, rax
mov rbx, rax
je 0x140002b3f
lea rbp, [rsi + 1]
mov rdx, rdi
lea rcx, [rax + 0x244]
mov r8, rbp
call sym.memcpy
cmp byte [rbx + 0x244], 0
mov rcx, rax
je 0x140002a90
movzx eax, byte [rbx + rsi + 0x243]
cmp al, 0x5c
je 0x140002a90
cmp al, 0x2f
jne 0x140002b08
lea rdx, [rbx + 0x130]
mov eax, 0x2a
mov word [rcx + rsi], ax
mov rdi, rdx
xor eax, eax
mov ecx, 0x20
mov qword [rbx + 0x238], 0xffffffffffffffff
mov dword [rbx + 0x240], 0
mov qword [rbx + 0x128], 0
rep stosq qword [rdi], rax
mov rax, rbx
mov dword [rdi], 0
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sym._errno
xor ebx, ebx
mov dword [rax], 0x14
mov rax, rbx
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov edx, 0x5c
mov word [rcx + rsi], dx
mov rsi, rbp
jmp 0x140002a90
call sym._errno
xor ebx, ebx
mov dword [rax], 0xe
jmp 0x140002af5
call sym._errno
xor ebx, ebx
mov dword [rax], 2
jmp 0x140002af5
call sym._errno
xor ebx, ebx
mov dword [rax], 0xc
jmp 0x140002af5
Function at 0x140017342
Capabilities:
Identify system language via api

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov dword [rbp + 0x10], ecx
mov qword [rbp - 8], 0
mov eax, dword [rbp + 0x10]
cdqe
mov rcx, rax
call fcn.14008e5d0
call fcn.14008e260
mov qword [rbp - 0x20], 0
call fcn.14008e4b0
call fcn.14008e4b0
call sub.KERNEL32.dll_GetUserDefaultLangID
mov qword [rbp - 0x10], rax
call fcn.14008e4e0
mov edx, eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.14008c460
call fcn.14008e4e0
mov edx, eax
lea rax, [rbp - 0x20]
mov rcx, rax
call fcn.14008e190
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.14008c640
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 3
jne 0x1400173f4
call fcn.14008e4b0
lea rax, [0x1409a1f00]
mov rcx, rax
call fcn.14008e2b0
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.14008e2b0
call fcn.14008e4e0
mov edx, eax
lea rax, [rbp - 0x20]
mov rcx, rax
call fcn.14008e190
jmp 0x1400173f5
nop
call fcn.14008e4b0
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.14008e2b0
call fcn.14008e5a0
mov qword [rbp - 8], rax
nop
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.14008e440
mov rax, qword [rbp - 8]
add rsp, 0x40
pop rbp
ret
Function at 0x14003240a
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp - 8], 0
mov eax, dword [rbp + 0x18]
cdqe
mov rcx, rax
call fcn.14008e5d0
call fcn.14008e260
mov rax, qword [rbp + 0x10]
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.14008e320
mov qword [rbp - 0x70], 0
mov qword [rbp - 0x78], 0
mov qword [rbp - 0x10], 0
call fcn.14008e4b0
call fcn.14008e4b0
call fcn.14008e4e0
mov edx, eax
mov ecx, 0x3e8
call fcn.14008d070
call fcn.14008e4e0
mov edx, eax
lea rax, [rbp - 0x70]
mov rcx, rax
call fcn.14008e190
mov rax, qword [rbp - 0x70]
mov qword [rbp - 0x18], rax
lea rax, str.WINDIR
mov rdx, qword [rbp - 0x18]
mov r8d, 0x3e8
mov rcx, rax
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x78]
lea rdx, [0x1409c7260]
mov rcx, rax
call fcn.14008e390
call fcn.14008e4b0
call fcn.14008e4b0
mov rax, qword [rbp - 0x70]
mov rcx, rax
call fcn.14008e2b0
lea rax, str.System32
mov rcx, rax
call fcn.14008e2b0
call fcn.14008e460
call fcn.14008e4b0
lea rax, str.__c
mov rcx, rax
call fcn.14008e2b0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.14008e2b0
call fcn.14008e460
call fcn.14008e4b0
mov rax, qword [rbp - 0x70]
mov rcx, rax
call fcn.14008e2b0
lea rax, str.System32cmd.exe
mov rcx, rax
call fcn.14008e2b0
call fcn.14008e5a0
mov qword [rbp - 0x28], rax
call fcn.14008e5a0
mov qword [rbp - 0x30], rax
call fcn.14008e5a0
mov qword [rbp - 0x38], rax
mov rcx, qword [rbp - 0x38]
mov rdx, qword [rbp - 0x30]
mov rax, qword [rbp - 0x28]
mov r9d, SafeArrayGetElemsize
mov r8, rcx
mov rcx, rax
call fcn.14007a444
mov qword [rbp - 0x40], rax
call fcn.14008e530
mov rax, qword [rbp - 0x40]
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140032662
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.140079d88
mov qword [rbp - 0x48], rax
cmp qword [rbp - 0x48], 0
je 0x14003264f
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.14007992c
mov qword [rbp - 0x50], rax
cmp qword [rbp - 0x50], 0
je 0x140032649
call fcn.14008e4b0
mov rax, qword [rbp - 0x78]
mov rcx, rax
call fcn.14008e2b0
call fcn.14008e4b0
call fcn.14008e4b0
call fcn.14008e4b0
call fcn.14008e4b0
call fcn.14008e4e0
mov edx, eax
mov rax, qword [rbp - 0x10]
mov r8d, edx
mov edx, SafeArrayPutElement
mov rcx, rax
call fcn.140079e64
call fcn.14008e5a0
mov qword [rbp - 0x58], rax
call fcn.14008e4e0
mov edx, eax
mov rax, qword [rbp - 0x58]
mov rcx, rax
call fcn.1400149fd
mov qword [rbp - 0x60], rax
call fcn.14008e4e0
lea rax, [0x1409be1f0]
mov rcx, rax
call fcn.14008e2b0
call fcn.14008e4e0
mov edx, eax
lea rax, [rbp - 0x78]
mov rcx, rax
call fcn.14008e190
jmp 0x140032587
nop
jmp 0x140032587
nop
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.140079964
mov qword [rbp - 0x68], rax
jmp 0x140032663
nop
call fcn.14008e4b0
mov rax, qword [rbp - 0x78]
mov rcx, rax
call fcn.14008e2b0
call fcn.14008e5a0
mov qword [rbp - 8], rax
nop
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.14008e440
mov rax, qword [rbp - 0x70]
mov rcx, rax
call fcn.14008e440
mov rax, qword [rbp - 0x78]
mov rcx, rax
call fcn.14008e440
mov rax, qword [rbp - 8]
add rsp, 0xa0
pop rbp
ret
Function at 0x140037b38
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
mov qword [rbp - 8], 0
call fcn.14008e260
mov qword [rbp - 0x58], 0
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x18], 0
lea rax, str.Kernel32
mov rcx, rax
call sub.KERNEL32.dll_GetModuleHandleW
mov qword [rbp - 0x20], rax
lea rdx, str.GetCurrentProcessId
mov rax, qword [rbp - 0x20]
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov qword [rbp - 0x18], rax
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, rdx
mov r8d, 0
mov edx, 0
mov rcx, rax
call sub.KERNEL32.dll_CreateRemoteThread
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x30]
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x140037bf4
mov qword [rbp - 8], 0
jmp 0x140037c41
nop
mov rax, qword [rbp - 0x10]
mov rdx, 0xffffffffffffffff
mov rcx, rax
call sub.KERNEL32.dll_WaitForSingleObject
mov qword [rbp - 0x38], rax
lea rax, [rbp - 0x58]
mov qword [rbp - 0x40], rax
mov rdx, qword [rbp - 0x40]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.KERNEL32.dll_GetExitCodeThread
mov qword [rbp - 0x48], rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.KERNEL32.dll_CloseHandle
mov qword [rbp - 0x50], rax
mov rax, qword [rbp - 0x58]
mov qword [rbp - 8], rax
nop
mov rax, qword [rbp - 8]
add rsp, 0xa0
pop rbp
ret