joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140028af8
Capabilities:
Read file via mapping

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140051058]
xor rax, rsp
mov qword [rsp + 0x88], rax
and qword [r11 - 0x68], 0
xor r9d, r9d
mov rcx, qword [rcx + 0x28]
mov ebx, 0x80004005
mov dword [rsp + 0x28], 0x2000
mov dword [rsp + 0x20], 3
lea edx, [r9 + 1]
mov r8d, edx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
nop dword [rax + rax]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140028c81
and qword [rsp + 0x28], 0
xor r9d, r9d
and dword [rsp + 0x20], 0
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 2]
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_CreateFileMappingW]
nop dword [rax + rax]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140028c55
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 4]
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_MapViewOfFile]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140028c44
xorps xmm0, xmm0
lea rdx, [rsp + 0x50]
xor eax, eax
mov rcx, rsi
movups xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x80], eax
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileInformationByHandle]
nop dword [rax + rax]
mov edx, dword [rsp + 0x74]
cmp edx, 0x10
ja 0x140028bfc
mov ebx, 0x80070018
jmp 0x140028c35
xorps xmm0, xmm0
lea rcx, [rdi + 0x10]
add edx, 0xfffffff0
lea r8, [rsp + 0x40]
movups xmmword [rsp + 0x40], xmm0
call fcn.140038998
mov ebx, eax
test eax, eax
js 0x140028c30
mov rcx, qword [rsp + 0x40]
cmp rcx, qword [rdi]
jne 0x140028c30
mov rcx, qword [rsp + 0x48]
cmp rcx, qword [rdi + 8]
je 0x140028c35
mov ebx, 0x80070017
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_UnmapViewOfFile]
nop dword [rax + rax]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x140028c70
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140028c70
movzx ebx, ax
or ebx, 0x80070000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x140028c9c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140028c9c
movzx ebx, ax
or ebx, 0x80070000
mov eax, ebx
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400027f0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140033264
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rbx, rcx
mov esi, 0x80004005
lea r8, str.BFFF9080_1DAE_43B1_96B6_738575D01524
mov dword [rcx + 8], esi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
nop dword [rax + rax]
mov qword [rbx], rax
test rax, rax
je 0x1400332d6
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [rax + rax]
test eax, eax
jne 0x1400332ba
and dword [rbx + 8], eax
jmp 0x1400332f6
mov rcx, qword [rbx]
mov dword [rbx + 8], 0x102
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
and qword [rbx], 0
jmp 0x1400332f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x1400332f0
movzx eax, ax
or eax, 0x80070000
test eax, eax
cmove eax, esi
mov dword [rbx + 8], eax
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14003404c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140051058]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rdx
mov rbx, rcx
test rdx, rdx
je 0x140034085
mov rcx, rdx
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop dword [rax + rax]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_VariantInit]
nop dword [rax + rax]
test eax, eax
je 0x1400341bd
test rdi, rdi
je 0x1400341bd
lea rdx, [0x140046b64]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wfopen]
nop dword [rax + rax]
mov rbp, rax
test rax, rax
je 0x1400341b6
xorps xmm0, xmm0
lea rdx, [rsp + 0x28]
xor eax, eax
mov rcx, rbx
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x58], rax
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
call qword [sym.imp.msvcrt.dll__wstat64]
nop dword [rax + rax]
mov r14, qword [rsp + 0x40]
mov eax, 0xffffffff
cmp r14, rax
ja 0x1400341b6
mov ecx, 0x11
mov r8d, r14d
xor edx, edx
call qword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
nop dword [rax + rax]
and qword [rsp + 0x20], 0
mov r15d, 0x8007000e
mov rsi, rax
test rax, rax
jne 0x14003415c
mov ebx, r15d
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
nop dword [rax + rax]
test ebx, ebx
cmovns ebx, r15d
mov rcx, rbp
call qword [sym.imp.msvcrt.dll_fclose]
nop dword [rax + rax]
mov eax, ebx
jmp 0x1400341c2
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x140034134
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140034134
mov r8d, r14d
mov r9, rbp
mov edx, 1
call qword [sym.imp.msvcrt.dll_fread]
nop dword [rax + rax]
mov eax, 0x2011
mov qword [rdi + 8], rsi
mov rcx, rsi
mov word [rdi], ax
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
nop dword [rax + rax]
mov ebx, eax
jmp 0x140034149
mov eax, 0x80004005
jmp 0x1400341c2
mov eax, 0x80070057
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400027f0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140034a20
Capabilities:
Create directory
Query environment variable
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov r8d, 0x104
mov rbx, rdx
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
jne 0x140034a4b
mov eax, 0x80004005
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x140034a60
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x140051058]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor edx, edx
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
nop dword [rax + rax]
xor edi, edi
test eax, eax
jne 0x140034b5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xb7
je 0x140034b5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 3
jne 0x140034b57
lea rax, [rsp + 0x20]
mov r8, rbx
sub r8, rax
lea rcx, [rsp + 0x20]
mov edx, 0x104
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140034afe
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140034afe
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140034adb
test rdx, rdx
lea rax, [rcx - 2]
mov edx, 0x5c
cmovne rax, rcx
lea rcx, [rsp + 0x20]
mov word [rax], di
call qword [sym.imp.msvcrt.dll_wcsrchr]
nop dword [rax + rax]
test rax, rax
je 0x140034b57
lea rcx, [rsp + 0x20]
cmp rax, rcx
je 0x140034b57
lea rcx, [rsp + 0x20]
mov word [rax], di
call 0x140034a60
test eax, eax
jne 0x140034b57
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x140034b5e
mov eax, 0x80004005
jmp 0x140034b74
mov edx, 0x2000
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400027f0
mov rbx, qword [rsp + 0x258]
add rsp, 0x240
pop rdi
ret
Function at 0x140034a60
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x20
mov r8d, 0x104
mov rbx, rdx
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
jne 0x140034a4b
mov eax, 0x80004005
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x140034a60
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x140051058]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor edx, edx
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
nop dword [rax + rax]
xor edi, edi
test eax, eax
jne 0x140034b5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xb7
je 0x140034b5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 3
jne 0x140034b57
lea rax, [rsp + 0x20]
mov r8, rbx
sub r8, rax
lea rcx, [rsp + 0x20]
mov edx, 0x104
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140034afe
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140034afe
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140034adb
test rdx, rdx
lea rax, [rcx - 2]
mov edx, 0x5c
cmovne rax, rcx
lea rcx, [rsp + 0x20]
mov word [rax], di
call qword [sym.imp.msvcrt.dll_wcsrchr]
nop dword [rax + rax]
test rax, rax
je 0x140034b57
lea rcx, [rsp + 0x20]
cmp rax, rcx
je 0x140034b57
lea rcx, [rsp + 0x20]
mov word [rax], di
call 0x140034a60
test eax, eax
jne 0x140034b57
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x140034b5e
mov eax, 0x80004005
jmp 0x140034b74
mov edx, 0x2000
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400027f0
mov rbx, qword [rsp + 0x258]
add rsp, 0x240
pop rdi
ret
Function at 0x140035030
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x140051058]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
xor esi, esi
lea rdx, [rsp + 0x50]
mov rdi, r9
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x30], esi
lea r8d, [rsi + 0x27]
call qword [sym.imp.ole32.dll_StringFromGUID2]
nop dword [rax + rax]
cmp eax, 0x27
jne 0x1400351cf
mov ebx, 0x100
lea rdx, str.SoftwareMicrosoftTPGSystem_Recognizers
lea rax, [rbp - 0x60]
mov r8d, ebx
sub rdx, rax
lea rcx, [rbp - 0x60]
lea rax, [r8 + 0x7ffffefe]
test rax, rax
je 0x1400350c4
movzx eax, word [rdx + rcx]
test ax, ax
je 0x1400350c4
mov word [rcx], ax
add rcx, 2
sub r8, 1
jne 0x1400350a2
test r8, r8
lea rax, [rcx - 2]
lea r8, [0x140045834]
mov rdx, rbx
cmovne rax, rcx
lea rcx, [rbp - 0x60]
mov word [rax], si
call fcn.14000f594
lea r8, [rsp + 0x50]
mov rdx, rbx
lea rcx, [rbp - 0x60]
call fcn.14000f594
lea rax, [rsp + 0x38]
mov r9d, 0x20119
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x60]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400351cf
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
lea rdx, str.Recognized_Languages
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400351be
cmp dword [rsp + 0x40], 3
jne 0x1400351be
cmp dword [rsp + 0x30], 2
jbe 0x140035201
mov ecx, dword [rsp + 0x30]
lea rdx, [0x140042cb0]
call fcn.1400033a0
mov rbx, rax
test rax, rax
je 0x1400351be
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.Recognized_Languages
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov rcx, rbx
test eax, eax
je 0x1400351f4
call fcn.140001e40
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
xor al, al
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1400027f0
mov rbx, qword [rsp + 0x2d8]
add rsp, 0x2b0
pop rdi
pop rsi
pop rbp
ret
movzx eax, word [rbx]
mov word [rdi], ax
call fcn.140001e40
jmp 0x140035232
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.Recognized_Languages
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400351be
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test eax, eax
jne 0x1400351cf
mov al, 1
jmp 0x1400351d1
Function at 0x140038998
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x1400389a4
xorps xmm0, xmm0
movups xmmword [r8], xmm0
test rcx, rcx
je 0x1400389d7
test edx, edx
je 0x1400389d7
test r8, r8
je 0x1400389d7
shr edx, 3
test edx, edx
je 0x1400389d3
mov r9d, edx
mov rax, qword [rcx]
xor qword [r8], rax
mov rax, qword [rcx]
lea rcx, [rcx + 8]
add qword [r8 + 8], rax
sub r9, 1
jne 0x1400389bc
xor eax, eax
ret
mov eax, 0x80070057
ret

Function at 0x1400389e4
Capabilities:
Read file via mapping

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0x90
mov rax, qword [0x140051058]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov rsi, qword [rbp + 0x77]
xor ebx, ebx
and qword [rsp + 0x30], rbx
mov rdi, r9
mov r15, qword [rbp + 0x7f]
mov r12, r8
mov r14, rdx
mov dword [rsp + 0x28], 0x2000
and dword [rsi], ebx
lea eax, [rbx + 1]
mov r8d, eax
mov dword [rsp + 0x20], 3
and qword [r15], rbx
mov edx, eax
xor r9d, r9d
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
nop dword [rax + rax]
mov qword [r14], rax
cmp rax, 0xffffffffffffffff
je 0x140038b45
and qword [rsp + 0x28], rbx
lea r8d, [rbx + 2]
and dword [rsp + 0x20], ebx
xor r9d, r9d
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_CreateFileMappingW]
nop dword [rax + rax]
mov qword [r12], rax
cmp rax, 0xffffffffffffffff
je 0x140038b3e
and qword [rsp + 0x20], rbx
lea edx, [rbx + 4]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_MapViewOfFile]
nop dword [rax + rax]
mov qword [rdi], rax
test rax, rax
je 0x140038b4a
mov rcx, qword [r14]
lea rdx, [rbp - 0x29]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x29], xmm0
mov dword [rbp + 7], eax
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileInformationByHandle]
nop dword [rax + rax]
mov eax, dword [rbp - 5]
mov dword [rsi], eax
cmp dword [rbp - 0x15], ebx
jne 0x140038aec
mov rax, qword [rbp - 0x25]
cmp dword [rbp - 0x11], ebx
je 0x140038af0
mov rax, qword [rbp - 0x15]
mov qword [r15], rax
mov edx, dword [rsi]
cmp edx, 0x10
ja 0x140038b01
mov ebx, 0x80070018
jmp 0x140038b4a
mov rcx, qword [rdi]
lea r8, [rbp - 0x39]
xorps xmm0, xmm0
add rcx, 0x10
add edx, 0xfffffff0
movups xmmword [rbp - 0x39], xmm0
call fcn.140038998
mov ebx, eax
test eax, eax
js 0x140038b4a
mov rdx, qword [rdi]
mov rcx, qword [rbp - 0x39]
cmp rcx, qword [rdx]
jne 0x140038b37
mov rcx, qword [rbp - 0x31]
cmp rcx, qword [rdx + 8]
je 0x140038b4a
mov ebx, 0x80070017
jmp 0x140038b4a
mov ebx, 0x80070002
jmp 0x140038b4a
mov ebx, 1
mov eax, ebx
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.1400027f0
add rsp, 0x90
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140038b74
Capabilities:
Set file attributes
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x50
and qword [rax - 0x28], 0
mov ebx, r9d
mov dword [rax - 0x30], 0x2000
mov rbp, r8
mov eax, 2
mov r9, rdx
mov edx, eax
mov dword [rsp + 0x20], eax
xor r8d, r8d
mov rsi, rcx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
nop dword [rax + rax]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140038bcd
mov ebx, 0x80004005
jmp 0x140038c7a
and dword [rsp + 0x40], 0
lea r9, [rsp + 0x40]
and qword [rsp + 0x20], 0
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
je 0x140038c43
cmp dword [rsp + 0x40], 0x10
jne 0x140038c43
mov rdx, qword [rsp + 0x80]
lea r9, [rsp + 0x40]
and qword [rsp + 0x20], 0
mov r8d, ebx
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
je 0x140038c43
cmp dword [rsp + 0x40], ebx
jne 0x140038c43
mov rdx, qword [rsp + 0x88]
mov rcx, rdi
call fcn.140038c98
mov ebx, eax
jmp 0x140038c48
mov ebx, 0x80004005
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FlushFileBuffers]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov edx, 0x2000
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
nop dword [rax + rax]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x14003bed0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0x140052df8]
test rcx, rcx
jne 0x14003bef6
call fcn.14003bfb8
test eax, eax
je 0x14003bf3d
mov rcx, qword [0x140052df8]
call qword [sym.imp.api_ms_win_core_interlocked_l1_1_0.dll_InterlockedPopEntrySList]
nop dword [rax + rax]
xor ecx, ecx
test rax, rax
je 0x14003bf1b
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 0x10], ecx
mov word [rax + 0x14], cx
jmp 0x14003bfa3
mov edx, 0x1000
mov r9d, 0x40
mov r8d, edx
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x14003bf41
xor eax, eax
jmp 0x14003bfa3
mov eax, dword [rax]
mov rcx, qword [0x140052df8]
call qword [sym.imp.api_ms_win_core_interlocked_l1_1_0.dll_InterlockedPopEntrySList]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14003bf7a
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualFree]
nop dword [rax + rax]
mov rax, rdi
jmp 0x14003bfa3
lea rdi, [rbx + 0xfe0]
mov rcx, qword [0x140052df8]
mov rdx, rbx
call qword [sym.imp.api_ms_win_core_interlocked_l1_1_0.dll_InterlockedPushEntrySList]
nop dword [rax + rax]
add rbx, 0x20
cmp rbx, rdi
jb 0x14003bf81
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400021d0
Capabilities:
Parse pe header

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

Disassembly:
call 0x1411f51df
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 0x1411f5089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411f506f
add dl, dl
jne 0x1411f5096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411f50f6
xor eax, eax
add dl, dl
jne 0x1411f50a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1411f51ad
add dl, dl
jne 0x1411f50b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411f50c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411f50d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411f50dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1411f50ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1411f507e
mov eax, 1
add dl, dl
jne 0x1411f5106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1411f5113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1411f50fb
sub eax, ebx
mov ebx, 1
jne 0x1411f514c
mov ecx, 1
add dl, dl
jne 0x1411f512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1411f513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1411f5123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1411f507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1411f5168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1411f5175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1411f515d
cmp eax, 0x7d00
jae 0x1411f519b
cmp eax, 0x500
jb 0x1411f5196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1411f507e
cmp eax, 0x7f
ja 0x1411f519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1411f507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1411f51d2
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 0x1411f507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001900
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, dword [rcx + 0x38]
mov rbx, rcx
mov edx, dword [rbx + 0x8c]
mov edi, dword [rbx + 0x50]
mov eax, dword [rbx + 0x94]
sub edi, edx
sub edi, eax
jne 0x14000193e
test edx, edx
jne 0x14000194d
test eax, eax
jne 0x14000194d
mov edi, esi
jmp 0x1400019d1
cmp edi, 0xffffffff
jne 0x14000194d
mov edi, 0xfffffffe
jmp 0x1400019d1
mov eax, dword [rbx + 0x38]
lea ecx, [rsi + rax - 0x106]
cmp edx, ecx
jb 0x1400019d1
mov rcx, qword [rbx + 0x48]
mov r8, rsi
lea rdx, [rcx + rsi]
call fcn.140036d80
mov r9d, dword [rbx + 0x6c]
mov rax, qword [rbx + 0x60]
sub dword [rbx + 0x90], esi
sub dword [rbx + 0x8c], esi
sub dword [rbx + 0x7c], esi
lea r8, [rax + r9*2]
sub r8, 2
xor eax, eax
movzx edx, word [r8]
movzx ecx, dx
sub cx, si
cmp edx, esi
cmovae ax, cx
dec r9d
mov word [r8], ax
jne 0x140001986
mov rax, qword [rbx + 0x58]
mov r9d, esi
lea r8, [rax + rsi*2]
sub r8, 2
xor eax, eax
movzx edx, word [r8]
movzx ecx, dx
sub cx, si
cmp edx, esi
cmovae ax, cx
dec r9d
mov word [r8], ax
jne 0x1400019b0
add edi, esi
mov rcx, qword [rbx]
cmp dword [rcx + 8], 0
je 0x140001a48
mov edx, dword [rbx + 0x94]
mov eax, dword [rbx + 0x8c]
mov r8d, edi
add rdx, rax
add rdx, qword [rbx + 0x48]
call fcn.1400016f0
add dword [rbx + 0x94], eax
mov r9d, dword [rbx + 0x94]
cmp r9d, 3
jb 0x140001a32
mov eax, dword [rbx + 0x8c]
mov rdx, qword [rbx + 0x48]
mov ecx, dword [rbx + 0x78]
movzx r8d, byte [rax + rdx]
mov dword [rbx + 0x68], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rbx + 0x74]
mov dword [rbx + 0x68], r8d
cmp r9d, 0x106
jae 0x140001a48
mov rax, qword [rbx]
cmp dword [rax + 8], 0
jne 0x14000191a
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret