joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426400
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x45a0b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x210]
push eax
push str.SYSTEMCurrentControlSetServicesEventLogApplicationBonjour_Service
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x210], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov esi, eax
test esi, esi
jne 0x4264f5
push 0x104
lea edx, [ebp - 0x20c]
xor ecx, ecx
push edx
push ecx
mov word [ebp - 0x20c], cx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x426464
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub eax, edx
mov edx, dword [ebp - 0x210]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push 2
push 0
push str.EventMessageFile
push edx
call edi
mov esi, eax
test esi, esi
jne 0x4264f4
mov ecx, dword [ebp - 0x210]
push 4
lea eax, [ebp - 0x214]
push eax
push 4
push esi
push str.TypesSupported
push ecx
mov dword [ebp - 0x214], 0x1f
call edi
mov esi, eax
test esi, esi
jne 0x4264f4
push 0x44f2c4
push eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov dword [0x479c70], eax
test eax, eax
jne 0x4264f4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x4264ef
call esi
mov esi, eax
jmp 0x4264f4
mov esi, 0xffffe5cf
pop edi
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x426506
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00439f90
mov esp, ebp
pop ebp
ret
Function at 0x426bb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x45a0b0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x479c7c], 0
mov dword [ebp - 0x14], 0
jne 0x426be0
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439f90
mov esp, ebp
pop ebp
ret
cmp dword [0x479c80], 0
je 0x426bd0
push ebx
lea eax, [ebp - 0x14]
push eax
push str.SOFTWAREApple_Inc.BonjourPower_Management
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x426c09
xor bl, bl
jmp 0x426ce7
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x18]
push edx
push 0
push 0
push 0x44ec38
push eax
mov dword [ebp - 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x426c36
xor bl, bl
jmp 0x426ce7
cmp dword [ebp - 0x18], 0
jne 0x426c43
xor bl, bl
jmp 0x426ce7
lea ecx, [ebp - 0x10]
push ecx
call sub.KERNEL32.dll_GetSystemPowerStatus
test al, al
jne 0x426c57
xor bl, bl
jmp 0x426ce7
mov bl, 1
cmp byte [ebp - 0x10], bl
je 0x426c65
xor bl, bl
jmp 0x426ce7
push 0x47aa60
call fcn.004232b0
test al, al
jne 0x426c77
xor bl, bl
jmp 0x426ce7
push 0x47aa60
call fcn.0040f020
test al, al
jne 0x426c89
xor bl, bl
jmp 0x426ce7
push 0
call fcn.0043aa19
mov edx, dword [0x47aa60]
mov edx, dword [edx + 0x10]
lea ecx, [eax + 0x1c20]
add esp, 4
cmp edx, ecx
jge 0x426ca8
mov ecx, edx
sub ecx, eax
mov dword [ebp - 0x1c], ecx
fild dword [ebp - 0x1c]
push edi
fmul qword [0x44f700]
call fcn.0043bf60
mov edi, eax
push edi
push str.enabling_sleep_proxy_client_with_next_maintenance_wake_in__d_seconds
push 4
call fcn.00426360
add esp, 0xc
mov eax, edi
push 0
neg eax
cdq
push 0x989680
push edx
push eax
call fcn.0043bf20
mov dword [esi], eax
mov dword [esi + 4], edx
pop edi
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x426cf5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00439f90
mov esp, ebp
pop ebp
ret

Function at 0x426d10
Capabilities:
Get routing table

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
mov dword [ebp - 4], esi
call sub.IPHLPAPI.DLL_GetIpForwardTable
cmp eax, 0x7a
jne 0x426dbf
mov ecx, dword [ebp - 4]
push ebx
push ecx
call fcn.0043aa67
mov ebx, eax
add esp, 4
cmp ebx, esi
je 0x426db5
push esi
lea edx, [ebp - 4]
push edx
push ebx
call sub.IPHLPAPI.DLL_GetIpForwardTable
test eax, eax
jne 0x426dac
mov edx, dword [ebx]
cmp edx, esi
jbe 0x426dac
lea ecx, [ebx + 0x28]
push edi
lea ebx, [ebx]
mov edi, dword [ecx - 0x24]
cmp edi, dword [ebp + 0xc]
jne 0x426d73
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x426d8f
cmp dword [ecx], edi
je 0x426d8f
inc eax
add ecx, 0x38
cmp eax, edx
jb 0x426d60
pop edi
push ebx
call fcn.0043aafb
add esp, 4
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [ebp + 8]
lea ecx, [eax*8]
sub ecx, eax
lea esi, [ebx + ecx*8 + 4]
mov ecx, 0xe
rep movsd dword es:[edi], dword [esi]
mov esi, 1
pop edi
push ebx
call fcn.0043aafb
add esp, 4
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x427000
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x45a0b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x20c]
push edx
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0xc]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x42705b
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
test eax, eax
je 0x427158
call ebx
test eax, eax
jne 0x427146
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x210], ebx
test ebx, ebx
jne 0x427092
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42716f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x427146
push 0
push 0
push str.Tcpip
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push 1
push 2
push 0x20
push 0xf01ff
push esi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, eax
test ebx, ebx
jne 0x4270d8
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x427186
call esi
mov esi, eax
test esi, esi
jne 0x427133
call fcn.00425e20
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x4270f4
push eax
mov eax, dword [ebp - 0x210]
push edi
call fcn.00426200
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x427117
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x42718d
call esi
mov esi, eax
test esi, esi
jne 0x427128
push str.installed_service_n
push 0
call fcn.00426360
add esp, 8
xor esi, esi
test ebx, ebx
je 0x427133
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x427144
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439f90
mov esp, ebp
pop ebp
ret 8
pop esi
mov eax, 0xffffe5d0
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439f90
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 0xffffe59d
pop ebx
call fcn.00439f90
mov esp, ebp
pop ebp
ret 8
mov esi, 0xffffe5b6
jmp 0x427133
mov esi, 0xffffe5bf
jmp 0x427128
Function at 0x4271a0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45a0b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
jne 0x4271e7
call ebx
test eax, eax
je 0x427296
call ebx
test eax, eax
jne 0x427285
push 0x10024
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x42720c
call ebx
test eax, eax
je 0x4272ac
call ebx
mov esi, eax
test esi, esi
jne 0x427275
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x42722d
call ebx
test eax, eax
je 0x4272b3
call ebx
mov esi, eax
test esi, esi
jne 0x42726a
cmp dword [ebp - 0x1c], 1
je 0x427240
lea ecx, [ebp - 0x20]
push ecx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x427259
call ebx
test eax, eax
je 0x4272ba
call ebx
mov esi, eax
test esi, esi
jne 0x42726a
push str.Removed_service_n
push 0
call fcn.00426360
add esp, 8
xor esi, esi
test edi, edi
je 0x427275
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x427283
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439f90
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 0xffffe59d
pop ebx
call fcn.00439f90
mov esp, ebp
pop ebp
ret
mov esi, 0xffffe5b9
jmp 0x427275
mov esi, 0xffffe59e
jmp 0x42726a
mov esi, 0xffffe5ba
jmp 0x42726a
Function at 0x4279c0
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push str.169.254.0.0
call dword [sym.imp.WS2_32.dll_inet_addr]
push edi
push eax
call sub.IPHLPAPI.DLL_GetBestInterface
test eax, eax
je 0x4279e2
mov dword [edi], 0
lea eax, [ebp - 0xc]
push eax
push 0
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
je 0x4279fd
mov eax, 0xffffe5d4
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0xc]
push esi
push ecx
call fcn.0043aa67
mov esi, eax
add esp, 4
mov dword [ebp - 8], esi
test esi, esi
jne 0x427a1f
mov eax, 0xffffe5b8
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
lea edx, [ebp - 0xc]
push edx
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov ebx, eax
test ebx, ebx
jne 0x427b5c
mov dword [ebp - 4], 0xffffe5d4
mov bl, 0x42
lea ecx, [ecx]
mov eax, 6
cmp dword [esi + 0x1a0], eax
jne 0x427a8a
cmp dword [esi + 0x190], eax
jne 0x427a8a
cmp byte [esi + 0x194], 0x44
jne 0x427a8a
cmp byte [esi + 0x195], 0x45
jne 0x427a8a
cmp byte [esi + 0x196], 0x53
jne 0x427a8a
cmp byte [esi + 0x197], 0x54
jne 0x427a8a
cmp byte [esi + 0x198], bl
jne 0x427a8a
cmp byte [esi + 0x199], 0
je 0x427aae
push str.Juniper
lea eax, [esi + 0x10c]
mov edx, 0x84
call fcn.00426f00
test eax, eax
jne 0x427aae
mov eax, esi
call fcn.00426ea0
test eax, eax
je 0x427ac3
lea eax, [esi + 0x1b0]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
test eax, eax
jne 0x427b56
mov esi, dword [esi]
test esi, esi
jne 0x427a40
mov dword [ebp - 4], 0xffffe5d4
mov esi, dword [ebp - 8]
cmp dword [esi + 0x1a0], 6
jne 0x427b27
lea eax, [esi + 0x1b0]
test eax, eax
je 0x427b27
mov ecx, str.0.0.0.0
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x427b10
test dl, dl
je 0x427b0c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x427b10
add eax, 2
add ecx, 2
test dl, dl
jne 0x427af0
xor eax, eax
jmp 0x427b15
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x427b27
mov eax, dword [edi]
test eax, eax
je 0x427b35
cmp dword [esi + 0x19c], eax
je 0x427b35
mov esi, dword [esi]
test esi, esi
jne 0x427ad7
cmp dword [edi], esi
je 0x427b56
mov dword [edi], esi
jmp 0x427ad4
lea eax, [esi + 0x1b0]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [esi + 0x19c]
mov dword [edi], edx
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
push esi
call fcn.0043aafb
add esp, 4
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x436c30
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x45a0b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
lea ecx, [ebp - 0x118]
push ecx
lea eax, [ebp - 0x114]
push 0xfffefffc
mov dword [ebp - 0x118], eax
call fcn.00408570
mov edx, dword [ebp - 0x114]
mov ecx, dword [esi + 0x48]
push 0x100
lea eax, [ebp - 0x104]
push eax
mov dword [ebp - 0x11c], edx
push ecx
lea edx, [esi + 0x44]
push edx
call fcn.004086a0
test eax, eax
js 0x436d74
cmp dword [0x45b59c], 0
je 0x436cb5
mov ecx, dword [esi + 8]
lea eax, [ebp - 0x104]
push eax
push ecx
push str._3d:_DNSServiceGetProperty__s_
push 1
call fcn.00420510
add esp, 0x10
mov edx, str.DaemonVersion
lea ecx, [ebp - 0x104]
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x436ce0
test al, al
je 0x436cdc
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x436ce0
add ecx, 2
add edx, 2
test al, al
jne 0x436cc0
xor eax, eax
jmp 0x436ce5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x436d74
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x114]
push eax
lea edx, [ebp - 0x118]
push 4
mov dword [ebp - 0x114], edx
call fcn.00408570
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0x114]
push eax
lea edx, [ebp - 0x118]
push 0x32d3b8
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0x114], edx
call fcn.00408570
mov esi, dword [esi + 8]
mov ecx, dword [ebp - 0x118]
push 0
push 0xc
lea edx, [ebp - 0x110]
push edx
push esi
mov dword [ebp - 0x108], ecx
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp edi, 0xc
jge 0x436db5
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
push eax
call fcn.00408500
push eax
call ebx
push eax
push 0xc
jmp 0x436da4
mov esi, dword [esi + 8]
push 0
push 4
lea eax, [ebp - 0x11c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp edi, 4
jge 0x436db5
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
push eax
call fcn.00408500
push eax
call ebx
push eax
push 4
push edi
push esi
push str.ERROR:_send_all__d__wrote__d_of__d_errno__d___s_
push 0
call fcn.00420510
add esp, 0x1c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00439f90
mov esp, ebp
pop ebp
ret
Function at 0x437da0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x4c], 0
push esi
mov esi, dword [ebx + 0x58]
je 0x437dbc
pop esi
mov eax, 2
pop ebx
pop ebp
ret 4
push edi
lea edi, [esi + 0xc]
push edi
call fcn.00408760
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push 0
sub ecx, eax
push ecx
lea edx, [eax + esi + 0xc]
mov eax, dword [ebx + 8]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
push edi
mov ebx, eax
call fcn.00408760
test ebx, ebx
jns 0x437e3c
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
cmp eax, 0x2714
je 0x437e3a
call ebx
cmp eax, 0x2733
je 0x437e3a
mov edi, dword [esi + 4]
call ebx
push eax
call fcn.00408500
push eax
call ebx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push eax
push edx
push edi
sub edi, dword [esi + 8]
push edi
push str.send_msg_ERROR:_failed_to_write__d_of__d_bytes_to_fd__d_errno__d___s_
push 0
call fcn.00420510
add esp, 0x1c
pop edi
pop esi
mov eax, 3
pop ebx
pop ebp
ret 4
xor ebx, ebx
add dword [esi + 8], ebx
mov eax, dword [esi + 8]
xor ecx, ecx
cmp eax, dword [esi + 4]
pop edi
sete cl
pop esi
pop ebx
lea eax, [ecx + 1]
pop ebp
ret 4

Function at 0x439610
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x8004667e
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x43965f
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
push eax
call fcn.00408500
push eax
call esi
push eax
push str.ERROR:_could_not_set_listen_socket_to_non_blocking_mode
push str._s:__d___s_
push 0
call fcn.00420510
add esp, 0x14
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 5
push esi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x439685
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
push eax
call fcn.00408500
push eax
call esi
push eax
push str.ERROR:_could_not_listen_on_listen_socket
jmp 0x439649
push 0
push 0
push 0x4394e0
push esi
call fcn.00426a90
test eax, eax
je 0x4396b1
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
push eax
call fcn.00408500
push eax
call esi
push eax
push str.ERROR:_could_not_add_listen_socket_to_event_loop
jmp 0x439649
cmp dword [0x45b59c], 0
je 0x4396ca
push esi
push str._3d:_Listening_for_incoming_Unix_Domain_Socket_client_requests
push 1
call fcn.00420510
add esp, 0xc
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4396e0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x45a0b0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x45b59c], 0
je 0x439708
push str.udsserver_init
push 3
call fcn.00420510
add esp, 8
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4397a5
xor esi, esi
cmp dword [ebp + 0xc], esi
jbe 0x43973e
mov eax, dword [edi + esi*4]
cmp eax, 0xffffffff
je 0x439738
call fcn.00439610
test eax, eax
je 0x439858
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x439723
mov ecx, dword [0x446384]
push 0
push 0x434ef0
push ecx
push 0
push 2
push 0x47cd3c
push 0x47aa60
call fcn.00415ae0
push 3
push 0x47aa60
mov ebx, 0x446374
call fcn.00434b20
push 0
push 0x47aa60
call fcn.00434b20
push 0x108
call fcn.00420690
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x43988e
push str.ERROR:_malloc
push ebx
call fcn.00420510
add esp, 8
jmp 0x4398d7
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x45a08c], eax
cmp eax, 0xffffffff
jne 0x4397dd
call ebx
push eax
call fcn.00408500
push eax
call ebx
push eax
push str.ERROR:_socket_AF_DNSSD__SOCK_STREAM__0___failed
push str._s:__d___s_
push 0
call fcn.00420510
add esp, 0x14
jmp 0x439858
push 0x10
lea eax, [ebp - 0x14]
push eax
call fcn.00420670
mov ecx, 2
push 0x14ea
mov word [ebp - 0x14], cx
call dword [sym.imp.WS2_32.dll_htons]
push str.127.0.0.1
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x10
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [0x45a08c]
push edx
push eax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x439846
call ebx
push eax
call fcn.00408500
push eax
call ebx
push eax
push str.ERROR:_bind_listenfd___struct_sockaddr___laddr__sizeof_laddr____failed
push str._s:__d___s_
push 0
call fcn.00420510
add esp, 0x14
jmp 0x439858
mov eax, dword [0x45a08c]
call fcn.00439610
test eax, eax
jne 0x43973e
call ebx
push eax
call fcn.00408500
push eax
call ebx
push eax
push str.ERROR:_udsserver_init
push str._s:__d___s_
push 0
call fcn.00420510
add esp, 0x14
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439f90
mov esp, ebp
pop ebp
ret 8
push 0x446474
push 0x446374
call fcn.00401410
movzx eax, ax
mov edx, 0x100
cmp ax, dx
ja 0x4398bb
push eax
push 0x446374
lea ecx, [esi + 8]
push ecx
call fcn.004205c0
jmp 0x4398be
mov byte [esi + 8], bl
mov dword [esi + 4], ebx
mov edx, dword [0x47aa48]
push 1
mov dword [esi], edx
push esi
mov dword [0x47aa48], esi
call fcn.00434990
push 0x47aa60
call fcn.00438b20
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00439f90
mov esp, ebp
pop ebp
ret 8

Function at 0x439f90
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45a0b0]
jne 0x439f9a
repz ret
jmp fcn.0043c1d2
Function at 0x441c4c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45a0b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0043cdbf
and dword [ebp - 0x14], 0
cmp dword [0x47aa2c], 0
mov dword [ebp - 0x18], eax
jne 0x441cff
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x441da7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x441da7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x47aa2c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x47aa30], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x47aa34], eax
call edi
push eax
call esi
mov dword [0x47aa3c], eax
test eax, eax
je 0x441cff
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x47aa38], eax
mov eax, dword [0x47aa38]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x441d58
cmp dword [0x47aa3c], ecx
je 0x441d58
push eax
call esi
push dword [0x47aa3c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x441d58
test ebx, ebx
je 0x441d58
call edi
test eax, eax
je 0x441d4f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x441d4f
test byte [ebp - 8], 1
jne 0x441d58
or dword [ebp + 0x10], 0x200000
jmp 0x441d8b
mov eax, dword [0x47aa30]
cmp eax, dword [ebp - 0x18]
je 0x441d8b
push eax
call esi
test eax, eax
je 0x441d8b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x441d8b
mov eax, dword [0x47aa34]
cmp eax, dword [ebp - 0x18]
je 0x441d8b
push eax
call esi
test eax, eax
je 0x441d8b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x47aa2c]
call esi
test eax, eax
je 0x441da7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x441da9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00439f90
leave
ret
Function at 0x4065f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00406a64
mov byte [esp], al
cmp byte [esp], 0
jne 0x406779
test edi, edi
je 0x406779
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4066b9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x406694
cmp edi, 0xffffffff
je 0x406655
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x406655
mov byte [esp], 0
jmp 0x406779
cmp dword [esi], 1
jg 0x406694
cmp dword [esi], 0
jne 0x406686
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x406686
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x406779
lea eax, [esp + 0xc]
call fcn.004062c8
dec ebp
test ebp, ebp
jg 0x40663a
cmp edi, 0xffffffff
je 0x4066b9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4066b7
mov byte [esp], 0
jmp 0x406779
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4065fe
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4066b9
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004067e8
mov edx, eax
mov ebx, dword [0x5348f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40671d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40671b
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40671d
xor edi, edi
cmp byte [esp], 0
je 0x406743
mov ebx, dword [esi]
test bl, 1
jne 0x406759
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x406723
mov byte [esp + 1], 1
jmp 0x406759
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x406743
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4066d0
cmp byte [esp], 0
je 0x406779
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret