joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005bd0
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov r14d, r9d
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
xor r15d, r15d
xor r9d, r9d
xor r8d, r8d
mov dword [rax + 8], r15d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rcx, qword [rsi + 0x20]
lea r9, [rsp + 0x80]
mov rbp, rax
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x50], r15
mov r8d, ebx
mov qword [rsp + 0x20], rax
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x140005ce6
cmp eax, 0x3e5
je 0x140005ce6
cmp byte [rsi + 0x19], r15b
je 0x140005cda
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.HECI_Error:
mov ebx, eax
call fcn.140005400
test ebx, ebx
je 0x140005cc7
mov qword [rsp + 0x30], r15
lea rdi, [0x1400a6820]
mov dword [rsp + 0x28], 0x7ff
xor r9d, r9d
mov r8d, ebx
mov qword [rsp + 0x20], rdi
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov r9, rdi
lea rdx, [0x140080de0]
mov r8d, ebx
lea rcx, str._s___d_:__s_n
call fcn.140005400
or eax, 0xffffffff
mov dword [rsp + 0x80], eax
jmp 0x140005d65
lea rdx, [0x140080de0]
lea rcx, [0x140080e50]
call fcn.140005400
or eax, 0xffffffff
mov dword [rsp + 0x80], eax
jmp 0x140005d65
mov edx, r14d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140005d05
mov eax, r15d
mov dword [rsp + 0x80], eax
jmp 0x140005d65
mov rcx, qword [rsi + 0x20]
lea r8, [rsp + 0x80]
mov r9d, 1
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x140005d5e
cmp byte [rsi + 0x19], r15b
je 0x140005cda
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.HECI_Error:
mov ebx, eax
call fcn.140005400
test ebx, ebx
je 0x140005cc7
mov edx, ebx
lea rcx, [0x140080de0]
call fcn.140006260
or eax, 0xffffffff
mov dword [rsp + 0x80], eax
jmp 0x140005d65
mov eax, dword [rsp + 0x80]
test rbp, rbp
je 0x140005d7a
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x80]
test eax, eax
jne 0x140005da5
mov rcx, qword [rsi + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x140005d9d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x80]
mov qword [rsi + 0x20], 0xffffffffffffffff
mov dword [rsi + 0x1c], r15d
mov byte [rsi + 0x18], r15b
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140005dc0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov r14d, r9d
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
xor r15d, r15d
xor r9d, r9d
xor r8d, r8d
mov dword [rax + 8], r15d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rcx, qword [rsi + 0x20]
lea r9, [rsp + 0x80]
mov rbp, rax
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x50], r15
mov r8d, ebx
mov qword [rsp + 0x20], rax
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x140005ed9
cmp eax, 0x3e5
je 0x140005ed9
cmp byte [rsi + 0x19], r15b
je 0x140005eca
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.HECI_Error:
mov ebx, eax
call fcn.140005400
test ebx, ebx
je 0x140005eb7
mov qword [rsp + 0x30], r15
lea rdi, [0x1400a6820]
mov dword [rsp + 0x28], 0x7ff
xor r9d, r9d
mov r8d, ebx
mov qword [rsp + 0x20], rdi
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov r9, rdi
lea rdx, [0x140080df0]
mov r8d, ebx
lea rcx, str._s___d_:__s_n
call fcn.140005400
or eax, 0xffffffff
mov dword [rsp + 0x80], eax
jmp 0x140005f7e
lea rdx, [0x140080df0]
lea rcx, [0x140080e50]
call fcn.140005400
or eax, 0xffffffff
mov dword [rsp + 0x80], eax
jmp 0x140005f7e
mov edx, r14d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140005f1d
cmp byte [rsi + 0x19], r15b
je 0x140005f11
lea rcx, str.HECI_Error:
call fcn.140005400
lea rdx, str.WriteFile_timed_out
lea rcx, [0x140080e50]
call fcn.140005400
mov eax, r15d
mov dword [rsp + 0x80], eax
jmp 0x140005f7e
mov rcx, qword [rsi + 0x20]
lea r8, [rsp + 0x80]
xor r9d, r9d
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x140005f77
cmp byte [rsi + 0x19], r15b
je 0x140005eca
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.HECI_Error:
mov ebx, eax
call fcn.140005400
test ebx, ebx
je 0x140005eb7
mov edx, ebx
lea rcx, [0x140080df0]
call fcn.140006260
or eax, 0xffffffff
mov dword [rsp + 0x80], eax
jmp 0x140005f7e
mov eax, dword [rsp + 0x80]
test rbp, rbp
je 0x140005f93
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x80]
test eax, eax
jne 0x140005fbe
mov rcx, qword [rsi + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x140005fb6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x80]
mov qword [rsi + 0x20], 0xffffffffffffffff
mov dword [rsi + 0x1c], r15d
mov byte [rsi + 0x18], r15b
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140006ab8
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x14009b3d0]
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, Ordinal_19
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 0x140006b1f
mov byte [rax], 0
mov edx, Ordinal_19
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.14000689c
mov r8d, Ordinal_261
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x140006b7a
lea rdx, [0x1400692f8]
lea rcx, [rsp + 0x130]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
test eax, eax
setne al
jmp 0x140006b7c
mov al, 1
mov byte [rbx + 0x10], al
mov rax, rbx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14005d930
add rsp, 0x240
pop rbx
ret

Function at 0x1400083ec
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov rbx, r8
sub edx, 0xd
je 0x1400084bc
sub edx, 2
je 0x14000843e
cmp edx, 1
jne 0x1400084ed
lea rcx, [rbp - 0x10]
call fcn.140026694
nop
lea rcx, [rbp - 0x10]
call fcn.140026848
test eax, eax
jne 0x14000843c
mov rcx, rbx
call fcn.140007bbc
nop
jmp 0x1400084b1
lea rcx, [rbp - 0x10]
call fcn.140026694
nop
lea rcx, [rbp - 0x10]
call fcn.140026848
test eax, eax
jne 0x1400084b1
and dword [rbp + 0x18], eax
lea rdx, [rbp + 0x18]
mov rcx, qword [0x14009c9d0]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rbp + 0x18], 0x103
je 0x1400084b1
mov rcx, qword [0x14009c9d0]
test rcx, rcx
je 0x140008484
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [rbp - 0x20], 0
lea rax, [rbp - 0x20]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x1400071b4]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x14009c9d0], rax
lea rcx, [rbp - 0x10]
call fcn.140026760
jmp 0x1400084ed
lea rax, str.AcmHandler.cpp
mov qword [rbp - 0x10], rax
mov dword [rbp - 8], 0x444
lea r8, str.Received_wlan_notification_acm_interface_arrival_event
mov edx, 0x35
lea rcx, [rbp - 0x10]
call fcn.140006d78
mov ecx, 1
call fcn.1400195fc
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
Function at 0x14000dad0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, reloc.MurocApi.dll_Ordinal_352
sub rsp, 0x260
mov rax, qword [0x14009b3d0]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov dword [rsp + 0x30], edx
mov rbx, rcx
test rcx, rcx
jne 0x14000db34
lea rax, str.AdapterSwitchingThread.cpp
mov dword [rsp + 0x48], 0x3ed
lea edx, [rcx + 0x35]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x40]
lea r8, str.pAS_is_NULL__returning_n
call fcn.140006d78
jmp 0x14000dbd0
mov edi, 0x200
lea rcx, [rsp + 0x50]
mov r8d, edi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea r8, [rbx + 0x40]
mov edx, edi
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea r8, [0x14006bf00]
mov edx, edi
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rax, [rsp + 0x38]
mov byte [rbp + 0x14f], 0
mov r9d, 0x20006
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000dbd0
mov rcx, qword [rsp + 0x38]
lea r9d, [rax + 4]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.AdapterSwitchingState
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.14005d930
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14000e4c0
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x458]
sub rsp, 0x540
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14009b3d0]
xor rax, rsp
mov qword [rbp + 0x430], rax
mov rdi, rcx
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x30]
call sub.VCRUNTIME140.dll_memset
lea rcx, str.AT6Eng___AT6Dialog
call fcn.14001182c
lea rdx, [0x14006c10f]
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc140.dll_Ordinal_310]
nop
lea r9, [0x1400a3976]
mov r8d, Ordinal_30
lea rdx, str.iWrap.exe__CMD:_d__s
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc140.dll_Ordinal_4648]
mov ebx, 0x68
mov r8d, ebx
xor edx, edx
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov dword [rbp - 0x70], ebx
xor r14d, r14d
mov qword [rbp - 0x68], r14
mov qword [rbp - 0x28], r14
mov word [rbp - 0x2e], r14w
mov qword [rbp - 0x60], r14
mov dword [rbp - 0x34], r14d
lea rcx, [rbp]
call fcn.140028078
nop
lea rcx, [rbp]
call fcn.14002812c
mov rsi, rax
test rax, rax
je 0x14000e65c
lea rcx, str.AT6Eng___AT6Dialog___LaunchiWrapCmd___Got_Token
call fcn.14001182c
mov rcx, qword [rsp + 0x60]
mov edx, dword [rcx - 0x10]
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc140.dll_Ordinal_4937]
mov r8, rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], Ordinal_39
lea ebx, [r14 + 1]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x14000e650
mov rax, qword [rsp + 0x78]
mov dword [rdi + 0x6e08], eax
mov r9d, eax
lea r8, str.AT6Eng___AT6Dialog___LaunchiWrapCmd___process_created___d_
mov edx, 0x400
lea rcx, [rbp + 0x30]
call fcn.1400094c4
lea rcx, [rbp + 0x30]
call fcn.14001182c
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000e65f
lea rcx, [rdi + 0x6e0c]
call fcn.140013444
mov bl, r14b
lea rcx, [rbp]
call fcn.1400280a8
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
mov al, bl
mov rcx, qword [rbp + 0x430]
xor rcx, rsp
call fcn.14005d930
lea r11, [rsp + 0x540]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x14000e6a0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov r8d, dword [rcx + 0x6e08]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x14000e6e4
lea rcx, str.AT6Eng___AT6Dialog___AT6DialogTerminate___Forced_Terminate
call fcn.14001182c
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add rsp, 0x20
pop rbx
ret
Function at 0x14000fe54
Capabilities:
Get session user name

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x5e64]
mov rbx, rcx
test edx, edx
je 0x14000fe83
sub edx, 1
je 0x14000fe7a
cmp edx, 1
jne 0x14000fe8f
lea rcx, str.AT6Eng___FW_ProfileState___PR_UPDATED
jmp 0x14000fe8a
lea rcx, str.AT6Eng___FW_ProfileState___PR_DUPLICATE
jmp 0x14000fe8a
lea rcx, str.AT6Eng___FW_ProfileState___PR_IS_NEW
call fcn.14001182c
mov ecx, dword [rbx + 0x5e68]
test ecx, ecx
je 0x14000feb5
sub ecx, 1
je 0x14000feac
cmp ecx, 1
jne 0x14000fec1
lea rcx, str.AT6Eng___SW_ProfileState___PR_UPDATED
jmp 0x14000febc
lea rcx, str.AT6Eng___SW_ProfileState___PR_DUPLICATE
jmp 0x14000febc
lea rcx, str.AT6Eng___SW_ProfileState___PR_IS_NEW
call fcn.14001182c
cmp byte [rbx + 0x7c], 0
lea rax, str.AT6Eng___bSWStorageFull____Space
lea rcx, str.AT6Eng___bSWStorageFull____FULL
cmove rcx, rax
call fcn.14001182c
cmp byte [rbx + 0x7d], 0
lea rax, str.AT6Eng___bFWStorageFull____Space
lea rcx, str.AT6Eng___bFWStorageFull____FULL
cmove rcx, rax
call fcn.14001182c
lea rcx, str.AT6Eng__
add rsp, 0x20
pop rbx
jmp fcn.14001182c

Function at 0x140010264
Capabilities:
Get session user name

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, str.AT6Eng_:
call fcn.14001182c
lea rdx, [rbx + 0x10d0]
mov rcx, rbx
lea r8, str.DB___Admin
call fcn.140010190
lea rdx, [rbx + 0x14c]
mov rcx, rbx
lea r8, str.DB___User
call fcn.140010190
lea rdx, [rbx + 0x4ee0]
mov rcx, rbx
lea r8, str.SW___Admin
call fcn.140010190
lea rdx, [rbx + 0x3f5c]
mov rcx, rbx
lea r8, str.SW___User
call fcn.140010190
lea rdx, [rbx + 0x2fd8]
mov rcx, rbx
lea r8, str.FW___Admin
call fcn.140010190
lea rdx, [rbx + 0x2054]
mov rcx, rbx
lea r8, str.FW___User
call fcn.140010190
lea rcx, str.AT6Eng_:
add rsp, 0x20
pop rbx
jmp fcn.14001182c

Function at 0x1400115f8
Capabilities:
Check for sandbox username or hostname
Get session user name

Disassembly:
push rbx
sub rsp, 0x450
mov rax, qword [0x14009b3d0]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rbx, rcx
mov dword [rsp + 0x30], Ordinal_39
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x400
call sub.VCRUNTIME140.dll_memset
lea r8, str.SYSTEM
mov edx, 0x20
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov rcx, rbx
mov byte [rbx + 0x84], 1
call fcn.1400113b8
test al, al
je 0x1400116a0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov rcx, rbx
call fcn.140011d14
mov eax, dword [rsp + 0x30]
lea r8, str.AT6Eng___LoadCurrentUserName____s__d
mov r9, rbx
mov dword [rsp + 0x20], eax
mov edx, 0x400
lea rcx, [rsp + 0x40]
call fcn.1400094c4
lea rcx, [rsp + 0x40]
call fcn.14001182c
mov byte [rbx + 0x84], 0
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14005d930
add rsp, 0x450
pop rbx
ret
Function at 0x14001182c
Capabilities:
Get session user name

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xf0
mov qword [rbp - 0x49], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rax, qword [0x14009b3d0]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
lea rcx, [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
lea rcx, [rbp - 0x51]
call qword [sym.imp.mfc140.dll_Ordinal_316]
nop
movzx eax, word [rbp - 0x33]
movzx edx, word [rbp - 0x35]
movzx r9d, word [rbp - 0x37]
movzx r8d, word [rbp - 0x39]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edx
lea rdx, str._02d:_02d:_02d._03d
lea rcx, [rbp - 0x51]
call qword [sym.imp.mfc140.dll_Ordinal_4648]
xor edx, edx
lea r8d, [rdx + 0x64]
lea rcx, [rbp - 0x29]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x61], 0x64
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
and qword [rbp - 0x69], 0
lea r8, [0x14006c124]
lea rdx, str.c:AMTSync.txt
lea rcx, [rbp - 0x69]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov rcx, qword [rbp - 0x69]
test rcx, rcx
je 0x14001195a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea r8, [0x14006c138]
lea rdx, str.c:AMTSync.txt
lea rcx, [rbp - 0x69]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
cmp qword [rbp - 0x69], 0
je 0x14001195a
lea rcx, [rbp - 0x59]
call qword [sym.imp.mfc140.dll_Ordinal_316]
nop
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x29]
mov r8, qword [rbp - 0x51]
lea rdx, str._s___s_:__s_n
lea rcx, [rbp - 0x59]
call qword [sym.imp.mfc140.dll_Ordinal_4648]
mov r8, qword [rbp - 0x59]
lea rdx, [0x14006c150]
mov rcx, qword [rbp - 0x69]
call fcn.140004b00
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
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 rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14005d930
mov rbx, qword [rsp + 0x108]
add rsp, 0xf0
pop rbp
ret

Function at 0x140011d14
Capabilities:
Get session user name

Disassembly:
sub rsp, 0x28
add rcx, 0x20
call fcn.140028794
lea rcx, str.AT6Eng___Reverting_user_________________
add rsp, 0x28
jmp fcn.14001182c

Function at 0x14001240c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
lea rcx, str.AT6Eng___SW_ReadProfiles
call fcn.14001182c
mov rcx, rdi
xor ebx, ebx
call fcn.140011984
test al, al
je 0x14001246a
mov rcx, qword [rdi + 0x5e70]
lea rdx, [rdi + 0x3f5c]
lea r9, [rsp + 0x48]
mov dword [rsp + 0x48], ebx
mov r8d, 0x1f08
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [rdi + 0x5e70]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140012a38
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
lea rcx, str.AT6Eng___SW_WriteProfiles
call fcn.14001182c
mov rcx, rdi
xor ebx, ebx
call fcn.140011984
test al, al
je 0x140012a96
mov rcx, qword [rdi + 0x5e70]
lea rdx, [rdi + 0x3f5c]
lea r9, [rsp + 0x48]
mov dword [rsp + 0x48], ebx
mov r8d, 0x1f08
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rdi + 0x5e70]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140012d20
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
lea rcx, str.AT6Eng___StartAT6Thread
call fcn.14001182c
lea rax, [0x14009cc90]
xor ebx, ebx
mov qword [rsp + 0x28], rax
lea r8, [0x14000e898]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rcx, str.AT6Eng___StartAT6Thread_complete
mov qword [0x1400a3ec8], rax
call fcn.14001182c
cmp qword [0x1400a3ec8], rbx
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x140012d80
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0xb0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x14009b3d0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x20], 0x35
mov r9d, 0xba9
lea r8, str.AT6ProfileSync.cpp
lea rdx, str.CAT6Thread::StopAT6Thread
lea rcx, [rsp + 0x40]
call fcn.140006b9c
mov ebx, 1
mov dword [rsp + 0x30], ebx
mov rcx, qword [0x14009cc40]
test rcx, rcx
je 0x140012e54
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x140012e54
mov rcx, qword [0x1400a3ec8]
test rcx, rcx
je 0x140012e54
mov edx, 0x1b58
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140012e2e
cmp eax, 0x102
jne 0x140012e34
mov edx, ebx
mov rcx, qword [0x1400a3ec8]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, 0x3e8
mov rcx, qword [0x1400a3ec8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x140012e34
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov rcx, qword [0x1400a3ec8]
test rcx, rcx
je 0x140012e4e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x1400a3ec8], 0
jmp 0x140012e54
lea rcx, [rsp + 0x40]
call fcn.140006cd4
mov eax, ebx
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14005d930
add rsp, 0xb0
pop rbx
ret
Function at 0x140012e7c
Capabilities:
Encrypt data using dpapi

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x370]
sub rsp, 0x470
mov rax, qword [0x14009b3d0]
xor rax, rsp
mov qword [rbp + 0x360], rax
mov r14d, dword [rcx + 0x64bc]
lea r15, [rcx + 0x64c0]
mov rdi, rcx
mov esi, 0x400
mov r8d, esi
lea rcx, [rsp + 0x60]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
test r14d, r14d
jne 0x140012ee9
lea rcx, str.AT6Eng___UnprotectKeyMaterial___No_Data
call fcn.14001182c
jmp 0x1400130ab
mov r9d, dword [rdi + 0x5f10]
xor ebx, ebx
mov r13d, reloc.mfc140.dll_Ordinal_300
lea eax, [r9 - 4]
test eax, 0xfffffffd
je 0x140012fe3
lea r8, str.AT6Eng___UnprotectKeyMaterial___NON_PSK__d
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.1400094c4
lea rcx, [rsp + 0x60]
call fcn.14001182c
movzx ecx, word [rdi + 0x5f1c]
xor esi, esi
sub ecx, 1
je 0x140012fbc
sub ecx, 1
je 0x140012f9c
sub ecx, 1
je 0x140012f7c
cmp ecx, 1
jne 0x140013009
xor edx, edx
cmp dword [rdi + 0x699c], ecx
jne 0x140012f60
lea rbx, [rdi + 0x6acc]
lea esi, [rcx + 0x3f]
jmp 0x140012f6c
lea rbx, [rdi + 0x69f1]
mov esi, Ordinal_30
mov r8, rsi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
jmp 0x140013009
cmp dword [rdi + 0x699c], 1
mov eax, 0x40
mov ebx, 0x6a8c
lea esi, [rax - 0x25]
cmovne eax, esi
mov esi, eax
mov eax, 0x69d6
jmp 0x140012fd8
cmp dword [rdi + 0x699c], 1
mov eax, 0x40
mov ebx, 0x6a4c
lea esi, [rax - 0x25]
cmovne eax, esi
mov esi, eax
mov eax, 0x69bb
jmp 0x140012fd8
cmp dword [rdi + 0x699c], 1
mov eax, 0x40
mov ebx, 0x6a0c
lea esi, [rax - 0x25]
cmovne eax, esi
mov esi, eax
lea eax, [rbx - 0x6c]
cmovne rbx, rax
add rbx, rdi
xor edx, edx
jmp 0x140012f6c
xor edx, edx
mov r8, r13
cmp dword [rdi + 0x6104], ebx
lea rbx, [rdi + 0x6108]
je 0x140012ffe
lea rbx, [rdi + 0x6234]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov rsi, r13
and dword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
and qword [rsp + 0x48], 0
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x30], rax
xor r9d, r9d
and dword [rsp + 0x28], 0
xor r8d, r8d
and qword [rsp + 0x20], 0
xor edx, edx
mov dword [rsp + 0x50], r14d
mov qword [rsp + 0x58], r15
call sub.CRYPT32.dll_CryptUnprotectData
test eax, eax
je 0x140013094
lea rcx, [rdi + 0x6108]
mov r8, r13
xor edx, edx
call sub.VCRUNTIME140.dll_memset
test rbx, rbx
je 0x140013074
mov r9d, dword [rsp + 0x40]
mov rdx, rsi
mov r8, qword [rsp + 0x48]
mov rcx, rbx
call fcn.1400132f0
mov r9d, r14d
lea r8, str.AT6Eng___UnprotectKeyMaterial___pKeyMaterial__d
mov edx, 0x400
lea rcx, [rsp + 0x60]
call fcn.1400094c4
lea rcx, [rsp + 0x60]
jmp 0x14001309b
lea rcx, str.AT6Eng___UnprotectKeyMaterial___ERROR
call fcn.14001182c
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.14005d930
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret