joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18002a500
Capabilities:
Create directory

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x70
lea rbp, [rsp + 0x70]
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x18]
call fcn.180032eb0
mov rax, qword [rbp - 0x18]
mov rsi, qword [rbp - 0x10]
mov rcx, rax
neg rcx
jo 0x18002a55b
mov rcx, qword [rbp - 8]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rsi
mov qword [rbp - 0x20], rcx
lea rcx, [rbp - 0x48]
lea rdx, [rbp - 0x30]
mov r8b, 1
call fcn.1800342b0
mov rdi, qword [rbp - 0x48]
mov rsi, qword [rbp - 0x40]
mov rax, rdi
neg rax
jno 0x18002a566
mov rax, rsi
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x18002a592
test rdi, rdi
je 0x18002a5be
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.18000ce60
xor eax, eax
jmp 0x18002a55e
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
test rdi, rdi
je 0x18002a55e
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
mov rsi, rax
call fcn.18000ce60
jmp 0x18002a55b
xor eax, eax
jmp 0x18002a55e

Function at 0x18002ae20
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rax, qword [rbp + 0x70]
mov qword [rbp - 8], r9
lea rcx, [rbp]
mov qword [rbp], rax
movups xmm0, xmmword [0x1800ac368]
movaps xmmword [rbp + 0x10], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xor r8d, r8d
test r9b, 1
cmove rcx, r8
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x18002aeaf
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp + 0x10]
cmp eax, 0xc0000011
jne 0x18002aebc
xor edx, edx
xor eax, eax
jmp 0x18002aee6
cmp eax, 0x103
je 0x18002aef0
test eax, eax
js 0x18002aecf
mov rdx, qword [rbp + 0x18]
xor eax, eax
jmp 0x18002aee6
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb8
pop rsi
pop rbp
ret
mov dword [rbp + 0x28], 0
mov byte [rbp + 0x2c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x30]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x28]
lea rdx, [rbp - 0x38]
call fcn.1800222b0
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.180019dd0
mov ecx, 7
int 0x29
ud2
Function at 0x18002af40
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rax, qword [rbp + 0x70]
mov qword [rbp - 8], r9
lea rcx, [rbp]
mov qword [rbp], rax
movups xmm0, xmmword [0x1800ac368]
movaps xmmword [rbp + 0x10], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xor r8d, r8d
test r9b, 1
cmove rcx, r8
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x18002afd6
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp + 0x10]
cmp eax, 0x103
je 0x18002b003
test eax, eax
js 0x18002afe2
mov rdx, qword [rbp + 0x18]
xor eax, eax
jmp 0x18002aff9
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb8
pop rsi
pop rbp
ret
mov dword [rbp + 0x28], 0
mov byte [rbp + 0x2c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x30]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x28]
lea rdx, [rbp - 0x38]
call fcn.1800222b0
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.180019dd0
mov ecx, 7
int 0x29
ud2

Function at 0x18002b060
Capabilities:
Create udp socket

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov edi, edx
cmp byte [rcx], 0
mov eax, 0x17
mov r14d, 2
cmovne r14d, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
xor ebx, ebx
mov ecx, r14d
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x18002b140
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x18002b0c7
mov esi, eax
cmp eax, 0x2726
jne 0x18002b133
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, r14d
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x18002b12b
mov rsi, rax
xor ebx, ebx
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x18002b140
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, 1
mov rsi, rdi
jmp 0x18002b140
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov ebx, 1
mov rax, rbx
mov rdx, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x18002b700
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp], 0xfffffffffffffffe
mov rbx, rdx
mov qword [rbp - 8], rcx
movzx r15d, byte [rdx + 0x18]
mov byte [rdx + 0x18], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 2
mov qword [rbp - 0x10], 0
mov r12, qword [rdx + 8]
movzx esi, word [rdx + 0x10]
mov eax, 2
xor edi, edi
xor r13d, r13d
jmp 0x18002b76c
mov word [rax + rdi*2], r14w
inc rdi
mov qword [rbp - 0x10], rdi
mov rdx, qword [rbx]
mov r14d, esi
test si, si
jne 0x18002b810
nop dword [rax + rax]
cmp rdx, r12
je 0x18002b8cf
lea rcx, [rdx + 1]
mov qword [rbx], rcx
movzx r9d, byte [rdx]
movzx r14d, r9b
test r14b, r14b
jns 0x18002b83a
mov r8d, r14d
and r8d, 0x1f
lea rcx, [rdx + 2]
mov qword [rbx], rcx
movzx r10d, byte [rdx + 1]
and r10d, 0x3f
cmp r14b, 0xdf
jbe 0x18002b830
lea rcx, [rdx + 3]
mov qword [rbx], rcx
movzx r14d, byte [rdx + 2]
shl r10d, 6
and r14d, 0x3f
or r14d, r10d
cmp r9b, 0xf0
jb 0x18002b858
lea rcx, [rdx + 4]
mov qword [rbx], rcx
movzx edx, byte [rdx + 3]
and r8d, 7
shl r8d, 0x12
shl r14d, 6
and edx, 0x3f
or edx, r14d
or edx, r8d
mov r14d, edx
cmp r14d, 0xffff
jbe 0x18002b83a
jmp 0x18002b868
mov word [rbx + 0x10], 0
xor esi, esi
cmp r14w, 0x22
je 0x18002b846
jmp 0x18002b8a0
shl r8d, 6
or r8d, r10d
mov r14d, r8d
xor esi, esi
mov rdx, rcx
cmp r14w, 0x22
jne 0x18002b8a0
xor r13b, 1
mov r14d, esi
test si, si
je 0x18002b780
jmp 0x18002b810
shl r8d, 0xc
or r14d, r8d
cmp r14d, 0xffff
jbe 0x18002b83a
lea r8d, [r14 + 0xff0000]
shr r8d, 0xa
or r8d, 0xd800
and r14d, 0x3ff
or r14d, 0xdc00
mov word [rbx + 0x10], r14w
mov rdx, rcx
mov esi, r14d
mov r14d, r8d
cmp r14w, 0x22
je 0x18002b846
nop dword [rax]
movzx ecx, r14w
cmp ecx, 0x3b
jne 0x18002b8af
test r13b, 1
je 0x18002b8cb
cmp rdi, qword [rbp - 0x20]
jne 0x18002b760
lea rcx, [rbp - 0x20]
call fcn.18001e340
mov rax, qword [rbp - 0x18]
jmp 0x18002b760
mov byte [rbx + 0x18], 1
test rdi, rdi
setne al
or r15b, al
je 0x18002b908
mov rdx, qword [rbp - 0x18]
lea rcx, [rbp - 0x40]
mov r8, rdi
call fcn.180022dd0
movups xmm0, xmmword [rbp - 0x40]
movups xmm1, xmmword [rbp - 0x30]
mov rax, qword [rbp - 8]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov rdx, qword [rbp - 0x20]
test rdx, rdx
jne 0x18002b922
jmp 0x18002b934
movabs rax, 0x8000000000000000
mov rcx, qword [rbp - 8]
mov qword [rcx], rax
mov rdx, qword [rbp - 0x20]
test rdx, rdx
je 0x18002b934
mov rcx, qword [rbp - 0x18]
add rdx, rdx
mov r8d, 2
call fcn.18000ce60
mov rax, qword [rbp - 8]
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x18002c540
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov eax, 0xffffffff
cmp r8, rax
cmovae r8, rax
mov dword [rbp - 4], 0
xorps xmm0, xmm0
movaps xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], 0
lea rax, [rbp - 4]
mov qword [rbp - 0x18], rax
mov rcx, qword [rcx]
lea rax, [0x18002c620]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x18002c5cf
mov rsi, qword [sym.imp.KERNEL32.dll_SleepEx]
nop dword [rax]
mov ecx, 0xffffffff
mov edx, 1
call rsi
cmp dword [rbp - 4], 1
jne 0x18002c5a0
mov eax, dword [rbp]
mov esi, dword [rbp + 4]
mov rcx, rax
shl rcx, 0x20
or rcx, 2
test eax, eax
cmovne rsi, rcx
jne 0x18002c5e2
xor eax, eax
jmp 0x18002c612
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rcx, rsi
mov eax, ecx
and eax, 3
shr rcx, 0x20
cmp eax, 2
jne 0x18002c602
call case.0x1800252f7.244
xor ecx, ecx
cmp al, 0xb
setne al
cmove rsi, rcx
jmp 0x18002c612
cmp rcx, 0xb
setne al
xor edx, edx
cmp ecx, 0xb
cmove rsi, rdx
movzx eax, al
mov rdx, rsi
add rsp, 0x68
pop rsi
pop rbp
ret
Function at 0x180031140
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x90
in al, dx
nop
add byte [rax], al
invalid
lea rbp, [rsp + 0x80]
mov qword [rbp + 8], 0xfffffffffffffffe
dec dword [rax - 0x77]
invalid
lea rcx, [rbp - 0x40]
call fcn.180032eb0
mov rax, qword [rbp - 0x40]
mov rdi, qword [rbp - 0x38]
mov rcx, rax
neg rcx
jno 0x18003118d
invalid
mov qword [rbp - 0x20], rdi
movabs rax, 0x8000000000000000
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x28], eax
jmp 0x1800311ba
mov rcx, qword [rbp - 0x30]
mov qword [rbp - 0x58], rax
invalid
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], rcx
lea rcx, [rbp - 0x28]
fmul dword [r8 - 0x73]
push rbp
test al, 0xe8
xchg esi, eax
invalid
invalid
dec dword [rax - 0x75]
pop rbp
fmul dword [rax - 0x75]
jge 0x180031192
mov rax, rbx
neg rax
jno 0x180031233
mov eax, edi
and eax, 3
cmp eax, 1
jne 0x180031218
lea rax, [rdi - 1]
mov qword [rbp - 0x10], rax
mov rax, qword [rdi - 1]
invalid
mov qword [rbp - 8], rax
mov rax, qword [rdi + 7]
mov qword [rbp], rax
mov rax, qword [rax]
test rax, rax
je 0x1800311ea
mov rcx, qword [rbp - 8]
call rax
mov rcx, qword [rbp - 8]
mov rax, qword [rbp]
mov rdx, qword [rax + 8]
mov edx, dword [rax + 8]
test rdx, rdx
je 0x180031204
mov r8, qword [rax + 0x10]
call fcn.18000ce60
mov edx, 0x18
mov r8d, 8
mov rcx, qword [rbp - 0x10]
call fcn.18000ce60
movabs rax, 0x8000000000000000
mov qword [rsi], rax
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov r14, qword [rbp - 0x18]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180031252
invalid
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r14
jmp 0x180031225
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
je 0x180031225
add rbx, rbx
mov r8d, 2
add byte [rax - 0x77], cl
stc
mov rdx, rbx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp fcn.18000ce60
Function at 0x180033b90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rdi, r8
mov rsi, rcx
mov rcx, qword [rcx + 8]
mov rbx, qword [rsi + 0x10]
xor r14d, r14d
mov eax, 0
cmp rbx, 3
jb 0x180033bfc
movzx r8d, byte [rbx + rcx - 2]
mov r9d, r8d
and r9b, 0xf0
xor r14d, r14d
cmp r9b, 0xa0
jne 0x180033bfc
xor r14d, r14d
cmp byte [rbx + rcx - 3], 0xed
jne 0x180033bfc
movzx r14d, byte [rbx + rcx - 1]
and r8d, 0xf
and r14d, 0x3f
shl r8d, 0x10
shl r14d, 0xa
or r14d, r8d
mov al, 1
cmp rdi, 3
jb 0x180033ca8
cmp byte [rdx], 0xed
jne 0x180033cb1
movzx r12d, byte [rdx + 1]
mov r8d, r12d
and r8b, 0xf0
cmp r8b, 0xb0
setne r8b
xor al, 1
or al, r8b
jne 0x180033cb1
movzx r13d, byte [rdx + 2]
cmp rbx, 3
jb 0x180033c41
add rbx, 0xfffffffffffffffd
mov qword [rsi + 0x10], rbx
and r13d, 0x3f
shl r12d, 6
lea r8, [rdi + 1]
mov rax, qword [rsi]
sub rax, rbx
cmp rax, r8
jb 0x180033d9b
add rdx, 3
mov r15, rdx
and r12d, 0x3c0
or r14d, r13d
or r14d, r12d
add r14d, 0x10000
mov rcx, rsi
mov edx, r14d
call fcn.180026740
add rdi, 0xfffffffffffffffd
mov rax, qword [rsi]
mov rbx, qword [rsi + 0x10]
sub rax, rbx
cmp rax, rdi
jb 0x180033dc0
mov rcx, qword [rsi + 8]
add rcx, rbx
mov rdx, r15
jmp 0x180033d4e
test rdi, rdi
je 0x180033d40
lea rax, [rdx + rdi]
mov r9, rdx
jmp 0x180033cd8
add r9, 2
cmp r8, rax
cmovne r8, r9
nop word cs:[rax + rax]
mov r9, r8
cmp r8, rax
je 0x180033d40
lea r8, [r9 + 1]
movzx r10d, byte [r9]
test r10b, r10b
jns 0x180033cd0
cmp r10b, 0xe0
jb 0x180033cba
cmp r10b, 0xed
jne 0x180033d0f
cmp r8, rax
je 0x180033d40
lea r8, [r9 + 2]
cmp r8, rax
je 0x180033d40
cmp byte [r9 + 1], 0x9f
ja 0x180033d3c
add r9, 3
mov r8, r9
jmp 0x180033cd0
add r9, 2
cmp r8, rax
cmove r9, r8
xor r8d, r8d
cmp r9, rax
setne r8b
add r8, r9
cmp r10b, 0xf0
jb 0x180033cd0
xor r9d, r9d
cmp r8, rax
setne r9b
add r8, r9
jmp 0x180033cd0
mov byte [rsi + 0x18], 0
mov rax, qword [rsi]
sub rax, rbx
cmp rax, rdi
jb 0x180033d6e
add rcx, rbx
mov r8, rdi
call fcn.180052ce0
add rbx, rdi
mov qword [rsi + 0x10], rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov r14, rdx
mov rdx, rbx
mov r8, rdi
call fcn.180054780
mov rdx, r14
mov rcx, qword [rsi + 8]
mov rbx, qword [rsi + 0x10]
jmp 0x180033d4b
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov r15, rdx
mov rdx, rbx
call fcn.180054780
mov rdx, r15
jmp 0x180033c5c
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
call fcn.180054780
mov rbx, qword [rsi + 0x10]
jmp 0x180033c99
Function at 0x180034d40
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x208
lea rbp, [rsp + 0x80]
mov rax, rdx
mov rsi, rcx
mov rdx, qword [rdx]
mov rdi, qword [rax + 8]
movzx eax, word [rax + 0x10]
mov word [rbp + 0x186], ax
mov eax, dword [0x1800da6a0]
cmp eax, 3
jne 0x180034e6f
lea rax, [rbp + 0x186]
mov qword [rbp + 0x170], rax
cmp rdi, 0x17f
ja 0x180034e95
lea rbx, [rbp - 0x60]
mov rcx, rbx
mov r8, rdi
call fcn.180052ce0
mov byte [rbp + rdi - 0x60], 0
inc rdi
lea rcx, [rbp + 0x158]
mov rdx, rbx
mov r8, rdi
call fcn.18003d4d0
test byte [rbp + 0x158], 1
je 0x180034dde
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x180034e60
mov rcx, qword [rbp + 0x160]
xorps xmm0, xmm0
movaps xmmword [rbp + 0x120], xmm0
movaps xmmword [rbp + 0x140], xmm0
movaps xmmword [rbp + 0x130], xmm0
mov dword [rbp + 0x128], 1
mov qword [rbp + 0x178], 0
lea r8, [rbp + 0x120]
lea r9, [rbp + 0x178]
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x180034e41
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x180034e59
mov rax, qword [rbp + 0x178]
movzx ecx, word [rbp + 0x186]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov rax, rsi
add rsp, 0x208
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov rbx, rdx
call fcn.180054a00
mov rdx, rbx
lea rax, [rbp + 0x186]
mov qword [rbp + 0x170], rax
cmp rdi, 0x17f
jbe 0x180034d95
lea r9, [rbp + 0x170]
mov rcx, rsi
mov r8, rdi
call fcn.180054a70
jmp 0x180034e60
Function at 0x180042ff0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov r13, rdx
movzx edx, byte [rcx + 0x10]
cmp dl, 0x80
je 0x18004302a
movzx eax, byte [rcx + 0x1a]
movzx ebx, byte [rcx + 0x1b]
movzx r8d, byte [rcx + 0x19]
mov byte [rbp - 0x40], r8b
mov r8, qword [rcx + 0x11]
mov qword [rbp - 0x48], r8
mov r12, qword [rcx]
mov rsi, qword [rcx + 8]
movzx r15d, byte [rcx + 0x1c]
cmp r15b, 0x80
je 0x180043057
movzx r10d, byte [rcx + 0x26]
movzx r11d, byte [rcx + 0x27]
movzx r8d, byte [rcx + 0x25]
mov byte [rbp], r8b
mov rcx, qword [rcx + 0x1d]
mov qword [rbp - 8], rcx
movzx ecx, byte [rbp - 0x40]
mov byte [rbp - 0x17], cl
mov rcx, qword [rbp - 0x48]
mov qword [rbp - 0x1f], rcx
mov rcx, qword [rbp - 8]
mov qword [rbp - 0x13], rcx
movzx ecx, byte [rbp]
mov byte [rbp - 0xb], cl
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x28], rsi
mov byte [rbp - 0x20], dl
mov byte [rbp - 0x16], al
mov byte [rbp - 0x15], bl
mov byte [rbp - 0x14], r15b
mov byte [rbp - 0xa], r10b
mov byte [rbp - 9], r11b
cmp dl, 0x80
je 0x1800430f2
cmp al, bl
jae 0x1800430ef
mov qword [rbp - 0x38], rsi
mov byte [rbp + 7], r11b
mov byte [rbp + 6], r10b
movzx r14d, bl
mov rdi, qword [r13 + 0x20]
movzx esi, al
mov qword [rbp - 0x50], r13
mov rax, qword [r13 + 0x28]
mov r13, qword [rax + 0x20]
nop
movzx edx, byte [rbp + rsi - 0x20]
mov rcx, rdi
call r13
test al, al
jne 0x18004337d
inc rsi
cmp r14, rsi
jne 0x1800430c0
mov eax, ebx
mov r13, qword [rbp - 0x50]
movzx r10d, byte [rbp + 6]
movzx r11d, byte [rbp + 7]
mov rsi, qword [rbp - 0x38]
mov byte [rbp - 0x16], al
test r12, r12
je 0x180043337
cmp r12, rsi
je 0x180043337
mov rdi, qword [r13 + 0x20]
mov rbx, qword [r13 + 0x28]
mov byte [rbp + 6], r10b
mov byte [rbp + 7], r11b
mov qword [rbp - 0x38], rsi

Function at 0x180048fb0
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 0x18004901f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18004901f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18004901f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18004901f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18004901f
cmp dword [rcx + 0x84], 0xe
jbe 0x18004901f
cmp dword [rcx + 0xf8], 0
je 0x18004901f
mov ecx, ebx
call fcn.1800490d0
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.180048eac
nop
cmp dword [rbp + 0x20], 0
je 0x18004906d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180049078
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180048fb0
Function at 0x18004d520
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 0x18004d550
xor eax, eax
jmp 0x18004d613
mov rbp, rbx
cmp word [rax], si
je 0x18004d575
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18004d55c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18004d558
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.18004d440
movsxd r14, eax
test eax, eax
jne 0x18004d5b3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18004d549
mov rcx, r14
call fcn.18004af20
mov rdi, rax
test rax, rax
jne 0x18004d5cc
xor ecx, ecx
call fcn.18004a204
jmp 0x18004d5a8
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.18004d440
test eax, eax
jne 0x18004d5fd
mov rcx, rdi
call fcn.18004a204
jmp 0x18004d607
xor ecx, ecx
call fcn.18004a204
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
Function at 0x18004eea0
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
lea r9, [0x1800dac70]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x18004eef7
cmp word [rdx], r13w
jne 0x18004eef7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18004eefc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18004f021
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18004f042
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18004ef35
mov rdx, r9
mov word [rbx], cx
jmp 0x18004ef5c
cmp r9, r8
jae 0x18004ef6c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x18004ef16
jmp 0x18004f021
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18004f016
cmp dword [rsp + 0x80], esi
je 0x18004f016
lea r8, [0x1800dac70]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18004efee
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18004efbe
mov word [rbx], r13w
jmp 0x18004f01e
mov ecx, reloc.WS2_32.dll_listen
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x18004efcb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18004f01e
cmp word [rsp + 0x70], r13w
jne 0x18004effb
cmp rbx, r14
je 0x18004efb8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180051560
cmp word [rsp + 0x70], r13w
je 0x18004f021
mov ecx, reloc.WS2_32.dll_listen
mov word [rbx], cx
add rbx, r12
sub rbx, r14
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
lea r8, [0x1800dac70]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18004f01b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18004f021
Function at 0x1800528a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800528c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800528c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x180054a70
Capabilities:
Resolve dns

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov r14, r9
mov rsi, rcx
lea rcx, [rbp - 0x28]
call fcn.18003c820
mov rdx, qword [rbp - 0x28]
mov rax, rdx
neg rax
jno 0x180054af2
mov rdi, qword [rbp - 0x20]
mov rbx, qword [rbp - 0x18]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x60], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x58], 1
mov qword [rbp - 8], 0
lea r8, [rbp - 0x60]
lea r9, [rbp - 8]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x180054b22
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x180054b36
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jae 0x180054b56
mov rcx, qword [rbp - 0x20]
mov r8d, 1
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp fcn.18000ce60
mov rcx, qword [r14]
mov rax, qword [rbp - 8]
movzx ecx, word [rcx]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov byte [rdi], 0
test rbx, rbx
je 0x180054b56
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.18000ce60
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret