joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180094220
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1800e8280]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18009434a
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x180094341
nop word [rax + rax]
cmp dword [rsp + 0x20], 0x10
jb 0x180094324
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180094324
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180094324
mov rdx, qword [rbx]
test rdx, rdx
jne 0x1800942e2
mov dword [rbx + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x1800e9280]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x180094341
jmp 0x180094317
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180094317
mov rcx, qword [0x1800e9280]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x180094341
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x180094290
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x1800943a3
cmp dword [rbx + 0xc], esi
jbe 0x1800943a3
nop dword [rax]
nop dword [rax + rax]
mov r8, qword [rbx]
xor edx, edx
mov eax, esi
lea ecx, [rdx + 0x5a]
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18009439c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.180094940
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x180094360
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800962f0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180094720
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor r15d, r15d
mov rdi, rcx
mov r14d, r15d
mov ebx, r15d
xor eax, eax
mov esi, 1
lock cmpxchg dword [0x1800e9278], esi
je 0x180094771
cmp rbx, 0x20
jae 0x18009475a
xor ecx, ecx
jmp 0x18009475c
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1800e9278], esi
jne 0x180094750
cmp qword [0x1800e9280], r14
mov qword [rsp + 0x58], r13
je 0x18009490d
mov ecx, dword [0x1800ed75c]
mov ebx, r15d
test ecx, ecx
je 0x1800947af
mov rdx, qword [0x1800ed750]
mov rax, rdx
nop word [rax + rax]
cmp rdi, qword [rax]
je 0x1800947ba
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800947a0
mov r14d, 4
jmp 0x180094913
cmp ebx, 0xffffffff
je 0x1800947af
mov eax, ebx
imul r13, rax, 0x38
test byte [rdx + r13 + 0x20], 2
je 0x18009486b
xor r8d, r8d
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.180094220
xor edx, edx
mov ecx, ebx
call fcn.180094110
mov r14d, eax
cmp qword [rsp + 0x20], r15
je 0x18009485b
mov ecx, dword [rsp + 0x2c]
test ecx, ecx
je 0x180094847
mov rdi, qword [rsp + 0x20]
mov qword [rsp + 0x50], rbp
mov ebp, ecx
nop word [rax + rax]
mov r8d, dword [rdi]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180094838
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rdi, 4
sub rbp, 1
jne 0x180094810
mov rbp, qword [rsp + 0x50]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800e9280]
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r14d, r14d
jne 0x180094913
mov rdx, qword [0x1800ed750]
mov rcx, qword [rdx + r13 + 0x10]
call fcn.180094ba0
mov ecx, dword [0x1800ed75c]
lea eax, [rcx - 1]
cmp ebx, eax
jae 0x1800948bf
imul rcx, rax, 0x38
mov rax, qword [0x1800ed750]
movups xmm0, xmmword [rcx + rax]
movups xmmword [rax + r13], xmm0
movups xmm1, xmmword [rcx + rax + 0x10]
movups xmmword [rax + r13 + 0x10], xmm1
movups xmm0, xmmword [rcx + rax + 0x20]
movups xmmword [rax + r13 + 0x20], xmm0
movsd xmm1, qword [rcx + rax + 0x30]
movsd qword [rax + r13 + 0x30], xmm1
mov ecx, dword [0x1800ed75c]
mov edx, dword [0x1800ed758]
dec ecx
mov eax, edx
mov dword [0x1800ed75c], ecx
shr eax, 1
cmp eax, 0x20
jb 0x180094913
cmp eax, ecx
jb 0x180094913
mov r8, qword [0x1800ed750]
mov eax, edx
mov rcx, qword [0x1800e9280]
xor edx, edx
shr rax, 1
imul r9, rax, 0x38
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
test rax, rax
je 0x180094913
shr dword [0x1800ed758], 1
mov qword [0x1800ed750], rax
jmp 0x180094913
mov r14d, 2
xchg dword [0x1800e9278], r15d
mov r13, qword [rsp + 0x58]
mov eax, r14d
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x180094af0
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rcx
je 0x180094b5f
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x180094b48
mov qword [rsp + 0x38], rsi
mov r8, qword [rdi]
xor edx, edx
mov r8d, dword [r8 + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180094b3c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x180094b10
mov rsi, qword [rsp + 0x38]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x1800e9280]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180094c20
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x180094c60
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x1800ed748]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x180094c9e
cmp rsi, r14
jb 0x180094c96
cmp rsi, r15
jae 0x180094c96
cmp qword [rsi + 8], 0
jne 0x180094e67
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180094c81
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x180094d32
nop dword [rax]
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x180094d29
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180094d29
cmp dword [rsp + 0x70], 0x10000
je 0x180094dab
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x180094d29
sub rbx, rbp
cmp rbx, r14
jae 0x180094cf0
test rsi, rsi
jne 0x180094e10
cmp rdi, r15
ja 0x180094e4f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x180094e4f
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180094e4f
cmp dword [rsp + 0x70], 0x10000
je 0x180094de1
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x180094d62
jmp 0x180094e4f
test rbx, rbx
je 0x180094d29
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180094e10
cmp rbx, r14
jae 0x180094cd0
jmp 0x180094d32
test rdi, rdi
je 0x180094e4f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180094e10
cmp rdi, r15
jbe 0x180094d40
jmp 0x180094e4f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x180094e20
mov rax, qword [0x1800ed748]
mov qword [rsi], rax
mov qword [0x1800ed748], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x180095a50
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x180095a8a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x180095a8f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x180095ad8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1800ae450]
cmp byte [rcx + rax], 0
je 0x180095ad8
dec r8
sub rdx, 1
jne 0x180095abe
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400027a8
Capabilities:
Check if file exists
Get file attributes
Set current directory

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
lea rbp, [rax - 0x3b8]
sub rsp, 0x4a0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14005f650]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov rdi, rdx
mov rbx, rcx
cmp qword [rdx + 0x18], 8
jb 0x1400027ec
mov rcx, qword [rdx]
jmp 0x1400027ef
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000290f
test al, 0x10
jne 0x14000290f
xor esi, esi
mov qword [rsp + 0x20], rsi
cmp qword [rdi + 0x18], 8
jb 0x140002817
mov rdi, qword [rdi]
lea r9, [rsp + 0x20]
lea r8, [rbp + 0x180]
mov edx, 0x104
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov edi, 7
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x60], rsi
mov word [rsp + 0x50], si
cmp word [rbp + 0x180], si
jne 0x140002853
mov rax, rsi
jmp 0x14000285f
lea rcx, [rbp + 0x180]
call fcn.1400285ac
mov r8, rax
lea rdx, [rbp + 0x180]
lea rcx, [rsp + 0x50]
call fcn.14000ffd8
nop
mov rax, qword [rsp + 0x20]
mov word [rax], si
lea rdx, [rbp + 0x180]
lea rcx, [rsp + 0x70]
call fcn.140002eec
nop
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140002a38
test al, al
jne 0x1400028b8
mov bl, sil
jmp 0x1400028cd
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140001e90
mov bl, al
cmp qword [rsp + 0x48], 8
jb 0x1400028df
mov rcx, qword [rsp + 0x30]
call fcn.140027b40
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
lea rcx, [rsp + 0x70]
call sub.KERNEL32.dll_SetCurrentDirectoryW
nop
cmp qword [rsp + 0x68], 8
jb 0x14000290b
mov rcx, qword [rsp + 0x50]
call fcn.140027b40
mov al, bl
jmp 0x140002948
add rbx, 0x18
xor r8d, r8d
lea rdx, [0x1400513b8]
mov rcx, rbx
call fcn.14000ffd8
lea rdx, str.File_not_found:
mov rcx, rbx
call fcn.1400062d0
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call fcn.140006a84
xor al, al
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.140027b60
mov rbx, qword [rsp + 0x4d0]
add rsp, 0x4a0
pop rdi
pop rsi
pop rbp
ret

