joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18042de90
Capabilities:
Copy file

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
mov rbx, r9
mov r14, r8
mov r8, rdx
mov rdx, rcx
movabs r12, 0x8000000000000000
lea rcx, [rsp + 0x48]
call fcn.180424ec0
mov rax, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
cmp rax, r12
je 0x18042df01
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x60]
lea rdx, [rsp + 0x30]
mov r8b, 1
call fcn.1804398f0
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
cmp rdi, r12
jne 0x18042df1e
mov r14d, 1
mov rbx, rsi
mov rax, r14
mov rdx, rbx
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [rsp + 0x48]
mov rdx, r14
mov r8, rbx
call fcn.180424ec0
mov rax, qword [rsp + 0x48]
mov r14, qword [rsp + 0x50]
cmp rax, r12
je 0x18042df72
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x60]
lea rdx, [rsp + 0x30]
mov r8b, 1
call fcn.1804398f0
mov r15, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
cmp r15, r12
jne 0x18042df99
mov rbx, r14
mov r14d, 1
test rdi, rdi
je 0x18042df0a
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.1802cbf20
jmp 0x18042df0a
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [0x18042e040]
lea r9, [rsp + 0x30]
mov rcx, rsi
mov rdx, r14
call qword [sym.imp.kernel32.dll_CopyFileExW]
test eax, eax
je 0x18042e00e
mov rbx, qword [rsp + 0x30]
test r15, r15
je 0x18042dfed
add r15, r15
mov r8d, 2
mov rcx, r14
mov rdx, r15
call fcn.1802cbf20
test rdi, rdi
je 0x18042e006
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.1802cbf20
xor r14d, r14d
jmp 0x18042df0a
call qword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test r15, r15
je 0x18042df75
add r15, r15
mov r8d, 2
mov rcx, r14
mov rdx, r15
call fcn.1802cbf20
jmp 0x18042df75
Function at 0x180434850
Capabilities:
Read file on windows

Disassembly:
push rsi
sub rsp, 0xb0
mov rsi, rcx
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x70], r9
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x78], rax
movups xmm0, xmmword [0x1804eaea0]
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
movaps xmmword [rsp + 0x60], xmm0
test r9, r9
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x60]
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 0x1804348dc
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0
cmp eax, 0xc0000011
je 0x180434915
cmp eax, 0x103
je 0x180434921
test eax, eax
js 0x1804348fe
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
jmp 0x180434915
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ecx, 1
mov rax, rcx
add rsp, 0xb0
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x90], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x98], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x80]
call fcn.18043fbe0
mov rcx, rax
call fcn.180426da0
mov ecx, 7
int 0x29
ud2

Function at 0x180434990
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0xb0
mov rsi, rcx
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x70], r9
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x78], rax
movups xmm0, xmmword [0x1804eaea0]
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
movaps xmmword [rsp + 0x60], xmm0
test r9, r9
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x60]
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 0x180434a23
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x180434a57
test eax, eax
js 0x180434a37
mov rdx, qword [rsp + 0x68]
xor eax, eax
add rsp, 0xb0
pop rsi
ret
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb0
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x90], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x98], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x80]
call fcn.18043fbe0
mov rcx, rax
call fcn.180426da0
mov ecx, 7
int 0x29
ud2
Function at 0x180435a90
Capabilities:
Read file on windows

Disassembly:
push rsi
sub rsp, 0x60
mov eax, 0xffffffff
cmp r8, rax
cmovae r8, rax
mov dword [rsp + 0x34], 0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x34]
mov qword [rsp + 0x58], rax
mov rcx, qword [rcx]
lea rax, [0x180435b60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
call qword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
je 0x180435b20
mov rsi, qword [sym.imp.kernel32.dll_SleepEx]
nop dword [rax]
mov ecx, 0xffffffff
mov edx, 1
call rsi
cmp dword [rsp + 0x34], 0
je 0x180435af0
mov eax, dword [rsp + 0x38]
mov esi, dword [rsp + 0x3c]
mov rcx, rax
shl rcx, 0x20
or rcx, 2
test eax, eax
cmovne rsi, rcx
jne 0x180435b30
jmp 0x180435b46
call qword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rcx, rsi
call fcn.1804350a0
mov ecx, eax
mov eax, 1
cmp cl, 0xb
jne 0x180435b48
xor esi, esi
xor eax, eax
mov rdx, rsi
add rsp, 0x60
pop rsi
ret
Function at 0x180436380
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, rcx
mov rdx, qword [rcx]
mov rcx, qword [rcx + 8]
mov rdi, qword [rsi + 0x10]
mov rbx, qword [rsi + 0x20]
mov r14, qword [rsi + 0x18]
mov ebp, 0xffffffff
lea r15, [rsp + 0x34]
mov r13, qword [sym.imp.kernel32.dll_ReadFile]
jmp 0x1804363dd
mov r12d, dword [rsp + 0x34]
mov edx, 2
test r12, r12
je 0x180436527
mov qword [rsi], rdx
mov qword [rsi + 8], r12
mov rcx, r12
cmp rdx, 2
je 0x180436470
cmp rdx, 1
jne 0x180436420
mov dword [rsp + 0x30], 0
mov rcx, rbx
mov rdx, rdi
lea r8, [rsp + 0x30]
mov r9d, 1
call qword [sym.imp.kernel32.dll_GetOverlappedResult]
test eax, eax
je 0x180436426
mov ecx, dword [rsp + 0x30]
jmp 0x180436470
mov rdx, qword [r14 + 0x10]
jmp 0x18043648b
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rdx, rax
movabs rcx, 0xffffffff00000000
and rdx, rcx
movabs rcx, 0x6d00000000
cmp rdx, rcx
je 0x18043646c
mov ecx, 0
movabs r8, 0x2600000000
cmp rdx, r8
je 0x180436470
jmp 0x180436529
xor ecx, ecx
nop
mov qword [rsi], 0
mov rdx, qword [r14 + 0x10]
add rdx, rcx
mov qword [r14 + 0x10], rdx
test rcx, rcx
je 0x180436527
mov r8, qword [r14]
cmp r8, rdx
je 0x1804364e3
sub r8, rdx
add rdx, qword [r14 + 8]
cmp r8, rbp
cmovae r8, rbp
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x20], rdi
mov rcx, rbx
mov r9, r15
call r13
test eax, eax
jne 0x1804363c0
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
mov edx, 1
movabs rcx, 0x3e500000000
cmp rax, rcx
je 0x1804363d3
jmp 0x180436518
test rdx, rdx
mov r8d, 1
mov eax, 0x10
cmove r8, rax
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, r14
call fcn.180469640
mov r8, qword [r14]
mov rdx, qword [r14 + 0x10]
jmp 0x180436493
movabs rcx, 0x6d00000000
cmp rax, rcx
jne 0x18043653a
xor eax, eax
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
or rax, 2
jmp 0x180436529

Function at 0x180436630
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rbx, r8
mov r14, rdx
mov rdi, rcx
movzx eax, byte [0x1805297c8]
mov ecx, 0x10
mov edx, 8
call fcn.1802cbf10
test rax, rax
je 0x1804366f9
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x180436710]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call qword [sym.imp.kernel32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1804366ec
mov rdi, qword [rsi]
mov rbx, qword [rsi + 8]
mov rax, qword [rbx]
test rax, rax
je 0x1804366af
mov rcx, rdi
call rax
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x1804366c4
mov r8, qword [rbx + 0x10]
mov rcx, rdi
call fcn.1802cbf20
mov edx, 0x10
mov r8d, 8
mov rcx, rsi
call fcn.1802cbf20
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ebx, 1
mov rax, rbx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 8
mov edx, 0x10
call fcn.180407090
int3
Function at 0x18043bca0
Capabilities:
Create udp socket

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov edi, edx
cmp word [rcx], 0
mov eax, 2
mov ebx, 0x17
cmove ebx, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
xor r14d, r14d
mov ecx, ebx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x18043bd75
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x18043bd00
mov esi, eax
cmp eax, 0x2726
jne 0x18043bd67
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x18043bd5f
mov rsi, rax
xor r14d, r14d
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
jne 0x18043bd75
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 rsi, rdi
jmp 0x18043bd6f
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov r14d, 1
mov rax, r14
mov rdx, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x18043bd90
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x218
mov r14, r8
mov rdi, rdx
mov rsi, rcx
mov rbx, r8
jmp 0x18043bdb5
cmp rbx, r14
ja 0x18043bde1
mov cl, 0x3a
mov rdx, rdi
mov r8, rbx
call fcn.18044a870
cmp rax, 1
jne 0x18043bddc
mov rbx, rdx
cmp rdx, r14
jae 0x18043bdb0
cmp byte [rdi + rbx], 0x3a
jne 0x18043bdb0
lea rcx, [rbx + 1]
jmp 0x18043bded
test rax, rax
jne 0x18043bded
lea rax, str.invalid_socket_address
jmp 0x18043be76
sub r14, rcx
add rcx, rdi
mov rdx, r14
call fcn.180452c80
test al, 1
jne 0x18043be6f
shr eax, 0x10
mov word [rsp + 0x36], ax
mov eax, dword [0x180529a48]
cmp eax, 3
jne 0x18043bf07
lea rax, [rsp + 0x36]
mov qword [rsp + 0x40], rax
cmp rbx, 0x17f
ja 0x18043bf2a
lea r14, [rsp + 0x98]
mov rcx, r14
mov rdx, rdi
mov r8, rbx
call fcn.180468b10
mov byte [rsp + rbx + 0x98], 0
inc rbx
lea rcx, [rsp + 0x48]
mov rdx, r14
mov r8, rbx
call fcn.180454160
cmp qword [rsp + 0x48], 0
je 0x18043be91
lea rax, str.file_name_contained_an_unexpected_NUL_byte
jmp 0x18043be76
lea rax, str.invalid_port_value
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x218
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, qword [rsp + 0x50]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x68], 1
mov qword [rsp + 0x38], 0
lea r8, [rsp + 0x60]
lea r9, [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x18043bee7
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x18043befb
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x36]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
jmp 0x18043be81
lea rcx, [0x180529a40]
call fcn.180474180
lea rax, [rsp + 0x36]
mov qword [rsp + 0x40], rax
cmp rbx, 0x17f
jbe 0x18043be2d
lea rax, [0x1804ec440]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
mov rcx, rsi
mov rdx, rdi
mov r8, rbx
call fcn.180474650
jmp 0x18043be81
Function at 0x18043bf50
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x218
mov rsi, rcx
mov rbx, qword [rdx]
mov rdi, qword [rdx + 8]
movzx eax, word [rdx + 0x10]
mov word [rsp + 0x36], ax
mov eax, dword [0x180529a48]
cmp eax, 3
jne 0x18043c063
lea rax, [rsp + 0x36]
mov qword [rsp + 0x40], rax
cmp rdi, 0x17f
ja 0x18043c086
lea r14, [rsp + 0x98]
mov rcx, r14
mov rdx, rbx
mov r8, rdi
call fcn.180468b10
mov byte [rsp + rdi + 0x98], 0
inc rdi
lea rcx, [rsp + 0x48]
mov rdx, r14
mov r8, rdi
call fcn.180454160
cmp qword [rsp + 0x48], 0
je 0x18043bfe2
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x18043c053
mov rcx, qword [rsp + 0x50]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x68], 1
mov qword [rsp + 0x38], 0
lea r8, [rsp + 0x60]
lea r9, [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x18043c038
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x18043c04c
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x36]
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, 0x218
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x180529a40]
call fcn.180474180
lea rax, [rsp + 0x36]
mov qword [rsp + 0x40], rax
cmp rdi, 0x17f
jbe 0x18043bf95
lea rax, [0x1804ec440]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
call fcn.180474650
jmp 0x18043c053

Function at 0x18043c350
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
sub rsp, 0xc0
mov rsi, rcx
mov rcx, qword [rdx]
xorps xmm0, xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x28], 0x80
lea rdx, [rsp + 0x40]
lea r8, [rsp + 0x28]
call qword [sym.imp.ws2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x18043c3e9
mov eax, dword [rsp + 0x28]
movzx ecx, word [rsp + 0x40]
cmp ecx, 0x17
je 0x18043c3f9
cmp ecx, 2
jne 0x18043c43e
cmp eax, 0xf
jbe 0x18043c45a
movzx eax, word [rsp + 0x42]
rol ax, 8
mov ecx, dword [rsp + 0x44]
mov word [rsi], 0
mov word [rsi + 6], ax
mov dword [rsi + 2], ecx
jmp 0x18043c44e
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
jmp 0x18043c445
cmp eax, 0x1b
jbe 0x18043c45a
movzx eax, word [rsp + 0x42]
rol ax, 8
mov ecx, dword [rsp + 0x44]
mov edx, dword [rsp + 0x58]
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rsp + 0x30], xmm0
mov word [rsi], 1
movups xmm0, xmmword [rsp + 0x2e]
movups xmmword [rsi + 2], xmm0
movzx r8d, word [rsp + 0x3e]
mov word [rsi + 0x12], r8w
mov dword [rsi + 0x14], ecx
mov dword [rsi + 0x18], edx
mov word [rsi + 0x1c], ax
jmp 0x18043c44e
lea rax, str.invalid_argument
mov qword [rsi + 8], rax
mov word [rsi], 2
mov rax, rsi
add rsp, 0xc0
pop rsi
ret
ud2
Function at 0x18045f678
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 0x18045f6e7
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x18045f6e7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18045f6e7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18045f6e7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18045f6e7
cmp dword [rcx + 0x84], 0xe
jbe 0x18045f6e7
cmp dword [rcx + 0xf8], 0
je 0x18045f6e7
mov ecx, ebx
call fcn.18045f798
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.18045f574
nop
cmp dword [rbp + 0x20], 0
je 0x18045f735
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18045f740
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x18045f678
Function at 0x1804630ec
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 0x18046311c
xor eax, eax
jmp 0x1804631df
mov rbp, rbx
cmp word [rax], si
je 0x180463141
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180463128
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180463124
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.18046300c
movsxd r14, eax
test eax, eax
jne 0x18046317f
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
jmp 0x180463115
mov rcx, r14
call fcn.180460854
mov rdi, rax
test rax, rax
jne 0x180463198
xor ecx, ecx
call fcn.1804608b4
jmp 0x180463174
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.18046300c
test eax, eax
jne 0x1804631c9
mov rcx, rdi
call fcn.1804608b4
jmp 0x1804631d3
xor ecx, ecx
call fcn.1804608b4
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 0x180468610
Capabilities:
Parse pe header

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

Function at 0x180473c70
Capabilities:
Link many functions at runtime

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rcx, [0x1804e742d]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x180473cc5
mov rdi, rax
lea rdx, [0x1804e744e]
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x180473cc5
mov rsi, rax
lea rdx, [0x1804e745c]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x180473cc5
mov r14, rax
xor edi, edi
jmp 0x180473d4d
lea rcx, [0x1804e73e8]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x180473db9
mov rsi, rax
lea rdx, str.NtCreateKeyedEvent
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x180473db9
mov rbx, rax
lea rdx, str.NtReleaseKeyedEvent
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x180473db9
mov rdi, rax
lea rdx, str.NtWaitForKeyedEvent
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x180473db9
mov rsi, rax
lea rcx, [rsp + 0x20]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rbx
test eax, eax
jne 0x180473db9
mov r14, qword [rsp + 0x20]
movzx eax, byte [0x1805297c8]
mov ecx, 0x18
mov edx, 8
call fcn.1802cbf10
test rax, rax
je 0x180473dbb
mov rbx, rax
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], r14
xor eax, eax
lock cmpxchg qword [0x1805298d8], rbx
je 0x180473dac
mov rsi, rax
cmp qword [rbx], 0
je 0x180473d96
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov edx, 0x18
mov r8d, 8
mov rcx, rbx
call fcn.1802cbf20
mov rbx, rsi
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
ud2
mov ecx, 8
mov edx, 0x18
call fcn.180407090
int3
Function at 0x1400de8a0
Capabilities:
Parse pe header

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

Function at 0x1418a2058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1418a21df
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 0x1418a2089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1418a206f
add dl, dl
jne 0x1418a2096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1418a20f6
xor eax, eax
add dl, dl
jne 0x1418a20a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1418a21ad
add dl, dl
jne 0x1418a20b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1418a20c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1418a20d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1418a20dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1418a20ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1418a207e
mov eax, 1
add dl, dl
jne 0x1418a2106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1418a2113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1418a20fb
sub eax, ebx
mov ebx, 1
jne 0x1418a214c
mov ecx, 1
add dl, dl
jne 0x1418a212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1418a213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1418a2123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1418a207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1418a2168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1418a2175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1418a215d
cmp eax, 0x7d00
jae 0x1418a219b
cmp eax, 0x500
jb 0x1418a2196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1418a207e
cmp eax, 0x7f
ja 0x1418a219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1418a207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1418a21d2
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 0x1418a207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20