joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009a570
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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.1400a49b0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400a49b0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x14009a5e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400d8b04]
mov r12, rcx
test ebx, ebx
jle 0x14009a710
mov rax, qword [0x1400d8b08]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14009a62c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14009a6b3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x14009a610
mov rcx, r12
call fcn.14009b040
mov rsi, rax
test rax, rax
je 0x14009a732
mov rax, qword [0x1400d8b08]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.14009b170
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400d8b08]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14009a717
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14009a6ac
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14009a6c0
add dword [0x1400d8b04], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1400d8b08]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14009a6ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14009a570
nop dword [rax]
xor ebx, ebx
jmp 0x14009a637
mov rax, qword [0x1400d8b08]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14009a570
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.14009a570
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14009acb0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1400d8b60]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400d8b40]
test rbx, rbx
je 0x14009ad04
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14009acfb
test r12, r12
je 0x14009acfb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14009ace0
lea rcx, [0x1400d8b60]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14009b040
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400cdbe0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14009b060
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14009b068
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14009b060
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x14009b0b5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14009b0ac
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14009b060
add rax, 0x28
cmp rax, r9
jne 0x14009b098
xor eax, eax
ret

Function at 0x14009b0c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400cdbe0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14009b0e0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14009b0e8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x14009b0e0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x14009b170
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400cdbe0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14009b190
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x14009b198
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x14009b430
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [0x1400d8be0], 0xffffffff
mov r8d, 0xffff
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x1400d8be8], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14009b480
lea rdx, [0x14009b340]
mov ecx, eax
mov dword [0x1400d8bd8], eax
call fcn.1400a5190
test eax, eax
jne 0x14009b488
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14009b477
call sub.msvcrt.dll_abort
nop
nop
Function at 0x14009b490
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x1400cdb20]
mov r11d, dword [rsi]
mov rbx, rcx
test r11d, r11d
jne 0x14009b4c8
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x14009b530
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [rcx + 0x10]
test r12, r12
je 0x14009b540
mov esi, dword [0x1400d8bd8]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
call r13
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x14009b5b0
mov rbp, qword [rsi]
cmp rbp, r12
jb 0x14009b5f8
sub r12, 1
mov rax, qword [rsi + r12*8 + 8]
test rax, rax
jne 0x14009b4b7
mov rcx, rbx
call fcn.14009b390
mov qword [rsi + r12*8 + 8], rax
jmp 0x14009b4b7
call fcn.14009b390
mov qword [rbx + 0x10], rax
jmp 0x14009b4b7
mov r10d, dword [rsi]
test r10d, r10d
je 0x14009b65a
mov r9d, dword [0x1400a6cd0]
test r9d, r9d
je 0x14009b688
lock add dword [0x1400d8be0], 1
jne 0x14009b6bc
mov r12, qword [rbx + 0x10]
test r12, r12
je 0x14009b667
mov eax, dword [rsi]
test eax, eax
je 0x14009b4d1
lock sub dword [0x1400d8be0], 1
js 0x14009b4d1
mov rcx, qword [0x1400d8be8]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x14009b4d1
lea rcx, [r12 + 0x21]
mov edx, 8
lea rdi, [r12 + 0x20]
call sub.msvcrt.dll_calloc
mov rsi, rax
test rax, rax
je 0x14009b6e3
mov qword [rax], rdi
mov ecx, dword [0x1400d8bd8]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x14009b50b
call r13
jmp 0x14009b50b
lea rdi, [rbp + rbp]
lea rax, [r12 + 0x20]
mov rcx, rsi
cmp rdi, r12
cmovb rdi, rax
lea rdx, [rdi*8 + 8]
call sub.msvcrt.dll_realloc
mov rsi, rax
test rax, rax
je 0x14009b6e3
mov qword [rax], rdi
sub rdi, rbp
lea rcx, [rax + rbp*8 + 8]
xor edx, edx
lea r8, [rdi*8]
call sub.msvcrt.dll_memset
jmp 0x14009b5d3
call fcn.14009b430
mov dword [0x1400a6cd0], 1
mov edx, dword [rsi]
test edx, edx
jne 0x14009b55c
mov r12, qword [rbx + 0x10]
test r12, r12
jne 0x14009b4d1
mov rax, qword [0x1400d8bd0]
lea r12, [rax + 1]
mov qword [0x1400d8bd0], r12
mov qword [rbx + 0x10], r12
jmp 0x14009b577
lock add dword [0x1400a6cd4], 1
je 0x14009b641
mov r8d, dword [0x1400a6cd0]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
lea rdi, [0x1400a6cd0]
test r8d, r8d
jne 0x14009b650
nop dword [rax]
xor ecx, ecx
call rbp
mov ecx, dword [rdi]
test ecx, ecx
je 0x14009b6b0
jmp 0x14009b650
mov rcx, qword [0x1400d8be8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14009b56a
lock sub dword [0x1400d8be0], 1
jmp 0x14009b56a
call sub.msvcrt.dll_abort
nop
nop dword [rax]
cmp qword [rcx], rdx
jae 0x14009b700
mov qword [rcx], rdx
mov qword [rcx + 0x18], 0
cmp qword [rcx + 8], r8
jae 0x14009b70a
mov qword [rcx + 8], r8
test r9, r9
je 0x14009b714
cmp qword [rcx], rdx
je 0x14009b718
ret
mov qword [rcx + 0x18], r9
ret
Function at 0x14000b9fc
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140016950], eax
call fcn.14000b77c
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140016950], 0
jne case.default.0x14000ba52
mov ecx, 1
call fcn.14000b77c
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
add byte [rcx + 0x1c], 0x4d
lodsd eax, dword [rsi]
sbb dword [rbx - 0x7e], edx
sal dh, 1
and qword [r13 - 0x642c8993], r8
pushfq
mov ebp, 0xfaedfb49
and dword gs:[rsi], esp
leave
invalid
Function at 0x140001952
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rsi, rcx
mov rbx, rdx
test rdx, rdx
je 0x140001971
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp 0x14000b600
jmp qword [sym.imp.msvcrt.dll_fflush]

Function at 0x140004ed0
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.14000b030
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.14000b030
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 0x140004f40
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140011174]
mov rbx, rcx
test esi, esi
jle 0x140005070
mov rax, qword [0x140011178]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140004f8b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140005015
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140004f70
mov rcx, rbx
call fcn.140005990
mov rdi, rax
test rax, rax
je 0x140005092
mov rax, qword [0x140011178]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140005ad0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140011178]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140005077
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000500e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140005020
add dword [0x140011174], 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 [0x140011178]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000500e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140004ed0
nop dword [rax]
xor esi, esi
jmp 0x140004f98
mov rax, qword [0x140011178]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140004ed0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140004ed0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140005600
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400111e0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400111c0]
test rbx, rbx
je 0x14000565c
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 0x140005653
test rsi, rsi
je 0x140005653
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140005638
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 0x140005990
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000de90]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400059b0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400059b8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400059b0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140005a0d
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 0x140005a04
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400059b0
add rax, 0x28
cmp rax, r9
jne 0x1400059f0
xor eax, eax
ret

Function at 0x140005a10
Capabilities:
Parse pe header

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

Function at 0x140005ad0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000de90]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140005aef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140005af8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140005da0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [0x140011260], 0xffffffff
mov r8d, 0xffff
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x140011268], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140005df0
lea rdx, [0x140005cb0]
mov ecx, eax
mov dword [0x140011258], eax
call fcn.14000b760
test eax, eax
jne 0x140005df8
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140005de7
call sub.msvcrt.dll_abort
nop
nop
Function at 0x140005e00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x14000de20]
mov r11d, dword [rsi]
mov rbx, rcx
test r11d, r11d
jne 0x140005e38
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x140005ea0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [rcx + 0x10]
test r12, r12
je 0x140005eb0
mov esi, dword [0x140011258]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
call r13
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x140005f20
mov rbp, qword [rsi]
cmp rbp, r12
jb 0x140005f68
sub r12, 1
mov rax, qword [rsi + r12*8 + 8]
test rax, rax
jne 0x140005e27
mov rcx, rbx
call fcn.140005d00
mov qword [rsi + r12*8 + 8], rax
jmp 0x140005e27
call fcn.140005d00
mov qword [rbx + 0x10], rax
jmp 0x140005e27
mov r10d, dword [rsi]
test r10d, r10d
je 0x140005fca
mov r9d, dword [0x14000c410]
test r9d, r9d
je 0x140005ff8
lock add dword [0x140011260], 1
jne 0x14000602c
mov r12, qword [rbx + 0x10]
test r12, r12
je 0x140005fd7
mov eax, dword [rsi]
test eax, eax
je 0x140005e41
lock sub dword [0x140011260], 1
js 0x140005e41
mov rcx, qword [0x140011268]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x140005e41
lea rcx, [r12 + 0x21]
mov edx, 8
lea rdi, [r12 + 0x20]
call sub.msvcrt.dll_calloc
mov rsi, rax
test rax, rax
je 0x140006053
mov qword [rax], rdi
mov ecx, dword [0x140011258]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x140005e7b
call r13
jmp 0x140005e7b
lea rdi, [rbp + rbp]
lea rax, [r12 + 0x20]
mov rcx, rsi
cmp rdi, r12
cmovb rdi, rax
lea rdx, [rdi*8 + 8]
call sub.msvcrt.dll_realloc
mov rsi, rax
test rax, rax
je 0x140006053
mov qword [rax], rdi
sub rdi, rbp
lea rcx, [rax + rbp*8 + 8]
xor edx, edx
lea r8, [rdi*8]
call sub.msvcrt.dll_memset
jmp 0x140005f43
call fcn.140005da0
mov dword [0x14000c410], 1
mov edx, dword [rsi]
test edx, edx
jne 0x140005ecc
mov r12, qword [rbx + 0x10]
test r12, r12
jne 0x140005e41
mov rax, qword [0x140011250]
lea r12, [rax + 1]
mov qword [0x140011250], r12
mov qword [rbx + 0x10], r12
jmp 0x140005ee7
lock add dword [0x14000c414], 1
je 0x140005fb1
mov r8d, dword [0x14000c410]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
lea rdi, [0x14000c410]
test r8d, r8d
jne 0x140005fc0
nop dword [rax]
xor ecx, ecx
call rbp
mov ecx, dword [rdi]
test ecx, ecx
je 0x140006020
jmp 0x140005fc0
mov rcx, qword [0x140011268]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140005eda
lock sub dword [0x140011260], 1
jmp 0x140005eda
call sub.msvcrt.dll_abort
nop
nop dword [rax]
cmp qword [rcx], rdx
jae 0x140006070
mov qword [rcx], rdx
mov qword [rcx + 0x18], 0
cmp qword [rcx + 8], r8
jae 0x14000607a
mov qword [rcx + 8], r8
test r9, r9
je 0x140006084
cmp qword [rcx], rdx
je 0x140006088
ret
mov qword [rcx + 0x18], r9
ret
Function at 0x180002cc0
Capabilities:
Hash data with md5

Disassembly:
push rbx
sub rsp, 0xb0
mov rax, qword [0x1800419e0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r8, qword [rdx + 0x10]
xor eax, eax
cmp qword [rdx + 0x18], 0x10
mov dword [rsp + 0x20], eax
mov byte [rsp + 0x98], al
mov qword [rsp + 0x40], rax
mov rbx, rcx
mov dword [rsp + 0x30], 0x67452301
mov dword [rsp + 0x34], 0xefcdab89
mov dword [rsp + 0x38], 0x98badcfe
mov dword [rsp + 0x3c], 0x10325476
jb 0x180002d1e
mov rdx, qword [rdx]
lea rcx, [rsp + 0x30]
call fcn.180007b30
lea rcx, [rsp + 0x30]
mov rdx, rbx
call fcn.180008880
mov rax, rbx
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.180015ef0
add rsp, 0xb0
pop rbx
ret

Function at 0x180051550
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rbp, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x18005157c
xor al, al
jmp 0x1800516a0
movdqa xmm0, xmmword [0x180071ae0]
movdqa xmm1, xmmword [0x180071af0]
mov rax, qword [r9]
xor r11d, r11d
mov qword [rsp + 0x50], r12
mov rcx, r8
movdqa xmmword [rsp], xmm0
movdqa xmm0, xmmword [0x180071b00]
movdqa xmmword [rsp + 0x10], xmm1
lea r12, [r8 + rax]
mov edx, r11d
movdqa xmm1, xmmword [0x180071b10]
movdqa xmmword [rsp + 0x20], xmm0
movdqa xmmword [rsp + 0x30], xmm1
test rbx, rbx
je 0x180051692
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x1800515f9
mov r11d, 2
jmp 0x18005161d
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x180051613
mov r11d, 1
jmp 0x18005161d
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, r12
ja 0x1800516b5
mov eax, r10d
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov eax, r10d
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x18005165a
mov byte [rcx + 2], 0x3d
jmp 0x18005166a
shr r10, 6
and r10d, 0x3f
movzx eax, byte [rsp + r10]
mov byte [rcx + 2], al
add rcx, 3
add r8, 3
test r11, r11
je 0x18005167c
mov byte [rcx], 0x3d
jmp 0x180051683
movzx eax, byte [rsp + r9]
mov byte [rcx], al
inc rcx
inc r8
cmp rdx, rbx
jb 0x1800515e0
sub rcx, rsi
mov al, 1
mov qword [rbp], rcx
mov r12, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
xor al, al
jmp 0x18005169b
Function at 0x140a80058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140a801df
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 0x140a80089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a8006f
add dl, dl
jne 0x140a80096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a800f6
xor eax, eax
add dl, dl
jne 0x140a800a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a801ad
add dl, dl
jne 0x140a800b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a800c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a800d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a800dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140a800ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140a8007e
mov eax, 1
add dl, dl
jne 0x140a80106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a80113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a800fb
sub eax, ebx
mov ebx, 1
jne 0x140a8014c
mov ecx, 1
add dl, dl
jne 0x140a8012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a8013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a80123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a8007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140a80168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a80175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a8015d
cmp eax, 0x7d00
jae 0x140a8019b
cmp eax, 0x500
jb 0x140a80196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a8007e
cmp eax, 0x7f
ja 0x140a8019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a8007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140a801d2
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 0x140a8007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20