joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49bf8e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x49bfbb
call fcn.0049e819
mov dword [eax], esi
call fcn.0049e806
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00494998
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x49bf97
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x49bfea
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.0049e82c
pop ecx
call fcn.0049e806
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x49c011
test al, 1
je 0x49c011
test byte [esp + 0xc], 2
je 0x49c011
call fcn.0049e819
mov dword [eax], 5
call fcn.0049e806
mov dword [eax], 0xd
jmp 0x49bfe1
xor eax, eax
pop esi
ret

Function at 0x49c88a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x518334]
jne 0x49c894
repz ret
jmp fcn.004ac801

Function at 0x4a62a5
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x518e58]
je 0x4a62c0
inc edi
cmp edi, 0x17
jb 0x4a62b1
cmp edi, 0x17
jae 0x4a6440
push ebp
push 3
call fcn.004b1172
cmp eax, 1
pop ecx
je 0x4a640c
push 3
call fcn.004b1172
test eax, eax
pop ecx
jne 0x4a62f4
cmp dword [0x518180], 1
je 0x4a640c
cmp ebx, 0xfc
je 0x4a643f
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x51e940
push ebp
call fcn.0049c123
add esp, 0xc
test eax, eax
je 0x4a632a
push esi
push esi
push esi
push esi
push esi
call fcn.0049489c
add esp, 0x14
push 0x104
mov esi, 0x51e959
push esi
push 0
mov byte [0x51ea5d], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x4a636e
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0049c123
add esp, 0xc
test eax, eax
je 0x4a636e
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0049489c
add esp, 0x14
push esi
call fcn.00496950
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4a63b3
push esi
call fcn.00496950
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x51ec54
push 0x4e6dd4
sub ecx, eax
push ecx
push eax
call fcn.00499222
add esp, 0x14
test eax, eax
je 0x4a63b3
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0049489c
add esp, 0x14
jmp 0x4a63b5
xor esi, esi
push 0x4e6dd0
push ebx
push ebp
call fcn.004ad96d
add esp, 0xc
test eax, eax
je 0x4a63d5
push esi
push esi
push esi
push esi
push esi
call fcn.0049489c
add esp, 0x14
push dword [edi*8 + 0x518e5c]
push ebx
push ebp
call fcn.004ad96d
add esp, 0xc
test eax, eax
je 0x4a63f7
push esi
push esi
push esi
push esi
push esi
call fcn.0049489c
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004b0fb5
add esp, 0xc
jmp 0x4a643f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4a643f
cmp ebp, 0xffffffff
je 0x4a643f
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x518e5c]
push dword [esi]
call fcn.00496950
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4b0fb5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004a0ad6
xor ebx, ebx
cmp dword [0x51f298], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4b108b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4b116b
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4b116b
push eax
call fcn.004a0a68
mov dword [esp], 0x4e79c8
push edi
mov dword [0x51f298], eax
call esi
push eax
call fcn.004a0a68
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x51f29c], eax
call esi
push eax
call fcn.004a0a68
mov dword [0x51f2a0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004994b4
test eax, eax
pop ecx
pop ecx
je 0x4b1059
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0049489c
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4b108b
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004a0a68
cmp eax, ebx
pop ecx
mov dword [0x51f2a8], eax
je 0x4b108b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004a0a68
pop ecx
mov dword [0x51f2a4], eax
mov eax, dword [0x51f2a4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4b1110
cmp dword [0x51f2a8], ecx
je 0x4b1110
push eax
call fcn.004a0adf
push dword [0x51f2a8]
mov esi, eax
call fcn.004a0adf
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4b1110
cmp edi, ebx
je 0x4b1110
call esi
cmp eax, ebx
je 0x4b10dd
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4b10dd
test byte [ebp - 0x18], 1
jne 0x4b1110
lea eax, [ebp - 0x10]
push eax
call fcn.004994eb
test eax, eax
pop ecx
je 0x4b10f8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0049489c
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4b1107
or dword [ebp + 0x10], 0x200000
jmp 0x4b114b
or dword [ebp + 0x10], 0x40000
jmp 0x4b114b
mov eax, dword [0x51f29c]
cmp eax, dword [ebp - 8]
je 0x4b114b
push eax
call fcn.004a0adf
cmp eax, ebx
pop ecx
je 0x4b114b
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4b114b
mov eax, dword [0x51f2a0]
cmp eax, dword [ebp - 8]
je 0x4b114b
push eax
call fcn.004a0adf
cmp eax, ebx
pop ecx
je 0x4b114b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x51f298]
call fcn.004a0adf
cmp eax, ebx
pop ecx
je 0x4b116b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4b116d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4b3a14
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x518334]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4b3a55
cmp byte [ebp - 0x194], 2
jne 0x4b3a4f
cmp byte [ebp - 0x193], 2
je 0x4b3a58
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049c88a
leave
ret
Function at 0x4bb706
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x4bb735
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 0x4bb856
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x4bb876
push dword [esi + 0xf4]
push dword [esp + 0xc]
push dword [esp + 0xc]
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x4bb8af
cmp eax, 2
jg 0x4bb8af
push dword [esi + 0xf0]
imul eax, eax, 3
push 1
add eax, 0x4e8e90
push 2
push eax
call fcn.00499ba9
push dword [esi + 0xf0]
push 1
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.00499ba9
add esp, 0x20
xor eax, eax
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4 + 0x12c]
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [ebp + 0x18]
and dword [edi], 0
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x4bbae7
push ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x4bbac1
and dword [ebp + 8], 0
mov dword [edi], 0x51
jmp 0x4bbae6
push ebx
push esi
call fcn.004c4c26
push eax
push str.Send_failure:__s
push dword [esi]
call fcn.004bb9e1
mov eax, dword [esi]
mov dword [eax + 0x855c], ebx
add esp, 0x14
mov dword [edi], 0x37
pop ebx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret
Function at 0x4bc196
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x518334]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push ebx
push esi
mov esi, dword [ebp + 0x98]
cmp dword [esi + 0x198], 0
mov ebx, dword [esi]
push edi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x80], ebx
jne 0x4bc2b3
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x9c]
mov edi, 0x80
mov dword [ebp - 0x7c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4bc213
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004c4c26
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.004bb9e1
add esp, 0x18
jmp 0x4bc2ba
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x9c]
mov dword [ebp - 0x7c], edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4bc246
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004c4c26
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
jmp 0x4bc205
lea edi, [esi + 0xc8]
lea ebx, [esi + 0x9a]
lea esi, [ebp - 0x74]
call fcn.004bc15d
test eax, eax
jne 0x4bc27b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.004c4c26
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x80]
jmp 0x4bc206
mov eax, dword [ebp - 0x78]
lea edi, [eax + 0xfc]
lea ebx, [eax + 0xcc]
lea esi, [ebp + 0xc]
call fcn.004bc15d
test eax, eax
jne 0x4bc2b0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.004c4c26
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
jmp 0x4bc276
mov esi, dword [ebp - 0x78]
push esi
call fcn.004bc10e
pop ecx
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049c88a
add ebp, 0x90
leave
ret

Function at 0x4bc2d2
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x308]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 1
push 6
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x4bc317
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004c4c26
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004bb96e
add esp, 0x14
jmp 0x4bc324
push str.TCP_NODELAY_set_n
push esi
call fcn.004bb96e
pop ecx
pop ecx
pop esi
leave
ret
Function at 0x4bc77b
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x520]
cmp eax, 0xffffffff
push esi
je 0x4bc7ce
mov ecx, dword [ecx + 0x514]
mov ecx, dword [ecx]
lea eax, [ecx + eax*4]
cmp dword [eax], 0
je 0x4bc7ce
mov ecx, dword [ebp + 0xc]
test ecx, ecx
mov eax, dword [eax]
je 0x4bc7a8
mov dword [ecx], eax
cmp dword [eax + 0x144], 0
mov esi, dword [eax + 0x12c]
jne 0x4bc7ce
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x4bc7ce
mov eax, esi
jmp 0x4bc7d1
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x4bd8a3
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
and dword [eax], 0
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
mov dword [ebp - 8], eax
jne 0x4bda15
push esi
mov esi, dword [ebp - 0x10]
test esi, esi
mov dword [ebp - 0xc], esi
je 0x4bd9fa
push ebx
push edi
jmp 0x4bd8eb
mov esi, dword [ebp - 0xc]
cmp dword [esi + 4], 2
jne 0x4bd98e
cmp dword [esi + 0x18], 0
je 0x4bd98e
mov eax, dword [esi + 0x10]
test eax, eax
jbe 0x4bd98e
push 0x10
pop edi
cmp eax, edi
jb 0x4bd98e
push 0x20
call dword [0x519618]
mov ebx, eax
xor eax, eax
cmp ebx, eax
pop ecx
je 0x4bd99e
mov ecx, dword [esi]
mov dword [ebx], ecx
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [ebx + 8], ecx
mov ecx, dword [esi + 0xc]
push edi
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x1c], eax
call dword [0x519618]
test eax, eax
pop ecx
mov dword [ebx + 0x18], eax
je 0x4bd9a7
mov esi, dword [esi + 0x18]
mov edi, eax
mov eax, dword [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x4bd975
push eax
call dword [0x519624]
test eax, eax
pop ecx
mov dword [ebx + 0x14], eax
je 0x4bd9b7
cmp dword [ebp - 4], 0
jne 0x4bd97e
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4bd988
mov dword [eax + 0x1c], ebx
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x14], ebx
mov esi, dword [esi + 0x1c]
test esi, esi
mov dword [ebp - 0xc], esi
jne 0x4bd8e8
jmp 0x4bd9d0
mov dword [ebp - 8], 8
jmp 0x4bd9d0
push ebx
mov dword [ebp - 8], 8
call dword [0x51961c]
jmp 0x4bd9cf
push dword [ebx + 0x18]
mov dword [ebp - 8], 8
call dword [0x51961c]
push ebx
call dword [0x51961c]
pop ecx
pop ecx
xor esi, esi
cmp dword [ebp - 0x10], esi
pop edi
pop ebx
je 0x4bd9e2
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], esi
je 0x4bd9f5
push dword [ebp - 4]
call fcn.004bd867
pop ecx
mov dword [ebp - 4], esi
jmp 0x4bda09
cmp dword [ebp - 4], esi
jne 0x4bda09
mov eax, 0x2af9
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
pop esi
leave
ret
Function at 0x4bdd67
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x48
push 1
mov ebx, eax
mov edi, ecx
call dword [0x519628]
mov esi, eax
xor eax, eax
cmp esi, eax
pop ecx
pop ecx
mov dword [ebp - 4], 0xc
mov dword [edi + 0x3ac], esi
je 0x4bde19
mov dword [edi + 0x3a4], eax
mov dword [edi + 0x3a8], eax
mov dword [edi + 0x3a0], eax
mov dword [edi + 0x39c], ebx
or dword [esi + 4], 0xffffffff
push ebx
push dword [ebp + 8]
mov dword [esi], eax
lea eax, [esi + 0x10]
call fcn.004bdc23
test eax, eax
pop ecx
pop ecx
je 0x4bde19
lea ebx, [edi + 0x398]
push dword [ebx]
call fcn.004b4102
push dword [ebp + 8]
call dword [0x519624]
test eax, eax
pop ecx
pop ecx
mov dword [ebx], eax
je 0x4bde19
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x4bde19
lea eax, [esi + 0x10]
push eax
push 0x4bdc97
call fcn.004c544e
test eax, eax
pop ecx
pop ecx
mov dword [esi], eax
jne 0x4bde33
call fcn.0049e806
mov eax, dword [eax]
mov dword [ebp - 4], eax
add edi, 0x398
push edi
call fcn.004bdd15
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
jmp 0x4bde36
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4c198d
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x31c
push ebx
mov ebx, dword [ebp + 0x78]
push esi
mov esi, dword [ebp + 0x74]
xor edx, edx
push edi
xor edi, edi
cmp esi, 0xffffffff
mov dword [ebp + 0x64], edx
mov dword [ebp + 0x68], edx
jne 0x4c19c1
cmp ebx, esi
jne 0x4c19c1
mov eax, dword [ebp + 0x7c]
call fcn.004c196e
jmp 0x4c1b5e
cmp dword [ebp + 0x7c], edx
jle 0x4c19d6
mov edi, dword [ebp + 0x7c]
call fcn.004c2f53
mov dword [ebp + 0x68], edx
mov dword [ebp + 0x64], eax
xor edx, edx
xor eax, eax
or ecx, 0xffffffff
inc eax
cmp esi, ecx
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0x1ac], edx
je 0x4c1a06
mov dword [ebp - 0x1a8], esi
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], eax
mov ecx, esi
cmp ebx, 0xffffffff
mov dword [ebp - 0x2b0], edx
je 0x4c1a5d
mov dword [ebp - 0x2b0], eax
xor eax, eax
cmp dword [ebp - 0xa8], edx
mov dword [ebp - 0x2ac], ebx
jbe 0x4c1a39
cmp dword [ebp + eax*4 - 0xa4], ebx
je 0x4c1a39
inc eax
cmp eax, dword [ebp - 0xa8]
jb 0x4c1a27
cmp eax, dword [ebp - 0xa8]
jne 0x4c1a57
cmp dword [ebp - 0xa8], 0x40
jae 0x4c1a57
mov dword [ebp + eax*4 - 0xa4], ebx
inc dword [ebp - 0xa8]
cmp ebx, ecx
jbe 0x4c1a5d
mov ecx, ebx
cmp dword [ebp + 0x7c], edx
jge 0x4c1a66
xor ebx, ebx
jmp 0x4c1a69
lea ebx, [ebp + 0x5c]
lea esi, [ecx + 1]
xor eax, eax
cmp dword [ebp + 0x7c], eax
jle 0x4c1a88
mov eax, edi
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp + 0x60], edx
jmp 0x4c1a8d
jne 0x4c1a90
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x5c], eax
push ebx
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x2b0]
push eax
lea eax, [ebp - 0x1ac]
push eax
push esi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x4c1ae9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4c1ac3
cmp eax, 0x2714
jne 0x4c1aed
cmp dword [ebp + 0x7c], 0
jle 0x4c1a6c
push dword [ebp + 0x68]
push dword [ebp + 0x64]
call fcn.004c2f53
push edx
push eax
call fcn.004c2f69
mov edi, dword [ebp + 0x7c]
sub edi, eax
add esp, 0x10
test edi, edi
jg 0x4c1a6c
jmp 0x4c1aed
test eax, eax
jge 0x4c1af2
or eax, 0xffffffff
jmp 0x4c1b5e
jne 0x4c1af8
xor eax, eax
jmp 0x4c1b5e
xor esi, esi
cmp dword [ebp + 0x74], 0xffffffff
je 0x4c1b2a
lea eax, [ebp - 0x1ac]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4c1b14
inc esi
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4c1b2a
or esi, 4
cmp dword [ebp + 0x78], 0xffffffff
je 0x4c1b5c
lea eax, [ebp - 0x2b0]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4c1b46
or esi, 2
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4c1b5c
or esi, 4
mov eax, esi
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret
Function at 0x4c3ab0
Capabilities:
Parse pe header

Disassembly:
movsx eax, byte [esp + 4]
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x4c3abd
jmp dword [eax*4 + 0x4c3b18]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret
mov al, byte [esp + 4]
ret

Function at 0x4c57fe
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi]
push ebx
xor ebx, ebx
cmp dword [eax + 4], 2
push edi
sete bl
test ebx, ebx
je 0x4c5822
push dword [eax + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [esi + 0xc]
jmp 0x4c5853
cmp dword [esi + 8], 0
jne 0x4c5843
push 0x4ec1e4
push dword [eax + 8]
call fcn.004946b8
test eax, eax
pop ecx
pop ecx
mov dword [esi + 8], eax
jne 0x4c5843
or eax, 0xffffffff
jmp 0x4c5879
push dword [esi + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.00494f9a
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4c5861
cmp edi, dword [ebp + 0xc]
jbe 0x4c5877
test ebx, ebx
jne 0x4c5871
push dword [esi + 8]
call fcn.0049473d
and dword [esi + 8], ebx
pop ecx
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop ebx
pop ebp
ret
Function at 0x4c7b10
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x518334]
xor eax, ebp
mov dword [ebp - 8], eax
mov word [ebp - 0x218], 0
push 0x208
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.00497210
add esp, 0xc
mov byte [ebp - 1], 0
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
test eax, eax
ja 0x4c7b66
jmp 0x4c7c13
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov dword [ebp - 0x21c], 0
jmp 0x4c7b8e
mov eax, dword [ebp - 0x21c]
add eax, 1
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 5
jae 0x4c7c13
mov word [ebp - 0x430], 0
push 0x208
push 0
lea ecx, [ebp - 0x42e]
push ecx
call fcn.00497210
add esp, 0xc
push 0xffffffffffffffff
lea edx, [ebp - 0x218]
push edx
push 0x104
lea eax, [ebp - 0x430]
push eax
call fcn.0049aa24
add esp, 0x10
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ecx*4 + 0x51e314]
push edx
push 0x104
lea eax, [ebp - 0x430]
push eax
call fcn.004c72d6
add esp, 0x10
lea ecx, [ebp - 0x430]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4c7c0e
mov byte [ebp - 1], 1
jmp 0x4c7c13
jmp 0x4c7b7f
mov al, byte [ebp - 1]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0049c88a
mov esp, ebp
pop ebp
ret

Function at 0x4c7c30
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x518334]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x23d], 0
mov dword [ebp - 0x23c], 0xffffffff
mov dword [ebp - 0x238], 0
push 0x228
push 0
lea eax, [ebp - 0x234]
push eax
call fcn.00497210
add esp, 0xc
mov dword [ebp - 0x238], 0x22c
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0xffffffff
jne 0x4c7c9a
jmp 0x4c7ce9
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp - 0x23c]
push edx
call sub.KERNEL32.DLL_Process32FirstW
test eax, eax
je 0x4c7ce9
lea eax, [ebp - 0x214]
push eax
push str.vmusrvc.exe
call fcn.004990a4
add esp, 8
test eax, eax
jne 0x4c7cd2
mov byte [ebp - 0x23d], 1
jmp 0x4c7ce9
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp - 0x23c]
push edx
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x4c7cb1
cmp dword [ebp - 0x23c], 0
je 0x4c7d09
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp - 0x23c], 0
mov al, byte [ebp - 0x23d]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049c88a
mov esp, ebp
pop ebp
ret
Function at 0x4c86a0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4c86c3
xor eax, eax
jmp 0x4c878e
push 1
mov edx, dword [ebp - 8]
push edx
call fcn.00498322
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4c86e1
xor eax, eax
jmp 0x4c878e
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x4c870d
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00494c70
add esp, 4
xor eax, eax
jmp 0x4c878e
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x14]
push eax
push 0x4ecd1c
mov ecx, dword [ebp - 0x18]
push ecx
call sub.VERSION.dll_VerQueryValueW
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4c8780
cmp dword [ebp - 0x14], 0
je 0x4c8780
push 0x10
call fcn.00441e72
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4c876c
mov edx, dword [ebp - 0x14]
movzx eax, word [edx + 2]
push eax
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x20]
call fcn.004c8640
mov dword [ebp - 0x24], eax
jmp 0x4c8773
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
jmp 0x4c878e
mov edx, dword [ebp - 0x18]
push edx
call fcn.00494c70
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret