joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dea90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov eax, dword [0x64f060]
test eax, eax
je 0x4deb28
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x4deab6
cmp dword [eax + 4], 0
je 0x4deab6
add eax, 8
pop esi
ret
mov eax, dword [0x64f060]
test eax, eax
je 0x4deb37
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x4deb24
mov esi, eax
test eax, eax
jne 0x4deb0d
movzx eax, byte [0x64fd9c]
mov ecx, 0x10
mov edx, 4
call fcn.00404090
test eax, eax
je 0x4deb52
mov dword [eax], 0x64f060
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x64f060]
test eax, eax
je 0x4deb46
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
lea eax, [esi + 8]
mov byte [esi + 0xc], 0
pop esi
ret
xor eax, eax
pop esi
ret
mov ecx, 0x64f060
call fcn.00583bc0
jmp 0x4dea9f
mov ecx, 0x64f060
call fcn.00583bc0
jmp 0x4deac0
mov ecx, 0x64f060
call fcn.00583bc0
jmp 0x4deb05
mov ecx, 4
mov edx, 0x10
call fcn.00580bb0
ud2

Function at 0x4dfa50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, esp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], esp
mov dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x34], 0x56d1b0
lea eax, [esi + 0x30]
mov ecx, dword fs:[0]
mov dword [esi + 0x30], ecx
mov dword fs:[0], eax
lea eax, [esi + 8]
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x4dfb68
mov eax, dword [esi + 8]
mov ebx, dword [esi + 0xc]
mov dword [esi], eax
call fcn.004dfdf0
mov ecx, eax
or ecx, edx
je 0x4dfb4f
push edx
push eax
push ebx
push dword [esi]
mov edi, edx
mov dword [esi + 0x20], edx
mov dword [esi + 0x1c], eax
call fcn.0056fbc0
mov ecx, edi
mov edi, dword [esi + 0x1c]
mov dword [esi + 4], edx
mov dword [esi + 0x24], eax
imul ecx, eax
mul edi
add edx, ecx
mov ecx, edi
imul ecx, dword [esi + 4]
add ecx, edx
mov edx, dword [esi]
sub edx, eax
sbb ebx, ecx
mov eax, edx
imul ecx, ebx, 0x3b9aca00
mov ebx, 0x3b9aca00
mul ebx
add edx, ecx
push dword [esi + 0x20]
push edi
push edx
push eax
call fcn.0056fbc0
mov ebx, eax
mov eax, dword [esi + 0x24]
mov ecx, edx
mov edx, 0x3b9aca00
mul edx
mov edi, eax
imul eax, dword [esi + 4], 0x3b9aca00
add eax, edx
add edi, ebx
adc eax, ecx
push 0
push 0x3b9aca00
push eax
push edi
call fcn.0056fbc0
imul ecx, eax, 0xc4653600
add ecx, edi
mov edi, dword [esi + 0x30]
mov dword fs:[0], edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, str.attempt_to_divide_by_zeroreentrant_init
mov edx, 0x19
push 0x60a85c
call fcn.00580fe0
add esp, 4
ud2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x38], 0
lea eax, [esi + 0x14]
mov ecx, 0x63d4bf
mov edx, 0x2b
push 0x60b7e8
push 0x6097cc
push eax
call fcn.005812d0
add esp, 0xc
ud2
Function at 0x4e0df0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x440
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x56d1f0
mov dword [ebp - 0x28], ecx
mov esi, 0x200
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x30], 0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x3c], 2
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
cmp esi, 0x201
jae 0x4e0e80
jmp 0x4e0e6e
jbe 0x4e0f0c
cmp esi, 0x201
jae 0x4e0e80
mov dword [ebp - 0x2c], 0x200
lea ebx, [ebp - 0x44c]
mov edi, esi
jmp 0x4e0ebb
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x30]
sub esi, edi
sub eax, edi
cmp eax, esi
jae 0x4e0eac
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x3c]
mov edx, edi
push esi
call fcn.00583e70
add esp, 4
mov eax, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x20], edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test eax, eax
jne 0x4e0edb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4e0f44
cmp esi, edi
jne 0x4e0e60
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4e0f7f
lea esi, [edi + edi]
test edi, edi
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x4e0e6e
jmp 0x4e0e80
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x10], 0
cmp esi, edx
ja 0x4e0f9f
lea ecx, [ebp - 0x4c]
mov edx, ebx
push esi
call fcn.004e1640
add esp, 4
movsd xmm0, qword [ebp - 0x4c]
mov eax, dword [ebp - 0x28]
movsd xmm1, qword [ebp - 0x44]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
jmp 0x4e0f57
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x28]
mov byte [ecx], 0
mov dword [ecx + 4], eax
mov byte [ecx + 0xc], 2
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4e0f6b
mov ecx, dword [ebp - 0x24]
mov edx, 2
call fcn.004040f0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x440
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
mov ecx, str.internal_error:_entered_unreachable_code
mov edx, 0x28
push 0x60b830
call fcn.00580fe0
add esp, 4
jmp 0x4e0fae
mov ecx, esi
push 0x60b820
call fcn.00580f70
add esp, 4
ud2
Function at 0x4e69f0
Capabilities:
Read file on windows

Disassembly:
push edi
push esi
sub esp, 0x34
mov eax, dword [esp + 0x40]
mov esi, ecx
mov ecx, dword [esp + 0x44]
mov edi, edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x103
lea edx, [esp + 4]
push 0
push 0
push ecx
push eax
push edx
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x4e6a3d
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 4]
cmp eax, 0xc0000011
jne 0x4e6a4d
mov dword [esi + 4], 0
jmp 0x4e6a5f
cmp eax, 0x103
je 0x4e6a77
test eax, eax
js 0x4e6a68
mov eax, dword [esp + 8]
mov dword [esi + 4], eax
mov byte [esi], 4
add esp, 0x34
pop esi
pop edi
ret
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x4e6a62
mov eax, esp
mov dword [esp + 0x1c], 0x60af74
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 0
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 0
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x28], 0
push eax
push ecx
push edx
call fcn.004dcd10
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
call fcn.004dce40
mov ecx, 7
int 0x29
ud2
Function at 0x4e8c40
Capabilities:
Create directory

Disassembly:
push ebx
push edi
push esi
sub esp, 0x18
mov esi, ecx
mov ecx, esp
push dword [esp + 0x28]
call fcn.004df280
add esp, 4
mov ecx, dword [esp]
mov ebx, dword [esp + 4]
mov eax, dword [esp + 8]
test ecx, ecx
je 0x4e8ca6
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
lea ecx, [esp + 0xc]
mov edx, esp
push 1
call fcn.004e6ae0
add esp, 4
mov edi, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
test edi, edi
je 0x4e8ca2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4e8cad
mov byte [esi], 4
test ebx, ebx
jne 0x4e8cbd
jmp 0x4e8cc9
mov eax, dword [esp + 0x14]
mov dword [esi], ebx
mov dword [esi + 4], eax
jmp 0x4e8cc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
test ebx, ebx
je 0x4e8cc9
mov ecx, edi
mov edx, 2
call fcn.004040f0
add esp, 0x18
pop esi
pop edi
pop ebx
ret

