joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000e1b0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x58
movsd xmm0, qword [str.ohejKOVLXL_]
xor r9d, r9d
cmp dword [reloc.WS2_32.dll_accept], 2
mov ecx, r9d
movzx eax, byte [0x14008f0d4]
mov edx, dword [0x14008f0d0]
movsd qword [rsp + 0x40], xmm0
mov dword [rsp + 0x48], edx
mov byte [rsp + 0x4c], al
jl 0x14000e334
movdqa xmm5, xmmword [0x14008f4b0]
mov ecx, ntohl
movdqa xmm2, xmmword [0x14008f3d0]
movdqa xmm3, xmmword [0x14008f3f0]
movdqa xmm1, xmm2
movdqa xmm4, xmmword [0x14008f440]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [str.4444]
psubd xmm2, xmm0
movd xmm0, dword [str.ohejKOVLXL_]
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x14008f490]
xorps xmm2, xmm0
movd dword [rsp + 0x40], xmm2
movdqa xmm2, xmmword [0x14008f3e0]
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm3
pmulld xmm0, xmmword [str.4444]
psubd xmm2, xmm0
punpckldq xmm1, xmm3
movd xmm0, dword [rsp + 0x44]
andps xmm2, xmm4
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x14008f490]
xorps xmm2, xmm0
pmuldq xmm1, xmm5
movdqa xmm0, xmm3
movd dword [rsp + 0x44], xmm2
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [str.4444]
psubd xmm3, xmm0
movd xmm0, edx
andps xmm3, xmm4
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmmword [0x14008f490]
xorps xmm3, xmm0
movd dword [rsp + 0x48], xmm3
mov eax, ecx
lea r8, [rsp + 0x40]
add r8, rax
nop
mov eax, 0x4ec4ec4f
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x34
movzx eax, cl
inc ecx
sub al, dl
add al, 0x33
xor byte [r8 - 1], al
cmp ecx, 0xd
jl 0x14000e340
mov qword [rsp + 0x30], r9
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x28], r9d
mov edx, 0xc0000000
mov r8d, 3
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp rax, 0xffffffffffffffff
setne al
add rsp, 0x58
ret
Function at 0x14000e3b0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x90
movaps xmmword [rax - 0x18], xmm6
xor ecx, ecx
movups xmm0, xmmword [0x14008f1a8]
movups xmmword [rax - 0x48], xmm0
movups xmm1, xmmword [0x14008f1b8]
movups xmmword [rax - 0x38], xmm1
movsd xmm0, qword [0x14008f1c8]
movsd qword [rax - 0x28], xmm0
mov eax, dword [0x14008f1d0]
mov dword [rsp + 0x78], eax
movzx eax, byte [0x14008f1d4]
mov byte [rsp + 0x7c], al
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x14000e524
movdqa xmm4, xmmword [0x14008f3d0]
movdqa xmm3, xmmword [0x14008f4b0]
movdqa xmm5, xmmword [str.4444]
movdqa xmm0, xmmword [0x14008f490]
movdqa xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x54]
movdqa xmm6, xmmword [0x14008f440]
mov r8d, dword [rsp + 0x20]
nop
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
psrad xmm1, 4
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
psrad xmm1, 4
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, 0x28
jl 0x14000e440
cmp ecx, 0x2d
jge 0x14000e55c
movsxd rax, ecx
lea r8, [rsp + 0x50]
add r8, rax
nop
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x34
movzx eax, cl
sub al, dl
add al, 0x33
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x2d
jl 0x14000e530
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x50]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x14000e572
mov qword [rsp + 0x28], rax
call fcn.14007af04
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.140004720
nop
lea rcx, [rsp + 0x30]
call fcn.140005290
movzx ebx, al
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x14000e5f4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e5ef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000e5ef
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007b8ac
test bl, bl
setne al
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x90
pop rbx
ret
Function at 0x14000e610
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x90
movaps xmmword [rsp + 0x80], xmm6
xor ecx, ecx
movups xmm0, xmmword [0x14008f220]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [0x14008f230]
movups xmmword [rsp + 0x60], xmm1
mov eax, dword [0x14008f240]
mov dword [rsp + 0x70], eax
movzx eax, word [0x14008f244]
mov word [rsp + 0x74], ax
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x14000e784
movdqa xmm4, xmmword [0x14008f3d0]
movdqa xmm3, xmmword [0x14008f4b0]
movdqa xmm5, xmmword [str.4444]
movdqa xmm0, xmmword [0x14008f490]
movdqa xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x54]
movdqa xmm6, xmmword [0x14008f440]
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
psrad xmm1, 4
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
psrad xmm1, 4
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, 0x20
jl 0x14000e6a0
cmp ecx, 0x26
jge 0x14000e7bc
movsxd rax, ecx
lea r8, [rsp + 0x50]
add r8, rax
nop
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x34
movzx eax, cl
sub al, dl
add al, 0x33
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x26
jl 0x14000e790
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x50]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x14000e7d2
mov qword [rsp + 0x28], rax
call fcn.14007af04
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.140004720
nop
lea rcx, [rsp + 0x30]
call fcn.140005290
movzx ebx, al
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x14000e854
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000e84f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000e84f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007b8ac
test bl, bl
setne al
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x90
pop rbx
ret
Function at 0x14000e870
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x90
movaps xmmword [rax - 0x18], xmm6
xor ecx, ecx
movups xmm0, xmmword [0x14008f158]
movups xmmword [rax - 0x48], xmm0
movups xmm1, xmmword [0x14008f168]
movups xmmword [rax - 0x38], xmm1
movsd xmm0, qword [0x14008f178]
movsd qword [rax - 0x28], xmm0
movzx eax, word [0x14008f180]
mov word [rsp + 0x78], ax
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x14000e9e4
movdqa xmm4, xmmword [0x14008f3d0]
movdqa xmm3, xmmword [0x14008f4b0]
movdqa xmm5, xmmword [str.4444]
movdqa xmm0, xmmword [0x14008f490]
movdqa xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x54]
movdqa xmm6, xmmword [0x14008f440]
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
psrad xmm1, 4
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
psrad xmm1, 4
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, 0x28
jl 0x14000e900
cmp ecx, 0x2a
jge 0x14000ea1c
movsxd rax, ecx
lea r8, [rsp + 0x50]
add r8, rax
nop
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x34
movzx eax, cl
sub al, dl
add al, 0x33
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x2a
jl 0x14000e9f0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x50]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x14000ea32
mov qword [rsp + 0x28], rax
call fcn.14007af04
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.140004720
nop
lea rcx, [rsp + 0x30]
call fcn.140005290
movzx ebx, al
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x14000eab4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000eaaf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000eaaf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007b8ac
test bl, bl
setne al
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x90
pop rbx
ret
Function at 0x14000ead0
Capabilities:
Check for debugger via api
Terminate process

Disassembly:
sub rsp, 0x48
mov rax, qword [0x14009d080]
xor rax, rsp
mov qword [rsp + 0x38], rax
call fcn.14000da70
test al, al
jne 0x14000ebf2
call fcn.14000e3b0
test al, al
jne 0x14000ebf2
call fcn.14000e610
test al, al
jne 0x14000ebf2
call fcn.14000dce0
test al, al
jne 0x14000ebf2
call fcn.14000e870
test al, al
jne 0x14000ebf2
call fcn.14000def0
test al, al
jne 0x14000ebf2
call fcn.14000e1b0
test al, al
jne 0x14000ebf2
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.DLL_CheckRemoteDebuggerPresent]
cmp dword [rsp + 0x30], 0
jne 0x14000ebf2
call fcn.14000d070
test eax, eax
jne 0x14000ebf2
call qword [sym.imp.KERNEL32.DLL_IsDebuggerPresent]
test eax, eax
jne 0x14000ebf2
lea rcx, [0x14008eff8]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov rcx, rax
lea rdx, str.NtQueryInformationProcess
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov r9d, 4
mov qword [rsp + 0x20], 0
mov rcx, rax
lea r8, [rsp + 0x30]
mov edx, reloc.WLDAP32.dll_Ordinal_30
call rbx
mov rbx, qword [rsp + 0x40]
test eax, eax
jne 0x14000ebd7
cmp qword [rsp + 0x30], 0
jne 0x14000ebf2
call fcn.14000d400
test eax, eax
jne 0x14000ebf2
call fcn.14000d760
test eax, eax
jne 0x14000ebf2
call fcn.14000da50
test eax, eax
je 0x14000ebfe
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14007b610
add rsp, 0x48
ret
Function at 0x1400228f0
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rbx, rcx
mov qword [rax - 0x20], rcx
xor edi, edi
mov dword [rax - 0x28], edi
mov dword [rax - 0x3c], 0x454c49
mov dword [rax - 0x48], 0x554c4c41
mov dword [rax - 0x44], 0x53524553
mov dword [rax - 0x40], 0x464f5250
mov byte [rax - 0x38], dil
lea rcx, [rax - 0x48]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x14002296c
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], dil
jne 0x140022953
mov rdx, rax
mov rcx, rbx
call fcn.1400031d0
jmp 0x140022a20
lea rcx, [rsp + 0x30]
call fcn.14001dca0
nop
mov rsi, rax
cmp qword [rax + 0x18], 7
jbe 0x140022984
mov rsi, qword [rax]
mov rbp, qword [rax + 0x10]
call fcn.14007af04
mov r14d, eax
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov dword [rsp + 0x50], reloc.WS2_32.dll_recv
test rbp, rbp
je 0x140022a16
cmp rbp, 0x7fffffff
ja 0x140022a42
mov dword [rsp + 0x20], edi
xor r9d, r9d
mov r8d, ebp
mov rdx, rsi
mov ecx, eax
call fcn.14007af74
mov rdi, rax
shr rax, 0x20
test eax, eax
jne 0x140022a4d
movsxd rdx, edi
xor r8d, r8d
mov rcx, rbx
call fcn.140010820
mov r9, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x1400229f9
mov r9, qword [rbx]
mov dword [rsp + 0x20], edi
mov r8d, ebp
mov rdx, rsi
mov ecx, r14d
call fcn.14007af74
mov rcx, rax
shr rax, 0x20
test eax, eax
jne 0x140022a38
lea rcx, [rsp + 0x30]
call fcn.140004890
mov rax, rbx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
shr rcx, 0x20
call fcn.140003cc0
int3
mov ecx, reloc.WLDAP32.dll_Ordinal_22
call fcn.1400039e0
int3
shr rdi, 0x20
mov ecx, edi
call fcn.140003cc0
int3
Function at 0x1400300e0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
cdqe
add rsp, 0x28
ret
Function at 0x140042370
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x718], 0
mov rsi, r9
mov rbp, r8
movsxd rbx, edx
mov rdi, rcx
je 0x1400423ce
mov dl, 1
call fcn.140032430
mov rax, qword [rdi + 0x670]
mov r9, rsi
mov r8, rbp
mov qword [rsp + 0x20], rax
mov edx, ebx
mov rcx, rdi
call qword [rdi + 0x718]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.140032430
mov eax, ebx
jmp 0x140042412
cmp ebx, 2
ja 0x140042410
mov r9, qword [rdi + 0x668]
lea rdx, [0x140084e00]
lea rcx, [rbx + rbx*2]
add rcx, rdx
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x668]
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140042430
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rdi
sub rsp, 0x160
mov rax, qword [0x14009d080]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp byte [rcx + 0xf1e], 0
mov rdi, rcx
jne 0x140042473
cmp qword [rcx + 0x678], 0
je 0x140042550
mov r8, rdx
mov qword [rsp + 0x158], rbx
mov edx, 0x100
lea r9, [rsp + 0x180]
lea rcx, [rsp + 0x30]
call fcn.1400304d0
lea rax, [rsp + 0x30]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400424a1
mov rcx, qword [rdi + 0x678]
test rcx, rcx
je 0x1400424e8
cmp byte [rdi + 0x1597], 0
jne 0x1400424e8
lea rdx, [rsp + 0x30]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
mov byte [rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x1400424d0
mov byte [rdi + 0x1597], 1
cmp byte [rdi + 0xf1e], 0
je 0x140042548
mov byte [rsp + rbx + 0x30], 0xa
inc rbx
cmp rbx, 0x102
jae 0x1400425a3
cmp qword [rdi + 0x718], 0
mov byte [rsp + rbx + 0x30], 0
je 0x140042569
mov dl, 1
mov rcx, rdi
call fcn.140032430
mov rax, qword [rdi + 0x670]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x718]
xor edx, edx
mov rcx, rdi
call fcn.140032430
mov rbx, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14007b610
add rsp, 0x160
pop rdi
ret
mov r9, qword [rdi + 0x668]
lea rcx, [0x140084e00]
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x668]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x140042548
call fcn.14007c008
int3
Function at 0x1400425b0
Capabilities:
Write file on windows

Disassembly:
test rcx, rcx
je 0x140042716
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rdi
sub rsp, 0x860
mov rax, qword [0x14009d080]
xor rax, rsp
mov qword [rsp + 0x840], rax
cmp byte [rcx + 0xf1e], 0
mov rdi, rcx
je 0x1400426fe
mov r8, rdx
mov qword [r11 - 0x10], rbx
mov edx, 0x801
lea r9, [r11 + 0x18]
lea rcx, [rsp + 0x30]
call fcn.1400304d0
movsxd rcx, eax
mov rbx, 0xffffffffffffffff
cmp rcx, 0x801
jb 0x140042671
mov rcx, qword [rsp + 0x878]
mov rax, rbx
nop word [rax + rax]
cmp byte [rcx + rax + 1], 0
lea rax, [rax + 1]
jne 0x140042630
cmp byte [rax + rcx - 1], 0xa
jne 0x140042658
lea r8, str...._n
mov edx, 5
lea rcx, [rsp + 0x82c]
jmp 0x14004266c
lea r8, [0x140084e20]
mov edx, 4
lea rcx, [rsp + 0x82d]
call fcn.1400303d0
lea rax, [rsp + 0x30]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140042676
cmp qword [rdi + 0x718], 0
je 0x1400426be
mov dl, 1
mov rcx, rdi
call fcn.140032430
mov rax, qword [rdi + 0x670]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x718]
xor edx, edx
mov rcx, rdi
call fcn.140032430
jmp 0x1400426f6
mov r9, qword [rdi + 0x668]
lea rcx, [0x140084e00]
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x668]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbx, qword [rsp + 0x858]
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.14007b610
add rsp, 0x860
pop rdi
ret

Function at 0x1400427b0
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 0x1400427f2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, Ordinal_60
mov qword [rbx], 0
cmp eax, 0x2733
mov edx, 0x51
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 0x140042990
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x138
mov rax, qword [0x14009d080]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov r14, qword [rsp + 0x1a0]
mov rsi, rcx
movsxd rcx, edx
xor r13d, r13d
mov rax, rcx
mov r12, r9
shl rax, 5
mov r15, r8
lea rbx, [rsi + 0x508]
mov rbp, qword [rsi + rcx*8 + 0x4c0]
add rbx, rax
mov rax, qword [rsi + 0x698]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x7c], 3
je 0x140042a97
lea rax, [0x140042840]
cmp qword [rsi + rcx*8 + 0x4e8], rax
jne 0x140042a97
cmp qword [rbx], r13
je 0x140042a1e
test rdi, rdi
je 0x140042a97
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov r8, rdx
mov rcx, rbp
call fcn.140051f00
cmp eax, 0xffffffff
je 0x140042a97
test al, 1
je 0x140042a97
mov rax, qword [rbx]
test rax, rax
jne 0x140042a70
mov rax, qword [rsi]
mov ecx, dword [rax + 0xb70]
add ecx, ecx
movsxd rcx, ecx
mov qword [rbx + 8], rcx
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, qword [rbx + 8]
mov qword [rbx], rax
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], r13
test rax, rax
je 0x140042a93
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, rax
mov r8d, edi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x140042a97
add qword [rbx + 0x10], rcx
jmp 0x140042a97
mov qword [rbx + 8], r13
xor r9d, r9d
mov r8d, r12d
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_send]
movsxd rdi, eax
mov dword [r14], r13d
cmp rdi, 0xffffffffffffffff
jne 0x140042b04
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x140042ad0
mov dword [r14], 0x51
mov rax, r13
jmp 0x140042b07
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, ebx
call fcn.14002bb70
mov rcx, qword [rsi]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.140042430
mov rcx, qword [rsi]
mov dword [rcx + 0x11b0], ebx
mov dword [r14], Ordinal_60
mov rax, rdi
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.14007b610
add rsp, 0x138
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x558], 0
je 0x1400431bd
call fcn.14003baf0
test eax, eax
jne 0x1400431e3
xor al, al
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x4c0]
cmp rcx, 0xffffffffffffffff
je 0x1400431b6
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x1400431b6
mov al, 1
add rsp, 0x28
ret
Function at 0x140045150
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x14004517a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
lea rdx, [0x1400852c0]
mov rcx, rbx
mov r14, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strpbrk]
test rax, rax
je 0x1400451de
mov rcx, rbx
test r14, r14
je 0x1400451c8
xor edx, edx
lea r8d, [rdx + 8]
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test r14, r14
je 0x140045216
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
test rax, rax
je 0x140045216
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x1400452d8
mov qword [rsp + 0x40], rsi
mov rsi, 0xffffffffffffffff
mov rdx, rsi
nop
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x140045240
lea ecx, [rax + 1]
add rcx, rdx
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1400452ca
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
test eax, eax
je 0x1400452ca
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x140045270
mov ecx, 0x5c
mov word [rax + rdi], cx
inc rsi
cmp byte [rdi + rsi], bpl
jne 0x140045284
mov rcx, rdi
sub rcx, rbx
add rcx, rsi
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x1400452a0
mov rcx, rdi
test r14, r14
je 0x1400452c1
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x1400452c7
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [fcn.14007c9b2]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret