joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46af81
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
mov esi, eax
mov ecx, dword [esi]
xor eax, eax
cmp dword [ecx - 0xc], eax
je 0x46b103
push ebx
push edi
push 0x208
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004f04c0
add esp, 0xc
mov edi, str._ALLUSERSPROFILE_
push edi
xor ecx, ecx
call fcn.0040816c
or ebx, 0xffffffff
cmp eax, ebx
jne 0x46b0cb
mov edi, str._APPDATA_
push edi
xor ecx, ecx
call fcn.0040816c
cmp eax, ebx
jne 0x46b0cb
mov edi, str._TEMP_
push edi
xor ecx, ecx
call fcn.0040816c
cmp eax, ebx
jne 0x46b0cb
mov edi, str._SYSTEM_
push edi
xor ecx, ecx
call fcn.0040816c
cmp eax, ebx
je 0x46b044
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x46b0e2
lea eax, [ebp - 0x20c]
push eax
push edi
push esi
call fcn.0040709f
mov eax, esi
call fcn.0040607c
mov edi, 0x53fd2c
jmp 0x46b0f2
mov edi, str._WINDOWS_
push edi
xor ecx, ecx
call fcn.0040816c
cmp eax, ebx
je 0x46b069
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x46b01d
mov edi, str._CUR_DIR_
push edi
xor ecx, ecx
call fcn.0040816c
cmp eax, ebx
je 0x46b0b6
push 0x20a
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004f04c0
add esp, 0xc
push 0x105
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
jmp 0x46b025
mov edi, 0x544e08
push edi
xor ecx, ecx
call fcn.0040816c
cmp eax, ebx
je 0x46b033
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.0046b106
test eax, eax
pop ecx
pop ecx
jne 0x46b025
xor eax, eax
jmp 0x46b101
push 0x53e98c
push edi
push esi
call fcn.0040709f
push edi
xor ecx, ecx
call fcn.0040816c
cmp eax, ebx
jne 0x46b0e6
xor eax, eax
inc eax
pop edi
pop ebx
pop esi
leave
ret

Function at 0x46b106
Capabilities:
Query environment variable

Disassembly:
push 0x14
push 0x54d4d0
call fcn.0050dd4c
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], eax
je 0x46b1b4
cmp dword [ebp + 0xc], eax
je 0x46b1b4
push eax
push eax
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call edi
mov esi, eax
cmp esi, 1
jb 0x46b1b4
mov ebx, 0x103
cmp esi, ebx
ja 0x46b1b4
and dword [ebp - 4], 0
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ed13b
pop ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x46b1b0
lea ecx, [esi + esi]
push ecx
push 0
push eax
call fcn.004f04c0
add esp, 0xc
push esi
push dword [ebp - 0x24]
push dword [ebp + 8]
call edi
test eax, eax
je 0x46b1b0
cmp eax, ebx
ja 0x46b1b0
push eax
push dword [ebp - 0x24]
push ebx
push dword [ebp + 0xc]
call fcn.004f3e12
add esp, 0x10
mov dword [ebp - 0x20], 1
jmp 0x46b1b0
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], 0
je 0x46b1c3
push dword [ebp - 0x1c]
call fcn.004f04b5
pop ecx
mov eax, dword [ebp - 0x20]
call fcn.0050dd87
ret
Function at 0x46b1cc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x46b270
push edi
push 1
push esi
call fcn.004f170a
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x46b26d
push edi
push esi
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x46b266
and dword [ebp - 4], 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x46b266
cmp dword [ebp - 4], 0
je 0x46b266
push 0x10
call fcn.004150cc
mov esi, eax
test esi, esi
pop ecx
je 0x46b26d
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
mov dword [esi + 8], ecx
lea ecx, [ebp - 0x10]
push ecx
mov dword [esi + 4], eax
lea eax, [esi + 0xc]
and dword [eax], 0
push eax
push 0x53e98c
push edi
mov dword [esi], edi
call sub.VERSION.dll_VerQueryValueW
mov eax, esi
jmp 0x46b26f
push edi
call fcn.004f0170
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x46b28d
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
mov esi, eax
mov ax, word [esi + 4]
mov word [ebp - 0x14], ax
mov ax, word [esi + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [ebp - 0x12], ax
call edi
mov word [ebp - 0x10], ax
mov ax, word [esi + 8]
mov word [ebp - 0xe], ax
mov ax, word [esi + 4]
mov word [ebp - 0xc], ax
mov word [ebp - 0xa], 0x4e4
call edi
mov word [ebp - 8], ax
mov word [ebp - 6], 0x4e4
xor edi, edi
mov ebx, 0x104
movzx eax, word [ebp + edi*2 - 0x14]
movzx ecx, word [ebp + edi*2 - 0x12]
inc edi
push 0x544e58
movzx ecx, cx
push ecx
movzx eax, ax
push eax
push str.StringFileInfo_04x_04x_ls
push ebx
lea eax, [ebp - 0x220]
push ebx
push eax
inc edi
call fcn.004f3db1
and dword [ebp - 4], 0
add esp, 0x1c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x220]
push eax
push dword [esi]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x46b333
cmp dword [ebp - 4], 0
jne 0x46b341
cmp edi, 8
jb 0x46b2e0
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
mov esi, dword [ebp - 4]
push esi
call fcn.004f0e34
pop ecx
mov ecx, esi
mov esi, dword [ebp + 8]
call fcn.00407704
mov al, 1
jmp 0x46b33a
Function at 0x46b44d
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push edi
xor edi, edi
push 0x206
lea eax, [ebp - 0x222]
push edi
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], edi
mov word [ebp - 0x224], di
call fcn.004f04c0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push 0x20019
push edi
push str.SYSTEMCurrentControlSetEnumPCI
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0x104
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x46b561
mov eax, dword [ebp - 0x10]
push ebx
mov dword [ebp - 0xc], eax
push esi
lea eax, [ebp - 0x1c]
push eax
push edi
push edi
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc dword [ebp - 8]
test eax, eax
jne 0x46b551
mov ebx, dword [ebp + 8]
xor esi, esi
inc esi
add ebx, 0x48
cmp word [ebp - 0x224], di
je 0x46b511
cmp word [ebx], di
je 0x46b511
push ebx
call fcn.004f0e34
cmp eax, 1
pop ecx
jb 0x46b511
cmp dword [ebp - 4], eax
jbe 0x46b511
push eax
lea eax, [ebp - 0x224]
push ebx
push eax
call fcn.004f1883
add esp, 0xc
test eax, eax
je 0x46b53b
inc esi
add ebx, 0x40
cmp esi, 3
jb 0x46b4dd
push 0x208
lea eax, [ebp - 0x224]
push edi
push eax
call fcn.004f04c0
add esp, 0xc
mov dword [ebp - 4], 0x104
jmp 0x46b4af
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
shl esi, 6
mov eax, dword [esi + eax + 4]
mov dword [ecx], eax
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0xc], edi
pop esi
pop ebx
je 0x46b561
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
pop edi
leave
ret 8

Function at 0x46b63c
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.004f04c0
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 0x46b6f2
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.004f04c0
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.004f3e12
push 0xffffffffffffffff
push dword [ebx + 0x55d9cc]
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.004f5ef7
add esp, 0x2c
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46b6ee
add ebx, 4
cmp ebx, 4
jb 0x46b68e
jmp 0x46b6f2
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46b6fa
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 0x46b72a
mov byte [ebp - 1], bl
jmp 0x46b78d
push esi
push 0x80
call fcn.004f38fa
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 0x46b765
mov byte [ebp - 1], bl
jmp 0x46b778
push dword [ebp + 0x10]
push esi
call fcn.004f1ac7
test eax, eax
pop ecx
pop ecx
je 0x46b778
mov byte [ebp - 1], 1
cmp esi, ebx
je 0x46b783
push esi
call fcn.004f0170
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 0x46b793
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.004f04c0
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 0x46b849
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.004f04c0
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.004f3e12
push 0xffffffffffffffff
push dword [ebx + 0x55d9d0]
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.004f5ef7
add esp, 0x2c
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46b845
add ebx, 4
cmp ebx, 0x14
jb 0x46b7e5
jmp 0x46b849
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46b915
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.004f04c0
mov esi, str.DiskVirtual_HD
push esi
mov dword [ebp - 0xc], 0x104
call fcn.004f0e34
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 0x46b9ff
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 0x46b9f1
cmp word [ebp - 0x228], bx
je 0x46b9cf
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0xc], eax
jb 0x46b9cf
push eax
lea eax, [ebp - 0x228]
push esi
push eax
call fcn.004f1883
add esp, 0xc
test eax, eax
je 0x46b9ed
push 0x208
lea eax, [ebp - 0x228]
push ebx
push eax
call fcn.004f04c0
add esp, 0xc
mov dword [ebp - 0xc], 0x104
jmp 0x46b984
mov byte [ebp - 1], 1
cmp dword [ebp - 8], ebx
je 0x46b9ff
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret
Function at 0x46bc22
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.0046ba06
xor edi, edi
inc edi
test eax, eax
je 0x46bc4a
mov esi, edi
mov dword [ebp - 4], edi
lea ecx, [ebp + 0xb]
call fcn.0046ba5c
test eax, eax
jne 0x46bc6e
lea ecx, [ebp + 0xb]
call fcn.0046ba72
test eax, eax
jne 0x46bc6e
lea ecx, [ebp + 0xb]
call fcn.0046ba88
test eax, eax
je 0x46bc71
or esi, 2
call fcn.0046baed
test eax, eax
je 0x46bc80
or esi, 4
mov dword [ebp - 4], edi
xor eax, eax
cmp dword [ebp - 4], eax
je 0x46bc98
mov dword [ebx], edi
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
jmp 0x46bdc7
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 0x46bcc2
or esi, 0x10
mov dword [ebx], 2
jmp 0x46bc89
call fcn.0046b793
test al, al
je 0x46bcd2
mov eax, 0x1002
jmp 0x46bcf0
call fcn.0046b851
test al, al
je 0x46bce2
mov eax, 0x1003
jmp 0x46bcf0
call fcn.0046b915
test al, al
je 0x46bd05
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 0x46bdc7
call fcn.0046b63c
test al, al
jne 0x46bd20
call fcn.0046b601
test al, al
jne 0x46bd20
call fcn.0046b569
test al, al
je 0x46bd2b
mov dword [ebx], 4
jmp 0x46bc89
lea esi, [ebp - 0xc8]
mov dword [ebp - 4], 3
call fcn.0046b3c3
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.0046b44d
test eax, eax
je 0x46bd85
mov eax, dword [ebp - 4]
test eax, eax
je 0x46bd5b
cmp eax, edi
je 0x46bd5b
cmp eax, 2
jne 0x46bd85
cmp eax, edi
mov ecx, dword [ebp + 8]
mov dword [ecx], edi
mov dword [ebx], 5
jne 0x46bd75
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x3001
jmp 0x46bdc7
cmp eax, 2
jne 0x46bdc7
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x3002
jmp 0x46bdc7
push str.SbieDll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x46bd9c
mov dword [ebx], 6
jmp 0x46bdbc
call fcn.0046bdcd
test eax, eax
je 0x46bdad
mov dword [ebx], 7
jmp 0x46bdbc
call fcn.0046be7d
test eax, eax
je 0x46bdc7
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 0x46c020
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 0x46c070
mov ax, word [esp]
cmp al, 2
jne 0x46c06a
cmp ah, al
jne 0x46c06a
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004f6226
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.004f6226
add esp, 0x194
ret
Function at 0x475d80
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 0x475db2
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 0x475f10
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x140]
test ecx, ecx
je 0x475f2b
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 0x475f5f
cmp eax, 2
jg 0x475f5f
mov ecx, dword [esi + 0xe0]
push ecx
push 1
lea edx, [eax + eax*2 + 0x515da0]
push 2
push edx
call fcn.004f2ae7
mov eax, dword [esi + 0xe0]
push eax
push 1
push edi
push ebx
call fcn.004f2ae7
add esp, 0x20
xor eax, eax
ret

Function at 0x476190
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 0x4761d5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4761bb
xor eax, eax
pop esi
ret
push eax
push edi
call fcn.004807e0
push eax
mov eax, dword [edi]
push str.Send_failure:__s
push eax
call fcn.004760f0
add esp, 0x14
mov eax, esi
pop esi
ret
Function at 0x476840
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 0x476884
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004807e0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00476060
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00476060
add esp, 8
pop esi
pop ecx
ret
Function at 0x476cd0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x458]
cmp eax, 0xffffffff
je 0x476d36
mov ecx, dword [ecx + 0x44c]
mov edx, dword [ecx]
cmp dword [edx + eax*4], 0
lea eax, [edx + eax*4]
je 0x476d36
mov ecx, dword [esp + 0xc]
test ecx, ecx
mov eax, dword [eax]
je 0x476cfc
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 0x476d2c
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 0x476d32
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 0x478790
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 0x4787c2
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.0046d2b0
mov ecx, dword [esp + 0x20]
push ecx
call dword [0x55800c]
add esp, 8
cmp eax, ebx
mov dword [ebp], eax
jne 0x478809
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 0x478846
push ebp
jmp 0x478899
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 0x478894
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, ebx
mov dword [esi + 0x1c], eax
jne 0x478871
mov ecx, dword [esp + 0xc]
push ecx
jmp 0x478899
push ebx
push ebx
push 1
push ebx
call ebp
cmp eax, ebx
mov dword [esi + 0x20], eax
jne 0x478886
mov edx, dword [esp + 0xc]
push edx
jmp 0x478899
push ebx
push ebx
push 1
push ebx
call ebp
cmp eax, ebx
mov dword [esi + 0x18], eax
jne 0x4788b2
mov eax, dword [esp + 0xc]
push eax
call fcn.004786b0
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 0x4785e0
push ebx
push ebx
call fcn.004f3ab7
add esp, 0x18
cmp eax, ebx
mov dword [esi], eax
jne 0x4788f1
call fcn.004f7370
mov edx, dword [eax]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0xc]
push eax
call fcn.004786b0
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 0x478930
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 0x47895d
mov eax, dword [ecx + 0x170]
test eax, eax
jne 0x47895d
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 0x4789b9
mov ecx, dword [esi]
push 0x1388
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x478a0f
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 0x4789d9
mov edx, dword [edi + 0x2c4]
mov dword [eax], edx
xor esi, esi
cmp dword [edi + 0x2c4], esi
jne 0x478ac0
mov ebp, dword [ebp]
cmp ebp, 0x1b
jne 0x478a2b
push ebp
mov esi, ebp
call fcn.0047fea0
push eax
mov eax, dword [esp + 0x1c]
push str.Could_not_resolve_host:__s
push eax
call fcn.004760f0
add esp, 0x10
jmp 0x478ac0
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 0x4789c9
cmp byte [edi + 0x2c8], 0
je 0x478a91
cmp byte [edi + 0x12b], 0
mov ecx, dword [edi + 0x2cc]
push ecx
push edi
je 0x478a6b
call fcn.004807e0
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.004760f0
add esp, 0x18
mov esi, 5
jmp 0x478ac0
call fcn.004807e0
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.004760f0
add esp, 0x18
mov esi, 6
jmp 0x478ac0
cmp ebp, 0xffffffff
je 0x478aa2
cmp dword [edi + 0x2cc], 0x2afc
jne 0x478abb
mov ecx, dword [edi + 0x8c]
mov edx, dword [esp + 0x14]
push ecx
push str.Resolving_host_timed_out:__s
push edx
call fcn.004760f0
add esp, 0xc
mov esi, 0x1c
lea eax, [edi + 0x2bc]
push eax
call fcn.004786b0
add esp, 4
cmp dword [edi + 0x2c4], 0
mov eax, esi
jne 0x478ae0
mov byte [edi + 0x128], bl
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x478b90
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.00480a00
add esp, 0xc
test eax, eax
jle 0x478bd4
mov edx, dword [esp + 0x18]
push edx
push esi
lea eax, [esp + 0x18]
push eax
push 2
call fcn.00478400
add esp, 0x10
pop edi
pop esi
pop ebx
ret
push ebp
mov ebp, dword [esp + 0x1c]
push ebp
push esi
call fcn.00478790
add esp, 8
test al, al
je 0x478bf8
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.004807e0
push eax
push esi
push str.init_resolve_thread___failed_for__s___s_n
push ebx
call fcn.00476060
add esp, 0x18
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x478c45
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004807e0
push eax
push ebp
push esi
push str.gethostbyname_2__failed_for__s:_d___s_n
push ebx
call fcn.00476060
add esp, 0x1c
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
ret
push ebp
push eax
call fcn.004782d0
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
ret