joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4ce520
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4cf600
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4cef22
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f1108]
test eax, eax
je 0x2fc4cefba
lea rax, [0x2fc4f10e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f1110]
mov qword [rbp - 8], rax
jmp 0x2fc4cef9e
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 0x2fc4cef92
cmp qword [rbp - 0x10], 0
je 0x2fc4cef92
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 0x2fc4cef58
lea rax, [0x2fc4f10e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4cefbb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4cf0c0
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 0x2fc4cf0e8
mov eax, 0
jmp 0x2fc4cf136
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 0x2fc4cf111
mov eax, 0
jmp 0x2fc4cf136
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 0x2fc4cf131
mov eax, 0
jmp 0x2fc4cf136
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cf13c
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 0x2fc4cf1ba
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cf1b1
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 0x2fc4cf1b1
mov rax, qword [rbp - 8]
jmp 0x2fc4cf1cf
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 0x2fc4cf184
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400028a0
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
lea rax, vtable.IPCService.0
mov rbx, rcx
mov qword [rcx], rax
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
xor ebp, ebp
mov dword [rbx + 0x40], 0xffffffff
lea rdx, [rsp + 0x30]
mov qword [rbx + 0x48], rbp
lea rcx, [rsp + 0x48]
mov qword [rbx + 0x50], rbp
mov esi, eax
mov dword [rbx + 0x44], ebp
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], rbp
mov dword [rbx + 0x20], ebp
call fcn.1400077d0
lea rcx, [rbx + 0x38]
mov dword [rbx + 0x58], ebp
lea rdx, str.GlobalEEU_Memory_Map_Mutex
call fcn.140008de0
test eax, eax
jne 0x14000293e
mov rcx, qword [0x140075cd8]
test rcx, rcx
je 0x140002a54
lea r9, str.CreateMutex_failed.
mov edx, 0x60004008
mov r8d, 1
call fcn.1400065c0
jmp 0x140002a54
xor r9d, r9d
lea rax, str.GlobalEEU_Memory_Map
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
xor ecx, ecx
mov dword [rsp + 0x20], 0x170
lea r8d, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov qword [rbx + 0x28], rax
test rax, rax
jne 0x140002988
mov rcx, qword [0x140075cd8]
test rcx, rcx
je 0x140002a54
lea r9, str.CreateFileMapping_failed.
jmp 0x140002929
xor r9d, r9d
mov qword [rsp + 0x20], 0x170
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 6]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbx + 0x30], rax
test rax, rax
jne 0x1400029c9
mov rcx, qword [0x140075cd8]
test rcx, rcx
je 0x140002a54
lea r9, str.MapViewOfFile_failed.
jmp 0x140002929
xor edx, edx
mov r8d, 0x170
mov rcx, rax
call fcn.14000ccf0
mov rax, qword [rbx + 0x30]
mov edx, esi
mov rcx, rbx
mov dword [rax], 8
call fcn.140003010
lea rdx, [rsp + 0x80]
lea rcx, str.ClientStatusMonitoring
call fcn.140007060
test eax, eax
je 0x140002a4d
cmp dword [rsp + 0x80], ebp
je 0x140002a4d
mov r9, rbx
lea r8, [0x1400036e0]
mov edx, 8
lea rcx, [rbx + 0x50]
call fcn.140008f60
test eax, eax
jne 0x140002a4d
mov rcx, qword [0x140075cd8]
test rcx, rcx
je 0x140002a54
lea r9, str.CreateTheThread_for_GetClientStatusThread_failed.
mov edx, 0x60004002
lea r8d, [rax + 1]
call fcn.1400065c0
jmp 0x140002a54
mov dword [rbx + 0x48], 1
lea r11, [rsp + 0x70]
mov rax, rbx
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140003ca0
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push rbx
sub rsp, 0x250
mov ebx, ecx
call fcn.140004030
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x104
call fcn.14000ccf0
xor edx, edx
lea rcx, [rsp + 0x140]
mov r8d, 0x104
call fcn.14000ccf0
mov r8d, 0x104
lea rdx, [rsp + 0x140]
lea rcx, str.COMMONPROGRAMFILES
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x140003d53
lea rax, str.ATI_TechnologiesDSEManager.exe
mov qword [rsp + 0x28], 0
lea r9, [rsp + 0x140]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rcx, [rsp + 0x30]
mov edx, 0x104
call fcn.140032a20
test eax, eax
jne 0x140003d3e
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140003d53
cmp eax, 0x10
je 0x140003d53
lea rdx, [rsp + 0x30]
mov ecx, ebx
call fcn.140003d70
add rsp, 0x250
pop rbx
ret
lea rcx, str.Unable_to_create_path_for_DSE_Manager._n
call fcn.140004330
add rsp, 0x250
pop rbx
ret
Function at 0x140004030
Capabilities:
Check if file exists
Enumerate processes
Query environment variable
Terminate process

Disassembly:
push rbp
push r14
lea rbp, [rsp - 0x4b8]
sub rsp, 0x5b8
xor edx, edx
lea rcx, [rbp + 0x190]
mov r8d, 0x104
call fcn.14000ccf0
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x104
call fcn.14000ccf0
mov r8d, 0x104
lea rdx, [rsp + 0x50]
lea rcx, str.COMMONPROGRAMFILES
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x1400042c1
lea rax, str.ATI_TechnologiesDSEManager.exe
xor r14d, r14d
mov qword [rsp + 0x28], r14
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x104
lea rcx, [rbp + 0x190]
call fcn.140032a20
test eax, eax
jne 0x1400040d9
lea rcx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400042c1
cmp eax, 0x10
je 0x1400042c1
xor edx, edx
mov qword [rsp + 0x5e0], rsi
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140004113
lea rcx, str.Unable_to_get_snapshot_of_all_processes._n
call fcn.140004330
mov rsi, qword [rsp + 0x5e0]
add rsp, 0x5b8
pop r14
pop rbp
ret
mov qword [rsp + 0x5b0], rdi
mov edi, r14d
mov qword [rsp + 0x5d8], rbx
nop word [rax + rax]
xor edx, edx
lea rcx, [rbp + 0x64]
mov r8d, 0x12c
call fcn.14000ccf0
mov dword [rbp + 0x60], 0x130
test edi, edi
jne 0x14000415a
lea rdx, [rbp + 0x60]
mov rcx, rsi
call sub.KERNEL32.dll_Process32First
jmp 0x140004168
jle 0x140004170
lea rdx, [rbp + 0x60]
mov rcx, rsi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x140004295
xor edx, edx
lea rcx, [rbp + 0x2a0]
mov r8d, 0x100
call fcn.14000ccf0
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x100
call fcn.14000ccf0
mov qword [rsp + 0x40], 0x100
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rcx, [rbp + 0x8c]
lea rax, [rbp + 0x2a0]
mov qword [rsp + 0x30], 0x100
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r14
xor edx, edx
call fcn.140033a54
test eax, eax
jne 0x14000428e
lea rdx, str.DSEManager
lea rcx, [rbp + 0x2a0]
call fcn.140032460
test eax, eax
jne 0x14000428e
lea rdx, str..exe
lea rcx, [rsp + 0x50]
call fcn.140032460
test eax, eax
jne 0x14000428e
mov r8d, dword [rbp + 0x68]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x14000428e
xor edx, edx
lea rcx, [rbp + 0x3a0]
mov r8d, 0x104
call fcn.14000ccf0
lea r9, [rbp + 0x4d0]
mov dword [rbp + 0x4d0], 0x104
lea r8, [rbp + 0x3a0]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameA]
test eax, eax
je 0x140004285
lea rdx, [rbp + 0x190]
lea rcx, [rbp + 0x3a0]
call fcn.140032460
test eax, eax
jne 0x140004285
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
jmp 0x140004130
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x5b0]
mov rbx, qword [rsp + 0x5d8]
mov rsi, qword [rsp + 0x5e0]
add rsp, 0x5b8
pop r14
pop rbp
ret
lea rcx, str.Unable_to_create_path_for_DSE_Manager._n
call fcn.140004330
add rsp, 0x5b8
pop r14
pop rbp
ret
Function at 0x140006420
Capabilities:
Print debug messages

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x130
lea rax, vtable.LogMsg.0
mov rsi, rdx
mov qword [rcx], rax
lea rdx, [r11 + 8]
xor eax, eax
mov rbx, rcx
mov qword [rcx + 0x10c], rax
mov rbp, r8
mov qword [rcx + 0x118], rax
lea rcx, str.LogOutputDebug
mov dword [r11 + 8], eax
call fcn.140007060
test eax, eax
je 0x140006483
cmp dword [rsp + 0x140], 0
je 0x140006483
or dword [rbx + 0x10c], 1
lea rdx, [rsp + 0x140]
lea rcx, str.LogOutputFile
call fcn.140007060
test eax, eax
je 0x1400064ac
cmp dword [rsp + 0x140], 0
je 0x1400064ac
or dword [rbx + 0x10c], 4
lea rdx, [rsp + 0x140]
lea rcx, str.LogMaskLevel
call fcn.140007060
test eax, eax
je 0x1400064d5
mov eax, dword [rsp + 0x140]
test eax, eax
je 0x1400064d5
mov dword [rbx + 0x110], eax
mov rdx, rsi
lea rcx, [rbx + 8]
call fcn.140002840
test byte [rbx + 0x10c], 4
je 0x140006533
lea r9, [rbx + 8]
mov r8, rbp
lea rdx, str._s_s.txt
lea rcx, [rsp + 0x20]
call fcn.140002840
lea rdx, [0x14005df64]
lea rcx, [rsp + 0x20]
call fcn.140034614
mov qword [rbx + 0x118], rax
test rax, rax
jne 0x140006533
lea rcx, str.fopen_failed.
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
and dword [rbx + 0x10c], 0xfffffffb
lea r11, [rsp + 0x130]
mov rax, rbx
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1400066c0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x440
test byte [rcx + 0x10c], 5
mov rdi, r9
mov ebp, r8d
mov rbx, rcx
je 0x1400067c5
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x450], rsi
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [rsp + 0x3c]
lea rcx, [rsp + 0x240]
movzx eax, word [rsp + 0x3e]
movzx r9d, word [rsp + 0x3a]
movzx r8d, word [rsp + 0x38]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edx
lea rdx, str._02d:_02d:_02d:_03d
call fcn.140002840
test ebp, ebp
je 0x14000675f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
lea r9, [rsp + 0x240]
lea r8, [rbx + 8]
mov qword [rsp + 0x20], rdi
lea rdx, str._s__t_s__s_GetLastError___x_r_n
lea rcx, [rsp + 0x40]
call fcn.140002840
jmp 0x140006781
lea r9, [rsp + 0x240]
mov qword [rsp + 0x20], rdi
lea r8, [rbx + 8]
lea rdx, str._s__t_s__s_r_n
lea rcx, [rsp + 0x40]
call fcn.140002840
mov eax, dword [rbx + 0x10c]
mov rsi, qword [rsp + 0x450]
test al, 1
je 0x1400067a4
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [rbx + 0x10c]
test al, 4
je 0x1400067c5
mov rcx, qword [rbx + 0x118]
lea rdx, [rsp + 0x40]
call fcn.140006860
mov rcx, qword [rbx + 0x118]
call fcn.1400342d8
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x2fc523c30
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 0x2fc524632
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc549108]
test eax, eax
je 0x2fc5246ca
lea rax, [0x2fc5490e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc549110]
mov qword [rbp - 8], rax
jmp 0x2fc5246ae
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 0x2fc5246a2
cmp qword [rbp - 0x10], 0
je 0x2fc5246a2
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 0x2fc524668
lea rax, [0x2fc5490e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc5246cb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc5247d0
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 0x2fc5247f8
mov eax, 0
jmp 0x2fc524846
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 0x2fc524821
mov eax, 0
jmp 0x2fc524846
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 0x2fc524841
mov eax, 0
jmp 0x2fc524846
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc52484c
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 0x2fc5248ca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc5248c1
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 0x2fc5248c1
mov rax, qword [rbp - 8]
jmp 0x2fc5248df
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 0x2fc524894
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1800014f6
Capabilities:
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
jmp 0x180007f00
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x178
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x198]
lea rcx, [0x180147005]
call fcn.18000424b
mov eax, dword [rbp + 0x168]
mov dword [rbp + 0x64], eax
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 0x18
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800e
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
xor r9d, r9d
mov r8d, 0x20
mov rdx, qword [rbp + 0x170]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, qword [rbp + 0x28]
mov edx, 0x6610
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
lea rax, [rbp + 0x64]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x160]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 1
xor edx, edx
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea rcx, [rbp - 0x30]
lea rdx, [0x180088dc0]
call fcn.180003940
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret

Function at 0x180001947
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x18006a074
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x18008eed0]
mov ecx, 3
lea r8, [0x18008eec8]
lea rdx, str.FlsAlloc
call fcn.180069720
test rax, rax
je 0x18006a0b0
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x180148020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]
Function at 0x180001f69
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x18007a958
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x18013bbc8]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor r10d, r10d
lea r11, [0x18013e678]
test r9, r9
lea rdi, [0x18008a34c]
mov rax, rdx
mov r15, rdx
cmovne r11, r9
test rdx, rdx
lea ebp, [r10 + 1]
cmovne rdi, rdx
mov r14d, ebp
cmovne r14, r8
neg rax
sbb rsi, rsi
and rsi, rcx
test r14, r14
jne 0x18007a9c1
mov rax, 0xfffffffffffffffe
jmp 0x18007ab0f
cmp word [r11 + 6], r10w
jne 0x18007aa30
movzx r9d, byte [rdi]
inc rdi
test r9b, r9b
js 0x18007a9eb
test rsi, rsi
je 0x18007a9dc
mov dword [rsi], r9d
test r9b, r9b
setne r10b
mov rax, r10
jmp 0x18007ab0f
mov al, r9b
and al, 0xe0
cmp al, 0xc0
jne 0x18007a9f9
mov r8b, 2
jmp 0x18007aa17
mov al, r9b
and al, 0xf0
cmp al, 0xe0
jne 0x18007aa07
mov r8b, 3
jmp 0x18007aa17
mov al, r9b
and al, 0xf8
cmp al, 0xf0
jne 0x18007aafd
mov r8b, 4
movzx eax, r8b
mov ecx, 7
sub ecx, eax
mov edx, ebp
shl edx, cl
mov bl, r8b
sub edx, ebp
and edx, r9d
jmp 0x18007aa59
mov r8b, byte [r11 + 4]
mov edx, dword [r11]
mov bl, byte [r11 + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x18007aafd
cmp bl, bpl
jb 0x18007aafd
cmp bl, r8b
jae 0x18007aafd
movzx ebp, bl
cmp rbp, r14
mov r9d, ebp
cmovae r9, r14
jmp 0x18007aa86
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x18007aafd
mov eax, edx
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r15
cmp rax, r9
jb 0x18007aa68
cmp r9, rbp
jae 0x18007aab2
movzx eax, r8b
sub bl, r9b
mov word [r11 + 4], ax
movzx eax, bl
mov word [r11 + 6], ax
mov dword [r11], edx
jmp 0x18007a9b5
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x18007aafd
cmp edx, 0x110000
jae 0x18007aafd
movzx eax, r8b
mov dword [rsp + 0x20], 0x80
mov dword [rsp + 0x24], 0x800
mov dword [rsp + 0x28], 0x10000
cmp edx, dword [rsp + rax*4 + 0x18]
jb 0x18007aafd
test rsi, rsi
je 0x18007aaf0
mov dword [rsi], edx
neg edx
mov qword [r11], r10
sbb rax, rax
and rax, rbp
jmp 0x18007ab0f
mov qword [r11], r10
call fcn.1800022b6
mov dword [rax], 0x2a
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180002888
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800023e7
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x18000a81c
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x180000000], ax
jne 0x18000a8a9
movsxd rcx, dword [0x18000003c]
lea rdx, [0x180000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x18000a8a9
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18000a8a9
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x18000a890
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x18000a88a
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x18000a892
add rdx, 0x28
jmp 0x18000a86f
xor edx, edx
test rdx, rdx
jne 0x18000a89b
xor al, al
jmp 0x18000a8af
cmp dword [rdx + 0x24], 0
jge 0x18000a8a5
xor al, al
jmp 0x18000a8af
mov al, 1
jmp 0x18000a8af
xor al, al
jmp 0x18000a8af
add rsp, 0x18
ret

Function at 0x1800026ee
Capabilities:
Encode data using xor

Disassembly:
jmp 0x18001f870
mov rax, rcx
neg rcx
test rax, 7
je 0x18001f88d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x18001f8e8
test al, 7
jne 0x18001f880
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x18001f8a1
mov rdx, qword [rax - 8]
test dl, dl
je 0x18001f912
test dh, dh
je 0x18001f90c
shr rdx, 0x10
test dl, dl
je 0x18001f906
test dh, dh
je 0x18001f900
shr rdx, 0x10
test dl, dl
je 0x18001f8fa
test dh, dh
je 0x18001f8f4
shr edx, 0x10
test dl, dl
je 0x18001f8ee
test dh, dh
jne 0x18001f8a1
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x180002a09
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x180018cb8
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x18008b308]
mov ecx, 2
lea r8, [0x18008b300]
lea rdx, str.FlsGetValue
call fcn.180018788
mov ecx, ebx
test rax, rax
je 0x180018cf2
add rsp, 0x20
pop rbx
jmp qword [0x180148020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]