joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439c60
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x628
mov eax, dword [0x5635bc]
xor eax, ebp
mov dword [ebp - 8], eax
mov word [ebp - 0x418], 0
push 0x206
push 0
lea eax, [ebp - 0x416]
push eax
call fcn.00462710
add esp, 0xc
mov word [ebp - 0x210], 0
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.00462710
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x418]
push eax
call fcn.0046456f
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.0046456f
add esp, 8
lea eax, [ebp - 0x418]
push eax
call fcn.00467e29
add esp, 4
lea ecx, [ebp - 0x210]
push ecx
call fcn.00467e29
add esp, 4
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x418]
push eax
call fcn.004657ea
add esp, 8
test eax, eax
jne 0x439d14
jmp 0x439e3b
mov dword [ebp - 4], 0
mov dword [ebp - 0x41c], 0
mov ecx, 1
test ecx, ecx
je 0x439e2d
mov word [ebp - 0x628], 0
push 0x206
push 0
lea edx, [ebp - 0x626]
push edx
call fcn.00462710
add esp, 0xc
cmp dword [ebp - 0x41c], 0
jne 0x439d74
mov eax, dword [ebp + 0xc]
push eax
push str._s.bak
lea ecx, [ebp - 0x628]
push ecx
call fcn.004656cb
add esp, 0xc
jmp 0x439d93
mov edx, dword [ebp - 0x41c]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0x515af8
lea ecx, [ebp - 0x628]
push ecx
call fcn.004656cb
add esp, 0x10
lea edx, [ebp - 0x628]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x439db1
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x628]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004680b5
add esp, 8
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x439dfd
push 5
push 0
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x439e2d
push 5
push 0
lea ecx, [ebp - 0x628]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp dword [ebp - 0x41c], 0xa
jl 0x439e19
jmp 0x439e3b
mov edx, dword [ebp - 0x41c]
add edx, 1
mov dword [ebp - 0x41c], edx
jmp 0x439d25
push 5
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004626fa
mov esp, ebp
pop ebp
ret
Function at 0x439fa0
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x5635bc]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x439fc6
jmp 0x43a158
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x439fde
jmp 0x43a158
mov word [ebp - 0x210], 0
push 0x206
push 0
lea edx, [ebp - 0x20e]
push edx
call fcn.00462710
add esp, 0xc
mov word [ebp - 0x420], 0
push 0x206
push 0
lea eax, [ebp - 0x41e]
push eax
call fcn.00462710
add esp, 0xc
lea ecx, [ebp - 0x420]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004396c0
add esp, 8
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x424], 0
mov ecx, 1
test ecx, ecx
je 0x43a158
mov dword [ebp - 0x428], 1
mov word [ebp - 0x630], 0
push 0x206
push 0
lea edx, [ebp - 0x62e]
push edx
call fcn.00462710
add esp, 0xc
cmp dword [ebp - 0x424], 0
jne 0x43a0b8
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x420]
push ecx
push str._s_s.del
lea edx, [ebp - 0x630]
push edx
call fcn.004656cb
add esp, 0x10
jmp 0x43a0e1
mov eax, dword [ebp - 0x424]
push eax
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x420]
push edx
push str._s_s.del_d
lea eax, [ebp - 0x630]
push eax
call fcn.004656cb
add esp, 0x14
lea ecx, [ebp - 0x630]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43a105
lea edx, [ebp - 0x630]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x428], 0
jne 0x43a12d
cmp dword [ebp - 0x424], 0xa
jl 0x43a119
jmp 0x43a158
mov eax, dword [ebp - 0x424]
add eax, 1
mov dword [ebp - 0x424], eax
jmp 0x43a055
lea ecx, [ebp - 0x630]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004680b5
add esp, 8
push 5
push 0
lea eax, [ebp - 0x630]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x43a158
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004626fa
mov esp, ebp
pop ebp
ret
Function at 0x43a4d0
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x5635bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov word [ebp - 0x600], 0
push 0x206
push 0
lea eax, [ebp - 0x5fe]
push eax
call fcn.00462710
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x600]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
lea edx, [ebp - 0x600]
push edx
call fcn.0040c580
add esp, 8
mov word [eax + 2], 0
mov dword [ebp - 0x814], 0x1f4
mov word [ebp - 0x3f0], 0
push 0x3e6
push 0
lea eax, [ebp - 0x3ee]
push eax
call fcn.00462710
add esp, 0xc
lea ecx, [ebp - 0x600]
push ecx
push str._sxxxx.log
lea edx, [ebp - 0x808]
push edx
call fcn.004656cb
add esp, 0xc
lea eax, [ebp - 0x600]
push eax
push str._slog.txt
lea ecx, [ebp - 0x808]
push ecx
call fcn.004656cb
add esp, 0xc
lea edx, [ebp + 0xc]
mov dword [ebp - 0x80c], edx
mov eax, dword [ebp - 0x80c]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x814]
sub edx, 1
push edx
lea eax, [ebp - 0x3f0]
push eax
call fcn.0046828e
add esp, 0x10
mov ecx, dword [ebp - 0x814]
mov word [ebp + ecx*2 - 0x3f2], 0
mov dword [ebp - 0x810], 0
lea edx, [ebp - 0x808]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43a5ee
mov dword [ebp - 0x810], 1
push 0x515c20
lea eax, [ebp - 0x808]
push eax
call fcn.004681a9
add esp, 8
mov dword [ebp - 0x3f4], eax
cmp dword [ebp - 0x3f4], 0
je 0x43a6cc
cmp dword [ebp - 0x810], 0
jne 0x43a641
mov word [ebp - 0x820], 0xfeff
mov ecx, dword [ebp - 0x3f4]
push ecx
push 2
push 1
lea edx, [ebp - 0x820]
push edx
call fcn.004646bb
add esp, 0x10
lea eax, [ebp - 0x3f0]
push eax
call fcn.00462aa7
add esp, 4
mov dword [ebp - 0x818], eax
mov ecx, dword [ebp - 0x3f4]
push ecx
mov edx, dword [ebp - 0x818]
shl edx, 1
push edx
push 1
lea eax, [ebp - 0x3f0]
push eax
call fcn.004646bb
add esp, 0x10
mov word [ebp - 0x81c], 0xd
mov ecx, dword [ebp - 0x3f4]
push ecx
push 2
push 1
lea edx, [ebp - 0x81c]
push edx
call fcn.004646bb
add esp, 0x10
mov word [ebp - 0x81c], 0xa
mov eax, dword [ebp - 0x3f4]
push eax
push 2
push 1
lea ecx, [ebp - 0x81c]
push ecx
call fcn.004646bb
add esp, 0x10
mov edx, dword [ebp - 0x3f4]
push edx
call fcn.00465052
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004626fa
mov esp, ebp
pop ebp
ret

Function at 0x43bcb0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov byte [eax + 0x68], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], 0
mov eax, dword [ebp - 4]
mov dword [eax], 0x67452301
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], 0xefcdab89
mov edx, dword [ebp - 4]
mov dword [edx + 8], 0x98badcfe
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0x10325476
mov esp, ebp
pop ebp
ret
Function at 0x43d140
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 0xb7
setne dl
mov eax, dword [ebp - 4]
mov dword [eax + 4], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x43d430
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
add eax, 0x14
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
push 0x43d790
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 8]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x18], 0
jne 0x43d466
jmp 0x43d483
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x18], 0xffffffff
jne 0x43d471
jmp 0x43d483
push 0xffffffffffffffff
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], eax
mov esp, ebp
pop ebp
ret

Function at 0x43d490
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
add eax, 0x14
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
push 0x43d7b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 8]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x18], 0
jne 0x43d4c6
jmp 0x43d4e3
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x18], 0xffffffff
jne 0x43d4d1
jmp 0x43d4e3
push 0xffffffffffffffff
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], eax
mov esp, ebp
pop ebp
ret

Function at 0x4626fa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5635bc]
jne 0x462704
repz ret
jmp fcn.0046cdbc
Function at 0x47892e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0046c76a
xor ebx, ebx
cmp dword [0x5696bc], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x478a03
push 0x51a6f8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
jne 0x47896e
xor eax, eax
jmp 0x478ac7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x51a6ec
push edi
call esi
cmp eax, ebx
je 0x478967
push eax
call fcn.0046c707
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x5696bc], eax
call esi
push eax
call fcn.0046c707
mov dword [esp], 0x51a6c8
push edi
mov dword [0x5696c0], eax
call esi
push eax
call fcn.0046c707
mov dword [0x5696c4], eax
lea eax, [ebp - 8]
push eax
call fcn.0046b791
test eax, eax
pop ecx
pop ecx
je 0x4789d1
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004627de
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x478a03
push str.GetUserObjectInformationW
push edi
call esi
push eax
call fcn.0046c707
cmp eax, ebx
pop ecx
mov dword [0x5696cc], eax
je 0x478a03
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0046c707
pop ecx
mov dword [0x5696c8], eax
mov eax, dword [0x5696c8]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x478a7c
cmp dword [0x5696cc], esi
je 0x478a7c
push eax
call fcn.0046c773
pop ecx
call eax
cmp eax, ebx
je 0x478a49
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x5696cc]
call fcn.0046c773
pop ecx
call eax
test eax, eax
je 0x478a49
test byte [ebp - 0x18], 1
jne 0x478a7c
lea eax, [ebp - 0xc]
push eax
call fcn.0046b7c8
test eax, eax
pop ecx
je 0x478a64
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004627de
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x478a73
or dword [ebp + 0x10], 0x200000
jmp 0x478aad
or dword [ebp + 0x10], 0x40000
jmp 0x478aad
mov eax, dword [0x5696c0]
cmp eax, esi
je 0x478aad
push eax
call fcn.0046c773
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x478aad
mov eax, dword [0x5696c4]
cmp eax, esi
je 0x478aad
push dword [ebp - 4]
push eax
call fcn.0046c773
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x5696bc]
call fcn.0046c773
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x47cda1
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0046c76a
xor ebx, ebx
cmp dword [0x569934], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x47ce76
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x47cde1
xor eax, eax
jmp 0x47cf3a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x47cdda
push eax
call fcn.0046c707
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x569934], eax
call esi
push eax
call fcn.0046c707
mov dword [esp], 0x51a6c8
push edi
mov dword [0x569938], eax
call esi
push eax
call fcn.0046c707
mov dword [0x56993c], eax
lea eax, [ebp - 8]
push eax
call fcn.0046b791
test eax, eax
pop ecx
pop ecx
je 0x47ce44
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004627de
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x47ce76
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0046c707
cmp eax, ebx
pop ecx
mov dword [0x569944], eax
je 0x47ce76
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0046c707
pop ecx
mov dword [0x569940], eax
mov eax, dword [0x569940]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x47ceef
cmp dword [0x569944], esi
je 0x47ceef
push eax
call fcn.0046c773
pop ecx
call eax
cmp eax, ebx
je 0x47cebc
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x569944]
call fcn.0046c773
pop ecx
call eax
test eax, eax
je 0x47cebc
test byte [ebp - 0x18], 1
jne 0x47ceef
lea eax, [ebp - 0xc]
push eax
call fcn.0046b7c8
test eax, eax
pop ecx
je 0x47ced7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004627de
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x47cee6
or dword [ebp + 0x10], 0x200000
jmp 0x47cf20
or dword [ebp + 0x10], 0x40000
jmp 0x47cf20
mov eax, dword [0x569938]
cmp eax, esi
je 0x47cf20
push eax
call fcn.0046c773
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x47cf20
mov eax, dword [0x56993c]
cmp eax, esi
je 0x47cf20
push dword [ebp - 4]
push eax
call fcn.0046c773
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x569934]
call fcn.0046c773
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x48346f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x5635bc]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00483404
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00462710
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4834be
cmp dword [ebp - 0x1c], 5
jb 0x4834d6
jmp 0x4834d2
cmp dword [ebp - 0x10], 1
jne 0x4834d6
cmp dword [ebp - 0x1c], 4
ja 0x4834d2
jne 0x4834d6
cmp dword [ebp - 0x18], 0
jbe 0x4834d6
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x51b088
call fcn.0042a060
test eax, eax
jge 0x4834f7
mov byte [0x56a344], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004626fa
add ebp, 0x78
leave
ret

Function at 0x483540
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x5635bc]
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 0x483590
mov ax, word [esp]
cmp al, 2
jne 0x48358a
cmp ah, al
jne 0x48358a
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004626fa
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.004626fa
add esp, 0x194
ret

Function at 0x48f060
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 0x48f092
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x48f1e0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x48f1fb
mov edx, dword [esi + 0xf4]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x48f22f
cmp eax, 2
jg 0x48f22f
mov ecx, dword [esi + 0xf0]
push ecx
push 1
lea edx, [eax + eax*2 + 0x51c1e4]
push 2
push edx
call fcn.004646bb
mov eax, dword [esi + 0xf0]
push eax
push 1
push edi
push ebx
call fcn.004646bb
add esp, 0x20
xor eax, eax
ret
Function at 0x48f540
Capabilities:
Send data
Send data on socket

Disassembly:
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + eax*4 + 0x130]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebx], 0
jne 0x48f5bd
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x48f594
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.00493440
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.0048f3c0
mov ecx, dword [esi]
add esp, 0x14
mov dword [ecx + 0x856c], ebp
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x48fd80
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x5635bc]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
mov ebp, dword [esp + 0x118]
cmp dword [ebp + 0x19c], 0
push esi
push edi
mov edi, dword [ebp]
mov dword [esp + 0x14], edi
jne 0x48febb
mov esi, dword [esp + 0x124]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ebx, 0x80
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x48fdfc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.00493440
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.0048f3c0
add esp, 0x18
jmp 0x48fec4
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x9c]
push eax
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x48fe3c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.00493440
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.0048f3c0
add esp, 0x18
jmp 0x48fec4
lea ebx, [ebp + 0xcc]
lea edi, [ebp + 0x9e]
lea esi, [esp + 0x18]
call fcn.0048fd40
test eax, eax
jne 0x48fe7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.00493440
mov ecx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.0048f3c0
add esp, 0x18
jmp 0x48fec4
lea ebx, [ebp + 0x100]
lea edi, [ebp + 0xd0]
lea esi, [esp + 0x98]
call fcn.0048fd40
test eax, eax
jne 0x48febb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.00493440
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.0048f3c0
add esp, 0x18
jmp 0x48fec4
push ebp
call fcn.0048fce0
add esp, 4
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004626fa
add esp, 0x10c
ret

Function at 0x48fee0
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x314]
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 0x48ff23
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00493440
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0048f330
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0048f330
add esp, 8
pop esi
pop ecx
ret

Function at 0x48ff40
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push 0x1001
push 0xffff
push esi
mov dword [esp + 0x1c], 0x4020
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x48ff89
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jg 0x48ffa1
push 4
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
add esp, 0xc
ret
Function at 0x48ffb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x530]
cmp eax, 0xffffffff
je 0x490009
mov ecx, dword [ecx + 0x524]
mov edx, dword [ecx]
cmp dword [edx + eax*4], 0
lea eax, [edx + eax*4]
je 0x490009
mov ecx, dword [esp + 8]
test ecx, ecx
mov eax, dword [eax]
je 0x48ffdc
mov dword [ecx], eax
cmp dword [eax + 0x148], 0
push esi
mov esi, dword [eax + 0x130]
jne 0x490000
push 2
push 1
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x490005
or eax, 0xffffffff
pop esi
ret
mov eax, esi
pop esi
ret
or eax, 0xffffffff
ret
Function at 0x491a50
Capabilities:
Resolve dns

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
mov dword [esi], 0
push ecx
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
mov dword [esp + 0x1c], ecx
je 0x491af4
cmp word [ecx + 8], 2
push ebx
push ebp
push edi
jne 0x491ac5
cmp word [ecx + 0xa], 4
jne 0x491ac5
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x491ac5
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
lea esp, [esp]
mov edx, dword [eax]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebx
push ebp
call fcn.004919e0
test eax, eax
mov dword [esi], eax
je 0x491ae8
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x491aa0
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x24]
push 0x400
push ecx
push 0x401
push edx
call fcn.0047632f
add esp, 0x10
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
ret 0x18
pop edi
pop ebp
pop ebx
mov eax, 8
pop esi
ret 0x18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x491b04.11001
jmp dword [eax*4 + 0x491b28]
mov eax, 0x2af9
pop esi
ret 0x18
mov eax, 0x2afa
pop esi
ret 0x18
mov eax, 0x2afb
pop esi
ret 0x18