joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001b000
Capabilities:
Enumerate threads

Disassembly:
sub esp, 0x1c
push esi
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x1001b01d
xor eax, eax
pop esi
add esp, 0x1c
ret 4
lea eax, [esp + 4]
mov dword [esp + 4], 0x1c
push eax
push esi
call sub.KERNEL32.dll_Thread32First
test eax, eax
jne 0x1001b044
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
add esp, 0x1c
ret 4
lea ecx, [esp + 4]
push ecx
push esi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1001b044
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
add esp, 0x1c
ret 4

Function at 0x1001b940
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10036858
push eax
mov dword fs:[0], esp
sub esp, 0xc
lea ecx, [esp + 4]
push esi
push edi
push 0x1005a050
call fcn.10032dca
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x10]
mov edi, dword [esp + 0x24]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1001b9c7
mov edx, dword [esp + 0x30]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [esp + 0x34]
push 1
push eax
mov eax, dword [esp + 0x18]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1001b9c0
mov ecx, dword [esp + 8]
push ecx
jmp 0x1001ba0a
mov edx, dword [esp + 8]
push edx
jmp 0x1001ba3b
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001ba41
mov edx, dword [esp + 0x30]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x10]
push 1
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1001ba36
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 0x10
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
pop edi
or eax, 0xffffffff
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 0x10
Function at 0x1001ba70
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x10036895
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x414
push ebp
push esi
push edi
mov ebp, 1
push 0x1005a050
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], ebp
call fcn.10032dca
mov ecx, dword [esp + 0x438]
mov edx, dword [esp + 0x434]
lea eax, [esp + 0x10]
mov dword [esp + 0x428], ebp
push eax
push 0xf003f
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001bb50
mov esi, dword [esp + 0x43c]
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push 0
push ecx
push 0
push esi
push edx
call edi
test eax, eax
jne 0x1001bb45
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push esi
push eax
call edi
test eax, eax
jne 0x1001bb45
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator_2
mov esi, dword [esp + 0x430]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x18], ebp
jmp 0x1001bb67
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x430]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x18], ebp
lea ecx, [esp + 0xc]
mov byte [esp + 0x428], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x420]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x420
ret 0x10

Function at 0x1001bba0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
mov dword [esp + 4], 4
push eax
push 0xf003f
push 0
push ecx
push edx
mov dword [esp + 0x14], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001bc18
lea eax, [esp + 0xc]
lea ecx, [esp]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001bc0d
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
add esp, 8
ret 0xc
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
add esp, 8
ret 0xc
Function at 0x1001bc30
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100368a8
push eax
mov dword fs:[0], esp
sub esp, 8
lea ecx, [esp + 4]
push 0x1005a050
call fcn.10032dca
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea eax, [esp]
push eax
push 0xf003f
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001bccf
mov ecx, dword [esp + 0x20]
mov edx, dword [esp]
lea eax, [esp + 0x24]
push 4
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1001bcc4
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
or eax, 0xffffffff
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10
Function at 0x1001cd30
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
mov edx, 1
cmp dword [esi + 0x1c], edx
jle 0x1001ce3b
push ebx
push edi
lea eax, [esi + 0x32]
xor ebx, ebx
xor ecx, ecx
mov bl, byte [eax - 1]
mov cl, byte [eax + 1]
add eax, 0x10
mov edi, dword [ebx*4 + 0x10057ba0]
mov ecx, dword [ecx*4 + 0x100583a0]
xor ebx, ebx
xor ecx, edi
mov bl, byte [eax - 0x10]
mov edi, dword [ebx*4 + 0x10057fa0]
xor ebx, ebx
mov bl, byte [eax - 0x12]
xor ecx, edi
mov edi, dword [ebx*4 + 0x100577a0]
xor ebx, ebx
xor ecx, edi
mov dword [eax - 0x12], ecx
mov bl, byte [eax - 0xc]
xor ecx, ecx
mov cl, byte [eax - 0xb]
mov edi, dword [ebx*4 + 0x10057fa0]
xor ebx, ebx
mov ecx, dword [ecx*4 + 0x100583a0]
mov bl, byte [eax - 0xd]
xor ecx, edi
mov edi, dword [ebx*4 + 0x10057ba0]
xor ebx, ebx
mov bl, byte [eax - 0xe]
xor ecx, edi
mov edi, dword [ebx*4 + 0x100577a0]
xor ebx, ebx
xor ecx, edi
mov dword [eax - 0xe], ecx
mov bl, byte [eax - 8]
xor ecx, ecx
mov cl, byte [eax - 7]
mov edi, dword [ebx*4 + 0x10057fa0]
xor ebx, ebx
mov ecx, dword [ecx*4 + 0x100583a0]
mov bl, byte [eax - 9]
xor ecx, edi
mov edi, dword [ebx*4 + 0x10057ba0]
xor ebx, ebx
mov bl, byte [eax - 0xa]
xor ecx, edi
mov edi, dword [ebx*4 + 0x100577a0]
xor ebx, ebx
xor ecx, edi
mov dword [eax - 0xa], ecx
mov bl, byte [eax - 4]
xor ecx, ecx
mov cl, byte [eax - 3]
mov edi, dword [ebx*4 + 0x10057fa0]
xor ebx, ebx
mov ecx, dword [ecx*4 + 0x100583a0]
mov bl, byte [eax - 5]
xor ecx, edi
mov edi, dword [ebx*4 + 0x10057ba0]
xor ebx, ebx
mov bl, byte [eax - 6]
xor ecx, edi
mov edi, dword [ebx*4 + 0x100577a0]
xor ecx, edi
inc edx
mov dword [eax - 6], ecx
mov ecx, dword [esi + 0x1c]
cmp edx, ecx
jl 0x1001cd46
pop edi
pop ebx
pop esi
ret
Function at 0x1001d910
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x24
push esi
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
test esi, esi
je 0x1001d949
push edi
mov edi, dword [esp + 0x30]
push edi
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
push edi
push 0x1001d860
push esi
call dword [sym.imp.USER32.dll_EnumChildWindows]
pop edi
pop esi
add esp, 0x24
ret 4
lea eax, [esp + 4]
mov dword [esp + 4], 0x24
push eax
push 5
call dword [sym.imp.SHELL32.dll_SHAppBarMessage]
test eax, eax
je 0x1001d9c2
mov eax, dword [esp + 0x10]
cmp eax, 3
ja case.default.0x1001d96b
jmp dword [eax*4 + 0x1001d9f0]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
pop esi
lea edx, [ecx - 0x64]
add ecx, 0xfffffff0
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov dword [eax + 8], edx
add esp, 0x24
ret 4
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
pop esi
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 0xc], edx
lea edx, [ecx - 0x64]
add ecx, 0xfffffff0
mov dword [eax], edx
mov dword [eax + 8], ecx
add esp, 0x24
ret 4
mov esi, dword [esp + 0x2c]
push 0
push esi
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
sub eax, 0x96
sub ecx, 0x1e
mov dword [esi], eax
mov dword [esi + 4], ecx
pop esi
add esp, 0x24
ret 4
Function at 0x1001e580
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10036b17
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 1
call sym.EoRezoTools_3.dll_public:_void___thiscall_CBase64::constructor_void_
push 0x1005a050
lea ecx, [esp + 0x14]
call fcn.10032dca
lea eax, [esp + 8]
lea ecx, [esp + 0x2c]
push eax
push ebx
mov byte [esp + 0x28], 2
mov dword [esp + 0x10], ebx
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea ecx, [esp + 0x14]
call sym.EoRezoTools_3.dll_public:_unsigned_int___thiscall_CBase64::CreateMatchingDecodingBuffer_char___char___
mov ecx, dword [esp + 8]
push ecx
push ebx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea ecx, [esp + 0x14]
call sym.EoRezoTools_3.dll_public:_unsigned_long_int___thiscall_CBase64::DecodeBuffer_char_const___char__
push 0xffffffffffffffff
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov edx, dword [esp + 8]
push edx
call sub.MFC42.DLL_operatordelete
mov esi, dword [esp + 0x2c]
add esp, 4
lea eax, [esp + 0x10]
mov ecx, esi
push eax
mov dword [esp + 0xc], ebx
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x14], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8

Function at 0x1001e660
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10036b5f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
xor esi, esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x14], esi
call sub.MFC42.DLL_CString::CString_2
mov ebx, 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], ebx
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::Empty
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Empty
mov ebp, dword [esp + 0x30]
cmp ebp, esi
jle 0x1001e725
push edi
mov edi, dword [esp + 0x30]
movsx eax, byte [esi + edi]
push eax
lea ecx, [esp + 0x14]
push 0x100588dc
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
add esp, 0xc
cmp dword [edx - 8], ebx
jne 0x1001e711
lea eax, [esp + 0x10]
lea ecx, [esp + 0x34]
push eax
push 0x100547f8
push ecx
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x34]
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x10]
lea ecx, [esp + 0x14]
push edx
call fcn.100330ac
inc esi
cmp esi, ebp
jl 0x1001e6c0
pop edi
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc
Function at 0x1001eb90
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10036bb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a4
push ebx
push esi
push edi
lea eax, [ebp - 0x1b0]
mov dword [ebp - 0x10], esp
mov esi, ecx
xor edi, edi
push eax
push 2
mov dword [esi], sym.EoRezoTools_3.dll_const_Socket::vftable
mov dword [ebp - 4], edi
call sub.WSOCK32.dll_WSAStartup
cmp eax, edi
je 0x1001ebe9
call sub.WSOCK32.dll_WSAGetLastError
lea ecx, [ebp - 0x18]
push 0x10040ca8
push ecx
mov dword [ebp - 0x18], eax
call sub.MSVCRT.dll__CxxThrowException
mov ax, word [ebp - 0x1b0]
cmp al, 2
jne 0x1001ec2a
xor edx, edx
mov dl, ah
cmp dl, al
jne 0x1001ec2a
push edi
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
mov ecx, dword [ebp - 0xc]
add esp, 8
mov dword [esi + 4], edi
mov dword [esi + 8], 0xa
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10033832
lea eax, [ebp - 0x1c]
push 0x10040c98
push eax
mov dword [ebp - 0x1c], 0x276c
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0x14]
push 0x10040ca8
push edx
mov dword [ebp - 0x14], ecx
call sub.MSVCRT.dll__CxxThrowException
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1001ef80
Capabilities:
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x10036be9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov ebx, dword [esp + 0x24]
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
xor esi, esi
mov dword [esp + 0x18], 0
test ebx, ebx
je 0x1001efb2
mov eax, ebx
push eax
call sub.WSOCK32.dll_gethostbyname
mov edi, eax
test edi, edi
jne 0x1001efd6
call sub.WSOCK32.dll_WSAGetLastError
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push 0x10040ca8
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [edi + 0xc]
cmp dword [eax], 0
je 0x1001efe9
mov ecx, dword [eax + 4]
add eax, 4
inc esi
test ecx, ecx
jne 0x1001efde
call dword [sym.imp.MSVCRT.dll_rand]
cdq
idiv esi
mov ecx, dword [edi + 0xc]
test ebx, ebx
mov edx, dword [ecx + edx*4]
mov esi, dword [edx]
je 0x1001f01a
mov al, byte [ebx - 1]
test al, al
je 0x1001f010
cmp al, 0xff
je 0x1001f010
dec al
mov byte [ebx - 1], al
jmp 0x1001f01a
dec ebx
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10
Function at 0x1001f030
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10036c00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x148
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
mov ebx, 1
push edi
mov esi, ecx
push ebx
push 2
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], edi
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x1001f08a
call sub.WSOCK32.dll_WSAGetLastError
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push 0x10040ca8
push eax
call sub.MSVCRT.dll__CxxThrowException
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push ecx
push 0x8004667e
push eax
call sub.WSOCK32.dll_ioctlsocket
cmp eax, 0xffffffff
jne 0x1001f0b7
call sub.WSOCK32.dll_WSAGetLastError
lea edx, [ebp - 0x20]
push 0x10040ca8
push edx
mov dword [ebp - 0x20], eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp + 8]
push 0x50
mov word [ebp - 0x50], 2
mov dword [ebp - 0x4c], eax
call sub.WSOCK32.dll_htons
mov ecx, dword [esi + 8]
mov word [ebp - 0x4e], ax
mov eax, dword [esi + 4]
lea edx, [ebp - 0x50]
push 0x10
push edx
push eax
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x154], ebx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], edi
call sub.WSOCK32.dll_connect
mov edx, dword [esi + 4]
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x154]
push edi
push ecx
inc edx
push edi
push edx
call sub.WSOCK32.dll_select
cmp eax, 0xffffffff
jne 0x1001f124
call sub.WSOCK32.dll_WSAGetLastError
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push 0x10040ca8
push eax
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x14]
push ecx
push 0x8004667e
push edx
mov dword [ebp - 0x14], edi
call sub.WSOCK32.dll_ioctlsocket
cmp eax, 0xffffffff
jne 0x1001f154
call sub.WSOCK32.dll_WSAGetLastError
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push 0x10040ca8
push eax
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x154]
push ecx
push edx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x1001f1ba
call sub.WSOCK32.dll_WSAGetLastError
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push 0x10040ca8
push eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 4]
push edx
call sub.WSOCK32.dll_closesocket
mov eax, dword [ebp - 0x40]
cmp eax, 0x2734
jne 0x1001f1a9
lea eax, [ebp - 0x1c]
push 0x10040ca8
push eax
mov dword [ebp - 0x1c], 0x274c
call sub.MSVCRT.dll__CxxThrowException
lea ecx, [ebp - 0x24]
push 0x10040ca8
push ecx
mov dword [ebp - 0x24], eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1001f340
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x10036c39
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push esi
push edi
mov esi, ecx
mov ecx, dword [esi + 8]
mov eax, dword [esi + 4]
lea edx, [esp + 0xc]
mov dword [esp + 0xc], ecx
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
push 0
push ecx
inc eax
push 0
push eax
mov dword [esp + 0x134], 0
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], 0
call sub.WSOCK32.dll_select
cmp eax, 0xffffffff
jne 0x1001f3ba
call sub.WSOCK32.dll_WSAGetLastError
lea edx, [esp + 8]
push 0x10040ca8
push edx
mov dword [esp + 0x10], eax
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
push ecx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x1001f3e4
call sub.WSOCK32.dll_WSAGetLastError
lea edx, [esp + 8]
push 0x10040ca8
push edx
mov dword [esp + 0x10], eax
call sub.MSVCRT.dll__CxxThrowException
mov edi, dword [esp + 0x12c]
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
test edi, edi
je 0x1001f3f6
mov eax, edi
push ebp
mov ebp, dword [esp + 0x134]
push 0
push ebp
push eax
mov eax, dword [esi + 4]
push eax
call sub.WSOCK32.dll_send
cmp eax, ebp
pop ebp
jge 0x1001f427
lea ecx, [esp + 8]
push 0x10040c98
push ecx
mov dword [esp + 0x10], 0x2746
call sub.MSVCRT.dll__CxxThrowException
test edi, edi
je 0x1001f447
mov al, byte [edi - 1]
test al, al
je 0x1001f43d
cmp al, 0xff
je 0x1001f43d
dec al
mov byte [edi - 1], al
jmp 0x1001f447
dec edi
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x118]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x11c
ret 0x10
Function at 0x10020ba0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10036db8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
push edi
lea eax, [esp + 0x2c]
push 0x10058868
lea ecx, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x28], 1
call sub.MFC42.DLL_operator
mov edx, dword [esp + 8]
lea ecx, [esp + 0x30]
push edx
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::Find
mov edi, eax
cmp edi, 0xffffffff
je 0x10020cbc
lea eax, [edi + 1]
lea ecx, [esp + 0x30]
push eax
push 0x100548d8
call sub.MFC42.DLL_CString::Find_1
mov esi, eax
cmp esi, 0xffffffff
je 0x10020cbc
lea ecx, [esp + 0x10]
call sym.EoRezoTools_3.dll_public:_void___thiscall_CRegistry::constructor_void_
mov ecx, dword [esp + 8]
lea edx, [esp + 0xc]
mov byte [esp + 0x1c], 3
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x30]
sub esi, eax
add eax, edi
sub esi, edi
push esi
push eax
push edx
call sub.MFC42.DLL_CString::Mid
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], 4
call sym.EoRezoTools_3.dll_public:_unsigned_long_int___thiscall_CRegistry::SetStringKey_struct_HKEY_____char_const___char_const___char_const__
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 2
call sym.EoRezoTools_3.dll_public_virtual:_void___thiscall_CRegistry::destructor_void_
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 0x10
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 0x10