joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b2ba4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400b2bba
mov al, 1
jmp 0x1400b2c1a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400b2bcb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400b2c18
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400b3660
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400b2c18
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400b2c18
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400b2c18
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400b2c1a
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400b3770
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.1400ac230
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400ac230
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400b38c0
cmp rax, 0xffffffffffffffff
je 0x1400b38c0
xor edi, edi
test rbp, rbp
jle 0x1400b386b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400b0514
mov rbx, rax
test rax, rax
jne 0x1400b37f8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400b3861
mov edx, 0x8000
mov ecx, r14d
call fcn.1400ad7d4
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.1400aef54
cmp eax, 0xffffffff
je 0x1400b3841
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400b3808
mov edx, r15d
mov ecx, r14d
call fcn.1400ad7d4
jmp 0x1400b3861
cmp byte [rsi + 0x38], dil
je 0x1400b3858
cmp dword [rsi + 0x34], 5
jne 0x1400b3858
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1400b3861
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400b058c
jmp 0x1400b38d4
jns 0x1400b38d4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400ac230
cmp rax, 0xffffffffffffffff
jne 0x1400b388c
cmp byte [rsi + 0x30], dil
je 0x1400b38d4
mov edi, dword [rsi + 0x2c]
jmp 0x1400b38d4
mov ecx, r14d
call fcn.1400b3660
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400b38d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x1400b38d4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400b38cd
mov eax, dword [rsi + 0x2c]
jmp 0x1400b38d2
mov eax, reloc.WLDAP32.dll_Ordinal_22
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400ac230
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 0x1400b7150
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400b7180
xor eax, eax
jmp 0x1400b7243
mov rbp, rbx
cmp word [rax], si
je 0x1400b71a5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400b718c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400b7188
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400b410c
movsxd r14, eax
test eax, eax
jne 0x1400b71e3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400b7179
mov rcx, r14
call fcn.1400b1170
mov rdi, rax
test rax, rax
jne 0x1400b71fc
xor ecx, ecx
call fcn.1400b058c
jmp 0x1400b71d8
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400b410c
test eax, eax
jne 0x1400b722d
mov rcx, rdi
call fcn.1400b058c
jmp 0x1400b7237
xor ecx, ecx
call fcn.1400b058c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400b7260
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400b72e7
mov rsi, rbx
cmp word [rax], bp
je 0x1400b72a6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400b7290
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400b728c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400b1170
mov rdi, rax
test rax, rax
je 0x1400b72d4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400bd800
mov rbp, rdi
xor ecx, ecx
call fcn.1400b058c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400b85a0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400b85c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400a13e4
or eax, 0xffffffff
jmp 0x1400b85c2
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400ba470
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400f0700]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400ba4ba
call fcn.1400a1450
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.1400a1470
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.14009e720
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140095fd0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400ba4c5
lea eax, [rbx + 1]
jmp 0x1400ba4a7
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1400ba4a5
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400ba4a7

Function at 0x1400bd430
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400bd458
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400bd458
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180001b90
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
mov qword [rsp + 0x5c0], rax
mov byte [rsp + 0x17e], 0xa
mov eax, 1
imul rax, rax, 3
mov byte [rsp + rax + 0x1e0], 0x64
mov eax, 1
imul rax, rax, 4
mov byte [rsp + rax + 0x1e0], 0x46
movabs rax, 0x866e6ee19fcbc70c
mov qword [rsp + 0x6c0], rax
mov eax, 1
imul rax, rax, 5
mov byte [rsp + rax + 0x1e0], 0x69
movabs rax, 0x7a99d0b565a224b3
mov qword [rsp + 0x5d0], rax
movabs rax, 0xce764a012ec6318e
mov qword [rsp + 0x5d8], rax
mov dword [rsp + 0x3a8], 0xa65f4ddb
mov dword [rsp + 0x3ac], 0xf97a9c58
mov eax, 1
imul rax, rax, 6
mov byte [rsp + rax + 0x1e0], 0x6c
mov eax, 1
imul rax, rax, 7
mov byte [rsp + rax + 0x1e0], 0x65
mov byte [rsp + 0x17f], 0xa0
movabs rax, 0xb4cfa6cd722226ed
mov qword [rsp + 0x5e0], rax
mov eax, 1
imul rax, rax, 8
mov byte [rsp + rax + 0x1e0], 0
movabs rax, 0x6a55c99845ee0daf
mov qword [rsp + 0x5e8], rax
mov dword [rsp + 0x3b0], 0x725cabb7
movabs rax, 0x90a551d73bc94a48
push rcx
movsd dword [rdi], dword [rsi]
nop
Function at 0x2fc4cb210
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4cbc12
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f0108]
test eax, eax
je 0x2fc4cbcaa
lea rax, [0x2fc4f00e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f0110]
mov qword [rbp - 8], rax
jmp 0x2fc4cbc8e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4cbc82
cmp qword [rbp - 0x10], 0
je 0x2fc4cbc82
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4cbc48
lea rax, [0x2fc4f00e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4cbcab
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4cbdb0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4cbdd8
mov eax, 0
jmp 0x2fc4cbe26
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4cbe01
mov eax, 0
jmp 0x2fc4cbe26
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4cbe21
mov eax, 0
jmp 0x2fc4cbe26
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cbe2c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4cbeaa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cbea1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4cbea1
mov rax, qword [rbp - 8]
jmp 0x2fc4cbebf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4cbe74
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000266c
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x140092690]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
lea r8, [rsp + 0x20]
mov ecx, 6
lea rdx, [0x140000000]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExA]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rsp + 0x20]
mov r9d, 0x10
mov rcx, rax
mov r8, rbx
call sub.PSAPI.DLL_GetModuleBaseNameA
mov edx, 0x2e
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsrchr]
test rax, rax
je 0x1400026d3
mov byte [rax], 0
mov edx, 0x10
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsupr_s]
mov r8, rbx
lea rdx, str.MUROC_TRACE__s
lea rcx, [rsp + 0x30]
call fcn.1400024b4
mov r8d, 0x100
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x14000272e
lea rdx, [0x140064d60]
lea rcx, [rsp + 0x130]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
test eax, eax
setne al
jmp 0x140002730
mov al, 1
mov byte [rbx + 0x10], al
mov rax, rbx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140059ef0
add rsp, 0x240
pop rbx
ret
Function at 0x1400029f8
Capabilities:
Persist via winlogon helper dll registry key
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov qword [rbp - 0x49], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140092690]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov r14, rcx
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x38], rbx
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
lea rcx, [rbp - 0x51]
call qword [sym.imp.mfc140.dll_Ordinal_310]
nop
lea rdx, str.Shell
lea rcx, [rbp - 0x59]
call qword [sym.imp.mfc140.dll_Ordinal_310]
nop
lea rdx, str.Explorer.exe
lea rcx, [rbp - 0x71]
call qword [sym.imp.mfc140.dll_Ordinal_310]
nop
lea rdx, [0x14006508d]
lea rcx, [rbp - 0x79]
call qword [sym.imp.mfc140.dll_Ordinal_310]
nop
cmp qword [r14 + 0x18], rbx
je 0x140002b95
cmp qword [r14 + 0x20], rbx
je 0x140002b95
mov qword [rbp - 0x61], rbx
lea rax, [rbp - 0x61]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rbp - 0x51]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140002b04
mov dword [rbp - 0x65], 1
mov dword [rbp - 0x69], 0x64
lea rax, [rbp - 0x69]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x39]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x65]
xor r8d, r8d
mov rdx, qword [rbp - 0x59]
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140002b04
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x71]
call qword [sym.imp.mfc140.dll_Ordinal_1507]
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rbp - 0x71]
call qword [sym.imp.mfc140.dll_Ordinal_8381]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [r14 + 0x18]
test eax, eax
je 0x140002b95
mov edi, ebx
cmp dword [rsp + 0x30], ebx
jbe 0x140002b8b
mov esi, edi
lea rax, [rsi + rsi*2]
mov rdx, qword [rsp + 0x38]
mov rdx, qword [rdx + rax*8 + 8]
lea rcx, [rbp - 0x79]
call qword [sym.imp.mfc140.dll_Ordinal_1507]
lea rcx, [rbp - 0x79]
call qword [sym.imp.mfc140.dll_Ordinal_8381]
mov rdx, qword [rbp - 0x71]
lea rcx, [rbp - 0x79]
call qword [sym.imp.mfc140.dll_Ordinal_2899]
test eax, eax
je 0x140002b7f
inc edi
cmp edi, dword [rsp + 0x30]
jb 0x140002b3f
jmp 0x140002b8b
lea rcx, [rsi + rsi*2]
mov rax, qword [rsp + 0x38]
mov ebx, dword [rax + rcx*8]
mov rcx, qword [rsp + 0x38]
call qword [r14 + 0x20]
nop
lea rcx, [rbp - 0x79]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
nop
lea rcx, [rbp - 0x71]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
nop
lea rcx, [rbp - 0x59]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
nop
lea rcx, [rbp - 0x51]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140059ef0
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140002ccc
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov rdi, rcx
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140002d09
call fcn.140002f60
cmp dword [rbx + 4], eax
jne 0x140002d19
cmp dword [rbx], 0
je 0x140002d26
mov eax, 1
jmp 0x140002d63
mov rcx, rdi
call fcn.140002de4
mov rbx, rax
test rax, rax
je 0x140002d6e
cmp dword [rbx], 0
je 0x140002d26
mov rcx, rdi
call fcn.14000301c
mov rcx, rdi
call fcn.140002be8
test eax, eax
je 0x140002d87
mov rcx, qword [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x140002da0
mov dword [rbx], 1
call fcn.140002f60
mov dword [rbx + 4], eax
mov rdx, rbx
mov ecx, dword [rdi]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov eax, 1
jmp 0x140002d63
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov dword [rsp + 0x20], 0x1f
lea rdx, [0x14008d730]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
mov dword [rsp + 0x24], 0x1f
lea rdx, [0x14008d730]
lea rcx, [rsp + 0x24]
call sub.VCRUNTIME140.dll__CxxThrowException
mov dword [rsp + 0x28], 0x1f
lea rdx, [0x14008d730]
lea rcx, [rsp + 0x28]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x140002de4
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov rdi, rcx
and qword [rsp + 0x48], 0
mov ecx, 8
call sub.mfc140.dll_Ordinal_1485
mov rbx, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140002e23
and dword [rax], 0
or dword [rax + 4], 0xffffffff
mov rdx, rax
mov ecx, dword [rdi]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
jmp 0x140002e36
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14000301c
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov rdi, rcx
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14000307d
cmp dword [rax], 0
je 0x140003096
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
je 0x1400030af
and dword [rbx], 0
call fcn.140002f60
mov dword [rbx + 4], eax
mov rdx, rbx
mov ecx, dword [rdi]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov eax, 1
jmp 0x140003072
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov dword [rsp + 0x20], 0x1f
lea rdx, [0x14008d730]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
mov dword [rsp + 0x24], 0x1f
lea rdx, [0x14008d730]
lea rcx, [rsp + 0x24]
call sub.VCRUNTIME140.dll__CxxThrowException
mov dword [rsp + 0x28], 0x1f
lea rdx, [0x14008d730]
lea rcx, [rsp + 0x28]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140003180
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov rbx, rdx
mov rdi, rcx
lea rax, vtable.CAppSettingConverter.0
mov qword [rcx], rax
add rcx, 0x10
call qword [sym.imp.mfc140.dll_Ordinal_316]
nop
mov qword [rdi + 8], rbx
lea rcx, [rdi + 0x1c]
xor edx, edx
mov r8d, Ordinal_265
call sub.VCRUNTIME140.dll_memset
lea rcx, [rdi + 0x328]
xor edx, edx
mov r8d, Ordinal_265
call sub.VCRUNTIME140.dll_memset
lea rcx, [rdi + 0x42c]
xor edx, edx
mov r8d, 0x30c
call sub.VCRUNTIME140.dll_memset
lea rcx, [rdi + 0x120]
xor edx, edx
mov r8d, Ordinal_265
call sub.VCRUNTIME140.dll_memset
lea rcx, [rdi + 0x742]
xor edx, edx
mov r8d, Ordinal_265
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov word [rdi + 0x738], ax
mov qword [rdi + 0x73a], rax
lea rax, [rdi + 0x224]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8023
xor ecx, ecx
call qword [sym.imp.SHFOLDER.dll_SHGetFolderPathA]
test eax, eax
jns 0x14000325c
lea rdx, str._tCAppSettingConverter::tCAppSettingConverter_______Could_not_get_AppData_folder_
mov rcx, qword [rdi + 8]
call fcn.140025be0
nop
mov rax, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140004a40
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x840
mov rax, qword [0x140092690]
xor rax, rsp
mov qword [rsp + 0x830], rax
mov rbx, rcx
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x140004a8f
mov edx, 1
call fcn.140025ed0
mov rcx, qword [rbx + 8]
lea rdx, str._t_CAppSettingConverter::Convert___started_
call fcn.140025be0
mov rcx, qword [rbx + 8]
mov edx, 1
call fcn.140025ed0
mov rcx, rbx
call fcn.140007160
test eax, eax
jne 0x140004b9a
mov rcx, rbx
mov qword [rsp + 0x860], rdi
call fcn.140006110
mov edi, eax
test eax, eax
jne 0x140004b5f
cmp qword [rbx + 8], 0
mov qword [rsp + 0x858], rsi
lea rsi, str.SOFTWAREIntelNetwork_ServicesNCSPROSet.sav
je 0x140004afc
lea r9, str._tRemoving__if_exists__registry_sub_key__s
mov qword [rsp + 0x20], rsi
or r8, 0xffffffffffffffff
lea rcx, [rsp + 0x30]
mov edx, 0x800
call fcn.140008c50
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x30]
call fcn.140025be0
mov rdx, rsi
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
cmp qword [rbx + 8], 0
lea rsi, str.SOFTWAREIntelWireless.sav
je 0x140004b47
lea r9, str._tRemoving__if_exists__registry_sub_key__s
mov qword [rsp + 0x20], rsi
or r8, 0xffffffffffffffff
lea rcx, [rsp + 0x30]
mov edx, 0x800
call fcn.140008c50
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x30]
call fcn.140025be0
mov rdx, rsi
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov rsi, qword [rsp + 0x858]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140004b90
mov edx, 1
call fcn.140025ed0
mov rcx, qword [rbx + 8]
lea rdx, str._t_CAppSettingConverter::Convert___completed_
call fcn.140025be0
mov rcx, qword [rbx + 8]
mov edx, 1
call fcn.140025ed0
mov eax, edi
mov rdi, qword [rsp + 0x860]
mov rcx, qword [rsp + 0x830]
xor rcx, rsp
call fcn.140059ef0
add rsp, 0x840
pop rbx
ret
Function at 0x1400060e0
Capabilities:
Copy file
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.1400058c0
test eax, eax
jne 0x1400060ff
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140004e80
add rsp, 0x20
pop rbx
ret
Function at 0x140006740
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x140092690]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov edi, r8d
mov rbx, rdx
test rdx, rdx
jne 0x14000676e
xor al, al
jmp 0x1400067c1
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x801a
xor ecx, ecx
call qword [sym.imp.SHFOLDER.dll_SHGetFolderPathA]
test eax, eax
js 0x14000676a
mov edx, 0x5c
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsrchr]
mov r8, rax
test rax, rax
je 0x1400067bf
add r8, 1
je 0x14000676a
lea eax, [rdi - 1]
mov rdx, rdi
mov r9d, eax
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcpy_s]
mov al, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140059ef0
mov rbx, qword [rsp + 0x160]
add rsp, 0x150
pop rdi
ret

Function at 0x1400068a0
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x140092690]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rdi, qword [rsp + 0x190]
lea rcx, [rsp + 0x30]
mov rsi, r8
mov rbx, rdx
xor edx, edx
mov r8d, Ordinal_265
mov rbp, r9
call sub.VCRUNTIME140.dll_memset
mov rdx, rbx
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea rdx, str.version.ini
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea rax, [rsp + 0x30]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea rcx, str.version.ini
mov eax, dword [rsp + 0x198]
mov r8, rbp
mov rdx, rsi
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140059ef0
mov rbx, qword [rsp + 0x170]
add rsp, 0x150
pop rdi
pop rsi
pop rbp
ret

Function at 0x140006980
Capabilities:
Check if file exists

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
lea rdx, [0x140065ca0]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x20
pop rbx
ret