joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f3aa0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff78
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a34
xor eax, eax
push ebp
push 0x4f3cbe
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x88]
call fcn.004f38d4
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00404a44
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x4f3c9a
xor eax, eax
push ebp
push 0x4f3c93
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4f3c7c
xor eax, eax
push ebp
push 0x4f3c75
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4f3b9a
xor eax, eax
push ebp
push 0x4f3b93
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize
mov ecx, eax
lea eax, [ebp - 0x88]
mov edx, dword [ebp - 0x14]
call fcn.004f3908
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f3c5e
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
sub eax, dword [ebp - 0x30]
sbb edx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 0
jne 0x4f3bdb
cmp dword [ebp - 0x20], 0x8000000
jae 0x4f3beb
jmp 0x4f3bdd
jge 0x4f3beb
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4f3c5e
jmp 0x4f3bf2
mov dword [ebp - 0x18], 0x8000000
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x2c]
push eax
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4f3c5e
xor eax, eax
push ebp
push 0x4f3c48
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x88]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.004f3908
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f3c4f
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f3c7c
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f3c9a
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
ret
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x88]
call fcn.004f3988
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f3cc5
lea eax, [ebp - 4]
call fcn.00404574
ret
Function at 0x4f4260
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov esi, ecx
mov edi, edx
mov ebx, eax
mov eax, esi
mov edx, ebx
call fcn.004045c8
mov eax, dword [esi]
call fcn.00404844
test ax, ax
jbe 0x4f42c0
mov word [esp], ax
mov bx, 1
mov eax, esi
call fcn.00404a9c
movzx ebp, bx
mov edx, dword [esi]
mov dl, byte [edx + ebp - 1]
movzx ecx, di
shr ecx, 8
xor dl, cl
mov byte [eax + ebp - 1], dl
mov eax, dword [esi]
movzx eax, byte [eax + ebp - 1]
add di, ax
imul ax, di, 0xc8b2
add ax, 0x543c
mov edi, eax
inc ebx
dec word [esp]
jne 0x4f4288
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4f4c48
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4f4cd2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4f4cad
push eax
call sub.kernel32.dll_FreeLibrary_1
xor eax, eax
mov dword [ebx + 0xc], eax
lea eax, [ebp - 8]
call fcn.004f1828
push dword [ebp - 8]
push 0x4f4ce8
push dword [ebx + 0x6c]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404904
push 0x80
mov eax, dword [ebp - 4]
call fcn.00404a44
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 4]
call fcn.0040a1d0
cmp byte [ebx + 6], 0
jl 0x4f4cb7
mov byte [ebx + 6], 0xff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f4cd9
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404598
ret
Function at 0x4f5400
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0xc], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4f55c0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 6], 1
jne 0x4f5436
mov eax, ebx
call fcn.004f5878
mov dl, 7
mov eax, 0x4f55d8
call fcn.004f14f4
cmp byte [ebx + 4], 3
jge 0x4f5457
cmp byte [ebx + 6], 0
jge 0x4f5457
xor edx, edx
mov eax, ebx
call fcn.004f4748
cmp byte [ebx + 6], 0
jl 0x4f5463
cmp dword [ebx + 0x2c], 0
jne 0x4f5497
cmp byte [ebx + 4], 3
jne 0x4f5481
mov ecx, 0x4f55f0
mov dl, 1
mov eax, dword [0x408468]
call fcn.0040e550
call fcn.00403ef0
jmp 0x4f5497
mov ecx, 0x4f5618
mov dl, 1
mov eax, dword [0x408468]
call fcn.0040e550
call fcn.00403ef0
push 0
push 0x4f5628
call dword [ebx + 0x2c]
add esp, 8
mov dword [ebx + 8], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 4], eax
mov al, byte [ebx + 4]
add al, 0xfe
sub al, 2
jae 0x4f54c3
lea edx, [ebp - 0xc]
mov eax, dword [ebx + 0x24]
call fcn.004f5328
jmp 0x4f54cd
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.004f500c
mov eax, dword [ebp - 0xc]
call fcn.00404844
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x10
jle 0x4f54e5
mov dword [ebp - 8], 0x10
call fcn.00402c04
mov eax, dword [ebp - 8]
dec eax
test eax, eax
jl 0x4f552a
inc eax
mov dword [ebp - 0x10], eax
xor edi, edi
lea esi, [ebp - 0x31]
mov eax, dword [ebp - 0xc]
mov al, byte [eax + edi]
mov edx, dword [ebp - 4]
mov dl, byte [edx + edi]
xor al, dl
mov byte [esi], al
lea eax, [ebp - 0xc]
call fcn.00404a9c
add eax, edi
push eax
mov eax, 0xff
call fcn.00402f3c
pop edx
mov byte [edx], al
inc edi
inc esi
dec dword [ebp - 0x10]
jne 0x4f54fb
mov eax, dword [ebp - 8]
mov byte [ebp + eax - 0x31], 0
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x31]
push eax
call dword [ebx + 0x2c]
add esp, 8
mov esi, eax
mov dword [ebx + 8], esi
test esi, esi
jbe 0x4f5556
mov byte [ebx + 6], 1
xor edx, edx
mov eax, ebx
call fcn.004f4f00
cmp byte [ebx + 6], 1
sete al
mov byte [ebx + 0x10], al
mov ebx, dword [ebx + 8]
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x40]
call fcn.00409a28
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
mov edx, 0x4f5634
call fcn.00404890
mov eax, dword [ebp - 0x3c]
call fcn.00404a44
mov edx, eax
lea eax, [ebp - 0x38]
call fcn.0040477c
mov eax, dword [ebp - 0x38]
mov dl, 7
call fcn.004f14f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f55c7
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.00404598
lea eax, [ebp - 0xc]
call fcn.00404574
ret
Function at 0x4f5648
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x10], ebx
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x4f580f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 6], 1
jne 0x4f5684
mov eax, ebx
call fcn.004f5878
cmp byte [ebx + 4], 3
jne 0x4f56ae
lea eax, [ebp - 0x3c]
mov dl, byte [ebp - 1]
call fcn.0040475c
lea eax, [ebp - 0x3c]
mov edx, 0x4f5828
call fcn.0040484c
mov edx, dword [ebp - 0x3c]
mov eax, ebx
call fcn.004f4748
jmp 0x4f56bd
cmp byte [ebx + 6], 0
jge 0x4f56bd
xor edx, edx
mov eax, ebx
call fcn.004f4748
cmp byte [ebx + 6], 0
jl 0x4f56c9
cmp dword [ebx + 0x58], 0
jne 0x4f56df
mov ecx, 0x4f5844
mov dl, 1
mov eax, dword [0x408468]
call fcn.0040e550
call fcn.00403ef0
push 0
push 0
push 0x4f5854
call dword [ebx + 0x58]
add esp, 0xc
mov dword [ebx + 8], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
mov al, byte [ebx + 4]
add al, 0xfe
sub al, 2
jae 0x4f570d
lea edx, [ebp - 0x10]
mov eax, dword [ebx + 0x24]
call fcn.004f5328
jmp 0x4f5717
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.004f500c
mov eax, dword [ebp - 0x10]
call fcn.00404844
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x10
jle 0x4f572f
mov dword [ebp - 0xc], 0x10
call fcn.00402c04
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jl 0x4f5774
inc eax
mov dword [ebp - 0x14], eax
xor edi, edi
lea esi, [ebp - 0x35]
mov eax, dword [ebp - 0x10]
mov al, byte [eax + edi]
mov edx, dword [ebp - 8]
mov dl, byte [edx + edi]
xor al, dl
mov byte [esi], al
lea eax, [ebp - 0x10]
call fcn.00404a9c
add eax, edi
push eax
mov eax, 0xff
call fcn.00402f3c
pop edx
mov byte [edx], al
inc edi
inc esi
dec dword [ebp - 0x14]
jne 0x4f5745
mov eax, dword [ebp - 0xc]
mov byte [ebp + eax - 0x35], 0
mov al, byte [ebp - 1]
push eax
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x35]
push eax
call dword [ebx + 0x58]
add esp, 0xc
mov esi, eax
mov dword [ebx + 8], esi
test esi, esi
jbe 0x4f57a5
mov byte [ebx + 6], 1
mov dl, byte [ebp - 1]
mov eax, ebx
call fcn.004f4f00
cmp byte [ebx + 6], 1
sete al
mov byte [ebx + 0x10], al
mov ebx, dword [ebx + 8]
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x48]
call fcn.00409a28
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x44]
mov edx, 0x4f5860
call fcn.00404890
mov eax, dword [ebp - 0x44]
call fcn.00404a44
mov edx, eax
lea eax, [ebp - 0x40]
call fcn.0040477c
mov eax, dword [ebp - 0x40]
mov dl, 7
call fcn.004f14f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f5816
lea eax, [ebp - 0x48]
mov edx, 4
call fcn.00404598
lea eax, [ebp - 0x10]
call fcn.00404574
ret

Function at 0x4f5918
Capabilities:
Get disk information

Disassembly:
push ebx
push esi
mov ebx, eax
call sub.kernel32.dll_GetLogicalDrives
mov edx, eax
mov eax, 2
mov ecx, eax
mov esi, 1
shl esi, cl
test esi, edx
je 0x4f5943
mov ecx, eax
add cl, 0x41
cmp bl, cl
jne 0x4f5943
mov al, 1
pop esi
pop ebx
ret
inc eax
cmp eax, 0x1a
jne 0x4f5928
xor eax, eax
pop esi
pop ebx
ret
Function at 0x4f686c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x4f68d7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404574
call sub.kernel32.dll_GetLogicalDrives
mov edi, eax
mov ebx, 2
mov ecx, ebx
mov eax, 1
shl eax, cl
test eax, edi
jne 0x4f68bb
lea eax, [ebp - 4]
mov edx, ebx
add dl, 0x41
call fcn.0040475c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040484c
inc ebx
cmp ebx, 0x1a
jne 0x4f6897
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f68de
lea eax, [ebp - 4]
call fcn.00404574
ret
Function at 0x4f7958
Capabilities:
Get session user name
Query service configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4f7aca
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4f7a5d
push 0xf01ff
mov eax, ebx
call fcn.00404a44
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
setne byte [ebp - 1]
cmp byte [ebp - 1], 0
je 0x4f7a54
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_QueryServiceConfigA
mov eax, dword [ebp - 0x1c]
call fcn.00409278
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x4f7a44
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_QueryServiceConfigA
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 0x1c]
call fcn.0040477c
mov edx, 0x4f7ae4
mov eax, dword [ebp - 0x14]
call fcn.004093c4
test eax, eax
jne 0x4f7a2c
lea eax, [ebp - 0x14]
mov edx, 0x4f7af8
call fcn.0040460c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f7a4b
xor edx, edx
mov eax, dword [ebp - 0x18]
call fcn.0040282c
ret
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
cmp byte [ebp - 1], 0
je 0x4f7aaf
mov dword [ebp - 0x1c], pe_nt_image_headers32
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.00404bd0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404a44
push eax
call sub.advapi32.dll_GetUserNameA
mov eax, dword [ebp - 0x10]
call fcn.00404a44
call fcn.0040a538
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.00404bd0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.004093c4
test eax, eax
sete byte [ebp - 1]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f7ad1
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404598
ret

Function at 0x4f7b00
Capabilities:
Stop service

Disassembly:
push ebx
push esi
add esp, 0xffffffe4
mov esi, eax
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
je 0x4f7b46
push 0x20
mov eax, esi
call fcn.00404a44
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
je 0x4f7b40
push esp
push 1
push esi
call sub.advapi32.dll_ControlService
push esi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
add esp, 0x1c
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
push edi
push esi
mov eax, dword [ebx + 0x40]
push eax
call sub.wsock32.dll_recv
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
pop edi
pop esi
pop ebx
ret
Function at 0x4f89f4
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcd8
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp - 4]
cmp byte [eax + 0x30], 0
je 0x4f8b76
cmp dword [ebp - 8], 0
je 0x4f8a45
lea ebx, [ebp - 0x120]
lea eax, [ebp - 0x120]
call fcn.004b69c4
lea edx, [ebp - 0x120]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
call fcn.004b69b4
jmp 0x4f8a47
xor ebx, ebx
cmp dword [ebp - 0xc], 0
je 0x4f8a71
lea esi, [ebp - 0x224]
lea eax, [ebp - 0x224]
call fcn.004b69c4
lea edx, [ebp - 0x224]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
call fcn.004b69b4
jmp 0x4f8a73
xor esi, esi
cmp dword [ebp + 0xc], 0
je 0x4f8aa0
lea eax, [ebp - 0x328]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x328]
call fcn.004b69c4
lea edx, [ebp - 0x328]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
call fcn.004b69b4
jmp 0x4f8aa5
xor eax, eax
mov dword [ebp - 0x10], eax
test edi, edi
jl 0x4f8ad1
mov eax, edi
mov ecx, 0x3e8
cdq
idiv ecx
mov dword [ebp - 0x18], eax
mov eax, edi
mov ecx, 0x3e8
cdq
idiv ecx
imul eax, edx, 0x3e8
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], eax
jmp 0x4f8ad6
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4f8b16
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
inc eax
push eax
call sub.wsock32.dll_select
mov edx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
test eax, eax
setg al
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f8b22
cmp dword [ebp - 8], 0
je 0x4f8b3e
lea edx, [ebp - 0x120]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
call fcn.004b699c
mov edx, dword [ebp - 8]
mov byte [edx], al
cmp dword [ebp - 0xc], 0
je 0x4f8b5a
lea edx, [ebp - 0x224]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
call fcn.004b699c
mov edx, dword [ebp - 0xc]
mov byte [edx], al
cmp dword [ebp + 0xc], 0
je 0x4f8b76
lea edx, [ebp - 0x328]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
call fcn.004b699c
mov edx, dword [ebp + 0xc]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
lea ecx, [ebp - 4]
mov edx, esi
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x34]
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
mov eax, dword [ebx + 0x40]
push eax
call sub.wsock32.dll_send
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
cmp eax, 0xffffffff
je 0x4f8bc1
add dword [ebx + 0x38], eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x4f8e58
Capabilities:
Resolve dns

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe0
mov esi, ecx
mov ebx, edx
mov eax, esi
call fcn.00404574
test ebx, ebx
je 0x4f8ef9
mov al, byte [ebx]
add al, 0xd0
sub al, 0xa
jae 0x4f8e94
mov eax, ebx
call fcn.00404a44
push eax
call sub.wsock32.dll_inet_addr
inc eax
je 0x4f8f05
mov eax, esi
mov edx, ebx
call fcn.004045c8
jmp 0x4f8f05
mov eax, ebx
call fcn.00404a44
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4f8f05
mov ebx, eax
push esi
mov eax, dword [ebx + 0xc]
mov edi, dword [eax]
xor eax, eax
mov al, byte [edi]
mov dword [esp + 4], eax
mov byte [esp + 8], 0
xor eax, eax
mov al, byte [edi + 1]
mov dword [esp + 0xc], eax
mov byte [esp + 0x10], 0
xor eax, eax
mov al, byte [edi + 2]
mov dword [esp + 0x14], eax
mov byte [esp + 0x18], 0
xor eax, eax
mov al, byte [edi + 3]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x20], 0
lea edx, [esp + 4]
mov ecx, 3
mov eax, 0x4f8f14
call fcn.0040aca8
jmp 0x4f8f05
mov eax, esi
mov edx, 0x4f8f28
call fcn.004045c8
add esp, 0x20
pop edi
pop esi
pop ebx
ret

Function at 0x4f8f6c
Capabilities:
Get hostname

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.00404574
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
call sub.wsock32.dll_gethostname
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
test eax, eax
jne 0x4f8fa9
mov eax, esi
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.004047f4
add esp, 0x100
pop esi
pop ebx
ret
Function at 0x4f9da4
Capabilities:
Encode data using base64
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov dword [esp], ecx
mov esi, eax
mov ebp, edx
xor ebx, ebx
xor edi, edi
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
test eax, eax
jle 0x4f9e42
xor edx, edx
mov dl, byte [esi + ebx]
shr edx, 2
mov dl, byte [edx + 0x6472dc]
mov byte [ebp + edi], dl
mov dl, byte [esi + ebx]
and dl, 3
and edx, 0xff
shl edx, 4
xor ecx, ecx
mov cl, byte [esi + ebx + 1]
shr ecx, 4
add edx, ecx
mov dl, byte [edx + 0x6472dc]
push edx
pop edx
mov byte [ebp + edi + 1], dl
mov dl, byte [esi + ebx + 1]
and dl, 0xf
and edx, 0xff
shl edx, 2
xor ecx, ecx
mov cl, byte [esi + ebx + 2]
shr ecx, 6
add edx, ecx
mov dl, byte [edx + 0x6472dc]
push edx
pop edx
mov byte [ebp + edi + 2], dl
mov dl, byte [esi + ebx + 2]
and dl, 0x3f
and edx, 0xff
mov dl, byte [edx + 0x6472dc]
mov byte [ebp + edi + 3], dl
add edi, 4
add ebx, 3
dec eax
jne 0x4f9dc3
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
dec edx
je 0x4f9e58
dec edx
je 0x4f9e8d
jmp 0x4f9ede
xor eax, eax
mov al, byte [esi + ebx]
shr eax, 2
mov al, byte [eax + 0x6472dc]
mov byte [ebp + edi], al
mov al, byte [esi + ebx]
and al, 3
and eax, 0xff
shl eax, 4
mov al, byte [eax + 0x6472dc]
mov byte [ebp + edi + 1], al
mov byte [ebp + edi + 2], 0x3d
mov byte [ebp + edi + 3], 0x3d
jmp 0x4f9ede
xor eax, eax
mov al, byte [esi + ebx]
shr eax, 2
mov al, byte [eax + 0x6472dc]
mov byte [ebp + edi], al
mov al, byte [esi + ebx]
and al, 3
and eax, 0xff
shl eax, 4
xor edx, edx
mov dl, byte [esi + ebx + 1]
shr edx, 4
add eax, edx
mov al, byte [eax + 0x6472dc]
mov byte [ebp + edi + 1], al
mov al, byte [esi + ebx + 1]
and al, 0xf
and eax, 0xff
shl eax, 2
mov al, byte [eax + 0x6472dc]
mov byte [ebp + edi + 2], al
mov byte [ebp + edi + 3], 0x3d
mov eax, dword [esp]
add eax, 2
mov ecx, 3
cdq
idiv ecx
shl eax, 2
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4f9f40
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp], ecx
mov edi, eax
mov dword [esp + 8], edx
xor esi, esi
xor ebp, ebp
xor eax, eax
mov edx, dword [esp]
test edx, edx
jns 0x4f9f5f
add edx, 3
sar edx, 2
test edx, edx
jle 0x4fa06c
mov dword [esp + 0xc], edx
mov edx, 4
lea eax, [esp + 4]
xor ecx, ecx
mov cl, byte [edi + esi]
cmp ecx, 0x3d
jg 0x4f9f95
je 0x4f9fd5
sub ecx, 0x2b
je 0x4f9fcb
sub ecx, 4
je 0x4f9fd0
dec ecx
sub ecx, 0xa
jb 0x4f9fbe
jmp 0x4f9fd8
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x4f9fa7
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x4f9fb1
jmp 0x4f9fd8
mov cl, byte [edi + esi]
sub cl, 0x41
mov byte [eax], cl
jmp 0x4f9fd8
mov cl, byte [edi + esi]
sub cl, 0x61
add cl, 0x1a
mov byte [eax], cl
jmp 0x4f9fd8
mov cl, byte [edi + esi]
sub cl, 0x30
add cl, 0x34
mov byte [eax], cl
jmp 0x4f9fd8
mov byte [eax], 0x3e
jmp 0x4f9fd8
mov byte [eax], 0x3f
jmp 0x4f9fd8
mov byte [eax], 0xff
inc esi
inc eax
dec edx
jne 0x4f9f77
mov al, byte [esp + 4]
shl eax, 2
xor edx, edx
mov dl, byte [esp + 5]
shr edx, 4
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp], al
lea eax, [ebp + 1]
mov dl, byte [esp + 6]
cmp dl, 0xff
je 0x4fa029
cmp byte [esp + 7], 0xff
jne 0x4fa029
mov al, byte [esp + 5]
shl eax, 4
and edx, 0xff
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
lea eax, [ebp + 2]
inc ebp
jmp 0x4fa061
cmp dl, 0xff
je 0x4fa061
mov al, byte [esp + 5]
shl eax, 4
and edx, 0xff
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
mov eax, dword [esp + 8]
mov dl, byte [esp + 6]
shl edx, 6
or dl, byte [esp + 7]
mov byte [eax + ebp + 2], dl
lea eax, [ebp + 3]
add ebp, 2
inc ebp
dec dword [esp + 0xc]
jne 0x4f9f6e
add esp, 0x10
pop ebp
pop edi
pop esi
ret

Function at 0x4fabac
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
test esi, esi
jbe 0x4fabcc
mov ecx, 1
mov ebx, edx
add ebx, ecx
dec ebx
mov bl, byte [ebx]
mov edi, eax
add edi, ecx
dec edi
xor byte [edi], bl
inc ecx
dec esi
jne 0x4fabba
pop edi
pop esi
pop ebx
ret

Function at 0x4fe734
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
mov bl, dl
dec ebx
test ebx, ebx
jb 0x4fe788
inc ebx
xor edx, edx
mov ecx, edx
shl ecx, 2
movzx esi, byte [eax + ecx]
lea esi, [esi*4 + 0x64b54c]
mov esi, dword [esi]
movzx edi, byte [eax + ecx + 1]
lea edi, [edi*4 + 0x64b94c]
xor esi, dword [edi]
movzx edi, byte [eax + ecx + 2]
lea edi, [edi*4 + 0x64bd4c]
xor esi, dword [edi]
movzx edi, byte [eax + ecx + 3]
lea edi, [edi*4 + 0x64c14c]
xor esi, dword [edi]
lea ecx, [eax + ecx]
mov dword [ecx], esi
inc edx
dec ebx
jne 0x4fe743
pop edi
pop esi
pop ebx
ret