joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a4e33
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x60b1e0]
jne 0x4a4e3d
repz ret
jmp fcn.004b64ec

Function at 0x4b0050
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 + 0x60bf20]
je 0x4b006b
inc edi
cmp edi, 0x17
jb 0x4b005c
cmp edi, 0x17
jae 0x4b01eb
push ebp
push 3
call fcn.004bb168
cmp eax, 1
pop ecx
je 0x4b01b7
push 3
call fcn.004bb168
test eax, eax
pop ecx
jne 0x4b009f
cmp dword [0x60b1d4], 1
je 0x4b01b7
cmp ebx, 0xfc
je 0x4b01ea
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x61bc38
push ebp
call fcn.004a3090
add esp, 0xc
test eax, eax
je 0x4b00d5
push esi
push esi
push esi
push esi
push esi
call fcn.0049ced9
add esp, 0x14
push 0x104
mov esi, 0x61bc51
push esi
push 0
mov byte [0x61bd55], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4b0119
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004a3090
add esp, 0xc
test eax, eax
je 0x4b0119
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0049ced9
add esp, 0x14
push esi
call fcn.0049dbb0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4b015e
push esi
call fcn.0049dbb0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x61bf4c
push 0x5a50a4
sub ecx, eax
push ecx
push eax
call fcn.004a3558
add esp, 0x14
test eax, eax
je 0x4b015e
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0049ced9
add esp, 0x14
jmp 0x4b0160
xor esi, esi
push 0x5a50a0
push ebx
push ebp
call fcn.004b7161
add esp, 0xc
test eax, eax
je 0x4b0180
push esi
push esi
push esi
push esi
push esi
call fcn.0049ced9
add esp, 0x14
push dword [edi*8 + 0x60bf24]
push ebx
push ebp
call fcn.004b7161
add esp, 0xc
test eax, eax
je 0x4b01a2
push esi
push esi
push esi
push esi
push esi
call fcn.0049ced9
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004bafab
add esp, 0xc
jmp 0x4b01ea
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4b01ea
cmp ebp, 0xffffffff
je 0x4b01ea
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x60bf24]
push dword [esi]
call fcn.0049dbb0
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 0x4bafab
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004a7e30
xor ebx, ebx
cmp dword [0x61c4fc], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4bb081
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4bb161
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5a62b0
push edi
call esi
cmp eax, ebx
je 0x4bb161
push eax
call fcn.004a7dc2
mov dword [esp], 0x5a62a0
push edi
mov dword [0x61c4fc], eax
call esi
push eax
call fcn.004a7dc2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x61c500], eax
call esi
push eax
call fcn.004a7dc2
mov dword [0x61c504], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004a5f0b
test eax, eax
pop ecx
pop ecx
je 0x4bb04f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0049ced9
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4bb081
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004a7dc2
cmp eax, ebx
pop ecx
mov dword [0x61c50c], eax
je 0x4bb081
push 0x5a6258
push edi
call esi
push eax
call fcn.004a7dc2
pop ecx
mov dword [0x61c508], eax
mov eax, dword [0x61c508]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4bb106
cmp dword [0x61c50c], ecx
je 0x4bb106
push eax
call fcn.004a7e39
push dword [0x61c50c]
mov esi, eax
call fcn.004a7e39
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4bb106
cmp edi, ebx
je 0x4bb106
call esi
cmp eax, ebx
je 0x4bb0d3
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4bb0d3
test byte [ebp - 0x18], 1
jne 0x4bb106
lea eax, [ebp - 0x10]
push eax
call fcn.004a5f42
test eax, eax
pop ecx
je 0x4bb0ee
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0049ced9
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4bb0fd
or dword [ebp + 0x10], 0x200000
jmp 0x4bb141
or dword [ebp + 0x10], 0x40000
jmp 0x4bb141
mov eax, dword [0x61c500]
cmp eax, dword [ebp - 8]
je 0x4bb141
push eax
call fcn.004a7e39
cmp eax, ebx
pop ecx
je 0x4bb141
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4bb141
mov eax, dword [0x61c504]
cmp eax, dword [ebp - 8]
je 0x4bb141
push eax
call fcn.004a7e39
cmp eax, ebx
pop ecx
je 0x4bb141
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x61c4fc]
call fcn.004a7e39
cmp eax, ebx
pop ecx
je 0x4bb161
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4bb163
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4bec11
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x60b1e0]
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 0x4bec52
cmp byte [ebp - 0x194], 2
jne 0x4bec4c
cmp byte [ebp - 0x193], 2
je 0x4bec55
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4e33
leave
ret
Function at 0x4c6f16
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 0x4c6f45
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 0x4c7066
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x4c7086
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 0x4c70bf
cmp eax, 2
jg 0x4c70bf
push dword [esi + 0xf0]
imul eax, eax, 3
push 1
add eax, 0x5a7078
push 2
push eax
call fcn.004a224e
push dword [esi + 0xf0]
push 1
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.004a224e
add esp, 0x20
xor eax, eax
ret

Function at 0x4c7285
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 0x4c72f7
push ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x4c72d1
and dword [ebp + 8], 0
mov dword [edi], 0x51
jmp 0x4c72f6
push ebx
push esi
call fcn.004d3204
push eax
push str.Send_failure:__s
push dword [esi]
call fcn.004c71f1
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 0x4c79a6
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x60b1e0]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push ebx
push esi
mov esi, dword [ebp + 0x98]
cmp dword [esi + 0x1b8], 0
mov ebx, dword [esi]
push edi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x80], ebx
jne 0x4c7ac3
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 0x4c7a23
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004d3204
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.004c71f1
add esp, 0x18
jmp 0x4c7aca
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 0x4c7a56
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004d3204
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
jmp 0x4c7a15
lea edi, [esi + 0xc8]
lea ebx, [esi + 0x9a]
lea esi, [ebp - 0x74]
call fcn.004c796d
test eax, eax
jne 0x4c7a8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.004d3204
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x80]
jmp 0x4c7a16
mov eax, dword [ebp - 0x78]
lea edi, [eax + 0xfc]
lea ebx, [eax + 0xcc]
lea esi, [ebp + 0xc]
call fcn.004c796d
test eax, eax
jne 0x4c7ac0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.004d3204
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
jmp 0x4c7a86
mov esi, dword [ebp - 0x78]
push esi
call fcn.004c791e
pop ecx
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a4e33
add ebp, 0x90
leave
ret

Function at 0x4c7ae2
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 0x4c7b27
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004d3204
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004c717e
add esp, 0x14
jmp 0x4c7b34
push str.TCP_NODELAY_set_n
push esi
call fcn.004c717e
pop ecx
pop ecx
pop esi
leave
ret
Function at 0x4c7f8b
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 0x4c7fd2
mov ecx, dword [ecx + 0x514]
mov ecx, dword [ecx]
lea eax, [ecx + eax*4]
cmp dword [eax], 0
je 0x4c7fd2
mov ecx, dword [ebp + 0xc]
test ecx, ecx
mov eax, dword [eax]
je 0x4c7fb8
mov dword [ecx], eax
cmp dword [eax + 0x144], 0
mov esi, dword [eax + 0x12c]
je 0x4c7fd8
push eax
call fcn.004bf3b9
pop ecx
test eax, eax
jne 0x4c7fe9
or eax, 0xffffffff
pop esi
pop ebp
ret
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
jmp 0x4c7fce
mov eax, esi
jmp 0x4c7fd5

Function at 0x4c7fed
Capabilities:
Parse pe header

Disassembly:
movsx eax, byte [esp + 4]
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x4c7ffa
jmp dword [eax*4 + 0x4c8055]
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 0x4cc2ba
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 0x4cc42c
push esi
mov esi, dword [ebp - 0x10]
test esi, esi
mov dword [ebp - 0xc], esi
je 0x4cc411
push ebx
push edi
jmp 0x4cc302
mov esi, dword [ebp - 0xc]
cmp dword [esi + 4], 2
jne 0x4cc3a5
cmp dword [esi + 0x18], 0
je 0x4cc3a5
mov eax, dword [esi + 0x10]
test eax, eax
jbe 0x4cc3a5
push 0x10
pop edi
cmp eax, edi
jb 0x4cc3a5
push 0x20
call dword [0x60c858]
mov ebx, eax
xor eax, eax
cmp ebx, eax
pop ecx
je 0x4cc3b5
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 [0x60c858]
test eax, eax
pop ecx
mov dword [ebx + 0x18], eax
je 0x4cc3be
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 0x4cc38c
push eax
call dword [0x60c864]
test eax, eax
pop ecx
mov dword [ebx + 0x14], eax
je 0x4cc3ce
cmp dword [ebp - 4], 0
jne 0x4cc395
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4cc39f
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 0x4cc2ff
jmp 0x4cc3e7
mov dword [ebp - 8], 8
jmp 0x4cc3e7
push ebx
mov dword [ebp - 8], 8
call dword [0x60c85c]
jmp 0x4cc3e6
push dword [ebx + 0x18]
mov dword [ebp - 8], 8
call dword [0x60c85c]
push ebx
call dword [0x60c85c]
pop ecx
pop ecx
xor esi, esi
cmp dword [ebp - 0x10], esi
pop edi
pop ebx
je 0x4cc3f9
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], esi
je 0x4cc40c
push dword [ebp - 4]
call fcn.004cc27e
pop ecx
mov dword [ebp - 4], esi
jmp 0x4cc420
cmp dword [ebp - 4], esi
jne 0x4cc420
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 0x4cc77e
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 [0x60c868]
mov esi, eax
xor eax, eax
cmp esi, eax
pop ecx
pop ecx
mov dword [ebp - 4], 0xc
mov dword [edi + 0x3cc], esi
je 0x4cc830
mov dword [edi + 0x3c4], eax
mov dword [edi + 0x3c8], eax
mov dword [edi + 0x3c0], eax
mov dword [edi + 0x3bc], ebx
or dword [esi + 4], 0xffffffff
push ebx
push dword [ebp + 8]
mov dword [esi], eax
lea eax, [esi + 0x10]
call fcn.004cc63a
test eax, eax
pop ecx
pop ecx
je 0x4cc830
lea ebx, [edi + 0x3b8]
push dword [ebx]
call fcn.004bf840
push dword [ebp + 8]
call dword [0x60c864]
test eax, eax
pop ecx
pop ecx
mov dword [ebx], eax
je 0x4cc830
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x4cc830
lea eax, [esi + 0x10]
push eax
push 0x4cc6ae
call fcn.004d3a29
test eax, eax
pop ecx
pop ecx
mov dword [esi], eax
jne 0x4cc84a
call fcn.004a6acb
mov eax, dword [eax]
mov dword [ebp - 4], eax
add edi, 0x3b8
push edi
call fcn.004cc72c
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4cc84d
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d0316
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 0x4d034a
cmp ebx, esi
jne 0x4d034a
mov eax, dword [ebp + 0x7c]
call fcn.004d02f7
jmp 0x4d04e7
cmp dword [ebp + 0x7c], edx
jle 0x4d035f
mov edi, dword [ebp + 0x7c]
call fcn.004d18dc
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 0x4d038f
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 0x4d03e6
mov dword [ebp - 0x2b0], eax
xor eax, eax
cmp dword [ebp - 0xa8], edx
mov dword [ebp - 0x2ac], ebx
jbe 0x4d03c2
cmp dword [ebp + eax*4 - 0xa4], ebx
je 0x4d03c2
inc eax
cmp eax, dword [ebp - 0xa8]
jb 0x4d03b0
cmp eax, dword [ebp - 0xa8]
jne 0x4d03e0
cmp dword [ebp - 0xa8], 0x40
jae 0x4d03e0
mov dword [ebp + eax*4 - 0xa4], ebx
inc dword [ebp - 0xa8]
cmp ebx, ecx
jbe 0x4d03e6
mov ecx, ebx
cmp dword [ebp + 0x7c], edx
jge 0x4d03ef
xor ebx, ebx
jmp 0x4d03f2
lea ebx, [ebp + 0x5c]
lea esi, [ecx + 1]
xor eax, eax
cmp dword [ebp + 0x7c], eax
jle 0x4d0411
mov eax, edi
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp + 0x60], edx
jmp 0x4d0416
jne 0x4d0419
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 0x4d0472
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4d044c
cmp eax, 0x2714
jne 0x4d0476
cmp dword [ebp + 0x7c], 0
jle 0x4d03f5
push dword [ebp + 0x68]
push dword [ebp + 0x64]
call fcn.004d18dc
push edx
push eax
call fcn.004d18f2
mov edi, dword [ebp + 0x7c]
sub edi, eax
add esp, 0x10
test edi, edi
jg 0x4d03f5
jmp 0x4d0476
test eax, eax
jge 0x4d047b
or eax, 0xffffffff
jmp 0x4d04e7
jne 0x4d0481
xor eax, eax
jmp 0x4d04e7
xor esi, esi
cmp dword [ebp + 0x74], 0xffffffff
je 0x4d04b3
lea eax, [ebp - 0x1ac]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4d049d
inc esi
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4d04b3
or esi, 4
cmp dword [ebp + 0x78], 0xffffffff
je 0x4d04e5
lea eax, [ebp - 0x2b0]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4d04cf
or esi, 2
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4d04e5
or esi, 4
mov eax, esi
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret
Function at 0x4d3f00
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 0x4d3f24
push dword [eax + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [esi + 0xc]
jmp 0x4d3f55
cmp dword [esi + 8], 0
jne 0x4d3f45
push 0x5ee454
push dword [eax + 8]
call fcn.004a17f3
test eax, eax
pop ecx
pop ecx
mov dword [esi + 8], eax
jne 0x4d3f45
or eax, 0xffffffff
jmp 0x4d3f7b
push dword [esi + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.004a0ef4
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4d3f63
cmp edi, dword [ebp + 0xc]
jbe 0x4d3f79
test ebx, ebx
jne 0x4d3f73
push dword [esi + 8]
call fcn.004a0f81
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 0x4d5a00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x474
call fcn.004b5ae0
mov eax, dword [0x60b1e0]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
mov dword [esp + 0x3c], 0
jne 0x4d5a47
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.004a4e33
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x48]
push eax
push esi
call fcn.0059266e
add esp, 8
test eax, eax
jl 0x4d5a30
mov eax, 8
call fcn.004b5ae0
fldz
fstp qword [esp]
lea ecx, [esp + 0x50]
push 0x30
push ecx
call fcn.004d5870
mov ebx, dword [ebp + 0xc]
add esp, 0x10
test ebx, ebx
je 0x4d5a30
push 0x5ee454
push esi
call fcn.004a17f3
add esp, 8
test eax, eax
mov dword [esp + 0x40], eax
je 0x4d5b21
jmp 0x4d5aa4
mov eax, dword [esp + 0x40]
test ebx, ebx
jle 0x4d5ab2
cmp ebx, 0x400
mov esi, ebx
jl 0x4d5ab7
mov esi, 0x400
push eax
push esi
lea edx, [esp + 0x80]
push 1
push edx
call fcn.004a0ef4
mov edi, eax
add esp, 0x10
test edi, edi
mov dword [esp + 0x44], edi
jle 0x4d5b05
fild dword [esp + 0x44]
mov eax, 8
call fcn.004b5ae0
lea eax, [esp + 0x80]
fstp qword [esp]
push esi
push eax
call fcn.004d5870
add dword [esp + 0x4c], edi
add esp, 0x10
test ebx, ebx
jle 0x4d5aa0
sub ebx, esi
test ebx, ebx
jg 0x4d5aa0
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004a0f81
lea edx, [esp + 0x7c]
push 0x400
push edx
call fcn.004e4960
add esp, 0xc
mov ecx, dword [esp + 0x47c]
mov eax, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a4e33
mov esp, ebp
pop ebp
ret

Function at 0x4e2d80
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call fcn.0049bf00
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov eax, 1
pop esi
ret
Function at 0x4e7ce0
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov eax, 0x108
call fcn.004b5ae0
mov eax, dword [0x60b1e0]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x4e7d67
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x4e7d67
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push 0x100
push edx
call fcn.004a3a5f
add esp, 0x10
test eax, eax
jge 0x4e7d3d
mov eax, 0x100
push 0
lea ecx, [esp + 8]
push ecx
push eax
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004a4e33
add esp, 0x108
ret
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push 0xff
push edx
call fcn.004a3a5f
add esp, 0x10
mov byte [esp + 0x107], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4e7df5
call fcn.004e7ba0
test eax, eax
jle 0x4e7df5
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
lea ecx, [esp + 8]
push ecx
push 0
push 1
push 0
push 0
push 0
mov esi, eax
push 1
lea eax, [esp + 0x28]
push esi
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004a4e33
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.004a4e33
add esp, 0x108
ret

Function at 0x4e7e50
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
xor cl, cl
test edi, edi
jbe 0x4e7e76
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
sub esi, eax
mov dl, byte [esi + eax]
xor dl, byte [eax]
add eax, 1
or cl, dl
sub edi, 1
jne 0x4e7e66
pop esi
movzx eax, cl
pop edi
ret
Function at 0x518d70
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [esp + 4]
push ebp
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
jle 0x518e60
push esi
mov esi, dword [esp + 0x14]
lea esp, [esp]
cmp edi, 3
jl 0x518df2
movzx eax, byte [esi + 2]
xor edx, edx
mov dh, byte [esi]
add ecx, 1
add ecx, 1
add ecx, 1
mov dl, byte [esi + 1]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + 0x5ca0a0]
mov byte [ecx - 3], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + 0x5ca0a0]
mov byte [ecx - 2], al
mov eax, edx
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + 0x5ca0a0]
mov byte [ecx - 1], al
and edx, 0x3f
movzx edx, byte [edx + 0x5ca0a0]
mov byte [ecx], dl
jmp 0x518e4b
movzx edx, byte [esi]
shl edx, 0x10
cmp edi, 2
jne 0x518e04
xor eax, eax
mov ah, byte [esi + 1]
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + 0x5ca0a0]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + 0x5ca0a0]
add ecx, 1
mov byte [ecx], al
add ecx, 1
cmp edi, 1
jne 0x518e36
lea edx, [edi + 0x3c]
jmp 0x518e43
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + 0x5ca0a0]
mov byte [ecx], dl
add ecx, 1
mov byte [ecx], 0x3d
sub edi, 3
add ecx, 1
add ebp, 4
add esi, 3
test edi, edi
jg 0x518d90
pop esi
pop edi
mov eax, ebp
mov byte [ecx], 0
pop ebp
ret