joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002c920
Capabilities:
Copy file
Delete file

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov dword [rsp + 0x58], 0
mov rax, qword [rsp + 0x90]
add rax, 0x428
mov rcx, rax
call fcn.14002a250
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x14002cab0
mov rax, qword [rsp + 0x90]
add rax, 0x428
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
mov dx, 0x5c
mov rcx, qword [rsp + 0x60]
call sub.VCRUNTIME140.dll_wcsrchr
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14002c9a3
mov dword [rsp + 0x20], 0xffffffff
jmp 0x14002c9bd
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
inc eax
mov rcx, qword [rsp + 0x90]
add rcx, 0x428
mov r8d, eax
lea rdx, [rsp + 0x28]
call fcn.140022440
nop
lea rax, str.wbxLog.wbt
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x14002ca06
mov dword [rsp + 0x24], 0
jmp 0x14002ca15
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [rsp + 0x24], eax
lea r8, str.wbxLog.wbt
mov edx, dword [rsp + 0x24]
lea rcx, [rsp + 0x28]
call fcn.140021730
mov rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0x50]
call fcn.14001f860
nop
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0x428]
mov qword [rsp + 0x70], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x90]
call fcn.14002d2e0
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
lea rcx, [rsp + 0x50]
call fcn.1400202f0
nop
lea rcx, [rsp + 0x28]
call fcn.1400202f0
add rsp, 0x88
ret
Function at 0x14002e790
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
xor eax, eax
test eax, eax
jne 0x14002e7a8
mov rax, qword [rsp + 0x68]
mov eax, dword [rax]
shl rax, 1
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x68]
mov dword [rax], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x14002e80a
mov eax, dword [rsp + 0x34]
jmp 0x14002e894
cmp dword [rsp + 0x38], 1
je 0x14002e81f
cmp dword [rsp + 0x38], 2
je 0x14002e81f
mov eax, 0xd
jmp 0x14002e894
cmp qword [rsp + 0x60], 0
je 0x14002e87d
cmp dword [rsp + 0x30], 0
je 0x14002e869
mov eax, dword [rsp + 0x30]
xor edx, edx
mov ecx, 2
div rcx
mov rax, rdx
test rax, rax
jne 0x14002e860
mov eax, dword [rsp + 0x30]
xor edx, edx
mov ecx, 2
div rcx
mov rcx, qword [rsp + 0x60]
movzx eax, word [rcx + rax*2 - 2]
test eax, eax
je 0x14002e867
mov eax, 0xd
jmp 0x14002e894
jmp 0x14002e87d
mov eax, 2
imul rax, rax, 0
xor ecx, ecx
mov rdx, qword [rsp + 0x60]
mov word [rdx + rax], cx
mov eax, dword [rsp + 0x30]
xor edx, edx
mov ecx, 2
div rcx
mov rcx, qword [rsp + 0x68]
mov dword [rcx], eax
xor eax, eax
add rsp, 0x48
ret
Function at 0x140044440
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov eax, 2
imul rax, rax, 0
xor ecx, ecx
mov rdx, qword [rsp + 0x80]
mov word [rdx + rax], cx
xor edx, edx
mov eax, dword [rsp + 0x78]
mov ecx, 0x10
div ecx
inc eax
mov dword [rsp + 0x34], eax
movzx eax, word [rsp + 0x34]
movzx r9d, word [0x1400d0bc0]
mov r8d, eax
mov edx, 6
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x180]
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x1400444de
movzx eax, word [rsp + 0x34]
mov r9w, 0x409
mov r8d, eax
mov edx, 6
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x180]
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x1400444ed
xor eax, eax
jmp 0x14004465e
mov rdx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x180]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140044518
xor eax, eax
jmp 0x14004465e
mov dword [rsp + 0x3c], 0
xor edx, edx
mov eax, dword [rsp + 0x78]
mov ecx, 0x10
div ecx
mov eax, edx
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x30], 0
jmp 0x140044547
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x10
jge 0x14004465a
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
test eax, eax
je 0x140044647
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jle 0x14004457f
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x38], eax
jmp 0x140044587
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
add rax, 2
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x48], eax
jne 0x140044632
mov rax, qword [rsp + 0x88]
dec rax
mov r9, rax
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov rax, qword [rsp + 0x88]
dec rax
movsxd rcx, dword [rsp + 0x20]
cmp rax, rcx
jae 0x1400445fb
mov rax, qword [rsp + 0x88]
dec rax
mov qword [rsp + 0x50], rax
jmp 0x140044605
movsxd rax, dword [rsp + 0x20]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x88], rax
xor eax, eax
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x88]
mov word [rcx + rdx*2], ax
mov dword [rsp + 0x3c], 1
jmp 0x14004465a
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x28], rax
jmp 0x140044655
mov rax, qword [rsp + 0x28]
add rax, 2
mov qword [rsp + 0x28], rax
jmp 0x14004453d
mov eax, dword [rsp + 0x3c]
add rsp, 0x68
ret
Function at 0x140046470
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x4c0
mov rax, qword [0x1400ced18]
xor rax, rsp
mov qword [rsp + 0x4b0], rax
mov rcx, qword [rsp + 0x4d0]
call fcn.140048b40
movzx eax, ax
test eax, eax
jne 0x1400464d8
mov rax, qword [rsp + 0x4d0]
mov rax, qword [rax + 0xa0]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jbe 0x1400464d8
mov rax, qword [rsp + 0x4d0]
mov rax, qword [rax]
mov eax, dword [rax - 8]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jg 0x1400464dd
jmp 0x140046691
movzx eax, word [0x140094438]
mov word [rsp + 0x90], ax
lea rax, [rsp + 0x92]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x4d0]
mov rax, qword [rax]
mov qword [rsp + 0x68], rax
mov r8, qword [rsp + 0x68]
mov edx, 0x104
lea rcx, [rsp + 0x90]
call fcn.14004c740
lea rcx, [rsp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x4d0]
call fcn.1400473e0
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [0x140094438]
mov word [rsp + 0x2a0], ax
lea rax, [rsp + 0x2a2]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
movzx eax, word [rsp + 0x8c]
movzx ecx, word [rsp + 0x8a]
movzx edx, word [rsp + 0x88]
movzx edi, word [rsp + 0x80]
movzx r8d, word [rsp + 0x86]
movzx r9d, word [rsp + 0x82]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], r8d
lea r8, str.wbxcrash__02hu_02hu_04hu__02hu_02hu_02hu.zip
mov edx, 0x104
lea rcx, [rsp + 0x2a0]
call fcn.14004c660
lea rdx, [rsp + 0x2a0]
lea rcx, [rsp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 1
mov edx, 0x40000000
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0xffffffffffffffff
je 0x140046691
mov dword [rsp + 0x54], 0
mov rax, qword [rsp + 0x4d0]
mov rax, qword [rax + 0xa0]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x4d0]
mov rax, qword [rax + 0x98]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x54]
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x4b0]
xor rcx, rsp
call fcn.140082550
add rsp, 0x4c0
pop rdi
ret
Function at 0x140046f10
Capabilities:
Terminate thread

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
jne 0x140046f2a
jmp 0x140046f85
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x10], 0
lea rcx, [0x1400d0bf0]
call fcn.140046d90
mov edx, dword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140046f6b
mov edx, 0xd
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x30]
mov qword [rax], 0
add rsp, 0x28
ret
Function at 0x140046f90
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x4a8
mov rax, qword [0x1400ced18]
xor rax, rsp
mov qword [rsp + 0x490], rax
mov dword [rsp + 0x68], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x4c0]
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rcx, qword [rsp + 0x4b0]
mov qword [rcx + 0xd0], rax
mov rax, qword [rsp + 0x4b0]
cmp qword [rax + 0xd0], 0
jne 0x140047025
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x4b0]
mov ecx, dword [rsp + 0x48]
mov dword [rax + 0xcc], ecx
mov eax, 0xef1f
jmp 0x1400471ff
mov dword [rsp + 0x38], 0x7530
mov r9d, 4
lea r8, [rsp + 0x38]
mov edx, 2
mov rax, qword [rsp + 0x4b0]
mov rcx, qword [rax + 0xd0]
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov r9d, 4
lea r8, [rsp + 0x38]
mov edx, 6
mov rax, qword [rsp + 0x4b0]
mov rcx, qword [rax + 0xd0]
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov r9d, 4
lea r8, [rsp + 0x38]
mov edx, 5
mov rax, qword [rsp + 0x4b0]
mov rcx, qword [rax + 0xd0]
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov rax, qword [rsp + 0x4b0]
add rax, 0x20
lea r8, str.ATQW
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1400463c0
nop
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x4b0]
call fcn.140048810
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
test eax, eax
je 0x140047129
movzx eax, word [rsp + 0x30]
mov word [rsp + 0x34], ax
lea rcx, [rsp + 0x50]
call fcn.1400202f0
movzx eax, word [rsp + 0x34]
jmp 0x1400471ff
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x4b8]
mov rcx, qword [rsp + 0x4b0]
call fcn.14004ab40
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
test eax, eax
jne 0x1400471d0
mov dword [rsp + 0x3c], 0
lea r9, [rsp + 0x3c]
mov r8d, 0x400
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x14004718e
mov dword [rsp + 0x3c], 0
mov eax, dword [rsp + 0x3c]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0x410
jae 0x1400471a4
jmp 0x1400471a9
call fcn.1400826cc
mov rax, qword [rsp + 0x58]
mov byte [rsp + rax + 0x80], 0
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x4b0]
call fcn.140046e40
mov word [rsp + 0x30], ax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
movzx eax, word [rsp + 0x30]
mov word [rsp + 0x36], ax
lea rcx, [rsp + 0x50]
call fcn.1400202f0
movzx eax, word [rsp + 0x36]
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.140082550
add rsp, 0x4a8
ret
Function at 0x140047220
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov qword [rax + 8], rcx
mov dword [rsp + 0x34], 0
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x50]
lea r8, [0x14004c7d0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rcx, qword [rsp + 0x50]
mov qword [rcx], rax
mov rax, qword [rsp + 0x50]
cmp qword [rax], 0
jne 0x14004729b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8w, 0xef1e
mov dx, 1
mov rcx, qword [rsp + 0x50]
call fcn.14004a5c0
mov rax, qword [rsp + 0x50]
cmp qword [rax], 0
je 0x1400472b0
mov dword [rsp + 0x30], 1
jmp 0x1400472b8
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x1400472d0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
mov eax, 0x1088
call fcn.140082e00
sub rsp, rax
mov rax, qword [0x1400ced18]
xor rax, rsp
mov qword [rsp + 0x1070], rax
lea rax, [rsp + 0x1098]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x1090]
mov qword [rsp + 0x60], rax
call fcn.140011620
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rcx
mov r9, 0xffffffffffffffff
mov r8d, 0x7ff
lea rdx, [rsp + 0x70]
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsnwprintf_s]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x140047379
mov dword [rsp + 0x44], 0xffffffff
jmp 0x140047381
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x44], eax
mov eax, 2
imul rax, rax, 0x7ff
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0x1000
jae 0x14004739f
jmp 0x1400473a4
call fcn.1400826cc
xor eax, eax
mov rcx, qword [rsp + 0x48]
mov word [rsp + rcx + 0x70], ax
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x1070]
xor rcx, rsp
call fcn.140082550
add rsp, 0x1088
ret
Function at 0x140049830
Capabilities:
Get file size
Read file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0xffffffffffffffff
jne 0x140049889
xor eax, eax
jmp 0x1400499af
mov dword [rsp + 0x50], 0
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jbe 0x1400499a0
cmp dword [rsp + 0x80], 0
je 0x1400498c1
mov dword [rsp + 0x48], 2
jmp 0x1400498c9
mov dword [rsp + 0x48], 0
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x44]
add ecx, eax
mov eax, ecx
mov eax, eax
mov edx, eax
mov rcx, qword [rsp + 0x70]
call fcn.1400499c0
test eax, eax
je 0x1400499a0
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x44]
mov rax, qword [rsp + 0x70]
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140049996
cmp dword [rsp + 0x80], 0
je 0x14004997f
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x40], eax
jae 0x14004993b
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x4c], eax
jmp 0x140049943
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx]
mov byte [rcx + rax], 0
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx]
mov byte [rcx + rax], 0
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x70]
mov qword [rcx + 8], rax
mov dword [rsp + 0x50], 1
jmp 0x1400499a0
mov rcx, qword [rsp + 0x70]
call fcn.1400485f0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x50]
add rsp, 0x68
ret
Function at 0x14004a4e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
jne 0x14004a52f
jmp 0x14004a5af
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x98], 0
jne 0x14004a548
mov dword [rsp + 0x40], 1
jmp 0x14004a550
mov dword [rsp + 0x40], 0
cmp dword [rsp + 0x40], 0
jne 0x14004a5a4
mov dword [rsp + 0x44], 0
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0xa0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x98]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x68
ret
Function at 0x14004cc00
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2d0
mov rax, qword [0x1400ced18]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
cmp qword [rsp + 0x2e8], 0
jne 0x14004cc36
xor eax, eax
jmp 0x14004cd19
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x80
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x2e8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x40
lea r9, [rsp + 0x30]
lea r8, [0x140097c64]
lea rdx, [0x140097c68]
lea rcx, str.Config
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov rcx, qword [rsp + 0x2e0]
mov dword [rcx], eax
lea rax, [rsp + 0xb0]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x2e8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rsp + 0xb0]
lea r8, [0x140094438]
lea rdx, str.wbxTraceFile
lea rcx, str.Config
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov rax, qword [rsp + 0x2e0]
add rax, 4
lea r8, [rsp + 0xb0]
mov edx, 0x104
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov rax, qword [rsp + 0x2e0]
add rax, 4
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, 1
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.140082550
add rsp, 0x2d0
pop rdi
ret
Function at 0x14004ebf0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
xor eax, eax
test eax, eax
jne 0x14004ebfe
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x10], 0
je 0x14004ec30
mov r8, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x10]
call fcn.1400513d0
jmp 0x14004ecb3
movzx eax, byte [0x1400d0d40]
test eax, eax
jne 0x14004ec75
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14004ec6e
lea rdx, str.RegDeleteKeyExW
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d0d38], rax
mov byte [0x1400d0d40], 1
cmp qword [0x1400d0d38], 0
je 0x14004eca0
xor r9d, r9d
mov rax, qword [rsp + 0x40]
mov r8d, dword [rax + 8]
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [0x1400d0d38]
jmp 0x14004ecb3
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add rsp, 0x38
ret
Function at 0x14004f360
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x4a8
lea rbp, [rsp + 0x40]
mov rax, qword [0x1400ced18]
xor rax, rbp
mov qword [rbp + 0x450], rax
mov dword [rbp], 0
cmp qword [rbp + 0x488], 0
jne 0x14004f3c7
lea rdx, [0x140094438]
mov rcx, qword [rbp + 0x480]
call fcn.14001f860
mov eax, dword [rbp]
or eax, 1
mov dword [rbp], eax
mov rax, qword [rbp + 0x480]
jmp 0x14004f578
lea rax, [rbp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x400
rep stosb byte [rdi], al
lea rax, [0x1400ce018]
mov rax, qword [rax]
mov qword [rbp + 0x10], rax
mov edx, 0x400
lea rcx, [rbp + 0x10]
call fcn.140021f10
mov rcx, qword [rbp + 0x490]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0x400
mov r9, rax
lea r8, [0x140094438]
mov rdx, qword [rbp + 0x488]
lea rcx, str.Telemetry
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [rbp + 0x30], eax
mov dword [rbp + 0x28], 3
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x18], 0
jne 0x14004f44b
mov qword [rbp + 0x38], 0
jmp 0x14004f52a
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
inc eax
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0x3fffffff
jle 0x14004f470
mov qword [rbp + 8], 0
jmp 0x14004f522
movsxd rax, dword [rbp + 4]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14004f48d
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140082e00
sub rsp, rax
lea rax, [rsp + 0x40]
mov qword [rbp + 0x20], rax
mov rax, qword [rbp + 0x40]
mov qword [rbp + 8], rax
cmp qword [rbp + 0x20], 0
je 0x14004f4bb
cmp qword [rbp + 0x18], 0
jne 0x14004f4c5
mov qword [rbp + 8], 0
jmp 0x14004f522
mov rax, qword [rbp + 0x20]
mov byte [rax], 0
movsxd rax, dword [rbp + 4]
shl rax, 1
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x20]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, qword [rbp + 0x18]
xor edx, edx
mov ecx, dword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [rbp + 0x2c], eax
cmp dword [rbp + 0x2c], 0
jne 0x14004f51a
mov qword [rbp + 8], 0
jmp 0x14004f522
mov rax, qword [rbp + 0x20]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov qword [rbp + 0x38], rax
mov r8d, dword [rbp + 0x30]
mov rdx, qword [rbp + 0x38]
lea rcx, [rbp + 0x50]
call fcn.1400466b0
lea r8, [rbp + 0x50]
lea rdx, [0x1400984d4]
lea rcx, [rbp + 0x10]
call fcn.140047880
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x480]
call fcn.14001f7c0
mov eax, dword [rbp]
or eax, 1
mov dword [rbp], eax
lea rcx, [rbp + 0x10]
call fcn.1400202f0
mov rax, qword [rbp + 0x480]
mov rcx, qword [rbp + 0x450]
xor rcx, rbp
call fcn.140082550
lea rsp, [rbp + 0x468]
pop rdi
pop rbp
ret