joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442200
Capabilities:
Read .ini file

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push esi
push edi
mov esi, eax
mov eax, dword [esi + 0x118]
lea edi, [esi + 4]
push edi
push eax
push str.TurboMode
push str.poll
call ebx
push edi
mov dword [esi + 0x118], eax
mov eax, dword [esi + 0x11c]
push eax
push str.PollUnderCursor
push str.poll
call ebx
push edi
mov dword [esi + 0x11c], eax
mov eax, dword [esi + 0x120]
push eax
push str.PollForeground
push str.poll
call ebx
push edi
mov dword [esi + 0x120], eax
mov eax, dword [esi + 0x124]
push eax
push str.PollFullScreen
push str.poll
call ebx
push edi
mov dword [esi + 0x124], eax
mov eax, dword [esi + 0x128]
push eax
push str.OnlyPollConsole
push str.poll
call ebx
push edi
mov dword [esi + 0x128], eax
mov eax, dword [esi + 0x12c]
push eax
push str.OnlyPollOnEvent
push str.poll
call ebx
push edi
mov dword [esi + 0x12c], eax
mov eax, dword [esi + 0x130]
push eax
push str.EnableDriver
push str.poll
call ebx
mov dword [esi + 0x130], eax
test eax, eax
je 0x4422db
push 0
call fcn.0040ce70
movzx eax, al
add esp, 4
mov dword [esi + 0x130], eax
mov eax, dword [esi + 0x134]
push edi
push eax
push str.EnableHook
push str.poll
call ebx
push edi
mov dword [esi + 0x134], eax
mov eax, dword [esi + 0x138]
push eax
push str.EnableVirtual
push str.poll
call ebx
push edi
mov dword [esi + 0x138], eax
mov eax, dword [esi + 0x13c]
push eax
push str.SingleWindow
push str.poll
call ebx
push edi
push 0x20
mov dword [esi + 0x13c], eax
add esi, 0x140
push esi
push 0x47a387
push str.SingleWindowName
push str.poll
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop edi
pop esi
pop ebx
ret
Function at 0x445f5b
Capabilities:
Create process on windows
Terminate process

Disassembly:
sub esp, 0x15c
mov eax, dword [0x489348]
xor eax, esp
mov dword [esp + 0x158], eax
mov eax, dword [esp + 0x160]
push esi
mov esi, ecx
mov dword [esi + 0x40], eax
test eax, eax
je 0x446056
cmp dword [esi + 0x30], 0
je 0x446056
cmp dword [esi + 0x38], 0
jne 0x44606d
push 0x104
lea eax, [esp + 0x5c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x445ffa
lea ecx, [esp + 0x58]
push 0x5c
push ecx
call fcn.0045cab0
add esp, 8
test eax, eax
jne 0x445fbe
pop esi
mov ecx, dword [esp + 0x158]
xor ecx, esp
call fcn.0045c77f
add esp, 0x15c
ret 4
mov byte [eax], 0
lea eax, [esp + 0x58]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x445fc6
mov edx, dword [str.xdmcpxdmcp.exe]
mov ecx, dword [0x480bdc]
mov dword [eax], edx
mov edx, dword [0x480be0]
mov dword [eax + 4], ecx
mov ecx, dword [0x480be4]
mov dword [eax + 8], edx
mov dl, byte [0x480be8]
mov dword [eax + 0xc], ecx
mov byte [eax + 0x10], dl
push 0x44
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00462100
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x18]
push edx
push str..xdmcp
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x78]
push eax
push 0
mov dword [esp + 0x3c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x446066
mov ecx, dword [esp + 4]
push 0x2710
push ecx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov edx, dword [esp + 4]
mov dword [esi + 0x38], edx
jmp 0x44606d
mov eax, dword [esi + 0x38]
test eax, eax
je 0x44606d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [esi + 0x38], 0
mov ecx, dword [esp + 0x15c]
pop esi
xor ecx, esp
mov eax, 1
call fcn.0045c77f
add esp, 0x15c
ret 4
Function at 0x4460f0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x454
push ebx
push esi
push edi
mov esi, ecx
lea edi, [esi + 0x308]
push edi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x44626e
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
mov dword [esp + 0x28], ebx
test ebx, ebx
jne 0x44615b
push str.._vncserver.cpp_:_Failed_rootdc__n
xor ecx, ecx
mov eax, 0x48b3f0
call fcn.00401000
xor esi, esi
xor eax, eax
add esp, 4
mov word [esp + 0xc], si
mov word [esp + 0xe], ax
mov ecx, dword [esp + 0xc]
xor bl, bl
jmp 0x4462b1
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 8
push ebx
call edi
push 0xa
mov si, ax
push ebx
mov word [esp + 0x14], si
call edi
movzx ecx, ax
movzx edx, si
push ecx
push edx
push ebx
mov word [esp + 0x1a], ax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edi, eax
test edi, edi
jne 0x4461a0
xor esi, esi
mov word [esp + 0xc], si
mov word [esp + 0xe], ax
xor bl, bl
jmp 0x446257
push 0x430
lea ecx, [esp + 0x34]
push 0
push ecx
call fcn.00462100
add esp, 0xc
xor edx, edx
push ebx
mov dword [esp + 0x38], 0x28
mov word [esp + 0x46], dx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
mov dword [esp + 0x2c], ebx
test ebx, ebx
jne 0x4461e4
xor esi, esi
mov word [esp + 0xc], si
mov word [esp + 0xe], ax
xor bl, bl
jmp 0x446250
push 0
lea ecx, [esp + 0x38]
push ecx
push 0
push 1
push 0
push edi
push ebx
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
jne 0x44620f
xor esi, esi
xor edx, edx
mov word [esp + 0xc], si
mov word [esp + 0xe], dx
xor bl, bl
jmp 0x446245
push 0
lea eax, [esp + 0x38]
push eax
push 0
push 1
push 0
push edi
push ebx
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
jne 0x44623a
xor esi, esi
xor ecx, ecx
mov word [esp + 0xc], si
mov word [esp + 0xe], cx
xor bl, bl
jmp 0x446245
mov bl, byte [esp + 0x42]
cmp bl, 0x18
jne 0x446245
mov bl, 0x20
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x28]
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x24]
jmp 0x4462b1
mov edx, dword [eax + 0xe050]
mov ecx, dword [eax + 0xe04c]
mov dword [esp + 0x10], edx
mov edx, dword [eax + 0xe054]
mov bl, byte [esp + 0x10]
mov dword [esp + 0x14], edx
mov edx, dword [eax + 0xe058]
mov dword [esp + 0x18], edx
mov edx, dword [eax + 0xe05c]
mov eax, dword [eax + 0xe060]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
mov si, cx
mov eax, dword [ebp + 8]
movzx edx, si
mov dword [eax], edx
mov edx, dword [ebp + 0xc]
shr ecx, 0x10
mov dword [edx], ecx
mov ecx, dword [ebp + 0x10]
movzx eax, bl
push edi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x447c10
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x13c
mov eax, dword [0x489348]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
push esi
push edi
xor eax, eax
push str.kernel32.dll
mov dword [esp + 0x18], eax
mov dword [0x4a672c], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
push str.WTSGetActiveConsoleSessionId
push ebx
call edi
push str.ProcessIdToSessionId
push ebx
mov esi, eax
call edi
mov dword [0x4a672c], eax
test esi, esi
je 0x447c6c
call esi
mov edi, eax
jmp 0x447c6e
xor edi, edi
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x447ca4
cmp dword [0x4a672c], 0
je 0x447ca4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [esp + 0x10]
push ecx
push eax
mov dword [esp + 0x18], 0xffffffff
call dword [0x4a672c]
mov edi, dword [esp + 0x10]
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x447cd2
lea edx, [esp + 0x18]
push edx
push esi
mov dword [esp + 0x20], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x447cf0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.0045c77f
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x3c]
push str.explorer.exe
push eax
call fcn.0045d37d
add esp, 8
test eax, eax
jne 0x447d60
mov dword [esp + 0x10], eax
mov eax, dword [0x4a672c]
test eax, eax
je 0x447d58
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push ecx
push edx
call eax
test eax, eax
je 0x447d60
cmp dword [esp + 0x10], edi
jne 0x447d60
mov edx, dword [esp + 0x20]
mov dword [esp + 0x14], edx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x144]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045c77f
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x18]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x447cf0
jmp 0x447d31
Function at 0x447f00
Capabilities:
Check for sandbox username or hostname
Get session user name

Disassembly:
mov eax, dword [0x4a6728]
sub esp, 8
push edi
test eax, eax
je 0x447f17
mov dword [0x4a6724], 1
cmp dword [0x4a1090], 2
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x447fc4
test eax, eax
je 0x447fc4
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
test eax, eax
jne 0x447f46
push str.._vncservice.cpp_:_______________GetCurrentUser___ERROR_:_No_window_station__n
jmp 0x448045
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 4
push eax
call dword [sym.imp.USER32.dll_GetUserObjectInformationA]
call edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [esp + 8], 0
jne 0x447f9a
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push str.._vncservice.cpp_:_______________GetCurrentUser___Error:_Usersize_0_n
xor ecx, ecx
mov eax, 0x48b3f0
mov dword [0x4a6724], 0
mov byte [esi], 0
call fcn.00401000
add esp, 4
mov eax, 1
pop edi
add esp, 8
ret
cmp dword [0x4a6724], 0
jne 0x447fc4
push str.._vncservice.cpp_:_______________GetCurrentUser___Error:_NOT_impersonating_user__n
xor ecx, ecx
mov eax, 0x48b3f0
call fcn.00401000
add esp, 4
mov byte [esi], 0
mov eax, 1
pop edi
add esp, 8
ret
mov edx, dword [0x4a1090]
dec edx
cmp edx, 1
ja 0x448040
mov ecx, esi
mov dword [esp + 8], 0x101
call fcn.00447d80
test al, al
jne 0x448021
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x448021
call edi
cmp eax, 0x4dd
jne 0x448003
push str.._vncservice.cpp_:_______________GetCurrentUser___Error:_No_user_logged_on__n
jmp 0x447fa8
call edi
push eax
push str.._vncservice.cpp_:_getusername_error__d_n
xor ecx, ecx
mov eax, 0x48b3f0
call fcn.00401000
add esp, 8
xor eax, eax
pop edi
add esp, 8
ret
push esi
push str.._vncservice.cpp_:_______________GetCurrentUser___UserNAme_found:__s__n
xor ecx, ecx
mov eax, 0x48b3f0
call fcn.00401000
add esp, 8
mov eax, 1
pop edi
add esp, 8
ret
push str.._vncservice.cpp_:_______________GetCurrentUser___Error:_Unknown_OS__n
xor ecx, ecx
mov eax, 0x48b3f0
call fcn.00401000
add esp, 4
xor eax, eax
pop edi
add esp, 8
ret

Function at 0x448810
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
sub esp, 8
cmp dword [eax + 0x32c], 0
je 0x44886b
push esi
lea eax, [esp + 8]
push eax
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0xc]
push eax
push 0
push ecx
mov ecx, dword [esp + 0x24]
mov esi, 4
push ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x448857
cmp dword [esp + 4], esi
jne 0x448857
cmp dword [esp + 8], esi
je 0x448860
mov eax, edi
pop esi
add esp, 8
ret 4
mov eax, dword [esp + 0x10]
pop esi
add esp, 8
ret 4
add eax, 0x330
push eax
push edi
push ecx
push str.admin_auth
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
add esp, 8
ret 4
Function at 0x448890
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
mov ebx, eax
cmp dword [ebx + 0x32c], 0
push esi
je 0x448918
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0xc]
push eax
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0
push edi
mov esi, 0x100
push ebp
mov dword [esp + 0x2c], 1
mov dword [esp + 0x24], esi
call ebx
test eax, eax
jne 0x44890f
cmp dword [esp + 0x14], 3
jne 0x44890f
push esi
mov dword [esp + 0x10], esi
call fcn.0045cadd
mov esi, eax
add esp, 4
test esi, esi
je 0x44890f
lea edx, [esp + 0xc]
push edx
push esi
lea eax, [esp + 0x1c]
push eax
push 0
push edi
push ebp
call ebx
test eax, eax
jne 0x448906
cmp dword [esp + 0x14], 3
je 0x448945
push esi
call fcn.0045d506
add esp, 4
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
push 0x96
call fcn.0045cadd
add esp, 4
add ebx, 0x330
push ebx
push 0x96
mov esi, eax
push esi
push 0x47a387
push edi
push str.admin_auth
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

Function at 0x448950
Capabilities:
Set registry value

Disassembly:
sub esp, 0x24
mov eax, dword [0x489348]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
push esi
mov esi, ecx
cmp dword [esi + 0x32c], 0
je 0x448993
push 4
lea ecx, [esp + 0x34]
push ecx
push 4
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0045c77f
add esp, 0x24
ret 8
mov edx, dword [esp + 0x30]
push edx
lea eax, [esp + 8]
push 0x47a408
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
add esi, 0x330
push esi
lea ecx, [esp + 8]
push ecx
push edi
push str.admin_auth
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [esp + 0x24]
pop esi
xor ecx, esp
call fcn.0045c77f
add esp, 0x24
ret 8

Function at 0x4489e0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x32c], 0
push edi
mov edi, eax
je 0x448a66
mov eax, esi
call fcn.004487b0
mov eax, dword [esi + 8]
test eax, eax
je 0x448a36
cmp dword [esi + 0x32c], 0
je 0x448a1e
push 0xfe
push edi
push 3
push 0
push str.group1
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x448a36
lea eax, [esi + 0x330]
push eax
push edi
push str.group1
push str.admin_auth
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp dword [esi + 0x32c], 0
je 0x448a7e
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x448a4f
push eax
call edi
mov eax, dword [esi + 0xc]
test eax, eax
je 0x448a59
push eax
call edi
mov esi, dword [esi + 4]
test esi, esi
je 0x448a7e
push esi
call edi
pop edi
pop esi
ret
add esi, 0x330
push esi
push edi
push str.group1
push str.admin_auth
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
ret
Function at 0x448b10
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x32c], 0
push edi
mov edi, eax
je 0x448b96
mov eax, esi
call fcn.004487b0
mov eax, dword [esi + 8]
test eax, eax
je 0x448b66
cmp dword [esi + 0x32c], 0
je 0x448b4e
push 0xfe
push edi
push 3
push 0
push str.group2
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x448b66
lea eax, [esi + 0x330]
push eax
push edi
push str.group2
push str.admin_auth
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp dword [esi + 0x32c], 0
je 0x448bae
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x448b7f
push eax
call edi
mov eax, dword [esi + 0xc]
test eax, eax
je 0x448b89
push eax
call edi
mov esi, dword [esi + 4]
test esi, esi
je 0x448bae
push esi
call edi
pop edi
pop esi
ret
add esi, 0x330
push esi
push edi
push str.group2
push str.admin_auth
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
ret

Function at 0x448c40
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x32c], 0
push edi
mov edi, eax
je 0x448cc6
mov eax, esi
call fcn.004487b0
mov eax, dword [esi + 8]
test eax, eax
je 0x448c96
cmp dword [esi + 0x32c], 0
je 0x448c7e
push 0xfe
push edi
push 3
push 0
push str.group3
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x448c96
lea eax, [esi + 0x330]
push eax
push edi
push str.group3
push str.admin_auth
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp dword [esi + 0x32c], 0
je 0x448cde
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x448caf
push eax
call edi
mov eax, dword [esi + 0xc]
test eax, eax
je 0x448cb9
push eax
call edi
mov esi, dword [esi + 4]
test esi, esi
je 0x448cde
push esi
call edi
pop edi
pop esi
ret
add esi, 0x330
push esi
push edi
push str.group3
push str.admin_auth
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
ret
Function at 0x449040
Capabilities:
Read .ini file

Disassembly:
push ebx
push edi
lea edi, [esi + 0x330]
push edi
call fcn.004043b0
push edi
xor ebx, ebx
push ebx
push str.UseRegistry
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
dec eax
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x32c], eax
mov eax, esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
call fcn.00448a90
mov dword [esi + 0x10], eax
mov eax, esi
call fcn.00448bc0
mov dword [esi + 0x14], eax
mov eax, esi
call fcn.00448cf0
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x1c]
mov ecx, esi
call fcn.00448d70
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x20]
mov ecx, esi
call fcn.00448e60
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x24]
mov ecx, esi
call fcn.00448f50
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x24], eax
cmp ecx, ebx
je 0x4490e9
lea edx, [esi + 0x28]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x4490d1
mov eax, dword [esi + 0x10]
push eax
call fcn.0045d506
add esp, 4
jmp 0x4490ec
mov byte [esi + 0x28], bl
mov ecx, dword [esi + 0x14]
cmp ecx, ebx
je 0x449118
lea edx, [esi + 0x128]
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x449100
mov ecx, dword [esi + 0x14]
push ecx
call fcn.0045d506
add esp, 4
jmp 0x44911e
mov byte [esi + 0x128], bl
mov ecx, dword [esi + 0x18]
cmp ecx, ebx
je 0x44914b
lea edx, [esi + 0x228]
jmp 0x449130
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x449130
mov edx, dword [esi + 0x18]
push edx
call fcn.0045d506
add esp, 4
pop edi
mov eax, esi
pop ebx
ret
pop edi
mov byte [esi + 0x228], bl
mov eax, esi
pop ebx
ret

