joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001880
Capabilities:
Print debug messages

Disassembly:
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0xc0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0xa0]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x68], 0
mov ecx, dword [rsp + 0xd0]
call fcn.140001bf0
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x70], 0x30
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x88], 0
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], 0
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x70]
mov edx, 0x1fffff
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ZwOpenProcess]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x14000195a
mov edx, dword [rsp + 0x30]
lea rcx, [0x140001f60]
call sub.ntoskrnl.exe_DbgPrint
mov eax, dword [rsp + 0x30]
jmp 0x140001b1a
lea r9, [rsp + 0x38]
mov r8d, 0x200
mov edx, 0x28
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ZwOpenProcessTokenEx]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x1400019a0
lea rcx, [0x140001f80]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [rsp + 0x30]
jmp 0x140001b1a
mov dword [rsp + 0xa0], 1
mov eax, 0xc
imul rax, rax, 0
mov dword [rsp + rax + 0xac], 2
mov ecx, 0x14
call fcn.140001bc0
mov qword [rsp + 0x50], rax
mov eax, 0xc
imul rax, rax, 0
mov rcx, qword [rsp + 0x50]
mov qword [rsp + rax + 0xa4], rcx
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0xa0]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwAdjustPrivilegesToken]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x140001a39
lea rcx, [0x140001fa0]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [rsp + 0x30]
jmp 0x140001b1a
mov r9d, 4
lea r8, [rsp + 0x40]
mov edx, 0x1d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ZwSetInformationProcess]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x140001a7f
lea rcx, [0x140001fc0]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [rsp + 0x30]
jmp 0x140001b1a
lea rcx, [0x140001ff0]
call sub.ntoskrnl.exe_DbgPrint
mov ecx, 7
call fcn.140001bc0
mov qword [rsp + 0x58], rax
mov eax, 0xc
imul rax, rax, 0
mov rcx, qword [rsp + 0x58]
mov qword [rsp + rax + 0xa4], rcx
mov r9d, 4
lea r8, [rsp + 0x40]
mov edx, 0x1d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ZwSetInformationProcess]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x140001af3
lea rcx, [0x140002020]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [rsp + 0x30]
jmp 0x140001b1a
lea rcx, [0x140002050]
call sub.ntoskrnl.exe_DbgPrint
lea rcx, [0x140002080]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140001cb0
add rsp, 0xc0
pop rdi
ret
Function at 0x140001ea0
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x2c0
mov rax, qword [0x14001d040]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov rdi, rcx
mov qword [rsp + 0x30], rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea r8, [0x14001593c]
lea rcx, [rsp + 0x38]
call fcn.140007cd0
cmp qword [rax + 0x18], 7
jbe 0x140001ef2
mov rax, qword [rax]
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbp, rax
mov rdx, qword [rsp + 0x50]
cmp rdx, 7
jbe 0x140001f48
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001f43
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001f43
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140012be0
movdqa xmm0, xmmword [0x1400166b0]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], r14w
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 7
mov word [rdi], r14w
mov dword [rsp + 0x20], 1
mov qword [rsp + 0x28], r14
cmp rbp, 0xffffffffffffffff
je 0x14000202c
nop dword [rax]
lea rdx, [rsp + 0x60]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x14000202c
lea rdx, [rsp + 0x74]
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jns 0x140001f90
mov rax, qword [rsp + 0x74]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x8c]
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], 0
jne 0x140001fd3
mov rax, qword [rdi + 0x18]
cmp rdx, rax
ja 0x140002017
mov rsi, rdi
cmp rax, 7
jbe 0x140001ff2
mov rsi, qword [rdi]
mov qword [rdi + 0x10], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
lea rdx, [rsp + 0x8c]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rsi], r14w
jmp 0x140001f90
lea r9, [rsp + 0x8c]
mov rcx, rdi
call fcn.140008810
jmp 0x140001f90
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rax, rdi
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.140012790
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140006a40
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14001d040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, 0xffff
movzx edi, dx
mov rbx, rcx
cmp si, dx
jne 0x140006a71
xor eax, eax
jmp 0x140006bbb
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
test r8, r8
je 0x140006aae
mov r9, qword [rcx + 0x58]
movsxd r10, dword [r9]
lea rdx, [r8 + r10*2]
cmp r8, rdx
jae 0x140006aae
lea ecx, [r10 - 1]
movzx eax, di
mov dword [r9], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 2]
mov qword [rdx], rcx
mov word [r8], di
jmp 0x140006bbb
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xb0], rbp
je 0x140006bb0
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140006af5
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub rdx, rcx
mov rax, qword [rbx + 0x38]
sar rdx, 1
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140006b03
movzx ecx, di
jmp 0x140006b57
lea rax, [rsp + 0x48]
mov word [rsp + 0x40], di
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x42]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140006b70
sub eax, 1
je 0x140006b70
cmp eax, 2
jne 0x140006bb0
movzx ecx, word [rsp + 0x40]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
cmp ax, si
cmove di, si
movzx eax, di
jmp 0x140006bb3
mov rbp, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rbp, rax
je 0x140006b9e
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbp
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbp, rax
jne 0x140006bb0
lea rax, [rsp + 0x40]
mov byte [rbx + 0x72], 1
cmp qword [rsp + 0x50], rax
cmovne si, di
movzx eax, si
mov rbp, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140012790
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret

Function at 0x140006dd0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub r8, rdx
movabs rax, 0xcbf29ce484222325
sar r8, 1
mov r9d, 0
add r8, r8
je 0x140006e14
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140006e00
ret
Function at 0x140007550
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14001d040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140007625
cmp byte [rcx + 0x72], 0
je 0x140007625
mov rax, qword [rcx]
mov qword [rsp + 0x78], rdi
mov edi, 0xffff
mov edx, edi
call qword [rax + 0x18]
cmp di, ax
je 0x140007621
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_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400075e6
sub eax, 1
je 0x1400075ea
cmp eax, 2
jne 0x140007621
mov byte [rbx + 0x72], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140012790
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x72], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140007618
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 0x140007621
cmp byte [rbx + 0x72], 0
sete al
jmp 0x1400075ce
xor al, al
jmp 0x1400075ce
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140012790
add rsp, 0x60
pop rbx
ret
Function at 0x14000fc60
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
mov ebp, 0xfffd
nop word [rax + rax]
movzx ecx, word [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp ax, 9
ja 0x14000fd43
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14000fd43
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x14000fd61
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x14000fd33
cmp word [rax], 0x5c
jne 0x14000fd2c
lea rdx, [rax + 2]
cmp rdx, rcx
je 0x14000fd2c
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14000fd17
movzx ecx, word [rdx]
sub cx, 0x28
cmp cx, 1
jbe 0x14000fd29
test r8b, 0x10
jne 0x14000fd2c
movzx ecx, word [rdx]
sub cx, 0x7b
test bp, cx
jne 0x14000fd2c
mov rax, rdx
add rax, 2
mov qword [rbx], rax
mov rcx, rbx
call fcn.14000adc0
test edi, edi
jne 0x14000fc90
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.14000adb0
int3

Function at 0x1400133e0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001342a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001342a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001342a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001342a
cmp dword [rcx + 0x84], 0xe
jbe 0x14001342a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001342c
xor al, al
add rsp, 0x28
ret
Function at 0x140001710
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140002540
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140002540
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140001780
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400070a4]
mov rbx, rcx
test esi, esi
jle 0x1400018b0
mov rax, qword [0x1400070a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400017cb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001855
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400017b0
mov rcx, rbx
call fcn.1400021d0
mov rdi, rax
test rax, rax
je 0x1400018d2
mov rax, qword [0x1400070a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002310
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400070a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400018b7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000184e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001860
add dword [0x1400070a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400070a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000184e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001710
nop dword [rax]
xor esi, esi
jmp 0x1400017d8
mov rax, qword [0x1400070a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001710
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001710
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001e40
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x140001e9c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140001e93
test rsi, rsi
je 0x140001e93
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001e78
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400021d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400043d0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400021f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400021f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400021f0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000224d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002244
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400021f0
add rax, 0x28
cmp rax, r9
jne 0x140002230
xor eax, eax
ret

Function at 0x140002250
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043d0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000226f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002278
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000226f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002310
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043d0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000232f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002338
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x2fc4c3b50
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.2fc4c4c10
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4c4552
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4e9108]
test eax, eax
je 0x2fc4c45ea
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 0x2fc4c45ce
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 0x2fc4c45c2
cmp qword [rbp - 0x10], 0
je 0x2fc4c45c2
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 0x2fc4c4588
lea rax, [0x2fc4e90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4c45eb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4c46f0
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 0x2fc4c4718
mov eax, 0
jmp 0x2fc4c4766
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 0x2fc4c4741
mov eax, 0
jmp 0x2fc4c4766
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 0x2fc4c4761
mov eax, 0
jmp 0x2fc4c4766
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4c476c
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 0x2fc4c47ea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4c47e1
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 0x2fc4c47e1
mov rax, qword [rbp - 8]
jmp 0x2fc4c47ff
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 0x2fc4c47b4
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400022d1
Capabilities:
Parse pe header

Disassembly:
add byte [rax - 0x75], cl
adc eax, 0x74e9
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002273
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000227b
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002273
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400022d0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400022c7
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002273
add rax, 0x28
cmp rax, r9
jne 0x1400022b3
xor eax, eax
ret
Function at 0x1800069d0
Capabilities:
Hash data using murmur3

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
movaps xmmword [rsp + 0x50], xmm6
mov rsi, rcx
lea rax, [rcx + 0x28]
mov qword [rsp + 0x38], rax
movzx eax, byte [rcx + 0x68]
mov rcx, qword [rsp + 0x38]
mov byte [rcx + rax], 0x80
mov al, byte [rsi + 0x68]
add al, 1
mov byte [rsi + 0x68], al
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x30], rcx
movzx eax, al
mov rcx, qword [rsp + 0x30]
add rcx, rax
movabs rdx, 0x4bd7d4fbd3954c73
mov r8d, 0x40
add r8, rdx
sub r8, rax
sub r8, rdx
xor edx, edx
call fcn.180028cc0
movzx eax, byte [rsi + 0x68]
mov dword [rsp + 0x44], eax
mov eax, 0x3ae4ebd
mov r14d, 0x98c689f5
mov ebx, 0x5ed9b186
xorps xmm6, xmm6
cmp eax, 0x32692ac6
jg 0x180006a90
cmp eax, 0x98c689f5
je 0x180006ad4
cmp eax, 0xdff011e9
je 0x180006b05
cmp eax, 0x3ae4ebd
jne 0x180006a50
mov eax, dword [rsp + 0x44]
cmp eax, 0x39
mov eax, 0x4530b4a0
cmovge eax, ebx
jmp 0x180006a50
cmp eax, 0x32692ac7
je 0x180006b37
cmp eax, 0x4530b4a0
je 0x180006b21
cmp eax, 0x5ed9b186
jne 0x180006a50
mov rdx, qword [rsp + 0x30]
mov rcx, rsi
call fcn.180006430
mov rax, qword [rsp + 0x30]
movups xmmword [rax + 0x30], xmm6
movups xmmword [rax + 0x20], xmm6
movups xmmword [rax + 0x10], xmm6
movups xmmword [rax], xmm6
mov eax, 0x4530b4a0
jmp 0x180006a50
mov rax, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x2c]
add ecx, 0x37
movsxd rcx, ecx
mov rdx, qword [rsp + 0x38]
mov byte [rdx + rcx], al
mov rdi, qword [rsp + 0x48]
shr rdi, 8
mov ebp, dword [rsp + 0x2c]
add ebp, 0xffffffff
mov eax, 0xdff011e9
jmp 0x180006a50
mov dword [rsp + 0x2c], ebp
mov qword [rsp + 0x48], rdi
cmp dword [rsp + 0x2c], 0
mov eax, 0x32692ac7
cmovg eax, r14d
jmp 0x180006a50
mov rdi, qword [rsi]
shl rdi, 3
mov eax, 0xdff011e9
mov ebp, 8
jmp 0x180006a50
mov rdx, qword [rsp + 0x30]
mov rcx, rsi
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
jmp fcn.180006430
Function at 0x180006b60
Capabilities:
Hash data using sha256

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov rdi, r8
mov r8, rdx
mov rdx, rcx
mov rax, qword [0x180046008]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x1800395a0]
movups xmmword [rsp + 0x38], xmm0
movaps xmm0, xmmword [0x1800395b0]
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x30], 0
mov byte [rsp + 0x98], 0
lea rsi, [rsp + 0x30]
mov rcx, rsi
call fcn.1800061f0
mov rcx, rsi
call fcn.1800069d0
xor ecx, ecx
mov eax, 0xe1d52c20
mov edx, 0xe753a6bd
cmp edx, 0xa6937d80
je 0x180006c7c
cmp edx, 0xe1d52c20
je 0x180006c10
cmp edx, 0xe753a6bd
jne 0x180006bd0
mov dword [rsp + 0x2c], ecx
mov edx, dword [rsp + 0x2c]
cmp edx, 8
mov edx, 0xa6937d80
cmovb edx, eax
jmp 0x180006bd0
mov ecx, dword [rsp + 0x2c]
mov ebx, dword [rsp + rcx*4 + 0x38]
mov ecx, ebx
shr ecx, 0x18
mov esi, dword [rsp + 0x2c]
lea edx, [rsi*4]
mov byte [rdi + rdx], cl
mov ecx, ebx
shr ecx, 0x10
lea esi, [rsi*4 + 1]
mov byte [rdi + rsi], cl
mov ecx, edx
not ecx
mov esi, ecx
and esi, 0x56db14b6
mov ebp, edx
and ebp, 0xa924eb48
or ebp, esi
xor ebp, 0x56db14b4
mov byte [rdi + rbp], bh
and ecx, 0xd0a068a6
and edx, 0x2f5f9758
or edx, ecx
xor edx, 0xd0a068a5
mov byte [rdi + rdx], bl
mov ecx, dword [rsp + 0x2c]
add ecx, 1
jmp 0x180006bcb
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.180026fa0
nop
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
ret