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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c4
mov eax, dword [0x5a6008]
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 closesocket
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 0x474812
sub eax, 1
jne 0x474816
mov eax, dword [ebp - 0x94]
cmp eax, 6
jne 0x4747e5
mov eax, dword [ebp - 0x90]
cmp eax, 2
jb 0x4747d1
mov byte [ebx + 6], 1
jmp 0x474816
cmp eax, 1
jne 0x4747db
mov byte [ebx + 7], al
jmp 0x474816
test eax, eax
jne 0x474812
mov byte [ebx + 8], 1
jmp 0x474816
cmp eax, 5
jne 0x474812
mov eax, dword [ebp - 0x90]
cmp eax, 2
je 0x474808
cmp eax, 1
je 0x474808
test eax, eax
jne 0x474812
mov byte [ebx + 0xa], 1
mov byte [ebx + 0xe], 1
jmp 0x474816
mov byte [ebx + 9], 1
mov byte [ebx + 0xe], 1
jmp 0x474816
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 0x4748cc
push edi
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x47487b
push str.RtlGetVersion
push eax
call esi
mov esi, eax
test esi, esi
je 0x47487b
push 0x110
lea eax, [ebp - 0x1a8]
push 0
push eax
call fcn.00513330
add esp, 0xc
mov dword [ebp - 0x1ac], 0x114
lea eax, [ebp - 0x1ac]
push eax
call esi
test eax, eax
je 0x474891
push 0x114
lea eax, [ebp - 0x1ac]
push 0
push eax
call fcn.00513330
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 0x4748cc
cmp dword [ebp - 0x2b8], 0x4a61
mov byte [ebx + 6], 0
mov byte [ebx + 4], 1
jb 0x4748cc
mov byte [ebx + 5], 1
cmp dword [ebx + 0x14], 0
jne 0x4748fc
push 0x5989c4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebx + 0x14], eax
test eax, eax
je 0x4748fc
push 0x5989d0
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.00511339
mov esp, ebp
pop ebp
ret
Function at 0x477790
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x68
mov eax, dword [0x5a6008]
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 0x47795a
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 0x47795a
push 0x479
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [esp + 0x10], eax
test eax, eax
je 0x47795a
cmp dword [ebp + 0xc], 0
jne 0x477811
push dword [edi + 0x10]
jmp 0x477814
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 0x477890
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 0x47787d
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 0x477850
mov edi, dword [esp + 0x1c]
cmp dword [ebp + 0xc], 0
mov esi, dword [esp + 0x14]
jne 0x477920
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [edi], 0
jne 0x4778d6
cmp dword [edi + 4], 0
jne 0x4778d6
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 0x598dac
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.00511339
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.00511339
mov esp, ebp
pop ebp
ret 8
Function at 0x47b130
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 0x47b1d7
push dword [eax + 0xe404]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x47b1d1
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x47b1d1
push ebx
mov ebx, dword [ebp + 8]
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47b175
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 0x47b1d0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
test edx, edx
je 0x47b1d0
mov ecx, ebx
lea eax, [ecx + 1]
mov dword [ebp + 8], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47b1a8
sub ecx, dword [ebp + 8]
push ebx
lea eax, [ecx + 1]
push eax
push edx
call fcn.0051736e
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 0x47c770
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x2f4], 0
je 0x47c7d8
cmp byte [0x5ab8a3], 0
jne 0x47c7d8
push str.vncServer::AutoConnectRetry_:_AutoConnectRetry__:_started_n
push 9
push 0x5a6c48
call fcn.0041d720
mov eax, dword [esi + 0x70]
add esp, 0xc
test eax, eax
je 0x47c7ba
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x47c7d8
push dword [esi + 0x70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 4]
push eax
push 0
push dword [0x5b4774]
push 0x47c750
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 0x47c7e0
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 0x47c9da
lea ebx, [edi + 0x300]
nop
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47c805
sub ecx, edx
je 0x47c9da
cmp byte [0x5ab8a3], al
jne 0x47c9da
push str.vncServer::actualRetryThread_:_Attempting_AutoReconnect...._n
push 9
push 0x5a6c48
call fcn.0041d720
add esp, 0xc
push 0x23a4
call fcn.0051134c
add esp, 4
mov dword [esp + 0xc], eax
mov ecx, eax
call fcn.0047ce20
mov esi, eax
mov dword [edi + 0x84], esi
test esi, esi
je 0x47c95e
cmp dword [esi + 8], 0xffffffff
mov dword [esp + 0xc], 1
je 0x47c8b4
push str.VSocket::Close_:_closing_socket_n
push 0xa
push 0x5a6c48
call fcn.0041d720
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 0x47c8b4
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 0x47c8e8
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 0x47c8e8
mov ecx, esi
call fcn.0047d0f0
push dword [edi + 0x2fc]
mov ecx, dword [edi + 0x84]
push ebx
call fcn.0047d010
test eax, eax
jne 0x47c96d
push str.vncServer::actualRetryThread_:_connect_failed__waitin_5_sec_to_retry...._n
push 9
push 0x5a6c48
call fcn.0041d720
mov ecx, dword [edi + 0x84]
add esp, 0xc
test ecx, ecx
je 0x47c922
mov eax, dword [ecx]
push 1
call dword [eax]
cmp dword [edi + 0x2f4], 0
mov dword [edi + 0x84], 0
je 0x47c9da
mov eax, ebx
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47c940
sub eax, edx
je 0x47c95e
cmp byte [0x5ab8a3], cl
jne 0x47c95e
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0x2f4], 0
jne 0x47c800
jmp 0x47c9da
lea esi, [edi + 0x3ff]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47c978
sub ecx, edx
je 0x47c9ad
mov ecx, dword [edi + 0x84]
push 0xfa
push esi
call fcn.0047d2e0
mov ecx, dword [edi + 0x84]
push 0
call fcn.0047d1c0
push 1
push dword [edi + 0x2fc]
push ebx
push esi
jmp 0x47c9b8
push 1
push dword [edi + 0x2fc]
push ebx
push 0
mov eax, dword [0x5b6e6c]
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 0x5a6c48
call fcn.0041d720
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47cdb0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x5a6008]
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 0x47cdf9
mov dword [esi], 0
mov eax, esi
pop esi
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.00511339
mov esp, ebp
pop ebp
ret
mov ax, word [esp + 8]
mov ecx, dword [esp + 0x19c]
mov word [0x5d73b4], ax
mov eax, esi
mov dword [esi], 0xffffffff
pop esi
xor ecx, esp
call fcn.00511339
mov esp, ebp
pop ebp
ret

Function at 0x47cf50
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 0x47cf69
call fcn.0047cfb0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x47cfa4
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 0x47cfa4
mov ecx, esi
call fcn.0047d0f0
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x47d010
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5a6008]
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 0x47d0a1
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 0x47d065
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x47d0a1
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x47d0a1
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 0x47d0a1
mov ecx, esi
call fcn.0047d0f0
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00511339
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00511339
mov esp, ebp
pop ebp
ret 8

Function at 0x47d0c0
Capabilities:
Resolve dns

Disassembly:
push esi
mov esi, ecx
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x47d0e9
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x47d0e7
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x47d0e7
mov eax, dword [eax]
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x47d1c0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x5d73b4], 2
push esi
mov esi, ecx
jb 0x47d219
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 0x47d219
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 0x47d219
or eax, 0xffffffff
pop esi
pop ebp
ret 4
xor eax, eax
pop esi
pop ebp
ret 4

Function at 0x47d220
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x5d73b4], 2
push esi
mov esi, ecx
jae 0x47d236
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 0x47d22f
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 0x47d280
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x5d73b4], 2
push esi
mov esi, ecx
jae 0x47d296
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 0x47d28f
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 0x47d3e0
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 0x47d4a0
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.00512db0
mov ecx, dword [esi + 8]
lea edx, [esi + 0x74]
add esp, 8
push dword [esi + 0x23a0]
call fcn.0047d9c0
add esp, 8
test al, al
je 0x47d4c2
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 0x47d4a0
nop
push ecx
push ecx
mov ecx, dword [esi + 8]
mov edx, ebx
call fcn.0047d9c0
add esp, 8
test al, al
je 0x47d4c2
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 0x47d470
mov edx, dword [esi + 0x239c]
push edi
lea ecx, [esi + 0x74]
add ecx, edx
push ebx
push ecx
call fcn.00512db0
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 0x47d9c0
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 [0x5a6008]
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 0x47dab5
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 [0x5ab8a3]
test ecx, ecx
jne 0x47da5b
test al, al
jne 0x47da5b
cmp esi, 0x258
jl 0x47da08
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00511339
mov esp, ebp
pop ebp
ret
cmp esi, 0x258
jge 0x47da44
test al, al
jne 0x47da44
test ecx, ecx
js 0x47da44
cmp ecx, 1
jg 0x47da44
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 0x47da9e
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 0x47daa2
mov eax, dword [esp + 0x10]
test eax, eax
je 0x47da44
cmp eax, 0xffffffff
je 0x47da44
add edi, eax
cmp edi, esi
jb 0x47d9f6
mov ecx, dword [esp + 0x12c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00511339
mov esp, ebp
pop ebp
ret
Function at 0x49c530
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 0x49c546
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 8]
cmp ebx, 4
jb 0x49c5f0
mov edx, dword [0x5a6fdc]
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 0x49c5ec
movzx ecx, byte [esi + 1]
movzx eax, byte [esi]
shl cx, 8
or cx, ax
mov eax, 0x4453
cmp cx, ax
jne 0x49c5d5
cmp edx, 0xffffffff
jne 0x49c5b5
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x49c5ab
mov edx, 1
mov dword [0x5a6fdc], edx
jmp 0x49c5b9
xor edx, edx
mov dword [0x5a6fdc], edx
jmp 0x49c5d5
test edx, edx
je 0x49c5d5
cmp edi, 5
jb 0x49c5d5
cmp byte [esi + 8], 0
ja 0x49c5d5
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 0x49c560
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x49cb80
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.00523a8b
add esp, 4
cmp dword [edi + 0x14], 0
jne 0x49cd84
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x14]
call fcn.0049c9d0
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 0x49cc28
and ecx, 0x7f
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x49cc28
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.0047daf0
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 0x49cce9
lea eax, [ebp - 4]
mov ecx, edi
push eax
lea eax, [ebp - 8]
push eax
movzx eax, word [edi + 0x10938]
push eax
call fcn.0049c530
add esp, 0xc
test eax, eax
je 0x49cce9
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.0049c300
add esp, 0xc
cmp eax, 0x4f
jne 0x49cce9
mov edx, dword [edi + 0x38]
lea esi, [edi + 0x8dc]
test edx, edx
je 0x49ccb6
push 1
lea edx, [edi + 0x88dc]
lea ecx, [edi + 0x109f0]
call fcn.004a7bd0
push ecx
push eax
push 0x59b938
push esi
call fcn.0047daf0
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, 0x560f28
test edx, edx
push ecx
mov eax, 0x58f2c8
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.0047daf0
add esp, 0x14
push eax
mov eax, dword [edi + 0x10b54]
push esi
push edi
call eax
cmp ebx, 0xffffffff
jne 0x49cd1e
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.0047daf0
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 0x49cd7d
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 0x49cd7d
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.0047daf0
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
Function at 0x49d010
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x5a6008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 2
mov esi, edx
mov ebx, ecx
push 0x59ba14
push esi
call fcn.0051ddd0
add esp, 0xc
test eax, eax
je 0x49d051
push 2
push 0x59ba18
push esi
call fcn.0051ddd0
add esp, 0xc
test eax, eax
jne 0x49d060
mov al, byte [esi + 2]
test al, al
je 0x49d060
cmp al, 0x2f
je 0x49d060
cmp al, 0x5c
jne 0x49d094
movzx eax, byte [esi]
push eax
call fcn.00526500
add esp, 4
test eax, eax
je 0x49d076
cmp byte [esi + 1], 0x3a
je 0x49d0ac
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x49d0a6
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00511339
mov esp, ebp
pop ebp
ret
lea esi, [ebp - 0x20c]
push edi
push 2
lea edi, [ebx + 0x10b90]
mov dword [ebp - 0x210], esi
push esi
push edi
call fcn.0051ddd0
add esp, 0xc
test eax, eax
je 0x49d1ac
push 2
push dword [ebp - 0x210]
push edi
call fcn.00529160
add esp, 0xc
mov word [ebx + 0x10b92], 0x2f
lea eax, [ebp - 0x108]
push 0x104
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x49d132
mov byte [edi], al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00511339
mov esp, ebp
pop ebp
ret
mov eax, 0xc
cmp eax, dword [ebp - 0x214]
push 4
sbb eax, eax
inc eax
mov dword [ebx + 0x10b94], eax
lea eax, [ebp - 0x108]
push str.VFAT
push eax
call fcn.00523805
add esp, 4
push eax
call fcn.0051ddd0
add esp, 0xc
test eax, eax
je 0x49d1a1
push 4
lea eax, [ebp - 0x108]
push str.HPFS
push eax
call fcn.0051ddd0
add esp, 0xc
test eax, eax
je 0x49d1a1
push 3
lea eax, [ebp - 0x108]
push 0x59ba2c
push eax
call fcn.0051ddd0
add esp, 0xc
test eax, eax
je 0x49d1a1
xor eax, eax
jmp 0x49d1a6
mov eax, 1
mov dword [ebx + 0x10b98], eax
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00511339
mov esp, ebp
pop ebp
ret