joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140014790
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, 1
nop dword [rax + rax]
mov eax, dword [0x1400ab6a0]
cmp eax, 2
je 0x1400149bd
xor eax, eax
lock cmpxchg dword [0x1400ab6a0], ebx
cmp eax, 1
je 0x1400149b2
lea rcx, [0x14007cd58]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
lea rdx, str.RtlEnterCriticalSection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400abad0], rax
lea rdx, str.RtlLeaveCriticalSection
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400abad8], rax
lea rdx, str.NtQueryInformationProcess
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400abae0], rax
lea rdx, str.NtQueryVolumeInformationFile
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400abae8], rax
lea rdx, str.NtQueryObject
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400abaf0], rax
lea rdx, str.RtlNtStatusToDosError
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400abaf8], rax
lea rdx, str.RtlCompareUnicodeString
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400abb00], rax
lea rdx, str.RtlGetVersion
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400abb08], rax
lea rdx, str.RtlVerifyVersionInfo
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400abb10], rax
lea rdx, str.NtCreateFile
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400abb18], rax
lea rdx, str.NtOpenFile
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400abb20], rax
lea rdx, str.NtCancelIoFile
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400abb28], rax
lea rdx, str.NtClose
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400abb30], rax
lea rdx, str.NtCreateKeyedEvent
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400abb38], rax
lea rdx, str.NtOpenKeyedEvent
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400abb40], rax
lea rdx, str.NtReleaseKeyedEvent
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400abb48], rax
lea rdx, str.NtWaitForKeyedEvent
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400abb50], rax
lea rdx, str.NtSetInformationFile
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400abb58], rax
lea rdx, str.NtQueryInformationFile
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400abb60], rax
lea rdx, str.NtQueryDirectoryFile
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400abb68], rax
mov eax, 2
xchg dword [0x1400ab6a0], eax
jmp 0x1400149bd
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
jmp 0x1400147a0
add rsp, 0x20
pop rbx
ret
Function at 0x140014b70
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov rdi, rdx
lea rsi, [rdx + 0x12c]
mov r14, rcx
xor edx, edx
mov rcx, rdi
mov r8d, 0x12c
call fcn.140026600
mov r8d, 0x12b
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor edx, edx
mov byte [rdi + 0x12b], 0
mov r8d, 0x401
mov rcx, rsi
call fcn.140026600
mov rax, qword [r14]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.140003af0]
mov r9d, 0x401
mov r8, rsi
mov rdx, rdi
mov rcx, r14
call rbx
mov rcx, rsi
mov byte [rsi + 0x400], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
xor edi, edi
mov ebx, edi
lea rcx, [rax + 1]
test rcx, 0xfffffffffffffffe
jne 0x140014c44
mov qword [rsp + 0x30], rdi
lea r8d, [rdi + 7]
mov dword [rsp + 0x28], edi
lea rcx, [0x14007cfc8]
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140014c86
or r8, 0xffffffffffffffff
inc r8
cmp byte [rsi + r8], dil
jne 0x140014c52
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rdi
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140014cc1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140014cc1
cmp byte [0x1400ab6d0], dil
jne 0x140014cc1
call fcn.1400173e0
test eax, eax
jne 0x140014cc1
mov rax, qword [r14]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.140003af0]
mov rcx, r14
call rbx
mov r8, rax
mov r9d, 0x10
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14001daf0
Capabilities:
Get geographical location

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, 1
nop dword [rax + rax]
mov eax, dword [0x1400ab6d4]
cmp eax, 2
je 0x14001dbf0
xor eax, eax
lock cmpxchg dword [0x1400ab6d4], ebx
test eax, eax
je 0x14001db31
cmp eax, 1
jne 0x14001dbeb
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
jmp 0x14001dbeb
mov r9d, 0x1e
lea r8, [0x1400ab708]
lea edx, [r9 - 0xe]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jg 0x14001db69
lea r8, [0x1400820c8]
mov edx, 0x1e
lea rcx, [0x1400ab708]
call fcn.140029c8c
mov r9d, 0xa
lea r8, [0x1400ab6f0]
lea edx, [r9 + 4]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jg 0x14001dba1
lea r8, [0x14007bd40]
mov edx, 0xa
lea rcx, [0x1400ab6f0]
call fcn.140029c8c
mov r9d, 0xa
lea r8, [0x1400ab6d8]
lea edx, [r9 + 5]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jg 0x14001dbd9
lea r8, [0x1400820d0]
mov edx, 0xa
lea rcx, [0x1400ab6d8]
call fcn.140029c8c
mov eax, 2
xchg dword [0x1400ab6d4], eax
jmp 0x14001dbf0
jmp 0x14001db00
add rsp, 0x20
pop rbx
ret
Function at 0x14001e4d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
xor rdx, 4
movabs r11, 0x100000001b3
imul rdx, r11
xor r9d, r9d
mov r10d, r9d
nop dword [rax + rax]
movzx eax, byte [rcx + r10 + 4]
inc r10
xor rdx, rax
imul rdx, r11
cmp r10, 4
jne 0x14001e4f0
mov qword [r8], rdx
cmp dword [rcx], 1
jne 0x14001e554
nop
and byte [r9 + r8], 0x7f
cmp byte [r9 + r8], 0x20
jae 0x14001e52a
cmp byte [r9 + r8], 9
je 0x14001e52a
mov byte [r9 + r8], 0x20
jmp 0x14001e54b
cmp byte [r9 + r8], 0x7f
jne 0x14001e54b
cmp r9, 7
jne 0x14001e53e
mov byte [r9 + r8], 9
jmp 0x14001e54b
mov byte [r9 + r8], 0xd
inc r9
mov byte [r9 + r8], 0xa
inc r9
cmp r9, 8
jne 0x14001e510
ret

Function at 0x14001f3e0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x110
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rbx, rcx
xor esi, esi
mov dword [rsp + 0x20], esi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
jne 0x14001f45c
lea rdx, str.GetCurrentDirectory__
lea rcx, [rsp + 0x48]
call fcn.14000b030
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x58]
call fcn.14000bc60
lea rdx, [0x140098a90]
lea rcx, [rsp + 0x58]
call fcn.1400267a0
int3
mov qword [rbx], rsi
mov qword [rbx + 8], rsi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
mov dword [rsp + 0x20], 1
mov rdx, rdi
mov rcx, rbx
call fcn.14000b150
cmp rdi, rax
jb 0x14001f523
nop word [rax + rax]
cmp rdx, 0xffffffffffffffff
je 0x14001f51d
inc rdx
mov rcx, rbx
call fcn.14000b250
test rax, rax
jne 0x14001f4b7
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx + 8]
mov word [rax + rcx*2 - 2], si
mov rdx, qword [rbx + 8]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
je 0x14001f4da
mov edx, edi
mov rcx, rbx
call fcn.14000b150
cmp rdi, rax
jae 0x14001f490
jmp 0x14001f523
lea rdx, str.GetCurrentDirectory__
lea rcx, [rsp + 0x48]
call fcn.14000b030
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x58]
call fcn.14000bc60
lea rdx, [0x140098a90]
lea rcx, [rsp + 0x58]
call fcn.1400267a0
int3
call fcn.140001580
int3
mov edx, edi
cmp rdx, 0xffffffffffffffff
jne 0x14001f531
call fcn.140001580
int3
inc rdx
mov rcx, rbx
call fcn.14000b250
test rax, rax
jne 0x14001f54e
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx + 8]
mov word [rax + rcx*2 - 2], si
mov rax, rbx
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140024110
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x1400ab7e0]
test rbx, rbx
jne 0x14002420a
cmp byte [0x1400abb7d], bl
jne 0x14002414c
xor r8d, r8d
lea ecx, [rbx + 6]
xor edx, edx
call fcn.14000fe60
mov byte [0x1400abb7c], al
lock or dword [rsp], ebx
mov byte [0x1400abb7d], 1
cmp byte [0x1400abb7c], 0
je 0x1400241e9
lea rcx, [0x14007be00]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.AcquireSRWLockShared
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.AcquireSRWLockExclusive
mov rcx, rbx
mov qword [0x1400ab7e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ReleaseSRWLockShared
mov rcx, rbx
mov qword [0x1400ab7d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ReleaseSRWLockExclusive
mov rcx, rbx
mov qword [0x1400ab7d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.InitializeSRWLock
mov rcx, rbx
mov qword [0x1400ab7c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
lock or dword [rsp], 0
mov qword [0x1400ab7e0], rax
test rax, rax
jne 0x14002420a
lea rcx, [0x1400aba38]
mov byte [0x1400aba30], 0
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rax, [0x1400aba30]
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
mov byte [0x1400aba30], 1
call qword [fcn.140003af0]
lea rcx, [0x1400aba38]
call rbx
lea rax, [0x1400aba30]
add rsp, 0x20
pop rbx
ret
Function at 0x14002d1c8
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x14002cf9c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002cf9c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002cf9c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002cf9c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002cf9c
cmp dword [rcx + 0x84], 0xe
jbe 0x14002cf9c
cmp dword [rcx + 0xf8], esi
je 0x14002cf9c
mov ecx, r14d
call fcn.14002d0e4
mov ecx, 2
call fcn.14002a398
nop
cmp byte [0x1400aa920], 0
jne 0x14002d066
mov r15d, 1
mov eax, r15d
xchg dword [0x1400aa914], eax
test ebx, ebx
jne 0x14002d00f
mov rdi, qword [0x14009b088]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x1400aa918]
cmp rcx, rax
je 0x14002d006
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140003af0]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1400aaa58]
jmp 0x14002d01b
cmp ebx, r15d
jne 0x14002d021
lea rcx, [0x1400aaa70]
call fcn.14002dca0
nop
test ebx, ebx
jne 0x14002d038
lea rdx, [0x14003a558]
lea rcx, [0x14003a530]
call fcn.14002e01c
lea rdx, [0x14003a568]
lea rcx, [0x14003a560]
call fcn.14002e01c
movzx eax, byte [0x1400aa920]
test esi, esi
cmove eax, r15d
mov byte [0x1400aa920], al
jmp 0x14002d066
mov ecx, 2
call fcn.14002a3f8
test esi, esi
jne 0x14002d07d
mov ecx, r14d
call fcn.14002d098
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14002cf2c
Function at 0x140002840
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000286d
xor eax, eax
jmp 0x1400029d9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400028a7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400028a7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1400029d9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400029cc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400028ea
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140002915
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400029d1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002984
sub eax, 1
je 0x140002984
cmp eax, 2
jne 0x1400029cc
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400029d1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400029b2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1400029cc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400029d1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140003870
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002c20
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002cf3
cmp byte [rcx + 0x71], 0
je 0x140002cf3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140002cef
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
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]
test eax, eax
je 0x140002cb4
sub eax, 1
je 0x140002cb8
cmp eax, 2
jne 0x140002cef
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003870
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002ce6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140002cef
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140002c9c
xor al, al
jmp 0x140002c9c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003870
add rsp, 0x60
pop rbx
ret

Function at 0x1400041f0
Capabilities:
Parse pe header

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

Disassembly:
call fcn.14073c1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14073c089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14073c06f
add dl, dl
jne 0x14073c096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14073c0f6
xor eax, eax
add dl, dl
jne 0x14073c0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14073c1ad
add dl, dl
jne 0x14073c0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14073c0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14073c0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14073c0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14073c0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14073c07e
mov eax, 1
add dl, dl
jne 0x14073c106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14073c113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14073c0fb
sub eax, ebx
mov ebx, 1
jne 0x14073c14c
mov ecx, 1
add dl, dl
jne 0x14073c12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14073c13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14073c123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14073c07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14073c168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14073c175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14073c15d
cmp eax, 0x7d00
jae 0x14073c19b
cmp eax, 0x500
jb 0x14073c196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14073c07e
cmp eax, 0x7f
ja 0x14073c19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14073c07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14073c1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14073c07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14006ee3c
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14006ee4f
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.14006f468
lea rdx, [0x140122f40]
lea rcx, [rsp + 0x20]
call fcn.140089d68
int3

Function at 0x14007988c
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x14012b670]
xor edx, edx
jmp fcn.14006ee3c

Function at 0x14007a25c
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x14012b670]
jmp fcn.14006ee3c

Function at 0x1400861b0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x140086270]
mov r9, qword [r9 + 8]
jmp fcn.1400771f4

Function at 0x140086244
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x140086280]
mov r9, qword [r9 + 8]
jmp fcn.1400771f4

Function at 0x1400a3a24
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400a3850
Function at 0x1400c1e94
Capabilities:
Hash data via wincrypt

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
xor ebx, ebx
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x1400c1ec0
mov eax, 0xffffffff
cmp r8, rax
ja 0x1400c1ec0
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
setne bl
mov al, bl
add rsp, 0x20
pop rbx
ret

Function at 0x1400c2110
Capabilities:
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
lea rdi, [rcx + 8]
mov rbx, rcx
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400c2133
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
and qword [rdi], 0
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400c2147
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
and qword [rbx], 0
mov rcx, rbx
call fcn.1400c1fec
mov r9d, eax
mov dword [rsp + 0x20], 0xf0000060
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1400c218e
mov rcx, rbx
call fcn.1400c1ec8
mov rcx, qword [rbx]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov edx, eax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1400c21b8
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400c21a0
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
and qword [rdi], 0
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400c21b4
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
and qword [rbx], 0
xor al, al
jmp 0x1400c21ba
mov al, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1400c3bf0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov byte [r9], 1
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400c3748
test al, al
je 0x1400c3c64
mov rcx, rbx
call fcn.1400c3750
test al, al
je 0x1400c3c64
mov eax, 0xffffffff
cmp rsi, rax
ja 0x1400c3c64
mov rcx, qword [rbx + 0x10]
lea r9, [rsp + 0x58]
and dword [rsp + 0x58], 0
mov r8d, esi
and qword [rsp + 0x20], 0
mov rdx, rbp
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400c3c5e
mov byte [rdi], 0
mov eax, dword [rsp + 0x58]
jmp 0x1400c3c66
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400c3d90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov byte [r9], 1
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400c3748
test al, al
je 0x1400c3e04
mov rcx, rbx
call fcn.1400c3758
test al, al
je 0x1400c3e04
mov eax, 0xffffffff
cmp rsi, rax
ja 0x1400c3e04
mov rcx, qword [rbx + 0x10]
lea r9, [rsp + 0x58]
and dword [rsp + 0x58], 0
mov r8d, esi
and qword [rsp + 0x20], 0
mov rdx, rbp
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400c3dfe
mov byte [rdi], 0
mov eax, dword [rsp + 0x58]
jmp 0x1400c3e06
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret