joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140067f70
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x140068094
cmp r8d, 0xff
jne 0x140067fd1
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x140067fbb
lea r8, [0x140000000]
mov r9, qword [r8 + r10*8 + 0x8b7a0]
mov r8, rdx
lea rdx, str._s_IAC__s_n
add rsp, 0x38
jmp fcn.1400449a0
mov r8, rdx
mov r9d, r10d
lea rdx, str._s_IAC__d_n
add rsp, 0x38
jmp fcn.1400449a0
cmp r8d, 0xfb
jne 0x140067fe3
lea r9, str.WILL
jmp 0x140068021
cmp r8d, 0xfc
jne 0x140067ff5
lea r9, str.WONT
jmp 0x140068021
cmp r8d, 0xfd
jne 0x140068007
lea r9, [0x14008c1c4]
jmp 0x140068021
xor r9d, r9d
lea rax, str.DONT
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x14006807d
cmp r10d, 0x27
jg 0x140068054
lea r8, [0x140000000]
mov r8, qword [r8 + r10*8 + 0x8bdc0]
test r8, r8
jne 0x140068064
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, str._s__s__d_n
call fcn.1400449a0
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x14006803b
lea r8, str.EXOPL
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, str._s__s__s_n
call fcn.1400449a0
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, str._s__d__d_n
call fcn.1400449a0
add rsp, 0x38
ret

Function at 0x1400683e0
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x4c0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14006843f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140044820
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.140067f70
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400685f0
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x140068798
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x140068655
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x140068655
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140068655
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x14006868c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x1400686e2
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400686e2
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400686e2
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400686e2
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400686e2
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.1400680a0
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x140068744
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140044820
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.140068470
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140068790
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140044820
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140069f00
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400a0080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x140069f95
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x140069ff6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140044820
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14007d600
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x14006a0b1
sub ecx, 1
je 0x14006a124
sub ecx, 1
je 0x14006a060
cmp ecx, 1
je 0x14006a043
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x140089c20]
call fcn.140044820
jmp 0x14006a124
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.140069c30
test eax, eax
je 0x14006a124
jmp 0x140069fca
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x14006a124
sub rax, rsi
cmp rax, rbp
jae 0x14006a124
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.1400449a0
jmp 0x14006a124
cmp r8d, 4
jle 0x14006a124
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x14006a124
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140044740
mov esi, eax
test eax, eax
je 0x14006a103
mov edx, 5
mov rcx, rbx
call fcn.14006abf0
mov eax, esi
jmp 0x140069fca
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.140053020
mov rcx, r14
call fcn.140053300
test eax, eax
je 0x140069fc8
mov edx, 5
mov rcx, rbx
call fcn.14006abf0
mov eax, Ordinal_46
jmp 0x140069fca
Function at 0x14007cec0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x14007cf02
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x14007cf49
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x14007cfa2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x14007cf60
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14007cfe3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14008f3aa]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14008f3ab]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14007cfb0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x14007d000
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14007d084
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x14007d084
dec r8
sub rdx, 1
jne 0x14007d06a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14007e5a8
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140012e50
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011276
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400141a0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400141c0
xor al, al
jmp 0x140014241
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400141d3
xor al, al
jmp 0x140014241
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400141fd
xor al, al
jmp 0x140014241
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014211
xor al, al
jmp 0x140014241
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014223
xor al, al
jmp 0x140014241
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001423f
xor al, al
jmp 0x140014241
mov al, 1
add rsp, 0x38
ret
Function at 0x140001c80
Capabilities:
Create thread

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov r15, rdx
mov r14d, ecx
xor esi, esi
mov qword [rsp + 0xa0], rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
lea r9, [rsp + 0xa8]
mov r8, rdi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
mov r9, qword [rsp + 0xa8]
lea r8, [0x1400015f0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 1
cmp ebx, r14d
jge 0x140001d64
movsxd rcx, ebx
xor edx, edx
lea r8d, [rdx + 0x10]
mov rcx, qword [r15 + rcx*8]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoull]
mov qword [rsp + 0x40], rax
mov rdx, qword [0x14000f3d0]
cmp rdx, qword [0x14000f3d8]
je 0x140001d4f
mov qword [rdx], rax
add qword [0x14000f3d0], 8
inc ebx
jmp 0x140001d13
lea r8, [rsp + 0x40]
lea rcx, [0x14000f3c8]
call fcn.140001050
inc ebx
jmp 0x140001d13
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x140001d7f
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0xa0], rsi
lea rdx, [rsp + 0xa0]
lea rcx, [0x14000a540]
call sub.dxgi.dll_CreateDXGIFactory1
test eax, eax
js 0x140001edf
nop dword [rax + rax]
mov edx, esi
inc esi
mov rcx, qword [rsp + 0xa0]
call fcn.140001940
test al, al
je 0x140001dba
cmp esi, 4
jb 0x140001da0
mov rbx, qword [0x14000f3e0]
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], 0
jne 0x140001eb9
lea rdi, str.true
nop word [rax + rax]
mov edx, dword [rbx + 0x1c]
lea rcx, str.__u__n
call fcn.140001f00
lea rdx, str.false
cmp byte [rbx + 0x20], 0
cmovne rdx, rdi
lea rcx, str.is_intel_s_n
call fcn.140001f00
lea rdx, str.false
cmp byte [rbx + 0x21], 0
cmovne rdx, rdi
lea rcx, str.is_dgpu_s_n
call fcn.140001f00
lea rdx, str.false
cmp byte [rbx + 0x22], 0
cmovne rdx, rdi
lea rcx, str.supports_av1_s_n
call fcn.140001f00
lea rdx, str.false
cmp byte [rbx + 0x23], 0
cmovne rdx, rdi
lea rcx, str.supports_hevc_s_n
call fcn.140001f00
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x140001e88
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x140001e83
nop
cmp rbx, qword [rax + 0x10]
jne 0x140001e83
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140001e70
mov rbx, rax
jmp 0x140001eaf
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x140001eaf
nop dword [rax]
nop dword [rax + rax]
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x140001ea0
cmp byte [rbx + 0x19], 0
je 0x140001de0
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x140001ecd
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
xor eax, eax
jmp 0x140001ed3
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
lea rax, [0x14000a550]
mov qword [rsp + 0x48], rax
lea rdx, [0x14000d6c8]
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140006ee0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x5090
call fcn.140008510
sub rsp, rax
mov rax, qword [0x14000f018]
xor rax, rsp
mov qword [rsp + 0x5080], rax
mov esi, r9d
mov rax, r8
mov ebx, edx
mov rdi, rcx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
mov qword [rdi + 8], rcx
mov dword [rdi + 0x10], ecx
mov dword [rdi + 0x18], edx
lea rcx, vtable.MFX::MFXDefaultPlugins.0
mov qword [rdi], rcx
mov r8d, 0x1000
lea rdx, [rsp + 0x3080]
mov rcx, qword [rax + 0x530]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140006ff9
lea edx, [rax + 0x5c]
lea rcx, [rsp + 0x3080]
call sub.VCRUNTIME140.dll_wcsrchr
lea r9, [rsp + 0x3080]
test rax, rax
cmovne r9, rax
lea rax, [rsp + 0x3080]
mov rcx, r9
sub rcx, rax
sar rcx, 1
lea eax, [rcx + 0x1a]
cmp eax, 0x1000
jae 0x140006ff9
not ecx
lea edx, [rcx + 0x1000]
lea rcx, [r9 + 2]
mov r8d, esi
call fcn.140006040
lea rcx, [rsp + 0x3080]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140006ff9
xor edx, edx
mov r8d, 0x3040
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov word [rsp + 0x3070], 0x100
mov dword [rsp + 0x4c], ebx
lea r8, [rsp + 0x3080]
mov edx, 0x1000
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140007ac0
nop
mov rax, rdi
mov rcx, qword [rsp + 0x5080]
xor rcx, rsp
call fcn.140008200
add rsp, 0x5090
pop rdi
pop rsi
pop rbx
ret
Function at 0x140007cb0
Capabilities:
Query or enumerate registry key

Disassembly:
sub rsp, 0x48
mov rcx, qword [rcx]
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
sete al
add rsp, 0x48
ret

Function at 0x140007d90
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rbx, qword [rsp + 0x70]
xor r14d, r14d
mov dword [rsp + 0x60], r8d
mov rsi, r9
mov edi, r8d
test rbx, rbx
je 0x140007dbe
mov ebp, dword [rbx]
jmp 0x140007dc1
mov ebp, r14d
mov rcx, qword [rcx]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140007e5e
cmp dword [rsp + 0x60], edi
jne 0x140007e5e
lea eax, [rdi - 1]
cmp eax, 1
ja 0x140007e22
test rsi, rsi
je 0x140007e22
test rbx, rbx
je 0x140007e22
mov r8d, ebp
cmp r8, 2
jb 0x140007e5e
mov edx, dword [rbx]
lea rcx, [r8 - 2]
shr r8, 1
mov eax, edx
shr rax, 1
dec r8
cmp rcx, rdx
cmovb rax, r8
mov word [rsi + rax*2], r14w
mov al, 1
jmp 0x140007e60
cmp edi, 7
jne 0x140007e5a
test rsi, rsi
je 0x140007e5a
test rbx, rbx
je 0x140007e5a
mov r8d, ebp
cmp r8, 4
jb 0x140007e5e
mov edx, dword [rbx]
lea rcx, [r8 - 4]
shr r8, 1
mov eax, edx
shr rax, 1
dec r8
inc rax
cmp rcx, rdx
cmovb rax, r8
mov dword [rsi + rax*2 - 2], r14d
mov al, 1
jmp 0x140007e60
xor al, al
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret

Function at 0x140008cf8
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x1400b3030]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor esi, esi
mov r14, rdx
cmp qword [rcx + 0x18], 8
mov rbx, rcx
mov qword [rsp + 0x30], rsi
jb 0x1400250cb
mov rdx, qword [rcx]
jmp 0x1400250ce
mov rdx, rbx
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
xor eax, eax
lea rdi, [rsp + 0x40]
mov ecx, 0x208
lea rdx, [rsp + 0x40]
rep stosb byte [rdi], al
xor ecx, ecx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x140025110
mov rcx, qword [rsp + 0x30]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, [0x140099430]
lea rax, [rsp + 0x40]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], 4
lea rdx, [0x140099458]
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x38], 7
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8, qword [rbx + 0x18]
cmp r8, 8
jb 0x1400251a0
mov rdx, qword [rbx]
inc r8
call fcn.140022c50
mov qword [rbx + 0x18], 7
cmp qword [rbx + 0x18], 8
mov qword [rbx + 0x10], rsi
jb 0x1400251b6
mov rbx, qword [rbx]
mov word [rbx], si
mov r8, qword [r14 + 0x18]
cmp r8, 8
jb 0x1400251ce
mov rdx, qword [r14]
inc r8
call fcn.140022c50
mov qword [r14 + 0x18], 7
cmp qword [r14 + 0x18], 8
mov qword [r14 + 0x10], rsi
jb 0x1400251e9
mov rax, qword [r14]
mov word [rax], si
jmp 0x1400251ed
mov word [r14], si
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140055320
mov rbx, qword [rsp + 0x290]
add rsp, 0x260
pop r14
pop rdi
pop rsi
ret
Function at 0x140035ec0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x140
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x1400b3030]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, rcx
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea rax, [rbx + 0x2c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x140035fd0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 8], rax
test rax, rax
jne 0x140035faf
mov qword [rsp + 0x38], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rdx, str.Thread::Start
lea rcx, [rsp + 0x48]
call fcn.140022550
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0xd0]
call fcn.140023710
nop
lea rdx, str.CreateThreadfailed__error
mov rcx, rax
call fcn.14002ada0
mov rcx, rax
lea rdx, [rsp + 0x30]
call fcn.140035160
mov rcx, rax
call fcn.140036630
mov rcx, rax
call fcn.140033ff0
mov rcx, rax
lea rdx, [rsp + 0x38]
call fcn.140036470
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140023810
lea rdx, [0x1400aea80]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, rbx
call fcn.140036240
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140055320
add rsp, 0x140
pop rbx
ret
Function at 0x140048fa0
Capabilities:
Identify system language via api

Disassembly:
sub rsp, 0x28
cmp byte [0x1400b4bed], 0
je 0x140048fb8
mov eax, dword [0x1400b4c20]
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx r8d, ax
mov edx, r8d
and edx, 0x3ff
sub edx, 7
je 0x14004901e
sub edx, 3
je 0x140048ffa
sub edx, 0xb
je 0x140048ff0
cmp edx, 1
je 0x140048fe6
xor eax, eax
add rsp, 0x28
ret
mov eax, 2
add rsp, 0x28
ret
mov eax, 5
add rsp, 0x28
ret
mov eax, 0xfc00
mov ecx, 0x800
and r8w, ax
mov edx, 1
cmp r8w, cx
mov eax, 3
cmovne eax, edx
add rsp, 0x28
ret
mov eax, 4
add rsp, 0x28
ret

Function at 0x14004cfa0
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x260]
sub rsp, 0x360
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x390], rbx
mov rax, qword [0x1400b3030]
xor rax, rsp
mov qword [rbp + 0x250], rax
mov r10, rdx
mov rsi, rcx
xor ebx, ebx
mov dword [rsp + 0x28], ebx
lea rdi, [rbp + 0x40]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
mov rcx, r10
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jns 0x14004d044
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.OLE32.dll_CoTaskMemFree]
lea rcx, [rbp - 0x20]
call fcn.140023630
nop
mov rcx, rax
call fcn.14004d510
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.140023810
lea rdx, [0x1400aea80]
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rbx
mov word [rsp + 0x60], bx
mov rdx, qword [rsp + 0x20]
cmp word [rdx], bx
jne 0x14004d066
mov r8, rbx
jmp 0x14004d07a
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], bx
jne 0x14004d070
lea rcx, [rsp + 0x60]
call fcn.140022640
nop
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
lea rcx, [rbp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.OLE32.dll_CoTaskMemFree]
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x30], bx
cmp word [rbp + 0x40], 0
je 0x14004d0da
lea rax, [rbp + 0x40]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14004d0d0
mov r8, rbx
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.140022640
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140023950
nop
mov r8, qword [rsp + 0x78]
cmp r8, 8
jb 0x14004d111
inc r8
mov rdx, qword [rsp + 0x60]
call fcn.140022c50
mov rax, rsi
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.140055320
mov rbx, qword [rsp + 0x390]
add rsp, 0x360
pop rdi
pop rsi
pop rbp
ret