joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4147da
Capabilities:
Delete file

Disassembly:
push 0x20
mov eax, 0x46d811
call fcn.004492af
mov al, byte [0x49d082]
mov bl, byte [ebp + 8]
mov esi, dword [ebp + 0xc]
test al, al
je 0x414807
push esi
movzx eax, al
push str.deleteProgramsShortcut____S
push eax
call fcn.00410896
add esp, 0xc
xor eax, eax
xor edi, edi
push 1
test bl, bl
push edi
sete al
add eax, 3
push edi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040e1f3
add esp, 0x14
mov dword [ebp - 4], edi
cmp dword [ebp - 0x18], edi
je 0x414893
call fcn.00406f56
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040da7d
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push str._s_s.lnk
push eax
call fcn.00413a78
mov esi, dword [ebp - 0x2c]
push esi
call fcn.0040defa
add esp, 0x14
test al, al
je 0x41488b
mov al, byte [0x49d082]
test al, al
je 0x414884
push esi
movzx eax, al
push str.deleteProgramsShortcut____S
push eax
call fcn.00410896
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esi - 0x10]
call fcn.0040e07f
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.00408c9a
call fcn.00449259
ret
Function at 0x41bf9a
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x41bfca
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
add eax, 4
push eax
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x41bfca
cmp dword [ebp + 0xc], 0
setne al
mov byte [esi], al
mov al, 1
jmp 0x41bfcc
xor al, al
pop esi
pop ebp
ret 8
Function at 0x41d4ad
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x49d3d4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.0044d990
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41d507
cmp dword [ebp - 0x114], 6
jne 0x41d507
cmp dword [ebp - 0x110], 1
jne 0x41d507
mov al, 1
jmp 0x41d509
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449233
mov esp, ebp
pop ebp
ret

Function at 0x41d517
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x49d3d4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.0044d990
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41d571
cmp dword [ebp - 0x108], 2
jne 0x41d571
cmp dword [ebp - 0x114], 5
jne 0x41d571
mov al, 1
jmp 0x41d573
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449233
mov esp, ebp
pop ebp
ret

Function at 0x41d581
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46eb77
mov eax, dword fs:[0]
push eax
mov eax, 0x28a0
call fcn.004493a0
mov eax, dword [0x49d3d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x28ac]
mov dword [ebp - 0x28ac], 0x2880
push eax
lea eax, [ebp - 0x2890]
push eax
call sub.IPHLPAPI.DLL_GetAdaptersInfo
lea esi, [ebp - 0x2890]
cmp dword [esi + 0x1a0], 6
jne 0x41d683
movzx eax, byte [esi + 0x19b]
push eax
movzx eax, byte [esi + 0x19a]
push eax
movzx eax, byte [esi + 0x199]
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
lea eax, [ebp - 0x28a8]
push str._02x__02x__02x__02x__02x__02x__02x__02x
push eax
call fcn.0040ec8b
add esp, 0x28
mov dl, byte [0x49d082]
and dword [ebp - 4], 0
test dl, dl
je 0x41d670
cmp dword [ebp - 0x2894], 0x10
lea eax, [esi + 0x10c]
push eax
lea ecx, [ebp - 0x28a8]
movzx eax, dl
cmovae ecx, dword [ebp - 0x28a8]
push ecx
push str.MAC:__s_Name:__s
push eax
call fcn.00410896
add esp, 0x10
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28a8]
push 0
push 1
call fcn.00408c45
mov esi, dword [esi]
test esi, esi
jne 0x41d5d4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00449233
mov esp, ebp
pop ebp
ret
Function at 0x41e7d5
Capabilities:
Get geographical location

Disassembly:
push 0x364
mov eax, 0x46ee78
call fcn.004492af
mov edi, ecx
push 0x10
call dword [sym.imp.KERNEL32.dll_GetUserGeoID]
mov esi, eax
mov ebx, 0x100
cmp esi, 0xffffffff
je 0x41e80d
push 0
push ebx
lea eax, [ebp - 0x310]
push eax
push 4
push esi
call dword [sym.imp.KERNEL32.dll_GetGeoInfoW]
push ebx
lea eax, [ebp - 0x310]
push eax
push ebx
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x35c]
push eax
call fcn.00454b53
add esp, 0x14
lea ecx, [ebp - 0x370]
call fcn.0043766b
push dword [0x4f103c]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x370]
call fcn.00437a78
lea eax, [ebp - 0x340]
push eax
lea ecx, [ebp - 0x370]
call fcn.004376a6
xor ebx, ebx
lea eax, [ebp - 0x110]
inc ebx
mov ecx, 0x473b64
cmp esi, 0xffffffff
mov byte [ebp - 4], bl
cmove eax, ecx
lea ecx, [ebp - 0x328]
push eax
call fcn.00403984
lea eax, [ebp - 0x328]
mov byte [ebp - 4], 2
push eax
call fcn.0043e485
pop ecx
xor esi, esi
mov byte [ebp - 4], bl
push esi
push ebx
lea ecx, [ebp - 0x328]
call fcn.00408c45
lea eax, [ebp - 0x340]
push eax
call fcn.0043e441
mov eax, dword [edi]
pop ecx
lea ecx, [ebp - 0x358]
push ecx
mov ecx, edi
call dword [eax + 0x90]
push eax
lea eax, [ebp - 0x328]
mov byte [ebp - 4], 3
push eax
call fcn.0040eb50
push eax
mov byte [ebp - 4], 4
call fcn.0043e4c9
add esp, 0xc
lea ecx, [ebp - 0x328]
push esi
push ebx
call fcn.00408c45
push esi
push ebx
lea ecx, [ebp - 0x358]
call fcn.00408c9a
push esi
push ebx
lea ecx, [ebp - 0x340]
call fcn.00408c45
lea ecx, [ebp - 0x370]
call fcn.004376a1
call fcn.00449259
ret
Function at 0x41e951
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46eeab
mov eax, dword fs:[0]
push eax
mov eax, 0x1064
call fcn.004493a0
mov eax, dword [0x49d3d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x102c], eax
mov al, byte [0x49d082]
test al, al
je 0x41e9ae
push ebx
push edi
movzx eax, al
push str.Bootstrapper::CreateProcess_module___S__args___S
push eax
call fcn.00410896
add esp, 0x10
push 0x40
lea eax, [ebp - 0x106c]
push 0
push eax
call fcn.0044d990
push 0x1000
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x1070], 0x44
push 0
push eax
call fcn.0044d990
add esp, 0x18
lea eax, [ebp - 0x1010]
cmp word [edi], 0x22
mov esi, 0x800
je 0x41ea20
push 0x47987c
push esi
push eax
call fcn.00454763
push edi
lea eax, [ebp - 0x1010]
push esi
push eax
call fcn.004546ee
push 0x47987c
lea eax, [ebp - 0x1010]
push esi
push eax
call fcn.004546ee
add esp, 0x24
jmp 0x41ea2b
push edi
push esi
push eax
call fcn.00454763
add esp, 0xc
push 0x475588
lea eax, [ebp - 0x1010]
push esi
push eax
call fcn.004546ee
push ebx
lea eax, [ebp - 0x1010]
push esi
push eax
call fcn.004546ee
push edi
lea eax, [ebp - 0x1028]
push str.CreateProcess__S_failed
push eax
call fcn.0040ec8b
add esp, 0x24
push eax
push dword [ebp - 0x102c]
xor ebx, ebx
lea eax, [ebp - 0x1070]
push eax
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
lea eax, [ebp - 0x1010]
mov dword [ebp - 4], ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push eax
call fcn.0041564b
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x1028]
call fcn.00408c45
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00449233
mov esp, ebp
pop ebp
ret 0xc
Function at 0x420a6c
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x49d3d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea ecx, [ebp - 0x1c]
push edi
push ecx
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x60]
cmp dword [eax + 0x14], 8
jb 0x420a93
mov eax, dword [eax]
xor edi, edi
lea ecx, [ebp - 0x24]
push edi
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push edi
push 1
lea ecx, [ebp - 0x1c]
call fcn.00408c9a
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
call fcn.004496e0
movsd xmm1, qword [0x47d8c0]
comisd xmm1, xmm0
ja 0x420ad6
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00449233
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x14c]
push edi
push str.There_is_not_enough_room_on_your_disk_to_install_Roblox._Please_free_up_some_space_and_try_again.
mov eax, dword [ecx]
call dword [eax + 0x1c]
push str.InstallerError
lea ecx, [ebp - 0x14]
call fcn.004043f7
push 0x497b54
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], vtable.installer_error_exception.0
push eax
mov dword [ebp - 8], 5
call fcn.0044b7c4
int3

Function at 0x421401
Capabilities:
Create directory

Disassembly:
push 0x1c
mov eax, 0x472003
call fcn.004492af
mov esi, dword [ebp + 8]
xor edi, edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x421452
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x421452
push esi
lea eax, [ebp - 0x28]
push str.CreateDirectory__S_failed
push eax
call fcn.0040ec8b
push eax
push edi
mov dword [ebp - 4], edi
call fcn.0041564b
add esp, 0x14
lea ecx, [ebp - 0x28]
push edi
push 1
call fcn.00408c45
call fcn.00449259
ret
Function at 0x422925
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x690
mov eax, 0x46f3c6
call fcn.004492af
mov esi, ecx
mov al, byte [0x49d082]
xor ecx, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x680], ecx
test al, al
je 0x422962
push str.Bootstrapper::fetchInstalledEnvironments
movzx eax, al
push 0x475418
push eax
call fcn.00410975
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x668], ecx
mov dword [ebp - 0x664], ecx
mov dword [ebp - 0x660], ecx
mov al, byte [esi + 0x4d]
xor ebx, ebx
test al, al
mov dword [ebp - 4], ecx
mov dword [ebp - 0x678], ecx
sete bl
mov dword [ebp - 0x674], ecx
add ebx, 0x80000001
mov dword [ebp - 0x67c], ebx
lea eax, [ebp - 0x630]
mov byte [ebp - 4], 1
push eax
call fcn.00414960
xor esi, esi
mov dword [ebp - 0x65c], esi
mov dword [ebp - 0x658], esi
mov dword [ebp - 0x654], esi
cmp dword [ebp - 0x61c], 8
lea eax, [ebp - 0x630]
mov dword [esp], 0x20019
lea ecx, [ebp - 0x65c]
cmovae eax, dword [ebp - 0x630]
push eax
push ebx
mov byte [ebp - 4], 3
call fcn.00407323
test eax, eax
je 0x422a2b
mov al, byte [0x49d082]
test al, al
je 0x422a0c
push str.Bootstrapper::fetchInstalledEnvironments___failed_to_find_installations_key
movzx eax, al
push 0x475418
push eax
call fcn.00410975
add esp, 0xc
lea eax, [ebp - 0x668]
mov ecx, edi
push eax
call fcn.00419c2f
lea ecx, [ebp - 0x65c]
call fcn.00405901
push esi
jmp 0x422b78
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.0044d990
add esp, 0xc
mov dword [ebp - 0x670], 0x104
lea eax, [ebp - 0x69c]
mov dword [ebp - 0x66c], ebx
mov dword [ebp - 0x650], 0x200
push eax
lea eax, [ebp - 0x684]
push eax
lea eax, [ebp - 0x688]
push eax
lea eax, [ebp - 0x68c]
push eax
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0x690]
push eax
lea eax, [ebp - 0x694]
push eax
lea eax, [ebp - 0x66c]
push eax
push ebx
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x65c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [ebp - 0x64c]
test eax, eax
je 0x422b5e
mov cl, byte [0x49d082]
test cl, cl
je 0x422adf
push eax
movzx eax, cl
push str.Bootstrapper::fetchInstalledEnvironments____of_installed_environments___d
push eax
call fcn.00410896
mov eax, dword [ebp - 0x64c]
add esp, 0xc
mov esi, ebx
test eax, eax
je 0x422b5e
push ebx
push ebx
push ebx
xor eax, eax
mov dword [ebp - 0x650], 0x200
push ebx
mov word [ebp - 0x618], ax
lea eax, [ebp - 0x650]
push eax
lea eax, [ebp - 0x618]
push eax
push esi
push dword [ebp - 0x65c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x422b55
lea eax, [ebp - 0x618]
push eax
lea ecx, [ebp - 0x648]
call fcn.00403a00
lea eax, [ebp - 0x648]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x668]
call fcn.0040ed56
push ebx
push 1
lea ecx, [ebp - 0x648]
mov byte [ebp - 4], 3
call fcn.00408c9a
inc esi
cmp esi, dword [ebp - 0x64c]
jb 0x422ae5
lea eax, [ebp - 0x668]
mov ecx, edi
push eax
call fcn.00419c2f
lea ecx, [ebp - 0x65c]
call fcn.00405901
push ebx
push 1
lea ecx, [ebp - 0x630]
call fcn.00408c9a
lea ecx, [ebp - 0x67c]
call fcn.00405901
lea ecx, [ebp - 0x668]
call fcn.0040ea7d
mov eax, edi
call fcn.00449259
ret 4
Function at 0x422f5e
Capabilities:
Delete file

Disassembly:
push 0x68
mov eax, 0x46f4bd
call fcn.004492af
mov esi, ecx
xor ebx, ebx
xor edi, edi
inc ebx
cmp byte [0x4f0ac0], 0
jne 0x422fd8
mov al, byte [0x49d082]
test al, al
je 0x422f99
push str.Bootstrapper::forceMFCStudioCleanup___deleteCurVersionKeys
movzx eax, al
push 0x475418
push eax
call fcn.00410975
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
call fcn.00414cea
pop ecx
mov ecx, eax
cmp dword [ecx + 0x14], 8
mov dword [ebp - 4], edi
jb 0x422fb0
mov ecx, dword [ecx]
mov al, byte [esi + 0x4d]
push edi
mov byte [ebp - 0x74], al
push ecx
push dword [ebp - 0x74]
call fcn.004145ee
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
add esp, 0xc
push edi
push ebx
call fcn.00408c9a
mov ecx, esi
call fcn.004218a1
mov al, byte [esi + 0x4d]
mov ecx, esi
mov byte [ebp - 0x74], al
lea eax, [ebp - 0x58]
push dword [ebp - 0x74]
push eax
call fcn.004200dc
push str.RobloxStudioLauncher.exe
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], ebx
call fcn.00403a00
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00416553
add esp, 0xc
mov cl, byte [0x49d082]
mov byte [ebp - 4], 3
test cl, cl
je 0x42303f
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
movzx eax, cl
push str.Bootstrapper::forceMFCStudioCleanup___deleting_studio_stub:__S
push eax
call fcn.00410896
add esp, 0xc
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0040defa
pop ecx
test al, al
je 0x423067
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
push ebx
lea ecx, [ebp - 0x28]
call fcn.00408c9a
push edi
push ebx
lea ecx, [ebp - 0x40]
call fcn.00408c9a
push edi
push ebx
lea ecx, [ebp - 0x58]
call fcn.00408c9a
call fcn.00449259
ret
Function at 0x424abc
Capabilities:
Read file via mapping

Disassembly:
push 4
mov eax, 0x46f830
call fcn.0044927b
mov esi, ecx
push 0x800
xor edi, edi
push edi
push edi
push 0xf001f
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x424b31
cmp byte [0x49d082], al
je 0x424b1b
lea eax, [ebp - 0x10]
push eax
call fcn.00413b46
push dword [eax]
movzx eax, byte [0x49d082]
push str.Could_not_map_view_of_file:__S
push eax
mov dword [ebp - 4], edi
call fcn.00410896
mov ecx, dword [ebp - 0x10]
add esp, 0x10
lea ecx, [ecx - 0x10]
call fcn.0040e07f
cmp dword [esi + 0x34], 0
je 0x424b2d
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x34], edi
mov al, 1
jmp 0x424b46
mov esi, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
call sub.KERNEL32.dll_GetCurrentProcessId
xor ecx, ecx
cmp esi, eax
sete al
call fcn.00449244
ret
Function at 0x42abcd
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp byte [0x4f0acc], 0
je 0x42ac11
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x42abeb
mov eax, dword [eax]
push ebx
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
je 0x42ac03
xor ebx, ebx
inc ebx
cmp dword [ebp - 4], ebx
je 0x42ac05
xor bl, bl
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test bl, bl
pop ebx
je 0x42ac15
mov esp, ebp
pop ebp
ret
push str.Invalid_protocol_handler_arguments
lea ecx, [ebp - 0x10]
call fcn.004043f7
push 0x4938d0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], vtable.std::runtime_error.0
push eax
call fcn.0044b7c4
int3
Function at 0x4311ab
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp edi, 0xffffffff
je 0x43128e
cmp byte [ebp + 0x10], 0
je 0x4311fa
mov esi, dword [ebp + 0xc]
test byte [esi], 8
je 0x4311fa
xor eax, eax
mov dword [ebp + 8], eax
call fcn.0040da2e
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp + 8]
push eax
push 0x80
push 0xffff
push esi
push edi
call fcn.0043686b
add esp, 0x1c
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
push eax
call fcn.0042d970
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x43128e
call fcn.0040da2e
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push ebx
mov dword [ebp - 8], 0x2733
call fcn.0040d1bd
pop ecx
pop ecx
test al, al
jne 0x431256
call fcn.0040da2e
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push ebx
mov dword [ebp - 8], 0x4d5
call fcn.0040d1bd
pop ecx
pop ecx
test al, al
je 0x43128a
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp + 0xc]
push 0
and byte [eax], 0xfc
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
push eax
call fcn.0042d970
pop ecx
pop ecx
mov esi, eax
test esi, esi
jne 0x431299
call fcn.0040da2e
and dword [ebx], 0
mov dword [ebx + 4], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43144b
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0xffffffff
jne 0x43146a
call fcn.0040da2e
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 4], eax
or eax, 0xffffffff
mov dword [ecx], 0x2719
pop ebp
ret
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_connect]
mov edi, dword [ebp + 0x14]
push edi
push eax
call fcn.0042d970
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x43149f
call fcn.0040da2e
and dword [edi], esi
mov dword [edi + 4], eax
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x435a82
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
push 0xffffffffffffffff
push 0
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 eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00437074
push 0
push dword [esi + 4]
test al, al
je 0x435ac5
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x435adb
push method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_56
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x435c8f
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x49d3d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
cmp edi, 0xffffffff
jne 0x435cc1
call fcn.0040da2e
mov dword [esi + 4], eax
or eax, edi
mov dword [esi], 0x2719
jmp 0x435d1c
push ebx
xor eax, eax
mov dword [ebp - 0x208], edi
inc eax
mov dword [ebp - 0x104], edi
xor ebx, ebx
mov dword [ebp - 0x20c], eax
push ebx
mov dword [ebp - 0x108], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push esi
push ebx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
push eax
call fcn.0042d970
mov edi, eax
pop ecx
pop ecx
test edi, edi
js 0x435d19
call fcn.0040da2e
mov dword [esi], ebx
mov dword [esi + 4], eax
mov eax, edi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00449233
mov esp, ebp
pop ebp
ret

