joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458e3d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, dword [ebp + 8]
xor edx, edx
push ebp
push 0x458f57
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x458f37
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp - 4]
call fcn.00458df5
mov ebx, eax
lea eax, [ebp - 0x2c]
mov edx, dword [ebp + 0xc]
call fcn.00405111
mov eax, dword [ebp - 0x2c]
call fcn.004051d9
mov dword [ebp - 8], 1
cmp esi, 1
jne 0x458ea8
push eax
mov eax, dword [ebp + 0xc]
push eax
push 1
push 0
push edi
push ebx
call sub.advapi32.dll_RegSetValueExA
cmp esi, 2
jne 0x458ebe
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push edi
push ebx
call sub.advapi32.dll_RegSetValueExA
cmp esi, 3
jne 0x458ed9
xor eax, eax
mov dword [ebp - 8], eax
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push edi
push ebx
call sub.advapi32.dll_RegSetValueExA
cmp esi, 4
jne 0x458f27
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
push 4
lea eax, [ebp - 0x28]
push eax
push 3
push 0
push edi
push ebx
call sub.advapi32.dll_RegSetValueExA
push ebx
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x458f41
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458f5e
lea eax, [ebp - 0x2c]
call fcn.00404f19
ret

Function at 0x458f85
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, dword [ebp + 8]
xor ecx, ecx
push ebp
push 0x45900a
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov dword [ebp - 8], 1
call fcn.00458e21
mov ebx, eax
mov dword [ebp - 0xc], pe_nt_image_headers32
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 8]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x458ff3
mov eax, esi
lea edx, [ebp - 0x10c]
mov ecx, pe_nt_image_headers32
call fcn.00405189
push ebx
call sub.advapi32.dll_RegCloseKey_1
jmp 0x459000
mov eax, esi
call fcn.00404f19
push ebx
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x459014
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4596ad
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004053c9
xor eax, eax
push ebp
push 0x4597f9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
mov eax, dword [ebp - 4]
call fcn.004053d9
push eax
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jbe 0x4597cd
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 8]
push eax
push edi
push ebx
call sub.advapi32.dll_EnumServicesStatusA
call sub.kernel32.dll_GetLastError_1
cmp eax, 0xea
jne 0x4597c3
mov eax, dword [ebp - 0x14]
mov ecx, 0x24
xor edx, edx
div ecx
mov esi, eax
inc esi
push esi
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x459685]
call fcn.00406291
add esp, 4
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, esi
shl eax, 2
lea eax, [eax + eax*8]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push edi
push ebx
call sub.advapi32.dll_EnumServicesStatusA
test eax, eax
je 0x4597bd
mov edi, dword [ebp - 0x18]
dec edi
test edi, edi
jl 0x4597bd
inc edi
xor esi, esi
lea eax, [esi + esi*8]
mov edx, dword [ebp - 0x10]
cmp dword [edx + eax*4], 0
je 0x4597b9
lea eax, [ebp - 0x44]
lea edx, [esi + esi*8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + edx*4 + 4]
call fcn.00405111
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec edi
jne 0x459790
mov byte [ebp - 9], 1
jmp 0x4597c7
mov byte [ebp - 9], 0
push ebx
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459800
lea eax, [ebp - 0x44]
call fcn.00404f19
lea eax, [ebp - 0x10]
mov edx, dword [0x459685]
call fcn.0040629d
lea eax, [ebp - 4]
call fcn.00404f19
ret
Function at 0x4598d1
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004053c9
mov eax, dword [ebp - 8]
call fcn.004053c9
xor eax, eax
push ebp
push 0x459970
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.004053d9
push eax
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jbe 0x459950
push 4
mov eax, dword [ebp - 8]
call fcn.004053d9
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov edi, eax
test edi, edi
jbe 0x459946
lea eax, [ebp - 0x24]
push eax
push edi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x459940
mov esi, dword [ebp - 0x20]
push edi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
mov ebx, esi
jmp 0x459955
mov ebx, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459977
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404f3d
ret

Function at 0x4599e9
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004053c9
mov eax, dword [ebp - 8]
call fcn.004053c9
xor eax, eax
push ebp
push 0x459ac2
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x24], eax
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.004053d9
push eax
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jbe 0x459aa0
push 0x14
mov eax, dword [ebp - 8]
call fcn.004053d9
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
jbe 0x459a9a
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push esi
call sub.advapi32.dll_StartServiceA
test eax, eax
je 0x459a94
lea eax, [ebp - 0x28]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x459a94
jmp 0x459a8e
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0x28]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x459a94
cmp edi, dword [ebp - 0x14]
ja 0x459a94
cmp dword [ebp - 0x24], 4
jne 0x459a6f
push esi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
cmp dword [ebp - 0x24], 4
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459ac9
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404f3d
ret
Function at 0x459ad5
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004053c9
mov eax, dword [ebp - 8]
call fcn.004053c9
xor eax, eax
push ebp
push 0x459bc7
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x459ba2
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.004053d9
push eax
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jbe 0x459b90
push 0x24
mov eax, dword [ebp - 8]
call fcn.004053d9
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
jbe 0x459b8a
lea eax, [ebp - 0x28]
push eax
push 1
push esi
call sub.advapi32.dll_ControlService
test eax, eax
je 0x459b84
lea eax, [ebp - 0x28]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x459b84
jmp 0x459b7e
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0x28]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x459b84
cmp edi, dword [ebp - 0x14]
ja 0x459b84
cmp dword [ebp - 0x24], 1
jne 0x459b5f
push esi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
cmp dword [ebp - 0x24], 1
sete byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x459bac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459bce
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404f3d
ret
Function at 0x459bd9
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.004053c9
mov eax, dword [ebp + 8]
call fcn.004053c9
xor eax, eax
push ebp
push 0x459dad
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x459d78
push dword fs:[edx]
mov dword fs:[edx], esp
mov byte [ebp - 5], 0
push 0xf003f
push 0
push 0x459dc1
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jne 0x459c69
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x18]
call fcn.0040c8b1
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x408511]
call fcn.0040d0dd
call fcn.004048b5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x459d82
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004053d9
push eax
push 0
push 2
push 0x110
push 0xf01ff
push edi
push esi
push ebx
call sub.advapi32.dll_CreateServiceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x459cc9
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x1c]
call fcn.0040c8b1
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x408511]
call fcn.0040d0dd
call fcn.004048b5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x459d82
mov byte [ebp - 5], 1
mov eax, dword [0x4a5b4c]
cmp dword [eax], 0
je 0x459d65
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x400
mov edx, 1
mov eax, dword [ebp + 8]
call fcn.00405439
mov eax, 4
call fcn.00402ce1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
call fcn.004051d9
inc eax
call fcn.00402ce1
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax], ebx
xor eax, eax
push ebp
push 0x459d5e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp - 0x14]
call fcn.0040a0c9
mov eax, dword [ebp - 0x10]
push eax
push 1
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x4a5b4c]
mov eax, dword [eax]
call eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459d65
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
call fcn.00402d01
mov eax, dword [ebp - 0x10]
call fcn.00402d01
ret
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x459d82
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459db4
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404f3d
lea eax, [ebp - 4]
call fcn.00404f19
lea eax, [ebp + 8]
call fcn.00404f19
ret
Function at 0x459dc5
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004053c9
xor eax, eax
push ebp
push 0x459ea2
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x459e82
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0x459eb5
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
je 0x459e78
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.004053d9
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
je 0x459e72
mov eax, dword [ebp - 8]
sub eax, 1
jb 0x459e38
je 0x459e3f
dec eax
je 0x459e46
jmp 0x459e4b
mov edi, 2
jmp 0x459e4b
mov edi, 3
jmp 0x459e4b
mov edi, 4
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push edi
push 0xffffffffffffffff
push esi
call sub.advapi32.dll_ChangeServiceConfigA
test eax, eax
je 0x459e6c
mov byte [ebp - 9], 1
push esi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x459e8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459ea9
lea eax, [ebp - 4]
call fcn.00404f19
ret

Function at 0x459eb9
Capabilities:
Query service configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004053c9
xor eax, eax
push ebp
push 0x459fe9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x459fd3
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.004053d9
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x459fca
lea eax, [ebp - 0x14]
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_QueryServiceConfigA
mov eax, dword [ebp - 0x14]
call fcn.00409159
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x459fba
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_QueryServiceConfigA
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
sub eax, 2
je 0x459f6c
dec eax
je 0x459f7a
dec eax
je 0x459f88
jmp 0x459f96
mov eax, ebx
mov edx, 0x459ffd
call fcn.00404f6d
jmp 0x459fa2
mov eax, ebx
mov edx, 0x45a009
call fcn.00404f6d
jmp 0x459fa2
mov eax, ebx
mov edx, 0x45a015
call fcn.00404f6d
jmp 0x459fa2
mov eax, ebx
mov edx, 0x45a021
call fcn.00404f6d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459fc1
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.00402d01
ret
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459ff0
lea eax, [ebp - 4]
call fcn.00404f19
ret
Function at 0x45a1a9
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004053c9
xor eax, eax
push ebp
push 0x45a261
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x45a24b
xor eax, eax
push ebp
push 0x45a241
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
push 0xf003f
push 0
push 0x45a275
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
je 0x45a229
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.004053d9
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov edi, eax
test edi, edi
je 0x45a223
push edi
call sub.advapi32.dll_DeleteService
mov esi, 1
push edi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
test esi, esi
jle 0x45a233
mov byte [ebp - 5], 1
jmp 0x45a237
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45a24b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a268
lea eax, [ebp - 4]
call fcn.00404f19
ret
Function at 0x45aef1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
cmp edx, dword [ebp + 8]
jne 0x45af12
mov esi, eax
mov eax, edx
test eax, eax
jbe 0x45af0e
mov dl, byte [esi]
xor dl, 8
mov byte [ecx], dl
inc esi
inc ecx
dec eax
jne 0x45af02
mov al, 1
jmp 0x45af14
xor eax, eax
pop esi
pop ebp
ret 4

Function at 0x45af19
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
cmp edx, dword [ebp + 8]
jne 0x45af3a
mov esi, eax
mov eax, edx
test eax, eax
jbe 0x45af36
mov dl, byte [esi]
xor dl, 8
mov byte [ecx], dl
inc esi
inc ecx
dec eax
jne 0x45af2a
mov al, 1
jmp 0x45af3c
xor eax, eax
pop esi
pop ebp
ret 4

Function at 0x45b1f1
Capabilities:
Encrypt data using des

Disassembly:
push ebx
mov ecx, edx
and cl, 0x20
mov ebx, edx
and bl, 0x1e
and ebx, 0xff
shr ebx, 1
or cl, bl
and dl, 1
shl edx, 4
or cl, dl
mov edx, ecx
and edx, 0xff
and eax, 0xff
shl eax, 3
lea eax, [eax*8 + 0x4a3f50]
mov al, byte [eax + edx]
and al, 0xf
pop ebx
ret

Function at 0x45b4ed
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov ebx, dword [ebp + 0x10]
test ebx, ebx
js 0x45b506
shr ebx, 2
mov esi, dword [ecx + ebx*4]
dec ebx
push esi
jns 0x45b4ff
mov ecx, esp
mov ebx, edx
test ebx, ebx
js 0x45b518
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x45b511
mov eax, esp
mov dword [ebp - 4], ecx
push 5
lea ecx, [ebp - 0xa]
call fcn.0045b0e1
mov ebx, 6
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xa]
mov cl, byte [eax]
xor byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x45b532
mov al, byte [ebp - 0xa]
xor edx, edx
mov dl, al
shr edx, 2
mov byte [ebp - 0x12], dl
and al, 3
shl eax, 4
mov dl, byte [ebp - 9]
xor ecx, ecx
mov cl, dl
shr ecx, 4
or al, cl
mov byte [ebp - 0x11], al
and dl, 0xf
shl edx, 2
mov al, byte [ebp - 8]
xor ecx, ecx
mov cl, al
shr ecx, 6
or dl, cl
mov byte [ebp - 0x10], dl
and al, 0x3f
mov byte [ebp - 0xf], al
mov al, byte [ebp - 7]
xor edx, edx
mov dl, al
shr edx, 2
mov byte [ebp - 0xe], dl
and al, 3
shl eax, 4
xor edx, edx
mov dl, byte [ebp - 6]
shr edx, 4
or al, dl
mov byte [ebp - 0xd], al
mov al, byte [ebp - 6]
and al, 0xf
shl eax, 2
xor edx, edx
mov dl, byte [ebp - 5]
shr edx, 6
or al, dl
mov byte [ebp - 0xc], al
mov al, byte [ebp - 5]
and al, 0x3f
mov byte [ebp - 0xb], al
xor ebx, ebx
lea esi, [ebp - 0x12]
mov eax, ebx
mov dl, byte [esi]
call fcn.0045b1f1
mov byte [esi], al
inc ebx
inc esi
cmp ebx, 8
jne 0x45b5b7
mov ebx, 4
lea eax, [ebp - 0x12]
lea edx, [ebp - 0xa]
mov cl, byte [eax]
shl ecx, 4
or cl, byte [eax + 1]
mov byte [edx], cl
inc edx
add eax, 2
dec ebx
jne 0x45b5d4
lea eax, [ebp - 0xa]
mov edx, 5
call fcn.0045b171
mov ebx, 4
lea eax, [ebp - 0xa]
mov edx, dword [ebp + 0xc]
mov cl, byte [eax]
mov byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x45b5fd
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x45b615
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov ebx, ecx
test ebx, ebx
js 0x45b62e
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x45b627
mov edx, esp
mov dword [ebp - 4], edx
mov ebx, eax
mov dword [ebp - 8], 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dl, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 8]
jne 0x45b642
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0045afd9
test bl, bl
jne 0x45b715
mov dword [ebp - 8], 0x10
mov dword [ebp - 0x14], 0x4a6d2c
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x45b679
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x45b68d
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0045b4ed
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov bl, byte [edx]
xor bl, byte [esi]
mov byte [ecx], bl
inc ecx
inc esi
inc edx
dec eax
jne 0x45b6bf
add dword [ebp - 0x14], 6
dec dword [ebp - 8]
jne 0x45b66e
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ecx, [ebp - 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x45b6e2
mov eax, 4
mov edx, dword [ebp + 0xc]
mov cl, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x45b6f3
mov eax, 4
lea edx, [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x45b707
jmp 0x45b7d0
cmp bl, 1
jne 0x45b7d0
mov dword [ebp - 8], 0xfffffff0
mov ebx, 0x4a6d86
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x45b735
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x45b749
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov ecx, ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0045b4ed
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp - 0x18], ecx
mov cl, byte [edx]
xor cl, byte [esi]
mov edi, dword [ebp - 0x18]
mov byte [edi], cl
inc dword [ebp - 0x18]
inc esi
inc edx
dec eax
jne 0x45b77b
sub ebx, 6
inc dword [ebp - 8]
jne 0x45b72a
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ebx, [ebp - 0xc]
mov cl, byte [edx]
mov byte [ebx], cl
inc ebx
inc edx
dec eax
jne 0x45b7a2
mov eax, 4
mov ebx, dword [ebp + 0xc]
mov dl, byte [ebx]
mov byte [ebx + 4], dl
inc ebx
dec eax
jne 0x45b7b3
mov eax, 4
lea ebx, [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov cl, byte [ebx]
mov byte [edx], cl
inc edx
inc ebx
dec eax
jne 0x45b7c7
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0045b05d
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 8