joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a1c0b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xc4
mov eax, 0x60af9e
call fcn.004f7334
mov dword [ebp - 0xd0], ecx
mov esi, dword [ebp + 8]
movzx eax, word [ebp + 0x24]
xor ebx, ebx
push 0xa
push eax
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4a1d4d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4a1d4d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov dword [ebp - 0xc8], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp dword [ebp - 0xc8], ebx
jne 0x4a1c77
test edi, edi
je 0x4a1d4d
cmp dword [ebp + 0x1c], ebx
jbe 0x4a1d11
lea eax, [ebp + 0xc]
mov dword [ebp - 0x30], ebx
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], ebx
call fcn.00403770
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.004a6453
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xc4]
call fcn.004a6dcf
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xc4]
call fcn.004a663f
lea esi, [edi + 1]
mov byte [ebp - 4], 2
push esi
call fcn.005130f2
push esi
push ebx
push eax
mov dword [ebp - 0xcc], eax
call fcn.0050e710
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0xcc]
cmovae eax, dword [ebp - 0x28]
push eax
push edi
push esi
push dword [ebp - 0xc8]
call fcn.004a63f1
add esp, 0x20
lea ecx, [ebp - 0x28]
call fcn.00404330
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.00404330
jmp 0x4a1d13
mov esi, ebx
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00404140
lea eax, [ebp - 0x58]
push eax
call fcn.004a5098
add esp, 0x1c
mov esi, dword [ebp - 0xd0]
lea eax, [ebp - 0x58]
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.004a3662
cmp dword [esi + 4], ebx
lea ecx, [ebp - 0x58]
seta bl
call fcn.00404330
lea ecx, [ebp + 0xc]
call fcn.00404330
mov al, bl
call fcn.004f72ef
ret 0x20

Function at 0x4a4bad
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor edx, edx
push 2
pop ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, ebx
cmp ax, dx
jne 0x4a4bbf
sub edi, ecx
xor ecx, ecx
sar edi, 1
lea esi, [edi + 1]
mov eax, esi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004f62c8
lea ecx, [edi*2 + 2]
mov ebx, eax
push ecx
push 0
push ebx
call fcn.0050e710
push dword [ebp + 8]
push esi
push ebx
call fcn.0051cfce
add esp, 0x1c
mov byte [ebp - 1], 1
xor esi, esi
test edi, edi
js 0x4a4c44
push 0x5c
pop eax
cmp word [ebx + esi*2], ax
jne 0x4a4c39
xor eax, eax
push ebx
mov word [ebx + esi*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a4c32
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4a4c40
push 0x5c
pop eax
mov word [ebx + esi*2], ax
inc esi
cmp esi, edi
jle 0x4a4c0f
jmp 0x4a4c44
mov byte [ebp - 1], 0
push ebx
call fcn.004f6b56
mov al, byte [ebp - 1]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a4c53
Capabilities:
Get disk information

Disassembly:
push 0x3c
mov eax, 0x60b2cc
call fcn.004f7334
mov edi, dword [ebp + 8]
xor ebx, ebx
push 7
pop ecx
xor eax, eax
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
mov word [ebp - 0x28], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x40], ax
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 1
test eax, eax
je 0x4a4d3a
movzx eax, word [eax]
lea ecx, [ebp - 0x40]
push eax
call fcn.004a4b86
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x4a4d3a
lea esi, [eax + 1]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004f62c8
push esi
mov ebx, eax
push 0
push ebx
call fcn.004a4dd9
add esp, 0x10
push ebx
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x4a4d33
xor eax, eax
mov esi, ebx
mov word [ebp - 0x42], ax
movzx eax, word [ebx]
cmp dword [ebp - 0x2c], 8
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push 2
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0051d1e8
add esp, 0xc
test eax, eax
je 0x4a4d28
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x4a4d13
movzx eax, word [esi]
test ax, ax
je 0x4a4d33
jmp 0x4a4cf1
push dword [ebp - 0x44]
lea ecx, [ebp - 0x28]
call fcn.004a4b86
push ebx
call fcn.004f6b56
pop ecx
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00419c00
lea ecx, [ebp - 0x40]
call fcn.00404f10
lea ecx, [ebp - 0x28]
call fcn.00404f10
mov eax, edi
call fcn.004f72ef
ret

Function at 0x4a4d5d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x698510]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], esi
push edi
push eax
call fcn.0050e710
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
add esp, 0xc
or ecx, 0x8000
cmp byte [ebp + 0x10], 0
cmove ecx, dword [ebp + 0xc]
push eax
push edi
push edi
push ecx
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, esi
test eax, eax
je 0x4a4dbd
push edi
jmp 0x4a4dc4
lea eax, [ebp - 0x20c]
push eax
call fcn.00405870
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004f6256
leave
ret
Function at 0x4a5567
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x698510]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x118
xor ebx, ebx
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x11c]
push ebx
push eax
call fcn.0050e710
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004a551c
mov eax, dword [ebp - 0x11c]
add esp, 0xc
cmp eax, 5
jne 0x4a55e6
cmp dword [ebp - 0x118], ebx
jbe 0x4a562c
cmp dword [ebp - 0x118], 1
setne bl
inc ebx
jmp 0x4a562c
cmp eax, 6
jne 0x4a5611
cmp byte [ebp - 6], 1
jne 0x4a560c
mov eax, dword [ebp - 0x118]
sub eax, ebx
je 0x4a5608
sub eax, 1
je 0x4a5604
push 7
jmp 0x4a560e
push 5
jmp 0x4a560e
push 3
jmp 0x4a560e
push 4
pop ebx
jmp 0x4a562c
push 0xa
pop ecx
cmp eax, ecx
jne 0x4a5629
cmp dword [ebp - 0x114], 0x55f0
sbb ebx, ebx
add ebx, 9
jmp 0x4a562c
cmova ebx, ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004f6256
leave
ret
Function at 0x4a5950
Capabilities:
Get common file path
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3100
call fcn.004f7180
mov eax, dword [0x698510]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
xor ebx, ebx
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x3100], edi
call fcn.0050e710
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0050e710
add esp, 0x18
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movsx eax, byte [ebp - 0x108]
push eax
push str.._c:
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004a4b6a
add esp, 0x10
lea eax, [ebp - 0x20c]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a59e6
mov al, 1
jmp 0x4a5aef
push 0x2710
lea eax, [ebp - 0x30ec]
mov dword [ebp - 0x30fc], ebx
push ebx
push eax
call fcn.0050e710
push 0x3e8
lea eax, [ebp - 0x9dc]
push ebx
push eax
call fcn.0050e710
push 0x3e8
lea eax, [ebp - 0x5f4]
push ebx
push eax
call fcn.0050e710
add esp, 0x24
mov dword [ebp - 0x30f0], ebx
lea eax, [ebp - 0x30fc]
mov dword [ebp - 0x30f8], ebx
mov dword [ebp - 0x30f4], ebx
push ebx
push eax
push 0x2710
lea eax, [ebp - 0x30ec]
push eax
push 0xc
lea eax, [ebp - 0x30f8]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4a5a68
mov bl, 2
jmp 0x4a5ae6
lea eax, [ebp - 0x5f4]
push eax
push ebx
push dword [ebp - 0x30dc]
lea eax, [ebp - 0x30ec]
push eax
call fcn.004a5afe
lea eax, [ebp - 0x9dc]
push eax
push 1
push dword [ebp - 0x30d4]
lea eax, [ebp - 0x30ec]
push eax
call fcn.004a5afe
lea ecx, [ebp - 0x5f4]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a5aa9
sub ecx, edx
lea eax, [ebp - 0x5f4]
push ecx
push eax
mov ecx, edi
call fcn.004a6deb
lea edx, [ebp - 0x9dc]
lea edi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4a5aca
mov ecx, dword [ebp - 0x3100]
lea eax, [ebp - 0x9dc]
sub edx, edi
push edx
push eax
call fcn.004a6deb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f6256
leave
ret
Function at 0x4a5da7
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x698510]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a5dd6
push 2
pop eax
jmp 0x4a5e5b
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.004a5c5f
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.0050e710
add esp, 0x14
mov dword [ebp - 0x58], edi
test ebx, ebx
mov dword [ebp - 0x48], esi
mov ecx, 0x61ba88
mov dword [ebp - 0x54], 0x40
mov eax, 0x61ba7c
cmove eax, ecx
cmp dword [ebp - 8], 8
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
and dword [ebp - 0x40], 0
and dword [ebp - 0x3c], 0
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x20], 0
mov esi, eax
je 0x4a5e51
cmp dword [ebp + 0x10], 0
je 0x4a5e51
push dword [ebp + 0x14]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x1c]
call fcn.00404f10
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f6256
leave
ret

Function at 0x4a5e6a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x698510]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push 0x208
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x20c]
push 0
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x220], edi
mov edi, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x21c], esi
call fcn.0050e710
add esp, 0xc
mov ebx, 0x20019
lea eax, [ebp - 0x210]
push eax
push ebx
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x4a5f35
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x104
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x218]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x4a5f29
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push dword [ebp - 0x218]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 2
jne 0x4a5f5a
cmp edi, reloc.OLEAUT32.dll_SysReAllocString
jne 0x4a5f5a
cmp ebx, 0x20019
jne 0x4a5f5a
mov esi, dword [ebp - 0x21c]
mov ebx, 0x20119
jmp 0x4a5ebf
mov ecx, dword [ebp - 0x220]
lea eax, [ebp - 0x20c]
push eax
call fcn.00405870
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x220]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004f6256
leave
ret
Function at 0x4a62d3
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1218
call fcn.004f7180
mov eax, dword [0x698510]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, 0x1000
mov dword [ebp - 0x1218], eax
push esi
lea eax, [ebp - 0x1210]
push 0
push eax
call fcn.0050e710
and dword [ebp - 0x1214], 0
add esp, 0xc
xor eax, eax
xor ebx, ebx
mov word [ebp - 8], ax
lea eax, [ebp - 0x1214]
push eax
push esi
lea eax, [ebp - 0x1210]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x4a63ae
push edi
mov edi, dword [ebp - 0x1214]
xor esi, esi
shr edi, 2
test edi, edi
je 0x4a63ad
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0050e710
push 0x104
lea eax, [ebp - 0x210]
push eax
push dword [ebp + esi*4 - 0x1210]
call fcn.004a63be
add esp, 0x18
test eax, eax
je 0x4a639f
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00514059
push dword [ebp - 0x1218]
lea eax, [ebp - 0x210]
push eax
call fcn.0050e86a
add esp, 0x10
test eax, eax
jne 0x4a63a6
inc esi
cmp esi, edi
jb 0x4a6343
jmp 0x4a63ad
mov ebx, dword [ebp + esi*4 - 0x1210]
pop edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.004f6256
leave
ret

Function at 0x4a63be
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [ebp + 0x10]
mov esi, eax
push dword [ebp + 0xc]
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test esi, esi
je 0x4a63eb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop esi
pop ebp
ret

Function at 0x4a6618
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x4a7003
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor edx, edx
push 2
pop ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, ebx
cmp ax, dx
jne 0x4a7015
sub edi, ecx
xor ecx, ecx
sar edi, 1
lea esi, [edi + 1]
mov eax, esi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004f62c8
push esi
mov ebx, eax
push 0
push ebx
call fcn.004a4dd9
push dword [ebp + 8]
push esi
push ebx
call fcn.0051cfce
add esp, 0x1c
mov byte [ebp - 1], 1
xor esi, esi
test edi, edi
js 0x4a7093
push 0x5c
pop eax
cmp word [ebx + esi*2], ax
jne 0x4a7088
xor eax, eax
push ebx
mov word [ebx + esi*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a7081
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4a708f
push 0x5c
pop eax
mov word [ebx + esi*2], ax
inc esi
cmp esi, edi
jle 0x4a705e
jmp 0x4a7093
mov byte [ebp - 1], 0
push ebx
call fcn.004f6b56
mov al, byte [ebp - 1]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a70a2
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0x70
mov eax, 0x60b593
call fcn.004f7334
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x74], eax
test ecx, ecx
je 0x4a71aa
test edi, edi
je 0x4a71aa
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
test eax, eax
jne 0x4a70e4
call fcn.004a7003
pop ecx
jmp 0x4a70ea
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x78]
push 0x610c1b
push eax
call fcn.004a6f28
pop ecx
pop ecx
mov esi, dword [ebp - 0x78]
mov ecx, esi
and dword [ebp - 4], 0
push 0
call fcn.004a92cd
push 0
mov ecx, esi
call fcn.004a92da
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x4a7122
push eax
mov ecx, esi
call fcn.004a92ad
test ebx, ebx
je 0x4a712e
push ebx
mov ecx, esi
call fcn.004a92bd
push 0
sub esp, 0x18
mov ecx, esp
push edi
call fcn.00405870
lea eax, [ebp - 0x40]
push eax
call fcn.004a5348
add esp, 0x20
push eax
push 0
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
push dword [ebp - 0x7c]
call fcn.00405870
lea eax, [ebp - 0x28]
push eax
call fcn.004a5348
add esp, 0x20
push eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 2
push eax
mov ecx, esi
call fcn.004a92ff
lea ecx, [ebp - 0x28]
call fcn.00404330
lea ecx, [ebp - 0x40]
call fcn.00404330
cmp dword [ebp - 0x70], 0xc8
lea ecx, [ebp - 0x70]
sete bl
call fcn.004a6fc3
test esi, esi
je 0x4a71a6
push esi
lea ecx, [ebp - 0x78]
call fcn.004a6fdf
mov al, bl
jmp 0x4a71ac
xor al, al
call fcn.004f72ef
ret
Function at 0x4a8b54
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, ecx
cmp byte [edx + 4], 0
je 0x4a8b84
push esi
xor esi, esi
cmp dword [edx + 0x3cc], esi
jle 0x4a8b83
mov ecx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
sub edi, ecx
mov al, byte [edi + ecx]
xor byte [ecx], al
inc ecx
inc esi
cmp esi, dword [edx + 0x3cc]
jl 0x4a8b73
pop edi
pop esi
pop ebp
ret 8

Function at 0x4a8b88
Capabilities:
Encode data using base64

Disassembly:
push 0x10
mov eax, 0x60b5d1
call fcn.004f7300
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov edi, dword [ebp + 8]
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], 0xf
mov byte [edi], bl
mov eax, dword [ebp + 0x10]
mov edi, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], 1
test eax, eax
je 0x4a8d0f
push 3
pop esi
mov ecx, dword [ebp + 0xc]
dec eax
mov dword [ebp + 0x10], eax
mov al, byte [ecx]
mov byte [ebp + edi - 0x14], al
inc edi
mov dl, byte [ebp - 0x13]
inc ecx
mov dword [ebp + 0xc], ecx
mov ch, byte [ebp - 0x12]
mov cl, byte [ebp - 0x14]
mov byte [ebp - 0xf], ch
mov byte [ebp - 0xd], dl
mov byte [ebp - 0xe], cl
cmp edi, esi
jne 0x4a8c58
mov esi, dword [ebp + 8]
mov al, cl
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov edi, ebx
shl cl, 4
mov al, dl
shr al, 4
add cl, al
mov al, ch
mov byte [ebp - 0x17], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ch
and al, 0x3f
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], al
cmp dword [0x698438], 0x10
mov ecx, 0x698424
movzx eax, byte [ebp + edi - 0x18]
cmovae ecx, dword [0x698424]
movzx eax, byte [eax + ecx]
mov ecx, esi
push eax
call fcn.004a4456
inc edi
cmp edi, 4
jl 0x4a8c20
mov dl, byte [ebp - 0xd]
mov edi, ebx
mov cl, byte [ebp - 0xe]
mov ch, byte [ebp - 0xf]
push 3
pop esi
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4a8bc2
mov dword [ebp + 0x10], edi
test edi, edi
je 0x4a8d0f
mov eax, edi
cmp edi, esi
jge 0x4a8c8e
cmp eax, esi
jae 0x4a8d18
mov byte [ebp + eax - 0x14], bl
inc eax
cmp eax, esi
jl 0x4a8c76
mov ch, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, dl
shr al, 4
and dl, 0xf
shl cl, 4
add cl, al
shl dl, 2
mov al, ch
mov byte [ebp - 0x17], cl
shr al, 6
and ch, 0x3f
add dl, al
mov byte [ebp - 0x15], ch
lea eax, [edi + 1]
mov byte [ebp - 0x16], dl
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x4a8cfa
mov esi, dword [ebp + 8]
mov edi, eax
cmp dword [0x698438], 0x10
mov ecx, 0x698424
movzx eax, byte [ebp + ebx - 0x18]
cmovae ecx, dword [0x698424]
movzx eax, byte [eax + ecx]
mov ecx, esi
push eax
call fcn.004a4456
inc ebx
cmp ebx, edi
jl 0x4a8ccb
mov edi, dword [ebp + 0x10]
push 3
pop esi
cmp edi, esi
jge 0x4a8d0f
sub esi, edi
mov ecx, dword [ebp + 8]
push 0x3d
call fcn.004a4456
sub esi, 1
jne 0x4a8d00
mov eax, dword [ebp + 8]
call fcn.004f72da
ret
call fcn.004f6cad
int3
Function at 0x4aca30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x6a3c38], 0
push esi
mov esi, dword [ebp + 8]
jne 0x4acb3b
push 0x6a3c3c
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x4acb29
test esi, esi
jne 0x4acb1e
push ebx
push edi
push str.advapi32.dll
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
je 0x4acafe
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptAcquireContextA
push esi
call edi
mov ebx, eax
test ebx, ebx
je 0x4acafe
push 0x61fb50
push esi
call edi
mov dword [ebp - 8], eax
test eax, eax
je 0x4acafe
push 0x61fb60
push esi
call edi
mov edi, eax
test edi, edi
je 0x4acafe
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp + 8]
push eax
call ebx
test eax, eax
je 0x4acafe
lea eax, [ebp - 4]
push eax
push 4
push dword [ebp + 8]
call dword [ebp - 8]
push 0
push dword [ebp + 8]
mov esi, eax
call edi
test esi, esi
je 0x4acafe
mov eax, dword [ebp - 4]
movzx esi, al
shl esi, 8
movzx eax, ah
or esi, eax
movzx eax, byte [ebp - 2]
shl esi, 8
or esi, eax
movzx eax, byte [ebp - 1]
shl esi, 8
or esi, eax
jmp 0x4acb12
push 0
call fcn.0051d87b
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
test esi, esi
mov eax, 1
pop edi
cmove esi, eax
pop ebx
mov dword [0x6a3c38], esi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_SwitchToThread]
nop
call esi
cmp dword [0x6a3c38], 0
je 0x4acb30
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4acb40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
add ecx, 0xdeadbeef
push ebx
mov ebx, dword [ebp + 8]
add ecx, edx
push esi
mov esi, ecx
mov dword [ebp + 0x10], esi
push edi
mov edi, ecx
cmp edx, 0xc
jbe switch.0x004acc4c
add edx, 0xfffffff3
mov eax, 0xaaaaaaab
mul edx
mov eax, edx
shr eax, 3
inc eax
mov dword [ebp - 4], eax
nop dword [eax + eax]
movzx esi, byte [ebx + 7]
movzx eax, byte [ebx + 6]
movzx edx, byte [ebx + 0xb]
shl esi, 8
add esi, eax
shl edx, 8
movzx eax, byte [ebx + 5]
shl esi, 8
add esi, eax
movzx eax, byte [ebx + 4]
add edi, eax
shl esi, 8
movzx eax, byte [ebx + 0xa]
add edi, esi
movzx esi, byte [ebx + 8]
add edx, eax
movzx eax, byte [ebx + 9]
add esi, ecx
shl edx, 8
add edx, eax
shl edx, 8
add esi, edx
mov edx, dword [ebp + 8]
mov ebx, esi
rol ebx, 4
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 2]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx]
shl ecx, 8
add ecx, eax
sub ecx, esi
add esi, edi
add ecx, dword [ebp + 0x10]
xor ebx, ecx
sub edi, ebx
mov eax, ebx
add ebx, esi
rol eax, 6
xor eax, edi
sub esi, eax
mov edx, eax
rol edx, 8
add eax, ebx
xor edx, esi
sub ebx, edx
mov esi, edx
rol esi, 0x10
add edx, eax
xor esi, ebx
mov ebx, dword [ebp + 8]
mov edi, esi
sub eax, esi
ror edi, 0xd
add esi, edx
xor edi, eax
mov dword [ebp + 0x10], esi
sub edx, edi
mov ecx, edi
rol ecx, 4
add ebx, 0xc
xor ecx, edx
mov dword [ebp + 8], ebx
mov edx, dword [ebp + 0xc]
add edi, esi
sub edx, 0xc
sub dword [ebp - 4], 1
mov dword [ebp + 0xc], edx
jne 0x4acb80
cmp edx, 0xc
ja 0x4accb8
jmp dword [edx*4 + 0x4acd08]
movzx eax, byte [ebx + 0xb]
shl eax, 0x18
add ecx, eax
movzx eax, byte [ebx + 0xa]
shl eax, 0x10
add ecx, eax
movzx eax, byte [ebx + 9]
shl eax, 8
add ecx, eax
movzx eax, byte [ebx + 8]
add ecx, eax
movzx eax, byte [ebx + 7]
shl eax, 0x18
add edi, eax
movzx eax, byte [ebx + 6]
shl eax, 0x10
add edi, eax
movzx eax, byte [ebx + 5]
shl eax, 8
add edi, eax
movzx eax, byte [ebx + 4]
add edi, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
add esi, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
add esi, eax
movzx eax, byte [ebx + 1]
shl eax, 8
add esi, eax
movzx eax, byte [ebx]
add esi, eax
mov dword [ebp + 0x10], esi
xor ecx, edi
mov eax, edi
rol eax, 0xe
sub ecx, eax
mov eax, ecx
mov esi, ecx
xor esi, dword [ebp + 0x10]
rol eax, 0xb
sub esi, eax
xor edi, esi
mov eax, esi
ror eax, 7
sub edi, eax
mov eax, edi
xor ecx, edi
rol eax, 0x10
sub ecx, eax
mov eax, ecx
mov edx, ecx
rol eax, 4
xor edx, esi
sub edx, eax
mov eax, edx
xor edi, edx
rol eax, 0xe
sub edi, eax
mov eax, edi
xor ecx, edi
ror eax, 8
sub ecx, eax
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b7cd0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
add eax, esi
mov ecx, eax
sub ecx, esi
push edi
xor edi, edi
cmp esi, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x4b7d19
mov al, byte [esi]
push eax
call fcn.004c70c0
movsx ecx, al
lea esi, [esi + 1]
mov eax, ebx
inc edi
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp edi, dword [ebp + 8]
jb 0x4b7cf7
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret