joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800523a8
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xc0
mov rbx, rcx
mov ecx, 1
mov rdi, r8
mov rsi, rdx
call fcn.180051438
cmp qword [rbx + 0x30], 8
jb 0x1800523da
mov rcx, qword [rbx + 0x18]
jmp 0x1800523de
lea rcx, [rbx + 0x18]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call fcn.18002f034
test eax, eax
jne 0x18005244a
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [0x18008383c]
lea rcx, [rsp + 0x20]
mov r8d, eax
call fcn.180005498
cmp qword [rax + 0x20], 8
jb 0x180052416
mov r8, qword [rax + 8]
jmp 0x18005241a
lea r8, [rax + 8]
lea rdx, str.SoftwareWOW6432Nodeprojonepodlp_volatilehookBypass_
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
cmp qword [rsp + 0x40], 8
jb 0x180052440
mov rcx, qword [rsp + 0x28]
call fcn.180058b34
mov eax, 1
jmp 0x18005253f
xor edx, edx
lea rcx, [rsp + 0x54]
mov dword [rsp + 0x50], 0x68
lea r8d, [rdx + 0x64]
call fcn.180059db0
cmp qword [rbx + 0x30], 8
mov rax, qword [0x1800a4f98]
mov qword [rsp + 0x58], rax
lea rax, [0x18007df10]
mov dword [rsp + 0x54], 0x88
mov qword [rsp + 0x70], rax
lea rax, [0x1800522f0]
mov qword [rsp + 0x60], 0xdb
mov qword [rsp + 0x78], rax
jb 0x1800524a4
mov rcx, qword [rbx + 0x18]
jmp 0x1800524a8
lea rcx, [rbx + 0x18]
call fcn.1800018b4
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x80], rax
lea rax, [sym.shlext64.dll_DllCanUnloadNow]
mov qword [rsp + 0x88], rax
call qword [0x1800a5058]
mov rbx, rax
test rax, rax
je 0x1800524ec
mov rdx, rdi
mov rcx, rax
call rsi
test eax, eax
jne 0x1800524ec
mov rcx, rbx
call qword [0x1800a5060]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [0x18008383c]
lea rcx, [rsp + 0x20]
mov r8d, eax
call fcn.180005498
cmp qword [rax + 0x20], 8
jb 0x180052513
mov r8, qword [rax + 8]
jmp 0x180052517
lea r8, [rax + 8]
lea rdx, str.SoftwareWOW6432Nodeprojonepodlp_volatilehookBypass_
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
cmp qword [rsp + 0x40], 8
jb 0x18005253d
mov rcx, qword [rsp + 0x28]
call fcn.180058b34
xor eax, eax
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x180052554
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jle 0x18005258c
cmp word [rbx + 2], 0x3a
jne 0x18005258c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180052585
test al, 0x10
je 0x180052585
xor eax, eax
jmp 0x1800525a7
mov eax, 1
jmp 0x1800525a7
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
cmp eax, ecx
setne cl
mov eax, ecx
add rsp, 0x20
pop rbx
ret
Function at 0x1800527b4
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x30
mov rdi, 0xffffffff80000002
mov rbx, rcx
mov r8, rcx
test edx, edx
lea rdx, str.SoftwareWOW6432Nodeprojonepodlp_volatileoverlayIcon_
mov rcx, rdi
jne 0x1800527fb
call fcn.180005c34
test al, al
je 0x180052852
lea rdx, str.SoftwareWOW6432Nodeprojonepodlp_volatileoverlayIcon_
mov r8, rbx
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
jmp 0x180052833
mov r9d, 0x64
call fcn.180005694
cmp eax, dword [rsp + 0x48]
je 0x180052852
lea rax, [rsp + 0x48]
mov r9d, 4
lea rdx, str.SoftwareWOW6432Nodeprojonepodlp_volatileoverlayIcon_
mov dword [rsp + 0x28], r9d
mov r8, rbx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.180005b5c
mov rcx, rbx
call fcn.1800018b4
lea rcx, [0x1800525b0]
xor r9d, r9d
mov r8, rax
mov edx, 0x3e8
call fcn.180027f54
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1800548bc
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
call fcn.18002ec5c
lea rcx, [0x1800a5070]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x1800a50c0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x1800a5098]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov ebx, 0x10000
lea r8, [0x180054224]
xor r9d, r9d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x180054554]
xor r9d, r9d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x180054784]
xor r9d, r9d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
add rsp, 0x30
pop rbx
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
Function at 0x180056094
Capabilities:
Check os version

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x170
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x1800a1628]
xor rax, rsp
mov qword [rsp + 0x160], rax
movzx ebp, cx
mov word [rsp + 0x20], cx
mov eax, dword [0x1800a54d0]
test al, 1
jne 0x1800560f9
or eax, 1
mov dword [0x1800a54d0], eax
lea rcx, [0x1800a5490]
call fcn.180043d84
lea rcx, [0x180078804]
call fcn.180059fec
nop
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
lea rcx, [0x1800a5490]
call fcn.1800551b4
mov r12, qword [0x1800a54c0]
mov rsi, qword [rsp + 0x28]
xor edi, edi
cmp rsi, rdi
je 0x18005612b
cmp rsi, qword [0x1800a5490]
je 0x180056130
call fcn.180058f08
mov rbx, qword [rsp + 0x30]
cmp rbx, r12
je 0x18005615a
cmp rsi, rdi
jne 0x180056146
call fcn.180058f08
jmp 0x180056149
mov rdi, qword [rsi]
cmp rbx, qword [rdi + 0x30]
jne 0x180056154
call fcn.180058f08
mov rax, qword [rbx + 0x20]
jmp 0x1800561ba
xor edx, edx
mov r8d, 0x118
lea rcx, [rsp + 0x44]
call fcn.180059db0
mov dword [rsp + 0x40], 0x11c
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x44], 5
jbe 0x180056193
movzx ecx, bp
call fcn.180054f7c
mov rbx, rax
jmp 0x18005619e
movzx ecx, bp
call fcn.180054974
mov rbx, rax
cmp rbx, rdi
je 0x1800561b7
lea rdx, [rsp + 0x20]
lea rcx, [0x1800a5490]
call fcn.180055d80
mov qword [rax], rbx
mov rax, rbx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.180059760
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret

Function at 0x180057f68
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rcx + 8], 0
mov rbx, rcx
je 0x180057fb9
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x180057fb9
and dword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x180057faa
cmp dword [rsp + 0x30], 0x103
jne 0x180057faa
mov rcx, qword [rbx + 0x10]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx + 0x10], 0
add rsp, 0x20
pop rbx
ret
Function at 0x18005809c
Capabilities:
Check if file exists
Get session user name

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
sub rsp, 0x390
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov rax, qword [0x1800a1628]
xor rax, rsp
mov qword [rsp + 0x380], rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xor ebp, ebp
mov word [rsp + 0x170], bp
xor edx, edx
mov r8d, 0x206
lea rcx, [r11 - 0x236]
call fcn.180059db0
mov r9d, 0x104
lea r8, [rsp + 0x170]
lea rdx, str.polocker.exe
mov rcx, rbx
call fcn.180002a48
lea rcx, [rsp + 0x170]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, ebp
jne 0x180058126
lea eax, [rbp + 3]
jmp 0x18005825a
mov qword [rsp + 0x20], rsi
mov r9, rdi
lea r8, [rsp + 0x170]
lea rdx, str.__s___s__s
lea rcx, [rsp + 0x40]
call fcn.180005498
nop
mov word [rsp + 0x70], bp
xor edx, edx
mov r8d, 0xfe
lea rcx, [rsp + 0x72]
call fcn.180059db0
mov dword [rsp + 0x30], 0x80
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
cmp eax, ebp
jne 0x180058194
cmp qword [rsp + 0x60], 8
jb 0x18005818d
mov rcx, qword [rsp + 0x48]
call fcn.180058b34
xor eax, eax
jmp 0x18005825a
call fcn.180027e4c
cmp eax, ebp
jne 0x1800581fe
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
mov ebx, 1
mov r8d, ebx
xor edx, edx
call fcn.1800036e4
cmp rax, rbp
je 0x1800581c8
cmp rax, 0xffffffffffffffff
jne 0x1800581ca
mov ebx, ebp
neg bl
sbb ebx, ebx
not ebx
and ebx, 4
cmp rax, 0xffffffffffffffff
je 0x1800581e8
cmp rax, rbp
je 0x1800581e8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rsp + 0x60], 8
jb 0x1800581fa
mov rcx, qword [rsp + 0x48]
call fcn.180058b34
mov eax, ebx
jmp 0x18005825a
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
mov ebx, 1
mov edx, ebx
call fcn.180003be8
cmp rax, rbp
je 0x180058226
cmp rax, 0xffffffffffffffff
jne 0x180058228
mov ebx, ebp
neg bl
sbb ebx, ebx
not ebx
and ebx, 4
cmp rax, 0xffffffffffffffff
je 0x180058246
cmp rax, rbp
je 0x180058246
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rsp + 0x60], 8
jb 0x180058258
mov rcx, qword [rsp + 0x48]
call fcn.180058b34
mov eax, ebx
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.180059760
mov rbx, qword [rsp + 0x3c8]
add rsp, 0x390
pop rdi
pop rsi
pop rbp
ret

Function at 0x1800586c0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
cmp byte [rcx + 8], 0
mov rbx, rcx
je 0x1800586d3
xor al, al
jmp 0x180058747
mov byte [rcx + 8], 1
lea r8, [0x18007d280]
lea rdx, str.SoftwareWOW6432Nodeprojonepodlp_smprule_
xor r9d, r9d
mov rcx, 0xffffffff80000002
call fcn.180005694
test eax, eax
je 0x180058745
cmp dword [0x1800a4d80], 0
je 0x180058745
lea rcx, [0x18007ed50]
call fcn.180027878
mov ecx, 0x43
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cmp eax, 1
je 0x180058722
cmp eax, 2
jne 0x180058745
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x18005860c]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x10], rax
mov al, 1
add rsp, 0x30
pop rbx
ret
Function at 0x18005ce13
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1800a1628]
jne 0x18005977a
rol rcx, 0x10
test cx, 0xffff
jne 0x180059776
repz ret
ror rcx, 0x10
jmp 0x18005cd6c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1800a5f50]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1800a6048]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x18005cdf1
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1800a5f50]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x18005ce13
mov rax, qword [rsp + 0x88]
mov qword [0x1800a6048], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1800a5fe8], rax
mov rax, qword [0x1800a6048]
mov qword [0x1800a5ec0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1800a5fd0], rax
mov dword [0x1800a5eb0], 0xc0000409
mov dword [0x1800a5eb4], 1
mov rax, qword [0x1800a1628]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1800a1630]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1800a5f48], eax
mov ecx, 1
call fcn.18005b724
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x18007f680]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1800a5f48], 0
jne 0x18005ce9a
mov ecx, 1
call fcn.18005b724
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x18005f624
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x18005f498
Function at 0x180060b44
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.18005b1c4
xor ebx, ebx
mov rdi, rax
cmp qword [0x1800a68b8], rbx
jne 0x180060c4a
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x180060d1f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180060d1f
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1800a68b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1800a68c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x1800a68c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x1800a68d8], rax
test rax, rax
je 0x180060c41
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x1800a68d0], rax
jmp 0x180060c51
mov rax, qword [0x1800a68d0]
jmp 0x180060c58
mov rax, qword [0x1800a68d0]
mov r11, qword [0x1800a68d8]
cmp rax, rdi
je 0x180060cc0
cmp r11, rdi
je 0x180060cc0
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x1800a68d8]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x180060cc0
test rax, rax
je 0x180060cc0
call rsi
test rax, rax
je 0x180060cba
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180060cba
test byte [rsp + 0x38], 1
jne 0x180060cc0
bts ebp, 0x15
jmp 0x180060cfe
mov rcx, qword [0x1800a68c0]
cmp rcx, rdi
je 0x180060cfe
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180060cfe
call rax
mov rbx, rax
test rax, rax
je 0x180060cfe
mov rcx, qword [0x1800a68c8]
cmp rcx, rdi
je 0x180060cfe
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180060cfe
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1800a68b8]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x180060d1f
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x180060d21
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14000ac80
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x68], 0
je 0x14000acb9
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x14000ae03
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x40]
cmp qword [rax], 0
je 0x14000ace3
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x58]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
jmp 0x14000aceb
mov dword [rsp + 0x20], 0
movsxd rax, dword [rsp + 0x20]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x60], 0
jle 0x14000adab
cmp qword [rsp + 0x28], 0
jle 0x14000adab
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x60], rax
jge 0x14000ad23
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x30]
call fcn.140004d20
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x58]
mov ecx, dword [rsp + 0x28]
mov eax, dword [rax]
sub eax, ecx
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x58]
mov dword [rcx], eax
movsxd rax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x40]
add rax, qword [rcx]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x40]
mov qword [rcx], rax
cmp qword [rsp + 0x60], 0
jle 0x14000adf3
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x80], 0
je 0x14000adf3
mov rax, qword [rsp + 0x50]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x60]
mov edx, 1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
add rsp, 0x48
ret
Function at 0x14000c070
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x68], 0
je 0x14000c09b
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14000c0a2
mov al, 1
jmp 0x14000c1fc
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
call fcn.140001250
mov dword [rsp + 0x38], eax
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xb0]
call qword [rsp + 0x50]
mov dword [rsp + 0x3c], eax
call fcn.140001250
mov dword [rsp + 0x40], eax
lea rdx, [rsp + 0x3c]
lea rcx, [rsp + 0x40]
call fcn.140001260
movzx eax, al
test eax, eax
je 0x14000c0f9
xor al, al
jmp 0x14000c1fc
mov qword [rsp + 0x68], 0x20
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x90]
mov rcx, qword [rsp + 0xb0]
add rcx, 0x74
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x70]
mov rdx, rcx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x14000c169
cmp dword [rsp + 0x30], 1
je 0x14000c175
cmp dword [rsp + 0x30], 3
je 0x14000c1ea
jmp 0x14000c1fa
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x14000c1c1
mov rax, qword [rsp + 0xb0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x48]
mov edx, 1
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x48], rax
je 0x14000c1c1
xor al, al
jmp 0x14000c1fc
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14000c1db
mov dword [rsp + 0x34], 1
jmp 0x14000c1e3
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x14000c1fc
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14000c1fc
xor al, al
add rsp, 0xa8
ret
Function at 0x14000d5fc
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 0x14000d680
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140010610]
cmp byte [rcx + rax], 0
je 0x14000d680
dec r8
sub rdx, 1
jne 0x14000d666
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14000e704
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000e74e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000e74e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000e74e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000e74e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000e74e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000e750
xor al, al
add rsp, 0x28
ret
Function at 0x2fc4c3a90
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.2fc4c4b50
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4c4492
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4e9108]
test eax, eax
je 0x2fc4c452a
lea rax, [0x2fc4e90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4e9110]
mov qword [rbp - 8], rax
jmp 0x2fc4c450e
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 0x2fc4c4502
cmp qword [rbp - 0x10], 0
je 0x2fc4c4502
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 0x2fc4c44c8
lea rax, [0x2fc4e90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4c452b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4c4630
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 0x2fc4c4658
mov eax, 0
jmp 0x2fc4c46a6
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 0x2fc4c4681
mov eax, 0
jmp 0x2fc4c46a6
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 0x2fc4c46a1
mov eax, 0
jmp 0x2fc4c46a6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4c46ac
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 0x2fc4c472a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4c4721
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 0x2fc4c4721
mov rax, qword [rbp - 8]
jmp 0x2fc4c473f
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 0x2fc4c46f4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140021060
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140021094
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140021080
ret