joyce8/EMBER2024-capa huggingface dataset:
Function at 0x480dab
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3d4
lea eax, [ebp - 0x18]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push eax
mov dword [0x5f1f8c], ebx
push dword [esi + 0x10]
mov dword [esi], 0x558b08
call dword [sym.imp.USER32.dll_GetWindowRect]
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push 0x5584a8
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x480e1b
mov ecx, dword [ebp - 0x14]
movzx eax, word [ebp - 0x18]
push 4
shl ecx, 0x10
or ecx, eax
lea eax, [ebp - 8]
push eax
push 4
push ebx
push str.windowPos
push dword [ebp - 4]
mov dword [ebp - 8], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [0x5f1f0d], bl
je 0x480e7f
cmp byte [0x5f1f6a], bl
je 0x480e89
push edi
mov edi, 0x3bc
lea eax, [ebp - 0x3d4]
push edi
push ebx
push eax
call fcn.005055e0
mov eax, dword [0x5f1f1c]
add esp, 0xc
mov dword [ebp - 0x3d0], eax
lea eax, [ebp - 0x3d4]
mov dword [ebp - 0x3d4], edi
mov dword [ebp - 0x3cc], 1
push eax
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov byte [0x5f1f1b], 1
pop edi
jmp 0x480e89
mov al, byte [0x5f1f6a]
mov byte [0x5f1f89], al
or dword [0x56cb98], 0xffffffff
lea ecx, [esi + 0x100]
call fcn.0043c274
lea ecx, [esi + 0xac]
call fcn.0043c446
lea ecx, [esi + 0x68]
call fcn.0043c274
mov ecx, esi
call fcn.004e2558
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x481352
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0xc], ebx
call fcn.004ca6cd
push ebx
add eax, 0x2f8
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0043db94
mov al, byte [eax + 4]
test al, al
je 0x4813e9
lea eax, [ebp - 0x48]
inc ebx
push eax
call fcn.004ca6cd
mov ecx, eax
call fcn.00477217
cmp dword [eax + 0x10], 0
je 0x4813e9
call fcn.004ca6cd
push 0
add eax, 0x318
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00445160
mov eax, dword [eax + 4]
test eax, eax
jle 0x4813e9
lea eax, [edi + 0x100]
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x4813c2
mov ecx, dword [eax]
cmp dword [eax + 0x10], 9
jne 0x4813e0
push 9
push str.CORPORATE
push ecx
call fcn.0043461b
add esp, 0xc
test eax, eax
jne 0x4813e0
mov al, bl
jmp 0x4813e2
xor al, al
mov byte [ebp - 1], bl
test al, al
je 0x4813ed
mov byte [ebp - 1], 0
test bl, 1
je 0x4813fa
lea ecx, [ebp - 0x48]
call fcn.0043c446
cmp byte [ebp - 1], 0
je 0x481425
push 0x7c
call fcn.004ed632
pop ecx
push 0
push str.mw_proxy_blocked_btn_ok
push str.mw_proxy_blocked
push ecx
push edi
push dword [edi + 0x10]
mov ecx, eax
call fcn.0048afda
jmp 0x481563
mov eax, dword [0x56cb94]
push 0
inc dword [eax]
lea eax, [ebp - 8]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x5584a8
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x481493
mov ecx, dword [edi + 0xd0]
lea eax, [ebp - 0x48]
push eax
call fcn.004e41fe
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x48]
cmp dword [ebp - 0x34], 8
cmovae ecx, dword [ebp - 0x48]
lea eax, [eax*2 + 2]
push eax
push ecx
push 4
push 0
push str.clientId
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x48]
call fcn.0043c274
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [edi + 0xd0]
lea eax, [ebp - 0x48]
push eax
call fcn.004e41fe
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.004a4985
lea ecx, [ebp - 0x48]
call fcn.0043c274
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0043a17e
mov esi, dword [ebp - 0xc]
cmp esi, dword [0x5ffe48]
jne 0x481541
cmp byte [edi + 0x80], 0
lea ebx, [edi + 0x68]
je 0x481511
push 0x1ec
call fcn.004ed632
sub esp, 0x20
mov esi, eax
mov ecx, esp
push ebx
call fcn.004469e4
lea eax, [ebp - 0x30]
push eax
push dword [edi + 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
mov ecx, esi
call fcn.0048edf7
jmp 0x48152a
push 0x1ac
call fcn.004ed632
pop ecx
push ebx
lea ecx, [ebp - 0x30]
push ecx
push 0
mov ecx, eax
call fcn.00493436
mov esi, eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00483138
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x28], esi
jmp 0x48155b
mov eax, dword [esi + 0x28]
push 9
push dword [eax + 0x10]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x28]
push dword [eax + 0x10]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea ecx, [ebp - 0x30]
call fcn.0043c274
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48156a
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
lea eax, [ebp - 0x1fc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push eax
push 0x202
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x481602
push 0x40
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x481602
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x481602
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax]
jmp 0x4815fe
movsx eax, word [ebx + 0xa]
push eax
push ecx
lea eax, [ebp - 0x10]
push eax
call fcn.00505060
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0043a56f
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.0044425e
lea ecx, [ebp - 0x2c]
call fcn.0043c446
mov ecx, dword [ebx + 0xc]
inc edi
mov ecx, dword [ecx + edi*4]
test ecx, ecx
jne 0x4815c0
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x481613
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x30
cmp byte [0x5f1fa8], 0
push ebx
push ebp
push esi
push edi
mov edi, ecx
jne 0x481664
mov edx, dword [0x5ffe34]
lea ecx, [esp + 0x28]
call fcn.004a4c8d
cmp dword [esp + 0x3c], 8
lea eax, [esp + 0x28]
cmovae eax, dword [esp + 0x28]
push eax
mov eax, dword [edi + 0xa4]
push 0
push 0xc
push dword [eax + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x28]
call fcn.0043c274
jmp 0x48173d
mov eax, dword [0x5ffe38]
xor ebx, ebx
mov ecx, dword [0x5ffe34]
sub eax, ecx
push 0x18
cdq
pop ebp
idiv ebp
mov esi, eax
test esi, esi
je 0x48173d
lea ebp, [edi + 0xac]
imul eax, ebx, 0x18
mov edx, ebp
add eax, ecx
cmp dword [ebp + 0x14], 0x10
jb 0x481699
mov edx, dword [ebp]
cmp dword [eax + 0x14], 0x10
mov ecx, eax
jb 0x4816a3
mov ecx, dword [eax]
mov eax, dword [eax + 0x10]
cmp eax, dword [ebp + 0x10]
jne 0x4816be
push eax
push edx
push ecx
call fcn.005059cd
add esp, 0xc
test eax, eax
jne 0x4816be
mov al, 1
jmp 0x4816c0
xor al, al
test al, al
je 0x48171f
lea eax, [esi - 1]
cmp ebx, eax
lea ecx, [ebx + 1]
mov eax, dword [0x5ffe34]
sbb ebx, ebx
and ebx, ecx
mov ecx, ebp
imul esi, ebx, 0x18
add eax, esi
push eax
call fcn.0043a516
mov edx, dword [0x5ffe34]
lea ecx, [esp + 0x28]
lea edx, [esi + edx]
call fcn.004a4c8d
cmp dword [esp + 0x3c], 8
lea eax, [esp + 0x28]
cmovae eax, dword [esp + 0x28]
push eax
mov eax, dword [edi + 0xa4]
push 0
push 0xc
push dword [eax + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x28]
call fcn.0043c274
mov eax, dword [0x5ffe38]
inc ebx
mov ecx, dword [0x5ffe34]
sub eax, ecx
push 0x18
pop esi
cdq
idiv esi
mov esi, eax
cmp ebx, esi
jb 0x481689
call fcn.004db835
mov esi, eax
cmp dword [esi + 0x14], 0x10
jb 0x48174c
mov esi, dword [esi]
call fcn.00435829
push str.mw_txt_yourIP
push esi
mov ecx, eax
call fcn.004d6fe7
push eax
lea ecx, [esp + 0x14]
call fcn.0043a44d
push 2
push 0x54e70c
lea ecx, [esp + 0x18]
call fcn.0043d30e
cmp dword [esp + 0x24], 8
lea eax, [esp + 0x10]
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextW]
cmovae eax, dword [esp + 0x10]
push eax
mov eax, dword [edi + 0xdc]
push dword [eax + 8]
call ebx
call fcn.004db835
mov esi, eax
cmp dword [esi + 0x14], 0x10
jb 0x4817a7
mov esi, dword [esi]
call fcn.00435829
push str.mw_txt_yourID
push esi
mov ecx, eax
call fcn.004d6fe7
push eax
lea ecx, [esp + 0x14]
call fcn.0043c2b9
push 0
push 0x54de54
lea ecx, [esp + 0x18]
call fcn.0043d30e
cmp dword [esp + 0x24], 8
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
push eax
mov eax, dword [edi + 0xd8]
push dword [eax + 8]
call ebx
mov eax, dword [edi + 0xa4]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push dword [eax + 8]
call esi
mov eax, dword [edi + 0xa0]
push 0
push dword [eax + 8]
call esi
lea ecx, [esp + 0x10]
mov byte [0x5f1fa8], 1
call fcn.0043c274
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 4
Function at 0x481827
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov edi, ecx
call fcn.004db835
mov esi, eax
cmp dword [esi + 0x14], 0x10
jb 0x481840
mov esi, dword [esi]
call fcn.00435829
push str.mw_txt_yourID
push esi
mov ecx, eax
call fcn.004d6fe7
push eax
lea ecx, [ebp - 0x1c]
call fcn.0043a44d
push 2
push 0x54e70c
lea ecx, [ebp - 0x1c]
call fcn.0043d30e
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
mov eax, dword [edi + 0xd8]
push dword [eax + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
call fcn.004db835
mov esi, eax
cmp dword [esi + 0x14], 0x10
jb 0x481894
mov esi, dword [esi]
call fcn.00435829
push str.mw_txt_yourIP
push esi
mov ecx, eax
call fcn.004d6fe7
push eax
lea ecx, [ebp - 0x1c]
call fcn.0043c2b9
push 0
push 0x54de54
lea ecx, [ebp - 0x1c]
call fcn.0043d30e
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
mov eax, dword [edi + 0xdc]
push dword [eax + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [edi + 0xa4]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [eax + 8]
call esi
mov eax, dword [edi + 0xa0]
push 5
push dword [eax + 8]
call esi
lea ecx, [ebp - 0x1c]
mov byte [0x5f1fa8], 0
call fcn.0043c274
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x483c8c
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
push edi
push 0xffffffffffffffff
xor edi, edi
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push edi
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 0x601530
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov ecx, dword [esi + 4]
push edi
push ecx
test eax, eax
je 0x483cd8
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x483cee
push method.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.virtual_56
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x483cf4
Capabilities:
Create thread

Disassembly:
sub esp, 0x34
xor eax, eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebp
push esi
push edi
push eax
push eax
push 1
push eax
mov ebp, ecx
call ebx
mov edi, dword [esp + 0x48]
mov esi, eax
mov dword [edi + 4], esi
test esi, esi
jne 0x483d7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi]
mov ecx, edi
push 1
mov dword [esp + 0x4c], eax
call dword [edx]
call fcn.0047f5c4
mov dword [esp + 0x10], eax
cmp dword [esp + 0x48], esi
je 0x483d7a
push str.thread.entry_event
lea ecx, [esp + 0x1c]
call fcn.00434583
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x18]
and dword [esp + 0x3c], esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], 0x54ea60
mov dword [esp + 0x28], eax
mov dword [esp + 0x40], 0xf
mov byte [esp + 0x2c], 0
call fcn.00435ac1
xor eax, eax
push eax
push eax
push 1
push eax
call ebx
mov dword [ebp + 8], eax
xor ebx, ebx
mov dword [edi + 8], eax
cmp dword [ebp + 8], ebx
jne 0x483dee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi]
mov ecx, edi
push 1
mov ebx, eax
call dword [edx]
call fcn.0047f5c4
mov dword [esp + 0x48], eax
test ebx, ebx
je 0x483dec
push str.thread.exit_event
lea ecx, [esp + 0x1c]
call fcn.00434583
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], ebx
xor ebx, ebx
mov dword [esp + 0x18], 0x54ea60
mov dword [esp + 0x28], eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], 0xf
mov byte [esp + 0x2c], bl
call fcn.00435ac1
jmp 0x483dee
xor ebx, ebx
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ebx
push eax
push ebx
push edi
push 0x483e9b
push ebx
push ebx
call fcn.0051a373
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x18
mov dword [ebp + 4], eax
test eax, eax
jne 0x483e81
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi]
mov ecx, edi
push 1
mov dword [esp + 0x4c], eax
call dword [edx]
test esi, esi
je 0x483e2e
push esi
call ebx
cmp dword [ebp + 8], 0
je 0x483e39
push dword [ebp + 8]
call ebx
call fcn.0047f5c4
mov edi, dword [esp + 0x48]
mov ebp, eax
test edi, edi
je 0x483e81
push str.thread
lea ecx, [esp + 0x1c]
call fcn.00434583
and dword [esp + 0x3c], 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0x54ea60
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x40], 0xf
mov byte [esp + 0x2c], 0
call fcn.00435ac1
test esi, esi
je 0x483e91
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 8
Function at 0x484591
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov ebp, ecx
mov esi, edx
xor ebx, ebx
mov dword [esp + 0x10], esi
push edi
mov edi, dword [esp + 0x2c]
cmp ebp, 0xffffffff
je 0x48466d
cmp byte [esp + 0x28], bl
je 0x4845de
test byte [esi], 8
je 0x4845de
xor eax, eax
mov dword [esp + 0x10], eax
call fcn.0047f5c4
lea eax, [esp + 0x18]
mov edx, esi
push eax
push ecx
lea eax, [esp + 0x18]
push eax
push ecx
push ecx
mov ecx, ebp
call fcn.00484a3f
add esp, 0x14
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call fcn.0047f5c4
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
je 0x48466d
call fcn.0047f5c4
cmp dword [edi + 4], eax
jne 0x484617
cmp dword [edi], 0x2733
je 0x484629
call fcn.0047f5c4
cmp dword [edi + 4], eax
jne 0x484669
cmp dword [edi], 0x4d5
jne 0x484669
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push eax
push 0x8004667e
push ebp
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [esp + 0x14]
push 0
and byte [eax], 0xfc
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call fcn.0047f5c4
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
jne 0x484678
call fcn.0047f5c4
and dword [edi], 0
mov dword [edi + 4], eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x14
ret

