joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180005940
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
lea r8, [0x180032a0c]
lea rdx, [0x180032a08]
mov rbp, rcx
call fcn.180001bc0
movsxd r8, dword [rbp + 4]
mov rax, qword [rbp + 8]
cmp byte [r8 + rax - 1], 0x2f
je 0x180005990
lea rdx, [0x180032a0c]
mov r8d, 1
mov rcx, rbp
call fcn.180001440
nop
mov ecx, 9
call fcn.18001799c
mov edx, 8
mov rcx, rax
mov rbx, rax
call fcn.1800042c0
mov rdx, qword [rbp + 8]
lea rcx, [0x180032a24]
mov r8, rbx
call fcn.1800018a0
mov rcx, rbx
mov rdi, rax
call fcn.18001795c
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x180005a16
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1800059e7
mov edx, dword [rdi]
call fcn.180001240
mov rsi, qword [0x18003be50]
lea rbx, [rdi - 8]
lea rcx, [rsi + 0x20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rsi + 8]
lea rcx, [rsi + 0x20]
mov qword [rbx], rax
mov qword [rsi + 8], rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x180005990
mov rdx, qword [rdi + 8]
mov rcx, rbp
call fcn.180001a20
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x180005a32
mov edx, dword [rdi]
call fcn.180001240
mov rsi, qword [0x18003be50]
lea rbx, [rdi - 8]
lea rcx, [rsi + 0x20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rsi + 8]
lea rcx, [rsi + 0x20]
mov qword [rbx], rax
mov qword [rsi + 8], rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rax, rbp
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180005d10
Capabilities:
Create process on windows

Disassembly:
push rdi
sub rsp, 0xe0
xor edx, edx
mov rdi, rcx
lea rcx, [rsp + 0x78]
lea r8d, [rdx + 0x60]
mov dword [rsp + 0x70], 0x68
call fcn.18001f3d0
xor r11d, r11d
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r11
mov qword [rsp + 0x30], r11
mov dword [rsp + 0x28], r11d
xor r8d, r8d
mov rdx, rdi
xor ecx, ecx
mov qword [rsp + 0x50], r11
mov dword [rsp + 0x20], r11d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x180005da8
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x60]
add rsp, 0xe0
pop rdi
ret
mov qword [rsp + 0xf0], rbx
lea rbx, [0x18002e4fb]
test rdi, rdi
cmovne rbx, rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x180032a40]
mov edx, eax
mov r8, rbx
call fcn.180003b60
mov rbx, qword [rsp + 0xf0]
xor eax, eax
add rsp, 0xe0
pop rdi
ret
Function at 0x1800060c0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x1800393f8]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, qword [r8]
mov rsi, rdx
mov rdi, rcx
lea r8, [rsp + 0x40]
mov r9d, 0x100
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x180006151
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x180006137
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1800060c0
lea r8, [rsp + 0x40]
mov r9d, 0x100
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x180006100
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800178a0
add rsp, 0x150
pop rdi
pop rsi
pop rbx
ret

Function at 0x1800065d0
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub rsp, 0x28
cmp qword [0x18003df90], 0
je 0x1800065e8
mov eax, 1
add rsp, 0x28
ret
mov rcx, qword [0x18003be50]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
call fcn.1800010a0
mov rbx, rax
test rax, rax
jne 0x18000660d
xor edi, edi
mov rbx, rdi
jmp 0x180006624
xor edi, edi
mov rdx, rax
lea ecx, [rdi + 0x14]
mov dword [rax + 4], edi
call fcn.180001120
mov qword [rbx + 8], rax
mov byte [rax], dil
mov qword [0x18003df90], rbx
mov rbx, qword [0x18003dfa8]
test rbx, rbx
jne 0x18000666e
mov rcx, qword [0x18003be50]
call fcn.1800010a0
mov rbx, rax
test rax, rax
jne 0x180006650
mov rbx, rdi
jmp 0x180006667
mov rdx, rax
mov ecx, 0x100
mov dword [rax + 4], edi
call fcn.180001120
mov qword [rbx + 8], rax
mov byte [rax], 0
mov qword [0x18003dfa8], rbx
mov edx, dword [rbx]
mov rcx, qword [rbx + 8]
dec edx
call qword [sym.imp.WS2_32.dll_gethostname]
mov r11, qword [0x18003dfa8]
mov rcx, qword [r11 + 8]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rbx, qword [rsp + 0x30]
test rax, rax
je 0x1800066a8
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov ecx, dword [rcx]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
jmp 0x1800066af
lea rax, [0x18002e4fb]
mov rcx, qword [0x18003df90]
mov rdx, rax
call fcn.180001a20
mov rcx, qword [0x18003df90]
cmp dword [rcx + 4], 0
setg dil
mov eax, edi
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
Function at 0x1800066e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x170
mov rax, qword [0x1800393f8]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor ebx, ebx
lea rax, [rsp + 0x40]
mov rdi, rcx
lea rdx, str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
mov esi, 1
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x48], esi
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1800067f4
lea rdx, str._sConnection
lea rcx, [rsp + 0x50]
mov r8, rdi
call fcn.1800178c0
mov rcx, qword [rsp + 0x40]
lea r11, [rsp + 0x38]
lea rdx, [rsp + 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1800067e9
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea rdx, str.PnpInstanceID
xor r8d, r8d
mov dword [rsp + 0x30], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1800067de
lea r8d, [rbx + 3]
lea rdx, [0x180032c60]
lea rcx, [rsp + 0x50]
call fcn.180018f40
test eax, eax
cmove ebx, esi
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1800178a0
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180006820
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x2c0
mov rax, qword [0x1800393f8]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
xor ebx, ebx
lea rax, [rsp + 0x68]
mov rsi, rcx
lea rdx, str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
mov ebp, 1
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x64], ebx
mov dword [rsp + 0x7c], ebp
mov dword [rsp + 0x78], 4
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x180006a60
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x2d8], rdi
mov dword [rsp + 0x60], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp dword [rsp + 0x60], ebx
mov edi, ebx
jle 0x180006a4d
nop
lea rcx, [rsp + 0x91]
xor edx, edx
mov r8d, 0x103
mov dword [rsp + 0x88], 0x104
mov byte [rsp + 0x90], bl
call fcn.18001f3d0
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x90]
mov edx, edi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov rcx, qword [rsp + 0x68]
lea r11, [rsp + 0x70]
lea rdx, [rsp + 0x90]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1800069eb
lea rcx, [rsp + 0x1a1]
xor edx, edx
mov r8d, 0x104
mov byte [rsp + 0x1a0], bl
call fcn.18001f3d0
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x64]
lea r9, [rsp + 0x7c]
lea rdx, str.NetCfgInstanceId
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1a0]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x64], 0x104
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1800069e0
lea rcx, [rsp + 0x1a0]
mov rdx, rsi
call fcn.180017a54
test rax, rax
jne 0x1800069f9
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
cmp edi, dword [rsp + 0x60]
jl 0x1800068f0
jmp 0x180006a4d
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x80]
lea r9, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x84]
lea rdx, str.Characteristics
xor r8d, r8d
mov dword [rsp + 0x80], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180006a4d
movzx ecx, byte [rsp + 0x84]
and cl, 4
cmp cl, 4
cmove ebx, ebp
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x2d8]
mov eax, ebx
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.1800178a0
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rsi
ret
Function at 0x180006db0
Capabilities:
Get mac address on windows

Disassembly:
push rbp
push rsi
push r13
sub rsp, 0x40
xor esi, esi
xor ebp, ebp
mov r13d, 0x309
cmp qword [0x18003df98], rsi
je 0x180006dd7
xor eax, eax
add rsp, 0x40
pop r13
pop rsi
pop rbp
ret
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x78], r12
call fcn.1800065d0
mov rcx, qword [0x18003be50]
call fcn.1800010a0
mov rbx, rax
test rax, rax
je 0x180006e11
mov rdx, rax
mov ecx, 0x64
mov dword [rax + 4], esi
call fcn.180001120
mov qword [rbx + 8], rax
mov byte [rax], sil
mov rcx, qword [0x18003be50]
mov qword [0x18003df98], rbx
call fcn.1800010a0
mov rbx, rax
test rax, rax
je 0x180006e43
mov rdx, rax
mov ecx, 0x104
mov dword [rax + 4], esi
call fcn.180001120
mov qword [rbx + 8], rax
mov byte [rax], sil
mov ecx, 0x2c0
mov qword [0x18003dfa0], rbx
call fcn.18001799c
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], 0x2c0
mov rcx, rax
mov r12, rax
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x180006e85
mov rcx, r12
call fcn.18001795c
mov ecx, dword [rsp + 0x60]
call fcn.18001799c
mov r12, rax
lea rdx, [rsp + 0x60]
mov rcx, r12
mov qword [rsp + 0x70], rdi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x180007004
mov rdi, r12
test r12, r12
je 0x180007011
nop dword [rax + rax]
cmp qword [rdi], 0
je 0x180006f8e
lea rcx, [rdi + 0xc]
call fcn.1800066e0
test eax, eax
jne 0x180006ed4
lea rcx, [rdi + 0xc]
call fcn.180006820
test eax, eax
je 0x180006ed7
mov rbp, rdi
lea rbx, [rdi + 0x1b8]
test rbx, rbx
je 0x180006f16
nop word [rax + rax]
mov rcx, qword [0x18003df90]
lea rdx, [rbx + 8]
mov rcx, qword [rcx + 8]
call fcn.180017a54
test rax, rax
jne 0x180006f13
mov rbx, qword [rbx]
test rbx, rbx
jne 0x180006ef0
jmp 0x180006f16
mov rsi, rdi
cmp rsi, rbp
je 0x180006f28
mov rdi, qword [rdi]
test rdi, rdi
jne 0x180006eb0
jmp 0x180007004
movzx ecx, byte [rdi + 0x19c]
movzx edx, byte [rdi + 0x19b]
movzx eax, byte [rdi + 0x19d]
movzx r10d, byte [rdi + 0x19a]
movzx r9d, byte [rdi + 0x199]
movzx r8d, byte [rdi + 0x198]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov rcx, qword [0x18003df98]
mov dword [rsp + 0x28], edx
lea rdx, str._02x__02x__02x__02x__02x__02x
mov dword [rsp + 0x20], r10d
call fcn.180001ad0
mov rcx, qword [0x18003dfa0]
lea rdx, [rdi + 0xc]
call fcn.180001a20
xor r13d, r13d
jmp 0x180007004
test rsi, rsi
jne 0x180006f9d
mov rsi, rdi
test rbp, rbp
cmovne rsi, rbp
movzx ecx, byte [rsi + 0x19c]
movzx edx, byte [rsi + 0x19b]
movzx eax, byte [rsi + 0x19d]
movzx r10d, byte [rsi + 0x19a]
movzx r9d, byte [rsi + 0x199]
movzx r8d, byte [rsi + 0x198]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov rcx, qword [0x18003df98]
mov dword [rsp + 0x28], edx
lea rdx, str._02x__02x__02x__02x__02x__02x
mov dword [rsp + 0x20], r10d
call fcn.180001ad0
mov rcx, qword [0x18003dfa0]
lea rdx, [rsi + 0xc]
call fcn.180001a20
mov r13d, 0x65
test r12, r12
je 0x180007011
mov rcx, r12
call fcn.18001795c
mov r12, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x68]
mov eax, r13d
add rsp, 0x40
pop r13
pop rsi
pop rbp
ret
Function at 0x180007100
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov edi, ecx
test rdx, rdx
jne 0x180007143
mov rcx, qword [0x18003be50]
call fcn.1800010a0
mov rbx, rax
test rax, rax
je 0x180007143
mov rdx, rax
mov ecx, 0x106
mov dword [rax + 4], 0
call fcn.180001120
mov qword [rbx + 8], rax
mov byte [rax], 0
mov edx, dword [rbx]
cmp edx, 0x105
jge 0x180007171
mov rcx, qword [rbx + 8]
call fcn.180001240
mov rdx, rbx
mov ecx, 0x107
call fcn.180001120
mov qword [rbx + 8], rax
mov byte [rax], 0
mov dword [rbx + 4], 0
movsxd r8, dword [rbx]
mov rcx, qword [rbx + 8]
xor edx, edx
call fcn.18001f3d0
mov rdx, qword [rbx + 8]
xor r9d, r9d
mov r8d, edi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov rdi, qword [rbx + 8]
or rcx, 0xffffffffffffffff
xor eax, eax
lea r8, [0x180032a0c]
lea rdx, [0x180032a08]
repne scasb al, byte [rdi]
not rcx
dec rcx
mov dword [rbx + 4], ecx
mov rcx, rbx
call fcn.180001bc0
movsxd rcx, dword [rbx + 4]
mov rax, qword [rbx + 8]
cmp byte [rcx + rax - 1], 0x2f
je 0x1800071e0
lea rdx, [0x180032a0c]
mov r8d, 1
mov rcx, rbx
call fcn.180001440
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18000d050
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp byte [0x18003e000], 0
mov edi, ecx
jne 0x18000d149
lea rbx, [0x18003e000]
mov edx, 0x100
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test edi, edi
jne 0x18000d0aa
mov rax, qword [str.C:_Windows_SysWOW64_]
mov qword [rbx], rax
mov rax, qword [0x180033010]
mov qword [rbx + 8], rax
mov eax, dword [0x180033018]
mov dword [rbx + 0x10], eax
movzx eax, byte [0x18003301c]
mov byte [rbx + 0x14], al
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasb al, byte [rdi]
xor r8d, r8d
not rcx
dec rcx
test ecx, ecx
jle 0x18000d0e9
mov rdx, rbx
cmp byte [rdx], 0x5c
jne 0x18000d0cd
mov byte [rdx], 0x2f
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasb al, byte [rdi]
inc r8d
inc rdx
not rcx
dec rcx
cmp r8d, ecx
jl 0x18000d0c5
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
cmp byte [rcx + rbx - 2], 0x2f
je 0x18000d112
mov rdi, rbx
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
movzx eax, word [0x180032a0c]
mov word [rdi - 1], ax
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasb al, byte [rdi]
mov rcx, qword [str.rundll32.exe]
mov rax, rbx
mov qword [rdi - 1], rcx
mov ecx, dword [0x180033028]
mov dword [rdi + 7], ecx
movzx ecx, byte [0x18003302c]
mov byte [rdi + 0xb], cl
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea rax, [0x18003e000]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x18000d620
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov rbx, qword [rcx + 8]
mov r12, rdx
mov rbp, rcx
lea r8, [rbx + 0x333c4]
xor edx, edx
mov ecx, 0x1f0001
call qword [sym.imp.KERNEL32.dll_OpenMutexA]
mov rsi, rax
test rax, rax
jne 0x18000d679
lea r8, [rbx + 0x333c4]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rsi, rax
test rax, rax
je 0x18000d685
or edx, 0xffffffff
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rbx, qword [rbp + 8]
xor edi, edi
xor eax, eax
add rbx, 4
cmp dword [rbx], 0xffffffff
je 0x18000d6aa
inc rax
inc edi
add rbx, 0x1004
cmp rax, 0x1e
jl 0x18000d691
jmp 0x18000d6d1
lea rcx, str.RCallAdd__s
mov rdx, r12
call fcn.180003b60
lea rcx, [rbx + 4]
mov r8d, 0xfff
mov rdx, r12
call fcn.180018250
mov dword [rbx], 0
test rsi, rsi
je 0x18000d6df
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
or eax, 0xffffffff
cmp edi, 0x1e
cmove edi, eax
mov eax, edi
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
Function at 0x18000dbd0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r13
push r14
sub rsp, 0x50
xor edi, edi
mov rsi, r9
mov r13, r8
mov rbp, rdx
mov r14, rcx
test rcx, rcx
jne 0x18000dbfd
xor eax, eax
jmp 0x18000dd23
mov qword [rsp + 0x78], r12
test r8, r8
je 0x18000dd1c
test rdx, rdx
je 0x18000dd1c
mov r12, qword [rsp + 0x90]
test r12, r12
je 0x18000dd1c
mov rcx, r9
mov qword [rsp + 0x70], rbx
call fcn.180001fb0
mov rbx, rax
test rax, rax
je 0x18000dc8e
mov rcx, rax
call fcn.180001eb0
mov r8, qword [rbx + 8]
mov r11, rbp
sub r8, rbp
nop dword [rax]
movzx edx, byte [r11]
movzx ecx, byte [r11 + r8]
sub edx, ecx
jne 0x18000dc64
inc r11
test ecx, ecx
jne 0x18000dc50
test edx, edx
jne 0x18000dc6d
lea edi, [rdx + 1]
jmp 0x18000dc86
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, rsi
call fcn.1800036e0
or ecx, 0xffffffff
cmp al, 1
cmove edi, ecx
mov rcx, rbx
call fcn.180001770
mov rbx, qword [rsp + 0x98]
mov dword [rsp + 0x30], edi
lea rcx, [0x1800330d0]
mov r9, r13
mov r8, rbp
mov rdx, rbx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rsi
call fcn.180003b60
mov r11, qword [rsp + 0xb8]
mov rax, qword [rsp + 0xb0]
mov r9, r12
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xa0]
mov r8, rsi
mov qword [rsp + 0x30], rax
mov rdx, r13
mov rcx, rbp
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], edi
call fcn.18000d780
mov rcx, rax
mov rdx, r14
call fcn.180002220
mov rbx, qword [rsp + 0x70]
mov rax, r14
jmp 0x18000dd1e
xor eax, eax
mov r12, qword [rsp + 0x78]
lea r11, [rsp + 0x50]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop rdi
ret
Function at 0x18000dfe0
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x250
mov esi, dword [rsp + 0x290]
mov rdi, rcx
mov r12, r9
movzx ecx, si
mov byte [rax + 0x13], r8b
mov byte [rax + 0x12], dl
call qword [sym.imp.WS2_32.dll_htons]
xor r13d, r13d
mov word [rsp + 0x278], ax
mov ebx, r13d
nop word [rax + rax]
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x40]
lea ecx, [rdi + 1]
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x34], r13d
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x40], 1
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x18000e0cf
lea rdx, [rsp + 0x40]
mov rcx, rdi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x18000e0cf
movsxd rax, ebx
mov r8d, 4
xor r9d, r9d
lea rdx, [rsp + rax + 0x278]
sub r8d, ebx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x18000e0cf
add ebx, eax
cmp ebx, 4
jl 0x18000e030
test esi, esi
jle 0x18000e0cb
mov r9d, 0x3e8
mov r8d, esi
mov rdx, r12
mov rcx, rdi
call fcn.180003ff0
cmp esi, eax
je 0x18000e0cb
mov eax, 0xfffffffe
jmp 0x18000e0d2
xor eax, eax
jmp 0x18000e0d2
or eax, 0xffffffff
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret

Function at 0x18000e0f0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x240
xor r13d, r13d
mov rsi, r8
mov rbp, rdx
mov ebx, r13d
mov rdi, rcx
nop word [rax + rax]
lea rax, [rsp + 0x268]
lea rdx, [rsp + 0x30]
lea ecx, [rdi + 1]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x268], 3
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x26c], r13d
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], 1
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x18000e205
lea rdx, [rsp + 0x30]
mov rcx, rdi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x18000e205
mov r8d, 4
movsxd rdx, ebx
xor r9d, r9d
sub r8d, ebx
add rdx, rbp
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x18000e1ed
add ebx, eax
cmp ebx, 4
jl 0x18000e120
movzx ecx, word [rbp]
call qword [sym.imp.WS2_32.dll_htons]
movzx ebx, ax
mov eax, dword [rsi]
dec eax
cmp ebx, eax
jle 0x18000e1c9
lea edx, [rbx + 1]
mov rcx, rsi
call fcn.1800017e0
test ebx, ebx
jle 0x18000e1fe
mov rdx, qword [rsi + 8]
mov r9d, 0x7d0
mov r8d, ebx
mov rcx, rdi
call fcn.1800040c0
cmp eax, ebx
je 0x18000e1fe
mov eax, 0xfffffffe
jmp 0x18000e20a
cmp eax, 0xfffffc88
je 0x18000e205
cmp eax, 4
je 0x18000e1a9
or eax, 0xffffffff
jmp 0x18000e20a
mov dword [rsi + 4], ebx
xor eax, eax
jmp 0x18000e20a
mov eax, 1
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x18000eb60
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
lea rbx, [rcx + 8]
mov word [rcx + 2], dx
lea rax, [rcx + 0x18]
mov qword [rbx], 0
mov edx, reloc.WS2_32.dll_inet_ntoa
nop word [rax + rax]
mov qword [rax], 0xffffffffffffffff
mov qword [rax + 8], 0xffffffffffffffff
mov qword [rax + 0x10], 0xffffffffffffffff
add rax, 0x40
dec rdx
mov qword [rax - 0x28], 0xffffffffffffffff
mov qword [rax - 0x20], 0xffffffffffffffff
mov qword [rax - 0x18], 0xffffffffffffffff
mov qword [rax - 0x10], 0xffffffffffffffff
mov qword [rax - 8], 0xffffffffffffffff
jne 0x18000eb90
mov qword [rax], 0xffffffffffffffff
mov qword [rax + 8], 0xffffffffffffffff
mov qword [rax + 0x10], 0xffffffffffffffff
mov qword [rax + 0x18], 0xffffffffffffffff
lea rax, [rsp + 0x48]
mov r9, rcx
mov byte [rcx], 1
mov qword [rsp + 0x28], rax
lea r8, [0x18000e9c0]
xor ecx, ecx
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x18000ec44
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
test rbx, rbx
je 0x18000ec46
mov qword [rbx], rdi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret