joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14011a030
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
cmp qword [rsp + 0xb8], 0
jne 0x14011a05e
mov qword [rsp + 0x50], 0
jmp 0x14011a075
mov edx, 0x400
mov rcx, qword [rsp + 0xb8]
call fcn.140001160
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
add eax, 8
cdqe
add rax, 0x20
mov ecx, 0xffffffff
cmp rax, rcx
jae 0x14011a0eb
mov eax, dword [rsp + 0x30]
add eax, 8
cdqe
add rax, 0x20
mov ecx, 0xffffffff
sub rcx, rax
mov rax, rcx
test rax, rax
jbe 0x14011a0eb
mov eax, dword [rsp + 0x30]
add eax, 8
cdqe
add rax, 0x20
mov ecx, 0xffffffe7
cmp rax, rcx
jae 0x14011a0eb
xor eax, eax
cmp eax, 1
je 0x14011a0eb
mov eax, dword [rsp + 0x30]
add eax, 8
cdqe
add rax, 0x38
mov rcx, rax
call fcn.14027bb94
mov qword [rsp + 0x58], rax
jmp 0x14011a0f4
mov qword [rsp + 0x58], 0
mov eax, dword [rsp + 0x30]
add eax, 8
cdqe
add rax, 0x20
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x58]
call fcn.140113960
mov qword [rsp + 0x48], rax
mov ecx, 0x48
call fcn.14027bb94
xor r9d, r9d
xor r8d, r8d
mov edx, 0x30
mov rcx, rax
call fcn.140113960
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, dword [rsp + 0xa0]
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x34], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x98]
mov qword [rax], rcx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x90]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0xa8]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x88]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0xb0]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx + 0x18]
mov qword [rax], rcx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x48]
lea rcx, [0x140119600]
mov qword [rax + 8], rcx
cmp qword [rsp + 0xb8], 0
jne 0x14011a216
lea rax, [0x1403b9997]
mov qword [rsp + 0x60], rax
jmp 0x14011a223
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x30]
add eax, 8
cdqe
mov rcx, qword [rsp + 0x48]
add rcx, 0x20
mov r9, qword [rsp + 0x60]
lea r8, [0x1403abfd0]
mov rdx, rax
call fcn.140001420
mov rax, qword [rsp + 0x48]
add rsp, 0x78
ret
Function at 0x14011e710
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x60]
movzx eax, word [rax]
cmp eax, 0x17
jne 0x14011e770
cmp dword [0x140326f14], 0
jne 0x14011e770
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9d, 1
mov r8d, 0x1ab1
lea rdx, [0x1403ab128]
xor ecx, ecx
call fcn.140124df0
mov rax, 0xffffffffffffffff
jmp 0x14011e8a0
mov rax, qword [rsp + 0x60]
movzx eax, word [rax]
mov r8d, dword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0xffffffffffffffff
jne 0x14011e7c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9d, 2
mov r8d, 0x1ab2
lea rdx, [0x1403ab0e8]
xor ecx, ecx
call fcn.140124df0
mov rax, 0xffffffffffffffff
jmp 0x14011e8a0
mov rax, qword [rsp + 0x60]
movzx eax, word [rax]
cmp eax, 0x17
jne 0x14011e829
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov r8d, 0x1b
mov edx, 0x29
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x14011e829
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], 0
mov r9d, eax
mov r8d, 0x1abd
lea rdx, [0x1403ab0a8]
xor ecx, ecx
call fcn.140124df0
mov ecx, 0xfd
call fcn.1402742dc
mov rax, qword [rsp + 0x60]
movzx eax, word [rax]
cmp eax, 0x17
jne 0x14011e841
mov qword [rsp + 0x40], 0x1c
jmp 0x14011e84a
mov qword [rsp + 0x40], reloc.WS2_32.dll_recv
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x14011e89b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9d, 3
mov r8d, 0x1ac6
lea rdx, [0x1403ab068]
xor ecx, ecx
call fcn.140124df0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, 0xffffffffffffffff
jmp 0x14011e8a0
mov rax, qword [rsp + 0x38]
add rsp, 0x58
ret
Function at 0x140123e00
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x68]
call fcn.140112d50
lea r8, [0x1403a9cb4]
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140278e20
cmp qword [rsp + 0x38], 0
jne 0x140123e63
mov rax, qword [rsp + 0x60]
mov qword [rax], 0
xor eax, eax
jmp 0x140123f74
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x38]
call fcn.1402796f0
mov rcx, qword [rsp + 0x38]
call fcn.140274838
cmp eax, 0x7fffffff
jge 0x140123e94
mov rcx, qword [rsp + 0x38]
call fcn.140274838
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x140123f66
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call fcn.1402796f0
mov eax, dword [rsp + 0x30]
inc eax
cdqe
mov rcx, rax
call fcn.14027bb94
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140123f12
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov r9d, 0xfe
mov r8d, 0x2544
lea rdx, [0x1403aa288]
xor ecx, ecx
call fcn.140124df0
mov r8d, 0x2544
lea rdx, [0x1403aa248]
lea rcx, [0x1403a9e78]
call fcn.1400012d0
mov ecx, 0xfe
call fcn.1402742dc
cmp dword [rsp + 0x30], 0
jle 0x140123f39
movsxd rax, dword [rsp + 0x30]
mov r9, qword [rsp + 0x38]
mov r8, rax
mov edx, 1
mov rcx, qword [rsp + 0x40]
call fcn.14027bacc
mov dword [rsp + 0x30], eax
movsxd rax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
mov byte [rcx + rax], 0
mov rcx, qword [rsp + 0x38]
call fcn.1402793a8
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
mov qword [rax], rcx
mov eax, dword [rsp + 0x30]
jmp 0x140123f74
mov rax, qword [rsp + 0x60]
mov qword [rax], 0
xor eax, eax
add rsp, 0x58
ret

Function at 0x140123f80
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x40]
call fcn.140112d50
lea r8, [0x1403a9c64]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140278e20
cmp qword [rsp + 0x20], 0
je 0x140123ff3
movsxd rax, dword [rsp + 0x50]
mov r9, qword [rsp + 0x20]
mov r8, rax
mov edx, 1
mov rcx, qword [rsp + 0x48]
call fcn.14027a558
mov rcx, qword [rsp + 0x20]
call fcn.1402793a8
add rsp, 0x38
ret
Function at 0x140124000
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x40]
call fcn.140112d50
lea r8, [0x1403a9c14]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140278e20
cmp qword [rsp + 0x20], 0
je 0x1401240c1
cmp qword [rsp + 0x58], 0
je 0x14012409b
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x20]
call fcn.1402796f0
mov rcx, qword [rsp + 0x20]
call fcn.140274828
cmp rax, qword [rsp + 0x58]
jae 0x140124099
movsxd rax, dword [rsp + 0x50]
mov r9, qword [rsp + 0x20]
mov r8, rax
mov edx, 1
mov rcx, qword [rsp + 0x48]
call fcn.14027a558
jmp 0x1401240b7
movsxd rax, dword [rsp + 0x50]
mov r9, qword [rsp + 0x20]
mov r8, rax
mov edx, 1
mov rcx, qword [rsp + 0x48]
call fcn.14027a558
mov rcx, qword [rsp + 0x20]
call fcn.1402793a8
add rsp, 0x38
ret

Function at 0x1401240d0
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov eax, 0x4048
call fcn.14026deb0
sub rsp, rax
mov rax, qword [0x140325ed8]
xor rax, rsp
mov qword [rsp + 0x4030], rax
mov r9d, 0x1000
lea r8, [rsp + 0x2030]
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x4050]
call fcn.140112d50
mov r9d, 0x1000
lea r8, [rsp + 0x30]
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x4058]
call fcn.140112d50
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x2030]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14012415a
mov dword [rsp + 0x20], 0
jmp 0x140124162
mov dword [rsp + 0x20], 1
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x4030]
xor rcx, rsp
call fcn.14026d940
add rsp, 0x4048
ret
Function at 0x140125250
Capabilities:
Create thread

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x48]
mov r8, qword [rsp + 0x40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
add rsp, 0x38
ret

Function at 0x140125460
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x50]
call fcn.140114170
mov qword [rsp + 0x30], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx + rax]
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x28]
call fcn.1402796f0
mov r9, qword [rsp + 0x28]
mov r8d, reloc.WS2_32.dll_recv
mov edx, 1
mov rcx, qword [rsp + 0x50]
call fcn.14027bacc
test rax, rax
jbe 0x1401254cc
mov dword [rsp + 0x20], 0
jmp 0x1401254d4
mov dword [rsp + 0x20], 1
mov eax, dword [rsp + 0x20]
add rsp, 0x48
ret

Function at 0x1401254e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x40]
call fcn.140114170
mov qword [rsp + 0x28], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx + rax]
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x20]
call fcn.1402796f0
mov r9, qword [rsp + 0x20]
mov r8d, reloc.WS2_32.dll_recv
mov edx, 1
mov rcx, qword [rsp + 0x40]
call fcn.14027a558
mov rcx, qword [rsp + 0x20]
call fcn.140282018
add rsp, 0x38
ret
Function at 0x140125550
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x60]
call fcn.140114170
mov qword [rsp + 0x40], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx + rax]
mov qword [rsp + 0x30], rax
mov eax, 8
imul rax, rax, 2
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
cmp qword [rsp + 0x68], 0
jne 0x140125645
mov rax, qword [rsp + 0x60]
cmp dword [rax + 8], 0
jbe 0x140125640
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rax, qword [rsp + 0x60]
mov edx, dword [rax + 8]
mov rcx, qword [rsp + 0x30]
call fcn.1402796f0
mov r9, qword [rsp + 0x30]
mov r8d, 8
mov edx, 1
mov rcx, qword [rsp + 0x28]
call fcn.14027bacc
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 4]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x28]
add rdx, rcx
mov rcx, rdx
mov r9, qword [rsp + 0x30]
mov r8d, eax
mov edx, 1
call fcn.14027bacc
mov rcx, qword [rsp + 0x20]
mov ecx, dword [rcx + 4]
cmp rax, rcx
je 0x140125640
mov qword [rsp + 0x20], 0
jmp 0x1401256cc
mov rax, qword [rsp + 0x68]
cmp dword [rax], 0
jbe 0x1401256cc
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rax, qword [rsp + 0x68]
mov edx, dword [rax]
mov rcx, qword [rsp + 0x30]
call fcn.1402796f0
mov r9, qword [rsp + 0x30]
mov r8d, 8
mov edx, 1
mov rcx, qword [rsp + 0x28]
call fcn.14027bacc
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 4]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x28]
add rdx, rcx
mov rcx, rdx
mov r9, qword [rsp + 0x30]
mov r8d, eax
mov edx, 1
call fcn.14027bacc
mov rcx, qword [rsp + 0x20]
mov ecx, dword [rcx + 4]
cmp rax, rcx
je 0x1401256cc
mov qword [rsp + 0x20], 0
mov rax, qword [rsp + 0x20]
add rsp, 0x58
ret
Function at 0x1401257b0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x40]
call fcn.140112d50
lea r8, str.rbN
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140278e20
test eax, eax
je 0x140125821
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x40]
call fcn.140112d50
lea r8, [0x1403a9b68]
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140278e20
cmp qword [rsp + 0x28], 0
jne 0x140125830
xor eax, eax
jmp 0x14012599f
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x28]
call fcn.1402796f0
mov rcx, qword [rsp + 0x28]
call fcn.140274838
cmp eax, 0x10
jge 0x1401258eb
mov edx, 0x104
mov rcx, qword [rsp + 0x40]
call fcn.140001160
mov ecx, dword [rsp + 0x50]
lea eax, [rcx + rax + 0x11]
cdqe
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov ecx, reloc.WS2_32.dll_recv
call fcn.140113f90
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov ecx, dword [rsp + 0x48]
mov dword [rax + 4], ecx
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x20]
call fcn.140114170
mov ecx, 8
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x28]
mov qword [rax + rcx], rdx
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
call fcn.1401256e0
mov r9, qword [rsp + 0x28]
mov r8d, reloc.WS2_32.dll_recv
mov edx, 1
mov rcx, qword [rsp + 0x20]
call fcn.14027a558
mov rcx, qword [rsp + 0x28]
call fcn.140282018
jmp 0x14012599a
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x28]
call fcn.1402796f0
mov edx, 0x104
mov rcx, qword [rsp + 0x40]
call fcn.140001160
mov ecx, dword [rsp + 0x50]
lea eax, [rcx + rax + 0x11]
cdqe
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov ecx, reloc.WS2_32.dll_recv
call fcn.140113f90
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x28]
mov r8d, reloc.WS2_32.dll_recv
mov edx, 1
mov rcx, qword [rsp + 0x20]
call fcn.14027bacc
cmp rax, 0x10
je 0x14012596a
mov rcx, qword [rsp + 0x20]
call fcn.14027a7c0
mov qword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x28]
call fcn.1402793a8
jmp 0x14012599a
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x20]
call fcn.140114170
mov ecx, 8
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x28]
mov qword [rax + rcx], rdx
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
call fcn.1401256e0
mov rax, qword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x140126970
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x40]
call fcn.140113dd0
test eax, eax
jne 0x140126993
jmp 0x1401269a7
mov edx, 0x42b
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x50]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x38
ret
Function at 0x14012bb40
Capabilities:
Clear file content
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xa0
mov rax, qword [0x140325ed8]
xor rax, rsp
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x20], 0
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0xb0]
call fcn.1402796f0
mov rcx, qword [rsp + 0xb0]
call fcn.140274828
mov qword [rsp + 0x38], rax
movsxd rax, dword [rsp + 0xc0]
movsxd rcx, dword [rsp + 0xd0]
lea rax, [rax + rcx + 0x3c]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_htonl]
mov rcx, qword [rsp + 0x30]
mov dword [rcx], eax
mov ecx, dword [rsp + 0xc0]
call qword [sym.imp.WS2_32.dll_htonl]
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 4], eax
mov ecx, dword [rsp + 0xd0]
call qword [sym.imp.WS2_32.dll_htonl]
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 8], eax
cmp qword [rsp + 0xd8], 0
je 0x14012bc27
mov rax, qword [rsp + 0x30]
add rax, 0xc
mov r9d, 0x30
mov r8, qword [rsp + 0xd8]
mov edx, 0x30
mov rcx, rax
call fcn.140001020
jmp 0x14012bc3c
mov rax, qword [rsp + 0x30]
add rax, 0xc
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov r9, qword [rsp + 0xb0]
mov r8d, 0x3c
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.14027a558
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
movsxd rax, dword [rsp + 0xc0]
mov r9, qword [rsp + 0xb0]
mov r8, rax
mov edx, 1
mov rcx, qword [rsp + 0xb8]
call fcn.14027a558
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0xb0]
call fcn.140274828
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0xc8], 0
je 0x14012bcf0
movsxd rax, dword [rsp + 0xd0]
mov r9, qword [rsp + 0xb0]
mov r8, rax
mov edx, 1
mov rcx, qword [rsp + 0xc8]
call fcn.14027a558
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0xb0]
call fcn.140282018
cmp qword [rsp + 0xc8], 0
je 0x14012bd15
mov eax, dword [rsp + 0xd0]
mov dword [rsp + 0x28], eax
jmp 0x14012bd1d
mov dword [rsp + 0x28], 0
movsxd rax, dword [rsp + 0xc0]
movsxd rcx, dword [rsp + 0x28]
lea rax, [rax + rcx + 0x3c]
cmp qword [rsp + 0x20], rax
jae 0x14012bd89
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0xb0]
call fcn.1402862c4
mov ecx, eax
call fcn.140285a8c
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov rcx, qword [rsp + 0xb0]
call fcn.1402862c4
mov ecx, eax
call fcn.140285a8c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor eax, eax
jmp 0x14012bd8e
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14026d940
add rsp, 0xa0
pop rdi
ret
Function at 0x14012e7c0
Capabilities:
Copy file
Delete file

Disassembly:
mov qword [rsp + 8], rcx
mov eax, 0x2088
call fcn.14026deb0
sub rsp, rax
mov rax, qword [0x140325ed8]
xor rax, rsp
mov qword [rsp + 0x2070], rax
mov rax, qword [rsp + 0x2090]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 0
cmp qword [rsp + 0x30], 0
je 0x14012e827
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x1030]
cmp qword [rax + 0x1028], rcx
jb 0x14012e827
mov rax, qword [rsp + 0x30]
cmp qword [rax + 8], 0
jne 0x14012e831
mov eax, 1
jmp 0x14012e9d6
mov r9, 0xffffffffffffffff
lea r8, str..tmp
mov rdx, 0xffffffffffffffff
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call fcn.140123be0
mov qword [rsp + 0x40], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + 0x40]
call fcn.14012c7b0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x14012e88f
mov rcx, qword [rsp + 0x40]
call fcn.14027a7c0
mov eax, 1
jmp 0x14012e9d6
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x30]
mov qword [rsp + rax + 0x58], rcx
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x48]
mov qword [rsp + rax + 0x58], rcx
mov rax, qword [rsp + 0x30]
mov dword [rax + 0x1050], 0
lea r8, [rsp + 0x58]
lea rdx, [0x14012e2d0]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x1010]
call fcn.140122540
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x1050], 0
jne 0x14012e9c8
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call fcn.1402793a8
mov rcx, qword [rsp + 0x48]
call fcn.1402793a8
mov dword [rsp + 0x28], 0x1000
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, qword [rsp + 0x40]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xffffffff
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call fcn.140112d50
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x14012e96a
mov dword [rsp + 0x38], 1
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call fcn.14012c7b0
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
mov qword [rax], rcx
cmp qword [rsp + 0x50], 0
je 0x14012e9c0
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call fcn.140274828
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x1020], rax
jmp 0x14012e9c8
mov dword [rsp + 0x38], 1
mov rcx, qword [rsp + 0x40]
call fcn.14027a7c0
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x2070]
xor rcx, rsp
call fcn.14026d940
add rsp, 0x2088
ret
Function at 0x140135980
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov dword [rsp], 0xffffffff
jmp 0x1401359ad
mov eax, dword [rsp + 0x28]
dec eax
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x20]
inc rax
mov qword [rsp + 0x20], rax
cmp dword [rsp + 0x28], 0
je 0x1401359e1
mov rax, qword [rsp + 0x20]
movsx eax, byte [rax]
mov ecx, dword [rsp]
xor ecx, eax
mov eax, ecx
and eax, 0xff
mov eax, eax
lea rcx, [0x1403aea70]
mov edx, dword [rsp]
shr edx, 8
mov eax, dword [rcx + rax*4]
xor eax, edx
mov dword [rsp], eax
jmp 0x140135996
mov eax, dword [rsp]
not eax
add rsp, 0x18
ret
Function at 0x140154fc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
xor eax, eax
mov word [rsp + 0x20], ax
mov dword [rsp + 0x24], 0
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0xa8]
call fcn.1401234a0
cmp dword [rsp + 0x24], 0
jne 0x140155061
mov dword [rsp + 0x24], 1
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0xa0], 0
jne 0x140155010
mov dword [rsp + 0x28], 0
jmp 0x140155018
mov dword [rsp + 0x28], 1
movzx eax, word [rsp + 0x20]
inc ax
mov word [rsp + 0x20], ax
movzx eax, word [rsp + 0x20]
cdq
and eax, 1
xor eax, edx
sub eax, edx
cmp eax, dword [rsp + 0x28]
jne 0x14015503a
jmp 0x140154ff8
movzx eax, word [rsp + 0x20]
mov edx, eax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0xa8]
call fcn.1401231a0
test rax, rax
je 0x14015505f
mov dword [rsp + 0x24], 0
jmp 0x140154fe9
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0xa8]
call fcn.1401234c0
movzx eax, word [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x140158c30
Capabilities:
Get common file path
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x1f0
mov rax, qword [0x140325ed8]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
lea rax, [rsp + 0xd0]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
lea rdx, [rsp + 0xd0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea r8, str.agent.log
mov edx, 0x104
lea rcx, [rsp + 0xd0]
call fcn.140286f10
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov r8d, 3
mov edx, 0x40000000
lea rcx, [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
je 0x140158e0c
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rcx, [rsp + 0x60]
call fcn.1401588d0
lea rcx, [rsp + 0x60]
call fcn.1401588b0
mov qword [rsp + 0x68], rax
mov r9, qword [rsp + 0x68]
lea r8, [0x1403b62a0]
mov edx, 0x50
lea rcx, [rsp + 0x80]
call fcn.140282fc8
lea rax, [rsp + 0x80]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x50], 0xffffffffffffffff
inc qword [rsp + 0x50]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x50]
cmp byte [rax + rcx], 0
jne 0x140158d49
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, eax
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [rsp + 0x200]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x58], 0xffffffffffffffff
inc qword [rsp + 0x58]
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
cmp byte [rax + rcx], 0
jne 0x140158d9d
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, eax
mov rdx, qword [rsp + 0x200]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, 2
lea rdx, [0x1403b62b4]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.14026d940
add rsp, 0x1f0
pop rdi
ret