joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007275c
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
xor esi, esi
mov r14, rdx
mov rdi, rcx
cmp dword [rcx + 0xa8], esi
jle 0x14007281b
xor ebp, ebp
mov rax, qword [rdi + 0x40]
cmp qword [rax + rbp], 0
je 0x140072809
mov rax, qword [rdi + 0x30]
xor edx, edx
mov r9, qword [rdi + 0xa0]
add r9, 4
movsxd rcx, esi
shl rcx, 4
mov rbx, qword [rax + 0x58]
lea r8d, [rdx + 9]
add r9, rcx
mov dword [rsp + 0x20], 4
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
xor edx, edx
mov dword [rsp + 0x20], 4
lea r9, [rdi + 0x58]
mov rcx, rbx
lea r8d, [rdx + 0xa]
call qword [sym.imp.WS2_32.dll_setsockopt]
xor r9d, r9d
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
lea rdx, [0x140221180]
mov qword [rsp + 0x20], r14
mov rcx, rbx
lea r8d, [r9 + 0x60]
call qword [sym.imp.WS2_32.dll_sendto]
inc esi
add rbp, 8
cmp esi, dword [rdi + 0xa8]
jl 0x14007278b
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x140072838
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov rsi, rdx
mov rbx, rcx
cmp dword [rcx + 0xb8], edi
jle 0x1400728b7
mov rax, qword [rbx + 0xb0]
mov edx, 0x29
mov rcx, qword [rbx + 0x38]
movsxd r8, edi
mov dword [rsp + 0x20], 4
mov rcx, qword [rcx + 0x58]
lea r9, [rax + r8*4]
lea r8d, [rdx - 0x20]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 0x38]
lea rdx, [0x140221180]
xor r9d, r9d
mov dword [rsp + 0x28], 0x1c
mov qword [rsp + 0x20], rsi
mov rcx, qword [rcx + 0x58]
lea r8d, [r9 + 0x60]
call qword [sym.imp.WS2_32.dll_sendto]
inc edi
cmp edi, dword [rbx + 0xb8]
jl 0x140072857
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140072e70
Capabilities:
Get local ipv4 addresses

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
xor edi, edi
mov ecx, 0x1c0
mov dword [rsp + 0x48], ecx
call fcn.1401707f0
mov rbx, rax
test rax, rax
je 0x140072f8c
lea rax, [rsp + 0x48]
mov r9, rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [rdi + 0x2a]
lea ecx, [rdi + 0x17]
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
cmp eax, 0x6f
jne 0x140072edc
mov rcx, rbx
call fcn.14016f3a8
mov ecx, dword [rsp + 0x48]
call fcn.1401707f0
mov rbx, rax
test rax, rax
je 0x140072fd2
xor r8d, r8d
lea rax, [rsp + 0x48]
mov r9, rbx
mov qword [rsp + 0x20], rax
lea edx, [r8 + 0x2a]
lea ecx, [rdx - 0x13]
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
test eax, eax
je 0x140072f09
mov rcx, rbx
call fcn.14016f3a8
xor eax, eax
jmp 0x140072f7c
mov rax, rbx
test rbx, rbx
je 0x140072f2e
cmp dword [rax + 0x58], 0
je 0x140072f25
test byte [rax + 0x5c], 0x18
jne 0x140072f25
cmp dword [rax + 0x68], 1
jne 0x140072f25
inc edi
mov rax, qword [rax + 8]
test rax, rax
jne 0x140072f11
movsxd rcx, edi
shl rcx, 2
call fcn.1401707f0
mov qword [rsi], rax
test rax, rax
je 0x140073018
mov rdx, rbx
test rbx, rbx
je 0x140072f72
cmp dword [rdx + 0x58], 0
je 0x140072f69
test byte [rdx + 0x5c], 0x18
jne 0x140072f69
cmp dword [rdx + 0x68], 1
jne 0x140072f69
mov ecx, dword [rdx + 4]
mov dword [rax], ecx
add rax, 4
mov rdx, qword [rdx + 8]
test rdx, rdx
jne 0x140072f4e
mov rcx, rbx
call fcn.14016f3a8
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xfe
lea rdx, str...microstackILibParsers.c
mov edi, 0x2e6
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, edi
xor ecx, ecx
call fcn.140078e6c
mov r8d, edi
lea rdx, str...microstackILibParsers.c
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.140001090
mov ecx, ebx
call fcn.14016a768
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xfe
lea rdx, str...microstackILibParsers.c
mov edi, 0x2ea
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, edi
xor ecx, ecx
call fcn.140078e6c
mov r8d, edi
lea rdx, str...microstackILibParsers.c
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.140001090
mov ecx, ebx
call fcn.14016a768
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xfe
lea rdx, str...microstackILibParsers.c
mov edi, 0x302
mov dword [rsp + 0x20], eax
mov r9d, ebx
mov r8d, edi
xor ecx, ecx
call fcn.140078e6c
mov r8d, edi
lea rdx, str...microstackILibParsers.c
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.140001090
mov ecx, ebx
call fcn.14016a768
int3
Function at 0x14007359c
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1e0
mov rax, qword [0x14021c510]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov ebx, ecx
lea rdx, [rsp + 0x30]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400736b3
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
mov ecx, 0x560
call fcn.140073214
mov ecx, reloc.WS2_32.dll_recv
mov rbx, rax
call fcn.1400775a8
xor ecx, ecx
mov qword [rbx + 0x510], rax
call fcn.1400775a8
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
and dword [rsp + 0x20], 0
mov qword [rbx + 0x518], rax
mov dword [rbx], 1
lea edx, [r9 + 2]
mov ecx, edx
lea r8d, [r9 + 0x11]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov qword [rbx + 0x4f0], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edx, edx
mov qword [rbx + 0x10], rax
mov rcx, rax
lea r8d, [rdx + 1]
call qword [sym.imp.dbghelp.dll_SymInitialize]
test eax, eax
jne 0x140073654
and qword [rbx + 0x10], 0
and dword [rbx], 0
mov eax, dword [0x14021fe90]
test eax, eax
jne 0x140073680
xor r9d, r9d
lea edx, [rax + 1]
xor ecx, ecx
lea r8d, [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov qword [0x14021fea8], rax
mov eax, dword [0x14021fe90]
inc eax
mov rcx, rbx
mov dword [0x14021fe90], eax
call fcn.140077378
mov qword [rbx + 0x4f8], rax
mov rax, rbx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140168070
add rsp, 0x1e0
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0x6f5
lea rdx, str...microstackILibParsers.c
mov r8d, ebx
mov dword [rsp + 0x20], eax
mov r9d, 1
xor ecx, ecx
call fcn.140078e6c
mov r8d, ebx
lea rdx, str...microstackILibParsers.c
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.140001090
mov ecx, 1
call fcn.14016a768
int3
Function at 0x140073bc0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7a0]
sub rsp, 0x8a0
mov rax, qword [0x14021c510]
xor rax, rsp
mov qword [rbp + 0x790], rax
mov rax, qword [rcx + 0x510]
lea rbx, [0x140220180]
xor esi, esi
mov qword [rsp + 0x40], rdx
mov r13, r9
mov dword [rsp + 0x50], esi
mov r12, rdx
mov r14, rcx
mov rdi, qword [rax + 0x18]
mov r15d, esi
mov dword [rsp + 0x30], 0x5265c00
mov qword [rsp + 0x38], rsi
test rdi, rdi
je 0x140073d3f
xor r12d, r12d
test rdi, rdi
je 0x140073c3c
mov rsi, qword [rdi]
jmp 0x140073c3f
mov rsi, r12
test rsi, rsi
je 0x140073d38
cmp qword [rsi], r12
je 0x140073d2b
lea rax, [rsp + 0x30]
mov dword [rbp + 0x580], r12d
lea r9, [rbp + 0x160]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x370]
mov dword [rbp + 0x160], r12d
lea rdx, [rbp + 0x580]
mov dword [rbp + 0x370], r12d
mov rcx, rsi
call qword [rsi]
mov r8d, 0x208
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x580]
call fcn.140169540
test eax, eax
jne 0x140073cdb
mov r8d, 0x208
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x370]
call fcn.140169540
test eax, eax
jne 0x140073cdb
mov r8d, 0x208
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x160]
call fcn.140169540
test eax, eax
je 0x140073d2b
lea rax, [rsp + 0x38]
mov ecx, 0x40
lea r9, [rbp + 0x160]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x370]
lea rdx, [rbp + 0x580]
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x140073d2b
mov r9, qword [rsi + 0x28]
lea r8, [0x1401ea1b0]
movsxd rax, r15d
mov edx, 0x1000
sub rdx, rax
lea rcx, [rax + rbx]
call fcn.1400010e4
add r15d, eax
mov rdi, qword [rdi + 0x10]
test rdi, rdi
jne 0x140073c37
mov r12, qword [rsp + 0x40]
xor esi, esi
test r15d, r15d
cmovle rbx, rsi
test rbx, rbx
jne 0x140073d81
mov rcx, qword [r14 + 0x4f0]
mov rdx, r13
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x140073d7a
mov rcx, qword [r14 + 0x4f0]
mov rdx, r12
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
lea rbx, str.UNKNOWN
test eax, eax
je 0x140073d81
lea rbx, str.ILibForceUnblockChain
mov rax, rbx
mov rcx, qword [rbp + 0x790]
xor rcx, rsp
call fcn.140168070
mov rbx, qword [rsp + 0x8f0]
add rsp, 0x8a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140075c5c
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
and dword [rsp + 0x40], 0
mov rdi, rcx
cmp word [rcx], 0x17
jne 0x140075ca8
cmp dword [0x14021d210], 0
jne 0x140075ca8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 1
mov r8d, 0x154e
lea rdx, str...microstackILibParsers.c
mov dword [rsp + 0x20], eax
xor ecx, ecx
call fcn.140078e6c
xor eax, eax
jmp 0x140075d4b
movzx ecx, word [rcx]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140075ccc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9d, [rbx + 3]
mov r8d, 0x154f
jmp 0x140075c8f
cmp word [rdi], 0x17
jne 0x140075cf5
mov edx, 0x29
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x40]
mov rcx, rbx
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x140075d56
cmp word [rdi], 0x17
mov eax, 0x1c
mov rdx, rdi
mov rcx, rbx
lea r8d, [rax - 0xc]
cmove r8d, eax
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x140075d48
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 3
lea rdx, str...microstackILibParsers.c
mov r8d, 0x155c
mov dword [rsp + 0x20], eax
xor ecx, ecx
call fcn.140078e6c
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140075ca1
mov rax, rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
and dword [rsp + 0x20], 0
lea rdx, str...microstackILibParsers.c
mov r9d, eax
mov r8d, 0x1553
xor ecx, ecx
call fcn.140078e6c
mov ecx, 0xfd
call fcn.14016a768
int3

Function at 0x1400785e8
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x30
and qword [rax + 0x18], 0
lea r8, [0x1401e2318]
mov rdi, rcx
lea rcx, [rax + 0x18]
call fcn.14016f350
mov rcx, qword [rsp + 0x50]
test rcx, rcx
jne 0x140078621
and qword [rdi], rcx
xor eax, eax
jmp 0x140078689
xor edx, edx
lea r8d, [rdx + 2]
call fcn.14016b29c
mov rcx, qword [rsp + 0x50]
call fcn.14016acac
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
xor edx, edx
movsxd rbx, eax
call fcn.14016b29c
lea ecx, [rbx + 1]
movsxd rcx, ecx
call fcn.1401707f0
mov rsi, rax
test rax, rax
je 0x140078699
mov r9, qword [rsp + 0x50]
mov r8, rbx
mov edx, 1
mov rcx, rax
call fcn.140170728
movsxd rcx, eax
mov rbx, rax
mov byte [rcx + rsi], 0
mov rcx, qword [rsp + 0x50]
call fcn.14016aee0
mov eax, ebx
mov qword [rdi], rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0xfe
lea rdx, str...microstackILibParsers.c
mov ebx, 0x1f4a
mov dword [rsp + 0x20], eax
mov r9d, edi
mov r8d, ebx
xor ecx, ecx
call fcn.140078e6c
mov r8d, ebx
lea rdx, str...microstackILibParsers.c
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.140001090
mov ecx, edi
call fcn.14016a768
int3
Function at 0x1400786e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
and qword [rsp + 0x48], 0
mov rdi, rdx
mov rdx, rcx
movsxd rbx, r8d
lea rcx, [rsp + 0x48]
lea r8, [0x1401e2ba0]
call fcn.14016f350
mov r9, qword [rsp + 0x48]
test r9, r9
je 0x14007872e
mov r8, rbx
mov edx, 1
mov rcx, rdi
call fcn.14016efd0
mov rcx, qword [rsp + 0x48]
call fcn.14016aee0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140078e6c
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x88
mov rax, qword [0x14021c510]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rdi, rdx
mov rbx, rcx
mov edx, 0x20
lea rcx, [rsp + 0x58]
mov ebp, r9d
mov esi, r8d
call fcn.14007873c
lea r9, [rsp + 0x58]
mov edx, 0x1000
lea rcx, [0x140231180]
test rdi, rdi
je 0x140078ee3
mov eax, dword [rsp + 0xd0]
lea r8, str._r_n__s___s:_d___d__d___s
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rdi
call fcn.1400010e4
jmp 0x140078ef4
lea r8, str._r_n__s___s
mov qword [rsp + 0x20], rbx
call fcn.1400010e4
mov ebx, eax
lea eax, [rax - 1]
cmp eax, 0xffe
ja 0x140078f4b
mov rdx, qword [0x14021feb0]
test rdx, rdx
je 0x140078f4b
and qword [rsp + 0x50], 0
lea r8, [0x1401fead8]
lea rcx, [rsp + 0x50]
call fcn.14016f350
mov r9, qword [rsp + 0x50]
test r9, r9
je 0x140078f4b
movsxd r8, ebx
lea rcx, [0x140231180]
mov edx, 1
call fcn.14016efd0
mov rcx, qword [rsp + 0x50]
call fcn.14016aee0
lea rax, [0x140231180]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140168070
add rsp, 0x88
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400796c8
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
and qword [rsp + 0x28], 0
lea r8, [0x140079684]
and dword [rsp + 0x20], 0
mov rbx, rdx
mov r9, rdx
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x48], rax
add rsp, 0x30
pop rbx
ret
Function at 0x14007aa70
Capabilities:
Create thread
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
movsxd rdi, edx
mov rbx, rcx
mov rcx, rdi
mov rsi, r9
mov rbp, r8
call fcn.1401707f0
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x14007ab46
mov rax, qword [rsp + 0x60]
xor r9d, r9d
mov qword [rbx + 0x50], rax
mov rax, qword [rbx + 0x70]
mov dword [rbx + 8], edi
mov qword [rbx + 0x38], rbp
mov qword [rbx + 0x48], rsi
test rax, rax
je 0x14007aafe
mov rcx, qword [rbx + 0x60]
mov r8d, edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rdx, qword [rbx + 0x70]
lea rax, [0x14007a298]
mov rcx, qword [rbx + 0x20]
mov r9, rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, qword [rdx + 0x18]
call fcn.140079288
jmp 0x14007ab31
mov edx, 1
xor ecx, ecx
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
and qword [rsp + 0x28], 0
lea r8, [0x14007a8b0]
and dword [rsp + 0x20], 0
mov r9, rbx
xor edx, edx
mov qword [rbx + 0x58], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0xfe
lea rdx, str...microstackILibProcessPipe.c
mov ebx, 0x577
mov dword [rsp + 0x20], eax
mov r9d, edi
mov r8d, ebx
xor ecx, ecx
call fcn.140078e6c
mov r8d, ebx
lea rdx, str...microstackILibProcessPipe.c
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.140001090
mov ecx, edi
call fcn.14016a768
int3
Function at 0x14007ad90
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
mov esi, r8d
mov rbp, rdx
mov rbx, rcx
mov edi, 0xfffffffc
test rcx, rcx
je 0x14007aebd
cmp qword [rcx + 0x30], 0
jne 0x14007adcd
xor ecx, ecx
call fcn.1400775a8
mov qword [rbx + 0x30], rax
mov rcx, qword [rbx + 0x30]
or edx, 0xffffffff
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, qword [rbx + 0x30]
cmp qword [rax + 0x18], 0
je 0x14007ae00
mov edx, esi
mov rcx, rbp
call fcn.14007903c
mov rcx, qword [rbx + 0x30]
mov rdx, rax
call fcn.140077784
jmp 0x14007ae6d
mov rax, qword [rbx + 0x70]
xor r9d, r9d
mov rcx, qword [rbx + 0x68]
mov r8d, esi
mov rdx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x14007ae25
mov edi, eax
jmp 0x14007ae6d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14007ae83
mov edx, esi
mov rcx, rbp
xor edi, edi
call fcn.14007903c
mov rcx, qword [rbx + 0x30]
mov rdx, rax
call fcn.140077784
mov rdx, qword [rbx + 0x70]
lea rax, [0x14007a4a4]
mov rcx, qword [rbx + 0x20]
mov r9, rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, qword [rdx + 0x18]
call fcn.140079288
mov rcx, qword [rbx + 0x30]
xor r8d, r8d
mov rcx, qword [rcx]
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x14007aebd
mov rcx, qword [rbx + 0x30]
xor r8d, r8d
mov rcx, qword [rcx]
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
cmp qword [rbx + 0x40], 0
je 0x14007aeb5
mov rdx, qword [rbx + 0x70]
mov rcx, qword [rbx + 0x20]
mov rdx, qword [rdx + 0x18]
call fcn.1400791c8
mov rcx, rbx
call qword [rbx + 0x40]
mov rcx, rbx
call fcn.140079838
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14007af40
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x14021c510]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, qword [rsp + 0xd8]
mov r15, rdx
xor edx, edx
movsxd r14, r8d
mov rsi, r9
mov rbx, rcx
lea r8d, [rdx + 2]
call fcn.14016b29c
movsxd rbp, dword [rsp + 0xd0]
lea ecx, [rbp + 0x3c]
add ecx, r14d
call qword [sym.imp.WS2_32.dll_htonl]
mov ecx, r14d
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_htonl]
mov ecx, ebp
mov dword [rsp + 0x24], eax
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x28], eax
test rdi, rdi
je 0x14007afcf
movups xmm0, xmmword [rdi]
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rsp + 0x2c], xmm0
movups xmm0, xmmword [rdi + 0x20]
movups xmmword [rsp + 0x3c], xmm1
movups xmmword [rsp + 0x4c], xmm0
jmp 0x14007afdf
xor edx, edx
lea rcx, [rsp + 0x2c]
lea r8d, [rdx + 0x30]
call fcn.140169620
mov r8d, 0x3c
lea rcx, [rsp + 0x20]
mov r9, rbx
lea r12d, [r8 - 0x3b]
mov edx, r12d
call fcn.14016efd0
mov r8, r14
mov r9, rbx
mov edx, r12d
mov rcx, r15
call fcn.14016efd0
mov rcx, rbx
call fcn.14016ac9c
mov rdi, rax
test rsi, rsi
je 0x14007b02b
mov r8, rbp
mov r9, rbx
mov edx, r12d
mov rcx, rsi
call fcn.14016efd0
mov rcx, rbx
call fcn.140176c78
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140168070
add rsp, 0x70
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14007b054
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
mov eax, 0x1140
call fcn.140168660
sub rsp, rax
mov rax, qword [0x14021c510]
xor rax, rsp
mov qword [rsp + 0x1130], rax
xor edi, edi
mov ebp, edx
mov rsi, rcx
test rcx, rcx
jne 0x14007b098
xor eax, eax
jmp 0x14007b1dd
lea rbx, [rcx + 0x18]
mov rcx, qword [rcx]
call fcn.14016ac9c
cmp rax, qword [rsi + 0x1018]
je 0x14007b091
cmp ebp, 0x20
je 0x14007b0c4
mov eax, 0x3c
cmp ebp, 0x40
lea r14d, [rax + 0xc]
cmovne r14d, eax
jmp 0x14007b0ca
mov r14d, 0x40
mov r9, qword [rsi]
mov r15d, 1
mov edx, r15d
mov r8, r14
mov rcx, rbx
call fcn.140170728
cmp eax, r14d
jl 0x14007b091
mov ecx, dword [rbx]
call qword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [rbx + 4]
mov dword [rbx], eax
call qword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [rbx + 8]
mov dword [rbx + 4], eax
call qword [sym.imp.WS2_32.dll_ntohl]
mov dword [rbx + 8], eax
mov rcx, qword [rsi]
call fcn.14016ac9c
movsxd rcx, dword [rbx + 4]
add rax, rcx
mov qword [rbx - 8], rax
mov eax, 0xff8
sub eax, r14d
cmp dword [rbx + 4], eax
jg 0x14007b091
movsxd r8, dword [rbx + 4]
lea rcx, [r14 + rbx]
mov r9, qword [rsi]
mov edx, r15d
call fcn.140170728
cmp eax, dword [rbx + 4]
jne 0x14007b091
mov ebp, dword [rbx + 8]
lea rcx, [rsp + 0x20]
call fcn.140093690
test ebp, ebp
jle 0x14007b1a1
mov r12d, 0x1000
mov r9, qword [rsi]
lea rcx, [rsp + 0x130]
mov eax, ebp
cmp ebp, r12d
mov rdx, r15
cmovg eax, r12d
movsxd r8, eax
call fcn.140170728
mov r14, rax
test eax, eax
jle 0x14007b1a1
movsxd r8, r14d
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x20]
call fcn.140093720
sub ebp, r14d
test ebp, ebp
jg 0x14007b15f
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x100]
call fcn.140093670
cmp dword [rbx + 8], edi
jle 0x14007b1da
lea rcx, [rbx + 0xc]
mov r8d, 0x30
lea rdx, [rsp + 0x100]
call fcn.140169540
test eax, eax
cmove rdi, rbx
mov rax, rdi
jmp 0x14007b1dd
mov rax, rbx
mov rcx, qword [rsp + 0x1130]
xor rcx, rsp
call fcn.140168070
lea r11, [rsp + 0x1140]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14007b934
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x78
mov rax, qword [0x14021c510]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, r9
mov r14, rcx
test rcx, rcx
jne 0x14007b95f
xor eax, eax
jmp 0x14007ba0f
cmp r8d, 1
jle 0x14007b974
lea ecx, [r8 - 1]
movsxd rax, ecx
cmp byte [rax + rdx], 0
cmove r8d, ecx
mov rcx, qword [r14 + 0x1010]
mov r9d, r8d
and dword [rsp + 0x20], 0
mov r8, rdx
xor edx, edx
call fcn.140077ba8
test rax, rax
je 0x14007b998
mov rbx, qword [rax + 0x28]
jmp 0x14007b99a
xor ebx, ebx
test rbx, rbx
je 0x14007b958
test rsi, rsi
je 0x14007ba0d
mov edi, dword [rsp + 0xc0]
cmp edi, dword [rbx]
jl 0x14007ba0d
mov rdx, qword [rbx + 0x38]
xor r8d, r8d
mov rcx, qword [r14]
call fcn.14016b294
test eax, eax
jne 0x14007b958
movsxd r8, dword [rbx]
lea edx, [rax + 1]
mov r9, qword [r14]
mov rcx, rsi
call fcn.140170728
test rax, rax
je 0x14007b958
mov edx, dword [rbx]
lea r8, [rsp + 0x30]
mov rcx, rsi
call fcn.140071540
lea rdx, [rbx + 4]
mov r8d, 0x30
lea rcx, [rsp + 0x30]
call fcn.140169540
test eax, eax
jne 0x14007b958
cmp edi, dword [rbx]
jle 0x14007ba0d
movsxd rcx, dword [rbx]
mov byte [rcx + rsi], al
mov eax, dword [rbx]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140168070
add rsp, 0x78
pop r14
pop rdi
pop rsi
pop rbx
ret

Function at 0x14007bc54
Capabilities:
Copy file
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
xor esi, esi
mov rdi, rcx
test rcx, rcx
jne 0x14007bc7b
lea eax, [rcx + 1]
jmp 0x14007bd6d
mov rcx, qword [rcx + 8]
lea r8, str..tmp
or edx, 0xffffffff
mov r9d, edx
call fcn.140078410
and qword [rbp + 0x20], rsi
lea r8, str.wbN
mov rdx, rax
lea rcx, [rbp + 0x20]
mov r14, rax
call fcn.14016f350
mov rbx, qword [rbp + 0x20]
test rbx, rbx
jne 0x14007bcbe
mov ebx, 1
jmp 0x14007bd63
mov rcx, qword [rdi + 0x1010]
lea rax, [0x14007baec]
and dword [rdi + 0x1020], esi
lea r8, [rbp - 0x20]
mov qword [rbp - 0x18], rax
lea rdx, [0x140077a34]
mov qword [rbp - 0x30], rdi
lea rax, [rbp - 0x30]
mov qword [rbp - 0x28], rbx
xor r9d, r9d
mov qword [rbp - 0x20], rcx
mov rcx, qword [rcx]
mov qword [rbp - 0x10], rax
call fcn.140078058
cmp dword [rdi + 0x1020], esi
jne 0x14007bd61
mov rcx, qword [rdi]
call fcn.14016aee0
mov rcx, rbx
call fcn.14016aee0
mov rdx, qword [rdi + 8]
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov ebx, 1
mov rcx, r14
test eax, eax
cmove esi, ebx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, qword [rdi + 8]
xor edx, edx
call fcn.14007b6a0
mov qword [rdi], rax
test rax, rax
je 0x14007bd5f
mov rcx, rax
call fcn.14016ac9c
mov qword [rdi + 0x1018], rax
jmp 0x14007bd61
mov esi, ebx
mov ebx, esi
mov rcx, r14
call fcn.14016f3a8
mov eax, ebx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14007f67c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
or r9d, 0xffffffff
mov r10, rcx
test edx, edx
je 0x14007f6b1
movsx r8d, byte [r10]
mov eax, r9d
xor r8, rax
mov ecx, r9d
movzx eax, r8b
inc r10
shr ecx, 8
lea r8, [0x1401e7290]
mov r9d, dword [r8 + rax*4]
xor r9d, ecx
sub edx, 1
jne 0x14007f687
not r9d
mov eax, r9d
ret