joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46b6f3
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
push edi
mov edi, 0x208
xor ebx, ebx
push edi
lea eax, [ebp - 0x20e]
push ebx
push eax
mov word [ebp - 0x210], bx
call fcn.004f0540
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x210]
push eax
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jbe 0x46b7a9
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
and word [ebp - 0x41c], 0
push edi
lea eax, [ebp - 0x41a]
push 0
push eax
call fcn.004f0540
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.004f3e92
push 0xffffffffffffffff
push dword [ebx + 0x55d9cc]
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.004f5f76
add esp, 0x2c
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46b7a5
add ebx, 4
cmp ebx, 4
jb 0x46b745
jmp 0x46b7a9
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x46b7b1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 8], ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 1], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x46b7e1
mov byte [ebp - 1], bl
jmp 0x46b844
push esi
push 0x80
call fcn.004f397a
pop ecx
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x10], 1
push dword [ebp - 8]
mov dword [ebp - 0xc], 0x50
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x46b81c
mov byte [ebp - 1], bl
jmp 0x46b82f
push dword [ebp + 0x10]
push esi
call fcn.004f1b47
test eax, eax
pop ecx
pop ecx
je 0x46b82f
mov byte [ebp - 1], 1
cmp esi, ebx
je 0x46b83a
push esi
call fcn.004f01f0
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, byte [ebp - 1]
pop ebx
leave
ret
Function at 0x46b84a
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
push edi
mov edi, 0x208
xor ebx, ebx
push edi
lea eax, [ebp - 0x20e]
push ebx
push eax
mov word [ebp - 0x210], bx
call fcn.004f0540
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x210]
push eax
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jbe 0x46b900
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
and word [ebp - 0x41c], 0
push edi
lea eax, [ebp - 0x41a]
push 0
push eax
call fcn.004f0540
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.004f3e92
push 0xffffffffffffffff
push dword [ebx + 0x55d9d0]
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.004f5f76
add esp, 0x2c
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46b8fc
add ebx, 4
cmp ebx, 0x14
jb 0x46b89c
jmp 0x46b900
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x46b9cc
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push ebx
push esi
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x226]
push ebx
push eax
mov byte [ebp - 1], bl
mov dword [ebp - 0x10], ebx
mov word [ebp - 0x228], bx
call fcn.004f0540
mov esi, str.DiskVirtual_HD
push esi
mov dword [ebp - 0xc], 0x104
call fcn.004f0eb4
add esp, 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push str.SYSTEMCurrentControlSetEnumIDE
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x46bab6
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc dword [ebp - 0x10]
test eax, eax
jne 0x46baa8
cmp word [ebp - 0x228], bx
je 0x46ba86
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0xc], eax
jb 0x46ba86
push eax
lea eax, [ebp - 0x228]
push esi
push eax
call fcn.004f1903
add esp, 0xc
test eax, eax
je 0x46baa4
push 0x208
lea eax, [ebp - 0x228]
push ebx
push eax
call fcn.004f0540
add esp, 0xc
mov dword [ebp - 0xc], 0x104
jmp 0x46ba3b
mov byte [ebp - 1], 1
cmp dword [ebp - 8], ebx
je 0x46bab6
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret
Function at 0x46bcd9
Capabilities:
Check for sandbox and av modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov dword [eax], esi
mov dword [ebx], esi
mov dword [ebp - 4], esi
call fcn.0046babd
xor edi, edi
inc edi
test eax, eax
je 0x46bd01
mov esi, edi
mov dword [ebp - 4], edi
lea ecx, [ebp + 0xb]
call fcn.0046bb13
test eax, eax
jne 0x46bd25
lea ecx, [ebp + 0xb]
call fcn.0046bb29
test eax, eax
jne 0x46bd25
lea ecx, [ebp + 0xb]
call fcn.0046bb3f
test eax, eax
je 0x46bd28
or esi, 2
call fcn.0046bba4
test eax, eax
je 0x46bd37
or esi, 4
mov dword [ebp - 4], edi
xor eax, eax
cmp dword [ebp - 4], eax
je 0x46bd4f
mov dword [ebx], edi
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
jmp 0x46be7e
push eax
push 0x80
push 3
push eax
push edi
push SysReAllocString
push str..VBoxMiniRdrDN
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x46bd79
or esi, 0x10
mov dword [ebx], 2
jmp 0x46bd40
call fcn.0046b84a
test al, al
je 0x46bd89
mov eax, 0x1002
jmp 0x46bda7
call fcn.0046b908
test al, al
je 0x46bd99
mov eax, 0x1003
jmp 0x46bda7
call fcn.0046b9cc
test al, al
je 0x46bdbc
mov eax, 0x1004
mov ecx, dword [ebp + 8]
mov dword [ecx], edi
mov ecx, dword [ebp + 0xc]
mov dword [ebx], 3
mov dword [ecx], eax
jmp 0x46be7e
call fcn.0046b6f3
test al, al
jne 0x46bdd7
call fcn.0046b6b8
test al, al
jne 0x46bdd7
call fcn.0046b620
test al, al
je 0x46bde2
mov dword [ebx], 4
jmp 0x46bd40
lea esi, [ebp - 0xc8]
mov dword [ebp - 4], 3
call fcn.0046b47a
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.0046b504
test eax, eax
je 0x46be3c
mov eax, dword [ebp - 4]
test eax, eax
je 0x46be12
cmp eax, edi
je 0x46be12
cmp eax, 2
jne 0x46be3c
cmp eax, edi
mov ecx, dword [ebp + 8]
mov dword [ecx], edi
mov dword [ebx], 5
jne 0x46be2c
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x3001
jmp 0x46be7e
cmp eax, 2
jne 0x46be7e
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x3002
jmp 0x46be7e
push str.SbieDll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x46be53
mov dword [ebx], 6
jmp 0x46be73
call fcn.0046be84
test eax, eax
je 0x46be64
mov dword [ebx], 7
jmp 0x46be73
call fcn.0046bf34
test eax, eax
je 0x46be7e
mov dword [ebx], 8
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov eax, dword [ebp + 0xc]
and dword [eax], 0
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x46c0d0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x55909c]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x46c120
mov ax, word [esp]
cmp al, 2
jne 0x46c11a
cmp ah, al
jne 0x46c11a
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004f62a5
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.004f62a5
add esp, 0x194
ret
Function at 0x475e30
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x475e62
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0x39
add eax, 0xffffffff
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x475fc0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x140]
test ecx, ecx
je 0x475fdb
mov edx, dword [esi + 0xe4]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x47600f
cmp eax, 2
jg 0x47600f
mov ecx, dword [esi + 0xe0]
push ecx
push 1
lea edx, [eax + eax*2 + 0x515da0]
push 2
push edx
call fcn.004f2984
mov eax, dword [esi + 0xe0]
push eax
push 1
push edi
push ebx
call fcn.004f2984
add esp, 0x20
xor eax, eax
ret

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

Disassembly:
mov eax, dword [edi + eax*4 + 0xd4]
push esi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
cmp esi, 0xffffffff
jne 0x476285
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x47626b
xor eax, eax
pop esi
ret
push eax
push edi
call fcn.00480890
push eax
mov eax, dword [edi]
push str.Send_failure:__s
push eax
call fcn.004761a0
add esp, 0x14
mov eax, esi
pop esi
ret
Function at 0x4768f0
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
movzx eax, byte [esi + 0x286]
push 4
lea ecx, [esp + 8]
push ecx
push 1
push 6
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x476934
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00480890
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00476110
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00476110
add esp, 8
pop esi
pop ecx
ret
Function at 0x476d80
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x458]
cmp eax, 0xffffffff
je 0x476de6
mov ecx, dword [ecx + 0x44c]
mov edx, dword [ecx]
cmp dword [edx + eax*4], 0
lea eax, [edx + eax*4]
je 0x476de6
mov ecx, dword [esp + 0xc]
test ecx, ecx
mov eax, dword [eax]
je 0x476dac
mov dword [ecx], eax
mov ecx, dword [eax + 0xd4]
push esi
mov esi, dword [esp + 0xc]
mov dword [esi], ecx
cmp byte [eax + 0xdc], 0
jne 0x476ddc
mov eax, dword [eax + 0xd4]
push 2
push 1
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x476de2
mov dword [esi], 0xffffffff
pop esi
xor eax, eax
ret
mov ecx, dword [esp + 8]
mov dword [ecx], 0xffffffff
xor eax, eax
ret
Function at 0x478840
Capabilities:
Create thread

Disassembly:
sub esp, 0xc
push ebx
push esi
push 1
push 0x24
call dword [0x558010]
xor ebx, ebx
mov esi, eax
add esp, 8
cmp esi, ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
jne 0x478872
push 0xc
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
xor al, al
pop ebx
add esp, 0xc
ret
mov eax, dword [edi + 0x2bc]
push ebp
lea ebp, [edi + 0x2bc]
push eax
mov dword [esp + 0x10], ebp
call fcn.0046d360
mov ecx, dword [esp + 0x20]
push ecx
call dword [0x55800c]
add esp, 8
cmp eax, ebx
mov dword [ebp], eax
jne 0x4788b9
push esi
call dword [0x558004]
add esp, 4
push 0xc
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebp
pop esi
xor al, al
pop ebx
add esp, 0xc
ret
mov edx, dword [esp + 0x20]
push ebx
push 1
mov dword [edi + 0x2c0], edx
mov byte [edi + 0x2c8], bl
mov dword [edi + 0x2cc], ebx
mov dword [edi + 0x2c4], ebx
mov dword [edi + 0x2d0], esi
push ebx
mov dword [esi + 0xc], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, ebx
mov dword [esi + 0x10], eax
jne 0x4788f6
push ebp
jmp 0x478949
mov ebp, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push 1
push ebx
call ebp
cmp eax, ebx
mov dword [esi + 0x14], eax
je 0x478944
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, ebx
mov dword [esi + 0x1c], eax
jne 0x478921
mov ecx, dword [esp + 0xc]
push ecx
jmp 0x478949
push ebx
push ebx
push 1
push ebx
call ebp
cmp eax, ebx
mov dword [esi + 0x20], eax
jne 0x478936
mov edx, dword [esp + 0xc]
push edx
jmp 0x478949
push ebx
push ebx
push 1
push ebx
call ebp
cmp eax, ebx
mov dword [esi + 0x18], eax
jne 0x478962
mov eax, dword [esp + 0xc]
push eax
call fcn.00478760
add esp, 4
push 0xb
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebp
pop esi
xor al, al
pop ebx
add esp, 0xc
ret
lea ecx, [esi + 4]
push ecx
push ebx
push edi
push 0x478690
push ebx
push ebx
call fcn.004f3b37
add esp, 0x18
cmp eax, ebx
mov dword [esi], eax
jne 0x4789a1
call fcn.004f73f0
mov edx, dword [eax]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0xc]
push eax
call fcn.00478760
add esp, 4
pop ebp
pop esi
xor al, al
pop ebx
add esp, 0xc
ret
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov ecx, dword [esi + 0x18]
push edx
push 2
mov dword [esp + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push ebx
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
pop ebp
mov dword [esi + 0xc], eax
pop esi
mov al, 1
pop ebx
add esp, 0xc
ret
Function at 0x4789e0
Capabilities:
Terminate thread

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov ecx, dword [edi]
mov eax, dword [ecx + 0x174]
test eax, eax
mov esi, dword [edi + 0x2d0]
mov dword [esp + 0x14], ecx
jne 0x478a0d
mov eax, dword [ecx + 0x170]
test eax, eax
jne 0x478a0d
mov eax, 0x493e0
push eax
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x10]
push ecx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [esi + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call ebx
mov eax, dword [esi + 0x14]
push eax
mov dword [esi + 0x10], 0
call ebx
test ebp, ebp
mov dword [esi + 0x14], 0
mov bl, 1
jne 0x478a69
mov ecx, dword [esi]
push 0x1388
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x478abf
mov edx, dword [esi]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea ebp, [esi + 8]
mov byte [edi + 0x2c8], bl
mov dword [ebp], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x478a89
mov edx, dword [edi + 0x2c4]
mov dword [eax], edx
xor esi, esi
cmp dword [edi + 0x2c4], esi
jne 0x478b70
mov ebp, dword [ebp]
cmp ebp, 0x1b
jne 0x478adb
push ebp
mov esi, ebp
call fcn.0047ff50
push eax
mov eax, dword [esp + 0x1c]
push str.Could_not_resolve_host:__s
push eax
call fcn.004761a0
add esp, 0x10
jmp 0x478b70
mov eax, dword [edi + 0x2cc]
push eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esi]
lea ebp, [esi + 8]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
jmp 0x478a79
cmp byte [edi + 0x2c8], 0
je 0x478b41
cmp byte [edi + 0x12b], 0
mov ecx, dword [edi + 0x2cc]
push ecx
push edi
je 0x478b1b
call fcn.00480890
mov edx, dword [edi + 0xa0]
push eax
mov eax, dword [esp + 0x20]
push edx
push str.Could_not_resolve_proxy:__s___s
push eax
call fcn.004761a0
add esp, 0x18
mov esi, 5
jmp 0x478b70
call fcn.00480890
mov edx, dword [edi + 0x8c]
push eax
mov eax, dword [esp + 0x20]
push edx
push str.Could_not_resolve_host:__s___s
push eax
call fcn.004761a0
add esp, 0x18
mov esi, 6
jmp 0x478b70
cmp ebp, 0xffffffff
je 0x478b52
cmp dword [edi + 0x2cc], 0x2afc
jne 0x478b6b
mov ecx, dword [edi + 0x8c]
mov edx, dword [esp + 0x14]
push ecx
push str.Resolving_host_timed_out:__s
push edx
call fcn.004761a0
add esp, 0xc
mov esi, 0x1c
lea eax, [edi + 0x2bc]
push eax
call fcn.00478760
add esp, 4
cmp dword [edi + 0x2c4], 0
mov eax, esi
jne 0x478b90
mov byte [edi + 0x128], bl
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x478c40
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 0x10]
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
mov ebx, dword [edi]
lea ecx, [esp + 0x10]
push ecx
push esi
push 2
mov dword [eax], 0
call fcn.00480ab0
add esp, 0xc
test eax, eax
jle 0x478c84
mov edx, dword [esp + 0x18]
push edx
push esi
lea eax, [esp + 0x18]
push eax
push 2
call fcn.004784b0
add esp, 0x10
pop edi
pop esi
pop ebx
ret
push ebp
mov ebp, dword [esp + 0x1c]
push ebp
push esi
call fcn.00478840
add esp, 8
test al, al
je 0x478ca8
mov ecx, dword [esp + 0x20]
pop ebp
pop edi
pop esi
mov dword [ecx], 1
xor eax, eax
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
call fcn.00480890
push eax
push esi
push str.init_resolve_thread___failed_for__s___s_n
push ebx
call fcn.00476110
add esp, 0x18
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x478cf5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00480890
push eax
push ebp
push esi
push str.gethostbyname_2__failed_for__s:_d___s_n
push ebx
call fcn.00476110
add esp, 0x1c
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
ret
push ebp
push eax
call fcn.00478380
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x47bf00
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
sub esp, 0x31c
push ebx
mov ebx, dword [esp + 0x324]
push ebp
mov ebp, dword [esp + 0x32c]
push esi
xor esi, esi
cmp ebx, 0xffffffff
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
jne 0x47bf40
cmp ebp, ebx
jne 0x47bf40
mov eax, dword [esp + 0x334]
call fcn.0047bee0
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
push edi
mov edi, dword [esp + 0x338]
cmp edi, esi
jle 0x47bf5b
mov esi, edi
call fcn.0047d6c0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
xor eax, eax
xor ecx, ecx
or edx, 0xffffffff
cmp ebx, 0xffffffff
mov dword [esp + 0x20], ecx
mov dword [esp + 0x124], eax
je 0x47bf8f
mov ecx, 1
mov dword [esp + 0x128], ebx
mov dword [esp + 0x124], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ecx
mov edx, ebx
cmp ebp, 0xffffffff
mov dword [esp + 0x228], eax
je 0x47bfd6
test ecx, ecx
mov dword [esp + 0x22c], ebp
mov dword [esp + 0x228], 1
jbe 0x47bfbe
cmp dword [esp + eax*4 + 0x24], ebp
je 0x47bfbe
add eax, 1
cmp eax, ecx
jb 0x47bfb1
cmp eax, ecx
jne 0x47bfd0
cmp ecx, 0x40
jae 0x47bfd0
mov dword [esp + eax*4 + 0x24], ebp
add dword [esp + 0x20], 1
cmp ebp, edx
jbe 0x47bfd6
mov edx, ebp
xor ebx, ebx
test edi, edi
setl bl
lea eax, [esp + 0x18]
lea ebp, [edx + 1]
sub ebx, 1
and ebx, eax
lea esp, [esp]
xor eax, eax
cmp edi, eax
jle 0x47c021
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
imul eax, eax, 0x3e8
mov ecx, esi
sub ecx, eax
imul ecx, ecx, 0x3e8
mov dword [esp + 0x1c], ecx
jmp 0x47c02b
jne 0x47c02b
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push ebx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x230]
push eax
lea ecx, [esp + 0x130]
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x47c095
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x47c05e
cmp eax, 0x2714
jne 0x47c099
test edi, edi
jle 0x47bff0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.0047d6c0
push edx
push eax
call fcn.0047d6f0
mov esi, edi
sub esi, eax
add esp, 0x10
test esi, esi
jg 0x47bff0
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
test eax, eax
jge 0x47c0a7
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
jne 0x47c0b6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x31c
ret
mov edi, dword [esp + 0x330]
xor esi, esi
cmp edi, 0xffffffff
je 0x47c0ed
lea ecx, [esp + 0x124]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x47c0db
mov esi, 1
lea edx, [esp + 0x20]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x47c0ed
or esi, 4
mov edi, dword [esp + 0x334]
cmp edi, 0xffffffff
je 0x47c120
lea eax, [esp + 0x228]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x47c10e
or esi, 2
lea ecx, [esp + 0x20]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x47c120
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
Function at 0x47cb50
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov dword [eax], 0
call fcn.0047d6c0
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0xd0]
push ecx
mov ecx, dword [esi + 0xcc]
push ecx
push edx
push eax
call fcn.0047d6f0
mov ebx, dword [esp + 0x40]
add esp, 0x10
cmp eax, ebx
jg 0x47cc05
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
lea ebx, [ebx]
mov edx, ebx
sub edx, eax
mov eax, dword [esp + 0x20]
push edx
push 0xffffffffffffffff
push eax
call fcn.0047bf00
add esp, 0xc
test eax, eax
jle 0x47cc05
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push edi
push ebp
push edx
call fcn.00475e30
add esp, 0x10
test eax, eax
jne 0x47cc08
mov eax, dword [esp + 0x14]
cmp edi, eax
je 0x47cc10
test eax, eax
je 0x47cc05
add dword [esp + 0x10], eax
sub edi, eax
add ebp, eax
call fcn.0047d6c0
mov ecx, dword [esi + 0xd0]
push ecx
mov ecx, dword [esi + 0xcc]
push ecx
push edx
push eax
call fcn.0047d6f0
add esp, 0x10
cmp eax, ebx
jle 0x47cba0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
add eax, edx
pop ebp
mov dword [ecx], eax
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x47e350
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x47e35f
jmp dword [ecx*4 + 0x47e3b4]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret

Function at 0x47e540
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x55909c]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.004f797c
add esp, 4
test eax, eax
mov byte [esp], 0
je 0x47e5a5
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp byte [esp], 0
je 0x47e5a5
lea edx, [esp]
push edx
call dword [0x55800c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004f62a5
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.004f62a5
add esp, 0x108
ret
jmp 0x47e540
Function at 0x47e5c0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x55909c]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.004f797c
add esp, 4
test eax, eax
mov byte [esp], 0
je 0x47e5a5
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp byte [esp], 0
je 0x47e5a5
lea edx, [esp]
push edx
call dword [0x55800c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004f62a5
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.004f62a5
add esp, 0x108
ret
jmp 0x47e540