joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003a680
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
clc
invalid
invalid
invalid
dec dword [rcx + rcx*4 - 0x39]
invalid
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x140068141]
mov dh, 5
invalid
fiadd dword [rdx]
add byte [rcx + 0x10], bh
mov edx, 8
or byte [rax], al
add byte [rax], al

Function at 0x14003d1c0
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x200
mov rax, rdx
mov rsi, rcx
mov rdx, qword [rdx]
mov rdi, qword [rax + 8]
movzx eax, word [rax + 0x10]
mov word [rsp + 0x26], ax
mov rax, qword [0x140068218]
cmp rax, 3
jne 0x14003d2ce
lea rax, [rsp + 0x26]
mov qword [rsp + 0x30], rax
cmp rdi, 0x17f
ja 0x14003d2f0
lea rbx, [rsp + 0x80]
mov rcx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rdi + 0x80], 0
inc rdi
lea rcx, [rsp + 0x38]
mov rdx, rbx
mov r8, rdi
call fcn.140046500
cmp qword [rsp + 0x38], 0
je 0x14003d252
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x14003d2c0
mov rcx, 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]
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x14003d2a5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x14003d2b9
mov rax, qword [rsp + 0x28]
movzx ecx, word [rsp + 0x26]
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, 0x200
pop rbx
pop rdi
pop rsi
ret
mov rbx, rdx
call fcn.14004d3d0
mov rdx, rbx
lea rax, [rsp + 0x26]
mov qword [rsp + 0x30], rax
cmp rdi, 0x17f
jbe 0x14003d208
lea r9, [rsp + 0x30]
mov rcx, rsi
mov r8, rdi
call fcn.14004d440
jmp 0x14003d2c0

Function at 0x14003d310
Capabilities:
Connect socket

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov eax, 1
test rcx, rcx
jne 0x14003d3c3
mov rax, qword [0x140068218]
cmp rax, 3
jne 0x14003d3eb
mov rsi, rdx
mov rcx, rdx
mov edx, 1
call fcn.1400326d0
test rax, rax
je 0x14003d351
mov eax, 1
jmp 0x14003d3c3
cmp word [rsi], 0
je 0x14003d373
movups xmm0, xmmword [rsi + 4]
mov eax, dword [rsi + 0x14]
mov r9d, dword [rsi + 0x18]
movzx ecx, word [rsi + 0x1c]
mov r8d, 0x1c
mov r10w, 0x17
jmp 0x14003d388
mov eax, dword [rsi + 2]
movzx ecx, word [rsi + 6]
mov r8d, reloc.WS2_32.dll_recv
mov r10w, 2
xorps xmm0, xmm0
rol cx, 8
mov word [rsp + 0x2c], r10w
mov word [rsp + 0x2e], cx
mov dword [rsp + 0x30], eax
movups xmmword [rsp + 0x34], xmm0
mov dword [rsp + 0x44], r9d
lea rax, [rsp + 0x2c]
mov rsi, rdx
mov rcx, rdx
mov rdx, rax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14003d3ca
xor eax, eax
mov rdx, rsi
add rsp, 0x48
pop rdi
pop rsi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rdx, rdi
jmp 0x14003d34a
mov rsi, rdx
call fcn.14004d3d0
mov rdx, rsi
jmp 0x14003d335
Function at 0x14004ae90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14004af0a
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 0x14004af00
cmp r11, r10
ja 0x14004af95
cmp r10, rdx
ja 0x14004afa7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14004af02
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14004aee0
jmp 0x14004af77
ja 0x14004af0a
mov r11, r10
cmp rax, r8
jne 0x14004aeb2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14004af7b
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 0x14004af50
mov r8, r10
sub ecx, r9d
jns 0x14004af6e
jmp 0x14004af7d
cmp r10, rdx
je 0x14004af89
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14004af7d
xor al, 1
cmp r8, rdx
jne 0x14004af30
jmp 0x14004af7d
xor eax, eax
jmp 0x14004af7d
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.14004df90
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14004e490
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14004e480
int3

Function at 0x14004c848
Capabilities:
Parse pe header

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

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov r14, r9
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.1400451d0
mov rdx, qword [rsp + 0x30]
movabs rax, 0x8000000000000000
cmp rdx, rax
jne 0x14004d4cb
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 0x14004d4fe
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x14004d513
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
test rdx, rdx
je 0x14004d533
mov rcx, qword [rsp + 0x38]
mov r8d, 1
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.1400201e0
mov rcx, qword [r14]
mov rax, qword [rsp + 0x28]
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 0x14004d533
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.1400201e0
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140003450
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x1401ea6d0]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x140004330
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x1400043a7
movsxd rdx, ecx
lea rcx, [0x14000428c]
call qword [sym.imp.USER32.DLL_EnumWindows]
mov rbx, qword [0x1401ecf10]
test rbx, rbx
je 0x14000441a
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14000439d
cmp byte [rbx + 0x20], 0
je 0x14000439d
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
xor r8d, r8d
call qword [sym.imp.USER32.DLL_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x140004363
jmp 0x14000441a
mov rbx, qword [0x1401ecf10]
test rbx, rbx
je 0x14000441a
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140004412
cmp byte [rbx + 0x21], 0
je 0x1400043d6
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x140004402
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
or rdx, 0xffffffffffffffff
call qword [sym.imp.USER32.DLL_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x1401ecf10]
call fcn.1400150ec
mov rbx, rdi
test rdi, rdi
jne 0x1400043b3
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140004b50
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1401ecf28], 0
jne 0x140004b75
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1401ecf28], 1
mov dword [0x1401ecf2c], eax
mov rcx, qword [0x1401ecdc0]
xor edx, edx
mov r8d, 0x90
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1401ecf2c]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, eax
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp 0x140004d30
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [0x1401ecf28], 0
mov ebx, ecx
jne 0x140004d54
call fcn.140004b50
mov ecx, dword [0x1401ecf2c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x140004d7c
call fcn.140004b50
mov ecx, dword [0x1401ecf2c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
lea rdx, [rdi + 8]
mov r8d, 0x11
nop word [rax + rax]
imul eax, ebx, 0x53a9b4fb
mov ecx, 1
mov ebx, 1
sub ecx, eax
lea rdx, [rdx + 4]
mov dword [rdx + 0x40], ecx
imul eax, ecx, 0x53a9b4fb
sub ebx, eax
mov dword [rdx - 4], ebx
dec r8
jne 0x140004d90
lea esi, [r8 + 0x1f]
mov dword [rdi], r8d
mov dword [rdi + 4], 0xa
lea ebp, [rsi - 0xf]
nop word [rax + rax]
movsxd r11, dword [rdi]
movsxd rbx, dword [rdi + 4]
mov r10d, dword [rdi + rbx*4 + 8]
mov r9d, dword [rdi + r11*4 + 8]
mov eax, dword [rdi + r11*4 + 0x4c]
ror r9d, 5
lea rcx, [rdi + r11*4]
lea r8, [rdi + r11*4]
ror eax, 0xd
add r9d, r10d
add eax, dword [rdi + rbx*4 + 0x4c]
dec r11d
mov dword [r8 + 0x4c], r9d
cmovs r11d, ebp
dec ebx
mov dword [rcx + 8], eax
cmovs ebx, ebp
mov dword [rdi], r11d
mov dword [rdi + 4], ebx
dec rsi
jne 0x140004dd0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140004d30
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1401ecf28], 0
jne 0x140004b75
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1401ecf28], 1
mov dword [0x1401ecf2c], eax
mov rcx, qword [0x1401ecdc0]
xor edx, edx
mov r8d, 0x90
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1401ecf2c]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, eax
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp 0x140004d30
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [0x1401ecf28], 0
mov ebx, ecx
jne 0x140004d54
call fcn.140004b50
mov ecx, dword [0x1401ecf2c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x140004d7c
call fcn.140004b50
mov ecx, dword [0x1401ecf2c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
lea rdx, [rdi + 8]
mov r8d, 0x11
nop word [rax + rax]
imul eax, ebx, 0x53a9b4fb
mov ecx, 1
mov ebx, 1
sub ecx, eax
lea rdx, [rdx + 4]
mov dword [rdx + 0x40], ecx
imul eax, ecx, 0x53a9b4fb
sub ebx, eax
mov dword [rdx - 4], ebx
dec r8
jne 0x140004d90
lea esi, [r8 + 0x1f]
mov dword [rdi], r8d
mov dword [rdi + 4], 0xa
lea ebp, [rsi - 0xf]
nop word [rax + rax]
movsxd r11, dword [rdi]
movsxd rbx, dword [rdi + 4]
mov r10d, dword [rdi + rbx*4 + 8]
mov r9d, dword [rdi + r11*4 + 8]
mov eax, dword [rdi + r11*4 + 0x4c]
ror r9d, 5
lea rcx, [rdi + r11*4]
lea r8, [rdi + r11*4]
ror eax, 0xd
add r9d, r10d
add eax, dword [rdi + rbx*4 + 0x4c]
dec r11d
mov dword [r8 + 0x4c], r9d
cmovs r11d, ebp
dec ebx
mov dword [rcx + 8], eax
cmovs ebx, ebp
mov dword [rdi], r11d
mov dword [rdi + 4], ebx
dec rsi
jne 0x140004dd0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140004e30
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1401ecf28], 0
mov rbx, rcx
jne 0x140004e47
call fcn.140004b50
mov ecx, dword [0x1401ecf2c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, rax
test rax, rax
jne 0x140004e6f
call fcn.140004b50
mov ecx, dword [0x1401ecf2c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, rax
movsxd r8, dword [r9]
movsxd rdx, dword [r9 + 4]
mov eax, 0x10
mov r10d, dword [r9 + r8*4 + 0x4c]
mov r11d, dword [r9 + r8*4 + 8]
ror r10d, 0xd
add r10d, dword [r9 + rdx*4 + 0x4c]
ror r11d, 5
add r11d, dword [r9 + rdx*4 + 8]
mov dword [r9 + r8*4 + 8], r10d
mov dword [r9 + r8*4 + 0x4c], r11d
dec r8d
mov ecx, r11d
cmovs r8d, eax
dec edx
cmovs edx, eax
mov dword [r9], r8d
mov dword [r9 + 4], edx
inc rbx
je 0x140004ee8
mov edx, r10d
mov r8, rbx
mov eax, ebx
shr r8, 0x20
imul rax, rdx
shr rax, 0x20
imul rcx, r8
imul rdx, r8
shr rcx, 0x20
add rax, rcx
add rax, rdx
add rsp, 0x20
pop rbx
ret
mov eax, r10d
shl rax, 0x20
and rax, rcx
add rsp, 0x20
pop rbx
ret
Function at 0x140006298
Capabilities:
Reference http user-agent string

Disassembly:
lea r9, [0x14007cd80]
xor r8d, r8d
jmp 0x1400062a8
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
mov r15, r9
mov r14d, r8d
mov rsi, rdx
mov rbp, rcx
test rcx, rcx
je 0x140006378
test rdx, rdx
je 0x140006378
mov rcx, qword [0x1401ecdc0]
lea edx, [rbx + 8]
mov r8d, 0x90
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, rbp
or dword [rax + 4], 0xffffffff
mov dword [rax], ebx
mov rdi, rax
call sub.msvcrt.dll__wcsdup
mov rcx, rsi
mov qword [rdi + 8], rax
call sub.msvcrt.dll__wcsdup
mov rcx, r15
mov qword [rdi + 0x10], rax
call sub.msvcrt.dll__wcsdup
mov dword [rdi + 0x40], r14d
mov qword [rdi + 0x58], rax
test r14b, 1
je 0x140006365
lea rax, [rsp + 0x50]
lea r8, [0x14000654c]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov edx, 0x10000
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140006370
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, rdi
jmp 0x140006378
mov rcx, rdi
call fcn.140006394
movsxd rbx, eax
mov rcx, rdi
call fcn.1400065cc
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x1400062a8
Capabilities:
Create thread

Disassembly:
lea r9, [0x14007cd80]
xor r8d, r8d
jmp 0x1400062a8
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
mov r15, r9
mov r14d, r8d
mov rsi, rdx
mov rbp, rcx
test rcx, rcx
je 0x140006378
test rdx, rdx
je 0x140006378
mov rcx, qword [0x1401ecdc0]
lea edx, [rbx + 8]
mov r8d, 0x90
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, rbp
or dword [rax + 4], 0xffffffff
mov dword [rax], ebx
mov rdi, rax
call sub.msvcrt.dll__wcsdup
mov rcx, rsi
mov qword [rdi + 8], rax
call sub.msvcrt.dll__wcsdup
mov rcx, r15
mov qword [rdi + 0x10], rax
call sub.msvcrt.dll__wcsdup
mov dword [rdi + 0x40], r14d
mov qword [rdi + 0x58], rax
test r14b, 1
je 0x140006365
lea rax, [rsp + 0x50]
lea r8, [0x14000654c]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov edx, 0x10000
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140006370
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, rdi
jmp 0x140006378
mov rcx, rdi
call fcn.140006394
movsxd rbx, eax
mov rcx, rdi
call fcn.1400065cc
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140006394
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r15, qword [rcx + 0x10]
mov rdi, rcx
mov rcx, qword [rcx + 8]
xor ebx, ebx
mov esi, ebx
call fcn.14006b6d0
mov rcx, qword [rdi + 0x58]
mov r12, rax
call fcn.14006b6d0
mov r13, rax
call fcn.14002f950
mov rbp, rax
test rax, rax
je 0x14000650f
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 1]
xor r9d, r9d
mov edx, 0xc0000000
mov rcx, r15
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x1400064f5
test byte [rdi + 0x40], 2
mov qword [rdi + 0x18], rax
jne 0x140006434
lea edx, [rbx + 0x34]
lea r8d, [rbx + 1]
mov rcx, rbp
call fcn.1400324c0
mov r8, qword [0x1401ecf60]
test r8, r8
je 0x14000644d
mov edx, 0x2714
mov rcx, rbp
call fcn.1400324c0
mov r8, qword [0x1401ecf68]
test r8, r8
je 0x140006483
cmp qword [0x1401ecf70], rbx
je 0x140006483
mov edx, 0x27bf
mov rcx, rbp
call fcn.1400324c0
mov r8, qword [0x1401ecf70]
mov edx, 0x27c0
mov rcx, rbp
call fcn.1400324c0
mov r8, r12
mov edx, 0x2712
mov rcx, rbp
call fcn.1400324c0
mov r8, r13
mov edx, 0x2722
mov rcx, rbp
call fcn.1400324c0
lea r8, [0x14000655c]
mov edx, 0x4e2b
mov rcx, rbp
call fcn.1400324c0
mov r8, rdi
mov edx, 0x2711
mov rcx, rbp
call fcn.1400324c0
mov rcx, rbp
call fcn.14002fb80
test eax, eax
jne 0x1400064df
cmp dword [rdi + 4], 0xfffffffb
mov eax, 1
cmovne esi, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x1400064f5
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, rbp
call fcn.14002f6e0
mov eax, 1
cmp esi, eax
jne 0x14000650f
mov dword [rdi + 4], 0xfffffffe
jmp 0x14000651c
cmp dword [rdi + 4], 0xfffffffb
setne bl
add ebx, 0xfffffffc
mov dword [rdi + 4], ebx
mov rcx, r12
call fcn.14006b6c0
mov rcx, r13
call fcn.14006b6c0
lea r11, [rsp + 0x40]
mov eax, esi
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140006754
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
xor ebx, ebx
cmp word [0x1401ecf78], bx
jne 0x140006847
lea rdx, [rsp + 0x20]
mov ecx, 0x101
call qword [sym.imp.WSOCK32.DLL_WSAStartup]
lea edi, [rbx + 1]
mov word [0x1401ecf78], di
test eax, eax
je 0x140006795
mov word [0x1401ecf78], bx
lea rcx, [0x14007cdc8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1401ecfa8], rax
test rax, rax
je 0x140006847
lea rdx, [0x14007cde0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401ecfa8]
lea rdx, [0x14007cdf0]
mov qword [0x1401ecf88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401ecfa8]
lea rdx, [0x14007ce00]
mov qword [0x1401ecf90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401ecfa8]
lea rdx, str.WSAStringToAddressA
mov qword [0x1401ecf98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1401ecf88], rbx
mov qword [0x1401ecfa0], rax
je 0x140006847
cmp qword [0x1401ecf90], rbx
je 0x140006847
cmp qword [0x1401ecf98], rbx
je 0x140006847
mov ecx, dword [0x1401ecf7c]
test rax, rax
cmovne ecx, edi
mov dword [0x1401ecf7c], ecx
movsx rax, word [0x1401ecf78]
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret
Function at 0x14000b03c
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x10]
mov rdi, rdx
mov edx, ecx
xor esi, esi
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [r11 - 0x18], rax
mov ebx, esi
call qword [sym.imp.SHELL32.DLL_SHGetFolderLocation]
test eax, eax
jne 0x14000b0ad
mov rcx, qword [rsp + 0x48]
mov rdx, rdi
call qword [sym.imp.SHELL32.DLL_SHGetPathFromIDListW]
test eax, eax
je 0x14000b0a2
mov rcx, rdi
call sub.msvcrt.dll_wcslen
mov rbx, rax
test eax, eax
je 0x14000b0a2
lea ecx, [rsi + 0x5c]
cdqe
cmp word [rdi + rax*2 - 2], cx
je 0x14000b0a2
mov word [rdi + rax*2], cx
inc ebx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.OLE32.DLL_CoTaskMemFree]
movsxd rax, ebx
mov word [rdi + rax*2], si
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14000b160
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rcx
mov dword [rsp + 0x40], eax
cmp dword [rcx + 0x1c], eax
jne 0x14000b1a4
mov r8d, dword [rcx + 0x10]
mov rdx, qword [rcx + 8]
lea r9, [rsp + 0x40]
sub r8d, dword [rcx + 0x14]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
movsxd rax, dword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
cdqe
add rsp, 0x30
pop rbx
ret

Function at 0x14000b8c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
mov dword [rsp + 0x48], ebx
test rdx, rdx
je 0x14000b938
test r8d, r8d
je 0x14000b938
mov rdx, rcx
mov rcx, qword [0x1401ee420]
call fcn.140014688
test rax, rax
je 0x14000b934
mov r8d, edi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x14000b921
mov rcx, rax
call fcn.14000bfe0
mov ebx, eax
cdqe
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14000b950
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, rcx
mov rcx, qword [0x1401ee420]
call fcn.140014688
mov rbx, rax
test rax, rax
je 0x14000b9a3
cmp qword [rax + 8], 0
je 0x14000b982
cmp dword [rax + 0x1c], 0
jne 0x14000b982
mov rcx, rax
call fcn.14000b160
mov rcx, qword [rbx]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov eax, dword [rsp + 0x38]
shl rax, 0x20
or rax, rcx
add rsp, 0x20
pop rbx
ret
or rax, 0xffffffffffffffff
add rsp, 0x20
pop rbx
ret