joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10043c10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ebx
lea eax, [esp + 4]
push eax
push ecx
push edx
mov dword [esp + 0x10], 0
call fcn.10043a10
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ebx, eax
test ebx, ebx
jne 0x10043d36
mov ecx, dword [esp + 0x20]
push esi
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push ebx
push eax
mov esi, 4
push ecx
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
test ebx, ebx
jne 0x10043d2a
cmp dword [esp + 0xc], esi
je 0x10043d2a
call dword [sym.imp.tier0_s.dll_IsInAssert]
test al, al
jne 0x10043d2a
push edi
mov edi, dword [sym.imp.tier0_s.dll_SetInAssert]
push 1
call edi
push 0x55
push str.._registry.cpp
push 2
call dword [sym.imp.tier0_s.dll__SpewInfo]
push str.Assertion_Failed:_REG_DWORD__dwType
push 0x1008d3bc
call dword [sym.imp.tier0_s.dll__SpewMessage]
add esp, 0x18
mov esi, eax
call dword [sym.imp.tier0_s.dll_CallFlushLogFunc]
call dword [sym.imp.tier0_s.dll_CallAssertFailedNotifyFunc]
test esi, esi
jne 0x10043cf3
call dword [sym.imp.tier0_s.dll_ShouldUseNewAssertDialog]
test al, al
je 0x10043cf3
push str.Assertion_Failed:_REG_DWORD__dwType
push 0x55
push str.._registry.cpp
call dword [sym.imp.tier0_s.dll_DoNewAssertDialog]
add esp, 0xc
test al, al
je 0x10043cf3
int3
mov al, byte [0x100b1852]
test al, al
jne 0x10043d22
call dword [sym.imp.tier0_s.dll_Plat_IsInDebugSession]
test al, al
jne 0x10043d22
push 0x55
push str.._registry.cpp
push str.Assertion_Failed:_REG_DWORD__dwType
call dword [sym.imp.tier0_s.dll_WriteMiniDump]
add esp, 0xc
mov byte [0x100b1852], 1
push 0
call edi
add esp, 4
pop edi
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
test ebx, ebx
sete al
pop ebx
add esp, 0xc
ret

Function at 0x10043d50
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push esi
lea eax, [esp + 4]
push eax
push ecx
push edx
mov dword [esp + 0x10], 0
call fcn.10043a10
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov esi, eax
test esi, esi
jne 0x10043da5
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0x1c]
push eax
push 4
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
pop ecx
ret
Function at 0x10043db0
Capabilities:
Delete registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push esi
lea eax, [esp + 4]
push eax
push ecx
push edx
mov dword [esp + 0x10], 0
call fcn.10043a10
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov esi, eax
test esi, esi
jne 0x10043dfb
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
pop ecx
ret

Function at 0x10043e10
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push esi
lea eax, [esp + 4]
push eax
push ecx
push edx
mov dword [esp + 0x10], 0
call fcn.10043a10
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov esi, eax
test esi, esi
jne 0x10043e74
mov edx, dword [esp + 0x18]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10043e47
mov ecx, dword [esp + 4]
sub eax, esi
inc eax
push eax
mov eax, dword [esp + 0x18]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
pop ecx
ret

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

Disassembly:
sub esp, 0x18
mov eax, dword [0x100af208]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
lea eax, [esp]
push eax
lea ecx, [esp + 8]
push ecx
push edx
mov dword [esp + 0xc], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x100460f7
mov eax, dword [esp + 8]
push esi
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov esi, dword [esp + 0x24]
push eax
mov ecx, esi
call fcn.10049d60
mov ecx, dword [esp + 0xa]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, esi
push eax
call fcn.10049da0
mov al, 1
pop esi
mov ecx, dword [esp + 0x14]
call fcn.10076182
add esp, 0x18
ret
mov ecx, dword [esp + 0x14]
xor al, al
call fcn.10076182
add esp, 0x18
ret
Function at 0x10049db0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x118
mov eax, dword [0x100af208]
push esi
mov esi, dword [esp + 0x120]
test esi, esi
push edi
mov edi, ecx
mov dword [esp + 0x11c], eax
mov dword [edi + 4], 0
mov word [edi], 0
mov dword [edi + 8], 3
jne 0x10049e99
call dword [sym.imp.tier0_s.dll_IsInAssert]
test al, al
jne 0x10049f8e
mov edi, dword [sym.imp.tier0_s.dll_SetInAssert]
push 1
call edi
push 0xe2
push str._steam3_rel_client_src_tier1_netadr.cpp
push 2
call dword [sym.imp.tier0_s.dll__SpewInfo]
push str.Assertion_Failed:_pch
push 0x1008d3bc
call dword [sym.imp.tier0_s.dll__SpewMessage]
add esp, 0x18
mov esi, eax
call dword [sym.imp.tier0_s.dll_CallFlushLogFunc]
call dword [sym.imp.tier0_s.dll_CallAssertFailedNotifyFunc]
test esi, esi
jne 0x10049e5e
call dword [sym.imp.tier0_s.dll_ShouldUseNewAssertDialog]
test al, al
je 0x10049e5e
push str.Assertion_Failed:_pch
push 0xe2
push str._steam3_rel_client_src_tier1_netadr.cpp
call dword [sym.imp.tier0_s.dll_DoNewAssertDialog]
add esp, 0xc
test al, al
je 0x10049e5e
int3
mov al, byte [0x100b1ab4]
test al, al
jne 0x10049e90
call dword [sym.imp.tier0_s.dll_Plat_IsInDebugSession]
test al, al
jne 0x10049e90
push 0xe2
push str._steam3_rel_client_src_tier1_netadr.cpp
push str.Assertion_Failed:_pch
call dword [sym.imp.tier0_s.dll_WriteMiniDump]
add esp, 0xc
mov byte [0x100b1ab4], 1
push 0
call edi
jmp 0x10049f8b
mov al, byte [esi]
cmp al, 0x30
jl 0x10049f2b
cmp al, 0x39
jg 0x10049f2b
push 0x2e
push esi
call fcn.10076b10
add esp, 8
test eax, eax
je 0x10049f2b
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
push str._d._d._d._d:_d
push esi
call fcn.10076bce
mov esi, eax
add esp, 0x1c
cmp esi, 4
jl 0x10049f03
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 8]
push edx
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
mov ecx, edi
call fcn.10049d30
cmp esi, 5
jne 0x10049f8e
mov ax, word [esp + 0x14]
mov word [edi], ax
pop edi
pop esi
mov ecx, dword [esp + 0x114]
call fcn.10076182
add esp, 0x118
ret 8
mov al, byte [esp + 0x128]
test al, al
je 0x10049f8e
push pe_nt_image_headers32
lea ecx, [esp + 0x20]
push esi
push ecx
call dword [sym.imp.vstdlib_s.dll_Q_strncpy]
lea edx, [esp + 0x28]
push 0x3a
push edx
call fcn.10076b10
mov esi, eax
add esp, 0x14
test esi, esi
je 0x10049f5f
mov byte [esi], 0
lea eax, [esp + 0x1c]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x10049f8e
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call sub.WS2_32.dll_ntohl
test esi, esi
mov dword [edi + 4], eax
je 0x10049f8e
inc esi
push esi
call fcn.100776ed
mov word [edi], ax
add esp, 4
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
call fcn.10076182
add esp, 0x118
ret 8
Function at 0x1004c080
Capabilities:
Read file on windows
Read pipe

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x14]
test ebp, ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
jbe 0x1004c0e2
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 8]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x1004c117
cmp ebp, dword [esp + 0xc]
jbe 0x1004c0e2
mov eax, dword [esi + 0x10]
push 0x3e8
push eax
call edi
mov al, byte [esi + 0x21]
test al, al
jne 0x1004c117
cmp dword [esp + 0xc], ebp
jb 0x1004c0a6
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 8]
push 0
lea ecx, [esp + 0x20]
push ecx
push ebp
push edx
push eax
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1004c117
mov eax, dword [esp + 0x1c]
pop edi
cmp eax, ebp
pop esi
sete al
pop ebp
add esp, 8
ret 8
pop edi
pop esi
xor al, al
pop ebp
add esp, 8
ret 8

Function at 0x1004c130
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x1004c142
xor al, al
pop esi
pop ecx
ret 8
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0xc]
push ecx
push 4
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x1c], 0
call edi
cmp dword [esp + 8], 4
je 0x1004c171
pop edi
xor al, al
pop esi
pop ecx
ret 8
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push 0
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push ecx
push edx
push eax
mov dword [esp + 0x1c], 0
call edi
mov ecx, dword [esp + 8]
cmp ecx, dword [esp + 0x10]
jne 0x1004c169
mov edx, dword [esi + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov al, 1
pop edi
mov byte [esi + 0x20], al
pop esi
pop ecx
ret 8

Function at 0x1004c360
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov al, byte [0x100c0458]
test al, al
mov eax, str...external_commonSourceInit.old
jne 0x1004c374
mov eax, str...external_commonSourceInit.dat
push esi
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1004c39a
xor eax, eax
pop esi
pop ecx
ret
push ebx
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov edi, eax
mov eax, dword [sym.imp.tier0_s.dll_g_pMemAlloc]
mov ecx, dword [eax]
mov edx, dword [ecx]
push 0x39f
push str..inoculator.cpp
push edi
call dword [edx]
push 0
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
mov dword [ecx], edi
pop edi
mov eax, ebx
pop ebx
pop esi
pop ecx
ret
Function at 0x1004c410
Capabilities:
Create pipe

Disassembly:
sub esp, 0x10
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
push eax
lea ecx, [esp + 8]
push ecx
push edi
mov dword [esp + 0x18], eax
push ebx
mov dword [esp + 0x14], 0xc
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x1004c44b
add esp, 0x10
ret
mov eax, dword [esp + 0x14]
test eax, eax
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jne 0x1004c48a
push 2
push 1
push 0
lea edx, [esp + 0x14]
push edx
call esi
push eax
mov eax, dword [ebx]
push eax
call esi
push eax
call ebp
test eax, eax
je 0x1004c4d6
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 8]
mov dword [ebx], edx
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x1004c4bb
push 2
push 1
push 0
lea eax, [esp + 0x14]
push eax
call esi
mov ecx, dword [edi]
push eax
push ecx
call esi
push eax
call ebp
test eax, eax
je 0x1004c4d6
mov edx, dword [edi]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
mov dword [edi], eax
push 0
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov edx, dword [esp + 0x24]
mov dword [edx], eax
jne 0x1004c4ee
mov eax, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [ebx]
push ecx
call esi
pop esi
xor eax, eax
pop ebp
add esp, 0x10
ret
pop esi
mov eax, 1
pop ebp
add esp, 0x10
ret

Function at 0x1004c500
Capabilities:
Delete file
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
test eax, eax
push edi
je 0x1004c28e
push str.Shutdown
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1004c27d
call eax
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x1c], 0
mov al, byte [esi + 0x428]
test al, al
lea edi, [esi + 0x428]
je 0x1004c2a8
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [edi], 0
mov eax, dword [esi + 0x18]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + 0x21], 1
je 0x1004c2eb
mov ecx, dword [esi + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esi + 0x18]
push 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1004c2e5
mov eax, dword [esi + 0x18]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x18]
push ecx
call edi
mov eax, dword [esi + 8]
test eax, eax
je 0x1004c2f5
push eax
call edi
mov eax, dword [esi + 0xc]
test eax, eax
je 0x1004c2ff
push eax
call edi
mov eax, dword [esi]
test eax, eax
je 0x1004c308
push eax
call edi
mov eax, dword [esi + 4]
test eax, eax
je 0x1004c312
push eax
call edi
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1004c31c
push eax
call edi
mov esi, dword [esi + 0x14]
test esi, esi
je 0x1004c326
push esi
call edi
pop edi
pop esi
ret
jmp 0x1004c260
Function at 0x1004c510
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
xor eax, eax
push edi
mov ecx, 0x11
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
push 0x1c
mov dword [esp + 0x18], eax
call fcn.1001c740
add esp, 4
test eax, eax
je 0x1004c55c
xor ecx, ecx
mov edx, eax
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov dword [edx + 0x14], ecx
mov dword [edx + 0x18], ecx
mov esi, eax
jmp 0x1004c55e
xor esi, esi
mov ecx, dword [esp + 8]
mov eax, esi
mov dword [eax], ecx
mov edx, dword [esp + 0xc]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x14]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x7c]
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x7c]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x78]
push eax
mov eax, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x78]
push 1
push edx
mov edx, dword [esp + 0x7c]
push eax
push ecx
push edx
mov byte [esi + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1004c5e2
mov eax, dword [esi]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x1004c5c7
push eax
call edi
mov eax, dword [esi + 4]
test eax, eax
je 0x1004c5d1
push eax
call edi
push esi
call fcn.1001c790
add esp, 4
pop edi
xor eax, eax
pop esi
add esp, 0x54
ret
mov ecx, dword [esp + 8]
mov eax, esi
mov dword [eax], ecx
mov edx, dword [esp + 0xc]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x14]
pop edi
mov dword [eax + 0xc], edx
pop esi
add esp, 0x54
ret
Function at 0x1004c780
Capabilities:
Create thread
Get common file path
Write file on windows

Disassembly:
sub esp, 0x128
mov eax, dword [0x100af208]
push ebp
push esi
mov dword [esp + 0x12c], eax
lea eax, [esp + 0x28]
push eax
push 0x104
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ebp, [esi + 0x428]
push ebp
push 0
push 0x100942e0
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x1004c7df
mov byte [ebp], al
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x124]
call fcn.10076182
add esp, 0x128
ret 8
push edi
push 0
push 0x2102
push 2
push 0
push 1
push 0x40000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1004c81e
pop edi
pop esi
mov byte [ebp], 0
xor al, al
pop ebp
mov ecx, dword [esp + 0x124]
call fcn.10076182
add esp, 0x128
ret 8
mov eax, dword [esp + 0x13c]
mov ecx, dword [esp + 0x138]
push ebx
push 0
lea edx, [esp + 0x2c]
push edx
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x24]
push edx
push 1
push 0
lea edi, [esp + 0x1c]
lea ebx, [esp + 0x2c]
call fcn.1004c410
add esp, 0xc
test eax, eax
jne 0x1004c868
xor al, al
jmp 0x1004c914
lea eax, [esp + 0x14]
push eax
push 0
push 1
lea edi, [esp + 0x28]
lea ebx, [esp + 0x24]
call fcn.1004c410
add esp, 0xc
test eax, eax
je 0x1004c861
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esi], eax
lea eax, [esp + 0x2c]
push eax
push ebx
push esi
push 0x1004c770
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0x20]
mov dword [esi + 0xc], edx
mov edx, dword [esp + 0x24]
push ebx
push ebx
mov dword [esi + 4], ecx
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edx
mov byte [esi + 0x20], bl
mov byte [esi + 0x21], bl
mov dword [esi + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 0x18], eax
je 0x1004c861
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi + 0x1c], eax
je 0x1004c861
push str.Startup2
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x1004c861
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push edi
push ecx
mov ecx, dword [esp + 0x20]
push edx
push ecx
call eax
add esp, 0x10
test al, al
setne al
mov ecx, dword [esp + 0x134]
pop ebx
pop edi
pop esi
pop ebp
call fcn.10076182
add esp, 0x128
ret 8
Function at 0x10053460
Capabilities:
Set socket configuration

Disassembly:
sub esp, 8
push ebp
mov ebp, ecx
call fcn.1005a5b0
mov ecx, dword [ebp + 0x14]
push 4
lea eax, [esp + 0xc]
push eax
push 1
push 6
push ecx
mov dword [esp + 0x1c], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x10053543
call dword [sym.imp.tier0_s.dll_IsInAssert]
test al, al
jne 0x10053543
push esi
push edi
mov edi, dword [sym.imp.tier0_s.dll_SetInAssert]
push 1
call edi
push 0x2ff
push str.._tcpconnection.cpp
push 2
call dword [sym.imp.tier0_s.dll__SpewInfo]
push str.Assertion_Failed:_0__iRet
push 0x1008d3bc
call dword [sym.imp.tier0_s.dll__SpewMessage]
add esp, 0x18
mov esi, eax
call dword [sym.imp.tier0_s.dll_CallFlushLogFunc]
call dword [sym.imp.tier0_s.dll_CallAssertFailedNotifyFunc]
test esi, esi
jne 0x10053508
call dword [sym.imp.tier0_s.dll_ShouldUseNewAssertDialog]
test al, al
je 0x10053508
push str.Assertion_Failed:_0__iRet
push 0x2ff
push str.._tcpconnection.cpp
call dword [sym.imp.tier0_s.dll_DoNewAssertDialog]
add esp, 0xc
test al, al
je 0x10053508
int3
mov al, byte [0x100c0850]
test al, al
jne 0x1005353a
call dword [sym.imp.tier0_s.dll_Plat_IsInDebugSession]
test al, al
jne 0x1005353a
push 0x2ff
push str.._tcpconnection.cpp
push str.Assertion_Failed:_0__iRet
call dword [sym.imp.tier0_s.dll_WriteMiniDump]
add esp, 0xc
mov byte [0x100c0850], 1
push 0
call edi
add esp, 4
pop edi
pop esi
lea edx, [esp + 7]
push edx
push 0
push 0
mov ecx, ebp
call fcn.100526b0
pop ebp
add esp, 8
ret
Function at 0x1005ae70
Capabilities:
Get socket status

Disassembly:
sub esp, 0x314
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x32c]
xor eax, eax
cmp edi, eax
je 0x1005ae89
mov byte [edi], al
mov ebp, dword [esp + 0x330]
cmp ebp, eax
je 0x1005ae98
mov byte [ebp], 0
mov ebx, dword [esp + 0x334]
cmp ebx, eax
je 0x1005aea6
mov byte [ebx], 0
mov esi, dword [esp + 0x328]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov eax, 1
mov dword [esp + 0x18], eax
mov dword [esp + 0x11c], eax
mov dword [esp + 0x220], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x224]
push ecx
lea edx, [esp + 0x124]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esi + 1]
push ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x134], esi
mov dword [esp + 0x238], esi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x1005af14
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x314
ret
test edi, edi
je 0x1005af2a
lea edx, [esp + 0x18]
push edx
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1005af2a
mov byte [edi], 1
test ebp, ebp
je 0x1005af44
lea eax, [esp + 0x11c]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1005af44
mov byte [ebp], 1
test ebx, ebx
je 0x1005af5d
lea ecx, [esp + 0x220]
push ecx
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1005af5d
mov byte [ebx], 1
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x314
ret
Function at 0x1005b240
Capabilities:
Get socket status

Disassembly:
sub esp, 0x314
push ebx
push esi
mov esi, dword [esp + 0x320]
mov eax, 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x218], eax
mov dword [esp + 0x114], eax
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x118]
push ecx
lea edx, [esp + 0x220]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esi + 1]
xor ebx, ebx
push ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x230], esi
mov dword [esp + 0x12c], esi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x1005b2bc
lea edx, [esp + 0x10]
push edx
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
mov al, 1
jne 0x1005b2be
mov al, bl
pop esi
pop ebx
add esp, 0x314
ret