joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400429b0
Capabilities:
Create service
Modify service
Start service

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rbp, rcx
mov rsi, rdx
mov rcx, rdx
call fcn.140042920
xor edx, edx
xor ecx, ecx
mov r8d, 2
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
lea r8, [rax - 1]
cmp r8, 0xfffffffffffffffd
ja 0x140042b51
mov qword [rsp + 0x80], rbx
mov r8d, reloc.WS2_32.dll_recv
mov rdx, rsi
mov qword [rsp + 0x88], r14
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
xor r14d, r14d
mov rbx, rax
lea rcx, [rax + 1]
test rcx, 0xfffffffffffffffe
jne 0x140042aa8
mov qword [rsp + 0x60], r14
mov r9d, reloc.WS2_32.dll_recv
mov qword [rsp + 0x58], r14
mov r8, rsi
mov qword [rsp + 0x50], r14
mov rdx, rsi
mov qword [rsp + 0x48], r14
mov rcx, rdi
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov rbx, rax
dec rax
cmp rax, 0xfffffffffffffffd
jbe 0x140042aa8
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov rbx, qword [rsp + 0x80]
mov r14, qword [rsp + 0x88]
lea r11, [rsp + 0x70]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x140042b35
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r8d, reloc.WS2_32.dll_select
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [rsp + 0x50], r14
mov edx, 0xffffffff
mov qword [rsp + 0x48], r14
mov r9d, edx
mov qword [rsp + 0x40], r14
mov r8d, 3
mov qword [rsp + 0x38], r14
mov rcx, rax
mov qword [rsp + 0x30], r14
mov rbx, rax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
je 0x140042b35
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x140042b35
mov rcx, rsi
call fcn.140042920
jmp 0x140042a84
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x140042a86
lea r11, [rsp + 0x70]
xor eax, eax
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140042f70
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r15
sub rsp, 0x460
mov rax, qword [0x1400b4040]
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 0x140042ff1
cmp qword [r9 + 0x18], 7
mov rdx, qword [r9 + 0x10]
jbe 0x140042fb7
mov r9, qword [r9]
mov rax, qword [r8 + 0x18]
cmp rdx, rax
ja 0x140042fe9
mov rbp, rdi
cmp rax, 7
jbe 0x140042fcc
mov rbp, qword [r8]
lea rbx, [rdx + rdx]
mov qword [r8 + 0x10], rdx
mov r8, rbx
mov rdx, r9
mov rcx, rbp
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rbp], r15w
jmp 0x140042ff1
mov rcx, rdi
call fcn.14004de20
cmp qword [rsi + 0x18], 7
mov dword [rsp + 0x30], 0x400
jbe 0x140043003
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 0x140043090
lea rax, [rsp + 0x40]
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], r15w
jne 0x140043043
mov rax, qword [rdi + 0x18]
cmp rdx, rax
ja 0x140043081
mov rsi, rdi
cmp rax, 7
jbe 0x140043062
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 0x14004308e
lea r9, [rsp + 0x40]
mov rcx, rdi
call fcn.14004de20
mov eax, ebp
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140052db0
add rsp, 0x460
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400435d0
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0xc0
mov rax, qword [0x1400b4040]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbx, rcx
mov qword [r11 - 0x38], rcx
mov r8, qword [rcx + 0x10]
mov rcx, qword [rcx + 0x18]
mov rax, rcx
sub rax, r8
xor r15d, r15d
cmp rax, 3
jb 0x14004369f
lea rax, [r8 + 3]
mov qword [rbx + 0x10], rax
mov rdi, rbx
cmp rcx, 0xf
jbe 0x140043633
mov rdi, qword [rbx]
lea rax, [0x1400a2ba7]
mov r14d, 3
lea rsi, [0x1400a2ba4]
cmp rax, rdi
jbe 0x140043667
lea rax, [rdi + r8]
cmp rsi, rax
ja 0x140043667
cmp rdi, rsi
ja 0x14004365f
mov rbp, r15
jmp 0x14004366a
mov rbp, rdi
sub rbp, rsi
jmp 0x14004366a
mov rbp, r14
lea rcx, [rdi + 3]
inc r8
mov rdx, rdi
call sub.VCRUNTIME140.dll_memmove
mov r8, rbp
mov rdx, rsi
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rdi + rbp]
sub r14, rbp
lea rdx, [rsi + 3]
add rdx, rbp
mov r8, r14
call sub.VCRUNTIME140.dll_memcpy
jmp 0x1400436c1
mov r14d, 3
mov qword [rsp + 0x28], r14
lea rsi, [0x1400a2ba4]
mov qword [rsp + 0x20], rsi
mov edx, r14d
mov rcx, rbx
call fcn.14004e220
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
mov dword [rsp + 0x30], reloc.WS2_32.dll_WSASetLastError
mov dword [rsp + 0x34], 0x40
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r15
lea rax, [0x1400a2ba8]
mov qword [rsp + 0x48], rax
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140043720
mov rax, qword [rbx]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x60], r15d
mov qword [rsp + 0x68], r15
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x140043784
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x14004377d
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140043778
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140043836
mov rcx, r8
call fcn.140052f40
mov eax, 0xffffffff
jmp 0x1400437fa
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0xa8]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [rsp + 0xa8]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x1400437f8
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1400437f3
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140043836
mov rcx, r8
call fcn.140052f40
mov eax, edi
mov byte [rbx], 0
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rbx + 0x10], r15
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140052db0
lea r11, [rsp + 0xc0]
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
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x1400443f0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x1400b4040]
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 0x140044478
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14004446f
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 0x14004446b
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140044441
jmp 0x14004446f
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.140052db0
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
Function at 0x1400444a0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
sub rsp, 0x98
movaps xmmword [rax - 0x18], xmm6
xorps xmm0, xmm0
movups xmmword [rax - 0x50], xmm0
movups xmmword [rax - 0x40], xmm0
movups xmmword [rax - 0x30], xmm0
movups xmm0, xmmword [0x1400a3658]
movups xmmword [rax - 0x68], xmm0
mov eax, dword [0x1400a3668]
mov dword [rsp + 0x40], eax
cmp byte [0x1400a366b], 0
je 0x14004465e
xor ecx, ecx
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x14004461c
movdqa xmm4, xmmword [0x1400a3fd0]
movdqa xmm3, xmmword [0x1400a4310]
movdqa xmm5, xmmword [0x1400a3ff0]
movdqa xmm0, xmmword [0x1400a4040]
movdqa xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x34]
movdqa xmm6, xmmword [0x1400a4000]
mov r8d, dword [rsp + 0x20]
nop word [rax + rax]
movd xmm2, ecx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 4]
xorps xmm2, xmm0
movd dword [rdx - 4], xmm2
lea eax, [rcx + 4]
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
xorps xmm2, xmm0
movd dword [rdx], xmm2
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x10
jl 0x140044530
cmp ecx, 0x14
jge 0x14004465e
movsxd rax, ecx
lea r8, [rsp + 0x30]
add r8, rax
nop word [rax + rax]
mov eax, 0xa0a0a0a1
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x33
movzx eax, cl
sub al, dl
add al, 0x31
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x14
jl 0x140044630
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x30]
call fcn.140004e40
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x98
ret
Function at 0x14004b200
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.0x14004b221
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 0x14004b24e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14004b250
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14004b2a9
test ecx, ecx
jle 0x14004b289
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 0x14004b2a9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14004b2a9
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
cmp byte [rbx], cl
iretd
Function at 0x14004b2d0
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 0x14004b2f2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x14004b301
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 0x14004b324
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14004b326
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14004b362
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 0x14004b3fe
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14004b39d
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 0x14004b3de
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 0x14004b3fe
cmp rbx, rax
ja 0x14004b3b0
test rbx, rbx
je 0x14004b3fe
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
nop
sub dword [rsi + 0x63bed8c5], 7
mov dh, WSAGetLastError
fist word [rcx - 0x42d7c628]
ret
Function at 0x14004b860
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400b4040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14004b88d
xor eax, eax
jmp 0x14004b9f9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14004b8c7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14004b8c7
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 0x14004b9f9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14004b9ec
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14004b90a
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 0x14004b935
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 0x14004b9f1
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 0x14004b9a4
sub eax, 1
je 0x14004b9a4
cmp eax, 2
jne 0x14004b9ec
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 0x14004b9f1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14004b9d2
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 0x14004b9ec
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14004b9f1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140052db0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14004cac0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400b4040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14004cb93
cmp byte [rcx + 0x71], 0
je 0x14004cb93
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x14004cb8f
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 0x14004cb54
sub eax, 1
je 0x14004cb58
cmp eax, 2
jne 0x14004cb8f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140052db0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14004cb86
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 0x14004cb8f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14004cb3c
xor al, al
jmp 0x14004cb3c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140052db0
add rsp, 0x60
pop rbx
ret
Function at 0x140053cc4
Capabilities:
Parse pe header

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

Function at 0x140054500
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1400b4040]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140054561
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x14005455b
shr ax, 8
cmp al, 2
jne 0x14005455b
call fcn.140059d70
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140052db0
add rsp, 0x1d8
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140052db0
add rsp, 0x1d8
ret
Function at 0x140062a50
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xe0
mov rax, qword [0x1400b4040]
xor rax, rsp
mov qword [rsp + 0xd0], rax
cmp byte [rcx + 0x430], 0
mov r14, r9
mov rax, qword [rsp + 0x130]
mov rbp, r8
mov esi, edx
mov rdi, rcx
je 0x140062b7f
test rax, rax
je 0x140062b7f
mov rdx, qword [rax + 0xc0]
test rdx, rdx
je 0x140062b7f
mov ecx, esi
lea r9, str.Data
sub ecx, 1
je 0x140062adb
sub ecx, 1
je 0x140062acb
sub ecx, 1
je 0x140062ae2
cmp ecx, 1
je 0x140062ad2
jmp 0x140062b7f
lea r9, str.Header
lea rax, [0x140093ad0]
jmp 0x140062ae9
lea r9, str.Header
lea rax, str.from
mov qword [rsp + 0x28], rdx
lea r8, str.__s__s__s_
mov edx, 0xa0
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x30]
call fcn.140064e20
lea rax, [rsp + 0x30]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140062b12
mov r10, qword [rdi + 0x258]
test r10, r10
je 0x140062b49
mov rax, qword [rdi + 0x1a8]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call r10
test eax, eax
je 0x140062b7f
jmp 0x140062b8f
mov r9, qword [rdi + 0x1a0]
lea rcx, [0x1400939f0]
mov edx, 2
lea r8d, [rdx - 1]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov r9, qword [rdi + 0x1a0]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov r9, r14
mov r8, rbp
mov edx, esi
mov rcx, rdi
call fcn.140063290
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140052db0
add rsp, 0xe0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140062e70
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x140062eab
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov edx, 0x51
cmp eax, 0x2733
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140062f70
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
movsxd rax, edx
mov r10, r9
mov r11, r8
mov rdi, rcx
xor r9d, r9d
mov r8d, r10d
mov rdx, r11
mov rcx, qword [rcx + rax*8 + 0x1a8]
call qword [sym.imp.WS2_32.dll_send]
mov r14, qword [rsp + 0x50]
movsxd rsi, eax
mov dword [r14], 0
cmp rsi, 0xffffffffffffffff
jne 0x14006301c
mov qword [rsp + 0x30], rbx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x140062feb
mov dword [r14], 0x51
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov edx, eax
mov rcx, rdi
call fcn.140054d60
mov rcx, qword [rdi]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.140062bb0
mov rcx, qword [rdi]
mov rax, rsi
mov dword [rcx + 0x881c], ebx
mov dword [r14], gethostname
jmp 0x140062fd5
mov rdi, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x140063290
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r10, qword [rcx + 0x258]
mov rdi, r9
mov rsi, r8
mov rbx, rcx
test r10, r10
je 0x1400632d3
mov rax, qword [rcx + 0x1a8]
mov qword [rsp + 0x20], rax
call r10
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp edx, 2
ja 0x140063316
mov r9, qword [rbx + 0x1a0]
movsxd rax, edx
mov edx, 2
lea rcx, [rax + rax*2]
lea rax, [0x1400939f0]
add rcx, rax
lea r8d, [rdx - 1]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov r9, qword [rbx + 0x1a0]
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rsp + 0x40]
xor eax, eax
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140063510
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, qword [rcx + 0x7b0]
mov rsi, rdx
mov rdi, rcx
test rbx, rbx
je 0x140063580
mov rcx, qword [rcx + 0x80]
test rcx, rcx
jne 0x140063543
cmp qword [rdi + 0x78], rcx
je 0x140063580
mov qword [rsp + 0x20], rbx
mov byte [rsp + 0x28], 0
test rcx, rcx
jne 0x140063556
mov rcx, qword [rdi + 0x78]
add rcx, 0xc0
lea r8, [0x1400645a0]
lea rdx, [rsp + 0x20]
call fcn.14006b600
cmp byte [rsp + 0x28], 0
jne 0x140063594
mov qword [rdi + 0x7b0], 0
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test rsi, rsi
je 0x14006359c
mov qword [rsi], rbx
cmp byte [rbx + 0x1f0], 0
mov rdi, qword [rbx + 0x1a8]
je 0x1400635ba
mov rcx, rbx
call fcn.14005b610
test eax, eax
jne 0x1400635d6
jmp 0x140063580
mov r9d, 2
lea rdx, [rsp + 0x40]
mov rcx, rdi
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x140063580
mov rbx, qword [rsp + 0x48]
mov rax, rdi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret