joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400378dd
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rcx
movabs rbx, 0x8000000000000000
lea rdi, [rsp + 0x28]
mov rcx, rdi
call fcn.14003796b
mov r14, qword [rdi]
mov rdi, qword [rdi + 8]
cmp r14, rbx
jne 0x14003791b
mov rcx, rdi
call fcn.140033431
mov qword [rsi], rbx
jmp 0x140037939
mov r15, qword [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140037945
mov qword [rsi], r14
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r15
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov qword [rsi], rbx
test r14, r14
je 0x140037939
mov rcx, qword [0x14007db30]
xor edx, edx
mov r8, rdi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.kernel32.dll_HeapFree]

Function at 0x14003c78d
Capabilities:
Create udp socket

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov edi, edx
test cx, cx
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 0x14003c861
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x14003c7ec
mov esi, eax
cmp eax, 0x2726
jne 0x14003c853
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 0x14003c84b
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 0x14003c861
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 0x14003c85b
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 0x14003dc65
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rbx, r8
mov r14, rdx
mov rdi, rcx
mov al, byte [0x14007dbb8]
mov edx, 0x10
xor ecx, ecx
call fcn.14003494a
test rax, rax
je 0x14003dd39
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x14003dd3b]
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call qword [sym.imp.kernel32.dll_CreateThread]
mov rdi, rax
mov rdx, rax
test rax, rax
jne 0x14003dd27
mov rbx, qword [rsi]
mov r14, qword [rsi + 8]
mov rax, qword [r14]
test rax, rax
je 0x14003dce1
mov rcx, rbx
call rax
cmp qword [r14 + 8], 0
je 0x14003dd05
cmp qword [r14 + 0x10], 0x11
jb 0x14003dcf3
mov rbx, qword [rbx - 8]
mov rcx, qword [0x14007db30]
xor edx, edx
mov r8, rbx
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x14007db30]
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
xor eax, eax
test rdi, rdi
sete al
add rsp, 0x38
pop rbx
ud2
Function at 0x14003e383
Capabilities:
Read file on windows

Disassembly:
push rsi
sub rsp, 0xa0
mov rsi, rcx
movups xmm0, xmmword [0x14006d180]
lea rax, [rsp + 0x60]
movaps xmmword [rax], xmm0
mov ecx, 0xffffffff
cmp r8, rcx
cmovb rcx, r8
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rax
mov rcx, rsi
xor edx, edx
xor r8d, r8d
invalid
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x14003e3e9
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 case.0x140019237.358
cmp eax, 0x103
je case.0x140019237.361
test eax, eax
js case.0x140032cf9.259
invalid
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
jmp case.0x140019237.358
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
shl edx, 0x20
or rdx, 2
mov ecx, 1
mov rax, rcx
add rsp, 0xa0
pop rsi
ret
lea rcx, [rsp + 0x58]
mov byte [rcx + 4], 0
mov dword [rcx], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
lea rdx, [rsp + 0x70]
mov qword [rdx], rax
mov qword [rdx + 8], 1
lea rax, [rsp + 0x50]
mov qword [rdx + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rdx + 0x18], xmm0
invalid
invalid
call fcn.14003d296
mov rcx, rax
mov ecx, eax
call fcn.14003d2e3
mov ecx, 7
invalid
add byte [rax], al
add byte [rax], al
int 0x29
ud2

Function at 0x14003ed2d
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0xa0
mov rsi, rcx
movups xmm0, xmmword [0x14006d180]
lea rax, [rsp + 0x60]
movaps xmmword [rax], xmm0
mov ecx, 0xffffffff
cmp r8, rcx
cmovb rcx, r8
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rax
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
jbe 0x14003edbe
add al, byte [rax]
cmp eax, 0x103
jne 0x14003ed9a
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14003edc7
test eax, eax
js 0x14003eda7
mov rdx, qword [rsp + 0x68]
xor eax, eax
jmp 0x14003edbe
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa0
pop rsi
ret
lea rcx, [rsp + 0x58]
mov byte [rcx + 4], 0
mov dword [rcx], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
lea rdx, [rsp + 0x70]
and al, 0x70
mov qword [rdx], rax
mov qword [rdx + 8], 1
or byte [rcx], al
add byte [rax], al
add byte [rax - 0x73], cl
and al, 0x50
mov qword [rdx + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rdx + 0x18], xmm0
call fcn.14003d296
mov rcx, rax
call fcn.14003d2e3
mov ecx, 7
int 0x29
sub dword [rdi], ecx
invalid
Function at 0x1400418c0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
cmp qword [rdx], 0
jne 0x1400419f0
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rdx + 0x18]
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp r8, rdx
jne 0x140041907
test r8, r8
mov eax, 0x10
mov edx, 1
cmove rdx, rax
mov rcx, rbx
call fcn.1400166f5
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x10]
sub r8, rdx
add rdx, qword [rbx + 8]
mov eax, 0xffffffff
cmp r8, rax
cmovae r8, rax
mov rax, qword [rdi + 0x10]
lea r9, [rsp + 0x2c]
mov dword [r9], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], rax
call qword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x140041958
mov eax, dword [rsp + 0x2c]
mov ecx, 2
test rax, rax
je 0x140041998
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
jmp 0x14004199c
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
movabs rcx, 0xffffffff00000000
and rcx, rax
movabs rdx, 0x6d00000000
cmp rcx, rdx
je 0x1400419a0
movabs rdx, 0x3e500000000
cmp rcx, rdx
jne 0x1400419d6
lea rcx, [rsp + 0x30]
jmp 0x1400419ae
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x1400419dc
mov qword [rsp + 0x30], 1
lea rcx, [rsp + 0x38]
mov qword [rcx], 0
mov rcx, rax
call fcn.140033431
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
test rcx, rcx
je 0x1400419e6
cmp rcx, 2
jne 0x140041941
mov qword [rsi + 8], rax
mov al, 1
mov byte [rsi], al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
mov ecx, 1
jmp 0x14004194b
ud2

Function at 0x140046994
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
cmp rcx, 0xffffffffffffffff
je 0x1400469df
lea r9, [rsp + 0x34]
mov dword [r9], 1
mov dword [rsp + 0x20], 4
mov edx, 6
mov r8d, 1
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1400469cc
xor eax, eax
jmp 0x1400469da
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
ud2
Function at 0x140049276
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov r13, rdx
mov r15, qword [r8 + 8]
mov rsi, qword [r8 + 0x10]
mov r14, qword [rcx + 0x10]
mov rbx, qword [rcx + 0x18]
mov qword [rsp + 0x28], r8
mov rax, qword [r8]
add rax, rsi
mov qword [rsp + 0x40], rax
mov rdx, r15
sub rdx, rsi
mov eax, 0x7fffffff
cmp rdx, rax
cmovae rdx, rax
mov qword [rsp + 0x38], rdx
mov rax, qword [rcx + 0x20]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x20], rbx
lea rcx, [rsp + 0x48]
mov rdx, r14
mov r8, r13
xor r9d, r9d
call fcn.14004675b
mov al, byte [rsp + 0x51]
cmp al, 3
je 0x1400493fb
mov rdi, qword [rsp + 0x48]
cmp al, 2
je 0x140049402
cmp r15, rsi
jb 0x140049450
cmp rbx, 0xffffffffffffffff
je 0x140049450
movzx r12d, byte [rsp + 0x50]
mov rcx, rbx
mov rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x38]
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x140049409
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
je 0x14004940e
mov ebp, eax
shl rbp, 0x20
or rbp, 2
mov rcx, rbp
call fcn.140031638
cmp al, 0xd
jne 0x1400493af
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x1400493af
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle 0x140049450
mov rbx, r15
mov r15, r13
mov r13, rsi
add rcx, 0x10
mov r8, qword [rax + 0x10]
mov r9b, byte [rax + 0x18]
call fcn.140031052
test rax, rax
je 0x1400493a1
mov rsi, rax
mov rcx, rbp
call fcn.140033431
mov rbp, rsi
mov rsi, r13
mov r13, r15
mov r15, rbx
mov rbx, qword [rsp + 0x20]
mov rcx, rbp
call fcn.140031638
cmp al, 0xd
jne 0x14004943a
not edi
mov rax, qword [r14 + 0x90]
mov rcx, r12
shl rcx, 0x10
or rdi, 0xffffffffffffffcc
mov edx, eax
shr edx, 0x10
cmp r12b, dl
jne 0x1400493ee
mov edx, eax
and edx, edi
and edx, 0x2f
or rdx, rcx
lock cmpxchg qword [r14 + 0x90], rdx
jne 0x1400493cf
mov rcx, rbp
call fcn.140033431
jmp 0x1400492ce
mov eax, 1
jmp 0x140049404
xor eax, eax
mov rbp, rdi
jmp 0x14004943c
movsxd r8, eax
jmp 0x140049411
xor r8d, r8d
lea rax, [rsi + r8]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rdx + 0x18]
cmp rax, rcx
jbe 0x14004942a
mov qword [rdx + 0x18], rax
mov rcx, rax
add rsi, r8
jb 0x140049450
cmp rcx, rax
jb 0x140049450
mov qword [rdx + 0x10], rax
xor ebp, ebp
xor eax, eax
mov rdx, rbp
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
Function at 0x14004a52f
Capabilities:
Get number of processors

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
cmp qword [rcx + 0x20], 0
jne 0x14004a646
cmp qword [rsi], 0
mov rax, qword [rsi + 8]
mov edx, 0xc0
mov ecx, 0x120
cmove rcx, rdx
cmp dword [rax + rcx + 0x80], 0x3b9aca00
je 0x14004a655
mov edi, dword [rax + rcx + 0x60]
mov eax, dword [0x14007dbbc]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + 0x108]
test rax, rax
je 0x14004a595
cmp eax, 1
je 0x14004a5c2
jmp 0x14004a5f0
mov eax, dword [0x14007dbbc]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rbx, [rax + 0xb8]
lea rdx, [0x140045e7e]
mov rcx, rbx
call fcn.14003cb31
mov byte [rbx + 0x50], 1
mov eax, dword [0x14007dbbc]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + 0xf0]
test rax, rax
je 0x14004a5f0
cmp qword [rax], 0
je 0x14004a5f9
mov rax, qword [rax + 8]
mov eax, dword [rax + 0x18]
jmp 0x14004a5fb
mov ecx, edi
call fcn.140047d4b
jmp 0x14004a5fb
xor eax, eax
test edi, edi
je 0x14004a655
xor edx, edx
div edi
mov edi, edx
cmp qword [rsi + 0x20], 0
je 0x14004a61c
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x14004a61c
mov rcx, qword [rsi + 0x50]
call qword [rax + 0x18]
mov qword [rsi + 0x20], 1
xorps xmm0, xmm0
movups xmmword [rsi + 0x28], xmm0
mov qword [rsi + 0x38], 0
mov qword [rsi + 0x40], 0xffffffffffffffff
movups xmmword [rsi + 0x48], xmm0
movups xmmword [rsi + 0x51], xmm0
mov dword [rsi + 0x68], edi
add rsi, 0x28
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
ud2
Function at 0x14004f268
Capabilities:
Parse pe header

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

Function at 0x140055270
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14005506c
Function at 0x1400584e4
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 0x140058514
xor eax, eax
jmp 0x1400585d7
mov rbp, rbx
cmp word [rax], si
je 0x140058539
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140058520
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14005851c
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.140058404
movsxd r14, eax
test eax, eax
jne 0x140058577
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
jmp 0x14005850d
mov rcx, r14
call fcn.1400593c0
mov rdi, rax
test rax, rax
jne 0x140058590
xor ecx, ecx
call fcn.140056a64
jmp 0x14005856c
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.140058404
test eax, eax
jne 0x1400585c1
mov rcx, rdi
call fcn.140056a64
jmp 0x1400585cb
xor ecx, ecx
call fcn.140056a64
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 0x14005bd30
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400574d4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14005bdba
cmp byte [rbp - 0x21], r15b
je 0x14005bdb5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14005bdf0
call fcn.140059bd0
test eax, eax
jne 0x14005bddc
cmp byte [rbp - 0x21], r15b
je 0x14005bdd4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14005bdf0
cmp byte [rbp - 0x21], r15b
je 0x14005bded
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140056ab4
test eax, eax
jne 0x14005be90
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400574d4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14005be2f
cmp byte [rbp - 0x21], r15b
je 0x14005be64
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14005be64
call fcn.140059bd0
test eax, eax
jne 0x14005be50
cmp byte [rbp - 0x21], r15b
je 0x14005be49
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14005be64
cmp byte [rbp - 0x21], r15b
je 0x14005be61
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140056ab4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14005be90
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14005be93
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14005bea1
mov rcx, rdi
call fcn.140056a64
cmp byte [rbp + 0x3f], r15b
je 0x14005beb0
mov rcx, qword [rbp + 0x27]
call fcn.140056a64
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14005ea30
Capabilities:
Parse pe header

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

Function at 0x140061b5a
Capabilities:
Link many functions at runtime

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rcx, [0x14006c228]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax

Function at 0x140061e57
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov r15, r8
inc r15
je 0x140061fd2
js 0x140061fd2
mov rdi, r9
mov rbx, r8
mov r14, rdx
mov rsi, rcx
mov al, byte [0x14007dbb8]
xor ecx, ecx
mov rdx, r15
call fcn.14003494a
test rax, rax
je 0x140061fd2
lea rcx, [rsp + 0x28]
mov qword [rcx], r15
ud2
Function at 0x14002e260
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rax, rdx
mov rsi, qword [rbp + 0x70]
mov rdi, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x14002e2e0
cmp r10, r11
jb 0x14002e357
cmp r10, rdx
ja 0x14002e369
add r11, r9
xor r15d, r15d
nop dword [rax + rax]
cmp r14, r15
je 0x14002e2e2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x14002e2c0
jmp 0x14002e344
ja 0x14002e2ea
mov r11, r10
cmp rax, r8
jne 0x14002e28e
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x14002e320
mov rdi, r8
sub ecx, edx
jns 0x14002e33b
jmp 0x14002e346
cmp r8, rsi
je 0x14002e378
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x14002e346
xor al, 1
cmp rdi, rsi
jne 0x14002e300
jmp 0x14002e346
xor eax, eax
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1400439a0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140043680
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.140043a10
int3
Function at 0x14004123b
Capabilities:
Encode data using xor

Disassembly:
sub rdx, rcx
cmp rdx, 0x20
jb fcn.14002e710
jmp fcn.14002bb00

Function at 0x1400427d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004281a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004281a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004281a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004281a
cmp dword [rcx + 0x84], 0xe
jbe 0x14004281a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14004281c
xor al, al
add rsp, 0x28
ret
Function at 0x140011046
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x140011a20
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x2c8
lea rbp, [rsp + 0x20]
lea rcx, [0x1400250d5]
call fcn.14001142e
mov qword [rbp + 8], 0
call fcn.140011190
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x68], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 0x68]
mov eax, dword [rcx + rax + 0x88]
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x88]
mov rcx, qword [rbp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xa8]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rbp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0xa8]
mov eax, dword [rax + 0x20]
mov rcx, qword [rbp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0xe8], rax
mov rax, qword [rbp + 0xa8]
mov eax, dword [rax + 0x24]
mov rcx, qword [rbp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x108], rax
mov dword [rbp + 0x124], 0
jmp 0x140011b0b
mov eax, dword [rbp + 0x124]
inc eax
mov dword [rbp + 0x124], eax
mov rax, qword [rbp + 0xa8]
mov eax, dword [rax + 0x14]
cmp dword [rbp + 0x124], eax
jae 0x140011bc9
mov eax, dword [rbp + 0x124]
mov rcx, qword [rbp + 0xe8]
mov eax, dword [rcx + rax*4]
mov dword [rbp + 0x144], eax
mov eax, dword [rbp + 0x144]
mov rcx, qword [rbp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x168], rax
mov rax, qword [rbp + 0x168]
mov qword [rbp + 0x188], rax
mov qword [rbp + 0x1a8], 0
mov rcx, qword [rbp + 0x188]
call fcn.14001134d
mov dword [rbp + 0x1c4], eax
mov eax, dword [rbp + 0x2c0]
cmp dword [rbp + 0x1c4], eax
jne 0x140011bc4
mov eax, dword [rbp + 0x124]
mov rcx, qword [rbp + 0x108]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rbp + 0xc8]
mov eax, dword [rcx + rax*4]
mov qword [rbp + 0x1a8], rax
mov rax, qword [rbp + 0x1a8]
mov rcx, qword [rbp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
jmp 0x140011bc9
jmp 0x140011afd
lea rsp, [rbp + 0x2a8]
pop rdi
pop rbp
ret

Function at 0x140011190
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x140012c80
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov rax, qword [rax]
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
ret

Function at 0x14001125d
Capabilities:
Terminate process

Disassembly:
jmp 0x140014160
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400112fd
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400154b0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400154d0
xor al, al
jmp 0x140015551
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400154e3
xor al, al
jmp 0x140015551
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001550d
xor al, al
jmp 0x140015551
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015521
xor al, al
jmp 0x140015551
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140015533
xor al, al
jmp 0x140015551
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001554f
xor al, al
jmp 0x140015551
mov al, 1
add rsp, 0x38
ret