joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002380
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov dword [rcx + 4], 0
mov rbx, rdx
mov rax, qword [rdx]
mov rdi, rcx
mov r8d, 3
movzx edx, byte [rax]
mov byte [rcx + 0x30c], dl
inc qword [rbx]
mov rax, qword [rbx]
movzx edx, byte [rax]
mov byte [rcx + 0x30d], dl
inc qword [rbx]
mov rax, qword [rbx]
movzx ecx, byte [rax]
mov byte [rdi + 0x30e], cl
lea rcx, [rdi + 0x30c]
inc qword [rbx]
mov rax, qword [rbx]
movzx edx, byte [rax]
mov byte [rdi + 0x30f], dl
inc qword [rbx]
mov rax, qword [rbx]
movzx edx, byte [rax]
mov byte [rdi + 0x310], dl
inc qword [rbx]
mov rax, qword [rbx]
movzx edx, byte [rax]
mov byte [rdi + 0x311], dl
lea rdx, [0x1400045ac]
inc qword [rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x140002430
lea rcx, str.The_file_does_not_appear_to_be_a_valid_GIF_file._n
call fcn.140001580
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rax, qword [rbx]
movzx ecx, byte [rax]
mov byte [rdi + 0x312], cl
inc qword [rbx]
mov rax, qword [rbx]
movzx ecx, byte [rax]
mov byte [rdi + 0x313], cl
inc qword [rbx]
mov rax, qword [rbx]
movzx ecx, byte [rax]
mov byte [rdi + 0x314], cl
inc qword [rbx]
mov rax, qword [rbx]
movzx ecx, byte [rax]
mov byte [rdi + 0x315], cl
inc qword [rbx]
mov rax, qword [rbx]
movzx ecx, byte [rax]
mov byte [rdi + 0x316], cl
inc qword [rbx]
mov rax, qword [rbx]
movzx ecx, byte [rax]
mov byte [rdi + 0x317], cl
inc qword [rbx]
mov rax, qword [rbx]
movzx ecx, byte [rax]
mov byte [rdi + 0x318], cl
inc qword [rbx]
movzx eax, byte [rdi + 0x316]
mov byte [rdi], al
test al, al
jns 0x1400024ee
movzx ecx, al
lea rdx, [rdi + 0xd]
and ecx, 7
mov r8d, 1
inc ecx
shl r8d, cl
mov dword [rdi + 4], r8d
nop
mov rax, qword [rbx]
lea rdx, [rdx + 3]
movzx ecx, byte [rax]
mov byte [rdx - 4], cl
inc qword [rbx]
mov rax, qword [rbx]
movzx ecx, byte [rax]
mov byte [rdx - 3], cl
inc qword [rbx]
mov rax, qword [rbx]
movzx ecx, byte [rax]
mov byte [rdx - 2], cl
inc qword [rbx]
sub r8, 1
jne 0x1400024c0
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x140002500
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov dword [rcx + 0xc], 0
mov rbx, rdx
mov rax, qword [rdx]
mov rdi, rcx
movzx edx, byte [rax]
mov byte [rcx + 0x314], dl
inc qword [rbx]
mov rax, qword [rbx]
movzx edx, byte [rax]
mov byte [rcx + 0x315], dl
inc qword [rbx]
mov rax, qword [rbx]
movzx ecx, byte [rax]
mov byte [rdi + 0x316], cl
inc qword [rbx]
mov rax, qword [rbx]
movzx ecx, byte [rax]
mov byte [rdi + 0x317], cl
inc qword [rbx]
mov rax, qword [rbx]
movzx eax, byte [rax]
mov byte [rdi + 0x318], al
inc qword [rbx]
mov rax, qword [rbx]
movzx ecx, byte [rax]
mov byte [rdi + 0x319], cl
inc qword [rbx]
mov rax, qword [rbx]
movzx ecx, byte [rax]
mov byte [rdi + 0x31a], cl
inc qword [rbx]
mov rax, qword [rbx]
movzx ecx, byte [rax]
mov byte [rdi + 0x31b], cl
inc qword [rbx]
mov rax, qword [rbx]
movzx eax, byte [rax]
mov byte [rdi + 0x31c], al
inc qword [rbx]
movzx ecx, byte [rdi + 0x318]
cmp dword [0x140006680], 1
mov dword [rdi], ecx
movzx eax, byte [rdi + 0x319]
jne 0x1400025d1
shl eax, 8
or eax, ecx
mov dword [rdi], eax
movzx eax, byte [rdi + 0x31a]
mov dword [rdi + 4], eax
movzx ecx, byte [rdi + 0x31b]
jmp 0x1400025e9
shl ecx, 8
or ecx, eax
mov dword [rdi], ecx
movzx eax, byte [rdi + 0x31a]
mov dword [rdi + 4], eax
movzx eax, byte [rdi + 0x31b]
shl ecx, 8
or ecx, eax
mov dword [rdi + 4], ecx
movzx eax, byte [rdi + 0x31c]
mov byte [rdi + 8], al
test al, al
jns 0x140002659
movzx ecx, al
lea r8, [rdi + 0x15]
and ecx, 7
mov edx, 1
inc ecx
shl edx, cl
mov dword [rdi + 0xc], edx
mov r9d, edx
nop dword [rax + rax]
mov rax, qword [rbx]
lea r8, [r8 + 3]
movzx ecx, byte [rax]
mov byte [r8 - 4], cl
inc qword [rbx]
mov rax, qword [rbx]
movzx ecx, byte [rax]
mov byte [r8 - 3], cl
inc qword [rbx]
mov rax, qword [rbx]
movzx ecx, byte [rax]
mov byte [r8 - 2], cl
mov rax, qword [rbx]
inc rax
mov qword [rbx], rax
sub r9, 1
jne 0x140002620
jmp 0x14000265c
mov rax, qword [rbx]
movzx eax, byte [rax]
mov dword [rdi + 0x10], eax
inc qword [rbx]
mov ecx, dword [rdi + 4]
imul ecx, dword [rdi]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rdi + 0x328], rax
mov rdx, rax
test rax, rax
jne 0x140002698
lea rcx, str.Out_of_memory
call fcn.140001580
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rax, qword [rbx]
nop dword [rax + rax]
movzx ecx, byte [rax]
inc rax
mov qword [rbx], rax
test ecx, ecx
je 0x1400026c8
nop dword [rax]
movzx eax, byte [rax]
mov byte [rdx], al
inc rdx
mov rax, qword [rbx]
inc rax
mov qword [rbx], rax
sub ecx, 1
jne 0x1400026b0
jmp 0x1400026a0
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x140002ec0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140004b60
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140004b60
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002f30
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0a4]
mov rbx, rcx
test esi, esi
jle 0x140003060
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002f7b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140003005
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002f60
mov rcx, rbx
call fcn.140003980
mov rdi, rax
test rax, rax
je 0x140003082
mov rax, qword [0x14000a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003ac0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140003067
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002ffe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140003010
add dword [0x14000a0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002ffe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002ec0
nop dword [rax]
xor esi, esi
jmp 0x140002f88
mov rax, qword [0x14000a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002ec0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002ec0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400035f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x14000364c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140003643
test rsi, rsi
je 0x140003643
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003628
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140003980
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006a80]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400039a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400039a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400039a0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400039fd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400039f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400039a0
add rax, 0x28
cmp rax, r9
jne 0x1400039e0
xor eax, eax
ret

Function at 0x140003a00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006a80]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140003a1f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003a28
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140003a1f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003ac0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006a80]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140003adf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003ae8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140027cb4
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001babc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001babc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027e04
cmp rax, 0xffffffffffffffff
je 0x140027e04
xor edi, edi
test rbp, rbp
jle 0x140027daf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001e0e0
mov rbx, rax
test rax, rax
jne 0x140027d3c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027da5
mov edx, 0x8000
mov ecx, r14d
call fcn.140015690
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001c7bc
cmp eax, 0xffffffff
je 0x140027d85
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027d4c
mov edx, r15d
mov ecx, r14d
call fcn.140015690
jmp 0x140027da5
cmp byte [rsi + 0x38], dil
je 0x140027d9c
cmp dword [rsi + 0x34], 5
jne 0x140027d9c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027da5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001a168
jmp 0x140027e18
jns 0x140027e18
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001babc
cmp rax, 0xffffffffffffffff
jne 0x140027dd0
cmp byte [rsi + 0x30], dil
je 0x140027e18
mov edi, dword [rsi + 0x2c]
jmp 0x140027e18
mov ecx, r14d
call fcn.140016c88
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027e18
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140027e18
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027e11
mov eax, dword [rsi + 0x2c]
jmp 0x140027e16
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001babc
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140004000
Capabilities:
Encode data using xor

Disassembly:
movabs rcx, 0x77627f6899260541
movabs rdx, 0x1000
movabs r8, 0x3ee8
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x10]
add rdx, rax
add r8, rax
mov r9, rdx
xor qword [rdx], rcx
add rdx, 8
cmp rdx, r8
jb 0x140004034
jmp r9
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 [0x14005f660]
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.14002733c
mov r8, rax
lea rdx, [rbp + 0x180]
lea rcx, [rsp + 0x50]
call fcn.14001030c
nop
mov rax, qword [rsp + 0x20]
mov word [rax], si
lea rdx, [rbp + 0x180]
lea rcx, [rsp + 0x70]
call fcn.140002ef8
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.1400268d4
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.1400268d4
mov al, bl
jmp 0x140002948
add rbx, 0x18
xor r8d, r8d
lea rdx, [0x140050478]
mov rcx, rbx
call fcn.14001030c
lea rdx, str.File_not_found:
mov rcx, rbx
call fcn.140006c48
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call fcn.14000707c
xor al, al
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.1400268f0
mov rbx, qword [rsp + 0x4d0]
add rsp, 0x4a0
pop rdi
pop rsi
pop rbp
ret

Function at 0x140002ef8
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 0x1400030a8
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14005f660]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rax, r8
mov qword [rsp + 0x28], rdx
mov rdi, rcx
xor ebx, ebx
lea r8, [0x140050478]
lea rcx, str.Bugsplat
lea r9, [rsp + 0x40]
mov rdx, rax
mov dword [rsp + 0x20], 0x104
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 0x140003124
lea rcx, [rsp + 0x40]
call fcn.14002733c
mov rbx, rax
lea rdx, [rsp + 0x40]
mov r8, rbx
mov rcx, rdi
call fcn.14001030c
mov rax, rdi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400268f0
mov rbx, qword [rsp + 0x288]
add rsp, 0x260
pop rdi
ret
Function at 0x14000ee3c
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 0x14000eece
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x14000eea8
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000eec7
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000eec7
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 0x14000eeb7
cmp dword [rdi + 8], 0
je 0x14000eec7
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 0x14000eeb7
cmp byte [0x140063588], 0
jne 0x14000ef19
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000ef05
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
mov qword [0x140063580], rax
jmp 0x14000ef0c
mov r10, qword [0x140063580]
mov eax, 1
mov byte [0x140063588], al
jmp 0x14000ef20
mov r10, qword [0x140063580]
mov rcx, qword [rbx]
mov rdx, rsi
test r10, r10
je 0x14000eeb1
mov r8d, dword [rbx + 8]
xor r9d, r9d
call r10
jmp 0x14000eeb7
Function at 0x14000fa2c
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 [0x14005f660]
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 0x14000fab9
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 0x14000fab9
call fcn.14000df3c
mov ebx, eax
jmp 0x14000fbca
mov r8, r15
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14000fada
call fcn.14000df3c
jmp 0x14000fbb9
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 0x14000fad0
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 0x14000fb15
mov ebx, 0x8007000e
jmp 0x14000fbbb
mov ecx, eax
test eax, eax
je 0x14000fb4d
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x14000fb43
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x14000fb4d
lea rcx, [rsp + 0x70]
call fcn.14000df10
jmp 0x14000fb57
mov ecx, 0x80070216
call fcn.14000eb68
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x14000fb69
cmp qword [rsp + 0x70], rdi
je 0x14000fb0b
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 0x14000fad0
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.14000f874
mov ebx, eax
test rsi, rsi
je 0x14000fbca
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x14000fbe1
lea rcx, [rsp + 0x70]
call fcn.14000def0
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1400268f0
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140010a44
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rax - 0x10], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rdi, r9
mov rbx, r8
mov rsi, rcx
lea rax, vtable.BugsplatReport.0
mov qword [rcx], rax
add rcx, 8
call fcn.14001738c
nop
lea rcx, [rsi + 0x10]
mov rdx, rbx
call fcn.14001738c
nop
lea rcx, [rsi + 0x18]
mov rdx, rdi
call fcn.14001738c
nop
mov rax, qword [0x140060c00]
mov qword [rsi + 0x20], rax
mov rax, qword [0x140060c00]
mov qword [rsi + 0x28], rax
mov rax, qword [0x140060c00]
mov qword [rsi + 0x30], rax
mov rax, qword [0x140060c00]
mov qword [rsi + 0x38], rax
mov rax, qword [0x140060c00]
mov qword [rsi + 0x40], rax
mov rax, qword [0x140060c00]
mov qword [rsi + 0x48], rax
lea rcx, [rsi + 0x50]
lea rdx, str.0.0.0.0
call fcn.140017098
mov rax, qword [0x140060c00]
mov qword [rsi + 0x58], rax
xor edi, edi
mov qword [rsi + 0x60], rdi
mov qword [rsi + 0x68], rdi
mov rax, qword [0x140060c00]
mov qword [rsi + 0x70], rax
mov rax, qword [0x140060c00]
mov qword [rsi + 0x78], rax
mov byte [rsi + 0x80], dil
mov word [rsi + 0x82], di
mov byte [rsi + 0x84], dil
mov rax, qword [0x140060c00]
mov qword [rsi + 0x88], rax
mov rax, qword [0x140060c00]
mov qword [rsi + 0x90], rax
mov rax, qword [0x140060c00]
mov qword [rsi + 0x2a0], rax
mov byte [rsi + 0x2a8], dil
lea rbx, [rsi + 0x98]
mov rdx, rbx
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, str.bugsplat.log
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov qword [rsp + 0x20], rdi
lea r8, [0x14005050c]
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140028728
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140010ba8
call fcn.1400288d8
nop
mov rax, rsi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140012ebc
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x28
xor r8d, r8d
cmp byte [rcx + 0x82], r8b
je 0x140012edc
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.14000d440
Function at 0x140014ad4
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 [0x14005f660]
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.140017098
nop
lea ecx, [r13 + 2]
lea rdx, [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov edx, pe_nt_image_headers64
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 0x140014ba3
mov rbx, qword [rsp + 0x30]
lea rdi, [rbx - 0xc]
cmp dword [rdi], r13d
jl 0x140014b76
mov qword [r14], rbx
lock inc dword [rdi]
jmp 0x140014b97
mov rax, qword [0x140060c00]
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.14000d398
nop
lea r15, [0x140060bf0]
jmp 0x140014cd7
movsx r8, word [rax + 0x12]
mov rdx, qword [rax + 0x18]
mov rdx, qword [rdx]
lea rcx, [rsp + 0x4c]
call fcn.140026b10
mov ebx, 0x11
mov ecx, ebx
call fcn.1400220b0
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.140029cc4
test r12, r12
je 0x140014bf1
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
jmp 0x140014bf4
mov edi, r13d
mov rbx, qword [rsp + 0x30]
lea rcx, [rbx - 0xc]
lea r15, [0x140060bf0]
cmp dword [rcx], 1
jg 0x140014c0e
cmp edi, dword [rbx - 4]
jle 0x140014c3f
cmp rcx, r15
je 0x140014c2a
lock add dword [rcx], 0xffffffff
jg 0x140014c1e
call fcn.140027ee0
mov rax, qword [0x140060c00]
mov qword [rsp + 0x30], rax
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.14000d30c
mov rbx, qword [rsp + 0x30]
test eax, eax
je 0x140014c97
lea eax, [rdi + 1]
movsxd rcx, eax
test eax, eax
jne 0x140014c4e
test rbx, rbx
jne 0x140014c74
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 0x140014c74
cdqe
mov word [rbx + rax*2 - 2], r13w
lea rcx, [rsp + 0x30]
call fcn.140017204
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.140027ee0
lea rdi, [rbx - 0xc]
cmp dword [rdi], r13d
jl 0x140014cb6
mov qword [r14], rbx
lock inc dword [rdi]
jmp 0x140014cd7
mov rax, qword [0x140060c00]
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.14000d398
nop
cmp rdi, r15
je 0x140014cea
lock add dword [rdi], 0xffffffff
jg 0x140014cea
mov rcx, rdi
call fcn.140027ee0
mov rax, r14
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.1400268f0
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