joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b705c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov edi, eax
xor eax, eax
mov dword [esi], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
lea eax, [ebp - 0x14]
push eax
mov eax, edi
call fcn.0040abe8
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
seta byte [ebp - 5]
cmp byte [ebp - 5], 0
je 0x4b7144
mov eax, ebx
call fcn.00407278
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4b713d
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 0x14]
push eax
mov eax, edi
call fcn.0040abe8
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4b7125
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x4b7154
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4b7125
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
mov edx, eax
shr edx, 0x10
mov dword [esi], edx
and eax, 0xffff
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
mov edx, eax
shr edx, 0x10
mov ecx, dword [ebp + 0xc]
mov dword [ecx], edx
and eax, 0xffff
mov edx, dword [ebp + 8]
mov dword [edx], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b7144
mov eax, dword [ebp - 0xc]
call fcn.00407294
pop eax
jmp eax
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4b7158
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
mov eax, edi
mov edx, dword [0x5063ac]
mov edx, dword [edx]
call fcn.0040a478
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.0040abe8
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
jbe 0x4b7239
mov eax, ebx
call fcn.00407278
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b7232
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, esi
call fcn.0040abe8
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4b721a
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4b7240
mov eax, dword [ebp - 4]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4b71eb
mov ecx, dword [ebp - 8]
dec ecx
mov eax, edi
mov edx, dword [ebp - 0x10]
call fcn.0040a220
jmp 0x4b721a
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4b7288
mov eax, dword [ebp - 4]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4b721a
mov eax, dword [ebp - 0x14]
test byte [eax + 0x1c], 1
je 0x4b721a
mov eax, edi
mov edx, 0x4b7298
call fcn.0040a478
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b7239
mov eax, dword [ebp - 4]
call fcn.00407294
pop eax
jmp eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b947c
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd80
xor edx, edx
mov dword [ebp - 0x280], edx
mov dword [ebp - 0x27c], edx
mov dword [ebp - 0x278], edx
mov dword [ebp - 0x274], eax
lea eax, [ebp - 0x270]
mov edx, dword [0x4196a8]
call fcn.0040b3e0
xor eax, eax
push ebp
push 0x4b9638
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [ebp - 0x274]
call fcn.00421af4
test al, al
je 0x4b94da
mov eax, dword [ebp - 0x274]
call fcn.00421e60
lea edx, [ebp - 0x278]
mov eax, dword [ebp - 0x274]
call fcn.00429a7c
lea eax, [ebp - 0x278]
mov edx, 0x4b9650
call fcn.0040addc
mov eax, dword [ebp - 0x278]
lea ecx, [ebp - 0x270]
mov edx, 0x1ff
call fcn.00421dd0
test eax, eax
jne 0x4b95e5
xor eax, eax
push ebp
push 0x4b95de
push dword fs:[eax]
mov dword fs:[eax], esp
test byte [ebp - 0x260], 0x10
jne 0x4b955f
lea edx, [ebp - 0x27c]
mov eax, dword [ebp - 0x274]
call fcn.00429a7c
lea eax, [ebp - 0x27c]
mov edx, dword [ebp - 0x25c]
call fcn.0040addc
mov eax, dword [ebp - 0x27c]
call fcn.00421e60
jmp 0x4b95b0
mov eax, dword [ebp - 0x25c]
mov edx, 0x4b9664
call fcn.0040afcc
je 0x4b95b0
mov eax, dword [ebp - 0x25c]
mov edx, 0x4b9674
call fcn.0040afcc
je 0x4b95b0
lea edx, [ebp - 0x280]
mov eax, dword [ebp - 0x274]
call fcn.00429a7c
lea eax, [ebp - 0x280]
mov edx, dword [ebp - 0x25c]
call fcn.0040addc
mov eax, dword [ebp - 0x280]
call fcn.004b947c
lea eax, [ebp - 0x270]
call fcn.00421e20
test eax, eax
je 0x4b9527
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b95e5
lea eax, [ebp - 0x270]
call fcn.00421e44
pop eax
jmp eax
mov dl, 1
mov eax, dword [ebp - 0x274]
call fcn.00421b8c
test al, al
je 0x4b9607
mov eax, dword [ebp - 0x274]
call fcn.0040abe8
push eax
call sub.kernel32.dll_RemoveDirectoryW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b963f
lea eax, [ebp - 0x280]
mov edx, 3
call fcn.0040a0e8
lea eax, [ebp - 0x270]
mov edx, dword [0x4196a8]
call fcn.0040b7cc
pop eax
jmp eax
Function at 0x4bc180
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4bc27d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x47365c]
call fcn.0049830c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4bc25e
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetEnvironmentStringsW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4bc23b
xor eax, eax
push ebp
push 0x4bc234
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebp - 0xc]
jmp 0x4bc215
lea eax, [ebp - 4]
mov edx, esi
call fcn.0040ac48
mov edx, dword [ebp - 4]
mov eax, 0x4bc298
call fcn.004af8e0
mov ebx, eax
test bl, bl
jne 0x4bc205
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, esi
call fcn.0040a5ac
mov edi, eax
inc edi
mov eax, edi
add eax, eax
add esi, eax
cmp word [esi], 0
jne 0x4bc1dd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bc23b
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FreeEnvironmentStringsW
pop eax
jmp eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bc265
mov eax, dword [ebp - 0x10]
call fcn.0040841c
pop eax
jmp eax
Function at 0x4be0dc
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x4be34c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x50dd98
xor ecx, ecx
mov edx, 0x10
call fcn.00407d90
mov eax, dword [0x505f8c]
movzx eax, byte [eax]
xor al, 1
mov byte [ebp - 9], al
mov byte [ebp - 0xa], 0
cmp byte [ebp - 9], 0
jne 0x4be200
lea eax, [ebp - 0x20]
call fcn.004be068
mov eax, dword [ebp - 0x20]
call fcn.0040abe8
push eax
push 0
push 4
call sub.kernel32.dll_OpenFileMappingW
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4be200
xor eax, eax
push ebp
push 0x4be1f9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4be1e0
xor eax, eax
push ebp
push 0x4be1d9
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x50dd98
mov eax, dword [ebp - 8]
mov ecx, 0x10
call fcn.00407790
cmp dword [0x50dd98], 0
je 0x4be1b7
cmp dword [0x50dd9c], 0
je 0x4be1b7
cmp dword [0x50dda0], 0
je 0x4be1b7
cmp dword [0x50dda4], 0
jne 0x4be1bb
xor eax, eax
jmp 0x4be1bd
mov al, 1
mov byte [ebp - 0xa], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4be1e0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_UnmapViewOfFile
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4be200
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle
pop eax
jmp eax
cmp byte [ebp - 0xa], 0
jne 0x4be2ec
mov eax, dword [0x501dbc]
call fcn.00407278
mov dword [0x501e10], eax
mov eax, 0x501e1c
mov edx, dword [0x5063ac]
mov edx, dword [edx]
call fcn.0040a478
cmp byte [ebp - 9], 0
je 0x4be2ec
lea eax, [ebp - 0x24]
call fcn.004be068
mov eax, dword [ebp - 0x24]
call fcn.0040abe8
push eax
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingW
mov dword [0x501e20], eax
cmp dword [0x501e20], 0
je 0x4be2ec
push 0
push 0
push 0
push 2
mov eax, dword [0x501e20]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4be2ec
xor eax, eax
push ebp
push 0x4be2e5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
xor ecx, ecx
mov edx, 0x10
call fcn.00407d90
mov dword [ebp - 0x1c], fcn.004bab2c
mov dword [ebp - 0x18], 0x4ba8cc
mov dword [ebp - 0x14], 0x4baa80
mov dword [ebp - 0x10], 0x4bb5a4
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x1c]
mov ecx, 0x10
call fcn.00407790
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4be2ec
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_UnmapViewOfFile
pop eax
jmp eax
cmp byte [ebp - 9], 0
je 0x4be313
cmp dword [0x501e20], 0
je 0x4be307
mov eax, 0x4be364
call fcn.004ba918
jmp 0x4be32f
mov eax, 0x4be3b8
call fcn.004ba918
jmp 0x4be32f
cmp byte [ebp - 0xa], 0
je 0x4be325
mov eax, 0x4be414
call fcn.004ba918
jmp 0x4be32f
mov eax, 0x4be468
call fcn.004ba918
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4be353
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.0040a0e8
pop eax
jmp eax
Function at 0x4c8694
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, eax
and eax, 0xff
shr ecx, 8
inc edx
xor ecx, dword [eax*4 + 0x503044]
cmp edx, 4
mov eax, ecx
jl 0x4c869c
pop ebp
ret

Function at 0x4c86b8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, eax
inc edx
shr eax, 0x18
and eax, 0xff
shl ecx, 8
xor ecx, dword [eax*4 + 0x503444]
cmp edx, 4
mov eax, ecx
jl 0x4c86c0
pop ebp
ret
Function at 0x4cc1f8
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4cc2b2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x48]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.004cc188
test al, al
je 0x4cc292
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.0040a220
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x4cc292
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040abe8
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov eax, dword [ebp - 4]
call fcn.0040abe8
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.0040ac48
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
inc esi
dec ebx
jne 0x4cc24b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cc2b9
lea eax, [ebp - 0x2c]
call fcn.0040a088
lea eax, [ebp - 4]
call fcn.0040a088
pop eax
jmp eax

Function at 0x4cc594
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.0040abe8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov edx, eax
mov eax, ebx
call fcn.004cbf00
test al, al
jne 0x4cc5f5
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x506500]
mov dl, 1
mov eax, dword [0x4cabf8]
call fcn.004285ac
call fcn.00409780
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004cbe2c
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4cf0ac
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push 0
call sub.ws2_32.dll_select
test eax, eax
setg byte [ebp - 9]
cmp byte [ebp - 9], 0
je 0x4cf178
mov esi, ebx
dec esi
test esi, esi
jl 0x4cf178
inc esi
xor edi, edi
mov edx, dword [ebp - 4]
add edx, edi
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 4]
call fcn.004944d0
mov ebx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
push ebx
call sub.ws2_32.dll___WSAFDIsSet
test eax, eax
setne al
test al, al
je 0x4cf14a
push 2
push 1
lea eax, [ebp - 0xa]
push eax
push ebx
call sub.ws2_32.dll_recv
dec eax
jne 0x4cf13b
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 8]
mov edx, ebx
call fcn.00494364
jmp 0x4cf170
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 0xc]
mov edx, ebx
call fcn.00494364
jmp 0x4cf170
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
push ebx
call sub.ws2_32.dll___WSAFDIsSet
test eax, eax
setne al
test al, al
je 0x4cf170
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 0xc]
mov edx, ebx
call fcn.00494364
inc edi
dec esi
jne 0x4cf0f0
movzx eax, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4cfdcd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [esi + 0x28]
cmp eax, 0xffffffff
setne bl
test bl, bl
je 0x4cfdb5
lea edx, [ebp - 3]
push edx
push 0
lea edx, [ebp - 2]
xor ecx, ecx
call dword [0x5059ac]
test al, al
je 0x4cfd4d
cmp byte [ebp - 3], 0
je 0x4cfd51
xor ebx, ebx
jmp 0x4cfd53
mov bl, 1
test byte [ebp - 2], bl
je 0x4cfd6d
push 2
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [esi + 0x28]
push eax
call sub.ws2_32.dll_recv
dec eax
sete bl
test bl, bl
jne 0x4cfdb5
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0x11
movzx eax, word [esi + 0x10]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0
lea edx, [ebp - 0x18]
mov ecx, 1
mov eax, 0x4cfde8
call fcn.0042279c
mov edx, dword [ebp - 8]
mov ecx, 0x4cfe28
mov eax, 7
call fcn.004bbb28
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x10]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cfdd4
lea eax, [ebp - 8]
call fcn.0040a088
pop eax
jmp eax
Function at 0x4d0950
Capabilities:
Set socket configuration

Disassembly:
push ebx
push ecx
mov ebx, eax
xor eax, eax
mov dword [ebx + 0x34], eax
mov eax, dword [ebx + 0x30]
call fcn.00407294
xor eax, eax
mov dword [ebx + 0x30], eax
mov eax, dword [ebx + 0x28]
cmp eax, 0xffffffff
je 0x4d09ab
cmp byte [ebx + 0x14], 0
je 0x4d099c
mov word [esp], 1
movzx edx, word [ebx + 0x16]
mov word [esp + 2], dx
push 4
lea edx, [esp + 4]
push edx
push 0x80
push 0xffff
push eax
call sub.ws2_32.dll_setsockopt
jmp 0x4d09a4
push 2
push eax
call sub.ws2_32.dll_shutdown
mov eax, ebx
call fcn.004cfe64
pop edx
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, eax
xor eax, eax
push ebp
push 0x4d0a99
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [esi + 0x34], 0
jbe 0x4d09da
mov bl, 1
jmp 0x4d0a81
mov eax, dword [esi + 0x28]
cmp eax, 0xffffffff
jne 0x4d09e9
xor ebx, ebx
jmp 0x4d0a81
xor ebx, ebx
mov byte [ebp - 2], 0
lea ecx, [ebp - 4]
push ecx
push edx
lea edx, [ebp - 3]
xor ecx, ecx
call dword [0x5059ac]
test al, al
je 0x4d0a31
cmp byte [ebp - 4], 0
jne 0x4d0a31
cmp byte [ebp - 3], 0
je 0x4d0a2d
push 2
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [esi + 0x28]
push eax
call sub.ws2_32.dll_recv
dec eax
jne 0x4d0a27
mov bl, 1
jmp 0x4d0a35
mov byte [ebp - 2], 1
jmp 0x4d0a35
xor ebx, ebx
jmp 0x4d0a35
mov byte [ebp - 2], 1
cmp byte [ebp - 2], 0
je 0x4d0a81
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0x11
movzx eax, word [esi + 0x10]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0
lea edx, [ebp - 0x18]
mov ecx, 1
mov eax, 0x4d0ab4
call fcn.0042279c
mov edx, dword [ebp - 8]
mov ecx, 0x4d0af4
mov eax, 7
call fcn.004bbb28
xor ebx, ebx
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x10]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d0aa0
lea eax, [ebp - 8]
call fcn.0040a088
pop eax
jmp eax
Function at 0x4d0bf0
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4d0da1
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x18]
test al, al
je 0x4d0d89
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x1001
push 0xffff
mov eax, dword [esi + 0x28]
push eax
call sub.ws2_32.dll_getsockopt
test eax, eax
jne 0x4d0d71
cmp edi, dword [ebp - 0x10]
jle 0x4d0d71
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x1001
push 0xffff
mov eax, dword [esi + 0x28]
push eax
call sub.ws2_32.dll_setsockopt
jmp 0x4d0d71
mov byte [ebp - 0x15], 0
mov byte [ebp - 0x16], 0
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x16]
push eax
push 0x5dc
lea ecx, [ebp - 0x15]
xor edx, edx
mov eax, dword [ebp - 0x1c]
call dword [0x5059ac]
mov byte [ebp - 0x1d], al
movzx ebx, byte [ebp - 0x1d]
test byte [ebp - 0x15], bl
je 0x4d0d02
cmp byte [ebp - 0x16], 0
jne 0x4d0d02
push 0
push edi
mov eax, dword [ebp - 4]
push eax
mov eax, dword [esi + 0x28]
push eax
call sub.ws2_32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x4d0ce4
sub edi, dword [ebp - 8]
mov eax, dword [ebp - 8]
add dword [ebp - 4], eax
mov eax, dword [ebp - 8]
cdq
add dword [esi + 0x38], eax
adc dword [esi + 0x3c], edx
jmp 0x4d0d17
cmp dword [ebp - 8], 0
jge 0x4d0cf3
mov dword [ebp - 0xc], 0xb
jmp 0x4d0d17
inc dword [ebp - 0xc]
push 0x5dc
call sub.kernel32.dll_Sleep
jmp 0x4d0d17
xor bl, 1
or bl, byte [ebp - 0x16]
je 0x4d0d0d
inc dword [ebp - 0xc]
push 0x5dc
call sub.kernel32.dll_Sleep
cmp dword [ebp - 0xc], 0xa
jle 0x4d0d71
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
lea eax, [ebp - 0x28]
push eax
push 0
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0x11
movzx eax, word [esi + 0x10]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0
lea edx, [ebp - 0x3c]
mov ecx, 1
mov eax, 0x4d0dc0
call fcn.0042279c
mov edx, dword [ebp - 0x2c]
mov ecx, 0x4d0e00
mov eax, 7
call fcn.004bbb40
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x10]
test edi, edi
jle 0x4d0d84
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x18]
test al, al
jne 0x4d0c7f
test edi, edi
setle bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d0da8
lea eax, [ebp - 0x2c]
call fcn.0040a088
pop eax
jmp eax
Function at 0x4f1d44
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4f1f09
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x4f1ed8
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, 0x4f1f24
call fcn.004f11f0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4f1ebb
mov dl, 1
mov eax, dword [0x47365c]
call fcn.0049830c
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4f1eb4
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.0042d240
mov ecx, eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x78]
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x4f1e9c
inc esi
xor ebx, ebx
lea ecx, [ebp - 0xc]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00496554
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4f1df6
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x4f1e94
lea ecx, [ebp - 0x10]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00497450
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4f1e17
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x4f1e94
lea ecx, [ebp - 0x24]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00496554
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0x11
lea ecx, [ebp - 0x28]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00497450
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0x11
lea eax, [ebp - 0x20]
push eax
push 1
mov ecx, 0x4f1f4c
mov edx, 0x4f1f64
mov eax, 7
call fcn.004bbb40
lea ecx, [ebp - 0x2c]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00497450
mov eax, dword [ebp - 0x2c]
call fcn.0040abe8
push eax
lea ecx, [ebp - 0x30]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00496554
mov eax, dword [ebp - 0x30]
call fcn.0040abe8
push eax
call sub.kernel32.dll_SetEnvironmentVariableW
inc ebx
dec esi
jne 0x4f1ddd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f1ebb
mov eax, dword [ebp - 8]
call fcn.0040841c
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f1edf
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [ebp - 4], edx
call fcn.0040841c
pop eax
jmp eax