joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406600
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x444034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0xffffffff
jne 0x40662c
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041446e
mov esp, ebp
pop ebp
ret 8
push edi
mov edi, dword [ebp + 0xc]
lea eax, [edi + 0x20000000]
cmp eax, 0xfffffff
ja 0x406649
mov dword [esi + 0x18], edi
xor edi, edi
mov dword [esi + 0x14], 1
push dword [ebp + 8]
mov eax, 2
mov word [ebp - 0x1c], ax
call dword [sym.imp.WS2_32.dll_htons]
push edi
mov edi, dword [sym.imp.WS2_32.dll_htonl]
mov word [ebp - 0x1a], ax
call edi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push 0x10
push eax
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x4066ba
cmp dword [esi + 0x14], 0
je 0x4066ce
push dword [esi + 0x18]
xor eax, eax
mov byte [ebp - 0xc], 0
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
call edi
push 0
mov dword [ebp - 0xc], eax
call edi
push 8
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xc
push 0
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4066ce
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041446e
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0041446e
mov esp, ebp
pop ebp
ret 8

Function at 0x4066f0
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a4
mov eax, dword [0x444034]
xor eax, esp
mov dword [esp + 0x1a0], eax
cmp dword [0x4481ec], 0
push edi
mov edi, ecx
jne 0x40672d
lea eax, [esp + 0x10]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb eax, eax
inc eax
mov dword [0x4481ec], eax
cmp dword [edi + 0xc], 0xffffffff
je 0x40673a
mov ecx, edi
call fcn.00406880
mov eax, dword [ebp + 8]
sub eax, 1
je 0x40678c
sub eax, 1
jne 0x4067a0
push eax
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 0xc], eax
cmp eax, 0xffffffff
je 0x4067a0
push 0
push 0
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
push ecx
push 0
push 0
push 4
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0
push ecx
push 0x9800000c
push eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
jmp 0x4067e8
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 0xc], eax
cmp eax, 0xffffffff
jne 0x4067b7
xor eax, eax
pop edi
mov ecx, dword [esp + 0x1a0]
xor ecx, esp
call fcn.0041446e
mov esp, ebp
pop ebp
ret 4
push 4
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 1
push ecx
push 4
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [esp + 0xc]
push eax
push 1
push 6
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [esp + 0x1a4]
mov eax, 1
pop edi
xor ecx, esp
call fcn.0041446e
mov esp, ebp
pop ebp
ret 4
Function at 0x406810
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x444034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [ebp + 8]
xorps xmm0, xmm0
mov eax, 2
movups xmmword [ebp - 0x14], xmm0
mov esi, ecx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htonl]
push dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_connect]
mov ecx, dword [ebp - 4]
neg eax
pop esi
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.0041446e
mov esp, ebp
pop ebp
ret 8

Function at 0x406880
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x444034]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp dword [edi + 0xc], 0xffffffff
je 0x406922
cmp dword [edi + 0x14], 0
je 0x4068f2
push dword [edi + 0x18]
xor eax, eax
mov byte [ebp - 0xc], 0
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
call dword [sym.imp.WS2_32.dll_htonl]
push 0
mov dword [ebp - 0xc], eax
call dword [sym.imp.WS2_32.dll_htonl]
push 8
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xd
push 0
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4068f2
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041446e
mov esp, ebp
pop ebp
ret
push 1
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 0xc], 0xffffffff
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop edi
call fcn.0041446e
mov esp, ebp
pop ebp
ret

Function at 0x4069e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x444034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
push edi
mov edi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 8], 0x10
push eax
push dword [ecx + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x406a28
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041446e
mov esp, ebp
pop ebp
ret 8
push dword [ebp - 0x14]
call dword [sym.imp.WS2_32.dll_ntohl]
push dword [ebp - 0x16]
mov dword [esi], eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [ebp - 4]
mov word [edi], ax
xor ecx, ebp
pop edi
mov eax, 1
pop esi
call fcn.0041446e
mov esp, ebp
pop ebp
ret 8

Function at 0x406aa0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ecx + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret 0x10
Function at 0x406b10
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ecx + 0xc]
call dword [sym.imp.WS2_32.dll_send]
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ecx + 0xc]
call dword [sym.imp.WS2_32.dll_recv]
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x444034]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 0x14], 0xff
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
jne 0x406b8f
cmp dword [esi + 0x10], 0
lea eax, [esi + 0x10]
jne 0x406b8f
push 4
push eax
push 0x20
push 0xffff
push dword [esi + 0xc]
mov dword [eax], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
push dword [ebp + 0x10]
mov eax, 2
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp + 0x14]
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_htonl]
push 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp + 0xc]
push edi
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041446e
mov esp, ebp
pop ebp
ret 0x10

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x444034]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [esp + 4], eax
mov ecx, dword [ebp + 0x10]
push esi
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp + 0x14]
push edi
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x14], ecx
nop dword [eax]
nop dword [eax + eax]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0x10
push ecx
lea ecx, [esp + 0x20]
push ecx
push 0
push dword [ebp + 0xc]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov esi, eax
test esi, esi
je 0x406c93
jns 0x406c54
call edi
cmp eax, 0x2746
jne 0x406c93
test esi, esi
jg 0x406c5c
mov eax, dword [esp + 0xc]
jmp 0x406c20
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [esp + 0x10]
push dword [esp + 0x1e]
mov dword [ecx], eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [esp + 0x14]
mov word [ecx], ax
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0041446e
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esp + 0x2c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041446e
mov esp, ebp
pop ebp
ret 0x10
Function at 0x406cb0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x444034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
test eax, eax
jne 0x406cd3
mov dword [ebp + 8], 1
jmp 0x406ce0
xor ecx, ecx
cmp eax, 0x7fffffff
cmova eax, ecx
mov dword [ebp + 8], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp + 0xc]
push 0xffff
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
jne 0x406d1f
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041446e
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 8]
je 0x406d43
push 4
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
push 0xffff
push dword [esi + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x406d0c
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.0041446e
mov esp, ebp
pop ebp
ret 8

Function at 0x406d80
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x444034]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x448da8], 0
push esi
mov esi, ecx
jne 0x406e02
push pe_nt_image_headers32
lea eax, [ebp - 0x114]
mov dword [0x448da8], 1
push 0
push eax
call fcn.00417cd0
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x406df5
cmp dword [ebp - 0x114], 5
jb 0x406df5
mov ecx, 0x433f64
mov dword [0x448da4], ecx
jmp 0x406e08
mov ecx, str.OCULAR_
mov dword [0x448da4], ecx
jmp 0x406e08
mov ecx, dword [0x448da4]
test esi, esi
mov eax, str.OCULAR_
pop esi
cmove eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041446e
mov esp, ebp
pop ebp
ret
Function at 0x40a480
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x444034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
mov dword [edi + 4], 0
test eax, eax
je 0x40a4ea
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov eax, dword [edi + 8]
mov ecx, dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x40a4d4
push eax
call ecx
push dword [edi + 8]
call esi
mov ecx, dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [edi + 8], 0
mov eax, dword [edi + 0xc]
test eax, eax
je 0x40a4ea
push eax
call ecx
push dword [edi + 0xc]
call esi
mov dword [edi + 0xc], 0
call fcn.00409530
mov esi, eax
test esi, esi
je 0x40a614
push 0x230
lea eax, [ebp - 0x234]
push 0
push eax
call fcn.00417cd0
lea ecx, [ebp - 0x234]
add esp, 0xc
sub ecx, esi
nop word [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x40a520
test ebx, ebx
je 0x40a549
push 0x104
lea eax, [ebp - 0x234]
push ebx
push eax
call fcn.00419d43
add esp, 0xc
call fcn.00403350
push eax
push 0
push 0x8000
push 0x8000
push 1
push 0
push 0x40000003
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x40a585
mov dword [edi + 4], 0
jmp 0x40a614
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 1
push 0
mov dword [edi + 0x18], 0
call esi
push 0
push 0
push 1
push 0
mov dword [edi + 8], eax
call esi
cmp dword [edi + 8], 0
mov dword [edi + 0xc], eax
je 0x40a60d
test eax, eax
je 0x40a60d
lea ecx, [edi + 0x1c]
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov eax, dword [edi + 8]
push ecx
push dword [edi + 4]
mov dword [edi + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40a5ee
cmp eax, 0x3e5
je 0x40a5ee
cmp eax, 0x217
jne 0x40a614
mov dword [edi + 0x10], 1
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041446e
mov esp, ebp
pop ebp
ret 8
mov ecx, edi
call fcn.0040a630
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041446e
mov esp, ebp
pop ebp
ret 8
Function at 0x40a760
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x444034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x24], eax
mov esi, dword [edi + 4]
test esi, esi
je 0x40a8b0
cmp dword [edi + 8], 0
je 0x40a8b0
push ecx
call fcn.0040a690
test eax, eax
je 0x40a8b7
push ebx
push dword [edi + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_ResetEvent]
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movups xmmword [ebp - 0x1c], xmm0
call ebx
mov eax, dword [edi + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x40a801
cmp dword [ebp - 8], 0
je 0x40a801
push dword [edi + 8]
call ebx
mov eax, dword [ebp - 8]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041446e
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x24], 0
jne 0x40a83b
test eax, eax
je 0x40a83b
cmp eax, 0x3e5
je 0x40a83b
cmp eax, 0x217
je 0x40a83b
mov dword [edi + 0x14], 0xf0000001
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041446e
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
test ebx, ebx
je 0x40a86b
push esi
call dword [sym.imp.KERNEL32.dll_CancelIo]
xor ecx, ecx
cmp ebx, 0x102
sete cl
lea ecx, [ecx*2 - 0xfffffff]
mov dword [edi + 0x14], ecx
jmp 0x40a826
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push dword [edi + 8]
mov esi, eax
mov dword [edi + 0x14], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor eax, eax
test esi, esi
pop ebx
cmovne eax, dword [ebp - 0xc]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041446e
mov esp, ebp
pop ebp
ret 0xc
mov dword [edi + 0x14], 0xf0000001
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0041446e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40a8d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x444034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x24], eax
mov esi, dword [edi + 4]
test esi, esi
je 0x40aa20
cmp dword [edi + 0xc], 0
je 0x40aa20
push ecx
call fcn.0040a690
test eax, eax
je 0x40aa27
push ebx
push dword [edi + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_ResetEvent]
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movups xmmword [ebp - 0x1c], xmm0
call ebx
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x40a971
cmp dword [ebp - 8], 0
jbe 0x40a971
push dword [edi + 0xc]
call ebx
mov eax, dword [ebp - 8]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041446e
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x24], 0
jne 0x40a9ab
test eax, eax
je 0x40a9ab
cmp eax, 0x3e5
je 0x40a9ab
cmp eax, 0x217
je 0x40a9ab
mov dword [edi + 0x14], 0xf0000001
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041446e
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
test ebx, ebx
je 0x40a9db
push esi
call dword [sym.imp.KERNEL32.dll_CancelIo]
xor ecx, ecx
cmp ebx, 0x102
sete cl
lea ecx, [ecx*2 - 0xfffffff]
mov dword [edi + 0x14], ecx
jmp 0x40a996
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push dword [edi + 0xc]
mov esi, eax
mov dword [edi + 0x14], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor eax, eax
test esi, esi
pop ebx
cmovne eax, dword [ebp - 0xc]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041446e
mov esp, ebp
pop ebp
ret 0xc
mov dword [edi + 0x14], 0xf0000001
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0041446e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40e660
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ca6e
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x444034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
test esi, esi
je 0x40e797
cmp dword [ebp + 0xc], 4
jbe 0x40e797
cmp dword [esi], 1
jne 0x40e797
cmp dword [0x448280], edi
je 0x40e6cf
lea eax, [esi + 8]
push eax
push str.CSCDTSecurityDomain::DealSciterCallback_1___s_
push str.SCDT
push 0xffffffffffffffff
push 0x4481f4
call fcn.00406300
add esp, 0x14
push ecx
push dword [esi + 4]
lea edx, [esi + 8]
lea ecx, [ebp - 0x20]
call fcn.0040d5e0
add esp, 8
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.0040e030
mov edi, 1
mov dword [ebp - 4], edi
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x448dbc]
cmp eax, dword [ecx + 4]
jle 0x40e77f
push 0x448dbc
call fcn.00414aa9
add esp, 4
cmp dword [0x448dbc], 0xffffffff
jne 0x40e77f
mov eax, dword [0x448db8]
test eax, eax
jne 0x40e76d
push 0x43425c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40e75d
push str.SciterAPI
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40e756
call eax
mov dword [0x448db8], eax
jmp 0x40e762
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x448db8]
test eax, eax
jne 0x40e76d
push 0xffffffffffffffff
call fcn.00419fda
push 0x448dbc
mov dword [0x448dc0], eax
call fcn.00414a6a
add esp, 4
lea eax, [ebp - 0x20]
push eax
mov eax, dword [0x448dc0]
mov eax, dword [eax + 0x208]
call eax
mov dword [ebp - 4], 0xffffffff
cmp dword [0x448280], 0
je 0x40e7ba
push edi
push str.CSCDTSecurityDomain::DealSciterCallback____d_
push str.SCDT
push 0xffffffffffffffff
push 0x4481f4
call fcn.00406300
add esp, 0x14
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041446e
mov esp, ebp
pop ebp
ret 8
Function at 0x40e7e0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x444034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, 1
mov dword [ebp - 0x210], esi
cmp dword [esi + 0x1c], 0
jne 0x40e903
xor ebx, ebx
call fcn.00403350
push 0x208
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00417cd0
add esp, 0xc
call fcn.00402b10
xor ecx, ecx
test eax, eax
je 0x40e884
nop dword [eax]
movzx eax, word [ecx + str.Local_]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x20e], ax
test ax, ax
jne 0x40e840
push edi
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40e861
mov ecx, 0x17
mov esi, str.TEC_OCULAR__AGENT_V3_MUTEX_SCDT_SECURITYDOMAIN
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [ebp - 0x210]
pop edi
jmp 0x40e89b
movzx eax, word [ecx + str.TEC_OCULAR__AGENT_V3_MUTEX_SCDT_SECURITYDOMAIN]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x20e], ax
test ax, ax
jne 0x40e884
lea eax, [ebp - 0x20c]
push eax
push 0
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x1c], eax
cmp dword [0x448280], ebx
je 0x40e8de
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push str.CSCDTSecurityDomain::MakeupUnique_1___d____s____08x_
push str.SCDT
push 0xffffffffffffffff
push 0x4481f4
call fcn.00406300
add esp, 0x1c
cmp dword [esi + 0x1c], ebx
je 0x40e903
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40e8fe
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x1c], ebx
jmp 0x40e903
mov ebx, 1
cmp dword [0x448280], 0
je 0x40e926
push ebx
push str.CSCDTSecurityDomain::MakeupUnique____d_
push str.SCDT
push 0xffffffffffffffff
push 0x4481f4
call fcn.00406300
add esp, 0x14
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.0041446e
mov esp, ebp
pop ebp
ret
Function at 0x40e940
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x444034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00417cd0
add esp, 0xc
call fcn.00402b10
xor ecx, ecx
test eax, eax
je 0x40e9c0
nop word [eax + eax]
movzx eax, word [ecx + str.Local_]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x20e], ax
test ax, ax
jne 0x40e980
push edi
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40e9a1
mov ecx, 0x17
mov esi, str.TEC_OCULAR__AGENT_V3_MUTEX_SCDT_SECURITYDOMAIN
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop edi
jmp 0x40e9d7
movzx eax, word [ecx + str.TEC_OCULAR__AGENT_V3_MUTEX_SCDT_SECURITYDOMAIN]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x20e], ax
test ax, ax
jne 0x40e9c0
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov esi, eax
cmp dword [0x448280], ebx
je 0x40ea18
push esi
lea eax, [ebp - 0x20c]
push eax
push 1
push str.CSCDTSecurityDomain::IsSCDTSecurityDomainRunning_1___d____s____08x_
push str.SCDT
push 0xffffffffffffffff
push 0x4481f4
call fcn.00406300
add esp, 0x1c
test esi, esi
jne 0x40ea29
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40ea35
jmp 0x40ea30
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 1
cmp dword [0x448280], 0
je 0x40ea58
push ebx
push str.CSCDTSecurityDomain::IsSCDTSecurityDomainRunning____d_
push str.SCDT
push 0xffffffffffffffff
push 0x4481f4
call fcn.00406300
add esp, 0x14
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.0041446e
mov esp, ebp
pop ebp
ret