Function at 0x435d2c
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x49d3d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov bl, byte [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
cmp edi, 0xffffffff
jne 0x435d65
call fcn.0040da2e
mov dword [esi + 4], eax
or eax, edi
mov dword [esi], 0x2719
jmp 0x435e0d
xor eax, eax
mov dword [ebp - 0x104], edi
push eax
mov dword [ebp - 0x108], 1
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push esi
push 0
pop ecx
and bl, 1
lea eax, [ebp - 0x110]
cmove eax, ecx
push eax
push ecx
push ecx
lea eax, [ebp - 0x108]
push eax
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
push eax
call fcn.0042d970
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x435dfe
test bl, bl
je 0x435ddd
call fcn.0040da2e
mov dword [ebp - 0x110], 0x2733
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x10c], eax
jmp 0x435df5
and dword [ebp - 0x118], 0
call fcn.0040da2e
mov dword [ebp - 0x114], eax
lea ecx, [ebp - 0x118]
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
jmp 0x435e08
jle 0x435e0b
call fcn.0040da2e
and dword [esi], 0
mov dword [esi + 4], eax
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00449233
mov esp, ebp
pop ebp
ret
Function at 0x435e1e
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x49d3d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov bl, byte [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
cmp edi, 0xffffffff
jne 0x435e57
call fcn.0040da2e
mov dword [esi + 4], eax
or eax, edi
mov dword [esi], 0x2719
jmp 0x435eff
xor eax, eax
mov dword [ebp - 0x104], edi
push eax
mov dword [ebp - 0x108], 1
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push esi
push 0
pop ecx
and bl, 1
lea eax, [ebp - 0x110]
cmove eax, ecx
push eax
push ecx
lea eax, [ebp - 0x108]
push eax
push ecx
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
push eax
call fcn.0042d970
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x435ef0
test bl, bl
je 0x435ecf
call fcn.0040da2e
mov dword [ebp - 0x110], 0x2733
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x10c], eax
jmp 0x435ee7
and dword [ebp - 0x118], 0
call fcn.0040da2e
mov dword [ebp - 0x114], eax
lea ecx, [ebp - 0x118]
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
jmp 0x435efa
jle 0x435efd
call fcn.0040da2e
and dword [esi], 0
mov dword [esi + 4], eax
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00449233
mov esp, ebp
pop ebp
ret

Function at 0x43686b
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push edi
or edi, 0xffffffff
cmp dword [ebp + 8], edi
jne 0x43688f
call fcn.0040da2e
mov ecx, dword [ebp + 0x20]
mov dword [ecx + 4], eax
mov eax, edi
mov dword [ecx], 0x2719
jmp 0x436935
cmp dword [ebp + 0x10], 0xa5100000
push esi
mov esi, dword [ebp + 0x14]
jne 0x4368e4
cmp esi, 2
jne 0x4368b4
call fcn.0040da2e
mov ecx, dword [ebp + 0x20]
mov dword [ecx], 0x2726
mov dword [ecx + 4], eax
jmp 0x436932
cmp esi, 1
jne 0x4368fb
cmp dword [ebp + 0x1c], 4
jne 0x4368a1
mov eax, dword [ebp + 0x18]
cmp dword [eax], 0
mov eax, dword [ebp + 0xc]
je 0x4368cf
or byte [eax], 4
jmp 0x4368d2
and byte [eax], 0xfb
call fcn.0040da2e
mov ecx, dword [ebp + 0x20]
and dword [ecx], 0
mov dword [ecx + 4], eax
xor eax, eax
jmp 0x436934
cmp dword [ebp + 0x10], 0xffff
jne 0x4368fb
cmp esi, 0x80
jne 0x4368fb
mov eax, dword [ebp + 0xc]
or byte [eax], 8
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, dword [ebp + 0x20]
push esi
push eax
call fcn.0042d970
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x436932
call fcn.0040da2e
and dword [esi], edi
mov dword [esi + 4], eax
mov eax, edi
pop esi
pop edi
pop ebp
ret