joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403240
Capabilities:
Connect socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1d8
mov eax, dword [0x426014]
xor eax, esp
mov dword [esp + 0x1d4], eax
cmp byte [0x4267a0], 0
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
mov edi, dword [esi + 0xc]
mov dword [esp + 8], eax
jne 0x403292
lea eax, [esp + 0x38]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
sete byte [0x4267a0]
test eax, eax
jne 0x403356
push edi
push 0x422d08
xorps xmm0, xmm0
mov dword [esp + 0x14], 0
lea eax, [esp + 0x1d4]
movaps xmmword [esp + 0x18], xmm0
push 0x10
push eax
movaps xmmword [esp + 0x30], xmm0
mov dword [esp + 0x28], 1
call fcn.004023d0
add esp, 0x10
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1d4]
push eax
push dword [esp + 0x14]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
mov eax, dword [esp + 0xc]
jne 0x40334b
test eax, eax
je 0x403356
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x403322
mov eax, dword [esp + 0xc]
push dword [eax + 0x10]
push dword [eax + 0x18]
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x403328
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [esp + 0xc]
jmp 0x403350
push dword [esp + 0xc]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov dword [esi + 4], edi
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x1d4]
xor ecx, esp
call fcn.0041c5a7
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x403356
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov ecx, dword [esp + 0x1dc]
mov eax, 0xfffffff6
pop edi
mov dword [esi + 4], 0xffffffff
pop esi
xor ecx, esp
call fcn.0041c5a7
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x426014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x118], eax
push esi
mov esi, ebx
test ebx, ebx
jle 0x40349c
lfence
push edi
mov edi, dword [ecx + 4]
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 0x110]
mov dword [ebp - 0xc], 5
push eax
lea eax, [edi + 1]
mov dword [ebp - 8], 0
push eax
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x110], 1
call dword [sym.imp.WS2_32.dll_select]
lea eax, [ebp - 0x110]
push eax
push edi
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x40348d
push 0
mov eax, ebx
sub eax, esi
add eax, dword [ebp - 0x118]
push esi
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4034ae
test eax, eax
je 0x4034ae
js 0x4034ae
sub esi, eax
test esi, esi
jle 0x40349b
mov ecx, dword [ebp - 0x114]
jmp 0x403421
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041c5a7
mov esp, ebp
pop ebp
ret 8
call sub.WS2_32.dll_WSAGetLastError
push eax
lea ecx, [ebp - 0x114]
call fcn.00405ad0
push 0x4244fc
mov eax, ecx
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x403660
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x18]
mov dword [edi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 4], eax
mov byte [edi + 0x14], 1
mov byte [esi], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 4], eax
xorps xmm0, xmm0
xor eax, eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
movups xmmword [esi + 0x38], xmm0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov word [esi + 0x20], ax
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
lea esi, [edi + 0x10]
push 8
mov dword [edi + 0xc], eax
call fcn.0041c7b3
add esp, 4
mov dword [eax], 0x403770
push 0
push 0
push eax
push 0x402440
push 0
push 0
mov dword [eax + 4], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x403703
test esi, esi
je 0x403703
mov dword [esi], eax
push 2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1cc
mov eax, dword [0x426014]
xor eax, esp
mov dword [esp + 0x1c8], eax
cmp byte [0x4267a0], 0
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
mov dword [esp + 0x10], eax
jne 0x403c80
lea eax, [esp + 0x40]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
sete byte [0x4267a0]
test eax, eax
jne 0x403d92
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x403d92
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [esp + 0x18]
push 4
push eax
push 0xfffffffffffffffb
push 0xffff
push edi
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], 0
call ebx
cmp eax, 0xffffffff
je 0x403d8b
push 4
lea eax, [esp + 0x20]
push eax
push 0x1b
push 0x29
push edi
call ebx
cmp eax, 0xffffffff
je 0x403d8b
push dword [esp + 0x10]
mov eax, 0x17
mov dword [esp + 0x2c], 0
mov dword [esp + 0x40], 0
mov word [esp + 0x28], ax
call dword [sym.imp.WS2_32.dll_htons]
movups xmm0, xmmword [0x41e360]
mov word [esp + 0x26], ax
lea eax, [esp + 0x24]
push 0x1c
push eax
push edi
movups xmmword [esp + 0x38], xmm0
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x403d8b
lea eax, [esp + 0x20]
mov dword [esi + 4], edi
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 4
push eax
push 0x1002
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp dword [esp + 0x14], 0x8000
jge 0x403d74
push 4
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x8000
push eax
push 0x1002
push 0xffff
push dword [esi + 4]
call ebx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c8]
xor ecx, esp
call fcn.0041c5a7
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x1d4]
mov eax, 0xfffffff6
pop edi
mov dword [esi + 4], 0xffffffff
pop esi
pop ebx
xor ecx, esp
call fcn.0041c5a7
mov esp, ebp
pop ebp
ret
Function at 0x403dc0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x426014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ecx + 4]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x314], eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
lea eax, [ebp - 0x310]
mov dword [ebp - 0x20c], 5
push eax
lea eax, [esi + 1]
mov dword [ebp - 0x208], 0
push eax
mov dword [ebp - 0x30c], esi
mov dword [ebp - 0x310], 1
call dword [sym.imp.WS2_32.dll_select]
lea eax, [ebp - 0x310]
push eax
push esi
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x403eea
push 0
push 0x200
lea eax, [ebp - 0x204]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x403ecc
test eax, eax
je 0x403ecc
js 0x403ecc
movzx ecx, byte [ebp - 0x204]
movzx eax, byte [ebp - 0x203]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 0x202]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 0x201]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 0x1ff]
mov dword [edi], ecx
movzx ecx, byte [ebp - 0x200]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp - 0x314]
push ecx
mov dword [eax], ecx
lea eax, [ebp - 0x1fe]
push eax
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c5a7
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
mov eax, 0xffffffd8
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c5a7
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
mov eax, 0xffffffec
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041c5a7
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403f10
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
mov eax, dword [0x426014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x314], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ecx + 4]
mov dword [ebp - 0x31c], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x318], eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
lea eax, [ebp - 0x310]
mov dword [ebp - 0x20c], 5
push eax
lea eax, [esi + 1]
mov dword [ebp - 0x208], 0
push eax
mov dword [ebp - 0x30c], esi
mov dword [ebp - 0x310], 1
call dword [sym.imp.WS2_32.dll_select]
lea eax, [ebp - 0x310]
push eax
push esi
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x4040b8
push 0
push 0x200
lea eax, [ebp - 0x204]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x40409a
test eax, eax
je 0x40409a
js 0x40409a
cmp byte [ebp - 0x204], 4
jne 0x404082
cmp byte [ebp - 0x203], 0
jne 0x404082
movzx ecx, byte [ebp - 0x200]
movzx eax, byte [ebp - 0x1ff]
shl cx, 8
or cx, ax
movzx eax, byte [ebp - 0x1fd]
mov word [edi], cx
movzx ecx, byte [ebp - 0x1fe]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 0x1fc]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 0x1fb]
shl ecx, 8
or ecx, eax
mov al, byte [ebp - 0x1fa]
mov dword [ebx], ecx
mov ecx, dword [ebp - 0x314]
mov byte [ecx], al
movzx ecx, byte [ebp - 0x202]
movzx eax, byte [ebp - 0x201]
shl ecx, 8
or eax, ecx
mov ecx, dword [ebp - 0x318]
add eax, 0xfffffff9
push eax
mov dword [ecx], eax
lea eax, [ebp - 0x1f9]
push eax
push dword [ebp - 0x31c]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c5a7
mov esp, ebp
pop ebp
ret 0x14
pop edi
pop esi
mov eax, 0xffffffe2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c5a7
mov esp, ebp
pop ebp
ret 0x14
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
mov eax, 0xffffffd8
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c5a7
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp - 4]
mov eax, 0xffffffec
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041c5a7
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4040d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d672
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x426014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x24], esi
lea edi, [esi + 0x284]
mov dword [edi], 0
mov dword [edi + 4], 0
push 0xc
lfence
call fcn.0041c7b3
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi], eax
mov dword [ebp - 4], 0
mov dword [esi + 0x28c], 0
mov dword [esi + 0x290], 0
push 0xc
lfence
call fcn.0041c7b3
add esp, 8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x28c], eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x294], eax
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 2
mov dword [esi], eax
add esi, 4
mov dword [ebp - 0x14], 0
nop
xorps xmm0, xmm0
mov dword [ebp - 0x10], esi
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [edi + 4], 0x15555555
mov eax, dword [edi]
mov dword [ebp - 0x10], eax
je 0x40429b
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 3
mov dword [ebp - 0x1c], 0
push 0xc
lfence
call fcn.0041c7b3
mov byte [ebp - 4], 2
add esp, 4
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], 0
mov dword [eax + 8], esi
add esi, 0x14
inc dword [edi + 4]
mov ecx, dword [edx + 4]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov dword [edx + 4], eax
mov dword [ecx], eax
mov ecx, dword [ebp - 0x14]
inc ecx
mov dword [ebp - 0x14], ecx
cmp ecx, 0x20
jl 0x404180
push 4
call fcn.0041c7b3
add esp, 4
mov esi, eax
mov dword [ebp - 0x10], esi
mov edi, dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push 0
push 0x20
push 0
push 0
mov dword [esi], 0
call edi
mov dword [esi], eax
mov eax, dword [ebp - 0x18]
push 4
mov dword [eax + 0x298], esi
call fcn.0041c7b3
add esp, 4
mov esi, eax
mov dword [ebp - 0x10], esi
push 0
push 0x20
push 0x20
push 0
mov dword [esi], 0
call edi
mov edi, dword [ebp - 0x18]
mov dword [esi], eax
push 8
mov dword [edi + 0x29c], esi
mov byte [edi + 0x2a0], 0
call fcn.0041c7b3
add esp, 4
mov dword [eax], 0x4043d0
push 0
push 0
push eax
push 0x402440
push 0
push 0
mov dword [eax + 4], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x28]
test eax, eax
push 2
cmovne ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push str.list_too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
int3
Function at 0x404db0
Capabilities:
Query or enumerate registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x426014]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp dword [edi + 0xc], 2
jne 0x404f8c
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov ecx, esi
mov dword [ebp - 0x1c], esi
sub ecx, dword [edi + 0x2bc]
cmp ecx, 0x1f4
jle 0x404e07
mov ecx, dword [edi + 0x18c]
call fcn.00405a10
test eax, eax
je 0x404e01
push 0xffffffffffffffe4
mov ecx, edi
call fcn.00404a20
mov dword [edi + 0x2bc], esi
mov eax, dword [edi + 0x1e8]
cmp eax, dword [edi + 0x1e4]
je 0x404f8b
push ebx
nop word [eax + eax]
mov ebx, dword [edi + eax*4 + 0x194]
cmp dword [ebx + 0x790], esi
jae 0x404f8a
mov eax, dword [edi + 0x170]
mov esi, dword [ebx + 0x780]
mov dl, byte [eax + 4]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x404e78
lea ecx, [esi + esi]
push 0
cmp dl, 3
je 0x404e6b
lea edx, [ebp - 0x14]
push edx
push 0
push 0
push ecx
push ebx
push 0x222000
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x404e78
lea edx, [ebp - 0x18]
push edx
push ecx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [0x42667c]
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 4
mov dword [ebp - 0xc], 0x400
test eax, eax
je 0x404f52
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0
push str.play
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 8], 1
sete al
test al, al
je 0x404f52
cmp dword [edi + 0x18], 0
je 0x404f52
mov eax, dword [edi + 0x160]
sub eax, dword [edi + 0x164]
cmp eax, 9
jge 0x404f52
mov eax, dword [edi + 0x15c]
mov ecx, 0xa
inc eax
cdq
idiv ecx
lea eax, [edi + 0x1c]
mov dword [edi + 0x15c], edx
shl edx, 5
add eax, edx
mov dword [ebp - 8], eax
test byte [eax + 0x10], 2
je 0x404f13
push 0x20
push eax
push dword [edi + 0x14]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
mov eax, dword [ebp - 8]
add esi, esi
push esi
push ebx
push dword [eax]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0xc
push 0x20
push eax
mov dword [eax + 4], esi
mov dword [eax + 0x10], 0
push dword [edi + 0x14]
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
test eax, eax
jne 0x404f52
push 0x20
push dword [ebp - 8]
push dword [edi + 0x14]
call dword [sym.imp.WINMM.dll_waveOutWrite]
inc dword [edi + 0x160]
mov eax, dword [edi + 0x1e8]
mov ecx, 0x14
inc eax
cdq
idiv ecx
push 0x794
push ebx
mov dword [edi + 0x1e8], edx
call fcn.0041c7e3
mov eax, dword [edi + 0x1e8]
add esp, 8
mov esi, dword [ebp - 0x1c]
cmp eax, dword [edi + 0x1e4]
jne 0x404e20
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0041c5a7
mov esp, ebp
pop ebp
ret
Function at 0x406f60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x426014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x20], eax
call fcn.00405ae0
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
mov ebx, eax
add esi, 8
mov dword [ebp - 0x1c], ebx
push dword [ebx + 4]
push str.Start_time:__lu_n
push esi
call edi
push dword [ebx + 8]
push esi
push str._sEnd_time:__lu_n
push esi
call edi
push dword [ebx + 0xc]
push esi
push str._sRx:__u_n
push esi
call edi
cvttsd2si eax, qword [ebx + 0x40]
push eax
push esi
push str._sMax_jitter:__u_n
push esi
call edi
push dword [ebx + 0x28]
push esi
push str._sMax_delta:__u_n
push esi
call edi
add esp, 0x4c
push dword [ebx + 0x14]
push esi
push str._sDropped:__u_n
push esi
call edi
push dword [ebx + 0x4c]
push esi
push str._sRepeats:__u_n_n
push esi
call edi
mov ecx, dword [0x42667c]
add esp, 0x20
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, 2
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 4
mov dword [ebp - 0xc], 0x400
test ecx, ecx
je 0x407029
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.transport
push ecx
call ebx
mov eax, dword [ebp - 8]
push eax
push esi
push str._sTransport_type:__d_n
push esi
call edi
mov eax, dword [0x42667c]
add esp, 0x10
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], 0x400
test eax, eax
je 0x40706f
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push 0
push str.controlPort
push eax
call ebx
mov eax, dword [ebp - 8]
jmp 0x407071
xor eax, eax
push eax
push esi
push str._sControl_port:__d_n
push esi
call edi
mov eax, dword [0x42667c]
add esp, 0x10
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], 0x400
test eax, eax
je 0x4070b7
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push 0
push str.mediaPort
push eax
call ebx
mov eax, dword [ebp - 8]
jmp 0x4070b9
xor eax, eax
push eax
push esi
push str._sMedia_port:__d_n_n
push esi
call edi
mov eax, dword [0x426678]
add esp, 0x10
test eax, eax
jne 0x4070f8
push 8
call fcn.0041c7b3
add esp, 4
mov dword [ebp - 0x24], eax
xorps xmm0, xmm0
mov dword [0x426678], eax
movq qword [eax], xmm0
mov dword [eax], 0xffffffff
call fcn.00401910
mov eax, dword [0x426678]
cmp byte [eax + 4], 2
sbb eax, eax
inc eax
push eax
push esi
push str._sDriver_state:__d_n_n
push esi
call edi
add esp, 0x10
lea eax, [ebp - 0x18]
push 8
push eax
call dword [sym.imp.WINMM.dll_timeGetDevCaps]
mov eax, dword [ebp - 0x1c]
push dword [eax + 0x1c]
push esi
push str._sQueue_count:__lu_n_n
push esi
call edi
add esp, 0x10
push 0x110
push dword [ebp - 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push 0
push 0xc
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041c5a7
mov esp, ebp
pop ebp
ret 4
Function at 0x407ccf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d86b
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x426014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x14c
lea eax, [ebp - 0x168]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [0x426688]
add esp, 0xc
mov dword [ebp - 0x168], eax
lea eax, [ebp - 0x168]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x164], esi
mov dword [0x42676c], eax
push 0
push 0x405e70
push esi
mov dword [ebp - 4], 0
push 0xc8
push dword [0x426684]
mov byte [0x426784], 1
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, 1
jne 0x407deb
mov eax, dword [0x42667c]
mov ecx, 2
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], 4
mov dword [ebp - 0x18], 0x400
test eax, eax
je 0x407d93
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push 0
push str.transport
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x14]
mov edx, dword [0x426690]
dec ecx
xor eax, eax
cmp ecx, 3
ja case.default.0x407da1
jmp dword [ecx*4 + 0x407e28]
mov eax, str.Bluetooth
jmp case.default.0x407da1
mov eax, 0x423298
jmp case.default.0x407da1
mov eax, str.Wi_Fi
jmp case.default.0x407da1
mov eax, str.Wi_Fi_direct
push eax
push 1
push 0x40b
push dword [edx + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push ecx
mov ecx, dword [0x42668c]
push 0
push 1
mov ecx, dword [ecx + 0x2b8]
call fcn.004042b0
xor esi, esi
cmp dword [ebp - 0x20], esi
jle 0x407e0c
push 0x106
push dword [ebp + esi*4 - 0x160]
call fcn.0041c7e3
inc esi
add esp, 8
cmp esi, dword [ebp - 0x20]
jl 0x407df2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041c5a7
mov esp, ebp
pop ebp
ret
Function at 0x407eda
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov eax, ecx
mov esi, edx
mov ecx, dword [0x42677c]
push edi
mov dword [ebp - 8], ecx
mov ecx, dword [0x426780]
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
call dword [sym.imp.USER32.dll_GetMenu]
mov ebx, dword [0x426694]
mov edi, eax
test ebx, ebx
je 0x407eaa
push 1
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_EnableWindow]
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [0x426694]
test eax, eax
je 0x407ea0
push 0x20c
push eax
call fcn.0041c7e3
add esp, 8
mov dword [0x426694], 0
push esi
call fcn.00407160
cmp esi, 5
ja case.0x407eb9.4
jmp dword [esi*4 + 0x407ff0]
push dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, edi
push dword [ebp - 0xc]
call fcn.004086b0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x20c
call fcn.0041c7b3
push 0x20c
mov edi, eax
push 0
push edi
mov dword [ebp - 0xc], edi
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
push 0x100
push 0x426ba8
push 0x6e
push dword [0x426684]
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [0x426688]
lea esi, [edi + 0xc]
push 0x426ba8
mov dword [edi], eax
mov eax, dword [ebp - 4]
push 0x100
push esi
mov dword [edi + 4], eax
mov dword [0x426774], edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
mov dword [0x426694], edi
push 0
push 0x406d80
push dword [edi + 4]
push 0xca
push dword [0x426684]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 0x10e
push eax
mov dword [edi + 8], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push 0
push 0xc
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 5
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push dword [edi + 4]
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [0x426034], 1
mov esi, dword [sym.imp.USER32.dll_EnableMenuItem]
push 2
push 0xd3
push edi
call esi
push 0
push 0xd4
push edi
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x20c
call fcn.0041c7b3
push 0x20c
mov edi, eax
push 0
push edi
mov dword [ebp - 0xc], edi
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
push 0x100
push 0x426ba8
push 0x6f
jmp 0x407f05