joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4be7d0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53718b
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x58c250]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
mov esi, ecx
mov ecx, dword [ebp + 0x10]
xor edi, edi
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], ebx
cmp dword [esi + 0x24], edi
je 0x4be834
push edi
push ebx
push edx
push ecx
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, esi
call fcn.004bd210
jmp 0x4be9fe
push 0x204
lea ecx, [ebp - 0x214]
push edi
push ecx
mov dword [ebp - 0x218], edi
call fcn.004f0550
add esp, 0xc
mov ecx, esi
call fcn.004b8e10
test eax, eax
je 0x4be934
cmp byte [esi + 0x2d10], 0
je 0x4be86e
mov ecx, esi
call fcn.004b9960
mov ecx, dword [esi + 0x48]
mov edx, dword [ebp + 8]
push edi
push 0xa
lea eax, [ebp - 0x224]
push eax
mov dword [ebp - 0x21e], edi
mov edi, dword [sym.imp.WS2_32.dll_send]
push ecx
mov word [ebp - 0x224], 0x124
mov dword [ebp - 0x222], edx
call edi
cmp eax, 0xffffffff
je 0x4be934
mov edx, dword [esi + 0x48]
push 0
push 0x100
push 0x594680
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4be934
mov eax, dword [0x594680]
mov ecx, dword [0x594684]
mov dx, word [0x594688]
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], ecx
mov word [ebp - 0x21c], dx
cmp al, 0x24
jne 0x4be934
cmp dword [0x594682], 0x20009301
je 0x4be93b
lea ecx, [ebp - 0x228]
call fcn.00401a00
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x222]
push eax
lea ecx, [ebp - 0x228]
push str.Bad_data_type._Received_type__04Xh
push ecx
call fcn.00401f60
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.00401ac0
xor eax, eax
jmp 0x4be9fe
cmp dword [0x594686], 4
jne 0x4be934
mov ebx, dword [0x59468a]
test ebx, ebx
je 0x4be934
mov eax, dword [esi + 0x48]
push 0
push 0xa
lea edx, [ebp - 0x224]
push edx
push eax
mov dword [ebp - 0x21e], 0
mov word [ebp - 0x224], 0x24
mov dword [ebp - 0x222], 0x55aa0000
call edi
cmp eax, 0xffffffff
je 0x4be934
xor edi, edi
test ebx, ebx
je 0x4be9df
mov ecx, dword [ebp - 0x22c]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4be9df
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x4be9ae
push ebx
push edi
call eax
add esp, 8
push 0x208
lea edx, [ebp - 0x218]
push 0
push edx
call fcn.004f0550
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x48]
add esp, 0xc
push eax
lea ecx, [ebp - 0x218]
push ecx
push edx
mov ecx, esi
call fcn.004bb3b0
inc edi
cmp edi, ebx
jb 0x4be987
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x4be9f2
push 1
push 1
call eax
add esp, 8
mov ecx, esi
call fcn.004be5c0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f0194
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4bf3c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [edi + 0x2c]
push esi
mov esi, dword [edi + 0x3c]
sub esi, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea edx, [ebx + ecx - 0x106]
sub esi, eax
cmp eax, edx
jb 0x4bf439
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.004f01e0
mov edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x4bf410
sub eax, ebx
jmp 0x4bf412
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x4bf401
mov ecx, dword [edi + 0x40]
mov edx, ebx
lea ecx, [ecx + ebx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x4bf42f
sub eax, ebx
jmp 0x4bf431
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x4bf420
add esi, ebx
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x4bf50b
mov edx, dword [edi + 0x74]
add edx, dword [edi + 0x6c]
mov ecx, esi
add edx, dword [edi + 0x38]
mov esi, eax
push edx
call fcn.004bf160
add dword [edi + 0x74], eax
mov edx, dword [edi + 0x74]
add esp, 4
cmp edx, 3
jb 0x4bf483
mov esi, dword [edi + 0x6c]
add esi, dword [edi + 0x38]
mov ecx, dword [edi + 0x58]
movzx eax, byte [esi]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp edx, 0x106
jae 0x4bf497
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x4bf3c5
mov eax, dword [edi + 0x16c0]
mov ecx, dword [edi + 0x3c]
cmp eax, ecx
jae 0x4bf50b
mov esi, dword [edi + 0x6c]
add esi, edx
cmp eax, esi
jae 0x4bf4da
sub ecx, esi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x4bf4be
mov ebx, 0x102
mov ecx, dword [edi + 0x38]
push ebx
add ecx, esi
push 0
push ecx
call fcn.004f0550
add esp, 0xc
add ebx, esi
pop esi
mov dword [edi + 0x16c0], ebx
pop ebx
ret
lea edx, [esi + 0x102]
cmp eax, edx
jae 0x4bf50b
sub esi, eax
add esi, 0x102
sub ecx, eax
cmp esi, ecx
jbe 0x4bf4f4
mov esi, ecx
mov ecx, dword [edi + 0x38]
push esi
add ecx, eax
push 0
push ecx
call fcn.004f0550
add esp, 0xc
add dword [edi + 0x16c0], esi
pop esi
pop ebx
ret
Function at 0x4c1e80
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5371fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
lea ecx, [esi + 4]
mov dword [ebp - 0x14], esi
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004dc8cb
push 4
mov dword [ebp - 4], 0
call fcn.004f1c23
mov edi, eax
add esp, 4
test edi, edi
je 0x4c1ef7
push ebx
call fcn.004dc2e5
mov dword [edi], eax
call fcn.004dc19f
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004dc0d4
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4c1eec
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.004dc0fc
pop ebx
jmp 0x4c1ef9
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4cac50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ecx + 4]
xor bl, bl
cmp dword [eax + 0x14], 0x10
jb 0x4cac62
mov eax, dword [eax]
lea edx, [ebp - 4]
push edx
mov edx, dword [ecx + 0x28]
or edx, 0x20019
push edx
push 0
push eax
mov eax, dword [ecx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4cacad
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x4cac8b
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
push 0
push 0
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 4]
test eax, eax
push edx
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4cb400
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537b70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push esi
push edi
xor esi, esi
mov edi, ecx
mov dword [ebp - 0x14], esi
call fcn.004cb270
mov ebx, dword [ebp + 0xc]
cmp dword [ebx + 0x14], 0x10
jb 0x4cb437
mov eax, dword [ebx]
jmp 0x4cb439
mov eax, ebx
lea ecx, [ebp - 0x10]
push ecx
push esi
lea edx, [ebp - 0x14]
push edx
push esi
push eax
mov eax, dword [edi + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4cb53b
mov eax, dword [ebp - 0x14]
cmp eax, 1
je 0x4cb467
cmp eax, 2
jne 0x4cb53b
mov eax, dword [ebp - 0x10]
cmp eax, esi
jbe 0x4cb518
inc eax
push eax
call fcn.004dbe65
add esp, 4
cmp dword [ebx + 0x14], 0x10
mov esi, eax
jb 0x4cb488
mov eax, dword [ebx]
jmp 0x4cb48a
mov eax, ebx
mov edx, dword [edi + 0x20]
lea ecx, [ebp - 0x10]
push ecx
push esi
xor ebx, ebx
push ebx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x10]
mov byte [esi + eax], bl
mov edi, 0xf
mov eax, esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4cb4b7
sub eax, ecx
push eax
push esi
lea ecx, [ebp - 0x30]
call fcn.0042edd0
push esi
mov dword [ebp - 4], 1
call fcn.004f1ca3
mov esi, dword [ebp + 8]
add esp, 4
lea ecx, [ebp - 0x30]
push ecx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov ecx, esi
mov byte [esi], 0
call fcn.00445610
cmp dword [ebp - 0x1c], 0x10
jb 0x4cb503
mov edx, dword [ebp - 0x30]
push edx
call fcn.004efd7c
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x10], esi
pop edi
mov dword [eax + 0x14], 0xf
pop esi
mov byte [eax], 0
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push ebx
lea eax, [ebp - 0x30]
push eax
mov ecx, edi
call fcn.004cb170
push esi
push eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], esi
call fcn.004c79e0
push 0x581ca8
lea ecx, [ebp - 0x60]
push ecx
call fcn.004f08d9
int3
Function at 0x4cb570
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537b70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push esi
push edi
xor esi, esi
mov edi, ecx
mov dword [ebp - 0x14], esi
call fcn.004cb270
mov ebx, dword [ebp + 0xc]
cmp dword [ebx + 0x14], 0x10
jb 0x4cb5a7
mov eax, dword [ebx]
jmp 0x4cb5a9
mov eax, ebx
lea ecx, [ebp - 0x10]
push ecx
push esi
lea edx, [ebp - 0x14]
push edx
push esi
push eax
mov eax, dword [edi + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4cb6de
mov eax, dword [ebp - 0x14]
cmp eax, 1
je 0x4cb5d7
cmp eax, 2
jne 0x4cb6de
mov eax, dword [ebp - 0x10]
cmp eax, esi
jbe 0x4cb6bb
inc eax
push eax
call fcn.004dbe65
add esp, 4
cmp dword [ebx + 0x14], 0x10
mov esi, eax
jb 0x4cb5f8
mov eax, dword [ebx]
jmp 0x4cb5fa
mov eax, ebx
mov edx, dword [edi + 0x20]
lea ecx, [ebp - 0x10]
push ecx
push esi
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x10]
push 1
lea ecx, [ebp + 0xf]
push ecx
push esi
mov byte [esi + eax], 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov ebx, eax
push ebx
call fcn.004dbe65
add esp, 4
push ebx
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
xor ebx, ebx
mov eax, edi
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4cb650
sub eax, ecx
push eax
push edi
lea ecx, [ebp - 0x30]
call fcn.0042edd0
push esi
mov dword [ebp - 4], 1
call fcn.004f1ca3
push edi
call fcn.004f1ca3
mov esi, dword [ebp + 8]
add esp, 8
lea edx, [ebp - 0x30]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push edx
mov ecx, esi
mov byte [esi], 0
call fcn.00445610
cmp dword [ebp - 0x1c], 0x10
jb 0x4cb6a6
mov eax, dword [ebp - 0x30]
push eax
call fcn.004efd7c
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x10], esi
pop edi
mov dword [eax + 0x14], 0xf
pop esi
mov byte [eax], 0
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push ebx
lea ecx, [ebp - 0x30]
push ecx
mov ecx, edi
call fcn.004cb170
push esi
push eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], esi
call fcn.004c79e0
push 0x581ca8
lea edx, [ebp - 0x60]
push edx
call fcn.004f08d9
int3
Function at 0x4cb710
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537b88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push esi
push edi
mov esi, ecx
call fcn.004cb270
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 0x10], 4
jb 0x4cb748
mov eax, dword [edi]
jmp 0x4cb74a
mov eax, edi
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x18]
push edx
mov edx, dword [esi + 0x20]
lea ecx, [ebp - 0x14]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4cb782
cmp dword [ebp - 0x14], 4
jne 0x4cb782
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push edi
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
call fcn.004cb170
push 0
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 0
call fcn.004c79e0
push 0x581ca8
lea ecx, [ebp - 0x64]
push ecx
call fcn.004f08d9
int3

Function at 0x4cb7b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537bc1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbc
push esi
push edi
mov esi, ecx
call fcn.004cb270
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 0x10], 0
jb 0x4cb7eb
mov eax, dword [edi]
jmp 0x4cb7ed
mov eax, edi
lea ecx, [ebp - 0x14]
push ecx
push 0
lea edx, [ebp - 0x10]
push edx
push 0
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4cb837
push edi
lea ecx, [ebp - 0xac]
push ecx
mov ecx, esi
call fcn.004cb170
push 0
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 0
call fcn.004c79e0
push 0x581ca8
lea edx, [ebp - 0x74]
push edx
call fcn.004f08d9
mov eax, dword [ebp - 0x10]
cmp eax, 1
je 0x4cb891
cmp eax, 2
je 0x4cb891
cmp eax, 4
je 0x4cb891
push edi
lea eax, [ebp - 0x90]
push eax
mov ecx, esi
call fcn.004cb170
push str.:_type_not_supported
push eax
lea ecx, [ebp - 0xc8]
push ecx
mov dword [ebp - 4], 1
call fcn.004c4400
add esp, 0xc
push 0
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.004c79e0
push 0x581ca8
lea edx, [ebp - 0x44]
push edx
call fcn.004f08d9
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4cb8b0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537bd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x1c], esi
call fcn.004cb270
mov edx, dword [esi + 0x20]
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
lea ecx, [ebp - 0x10]
push ecx
push ebx
push ebx
push ebx
push edx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x4cb9a9
xor esi, esi
mov dword [ebp - 0x14], 0x100
cmp dword [ebp - 0x10], ebx
jbe 0x4cb9a9
push edi
mov edi, dword [ebp + 8]
jmp 0x4cb920
mov edx, dword [ebp - 0x1c]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
mov eax, dword [edx + 0x20]
lea ecx, [ebp - 0x138]
push ecx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4cb997
lea eax, [ebp - 0x138]
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4cb957
sub eax, edx
push eax
lea ecx, [ebp - 0x138]
push ecx
lea ecx, [ebp - 0x38]
call fcn.0042edd0
lea edx, [ebp - 0x38]
push edx
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.004ca900
cmp dword [ebp - 0x24], 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x4cb997
mov eax, dword [ebp - 0x38]
push eax
call fcn.004efd7c
add esp, 4
inc esi
mov dword [ebp - 0x14], 0x100
cmp esi, dword [ebp - 0x10]
jb 0x4cb920
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4cb9c0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537b88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x18], esi
call fcn.004cb270
mov ecx, dword [esi + 0x20]
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x4cbab2
xor esi, esi
mov dword [ebp - 0x14], 0x100
cmp dword [ebp - 0x10], ebx
jbe 0x4cbab2
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x14]
push edx
mov edx, dword [ecx + 0x20]
lea eax, [ebp - 0x134]
push eax
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x4cbaa0
lea eax, [ebp - 0x134]
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x34], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4cba60
sub eax, edx
push eax
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x34]
call fcn.0042edd0
lea ecx, [ebp - 0x34]
push ecx
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.004ca900
cmp dword [ebp - 0x20], 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x4cbaa0
mov edx, dword [ebp - 0x34]
push edx
call fcn.004efd7c
add esp, 4
inc esi
mov dword [ebp - 0x14], 0x100
cmp esi, dword [ebp - 0x10]
jb 0x4cba25
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x4dab00
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
pop ebp
ret

Function at 0x4db1e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x58c250]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
push edi
mov ebx, edx
xor eax, eax
lea esp, [esp]
mov byte [ecx + eax + 2], al
inc eax
cmp eax, 0x100
jb 0x4db200
xor edi, edi
mov edi, edi
mov eax, edi
xor edx, edx
div dword [ebp + 8]
inc edi
mov al, byte [edx + ebx]
mov byte [ebp + edi - 0x105], al
cmp edi, 0x100
jb 0x4db210
xor eax, eax
lea esp, [esp]
mov dl, byte [ecx + eax + 2]
movzx edi, byte [ebp + eax - 0x104]
movzx ebx, dl
add esi, edi
add esi, ebx
and esi, 0xff
mov bl, byte [ecx + esi + 2]
mov byte [ecx + eax + 2], bl
inc eax
mov byte [ecx + esi + 2], dl
cmp eax, 0x100
jb 0x4db230
mov word [ecx], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f0194
mov esp, ebp
pop ebp
ret
Function at 0x4db280
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, edx
test ecx, ecx
je 0x4db329
push ebx
mov ebx, dword [ebp + 8]
push esi
sub ebx, edi
mov dword [ebp - 4], ecx
lea esp, [esp]
movzx ecx, byte [eax]
inc ecx
and ecx, 0x800000ff
jns 0x4db2b4
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [eax], cl
movzx ecx, cl
movzx edx, byte [ecx + eax + 2]
lea esi, [ecx + eax + 2]
movzx ecx, byte [eax + 1]
add ecx, edx
and ecx, 0x800000ff
jns 0x4db2d8
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [eax + 1], cl
mov dl, byte [esi]
movzx ecx, cl
movzx ecx, byte [ecx + eax + 2]
mov byte [esi], cl
movzx ecx, byte [eax + 1]
mov byte [ecx + eax + 2], dl
movzx edx, byte [eax + 1]
movzx ecx, byte [edx + eax + 2]
movzx edx, byte [eax]
movzx edx, byte [edx + eax + 2]
add ecx, edx
and ecx, 0x800000ff
jns 0x4db312
dec ecx
or ecx, 0xffffff00
inc ecx
movzx ecx, byte [ecx + eax + 2]
xor cl, byte [ebx + edi]
inc edi
dec dword [ebp - 4]
mov byte [edi - 1], cl
jne 0x4db2a0
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4db500
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c0
mov eax, dword [0x58c250]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xbc]
push edi
push eax
call fcn.004dab00
push 0x20
lea ecx, [esi + 8]
push ecx
lea edx, [ebp - 0xbc]
push edx
call fcn.004db380
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.004db450
add esp, 0x18
cmp dword [esi], 3
jne 0x4db583
mov edi, 0x32
lea edx, [ebp - 0xbc]
push edx
call fcn.004dab00
mov eax, dword [esi + 4]
push eax
lea ecx, [ebp - 0x14]
push ecx
push edx
call fcn.004db380
lea eax, [ebp - 0xbc]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.004db450
add esp, 0x18
dec edi
jne 0x4db553
mov edx, dword [esi + 4]
push edx
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x1c0]
call fcn.004db1e0
lea eax, [esi + 0x28]
push eax
mov ecx, 0x20
lea edx, [ebp - 0x34]
lea eax, [ebp - 0x1c0]
call fcn.004db280
add esp, 8
cmp dword [esi], 3
jne 0x4db621
push ebx
mov ebx, 1
lea ebx, [ebx]
mov edi, dword [esi + 4]
xor eax, eax
test edi, edi
je 0x4db5df
lea esp, [esp]
mov cl, byte [ebp + eax - 0x14]
xor cl, bl
mov byte [ebp + eax - 0x44], cl
inc eax
cmp eax, edi
jb 0x4db5d0
push 0x20
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x64]
push eax
call fcn.004d1760
mov ecx, dword [esi + 4]
push ecx
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x1c0]
call fcn.004db1e0
lea edx, [ebp - 0x64]
push edx
mov ecx, 0x20
lea edx, [ebp - 0x34]
lea eax, [ebp - 0x1c0]
call fcn.004db280
inc ebx
add esp, 0x14
cmp ebx, 0x13
jbe 0x4db5c0
pop ebx
push 0x20
lea eax, [ebp - 0x34]
push eax
add esi, 0x48
push esi
call fcn.004d1760
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
xor ecx, ebp
pop esi
call fcn.004f0194
mov esp, ebp
pop ebp
ret