joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47a120
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c4
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x98], 0x94
push esi
lea eax, [ebp - 0x98]
push eax
mov dword [ebx], vtable.VNC_OSVersion.0
mov byte [ebx + 0x10], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0xb], 0
mov dword [ebx + 6], 0
mov byte [ebx + 0xa], 0
mov word [ebx + 4], 0
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x1b0]
mov dword [ebp - 0x1b0], 0
push eax
push 0x101
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinPE
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
sete al
mov byte [ebx + 0x11], al
mov eax, dword [ebp - 0x88]
sub eax, 1
je 0x47a222
sub eax, 1
jne 0x47a226
mov eax, dword [ebp - 0x94]
cmp eax, 6
jne 0x47a1f5
mov eax, dword [ebp - 0x90]
cmp eax, 2
jb 0x47a1e1
mov byte [ebx + 6], 1
jmp 0x47a226
cmp eax, 1
jne 0x47a1eb
mov byte [ebx + 7], al
jmp 0x47a226
test eax, eax
jne 0x47a222
mov byte [ebx + 8], 1
jmp 0x47a226
cmp eax, 5
jne 0x47a222
mov eax, dword [ebp - 0x90]
cmp eax, 2
je 0x47a218
cmp eax, 1
je 0x47a218
test eax, eax
jne 0x47a222
mov byte [ebx + 0xa], 1
mov byte [ebx + 0xe], 1
jmp 0x47a226
mov byte [ebx + 9], 1
mov byte [ebx + 0xe], 1
jmp 0x47a226
mov byte [ebx + 0xd], 1
cmp byte [ebx + 0xe], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
sete al
cmp byte [ebx + 6], 0
mov byte [ebx + 0xf], al
je 0x47a2dc
push edi
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x47a28b
push str.RtlGetVersion
push eax
call esi
mov esi, eax
test esi, esi
je 0x47a28b
push 0x110
lea eax, [ebp - 0x1a8]
push 0
push eax
call fcn.0051a780
add esp, 0xc
mov dword [ebp - 0x1ac], 0x114
lea eax, [ebp - 0x1ac]
push eax
call esi
test eax, eax
je 0x47a2a1
push 0x114
lea eax, [ebp - 0x1ac]
push 0
push eax
call fcn.0051a780
add esp, 0xc
mov ecx, 0x45
lea edi, [ebp - 0x2c4]
lea esi, [ebp - 0x1ac]
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x2c0], 0xa
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
pop edi
jne 0x47a2dc
cmp dword [ebp - 0x2b8], 0x4a61
mov byte [ebx + 6], 0
mov byte [ebx + 4], 1
jb 0x47a2dc
mov byte [ebx + 5], 1
cmp dword [ebx + 0x14], 0
jne 0x47a30c
push 0x5a27cc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebx + 0x14], eax
test eax, eax
je 0x47a30c
push 0x5a27d8
push eax
call esi
push str.DwmEnableComposition
push dword [ebx + 0x14]
mov dword [ebx + 0x18], eax
call esi
mov dword [ebx + 0x1c], eax
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.00518799
mov esp, ebp
pop ebp
ret
Function at 0x47d3a0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x68
mov eax, dword [0x5b0008]
xor eax, esp
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], edi
cmp eax, dword [edi + 0xc]
je 0x47d56a
xorps xmm0, xmm0
push 0x7f0
push esi
movaps xmmword [esp + 0x28], xmm0
movaps xmmword [esp + 0x38], xmm0
movaps xmmword [esp + 0x48], xmm0
movaps xmmword [esp + 0x58], xmm0
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [esp + 0x18], eax
test eax, eax
je 0x47d56a
push 0x479
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [esp + 0x10], eax
test eax, eax
je 0x47d56a
cmp dword [ebp + 0xc], 0
jne 0x47d421
push dword [edi + 0x10]
jmp 0x47d424
push dword [edi + 0x14]
push 0
push 0xf7
push 0x800
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_GetWindowRect]
push esi
call dword [sym.imp.USER32.dll_GetTopWindow]
mov esi, eax
test esi, esi
je 0x47d4a0
mov edi, dword [ebp + 0xc]
nop dword [eax]
lea eax, [esp + 0x40]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
jne 0x47d48d
push edi
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
jne 0x47d460
mov edi, dword [esp + 0x1c]
cmp dword [ebp + 0xc], 0
mov esi, dword [esp + 0x14]
jne 0x47d530
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [edi], 0
jne 0x47d4e6
cmp dword [edi + 4], 0
jne 0x47d4e6
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x20]
mov dword [edi], eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
push 0
push dword [esp + 0x14]
mov dword [edi + 4], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x24]
push 6
push eax
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x28]
push eax
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0x5a2bd0
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov dword [edi + 0xc], 0
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00518799
mov esp, ebp
pop ebp
ret 8
push 6
push dword [edi + 4]
push dword [edi]
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push 0
push 0x402
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
push str.Hide
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov dword [edi + 0xc], 1
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
xor ecx, esp
call fcn.00518799
mov esp, ebp
pop ebp
ret 8
Function at 0x480da0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x2c8]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0xa8]
test eax, eax
je 0x480e47
push dword [eax + 0xe404]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x480e41
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x480e41
push ebx
mov ebx, dword [ebp + 8]
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x480de5
sub ecx, edx
lea eax, [ecx + 1]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x480e40
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
test edx, edx
je 0x480e40
mov ecx, ebx
lea eax, [ecx + 1]
mov dword [ebp + 8], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x480e18
sub ecx, dword [ebp + 8]
push ebx
lea eax, [ecx + 1]
push eax
push edx
call fcn.0051e70e
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
ret 4
Function at 0x482710
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x2f4], 0
je 0x482778
cmp byte [0x5b31af], 0
jne 0x482778
push str.vncServer::AutoConnectRetry_:_AutoConnectRetry__:_started_n
push 9
push 0x5b0d48
call fcn.0041ccb0
mov eax, dword [esi + 0x70]
add esp, 0xc
test eax, eax
je 0x48275a
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x482778
push dword [esi + 0x70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 4]
push eax
push 0
push dword [0x5bb8fc]
push 0x4826f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x70], eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x482780
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x2f4], 0
je 0x48297a
lea ebx, [edi + 0x300]
nop
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4827a5
sub ecx, edx
je 0x48297a
cmp byte [0x5b31af], al
jne 0x48297a
push str.vncServer::actualRetryThread_:_Attempting_AutoReconnect...._n
push 9
push 0x5b0d48
call fcn.0041ccb0
add esp, 0xc
push 0x23a4
call fcn.005187ac
add esp, 4
mov dword [esp + 0xc], eax
mov ecx, eax
call fcn.00483800
mov esi, eax
mov dword [edi + 0x84], esi
test esi, esi
je 0x4828fe
cmp dword [esi + 8], 0xffffffff
mov dword [esp + 0xc], 1
je 0x482854
push str.VSocket::Close_:_closing_socket_n
push 0xa
push 0x5b0d48
call fcn.0041ccb0
add esp, 0xc
push 2
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esi + 0x14]
mov dword [esi + 8], 0xffffffff
test ecx, ecx
je 0x482854
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x14], 0
mov dword [esi + 4], 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x482888
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x482888
mov ecx, esi
call fcn.00483cf0
push dword [edi + 0x2fc]
mov ecx, dword [edi + 0x84]
push ebx
call fcn.00483af0
test eax, eax
jne 0x48290d
push str.vncServer::actualRetryThread_:_connect_failed__waitin_5_sec_to_retry...._n
push 9
push 0x5b0d48
call fcn.0041ccb0
mov ecx, dword [edi + 0x84]
add esp, 0xc
test ecx, ecx
je 0x4828c2
mov eax, dword [ecx]
push 1
call dword [eax]
cmp dword [edi + 0x2f4], 0
mov dword [edi + 0x84], 0
je 0x48297a
mov eax, ebx
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4828e0
sub eax, edx
je 0x4828fe
cmp byte [0x5b31af], cl
jne 0x4828fe
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0x2f4], 0
jne 0x4827a0
jmp 0x48297a
lea esi, [edi + 0x3ff]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x482918
sub ecx, edx
je 0x48294d
mov ecx, dword [edi + 0x84]
push 0xfa
push esi
call fcn.00483ee0
mov ecx, dword [edi + 0x84]
push 0
call fcn.00483dc0
push 1
push dword [edi + 0x2fc]
push ebx
push esi
jmp 0x482958
push 1
push dword [edi + 0x2fc]
push ebx
push 0
mov eax, dword [0x5bdff0]
xor ecx, ecx
mov edx, dword [edi]
push 0
push ecx
cmp dword [eax + 0xa64], ecx
push 1
sete cl
push ecx
push dword [edi + 0x84]
mov ecx, edi
call dword [edx]
push str.vncServer::actualRetryThread_:_leaving_reconnectThread...._n
push 9
push 0x5b0d48
call fcn.0041ccb0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x483790
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x5b0008]
xor eax, esp
mov dword [esp + 0x198], eax
push esi
lea eax, [esp + 8]
mov esi, ecx
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4837d9
mov dword [esi], 0
mov eax, esi
pop esi
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.00518799
mov esp, ebp
pop ebp
ret
mov ax, word [esp + 8]
mov ecx, dword [esp + 0x19c]
mov word [0x5de534], ax
mov eax, esi
mov dword [esi], 0xffffffff
pop esi
xor ecx, esp
call fcn.00518799
mov esp, ebp
pop ebp
ret

Function at 0x4839a0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 4], 1
cmp dword [esi + 8], 0xffffffff
je 0x4839b9
call fcn.00483a00
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x4839f4
push 4
lea ecx, [ebp - 4]
push ecx
push 4
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x4839f4
mov ecx, esi
call fcn.00483cf0
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x483af0
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp dword [esi + 8], 0xffffffff
je 0x483b81
xorps xmm0, xmm0
mov eax, 2
movups xmmword [ebp - 0x14], xmm0
push edi
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x483b45
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x483b81
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x483b81
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x483b81
mov ecx, esi
call fcn.00483cf0
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00518799
mov esp, ebp
pop ebp
ret 8
Function at 0x483ba0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x483c4a
lea ecx, [ebp - 4]
mov dword [ebp - 4], 4
push ecx
lea ecx, [ebp - 8]
push ecx
push 0x1001
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_getsockopt]
push dword [ebp - 4]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x8000
push eax
push 0x1001
push 0xffff
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0
push 0
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
cmp edi, 0xffffffff
je 0x483c4a
push 0x23a4
call fcn.005187ac
add esp, 4
mov dword [ebp - 0xc], eax
mov ecx, eax
call fcn.00483800
mov esi, eax
test esi, esi
je 0x483c3a
mov ecx, esi
mov dword [esi + 8], edi
call fcn.00483cf0
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 2
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x483cc0
Capabilities:
Resolve dns

Disassembly:
push esi
mov esi, ecx
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x483ce9
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x483ce7
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x483ce7
mov eax, dword [eax]
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x483dc0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x5de534], 2
push esi
mov esi, ecx
jb 0x483e19
mov eax, dword [ebp + 8]
push 4
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 0x1006
push 0xffff
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x483e19
push 4
lea eax, [ebp + 8]
push eax
push 0x1005
push 0xffff
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x483e19
or eax, 0xffffffff
pop esi
pop ebp
ret 4
xor eax, eax
pop esi
pop ebp
ret 4

Function at 0x483e20
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x5de534], 2
push esi
mov esi, ecx
jae 0x483e36
xor eax, eax
pop esi
pop ebp
ret 4
mov eax, dword [ebp + 8]
push 4
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 0x1006
push 0xffff
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x483e2f
push 4
lea eax, [ebp + 8]
push eax
push 0x1005
push 0xffff
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
inc eax
neg eax
pop esi
sbb eax, eax
pop ebp
ret 4

Function at 0x483e80
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x5de534], 2
push esi
mov esi, ecx
jae 0x483e96
xor eax, eax
pop esi
pop ebp
ret 4
mov eax, dword [ebp + 8]
push 4
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 0x1006
push 0xffff
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x483e8f
push 4
lea eax, [ebp + 8]
push eax
push 0x1005
push 0xffff
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
inc eax
neg eax
pop esi
sbb eax, eax
pop ebp
ret 4
Function at 0x483fe0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, eax
mov edx, dword [esi + 0x239c]
add eax, edx
cmp eax, dword [esi + 0x23a0]
jb 0x4840a0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x239c]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x23a0]
sub eax, ecx
push eax
lea eax, [esi + 0x74]
add eax, ecx
push ebx
push eax
call fcn.0051a200
mov ecx, dword [esi + 8]
lea edx, [esi + 0x74]
add esp, 8
push dword [esi + 0x23a0]
call fcn.00484680
add esp, 8
test al, al
je 0x4840c2
mov ecx, dword [esi + 0x23a0]
xor edx, edx
mov edi, dword [esi + 0x239c]
mov eax, ecx
sub eax, edi
mov dword [esi + 0x239c], 0
sub edi, ecx
add ebx, eax
add edi, dword [ebp + 0xc]
cmp edi, ecx
jb 0x4840a0
nop
push ecx
push ecx
mov ecx, dword [esi + 8]
mov edx, ebx
call fcn.00484680
add esp, 8
test al, al
je 0x4840c2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x23a0]
add ebx, ecx
sub edi, ecx
mov dword [esi + 0xc], eax
cmp edi, ecx
jae 0x484070
mov edx, dword [esi + 0x239c]
push edi
lea ecx, [esi + 0x74]
add ecx, edx
push ebx
push ecx
call fcn.0051a200
mov eax, dword [ebp + 0xc]
add esp, 0xc
add dword [esi + 0x239c], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4845e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov eax, ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 1
mov dword [ebp - 4], eax
nop word [eax + eax]
mov eax, dword [eax + 8]
cmp eax, 0xffffffff
je 0x48461f
push 0
push esi
push edi
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x48461d
add edi, eax
sub esi, eax
jmp 0x484628
je 0x484631
call ebx
cmp eax, 0x2733
jne 0x48465c
test esi, esi
je 0x484650
mov eax, dword [ebp - 4]
jmp 0x484600
push str.VSocket::ReadExactHTTP_:_zero_bytes_read3_n
push 4
push 0x5b0d48
call fcn.0041ccb0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call ebx
push eax
push str.VSocket::ReadExactHTTP_:_HTTP_socket_error:__d_n
push 4
push 0x5b0d48
call fcn.0041ccb0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x484680
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x5b0008]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], edx
mov ebx, ecx
mov dword [esp + 0x10], 0
cmp dword [ebp + 8], edi
jbe 0x484775
mov dword [esp + 0x18], 1
xor esi, esi
mov dword [esp + 0x1c], 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], ebx
push ecx
push 0
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 1
push ecx
lea eax, [ebx + 1]
push 0
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ecx, eax
inc esi
mov al, byte [0x5b31af]
test ecx, ecx
jne 0x48471b
test al, al
jne 0x48471b
cmp esi, 0x258
jl 0x4846c8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00518799
mov esp, ebp
pop ebp
ret
cmp esi, 0x258
jge 0x484704
test al, al
jne 0x484704
test ecx, ecx
js 0x484704
cmp ecx, 1
jg 0x484704
lea eax, [esp + 0x20]
push eax
push ebx
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
mov esi, dword [ebp + 8]
test eax, eax
je 0x48475e
push 0
mov eax, esi
sub eax, edi
push eax
mov eax, dword [esp + 0x1c]
add eax, edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
mov dword [esp + 0x10], eax
jmp 0x484762
mov eax, dword [esp + 0x10]
test eax, eax
je 0x484704
cmp eax, 0xffffffff
je 0x484704
add edi, eax
cmp edi, esi
jb 0x4846b6
mov ecx, dword [esp + 0x12c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00518799
mov esp, ebp
pop ebp
ret
Function at 0x4a3980
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
push esi
mov esi, edx
mov dword [ebp - 4], eax
cmp dword [ecx + 0x5c], eax
jne 0x4a3996
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 8]
cmp ebx, 4
jb 0x4a3a40
mov edx, dword [0x5b10dc]
push edi
nop word [eax + eax]
movzx edi, byte [esi + 3]
movzx eax, byte [esi + 2]
shl edi, 8
or edi, eax
lea eax, [ebx - 4]
cmp edi, eax
ja 0x4a3a3c
movzx ecx, byte [esi + 1]
movzx eax, byte [esi]
shl cx, 8
or cx, ax
mov eax, 0x4453
cmp cx, ax
jne 0x4a3a25
cmp edx, 0xffffffff
jne 0x4a3a05
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4a39fb
mov edx, 1
mov dword [0x5b10dc], edx
jmp 0x4a3a09
xor edx, edx
mov dword [0x5b10dc], edx
jmp 0x4a3a25
test edx, edx
je 0x4a3a25
cmp edi, 5
jb 0x4a3a25
cmp byte [esi + 8], 0
ja 0x4a3a25
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 1
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
mov ecx, 0xfffffffc
add esi, 4
sub ecx, edi
add esi, edi
add ebx, ecx
cmp ebx, 4
jae 0x4a39b0
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4a3fd0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, ecx
push dword [edi + 0x109d8]
call fcn.0052c149
add esp, 4
cmp dword [edi + 0x14], 0
jne 0x4a41d4
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x14]
call fcn.004a3e20
add esp, 8
mov dword [ebp - 0xc], eax
lea esi, [edi + 0x109f0]
push 0
push 0x80
push 3
push 0
push 2
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [edi + 0x8d8]
mov ebx, eax
mov ecx, dword [ecx + 0x14]
test cl, 0x5f
je 0x4a4078
and ecx, 0x7f
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4a4078
push 1
lea esi, [edi + 0x8dc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
push eax
push str._nwarning___d_:_could_not_set_file_attributes_n
push esi
call fcn.004a1b80
add esp, 0x10
push eax
mov eax, dword [edi + 0x10b54]
push esi
push edi
call eax
lea esi, [edi + 0x109f0]
mov edx, dword [edi + 0x10918]
test edx, edx
je 0x4a4139
lea eax, [ebp - 4]
mov ecx, edi
push eax
lea eax, [ebp - 8]
push eax
movzx eax, word [edi + 0x10938]
push eax
call fcn.004a3980
add esp, 0xc
test eax, eax
je 0x4a4139
push dword [ebp - 4]
mov eax, dword [edi + 0x8d8]
mov edx, esi
push dword [ebp - 8]
mov ecx, edi
push dword [eax + 0x14]
call fcn.004a3750
add esp, 0xc
cmp eax, 0x4f
jne 0x4a4139
mov edx, dword [edi + 0x38]
lea esi, [edi + 0x8dc]
test edx, edx
je 0x4a4106
push 1
lea edx, [edi + 0x88dc]
lea ecx, [edi + 0x109f0]
call fcn.004af020
push ecx
push eax
push 0x5a5ac4
push esi
call fcn.004a1b80
add esp, 0x10
push eax
mov eax, dword [edi + 0x10b54]
push esi
push edi
call eax
mov edx, dword [edi + 0x38]
push 1
mov ecx, 0x569fa8
test edx, edx
push ecx
mov eax, 0x5984e0
cmove eax, ecx
push eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff5
push eax
push str._compressed_WinNT_security_data_missing___d_bytes__s
push esi
call fcn.004a1b80
add esp, 0x14
push eax
mov eax, dword [edi + 0x10b54]
push esi
push edi
call eax
cmp ebx, 0xffffffff
jne 0x4a416e
push 1
lea esi, [edi + 0x8dc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
push eax
push str._nCreateFile___error__d_when_trying_set_file_time_n
push esi
call fcn.004a1b80
add esp, 0x10
push eax
mov eax, dword [edi + 0x10b54]
push esi
push edi
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x4a41cd
test cl, 1
lea eax, [ebp - 0x14]
mov edx, 0
cmove eax, edx
test cl, 2
push eax
lea eax, [ebp - 0x1c]
cmove eax, edx
test cl, 4
push eax
mov ecx, edx
lea eax, [ebp - 0x24]
cmove eax, ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x4a41cd
push eax
lea esi, [edi + 0x8dc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
push eax
push str._nSetFileTime_failed:__d_n
push esi
call fcn.004a1b80
add esp, 0x10
push eax
mov eax, dword [edi + 0x10b54]
push esi
push edi
call eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret