joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ee030
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
push dword [ebp + 8]
mov dword [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4ee066
cmp eax, 0xea
jne 0x4ee0be
mov eax, dword [ebp - 4]
test eax, eax
je 0x4ee0be
inc eax
push eax
call fcn.005b38c6
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x4ee0be
lea ecx, [ebp - 4]
push ecx
push eax
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4ee0ae
mov ecx, dword [ebp - 4]
cmp ecx, 1
je 0x4ee0ae
mov eax, dword [esi]
pop esi
mov byte [ecx + eax], 0
mov eax, 1
mov esp, ebp
pop ebp
ret
push dword [esi]
call fcn.005b78c8
add esp, 4
mov dword [esi], 0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4ee0d0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 8]
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x10c]
mov dword [esi], 0
push eax
push 0
push dword [ebp + 8]
mov dword [ebp - 8], 0x100
mov dword [ebp - 0xc], 1
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4ee1fe
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
nop
lea eax, [ebp + 0x10]
push eax
push 1
push 0
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4ee1ae
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4ee163
cmp eax, 0xea
jne 0x4ee1a9
mov eax, dword [ebp - 4]
test eax, eax
je 0x4ee1a9
inc eax
push eax
call fcn.005b38c6
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x4ee1a9
lea ecx, [ebp - 4]
push ecx
push eax
push 0
push 0
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4ee199
mov ecx, dword [ebp - 4]
cmp ecx, 1
jne 0x4ee1f1
push dword [esi]
call fcn.005b78c8
add esp, 4
mov dword [esi], 0
push dword [ebp + 0x10]
call edi
mov ecx, dword [ebp - 0xc]
mov eax, ecx
push 0
push 0
push 0
inc ecx
mov dword [ebp - 8], 0x100
push 0
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x10c]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x4ee120
xor eax, eax
cmp dword [esi], eax
pop ebx
pop edi
setne al
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov byte [ecx + eax], 0
push dword [ebp + 0x10]
call edi
pop ebx
pop edi
xor eax, eax
cmp dword [esi], eax
pop esi
setne al
mov esp, ebp
pop ebp
ret
Function at 0x4eec70
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov byte [ebp - 0x10c], 0
call fcn.004f17d0
cmp eax, 3
jne 0x4eecf1
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetServicesTcpipParameters
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4eed0c
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push str.DatabasePath
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0x104
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4eed0c
cmp eax, 2
jne 0x4eee39
push 0x104
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [ebp - 0x10c]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4eed13
mov eax, dword [str.hosts]
mov dword [ecx], eax
mov ax, word [0x616788]
mov word [ecx + 4], ax
mov al, byte [0x61678a]
mov byte [ecx + 6], al
lea eax, [ebp - 0x10c]
push 0x60b058
push eax
call fcn.005b7127
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
jne 0x4eed7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
je 0x4eee39
sub eax, 1
je 0x4eee39
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov eax, 0xe
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push ebx
push dword [ebp + 0xc]
push eax
call fcn.004f2f80
mov esi, eax
add esp, 0xc
mov dword [ebp - 4], esi
test esi, esi
jne 0x4eee04
push edi
mov edi, dword [ebp + 8]
nop word [eax + eax]
mov ecx, dword [ebx]
push edi
push dword [ecx]
call fcn.004f2f60
add esp, 8
test eax, eax
je 0x4eee03
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov eax, dword [esi]
test eax, eax
je 0x4eeddf
nop dword [eax]
push edi
push eax
call fcn.004f2f60
add esp, 8
test eax, eax
je 0x4eedda
mov eax, dword [esi + 4]
add esi, 4
test eax, eax
jne 0x4eedc0
jmp 0x4eeddf
cmp dword [esi], 0
jne 0x4eee00
push dword [ebx]
call fcn.004f2e30
push ebx
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.004f2f80
mov esi, eax
mov dword [ebp - 4], eax
add esp, 0x10
test esi, esi
je 0x4eeda0
jmp 0x4eee03
mov esi, dword [ebp - 4]
pop edi
push dword [ebp - 8]
call fcn.005b6e51
add esp, 4
cmp esi, 0xd
jne 0x4eee27
mov esi, 4
mov dword [ebx], 0
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x4eee31
mov dword [ebx], 0
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
mov esp, ebp
pop ebp
ret
Function at 0x4efad0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0x8004667e
push edi
mov dword [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x1c], 0
lea eax, [esi + 0x1c]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
jle 0x4efb1e
push 4
push eax
push 0x1001
push 0xffff
push edi
call ebx
cmp eax, 0xffffffff
je 0x4efbcb
cmp dword [esi + 0x20], 0
lea eax, [esi + 0x20]
jle 0x4efb40
push 4
push eax
push 0x1002
push 0xffff
push edi
call ebx
cmp eax, 0xffffffff
je 0x4efbcb
mov eax, dword [ebp + 0xc]
cmp eax, 2
jne 0x4efb6d
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x4efb91
xorps xmm0, xmm0
mov ecx, 2
movups xmmword [ebp - 0x20], xmm0
push eax
mov word [ebp - 0x20], cx
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x1c], eax
push 0x10
jmp 0x4efbbc
cmp eax, 0x17
jne 0x4efb91
lea ebx, [esi + 0x60]
mov edx, 0x616a78
mov ecx, ebx
lea esi, [eax - 0xb]
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4efb9a
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4efb80
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [ebx]
xor eax, eax
mov dword [ebp - 0x1e], 0
mov word [ebp - 0x1a], ax
mov dword [ebp - 8], eax
mov eax, 0x17
mov word [ebp - 0x20], ax
movups xmmword [ebp - 0x18], xmm0
push 0x1c
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x4efb91
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f01b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x4f01c6
cmp dword [ebp + 0x10], 0xffffffff
je 0x4f03a7
mov eax, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp + 0xc], edi
cmp dword [eax + 0x78], edi
jle 0x4f03a6
xor edx, edx
mov dword [ebp - 4], edx
push esi
nop
mov esi, dword [eax + 0x74]
add esi, edx
mov edx, dword [esi + 0x18]
cmp edx, 0xffffffff
je 0x4f038c
cmp dword [esi + 0x4c], 0
jne 0x4f038c
test ebx, ebx
je 0x4f0261
push ebx
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4f038c
mov edi, dword [ebx]
xor eax, eax
mov edx, dword [esi + 0x18]
test edi, edi
je 0x4f0259
lea ecx, [ebx + 4]
nop dword [eax]
cmp dword [ecx], edx
je 0x4f0234
inc eax
add ecx, 4
cmp eax, edi
jb 0x4f0220
mov edx, dword [esi + 0x18]
mov edi, dword [ebp + 0xc]
jmp 0x4f026a
lea ecx, [edi - 1]
cmp eax, ecx
jae 0x4f0254
lea edx, [ebx + 4]
lea edx, [edx + eax*4]
mov ecx, dword [edx + 4]
lea edx, [edx + 4]
mov dword [edx - 4], ecx
inc eax
mov edi, dword [ebx]
lea ecx, [edi - 1]
cmp eax, ecx
jb 0x4f0241
lea eax, [edi - 1]
mov dword [ebx], eax
mov edx, dword [esi + 0x18]
mov edi, dword [ebp + 0xc]
jmp 0x4f026a
cmp edx, dword [ebp + 0x10]
jne 0x4f038c
mov ecx, dword [esi + 0x20]
push 0
cmp ecx, 2
je 0x4f0306
mov eax, 2
sub eax, ecx
push eax
lea eax, [ecx + 0x1c]
add eax, esi
push eax
push edx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x4f02c4
cmp eax, 0xffffffff
jne 0x4f02b0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x4f038c
cmp eax, 0x2733
je 0x4f038c
push dword [ebp + 0x14]
push edi
push dword [ebp + 8]
call fcn.004efd20
add esp, 0xc
jmp 0x4f038c
add dword [esi + 0x20], eax
cmp dword [esi + 0x20], 2
jne 0x4f038c
movzx ecx, byte [esi + 0x1c]
movzx eax, byte [esi + 0x1d]
shl ecx, 8
or ecx, eax
push ecx
mov dword [esi + 0x24], ecx
call fcn.005b38c6
add esp, 4
mov dword [esi + 0x28], eax
test eax, eax
jne 0x4f0385
push dword [ebp + 0x14]
push edi
push dword [ebp + 8]
call fcn.004efd20
add esp, 0xc
jmp 0x4f0385
mov eax, dword [esi + 0x24]
sub eax, dword [esi + 0x2c]
push eax
mov eax, dword [esi + 0x28]
add eax, dword [esi + 0x2c]
push eax
push edx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x4f0347
cmp eax, 0xffffffff
jne 0x4f0336
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x4f038c
cmp eax, 0x2733
je 0x4f038c
push dword [ebp + 0x14]
push edi
push dword [ebp + 8]
call fcn.004efd20
add esp, 0xc
jmp 0x4f038c
add dword [esi + 0x2c], eax
mov eax, dword [esi + 0x24]
cmp dword [esi + 0x2c], eax
jne 0x4f038c
push dword [ebp + 0x14]
push 1
push edi
push eax
push dword [esi + 0x28]
push dword [ebp + 8]
call fcn.004efeb0
mov eax, dword [esi + 0x28]
add esp, 0x18
test eax, eax
je 0x4f0377
push eax
call fcn.005b78c8
add esp, 4
mov dword [esi + 0x28], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x2c], 0
mov eax, dword [ebp + 8]
inc edi
mov edx, dword [ebp - 4]
add edx, 0x50
mov dword [ebp + 0xc], edi
mov dword [ebp - 4], edx
cmp edi, dword [eax + 0x78]
jl 0x4f01e0
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f03b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x102c
call fcn.005b0bc0
mov edx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x4f03d1
cmp edx, 0xffffffff
je 0x4f04ef
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [eax + 0x78], esi
jle 0x4f04ee
push ebx
xor ebx, ebx
mov dword [ebp - 8], ebx
nop dword [eax]
mov eax, dword [eax + 0x74]
add ebx, eax
mov eax, dword [ebx + 0x14]
cmp eax, 0xffffffff
je 0x4f04d4
cmp dword [ebx + 0x4c], 0
jne 0x4f04d4
test edi, edi
je 0x4f047a
push edi
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4f04d1
mov esi, dword [edi]
xor ecx, ecx
mov edx, dword [ebx + 0x14]
test esi, esi
je 0x4f043c
lea eax, [edi + 4]
nop dword [eax]
cmp dword [eax], edx
je 0x4f044d
inc ecx
add eax, 4
cmp ecx, esi
jb 0x4f0430
mov esi, dword [ebp - 4]
nop
cmp dword [ebx + 0x14], 0xffffffff
jne 0x4f0480
xor edi, edi
jmp 0x4f04f8
lea eax, [esi - 1]
cmp ecx, eax
jae 0x4f0473
lea edx, [ecx + 1]
lea edx, [edi + edx*4]
nop word [eax + eax]
mov eax, dword [edx + 4]
lea edx, [edx + 4]
mov dword [edx - 4], eax
inc ecx
mov esi, dword [edi]
lea eax, [esi - 1]
cmp ecx, eax
jb 0x4f0460
lea eax, [esi - 1]
mov dword [edi], eax
jmp 0x4f043c
cmp eax, edx
jne 0x4f04d4
jmp 0x4f0440
cmp dword [ebx], 2
mov ecx, 0x1c
mov eax, 0x10
cmovne eax, ecx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
push 0x1001
lea eax, [ebp - 0x102c]
push eax
push dword [ebx + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4f04f4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x4f04cb
cmp eax, 0x2733
jne 0x4f04f8
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
inc esi
mov ebx, dword [ebp - 8]
add ebx, 0x50
mov dword [ebp - 4], esi
mov dword [ebp - 8], ebx
cmp esi, dword [eax + 0x78]
jl 0x4f03f0
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
test edi, edi
jg 0x4f0511
push dword [ebp + 0x14]
push esi
push dword [ebp + 8]
call fcn.004efd20
add esp, 0xc
test edi, edi
jg 0x4f0440
jmp 0x4f04cb
movzx eax, word [ebp - 0x28]
mov ecx, dword [ebx]
cmp eax, ecx
jne 0x4f04cb
sub ecx, 2
je 0x4f0546
sub ecx, 0x15
jne 0x4f04cb
lea edx, [ebx + 4]
lea eax, [ebp - 0x20]
lea esi, [ecx + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x4f04cb
add edx, 4
add eax, 4
sub esi, 4
jae 0x4f0530
mov esi, dword [ebp - 4]
jmp 0x4f0554
mov eax, dword [ebx + 4]
lea ecx, [ebp - 0x24]
cmp eax, dword [ecx]
jne 0x4f04cb
push dword [ebp + 0x14]
lea eax, [ebp - 0x102c]
push 0
push esi
push edi
push eax
push dword [ebp + 8]
call fcn.004efeb0
add esp, 0x18
jmp 0x4f0440
Function at 0x4f0760
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x4f0778
cmp dword [ebp + 0x10], 0xffffffff
je 0x4f090a
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp dword [eax + 0x78], ebx
jle 0x4f0909
xor ecx, ecx
mov dword [ebp - 4], ecx
push edi
nop dword [eax]
mov edi, dword [eax + 0x74]
mov eax, dword [edi + ecx + 0x30]
add edi, ecx
mov dword [ebp - 8], edi
test eax, eax
je 0x4f08f4
mov ecx, dword [edi + 0x18]
cmp ecx, 0xffffffff
je 0x4f08f4
cmp dword [edi + 0x4c], 0
jne 0x4f08f4
test esi, esi
je 0x4f0829
push esi
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4f08f4
mov esi, dword [esi]
xor ecx, ecx
test esi, esi
je 0x4f081e
mov eax, dword [ebp + 0xc]
mov edx, dword [edi + 0x18]
add eax, 4
nop
cmp dword [eax], edx
je 0x4f07ee
inc ecx
add eax, 4
cmp ecx, esi
jb 0x4f07e0
jmp 0x4f081e
lea eax, [esi - 1]
cmp ecx, eax
jae 0x4f0816
mov edi, dword [ebp + 0xc]
lea edx, [edi + 4]
lea edx, [edx + ecx*4]
nop
mov eax, dword [edx + 4]
lea edx, [edx + 4]
mov dword [edx - 4], eax
inc ecx
mov esi, dword [edi]
lea eax, [esi - 1]
cmp ecx, eax
jb 0x4f0800
mov edi, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
lea eax, [esi - 1]
mov dword [ecx], eax
mov eax, dword [edi + 0x30]
xor ecx, ecx
test eax, eax
je 0x4f083c
jmp 0x4f0832
cmp ecx, dword [ebp + 0x10]
jne 0x4f08f4
xor ecx, ecx
mov eax, dword [eax + 0x10]
inc ecx
test eax, eax
jne 0x4f0834
lea eax, [ecx*8]
push eax
call fcn.005b38c6
mov ecx, dword [edi + 0x30]
mov esi, eax
add esp, 4
test esi, esi
je 0x4f08b0
xor edx, edx
test ecx, ecx
je 0x4f0874
nop dword [eax + eax]
mov eax, dword [ecx]
mov dword [esi + edx*8], eax
mov eax, dword [ecx + 4]
mov dword [esi + edx*8 + 4], eax
inc edx
mov ecx, dword [ecx + 0x10]
test ecx, ecx
jne 0x4f0860
push edx
push esi
push dword [edi + 0x18]
call fcn.004f35f0
push esi
mov edi, eax
call fcn.005b78c8
add esp, 0x10
test edi, edi
jns 0x4f08ad
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x4f08f1
cmp eax, 0x2733
je 0x4f08f1
push dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
call fcn.004efd20
jmp 0x4f08ee
push edi
jmp 0x4f08e5
push 0
push dword [ecx + 4]
push dword [ecx]
push dword [edi + 0x18]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4f08e4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x4f08f1
cmp eax, 0x2733
je 0x4f08f1
push dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
call fcn.004efd20
jmp 0x4f08ee
push eax
push ebx
push dword [ebp + 8]
call fcn.004ef500
add esp, 0xc
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
inc ebx
add dword [ebp - 4], 0x50
mov ecx, dword [ebp - 4]
cmp ebx, dword [eax + 0x78]
jl 0x4f0790
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4f1000
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
cmp eax, 2
jne 0x4f101b
push 4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004f11d0
jmp 0x4f102d
cmp eax, 0x17
jne 0x4f1053
push 0x10
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004f1540
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x4f1047
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4f1047
xor eax, eax
pop esi
pop ebp
ret
sar esi, 0x1f
and esi, 0xfffffffe
lea eax, [esi + 1]
pop esi
pop ebp
ret
push 0x273f
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
pop esi
pop ebp
ret

Function at 0x4f1940
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov bh, byte [eax + 0x100]
lea edi, [ebp - 8]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 2
nop dword [eax]
inc bh
lea edi, [edi + 1]
movzx esi, bh
mov bl, byte [esi + eax]
add dl, bl
mov byte [ebp + 0xb], dl
movzx edx, dl
movzx ecx, byte [edx + eax]
mov byte [esi + eax], cl
mov byte [edx + eax], bl
movzx ecx, byte [esi + eax]
mov dl, byte [ebp + 0xb]
add cl, bl
movzx ecx, cl
movzx ecx, byte [ecx + eax]
xor byte [edi - 1], cl
sub dword [ebp - 4], 1
jne 0x4f1970
pop edi
mov cl, dl
mov byte [eax + 0x100], bh
pop esi
mov byte [eax + 0x101], cl
mov ax, word [ebp - 8]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f19c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 0x14
mov ecx, dword [edx]
shr ecx, 3
not ecx
and ecx, 1
test dword [edx], 0x100
je 0x4f19e0
mov eax, dword [edx + 0x38]
jmp 0x4f19e2
xor eax, eax
push esi
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
movzx eax, word [edx + 0x7c]
push ecx
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004f38f0
mov esi, eax
add esp, 0x20
test esi, esi
je 0x4f1a2e
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x4f1a19
push ecx
call fcn.005b78c8
add esp, 4
push 0
push 0
push 0
push esi
push dword [ebp + 0x1c]
call dword [ebp + 0x18]
add esp, 0x14
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edx, dword [ebp + 8]
lea esi, [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov edi, 2
mov bh, byte [edx + 0x17e]
mov cl, byte [edx + 0x17f]
nop
inc bh
lea esi, [esi + 1]
movzx eax, bh
add edx, eax
mov bl, byte [edx + 0x7e]
add cl, bl
movzx eax, cl
mov byte [ebp - 1], cl
mov ecx, dword [ebp + 8]
add ecx, eax
movzx eax, byte [ecx + 0x7e]
mov byte [edx + 0x7e], al
mov byte [ecx + 0x7e], bl
movzx eax, byte [edx + 0x7e]
mov edx, dword [ebp + 8]
add al, bl
mov cl, byte [ebp - 1]
movzx eax, al
movzx eax, byte [eax + edx + 0x7e]
xor byte [esi - 1], al
sub edi, 1
jne 0x4f1a50
mov byte [edx + 0x17e], bh
mov al, cl
mov ebx, dword [ebp - 0x10]
mov byte [edx + 0x17f], al
mov eax, ebx
shr eax, 8
mov byte [ebp - 0xc], al
mov byte [ebp - 0xb], bl
mov eax, dword [ebp - 0xc]
and eax, 0x7ff
lea eax, [eax + eax*2]
lea edx, [edx + eax*4]
mov eax, dword [edx + 0x1a4]
add edx, 0x1a0
cmp eax, edx
je 0x4f1ae3
mov si, word [ebp - 0xc]
nop
mov ecx, dword [eax + 8]
cmp word [ecx], si
je 0x4f1a30
mov eax, dword [eax + 4]
cmp eax, edx
jne 0x4f1ad0
mov esi, dword [ebp + 8]
push 8
mov word [esi + 0x7c], bx
call fcn.005b38c6
add esp, 4
mov ecx, eax
pop edi
pop ebx
test ecx, ecx
jne 0x4f1b1a
push dword [ebp - 8]
call fcn.0049a570
push 0
push 0
push 0
push 0xf
push dword [ebp + 0x1c]
call dword [ebp + 0x18]
add esp, 0x18
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x18]
push ecx
mov dword [ecx], eax
mov eax, dword [ebp + 0x1c]
push 0x4f1b50
mov dword [ecx + 4], eax
push dword [ebp - 0x14]
push dword [ebp - 8]
push esi
call fcn.004f36c0
push dword [ebp - 8]
call fcn.0049a570
add esp, 0x18
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4f35f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
test ebx, ebx
jle 0x4f369e
mov esi, dword [ebp + 0xc]
xor ecx, ecx
add esi, 4
mov edx, esi
nop
mov eax, accept
sub eax, edi
cmp dword [edx], eax
ja 0x4f369e
add edi, dword [edx]
inc ecx
add edx, 8
mov dword [ebp + 0x10], edi
cmp ecx, ebx
jl 0x4f3610
test edi, edi
jne 0x4f3639
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.005b38c6
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x4f365b
push 0xc
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, eax
nop dword [eax]
push dword [esi]
push dword [esi - 4]
push edi
call fcn.005d67e0
add edi, dword [esi]
lea esi, [esi + 8]
add esp, 0xc
sub ebx, 1
jne 0x4f3660
mov edi, dword [ebp + 0x10]
push ebx
push edi
mov edi, dword [ebp - 4]
push edi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
push edi
mov esi, eax
call fcn.005b78c8
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x2726
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4f5440
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
push dword [ebp + 8]
call fcn.00510ed0
push 0x62
push esi
mov edi, eax
mov ebx, 1
call fcn.005d6ec0
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x4f54e6
push 0x4a
push str.........prog3rdPartyLibsopenssl_1.1crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.0050bc80
push 0x616c08
push esi
push 0x616c0c
push dword [ebp + 8]
push str.fopen_
push 5
call fcn.0050b330
add esp, 0x2c
call fcn.005b7f69
cmp dword [eax], 2
je 0x4f54c2
call fcn.005b7f69
cmp dword [eax], 6
je 0x4f54c2
lea eax, [edi + 2]
lea ecx, [edi + 0x53]
jmp 0x4f54cc
mov eax, 0x80
mov ecx, 0x51
push ecx
push str.........prog3rdPartyLibsopenssl_1.1crypto_bio_bss_file.c
push eax
push 0x6d
push 0x20
call fcn.0050bc80
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push 0x616b8c
call fcn.004f5a00
mov esi, eax
add esp, 4
test esi, esi
jne 0x4f5509
push edi
call fcn.005b6e51
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push 0
push esi
call fcn.004f55d0
push edi
push ebx
push 0x6a
push esi
call fcn.004f5600
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x50d590
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x4c
push 0
lea eax, [esi + 0x10]
push eax
call fcn.005d6d60
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov eax, 1
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
pop esi
pop ebp
ret