joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e0ed1
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
call fcn.0047d480
mov esi, dword [esp + 0x30]
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
lea edi, [esi + 1]
call fcn.0057e090
test eax, eax
je 0x4e0f01
mov dword [esp + 0x10], 0
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebx
cmp edi, 3
ja case.default.0x4e0eca
jmp dword [edi*4 + 0x4e0fbc]
xor esi, esi
jmp case.default.0x4e0eca
push 0xfffffffffffffff6
jmp 0x4e0edf
push 0xfffffffffffffff5
jmp 0x4e0edf
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
push 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x44]
push dword [esp + 0x44]
push esi
jmp 0x4e0f93
mov dword [esp + 0x14], ebx
cmp edi, 3
ja case.default.0x4e0f0a
jmp dword [edi*4 + 0x4e0fcc]
xor eax, eax
jmp 0x4e0f35
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp 0x4e0f35
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp 0x4e0f35
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp 0x4e0f35
mov eax, esi
push 0
lea ecx, [esp + 0x18]
push ecx
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4e0f70
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4e0f70
push 0
push 0
call fcn.004edd70
add esp, 8
xor esi, esi
call fcn.0047d480
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push 0
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push dword [esp + 0x44]
push dword [esp + 0x44]
push esi
call fcn.004ded00
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
neg eax
push eax
call fcn.004edd70
mov esi, dword [esp + 0x18]
add esp, 8
call fcn.0047d480
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x4e0ed5
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
call fcn.0047d480
mov esi, dword [esp + 0x30]
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
lea edi, [esi + 1]
call fcn.0057e090
test eax, eax
je 0x4e0f01
mov dword [esp + 0x10], 0
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebx
cmp edi, 3
ja case.default.0x4e0eca
jmp dword [edi*4 + 0x4e0fbc]
xor esi, esi
jmp case.default.0x4e0eca
push 0xfffffffffffffff6
jmp 0x4e0edf
push 0xfffffffffffffff5
jmp 0x4e0edf
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
push 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x44]
push dword [esp + 0x44]
push esi
jmp 0x4e0f93
mov dword [esp + 0x14], ebx
cmp edi, 3
ja case.default.0x4e0f0a
jmp dword [edi*4 + 0x4e0fcc]
xor eax, eax
jmp 0x4e0f35
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp 0x4e0f35
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp 0x4e0f35
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp 0x4e0f35
mov eax, esi
push 0
lea ecx, [esp + 0x18]
push ecx
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4e0f70
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4e0f70
push 0
push 0
call fcn.004edd70
add esp, 8
xor esi, esi
call fcn.0047d480
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push 0
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push dword [esp + 0x44]
push dword [esp + 0x44]
push esi
call fcn.004ded00
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
neg eax
push eax
call fcn.004edd70
mov esi, dword [esp + 0x18]
add esp, 8
call fcn.0047d480
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x4e0ed9
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
call fcn.0047d480
mov esi, dword [esp + 0x30]
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
lea edi, [esi + 1]
call fcn.0057e090
test eax, eax
je 0x4e0f01
mov dword [esp + 0x10], 0
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebx
cmp edi, 3
ja case.default.0x4e0eca
jmp dword [edi*4 + 0x4e0fbc]
xor esi, esi
jmp case.default.0x4e0eca
push 0xfffffffffffffff6
jmp 0x4e0edf
push 0xfffffffffffffff5
jmp 0x4e0edf
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
push 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x44]
push dword [esp + 0x44]
push esi
jmp 0x4e0f93
mov dword [esp + 0x14], ebx
cmp edi, 3
ja case.default.0x4e0f0a
jmp dword [edi*4 + 0x4e0fcc]
xor eax, eax
jmp 0x4e0f35
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp 0x4e0f35
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp 0x4e0f35
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp 0x4e0f35
mov eax, esi
push 0
lea ecx, [esp + 0x18]
push ecx
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4e0f70
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4e0f70
push 0
push 0
call fcn.004edd70
add esp, 8
xor esi, esi
call fcn.0047d480
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push 0
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push dword [esp + 0x44]
push dword [esp + 0x44]
push esi
call fcn.004ded00
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
neg eax
push eax
call fcn.004edd70
mov esi, dword [esp + 0x18]
add esp, 8
call fcn.0047d480
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x4e0edd
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
call fcn.0047d480
mov esi, dword [esp + 0x30]
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
lea edi, [esi + 1]
call fcn.0057e090
test eax, eax
je 0x4e0f01
mov dword [esp + 0x10], 0
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebx
cmp edi, 3
ja case.default.0x4e0eca
jmp dword [edi*4 + 0x4e0fbc]
xor esi, esi
jmp case.default.0x4e0eca
push 0xfffffffffffffff6
jmp 0x4e0edf
push 0xfffffffffffffff5
jmp 0x4e0edf
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
push 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x44]
push dword [esp + 0x44]
push esi
jmp 0x4e0f93
mov dword [esp + 0x14], ebx
cmp edi, 3
ja case.default.0x4e0f0a
jmp dword [edi*4 + 0x4e0fcc]
xor eax, eax
jmp 0x4e0f35
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp 0x4e0f35
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp 0x4e0f35
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp 0x4e0f35
mov eax, esi
push 0
lea ecx, [esp + 0x18]
push ecx
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4e0f70
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4e0f70
push 0
push 0
call fcn.004edd70
add esp, 8
xor esi, esi
call fcn.0047d480
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push 0
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push dword [esp + 0x44]
push dword [esp + 0x44]
push esi
call fcn.004ded00
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
neg eax
push eax
call fcn.004edd70
mov esi, dword [esp + 0x18]
add esp, 8
call fcn.0047d480
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x4e0f11
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
call fcn.0047d480
mov esi, dword [esp + 0x30]
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
lea edi, [esi + 1]
call fcn.0057e090
test eax, eax
je 0x4e0f01
mov dword [esp + 0x10], 0
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebx
cmp edi, 3
ja case.default.0x4e0eca
jmp dword [edi*4 + 0x4e0fbc]
xor esi, esi
jmp case.default.0x4e0eca
push 0xfffffffffffffff6
jmp 0x4e0edf
push 0xfffffffffffffff5
jmp 0x4e0edf
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
push 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x44]
push dword [esp + 0x44]
push esi
jmp 0x4e0f93
mov dword [esp + 0x14], ebx
cmp edi, 3
ja case.default.0x4e0f0a
jmp dword [edi*4 + 0x4e0fcc]
xor eax, eax
jmp 0x4e0f35
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp 0x4e0f35
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp 0x4e0f35
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp 0x4e0f35
mov eax, esi
push 0
lea ecx, [esp + 0x18]
push ecx
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4e0f70
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4e0f70
push 0
push 0
call fcn.004edd70
add esp, 8
xor esi, esi
call fcn.0047d480
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push 0
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push dword [esp + 0x44]
push dword [esp + 0x44]
push esi
call fcn.004ded00
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
neg eax
push eax
call fcn.004edd70
mov esi, dword [esp + 0x18]
add esp, 8
call fcn.0047d480
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x4e0f15
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
call fcn.0047d480
mov esi, dword [esp + 0x30]
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
lea edi, [esi + 1]
call fcn.0057e090
test eax, eax
je 0x4e0f01
mov dword [esp + 0x10], 0
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebx
cmp edi, 3
ja case.default.0x4e0eca
jmp dword [edi*4 + 0x4e0fbc]
xor esi, esi
jmp case.default.0x4e0eca
push 0xfffffffffffffff6
jmp 0x4e0edf
push 0xfffffffffffffff5
jmp 0x4e0edf
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
push 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x44]
push dword [esp + 0x44]
push esi
jmp 0x4e0f93
mov dword [esp + 0x14], ebx
cmp edi, 3
ja case.default.0x4e0f0a
jmp dword [edi*4 + 0x4e0fcc]
xor eax, eax
jmp 0x4e0f35
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp 0x4e0f35
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp 0x4e0f35
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp 0x4e0f35
mov eax, esi
push 0
lea ecx, [esp + 0x18]
push ecx
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4e0f70
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4e0f70
push 0
push 0
call fcn.004edd70
add esp, 8
xor esi, esi
call fcn.0047d480
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push 0
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push dword [esp + 0x44]
push dword [esp + 0x44]
push esi
call fcn.004ded00
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
neg eax
push eax
call fcn.004edd70
mov esi, dword [esp + 0x18]
add esp, 8
call fcn.0047d480
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x4e0f1f
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
call fcn.0047d480
mov esi, dword [esp + 0x30]
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
lea edi, [esi + 1]
call fcn.0057e090
test eax, eax
je 0x4e0f01
mov dword [esp + 0x10], 0
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebx
cmp edi, 3
ja case.default.0x4e0eca
jmp dword [edi*4 + 0x4e0fbc]
xor esi, esi
jmp case.default.0x4e0eca
push 0xfffffffffffffff6
jmp 0x4e0edf
push 0xfffffffffffffff5
jmp 0x4e0edf
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
push 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x44]
push dword [esp + 0x44]
push esi
jmp 0x4e0f93
mov dword [esp + 0x14], ebx
cmp edi, 3
ja case.default.0x4e0f0a
jmp dword [edi*4 + 0x4e0fcc]
xor eax, eax
jmp 0x4e0f35
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp 0x4e0f35
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp 0x4e0f35
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp 0x4e0f35
mov eax, esi
push 0
lea ecx, [esp + 0x18]
push ecx
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4e0f70
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4e0f70
push 0
push 0
call fcn.004edd70
add esp, 8
xor esi, esi
call fcn.0047d480
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push 0
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push dword [esp + 0x44]
push dword [esp + 0x44]
push esi
call fcn.004ded00
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
neg eax
push eax
call fcn.004edd70
mov esi, dword [esp + 0x18]
add esp, 8
call fcn.0047d480
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x4e0f29
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
call fcn.0047d480
mov esi, dword [esp + 0x30]
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
lea edi, [esi + 1]
call fcn.0057e090
test eax, eax
je 0x4e0f01
mov dword [esp + 0x10], 0
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebx
cmp edi, 3
ja case.default.0x4e0eca
jmp dword [edi*4 + 0x4e0fbc]
xor esi, esi
jmp case.default.0x4e0eca
push 0xfffffffffffffff6
jmp 0x4e0edf
push 0xfffffffffffffff5
jmp 0x4e0edf
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
push 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x44]
push dword [esp + 0x44]
push esi
jmp 0x4e0f93
mov dword [esp + 0x14], ebx
cmp edi, 3
ja case.default.0x4e0f0a
jmp dword [edi*4 + 0x4e0fcc]
xor eax, eax
jmp 0x4e0f35
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp 0x4e0f35
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp 0x4e0f35
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp 0x4e0f35
mov eax, esi
push 0
lea ecx, [esp + 0x18]
push ecx
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4e0f70
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4e0f70
push 0
push 0
call fcn.004edd70
add esp, 8
xor esi, esi
call fcn.0047d480
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push 0
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push dword [esp + 0x44]
push dword [esp + 0x44]
push esi
call fcn.004ded00
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
neg eax
push eax
call fcn.004edd70
mov esi, dword [esp + 0x18]
add esp, 8
call fcn.0047d480
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret

Function at 0x4e0ff0
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ecx
push esi
xor esi, esi
call fcn.0047d480
mov eax, dword [esp + 0xc]
lea ecx, [eax + 1]
cmp dword [esp + 0x14], esi
je 0x4e1061
cmp ecx, 3
ja case.default.0x4e100b
jmp dword [ecx*4 + 0x4e10a4]
xor eax, eax
jmp case.default.0x4e100b
push 0xfffffffffffffff6
jmp 0x4e1020
push 0xfffffffffffffff5
jmp 0x4e1020
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0
lea ecx, [esp + 8]
push ecx
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, eax
test ecx, ecx
push 0
cmovne esi, dword [esp + 8]
xor eax, eax
test ecx, ecx
setne al
push eax
call fcn.004edd70
add esp, 8
call fcn.0047d480
mov eax, esi
pop esi
pop ecx
ret
cmp ecx, 3
ja case.default.0x4e1066
jmp dword [ecx*4 + 0x4e10b4]
xor eax, eax
jmp case.default.0x4e1066
push 0xfffffffffffffff6
jmp 0x4e107b
push 0xfffffffffffffff5
jmp 0x4e107b
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
neg eax
push eax
call fcn.004edd70
add esp, 8
call fcn.0047d480
mov eax, esi
pop esi
pop ecx
ret
Function at 0x4ef640
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x14
mov eax, dword [0x8a3940]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x24]
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0x30]
mov dword [ebx], esi
mov dword [ebp], esi
test edi, edi
je 0x4ef7ad
test dword [edi], 0x8000
je 0x4ef7ad
push edi
call fcn.00484540
add esp, 4
cmp eax, 2
jb 0x4ef7ad
push 1
push edi
call fcn.004843b0
add esp, 8
test al, 0x1a
je 0x4ef7ad
push 1
push edi
call fcn.00484100
add esp, 8
sub eax, 1
je 0x4ef78c
sub eax, 1
je 0x4ef6ec
sub eax, 8
jne 0x4ef7ad
push 3
push edi
call fcn.00484100
push 2
push edi
call fcn.00483f30
add esp, 0x10
call fcn.00498b60
mov dword [eax + 0xc], 4
mov dword [eax + 0x10], esi
mov dword [ebx], esi
mov dword [ebp], esi
jmp 0x4ef7ab
push 3
push edi
call fcn.00484100
push 2
push edi
mov esi, eax
call fcn.00483f30
add esp, 0x10
mov edi, eax
xorps xmm0, xmm0
mov eax, 2
movups xmmword [esp + 0x10], xmm0
mov word [esp + 0x10], ax
push esi
call dword [sym.imp.WSOCK32.dll_htons]
mov word [esp + 0x12], ax
test edi, edi
je 0x4ef75e
cmp byte [edi], 0
je 0x4ef75e
lea eax, [esp + 0x14]
push eax
push edi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x4ef76a
call fcn.00498b60
mov dword [eax + 0xc], 3
mov dword [eax + 0x10], 0
mov dword [ebx], 0
mov dword [ebp], 0
jmp 0x4ef7ab
push 0
call dword [sym.imp.WSOCK32.dll_htonl]
mov dword [esp + 0x14], eax
push 0x11
call fcn.004a67c0
movups xmm0, xmmword [esp + 0x14]
add esp, 4
mov esi, 1
movups xmmword [eax], xmm0
mov dword [ebx], eax
mov dword [ebp], 0x10
jmp 0x4ef7ad
push 2
push edi
call fcn.00483f30
add esp, 8
mov dword [ebx], esi
mov dword [ebp], esi
call fcn.00498b60
mov dword [eax + 0xc], 4
mov dword [eax + 0x10], esi
xor esi, esi
call fcn.00498b60
mov ecx, esi
xor ecx, 1
shl ecx, 2
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x20]
pop edi
mov dword [eax + 0x10], 0
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0059bb21
add esp, 0x14
ret

Function at 0x4ef970
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x8a3940]
xor eax, esp
mov dword [esp + 0x190], eax
push esi
push 0x8a8970
xor esi, esi
call fcn.0047d480
mov eax, dword [0x8a898c]
add esp, 4
inc eax
mov dword [0x8a898c], eax
cmp eax, 1
jne 0x4ef9b6
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
mov esi, eax
push 0x8a8970
call fcn.0047d480
mov ecx, dword [esp + 0x198]
add esp, 4
mov eax, esi
pop esi
xor ecx, esp
call fcn.0059bb21
add esp, 0x194
ret
Function at 0x4efa60
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
push esi
call fcn.0047d480
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0xc]
test eax, eax
jl 0x4efab0
mov ecx, dword [esp + 0x1c]
jg 0x4efa7d
test ecx, ecx
jb 0x4efab0
push eax
push ecx
push ebp
call fcn.004efb50
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4efaaa
call fcn.00498b60
mov dword [eax + 0x10], esi
or esi, 0xffffffff
mov dword [eax + 0xc], 2
call fcn.0047d480
mov eax, esi
pop esi
pop ebp
ret
js 0x4efb37
push ebx
mov ebx, dword [esp + 0x1c]
push edi
xor edi, edi
test ebx, ebx
je 0x4efae1
mov ecx, ebx
mov eax, ebx
and ecx, 1
mov edx, ecx
or edx, 2
and al, 2
mov eax, ebx
cmove edx, ecx
mov edi, edx
or edi, 4
and al, 4
cmove edi, edx
test bl, 8
je 0x4efae1
or edi, 8
push edi
push dword [esp + 0x20]
push dword [esp + 0x20]
push ebp
call dword [sym.imp.WSOCK32.dll_recv]
mov esi, eax
test esi, esi
jg 0x4efb2b
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ebx, eax
push ebx
call fcn.004eff60
add esp, 4
cmp esi, 0xffffffff
jne 0x4efb35
cmp ebx, 0x2714
jne 0x4efb35
call fcn.004a5c50
test ax, ax
je 0x4efae1
pop edi
pop ebx
call fcn.0047d480
mov eax, esi
pop esi
pop ebp
ret
push 0
call fcn.004eff60
add esp, 4
pop edi
pop ebx
call fcn.0047d480
mov eax, esi
pop esi
pop ebp
ret

Function at 0x4efb50
Capabilities:
Get socket status

Disassembly:
sub esp, 0x118
mov eax, dword [0x8a3940]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
mov ebx, dword [esp + 0x124]
push ebp
mov ebp, dword [esp + 0x12c]
push esi
push edi
push ebp
push ebx
call fcn.0057b720
mov edi, dword [esp + 0x134]
add esp, 8
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
lea esi, [edi + 1]
test ebp, ebp
jg 0x4efbae
jl 0x4efb9c
test ebx, ebx
jae 0x4efbae
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 0
jmp 0x4efbd4
push 0
push 0x3e8
push ebp
push ebx
call fcn.0059c060
mov dword [esp + 0x10], eax
mov ecx, ebx
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x24], edi
push eax
push 0
push 0
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 1
push eax
push esi
call dword [sym.imp.WSOCK32.dll_select]
mov esi, eax
test esi, esi
js 0x4efc25
push 0
call fcn.004eff60
add esp, 4
test esi, esi
je 0x4efc4a
js 0x4efc75
test esi, esi
jle 0x4efc71
lea eax, [esp + 0x20]
push eax
push edi
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x4efc71
mov eax, 1
jmp 0x4efc78
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov edi, eax
push edi
call fcn.004eff60
add esp, 4
cmp esi, 0xffffffff
jne 0x4efc75
cmp edi, 0x2714
jne 0x4efc75
mov edi, dword [esp + 0x12c]
lea eax, [esp + 0x18]
push eax
push ebp
push ebx
call fcn.0057b770
mov ebx, eax
mov ebp, edx
mov ecx, ebx
add esp, 0xc
or ecx, ebp
je 0x4efc71
call fcn.004a5c50
test ax, ax
je 0x4efb8f
xor eax, eax
jmp 0x4efc78
or eax, 0xffffffff
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0059bb21
add esp, 0x118
ret