Function at 0x449b40
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x19c
mov eax, dword [0x489348]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
mov eax, esi
je 0x449b81
mov dword [esi], 0
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.0045c77f
add esp, 0x19c
ret
mov cx, word [esp]
mov word [0x4a6730], cx
mov ecx, dword [esp + 0x194]
xor ecx, esp
mov dword [esi], 0xffffffff
call fcn.0045c77f
add esp, 0x19c
ret
Function at 0x449d30
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
sub esp, 8
cmp dword [esi + 4], 0
push edi
mov dword [esp + 8], 1
jl 0x449d76
push str.._vsocket.cpp_:_closing_socket_n
mov ecx, 0xa
mov eax, 0x48b3f0
call fcn.00401000
mov eax, dword [esi + 4]
add esp, 4
push 2
push eax
call dword [sym.imp.WSOCK32.dll_shutdown]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
push 0
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov dword [esi + 4], eax
test eax, eax
jge 0x449d90
xor eax, eax
pop edi
add esp, 8
ret
mov edi, dword [sym.imp.WSOCK32.dll_setsockopt]
push 4
lea edx, [esp + 0xc]
push edx
push 4
push 0xffff
push eax
call edi
test eax, eax
jne 0x449d89
mov ecx, dword [esi + 4]
push 4
lea eax, [esp + 0xc]
push eax
push 1
push 6
push ecx
call edi
neg eax
sbb eax, eax
neg eax
dec eax
pop edi
add esp, 8
ret

Function at 0x449e60
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x489348]
xor eax, esp
mov dword [esp + 0x14], eax
xor eax, eax
cmp dword [edi + 4], eax
jl 0x449ef9
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov eax, 2
push esi
mov word [esp + 8], ax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
jne 0x449ed1
push esi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x449eb6
mov eax, dword [eax + 0xc]
cmp dword [eax], 0
jne 0x449ec9
xor eax, eax
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0045c77f
add esp, 0x18
ret 4
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [esp + 8], edx
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.WSOCK32.dll_htons]
mov edx, dword [edi + 4]
push 0x10
lea ecx, [esp + 8]
push ecx
push edx
mov word [esp + 0x12], ax
call dword [sym.imp.WSOCK32.dll_connect]
neg eax
sbb eax, eax
neg eax
dec eax
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0045c77f
add esp, 0x18
ret 4
Function at 0x449f10
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x470c6b
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x489348]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 4]
mov dword [esp + 0x10], 1
test eax, eax
jge 0x449f5e
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 4
push 0
push 0
push eax
call dword [sym.imp.WSOCK32.dll_accept]
mov edi, eax
test edi, edi
jl 0x449f48
push 0x2394
call fcn.0045c88a
add esp, 4
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], 0
test eax, eax
je 0x449f9d
push eax
call fcn.00449bb0
mov esi, eax
test esi, esi
je 0x449f9f
mov dword [esi + 4], edi
jmp 0x449faf
xor esi, esi
push 2
push edi
call dword [sym.imp.WSOCK32.dll_shutdown]
push edi
call dword [sym.imp.WSOCK32.dll_closesocket]
mov edx, dword [esi + 4]
push 4
lea ecx, [esp + 0x14]
push ecx
push 1
push 6
push edx
call dword [sym.imp.WSOCK32.dll_setsockopt]
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 4

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

Disassembly:
sub esp, 0x18
mov eax, dword [0x489348]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
lea ecx, [esp]
push ecx
lea edx, [esp + 8]
push edx
push eax
mov dword [esp + 0xc], 0x10
call dword [sym.imp.WSOCK32.dll_getsockname]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
test eax, eax
jne 0x44a081
mov eax, str._unavailable_
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0045c77f
add esp, 0x18
ret 4

Function at 0x44a0a0
Capabilities:
Set socket configuration

Disassembly:
cmp byte [0x4a6730], 2
jae 0x44a0ae
xor eax, eax
ret 4
mov edx, dword [edi + 4]
mov eax, dword [esp + 4]
push esi
mov esi, dword [sym.imp.WSOCK32.dll_setsockopt]
push 4
lea ecx, [esp + 0xc]
push ecx
push 0x1006
push 0xffff
push edx
mov dword [esp + 0x1c], eax
call esi
cmp eax, 0xffffffff
jne 0x44a0df
xor eax, eax
pop esi
ret 4
mov ecx, dword [edi + 4]
push 4
lea eax, [esp + 0xc]
push eax
push 0x1005
push 0xffff
push ecx
call esi
inc eax
neg eax
sbb eax, eax
pop esi
ret 4