Function at 0x484682
Capabilities:
Connect socket

Disassembly:
push ecx
push ebx
push ebp
push esi
mov ebp, ecx
mov esi, edx
push edi
cmp ebp, 0xffffffff
jne 0x4846a1
call fcn.0047f5c4
mov ebx, dword [esp + 0x1c]
mov dword [ebx], 0x2719
jmp 0x4846d8
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [esp + 0x18]
push esi
push ebp
call dword [sym.imp.WS2_32.dll_connect]
mov edi, eax
call fcn.0047f5c4
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, dword [esp + 0x1c]
mov dword [ebx], eax
mov dword [ebx + 4], esi
test edi, edi
jne 0x4846db
call fcn.0047f5c4
and dword [ebx], edi
mov dword [ebx + 4], eax
call fcn.0047f5c4
cmp dword [ebx + 4], eax
jne 0x4846ed
cmp dword [ebx], 0x2734
je 0x4846ff
call fcn.0047f5c4
cmp dword [ebx + 4], eax
jne 0x484743
cmp dword [ebx], 0x2733
jne 0x484743
push ebx
mov ecx, ebp
call fcn.00484c3d
pop ecx
test eax, eax
js 0x484743
and dword [esp + 0x10], 0
lea eax, [esp + 0x1c]
push ebx
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 4
push eax
push ecx
push ecx
mov ecx, ebp
call fcn.00484aad
add esp, 0x14
cmp eax, 0xffffffff
je 0x484743
call fcn.0047f5c4
mov ecx, dword [esp + 0x10]
mov dword [ebx], ecx
mov dword [ebx + 4], eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x484b2b
Capabilities:
Get socket status

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp esi, 0xffffffff
jne 0x484b55
call fcn.0047f5c4
mov ecx, dword [esp + 0x120]
mov dword [ecx + 4], eax
or eax, esi
mov dword [ecx], 0x2719
jmp 0x484ba9
xor ebp, ebp
mov dword [esp + 0x14], esi
push ebp
mov dword [esp + 0x14], 1
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebp
push ebp
push ebp
lea eax, [esp + 0x1c]
push eax
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
call fcn.0047f5c4
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, dword [esp + 0x120]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
je 0x484b9d
jle 0x484ba7
call fcn.0047f5c4
mov dword [edi + 4], eax
mov dword [edi], ebp
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret

Function at 0x484bb4
Capabilities:
Get socket status

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp esi, 0xffffffff
jne 0x484bde
call fcn.0047f5c4
mov ecx, dword [esp + 0x120]
mov dword [ecx + 4], eax
or eax, esi
mov dword [ecx], 0x2719
jmp 0x484c32
xor ebp, ebp
mov dword [esp + 0x14], esi
push ebp
mov dword [esp + 0x14], 1
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebp
push ebp
lea eax, [esp + 0x18]
push eax
push ebp
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
call fcn.0047f5c4
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, dword [esp + 0x120]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
je 0x484c26
jle 0x484c30
call fcn.0047f5c4
mov dword [edi + 4], eax
mov dword [edi], ebp
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret

Function at 0x484c3d
Capabilities:
Get socket status

Disassembly:
sub esp, 0x208
push esi
mov esi, ecx
cmp esi, 0xffffffff
jne 0x484c64
call fcn.0047f5c4
mov ecx, dword [esp + 0x210]
mov dword [ecx + 4], eax
or eax, esi
mov dword [ecx], 0x2719
jmp 0x484cd0
push ebx
push ebp
xor eax, eax
mov dword [esp + 0x114], esi
push edi
inc eax
mov dword [esp + 0x14], esi
xor ebp, ebp
mov dword [esp + 0x114], eax
push ebp
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebp
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x11c]
push eax
push ebp
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
call fcn.0047f5c4
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, dword [esp + 0x21c]
mov dword [edi], eax
mov dword [edi + 4], esi
test ebx, ebx
js 0x484ccb
call fcn.0047f5c4
mov dword [edi], ebp
mov dword [edi + 4], eax
pop edi
pop ebp
mov eax, ebx
pop ebx
pop esi
add esp, 0x208
ret
Function at 0x486904
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
push edi
mov edi, ecx
lea eax, [esp + 0x28]
push eax
mov ecx, dword [edi + 0x78]
mov dword [edi], 0x558bf0
call fcn.004e41fe
mov esi, eax
call fcn.004ca6cd
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 2
push ecx
lea ecx, [eax + 0x3c8]
call fcn.0043ed0e
mov ecx, eax
call fcn.0043a3bc
lea ecx, [esp + 0x28]
call fcn.0043c274
call fcn.004ca6cd
mov ecx, eax
call fcn.004cacda
lea eax, [esp + 0x18]
push eax
push dword [edi + 0x10]
call dword [sym.imp.USER32.dll_GetWindowRect]
xor ebx, ebx
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push 0x5584a8
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4869bf
mov ecx, dword [esp + 0x1c]
movzx eax, word [esp + 0x18]
push 4
shl ecx, 0x10
or ecx, eax
lea eax, [esp + 0x18]
push eax
push 4
push ebx
push str.simsWindowPos
push dword [esp + 0x24]
mov dword [esp + 0x2c], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [edi + 0x8c]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea ecx, [edi + 0x90]
mov byte [0x5f1fa9], bl
call fcn.0043c446
mov ecx, edi
call fcn.004e2558
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48716d
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x5c
push ebx
mov ebx, dword [esp + 0x6c]
lea ecx, [esp + 0x2c]
push ebp
push esi
push edi
xor edi, edi
lea ebp, [ebx + 0x38]
mov dword [esp + 0x10], edi
push ebp
mov dword [esp + 0x14], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
call fcn.0043c644
cmp dword [esp + 0x4c], 0x10
lea eax, [ebx + 0x20]
lea esi, [esp + 0x38]
mov dword [esp + 0x30], edi
cmovae esi, dword [esp + 0x38]
lea ecx, [esp + 0x20]
push eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x7c], eax
call fcn.0043c644
cmp dword [esp + 0x34], 0x10
lea edi, [esp + 0x20]
cmovae edi, dword [esp + 0x20]
test edi, edi
je 0x4871d5
cmp byte [edi], 0
jne 0x4871d7
xor edi, edi
test esi, esi
je 0x4871e0
cmp byte [esi], 0
jne 0x4871e2
xor esi, esi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [esp + 0x10]
push eax
push ebx
push esi
push edi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov edx, eax
lea ecx, [esp + 0x14]
call fcn.00484cd8
mov edi, dword [esp + 0x7c]
mov ecx, dword [eax]
mov dword [edi], ecx
lea ecx, [esp + 0x20]
mov eax, dword [eax + 4]
mov dword [edi + 4], eax
call fcn.0043c446
lea ecx, [esp + 0x38]
call fcn.0043c446
mov esi, dword [esp + 0x10]
xor ebx, ebx
cmp dword [edi], ebx
je 0x487240
mov dword [esp + 0x14], ebx
lea edx, [esp + 0x14]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
inc ebx
jmp 0x487285
push ebp
lea ecx, [esp + 0x54]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
call fcn.0043c644
push dword [esp + 0x78]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
call fcn.0043c644
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x28]
call fcn.0048758e
pop ecx
pop ecx
push 0xe
mov edx, eax
pop ebx
mov edi, dword [esp + 0x70]
xor ebp, ebp
mov dword [edi], ebp
mov dword [edi + 4], ebp
mov ecx, dword [edx]
mov dword [edi], ecx
mov eax, dword [edx + 4]
mov dword [edi + 4], eax
mov dword [edx], ebp
mov dword [edx + 4], ebp
mov eax, dword [edx + 8]
mov dword [edi + 8], eax
mov dword [edx + 8], ebp
test bl, 8
je 0x4872bd
mov ecx, dword [esp + 0x24]
and ebx, 0xfffffff7
test ecx, ecx
je 0x4872bd
call fcn.00483991
test bl, 4
je 0x4872ce
lea ecx, [esp + 0x38]
and ebx, 0xfffffffb
call fcn.0043c446
test bl, 2
je 0x4872df
lea ecx, [esp + 0x50]
and ebx, 0xfffffffd
call fcn.0043c446
test bl, 1
je 0x4872f1
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4872f1
call fcn.00483991
test esi, esi
je 0x4872fc
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0x10