joyce8/EMBER2024-capa huggingface dataset:
Function at 0x464cef
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push 0x38
mov eax, 0x67387b
call fcn.00626519
xor dl, dl
lea ecx, [ebp - 0x40]
xor bl, bl
call fcn.00464f39
xor ecx, ecx
lea eax, [ebp - 0x40]
push ecx
push ecx
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x2c], 8
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
cmovae eax, dword [ebp - 0x40]
push 3
push ecx
inc ecx
push ecx
push closesocket
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x464dc2
mov dl, 1
lea ecx, [ebp - 0x28]
call fcn.00464f39
lea ecx, [ebp - 0x40]
call fcn.004654e6
test al, al
jne 0x464d8f
lea ecx, [ebp - 0x28]
call fcn.004654e6
test al, al
je 0x464d8f
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
push 0
cmovae ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x464d8f
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0
push 3
push 0
push 1
push closesocket
push eax
call edi
xor edi, edi
lea ecx, [ebp - 0x28]
push edi
push 1
mov esi, eax
call fcn.00428ecb
cmp esi, 0xffffffff
je 0x464dff
jmp 0x464dc4
xor edi, edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x10
jb 0x464df8
push edi
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], edi
push eax
push 0x10
push section..QMGuid
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x464df8
cmp dword [ebp - 0x44], 0x10
push 1
movzx ebx, bl
pop eax
cmove ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea ecx, [ebp - 0x40]
push edi
inc eax
push eax
call fcn.00428ecb
mov al, bl
call fcn.006264c3
ret 4

Function at 0x464e16
Capabilities:
Write file on windows

Disassembly:
push 0x38
mov eax, 0x67387b
call fcn.00626519
xor dl, dl
lea ecx, [ebp - 0x40]
xor bl, bl
call fcn.00464f39
xor ecx, ecx
lea eax, [ebp - 0x40]
push ecx
push ecx
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x2c], 8
push 2
cmovae eax, dword [ebp - 0x40]
push ecx
inc ecx
push ecx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x464e95
mov dl, 1
lea ecx, [ebp - 0x28]
call fcn.00464f39
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
push ecx
push ecx
push 2
push ecx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 1
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.00428ecb
cmp esi, 0xffffffff
je 0x464ec1
push 0
lea eax, [ebp - 0x44]
push eax
push 0x10
push section..QMGuid
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x464eba
cmp dword [ebp - 0x44], 0x10
push 1
movzx ebx, bl
pop eax
cmove ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea ecx, [ebp - 0x40]
push 0
inc eax
push eax
call fcn.00428ecb
mov al, bl
call fcn.006264c3
ret 4
Function at 0x464f39
Capabilities:
Get common file path

Disassembly:
push 0x234
mov eax, 0x6738cd
call fcn.00626519
mov bl, dl
mov esi, ecx
mov dword [ebp - 0x23c], esi
xor edx, edx
mov dword [ebp - 0x240], esi
mov dword [ebp - 0x238], edx
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], edx
jb 0x464f74
mov eax, dword [esi]
jmp 0x464f76
mov eax, esi
xor ecx, ecx
mov word [eax], cx
push 0x208
xor edi, edi
mov dword [ebp - 4], edx
push edx
lea eax, [ebp - 0x21c]
inc edi
push eax
mov dword [ebp - 0x238], edi
call fcn.0063e100
add esp, 0xc
test bl, bl
push edi
push 0x23
pop eax
push 0x1a
pop ecx
cmovne eax, ecx
xor edi, edi
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x465073
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], ax
cmp word [ebp - 0x21c], ax
je 0x464ff0
lea eax, [ebp - 0x21c]
push eax
call fcn.00642eb3
pop ecx
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x234]
call fcn.004284f9
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x234]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.004253e9
push 0
push 1
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0
call fcn.00428ecb
mov edi, 0x6d9488
test bl, bl
jne 0x46503c
mov edi, 0x6d94b0
push edi
call fcn.00642eb3
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00425488
mov ecx, esi
call fcn.0046507b
test al, al
jne 0x46505e
mov ecx, esi
call fcn.00465145
mov edi, 0x6d94d4
push edi
call fcn.00642eb3
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00425488
mov eax, esi
call fcn.006264c3
ret
Function at 0x465e44
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd40
mov eax, dword [0x70a034]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor bl, bl
mov dword [ebp - 0xd3c], edx
push edi
mov dword [ebp - 0xd38], ecx
xor esi, esi
mov dword [ebp - 0xd40], eax
test bl, bl
jne 0x46608a
push 0x200
lea eax, [ebp - 0x50c]
push 0
push eax
call fcn.0063e100
push esi
push 0x6d94fc
push 0xffffffffffffffff
lea eax, [ebp - 0x50c]
push 0xff
push eax
call fcn.0044942a
add esp, 0x20
xor eax, eax
push eax
push eax
push 3
push eax
push 3
push eax
lea eax, [ebp - 0x50c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x466080
and dword [ebp - 0xd34], 0
lea eax, [ebp - 0xd18]
push 0xc
push 0
push eax
call fcn.0063e100
xor eax, eax
push 0x800
push eax
mov dword [ebp - 0xd18], eax
mov dword [ebp - 0xd14], eax
lea eax, [ebp - 0xd0c]
push eax
call fcn.0063e100
add esp, 0x18
lea eax, [ebp - 0xd34]
push 0
push eax
push 0x800
lea eax, [ebp - 0xd0c]
push eax
push 0xc
lea eax, [ebp - 0xd18]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x466073
push 0x100
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.0063e100
push 0x100
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0063e100
push 0x100
lea eax, [ebp - 0x30c]
push 0
push eax
call fcn.0063e100
mov edx, dword [ebp - 0xcfc]
lea eax, [ebp - 0x20c]
push eax
push 0
lea ecx, [ebp - 0xd0c]
call fcn.004658d0
mov edx, dword [ebp - 0xcf8]
lea eax, [ebp - 0x30c]
push eax
push 0
lea ecx, [ebp - 0xd0c]
call fcn.004658d0
mov edx, dword [ebp - 0xcf4]
lea eax, [ebp - 0x10c]
push eax
push 1
lea ecx, [ebp - 0xd0c]
call fcn.004658d0
movsx eax, byte [ebp - 0x10c]
push eax
call fcn.00651ddc
add esp, 0x40
test eax, eax
jne 0x465fe9
movsx eax, byte [ebp - 0xf9]
push eax
call fcn.00651ddc
pop ecx
test eax, eax
je 0x466079
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0xd30]
call fcn.004292cc
mov ecx, dword [ebp - 0xd38]
push eax
call fcn.00428b23
xor ebx, ebx
lea ecx, [ebp - 0xd30]
push ebx
push 1
call fcn.00429656
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0xd30]
call fcn.004292cc
mov ecx, dword [ebp - 0xd3c]
push eax
call fcn.00428b23
push ebx
push 1
lea ecx, [ebp - 0xd30]
call fcn.00429656
lea eax, [ebp - 0x30c]
push eax
lea ecx, [ebp - 0xd30]
call fcn.004292cc
mov ecx, dword [ebp - 0xd40]
push eax
call fcn.00428b23
push ebx
push 1
lea ecx, [ebp - 0xd30]
call fcn.00429656
mov bl, 1
jmp 0x466079
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, 0x10
jl 0x465e73
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00625325
mov esp, ebp
pop ebp
ret
Function at 0x466501
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2aa4
call fcn.00626140
mov eax, dword [0x70a034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov edi, ecx
push 0
push eax
call fcn.0063e100
add esp, 0xc
lea eax, [ebp - 0x20c]
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x6d9548
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00650812
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x2aa4], eax
test eax, eax
jne 0x466578
xor al, al
jmp 0x466699
push 0x6d45fc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x46666c
lea ecx, [ebp - 0x2aa0]
mov dword [ebp - 0x2aa0], 0x2880
push ecx
lea ecx, [ebp - 0x2a8c]
push ecx
call eax
test eax, eax
jne 0x46666c
push ebx
push 3
pop eax
mov dword [ebp - 0x2a9c], eax
lea esi, [ebp - 0x2a8c]
mov ebx, edi
lea eax, [ebp - 0x2a94]
sub ebx, eax
lea ecx, [esi + 8]
call fcn.004666a9
push 6
mov dword [ebp - 0x2a98], eax
lea eax, [ebp - 0x2a94]
push 0
push eax
call fcn.0063e100
add esp, 0xc
xor edx, edx
lea ecx, [ebp - 0x2a94]
add ecx, edx
mov al, byte [ebx + ecx]
cmp al, byte [ecx]
jne 0x466608
inc edx
cmp edx, 6
jb 0x4665eb
mov ecx, dword [ebp - 0x2a98]
jmp 0x466626
mov eax, dword [esi + 0x1a0]
cmp eax, 6
je 0x466618
cmp eax, 0x17
jne 0x466661
mov ecx, dword [ebp - 0x2a98]
cmp dword [ebp - 0x2a9c], ecx
jle 0x466661
mov al, byte [esi + 0x194]
mov byte [edi], al
mov al, byte [esi + 0x195]
mov byte [edi + 1], al
mov al, byte [esi + 0x196]
mov byte [edi + 2], al
mov al, byte [esi + 0x197]
mov byte [edi + 3], al
mov al, byte [esi + 0x198]
mov byte [edi + 4], al
mov al, byte [esi + 0x199]
mov byte [edi + 5], al
mov dword [ebp - 0x2a9c], ecx
mov esi, dword [esi]
test esi, esi
jne 0x4665c8
pop ebx
push dword [ebp - 0x2aa4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 6
lea eax, [ebp - 0x2a94]
push 0
push eax
call fcn.0063e100
add esp, 0xc
lea eax, [ebp - 0x2a94]
mov ecx, edi
push eax
call fcn.00466375
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00625325
mov esp, ebp
pop ebp
ret
Function at 0x4666a9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x70a034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor eax, eax
push 3
pop esi
inc eax
mov dword [ebp - 0x10c], 0x104
mov dword [ebp - 0x110], eax
mov ebx, ecx
lea eax, [ebp - 0x11c]
xor ecx, ecx
push eax
push 0x20019
push ecx
push 0x6d9568
push closesocket
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x114], ecx
call edi
test eax, eax
jne 0x466864
push ebx
push 0x6d95b8
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push 0x103
push eax
call fcn.00463b74
add esp, 0x14
lea eax, [ebp - 0x118]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x11c]
call edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x46685c
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 4
pop eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push 0x6d95c8
push dword [ebp - 0x118]
call ebx
test eax, eax
jne 0x466854
push 0x104
push eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x110], 1
push eax
mov dword [ebp - 0x10c], 0x103
call fcn.0063e100
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push 0x6d95d8
push dword [ebp - 0x118]
call ebx
test eax, eax
jne 0x466854
mov eax, dword [ebp - 0x114]
cmp eax, 1
jne 0x46684b
mov ebx, 0x6d95e8
push ebx
call fcn.006418e0
push eax
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.006538f0
add esp, 0x10
test eax, eax
jne 0x46681a
xor esi, esi
jmp 0x466854
mov eax, dword [ebp - 0x114]
cmp eax, 1
jne 0x46684b
push ebx
call fcn.006418e0
push eax
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.006538f0
add esp, 0x10
test eax, eax
je 0x466845
push 2
pop esi
jmp 0x466854
mov eax, dword [ebp - 0x114]
cmp eax, 2
push 1
pop eax
cmove esi, eax
push dword [ebp - 0x118]
call edi
push dword [ebp - 0x11c]
call edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00625325
mov esp, ebp
pop ebp
ret
Function at 0x466a9d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x70a034]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, ecx
mov dword [ebp - 0x18], edx
push edi
mov dword [ebp - 0x20], eax
push dword [esi]
call ebx
push dword [esi + 4]
mov dword [ebp - 0x1c], eax
call ebx
mov edi, dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebp - 0x14]
xor esi, esi
sub edi, eax
lea eax, [edi + esi*4]
push dword [ebp + eax - 0x14]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp + esi*4 - 0x14], eax
inc esi
cmp esi, 4
jl 0x466ad9
mov edi, dword [ebp - 0x1c]
xor edx, edx
push 0x10
pop esi
mov ecx, ebx
lea edx, [edx - 0x61c88647]
shl ecx, 4
mov eax, ebx
add ecx, dword [ebp - 0x14]
shr eax, 5
add eax, dword [ebp - 0x10]
xor ecx, eax
lea eax, [edx + ebx]
xor ecx, eax
add edi, ecx
mov ecx, edi
mov eax, edi
shr ecx, 5
add ecx, dword [ebp - 8]
shl eax, 4
add eax, dword [ebp - 0xc]
xor ecx, eax
lea eax, [edx + edi]
xor ecx, eax
add ebx, ecx
sub esi, 1
jne 0x466af8
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push edi
call esi
mov edi, dword [ebp - 0x20]
push ebx
mov dword [edi], eax
call esi
mov ecx, dword [ebp - 4]
mov dword [edi + 4], eax
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00625325
mov esp, ebp
pop ebp
ret
Function at 0x46d980
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x70a034]
xor eax, esp
mov dword [esp + 0x40], eax
push esi
mov esi, dword [ebp + 8]
lea ecx, [esp + 8]
xorps xmm0, xmm0
mov dword [esp + 0x40], 0
push 0x6cac84
mov edx, esi
movups xmmword [esp + 0x24], xmm0
movups xmmword [esp + 0x34], xmm0
call fcn.00438812
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x46d9ca
mov eax, dword [esi]
jmp 0x46d9cc
mov eax, esi
lea ecx, [esp + 0x20]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x46d9f3
cmp dword [esp + 0x1c], 8
lea eax, [esp + 8]
cmovae eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x1c], 8
lea eax, [esp + 8]
cmovae eax, dword [esp + 8]
cmp dword [esi + 0x14], 8
jb 0x46da09
mov esi, dword [esi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov eax, dword [esp + 0x1c]
cmp eax, 8
jb 0x46da52
mov ecx, dword [esp + 8]
inc eax
cmp eax, 0x7fffffff
ja 0x46da64
add eax, eax
cmp eax, 0x1000
jb 0x46da49
test cl, 0x1f
jne 0x46da69
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x46da6e
sub ecx, eax
cmp ecx, 4
jb 0x46da73
cmp ecx, 0x23
ja 0x46da78
mov ecx, eax
push ecx
call fcn.0047fa70
add esp, 4
mov ecx, dword [esp + 0x44]
pop esi
xor ecx, esp
call fcn.00625325
mov esp, ebp
pop ebp
ret 4
call fcn.00641881
call fcn.00641881
call fcn.00641881
call fcn.00641881
call fcn.00641881
int3

Function at 0x473b00
Capabilities:
Create directory

Disassembly:
cmp dword [ecx + 0x14], 0x10
jb 0x473b08
mov ecx, dword [ecx]
push ebx
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, 1
sete bl
test bl, bl
je 0x473b20
mov al, 1
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 3
je 0x473b3d
sub eax, 2
je 0x473b3d
sub eax, 0xb2
jne 0x473b3f
mov bl, 1
mov al, bl
pop ebx
ret
xor bl, bl
mov al, bl
pop ebx
ret
Function at 0x474420
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea ecx, [ebp - 0x18]
call fcn.004743f0
cmp dword [eax + 0x14], 0x10
jb 0x474436
mov eax, dword [eax]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov eax, dword [ebp - 4]
cmp eax, 0x10
jb 0x474477
mov ecx, dword [ebp - 0x18]
inc eax
cmp eax, 0x1000
jb 0x47446e
test cl, 0x1f
jne 0x474489
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x47448e
sub ecx, eax
cmp ecx, 4
jb 0x474493
cmp ecx, 0x23
ja 0x474498
mov ecx, eax
push ecx
call fcn.0047fa70
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete al
mov esp, ebp
pop ebp
ret
call fcn.00641881
call fcn.00641881
call fcn.00641881
call fcn.00641881
int3

Function at 0x47c790
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x70a034]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x47c7eb
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x10000
push eax
push 0x1002
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00625325
mov esp, ebp
pop ebp
ret
Function at 0x47c800
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x70a034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x47c835
cmp byte [eax], 0
jne 0x47c835
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00625325
mov esp, ebp
pop ebp
ret 8
call fcn.0047c790
mov ecx, eax
mov dword [esi], ecx
cmp ecx, 0xffffffff
je 0x47c822
push 4
lea eax, [esi + 0x10]
push eax
push 0x1006
push 0xffff
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 0x8004667e
push dword [esi]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x47c822
mov ecx, dword [ebp + 8]
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
mov eax, 2
mov word [ebp - 0x20], ax
mov ax, word [ecx + 4]
mov word [ebp - 0x1e], ax
mov eax, dword [ecx]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push 0x10
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x47c822
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x8004667e
push dword [esi]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x47c822
mov eax, dword [esi]
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x224], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x124], 1
push eax
lea eax, [ebp - 0x124]
mov dword [ebp - 0x228], 1
push eax
push 0
push 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.WS2_32.dll_select]
lea eax, [ebp - 0x124]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
setne al
mov byte [esi + 4], al
test al, al
jne 0x47c94a
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x47c940
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], 0xffffffff
mov byte [esi + 4], 0
mov ecx, dword [ebp - 4]
mov al, byte [esi + 4]
xor ecx, ebp
pop esi
call fcn.00625325
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
cmp byte [ebx + 4], 0
je 0x47c9d9
mov edx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
mov esi, edx
test edx, edx
jle 0x47c9cf
nop dword [eax]
mov eax, dword [ebx + 8]
test eax, eax
je 0x47c98c
cmp byte [eax], 0
je 0x47c9c2
mov ecx, dword [ebx]
cmp ecx, 0xffffffff
je 0x47c9b6
mov eax, dword [ebp + 8]
push 0
sub eax, esi
push esi
add eax, edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
test edi, edi
jle 0x47c9b9
mov edx, dword [ebp + 0xc]
sub esi, edi
test esi, esi
jle 0x47c9c2
jmp 0x47c980
or edi, 0xffffffff
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [ebp + 0xc]
test edi, edi
jle 0x47c9cf
pop edi
pop esi
mov eax, edx
pop ebx
pop ebp
ret 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret 8
or eax, 0xffffffff
pop ebx
pop ebp
ret 8
Function at 0x47c9f0
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]
push esi
push edi
mov edi, ecx
mov byte [ebp - 1], 1
mov eax, dword [edi + 8]
test eax, eax
je 0x47ca14
cmp byte [eax], 0
jne 0x47ca14
or esi, 0xffffffff
jmp 0x47ca53
mov ecx, dword [edi]
cmp ecx, 0xffffffff
je 0x47ca36
push 0
push 0x200
lea eax, [edi + 0x14]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x47ca3b
jmp 0x47ca39
or esi, 0xffffffff
call ebx
test esi, esi
jle 0x47ca51
mov ecx, dword [ebp + 8]
lea eax, [edi + 0x14]
push esi
push eax
call fcn.00423950
mov cl, byte [ebp - 1]
jmp 0x47ca68
je 0x47ca77
call ebx
push eax
push str.recv_failed_with_error:__d_n
call fcn.0047ccc0
add esp, 8
xor cl, cl
mov byte [ebp - 1], cl
test esi, esi
jg 0x47ca03
pop edi
pop esi
mov al, cl
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x47ca90
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x675c3b
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x70a034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x234], ecx
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x23c], eax
mov eax, dword [0x71db14]
test al, 1
jne 0x47cb0a
push 0xa8
or eax, 1
push 0
push 0x71db20
mov dword [0x71db14], eax
call fcn.0063e100
add esp, 0xc
call fcn.0046e770
push 0x682750
call fcn.00625859
add esp, 4
mov al, byte [0x71db22]
mov ecx, 0x7a120
test al, al
mov edx, 0x2dc6c0
mov eax, dword [0x71db14]
cmovne ecx, edx
mov dword [ebp - 0x238], ecx
test al, 1
jne 0x47cb5b
push 0xa8
or eax, 1
push 0
push 0x71db20
mov dword [0x71db14], eax
call fcn.0063e100
add esp, 0xc
call fcn.0046e770
push 0x682750
call fcn.00625859
add esp, 4
mov al, byte [0x71db22]
mov ecx, 0xbb8
test al, al
mov esi, 0x1f4
push 0x218
lea eax, [ebp - 0x228]
cmovne esi, ecx
push 0
push eax
call fcn.0063e100
mov eax, dword [ebp - 0x234]
add esp, 0xc
mov dword [ebp - 0x228], 0xffffffff
mov byte [ebp - 0x224], 0
mov dword [ebp - 0x218], esi
mov eax, dword [eax + 4]
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x21c], eax
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 0x230], 0
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [ebx + 0x14], 0x10
mov word [ebp - 0x22c], ax
jb 0x47cbe0
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x47cbf8
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x230], eax
push ecx
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x228]
call fcn.0047c800
test al, al
je 0x47cc52
cmp dword [edi + 0x14], 0x10
mov esi, dword [edi + 0x10]
jb 0x47cc1a
mov edi, dword [edi]
push esi
push edi
lea ecx, [ebp - 0x228]
call fcn.0047c960
cmp eax, esi
jne 0x47cc52
push 1
push dword [ebp - 0x228]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [ebp - 0x23c]
lea ecx, [ebp - 0x228]
call fcn.0047c9f0
test al, al
je 0x47cc52
mov bl, 1
jmp 0x47cc54
xor bl, bl
mov eax, dword [ebp - 0x228]
cmp eax, 0xffffffff
je 0x47cc66
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00625325
mov esp, ebp
pop ebp
ret 0x10