Function at 0x4eb860
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x64f0b0]
test eax, eax
je 0x4eb918
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x4eb88c
cmp dword [eax + 4], 0
mov edi, eax
je 0x4eb88c
add edi, 8
jmp 0x4eb913
mov eax, dword [0x64f0b0]
test eax, eax
je 0x4eb927
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x4eb911
mov esi, eax
test eax, eax
jne 0x4eb8e7
movzx eax, byte [0x64fd9c]
mov ecx, 0xc
mov edx, 4
call fcn.00404090
test eax, eax
je 0x4eb942
mov dword [eax], 0x64f0b0
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x64f0b0]
test eax, eax
je 0x4eb936
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esi + 8]
cmp dword [esi + 4], 0
lea edi, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
je 0x4eb913
test ecx, ecx
je 0x4eb913
lock dec dword [ecx]
jne 0x4eb913
call fcn.004eb960
jmp 0x4eb913
xor edi, edi
mov eax, edi
pop esi
pop edi
ret
mov ecx, 0x64f0b0
call fcn.00583bc0
jmp 0x4eb870
mov ecx, 0x64f0b0
call fcn.00583bc0
jmp 0x4eb89a
mov ecx, 0x64f0b0
call fcn.00583bc0
jmp 0x4eb8df
mov ecx, 4
mov edx, 0xc
call fcn.00580bb0
ud2
Function at 0x4ebf90
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push edi
push esi
test dx, dx
mov eax, 2
mov edi, 0x17
mov esi, ecx
cmove edi, eax
push 0x81
push 0
push 0
push 0
push 1
push edi
call dword [sym.imp.ws2_32.dll_WSASocketW]
cmp eax, 0xffffffff
je 0x4ebfc6
mov dword [esi + 4], eax
mov byte [esi], 4
pop esi
pop edi
ret
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2726
je 0x4ebfda
cmp eax, 0x2739
jne 0x4ec006
push 1
push 0
push 0
push 0
push 1
push edi
call dword [sym.imp.ws2_32.dll_WSASocketW]
cmp eax, 0xffffffff
je 0x4ec00e
mov edi, eax
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x4ec01f
mov dword [esi + 4], edi
jmp 0x4ebfc0
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x4ebfc3
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esi + 4], eax
mov dword [esi], 0
jmp 0x4ebfc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov edx, eax
shr eax, 0x18
mov byte [esi], 0
shr ecx, 8
shl edx, 0x18
mov byte [esi + 7], al
mov dword [esi + 1], edx
mov word [esi + 5], cx
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
jmp 0x4ebfc3

Function at 0x4ec050
Capabilities:
Set socket configuration

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov ebx, dword [esp + 0x28]
xor edi, edi
mov esi, ecx
cmp ebx, 0x3b9aca00
je 0x4ec0ae
mov eax, dword [esp + 0x24]
mov ebp, 0x3e8
mov dword [esp + 4], edx
mul ebp
mov edi, eax
mov eax, dword [esp + 0x20]
seto cl
mul ebp
mov ebp, edx
mov dword [esp], eax
add ebp, edi
mov edi, 0xffffffff
setb al
or al, cl
jne 0x4ec0aa
mov ecx, 0x431bde83
mov eax, ebx
mul ecx
mov eax, dword [esp]
shr edx, 0x12
add eax, edx
adc ebp, 0
jae 0x4ec0f0
mov edx, dword [esp + 4]
mov dword [esp + 8], edi
lea eax, [esp + 8]
push 4
push eax
push 0x1006
push 0xffff
push edx
call dword [sym.imp.ws2_32.dll_setsockopt]
mov cl, 4
cmp eax, 0xffffffff
jne 0x4ec0e6
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
xor ecx, ecx
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
mov byte [esi], cl
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp], eax
imul eax, edx, 0xf4240
xor ecx, ecx
mov edx, dword [esp + 4]
sub ebx, eax
mov eax, dword [esp]
setne cl
add eax, ecx
adc ebp, 0
jb 0x4ec0ae
xor edi, edi
neg ebp
sbb edi, edi
or edi, eax
jne 0x4ec0ae
mov byte [esi], 2
mov dword [esi + 4], 0x60afd4
jmp 0x4ec0e8
Function at 0x4ec130
Capabilities:
Set socket configuration

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov ebx, dword [esp + 0x28]
xor edi, edi
mov esi, ecx
cmp ebx, 0x3b9aca00
je 0x4ec18e
mov eax, dword [esp + 0x24]
mov ebp, 0x3e8
mov dword [esp + 4], edx
mul ebp
mov edi, eax
mov eax, dword [esp + 0x20]
seto cl
mul ebp
mov ebp, edx
mov dword [esp], eax
add ebp, edi
mov edi, 0xffffffff
setb al
or al, cl
jne 0x4ec18a
mov ecx, 0x431bde83
mov eax, ebx
mul ecx
mov eax, dword [esp]
shr edx, 0x12
add eax, edx
adc ebp, 0
jae 0x4ec1d0
mov edx, dword [esp + 4]
mov dword [esp + 8], edi
lea eax, [esp + 8]
push 4
push eax
push 0x1005
push 0xffff
push edx
call dword [sym.imp.ws2_32.dll_setsockopt]
mov cl, 4
cmp eax, 0xffffffff
jne 0x4ec1c6
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
xor ecx, ecx
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
mov byte [esi], cl
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp], eax
imul eax, edx, 0xf4240
xor ecx, ecx
mov edx, dword [esp + 4]
sub ebx, eax
mov eax, dword [esp]
setne cl
add eax, ecx
adc ebp, 0
jb 0x4ec18e
xor edi, edi
neg ebp
sbb edi, edi
or edi, eax
jne 0x4ec18e
mov byte [esi], 2
mov dword [esi + 4], 0x60afd4
jmp 0x4ec1c8

Function at 0x4ec210
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push edi
push esi
mov ebx, dword [esp + 0x18]
mov edx, dword [ebx + 4]
mov edi, dword [ebx + 8]
mov ecx, edx
sub ecx, edi
jb 0x4ec27e
cmp ecx, 0x7fffffff
mov edx, 0x7fffffff
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmovb edx, ecx
mov ecx, dword [ebx]
add ecx, edi
push 0
push edx
push ecx
push dword [eax]
call dword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4ec260
add eax, edi
mov dword [ebx + 8], eax
mov ecx, dword [ebx + 0xc]
cmp ecx, eax
cmova eax, ecx
mov dword [ebx + 0xc], eax
jmp 0x4ec26d
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x4ec276
mov byte [esi], 4
mov eax, esi
pop esi
pop edi
pop ebx
ret
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x4ec270
mov ecx, edi
push 0x63c970
call fcn.00580e90
add esp, 4
ud2

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

Disassembly:
push edi
push esi
push eax
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp], 0
mov edi, esp
mov ecx, dword [ecx]
push 0
push 0
push 0
push edi
push edx
push eax
push ecx
call dword [sym.imp.ws2_32.dll_WSASend]
cmp eax, 0xffffffff
je 0x4ec33e
mov eax, dword [esp]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x4ec34d
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esi + 4], eax
mov dword [esi], 0
mov eax, esi
add esp, 4
pop esi
pop edi
ret
Function at 0x4ec6a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff0
sub esp, 0xa0
xorps xmm0, xmm0
mov esi, ecx
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x80
lea ecx, [esp + 0x10]
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x10], xmm0
push eax
push ecx
push edx
call dword [sym.imp.ws2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x4ec73e
movzx ecx, word [esp + 0x10]
mov eax, dword [esp + 0xc]
cmp ecx, 2
je 0x4ec757
cmp ecx, 0x17
jne 0x4ec777
cmp eax, 0x1b
jbe 0x4ec78d
movzx eax, word [esp + 0x12]
movups xmm0, xmmword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
mov word [esi], 1
rol ax, 8
movups xmmword [esi + 4], xmm0
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], edx
mov word [esi + 0x1c], ax
jmp 0x4ec787
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov byte [esi + 4], 0
mov byte [esi + 7], 0
mov word [esi + 5], 0
mov dword [esi + 8], eax
jmp 0x4ec782
cmp eax, 0xf
jbe 0x4ec79e
movzx ecx, word [esp + 0x12]
mov eax, dword [esp + 0x14]
mov word [esi], 0
rol cx, 8
mov dword [esi + 2], eax
mov word [esi + 6], cx
jmp 0x4ec787
mov byte [esi + 4], 2
mov dword [esi + 8], 0x60bbd0
mov word [esi], 2
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov ecx, 0x60bb6c
mov edx, 0x43
push 0x60bbb0
jmp 0x4ec7ad
mov ecx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
mov edx, 0x42
push 0x60bb5c
call fcn.00580fe0
add esp, 4
ud2

Function at 0x4ec880
Capabilities:
Set socket configuration

Disassembly:
push esi
push eax
movzx eax, byte [esp + 0xc]
mov esi, ecx
mov dword [esp], eax
mov eax, esp
push eax
push 0x8004667e
push edx
call dword [sym.imp.ws2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x4ec8a5
mov byte [esi], 4
jmp 0x4ec8b4
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esi + 4], eax
mov dword [esi], 0
add esp, 4
pop esi
ret

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

Disassembly:
push esi
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, 0x7fffffff
cmp eax, 0x7fffffff
cmovb edx, eax
push 0
push edx
push dword [esp + 0x18]
push dword [ecx]
call dword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
je 0x4ec8f6
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x4ec90c
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov byte [esi], 0
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
mov eax, esi
pop esi
ret
Function at 0x4ec910
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, 0x7fffffff
cmp eax, 0x7fffffff
cmovb edx, eax
push 0
push edx
push dword [esp + 0x18]
push dword [ecx]
call dword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x4ec950
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov ecx, eax
xor eax, eax
cmp ecx, 0x274a
jne 0x4ec958
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x4ec95e
mov byte [esi], 0
mov dword [esi + 4], ecx
mov eax, esi
pop esi
ret
Function at 0x4f3400
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
lea ecx, [esp + 0xc]
push dword [esp + 0x38]
call fcn.004df280
add esp, 4
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
test edx, edx
je 0x4f3465
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], ecx
mov ecx, esp
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.004f3340
mov edi, dword [esp]
test edi, edi
je 0x4f3474
mov ebx, dword [esp + 4]
mov ebp, dword [esp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4f3489
mov dword [esi], edi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebp
jmp 0x4f3481
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp], 0
mov ecx, esp
call fcn.004df430
mov dword [esi], 0
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
test ebx, ebx
mov dword [esi], 0
je 0x4f3481
mov ecx, edi
mov edx, 2
call fcn.004040f0
jmp 0x4f3481
Function at 0x4f51d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x56d590
mov esi, edx
mov edi, ecx
mov ecx, 8
mov edx, 4
mov eax, dword fs:[0]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword fs:[0], eax
movzx eax, byte [0x64fd9c]
call fcn.00404090
test eax, eax
je 0x4f52ac
mov ebx, eax
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 4], eax
push 0
push 0x10000
push ebx
push 0x4f5320
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4f524d
mov dword [edi + 4], eax
mov byte [edi], 4
jmp 0x4f529b
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x24], eax
push eax
mov dword [ebp - 0x20], ecx
call dword [ecx]
add esp, 4
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x2c]
cmp dword [eax + 4], 0
je 0x4f5282
mov edx, dword [eax + 8]
mov ecx, dword [ebp - 0x24]
call fcn.004040f0
mov ecx, dword [ebp - 0x28]
mov edx, 4
call fcn.004040f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esi], 0
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 4
mov edx, 8
mov dword [ebp - 0x10], 0
call fcn.00580bb0
ud2
Function at 0x4f5710
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1038
call fcn.0056fcb0
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x56d5c0
mov edi, ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x24], edx
lea esi, [ebp - 0x1044]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
push 0x1000
push 0
push esi
call fcn.005713f0
add esp, 0xc
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
push 0x4ed170
push eax
push 0x1000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x4f5864
mov ebx, dword [sym.imp.KERNEL32.dll_SleepEx]
mov dword [ebp - 0x20], edi
push 1
push 0xffffffffffffffff
call ebx
cmp dword [ebp - 0x30], 0
je 0x4f579a
cmp dword [ebp - 0x2c], 0
jne 0x4f5875
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x4f5875
cmp esi, 0x1000
ja 0x4f58b1
xor edi, edi
nop dword [eax]
mov eax, esi
sub eax, edi
jb 0x4f5897
xorps xmm0, xmm0
lea edx, [ebp - 0x30]
lea ecx, [ebp + edi - 0x1044]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], edx
push 0x4ed170
lea edx, [ebp - 0x44]
push edx
push eax
push ecx
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFileEx]
test eax, eax
je 0x4f586c
nop dword [eax]
push 1
push 0xffffffffffffffff
call ebx
cmp dword [ebp - 0x30], 0
je 0x4f5810
cmp dword [ebp - 0x2c], 0
jne 0x4f5872
add edi, dword [ebp - 0x28]
cmp edi, esi
jne 0x4f57d0
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
push 0x4ed170
lea eax, [ebp - 0x44]
push eax
push 0x1000
lea eax, [ebp - 0x1044]
push eax
mov edi, dword [ebp - 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x4f579a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4f5875
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
push dword [ebp - 0x24]
call esi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x1038
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
mov ecx, edi
mov edx, esi
push 0x60b230
call fcn.005811c0
add esp, 4
jmp 0x4f58cc
mov dword [ebp - 0x10], 0
mov ecx, esi
mov edx, 0x1000
push 0x60b230
call fcn.00580f70
add esp, 4
ud2