Function at 0x140002eec
Capabilities:
Get common file path
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x14000309c
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
mov eax, 0x2050
call fcn.140036790
sub rsp, rax
mov rax, qword [0x14005f650]
xor rax, rsp
mov qword [rsp + 0x2040], rax
mov rax, r8
mov qword [rsp + 0x28], rdx
mov rdi, rcx
xor ebx, ebx
lea r8, [0x1400513b8]
lea rcx, str.Bugsplat
lea r9, [rsp + 0x40]
mov rdx, rax
mov dword [rsp + 0x20], 0x1000
mov dword [rsp + 0x30], ebx
mov word [rsp + 0x40], bx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbx
mov word [rdi], bx
cmp word [rsp + 0x40], bx
je 0x14000311e
lea rcx, [rsp + 0x40]
call fcn.1400285ac
mov rbx, rax
lea rdx, [rsp + 0x40]
mov r8, rbx
mov rcx, rdi
call fcn.14000ffd8
mov rax, rdi
mov rcx, qword [rsp + 0x2040]
xor rcx, rsp
call fcn.140027b60
mov rbx, qword [rsp + 0x2078]
add rsp, 0x2050
pop rdi
ret
Function at 0x14000eb08
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [rcx + 0x10]
mov rsi, rdx
mov rbx, rcx
test rdi, rdi
je 0x14000eb9a
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x14000eb74
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000eb93
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000eb93
mov rdx, qword [rdi]
and qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rdx
xor r8d, r8d
mov rcx, rbx
mov rdx, rsi
call rax
jmp 0x14000eb83
cmp dword [rdi + 8], 0
je 0x14000eb93
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov eax, 1
jmp 0x14000eb83
cmp byte [0x1400634f8], 0
jne 0x14000ebe5
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000ebd1
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
mov qword [0x1400634f0], rax
jmp 0x14000ebd8
mov r10, qword [0x1400634f0]
mov eax, 1
mov byte [0x1400634f8], al
jmp 0x14000ebec
mov r10, qword [0x1400634f0]
mov rcx, qword [rbx]
mov rdx, rsi
test r10, r10
je 0x14000eb7d
mov r8d, dword [rbx + 8]
xor r9d, r9d
call r10
jmp 0x14000eb83
Function at 0x14000f6f8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x14005f650]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov r14, r8
mov rbx, rdx
xor edi, edi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x70], rdi
xor edx, edx
lea r8d, [rdi + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14000f785
xor edx, edx
lea r8d, [rdi + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14000f785
call fcn.14000dc04
mov ebx, eax
jmp 0x14000f896
mov r8, r15
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14000f7a6
call fcn.14000dc04
jmp 0x14000f885
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14000f79c
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x14000f7e1
mov ebx, 0x8007000e
jmp 0x14000f887
mov ecx, eax
test eax, eax
je 0x14000f819
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x14000f80f
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x14000f819
lea rcx, [rsp + 0x70]
call fcn.14000dbd8
jmp 0x14000f823
mov ecx, 0x80070216
call fcn.14000e834
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x14000f835
cmp qword [rsp + 0x70], rdi
je 0x14000f7d7
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x14000f79c
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], di
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.14000f540
mov ebx, eax
test rsi, rsi
je 0x14000f896
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x14000f8ad
lea rcx, [rsp + 0x70]
call fcn.14000dbb8
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140027b60
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140012edc
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x28
xor r8d, r8d
cmp byte [rcx + 0xa2], r8b
je 0x140012efc
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.14000d108
Function at 0x140013b20
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x238]
sub rsp, 0x310
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x14005f650]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov r14, rdx
xor r13d, r13d
mov dword [rsp + 0x38], r13d
lea rdx, str.0.0.0.0
lea rcx, [rsp + 0x30]
call fcn.1400186f4
nop
lea ecx, [r13 + 2]
lea rdx, [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov edx, 0x100
lea rcx, [rbp + 0x100]
call qword [sym.imp.WS2_32.dll_gethostname]
lea rcx, [rbp + 0x100]
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
jne 0x140013bef
mov rbx, qword [rsp + 0x30]
lea rdi, [rbx - 0xc]
cmp dword [rdi], r13d
jl 0x140013bc2
mov qword [r14], rbx
lock inc dword [rdi]
jmp 0x140013be3
mov rax, qword [0x140060be0]
mov qword [r14], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov edx, eax
mov rcx, r14
call fcn.14000cd44
nop
lea r15, [0x140060bd0]
jmp 0x140013d23
movsx r8, word [rax + 0x12]
mov rdx, qword [rax + 0x18]
mov rdx, qword [rdx]
lea rcx, [rsp + 0x4c]
call fcn.140027d80
mov ebx, 0x11
mov ecx, ebx
call fcn.14002331c
mov r12, rax
mov ecx, dword [rsp + 0x4c]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov r8, rax
mov edx, ebx
mov rcx, r12
call fcn.14002b054
test r12, r12
je 0x140013c3d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
jmp 0x140013c40
mov edi, r13d
mov rbx, qword [rsp + 0x30]
lea rcx, [rbx - 0xc]
lea r15, [0x140060bd0]
cmp dword [rcx], 1
jg 0x140013c5a
cmp edi, dword [rbx - 4]
jle 0x140013c8b
cmp rcx, r15
je 0x140013c76
lock add dword [rcx], 0xffffffff
jg 0x140013c6a
call fcn.140029150
mov rax, qword [0x140060be0]
mov qword [rsp + 0x30], rax
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.14000cff4
mov rbx, qword [rsp + 0x30]
test eax, eax
je 0x140013ce3
lea eax, [rdi + 1]
movsxd rcx, eax
test eax, eax
jne 0x140013c9a
test rbx, rbx
jne 0x140013cc0
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rbx
or r9d, 0xffffffff
mov r8, r12
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x140013cc0
cdqe
mov word [rbx + rax*2 - 2], r13w
lea rcx, [rsp + 0x30]
call fcn.14000ce6c
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [rbx - 8], eax
movsxd rcx, eax
mov word [rbx + rcx*2], r13w
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rcx, r12
call fcn.140029150
lea rdi, [rbx - 0xc]
cmp dword [rdi], r13d
jl 0x140013d02
mov qword [r14], rbx
lock inc dword [rdi]
jmp 0x140013d23
mov rax, qword [0x140060be0]
mov qword [r14], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov edx, eax
mov rcx, r14
call fcn.14000cd44
nop
cmp rdi, r15
je 0x140013d36
lock add dword [rdi], 0xffffffff
jg 0x140013d36
mov rcx, rdi
call fcn.140029150
mov rax, r14
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.140027b60
lea r11, [rsp + 0x310]
mov rbx, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140013d68
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x14005f650]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rbx, [rcx + 0xb8]
mov rax, qword [rbx]
cmp dword [rax - 8], 0
jne 0x140013dcf
lea rdx, [rsp + 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, str.bugsplat.log
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r8, [rsp + 0x30]
mov rcx, rbx
mov edx, eax
call fcn.14000cd44
mov rdx, qword [rbx]
and qword [rsp + 0x20], 0
lea r8, [0x140052344]
lea rcx, [rsp + 0x20]
call fcn.14002a9ec
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140027b60
add rsp, 0x250
pop rbx
ret
Function at 0x1400145cc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movzx r8d, word [rdx + 0xe]
mov rsi, rdx
movzx edx, word [rcx + 0xe]
mov al, dl
mov rdi, rcx
xor al, r8b
test al, 7
je 0x1400145ff
xor al, al
jmp 0x140014811
mov ecx, edx
and ecx, 7
sub ecx, 3
je 0x140014775
dec ecx
je 0x14001470e
dec ecx
je 0x1400146fe
dec ecx
jne 0x14001480c
movzx eax, dx
lea ebx, [rcx + 1]
shr ax, 9
test bl, al
jne 0x14001464d
movzx eax, r8w
shr ax, 9
test bl, al
jne 0x14001464d
mov rcx, qword [rsi]
cmp qword [rdi], rcx
sete al
jmp 0x140014811
movsd xmm2, qword [0x140054930]
mov ecx, 0x200
test cx, dx
je 0x140014665
movsd xmm1, qword [rdi]
jmp 0x1400146a1
test dl, 0x20
je 0x140014674
movd xmm1, dword [rdi]
cvtdq2pd xmm1, xmm1
jmp 0x1400146a1
xorps xmm1, xmm1
test dl, 0x40
je 0x140014685
mov eax, dword [rdi]
cvtsi2sd xmm1, rax
jmp 0x1400146a1
test dl, dl
jns 0x140014690
cvtsi2sd xmm1, qword [rdi]
jmp 0x1400146a1
mov rax, qword [rdi]
cvtsi2sd xmm1, rax
test rax, rax
jns 0x1400146a1
addsd xmm1, xmm2
test cx, r8w
je 0x1400146ad
movsd xmm0, qword [rsi]
jmp 0x1400146ec
test r8b, 0x20
je 0x1400146bd
movd xmm0, dword [rsi]
cvtdq2pd xmm0, xmm0
jmp 0x1400146ec
xorps xmm0, xmm0
test r8b, 0x40
je 0x1400146cf
mov eax, dword [rsi]
cvtsi2sd xmm0, rax
jmp 0x1400146ec
test r8b, r8b
jns 0x1400146db
cvtsi2sd xmm0, qword [rsi]
jmp 0x1400146ec
mov rax, qword [rsi]
cvtsi2sd xmm0, rax
test rax, rax
jns 0x1400146ec
addsd xmm0, xmm2
comisd xmm1, xmm0
jb 0x1400146f8
comisd xmm0, xmm1
jae 0x14001476e
xor ebp, ebp
mov ebx, ebp
jmp 0x14001476e
mov rdx, rsi
mov rcx, rdi
call fcn.1400148a8
jmp 0x140014811
mov ecx, dword [rdi]
cmp ecx, dword [rsi]
jne 0x1400145f8
xor ebp, ebp
mov eax, ebp
mov dword [rsp + 0x30], eax
lea ebx, [rbp + 1]
test ecx, ecx
je 0x14001476e
movabs r8, 0xffffffffffff
mov rdx, qword [rsi + 8]
mov rcx, qword [rdi + 8]
shl rax, 4
and rdx, r8
and rcx, r8
add rdx, rax
add rcx, rax
call fcn.1400145cc
test al, al
je 0x1400145f8
mov eax, dword [rsp + 0x30]
movabs r8, 0xffffffffffff
add eax, ebx
mov dword [rsp + 0x30], eax
cmp eax, dword [rdi]
jb 0x140014731
mov al, bl
jmp 0x140014811
mov ecx, dword [rdi]
cmp ecx, dword [rsi]
jne 0x1400145f8
mov rbx, qword [rdi + 8]
movabs rax, 0xffffffffffff
and rbx, rax
mov eax, ecx
shl rax, 5
add rax, rbx
cmp rbx, rax
je 0x14001480c
lea rdx, [rsp + 0x30]
mov r8, rbx
mov rcx, rsi
call fcn.140014828
mov ecx, dword [rsi]
movabs r8, 0xffffffffffff
mov rdx, qword [rax]
mov rax, qword [rsi + 8]
shl rcx, 5
and rax, r8
add rcx, rax
cmp rdx, rcx
je 0x1400145f8
lea rcx, [rbx + 0x10]
add rdx, 0x10
call fcn.1400145cc
test al, al
je 0x1400145f8
mov ecx, dword [rdi]
mov rax, qword [rdi + 8]
movabs rdx, 0xffffffffffff
shl rcx, 5
and rax, rdx
add rbx, 0x20
add rcx, rax
cmp rbx, rcx
jne 0x14001479e
mov eax, 1
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret