joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47d778
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
mov esi, edx
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x47d87c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x50f940]
cmp dword [eax], 2
setne bl
test bl, bl
jne 0x47d85e
test ecx, ecx
je 0x47d7b9
mov eax, dword [ecx]
mov dword [ebp - 0xc], eax
jmp 0x47d7d2
lea eax, [ebp - 0xc]
push eax
push 0x20
call sub.kernel32.dll_GetCurrentProcess_1
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x47d85e
mov dword [ebp - 0x20], 1
lea eax, [ebp - 0x1c]
push eax
mov eax, esi
call fcn.0040696c
push eax
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
movzx eax, byte [ebp - 5]
mov eax, dword [eax*4 + 0x507fc8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x10
lea eax, [ebp - 0x20]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError_1
test eax, eax
sete bl
test bl, bl
jne 0x47d855
push 0x47d894
push esi
push 0x47d8ac
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x24]
call fcn.0040e730
push dword [ebp - 0x24]
lea eax, [ebp - 4]
mov edx, 4
call fcn.00406870
mov eax, dword [ebp - 4]
call fcn.0040696c
push eax
call sub.kernel32.dll_OutputDebugStringA
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d883
lea eax, [ebp - 0x24]
call fcn.004064cc
lea eax, [ebp - 4]
call fcn.004064cc
ret

Function at 0x47d8b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
test edx, edx
jle 0x47d8d9
mov ebx, ecx
shr ebx, 8
and ebx, 0xffffff
movzx esi, byte [eax]
xor ecx, esi
and ecx, 0xff
xor ebx, dword [ecx*4 + 0x507b98]
mov ecx, ebx
inc eax
dec edx
jne 0x47d8b6
mov eax, ecx
pop esi
pop ebx
ret
Function at 0x481d34
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea edi, [ebp - 0x30]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
call sub.kernel32.dll_GetCurrentThread
cmp eax, dword [ebp - 4]
je 0x481d60
call sub.kernel32.dll_GetCurrentProcess_1
cmp eax, dword [ebp - 4]
jne 0x481d82
push 0
push 0
push 0x100000
lea eax, [ebp - 0x14]
push eax
call sub.kernel32.dll_GetCurrentProcess_1
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetCurrentProcess_1
push eax
call sub.kernel32.dll_DuplicateHandle
xor edx, edx
push ebp
push 0x481e50
push dword fs:[edx]
mov dword fs:[edx], esp
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x10], eax
push 0xb8
mov eax, dword [ebp - 8]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
jne 0x481e27
jmp 0x481df8
mov ebx, dword [edi + 4]
cmp ebx, 0x100
jb 0x481dcc
cmp ebx, 0x109
jbe 0x481df8
mov esi, dword [edi + 4]
cmp esi, 0x200
jb 0x481ddf
cmp esi, 0x20a
jbe 0x481df8
push edi
call sub.user32.dll_TranslateMessage
push edi
call sub.user32.dll_DispatchMessageA
cmp dword [edi + 4], 0x12
jne 0x481df8
call fcn.00405ed0
jmp 0x481e57
push 1
push 0
push 0
push 0
push edi
call sub.user32.dll_PeekMessageA
test eax, eax
jne 0x481db9
cmp dword [ebp - 8], 0xffffffff
je 0x481e27
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 8]
jae 0x481e22
sub dword [ebp - 8], eax
jmp 0x481e27
xor eax, eax
mov dword [ebp - 8], eax
cmp dword [ebp - 0xc], 1
je 0x481d90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x481e57
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x14]
je 0x481e4f
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4946e8
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, ecx
mov dword [esp], edx
mov ebp, eax
xor esi, esi
xor ebx, ebx
mov eax, dword [esp]
add eax, 2
mov ecx, 3
cdq
idiv ecx
mov edx, eax
add edx, edx
add edx, edx
mov eax, edi
call fcn.00406bfc
cmp esi, dword [esp]
jge 0x49484c
inc ebx
mov eax, edi
call fcn.004069cc
movzx edx, byte [ebp + esi]
and dl, 0xfc
movzx edx, dl
shr edx, 2
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
lea eax, [esi + 1]
cmp eax, dword [esp]
jge 0x494805
inc ebx
mov eax, edi
call fcn.004069cc
movzx edx, byte [ebp + esi]
and dl, 3
movzx edx, dl
shl edx, 4
movzx ecx, byte [ebp + esi + 1]
and cl, 0xf0
movzx ecx, cl
shr ecx, 4
add edx, ecx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
lea eax, [esi + 2]
cmp eax, dword [esp]
jge 0x4947d4
inc ebx
mov eax, edi
call fcn.004069cc
movzx edx, byte [ebp + esi + 1]
and dl, 0xf
movzx edx, dl
add edx, edx
add edx, edx
movzx ecx, byte [ebp + esi + 2]
and cl, 0xc0
movzx ecx, cl
shr ecx, 6
add edx, ecx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, edi
call fcn.004069cc
movzx edx, byte [ebp + esi + 2]
and dl, 0x3f
movzx edx, dl
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
jmp 0x494840
inc ebx
mov eax, edi
call fcn.004069cc
movzx edx, byte [ebp + esi + 1]
and dl, 0xf
movzx edx, dl
add edx, edx
add edx, edx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, edi
call fcn.004069cc
mov byte [eax + ebx - 1], 0x3d
jmp 0x494840
inc ebx
mov eax, edi
call fcn.004069cc
movzx edx, byte [ebp + esi]
and dl, 3
movzx edx, dl
shl edx, 4
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, edi
call fcn.004069cc
mov byte [eax + ebx - 1], 0x3d
inc ebx
mov eax, edi
call fcn.004069cc
mov byte [eax + ebx - 1], 0x3d
add esi, 3
cmp esi, dword [esp]
jl 0x49471c
mov eax, edi
mov edx, ebx
call fcn.00406bfc
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x496668
Capabilities:
Encode data using xor
Encrypt data using des
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffa4
mov dword [esp + 4], ecx
mov dword [esp], edx
mov esi, 0x30
mov edi, 0x508760
mov ecx, dword [esp]
lea edx, [esp + 0xc]
movzx ebx, byte [edi]
movzx ebx, byte [eax + ebx - 1]
xor bl, byte [ecx]
mov byte [edx], bl
inc edx
inc ecx
inc edi
dec esi
jne 0x496687
mov esi, 1
mov edx, 0x508868
mov ecx, esi
dec ecx
mov eax, ecx
add eax, eax
lea eax, [eax + eax*2]
add ecx, ecx
add ecx, ecx
movzx ebx, byte [esp + eax + 0xc]
mov edi, ebx
add edi, edi
movzx ebx, byte [esp + eax + 0x11]
add edi, ebx
movzx ebx, byte [esp + eax + 0xd]
add ebx, ebx
add ebx, ebx
add ebx, ebx
movzx ebp, byte [esp + eax + 0xe]
add ebp, ebp
add ebp, ebp
add ebx, ebp
movzx ebp, byte [esp + eax + 0xf]
add ebp, ebp
add ebx, ebp
movzx eax, byte [esp + eax + 0x10]
add ebx, eax
mov dword [esp + 8], ebx
mov eax, 1
mov ebx, eax
dec ebx
je 0x496700
dec ebx
je 0x496722
dec ebx
je 0x496744
dec ebx
je 0x496765
jmp 0x49677f
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 8]
movzx ebx, byte [ebx + ebp - 0x40]
and bl, 8
movzx ebx, bl
shr ebx, 3
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3b], bl
jmp 0x49677f
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 8]
movzx ebx, byte [ebx + ebp - 0x40]
and bl, 4
movzx ebx, bl
shr ebx, 2
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3b], bl
jmp 0x49677f
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 8]
movzx ebx, byte [ebx + ebp - 0x40]
and bl, 2
movzx ebx, bl
shr ebx, 1
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3b], bl
jmp 0x49677f
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 8]
movzx ebx, byte [ebx + ebp - 0x40]
and bl, 1
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3b], bl
inc eax
cmp eax, 5
jne 0x4966f0
inc esi
add edx, 0x40
cmp esi, 9
jne 0x4966a3
mov esi, 0x20
mov eax, 0x508790
mov edx, dword [esp + 4]
movzx ecx, byte [eax]
movzx ecx, byte [esp + ecx + 0x3b]
mov byte [edx], cl
inc edx
inc eax
dec esi
jne 0x4967a4
add esp, 0x5c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4967e0
Capabilities:
Encrypt data using des

Disassembly:
push ebx
push esi
push edi
push ecx
mov dword [esp], ecx
mov esi, eax
movzx eax, dl
movzx ebx, byte [eax + 0x508817]
test bl, bl
jbe 0x496811
lea eax, [esi + 0x3e0]
call fcn.004967bc
lea eax, [esi + 0x3fc]
call fcn.004967bc
dec bl
jne 0x4967f7
mov cl, 0x30
mov edi, 0x5087e8
mov eax, dword [esp]
movzx edx, byte [edi]
cmp dl, 0x1c
ja 0x496832
movzx edx, dl
movzx edx, byte [esi + edx + 0x3df]
mov byte [eax], dl
jmp 0x49683f
movzx edx, dl
movzx edx, byte [esi + edx + 0x3df]
mov byte [eax], dl
inc eax
inc edi
dec cl
jne 0x49681b
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x49684c
Capabilities:
Encode data using xor
Encrypt data using des
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbdc
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov bl, 1
lea esi, [ebp - 0x421]
mov eax, edi
mov edx, ebx
call fcn.00496600
mov byte [esi], al
inc ebx
inc esi
cmp bl, 0x41
jne 0x496868
mov bl, 0x1c
mov esi, str.91__
lea edi, [ebp - 0x41]
movzx edx, byte [esi]
mov eax, dword [ebp - 8]
call fcn.00496600
mov byte [edi], al
movzx edx, byte [esi + 0x1c]
mov eax, dword [ebp - 8]
call fcn.00496600
mov byte [edi + 0x1c], al
inc edi
inc esi
dec bl
jne 0x496884
mov bl, 1
lea esi, [ebp - 0x3a1]
mov ecx, esi
lea eax, [ebp - 0x421]
mov edx, ebx
call fcn.004967e0
inc ebx
add esi, 0x30
cmp bl, 0x11
jne 0x4968ae
mov bl, 1
mov eax, 0x5086e0
lea edx, [ebp - 0xa1]
cmp bl, 0x20
ja 0x4968e7
movzx ecx, byte [eax]
movzx ecx, byte [ebp + ecx - 0x422]
mov byte [edx], cl
jmp 0x4968f4
movzx ecx, byte [eax]
movzx ecx, byte [ebp + ecx - 0x422]
mov byte [edx], cl
inc ebx
inc edx
inc eax
cmp bl, 0x41
jne 0x4968d3
mov byte [ebp - 9], 1
lea esi, [ebp - 0x3a1]
cmp byte [ebp + 8], 0
je 0x49691e
lea ecx, [ebp - 0x61]
mov edx, esi
lea eax, [ebp - 0x81]
call fcn.00496668
jmp 0x496945
movzx eax, byte [ebp - 9]
mov edx, 0x11
sub edx, eax
mov eax, edx
add eax, eax
lea eax, [eax + eax*2]
lea edx, [ebp + eax*8 - 0x3d1]
lea ecx, [ebp - 0x61]
lea eax, [ebp - 0x81]
call fcn.00496668
mov bl, 0x20
lea eax, [ebp - 0xa1]
movzx edx, byte [eax]
xor byte [eax + 0x40], dl
inc eax
dec bl
jne 0x49694d
push esi
lea esi, [ebp - 0x81]
lea edi, [ebp - 0xa1]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop esi
push esi
lea esi, [ebp - 0x61]
lea edi, [ebp - 0x81]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop esi
inc byte [ebp - 9]
add esi, 0x30
cmp byte [ebp - 9], 0x11
jne 0x496906
mov bl, 0x40
mov esi, 0x508720
lea eax, [ebp - 0x3e1]
movzx edx, byte [esi]
cmp dl, 0x20
ja 0x4969b3
movzx edx, dl
movzx edx, byte [ebp + edx - 0x82]
mov byte [eax], dl
jmp 0x4969c0
movzx edx, dl
movzx edx, byte [ebp + edx - 0xc2]
mov byte [eax], dl
inc eax
inc esi
dec bl
jne 0x49699c
mov bl, 1
lea esi, [ebp - 0x3e1]
movzx ecx, byte [esi]
mov eax, dword [ebp - 4]
mov edx, ebx
call fcn.00496628
inc ebx
inc esi
cmp bl, 0x41
jne 0x4969ce
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x496b00
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov ebp, ecx
mov dword [esp], edx
mov esi, eax
movzx edx, byte [esi]
mov byte [esp + 4], dl
shl edx, 7
and dl, 0xff
movzx eax, byte [esi + 1]
movzx ecx, al
shr ecx, 1
or dl, cl
mov byte [esp + 5], dl
shl eax, 6
and al, 0xff
movzx edx, byte [esi + 2]
movzx ecx, dl
shr ecx, 2
or al, cl
mov byte [esp + 6], al
shl edx, 5
and dl, 0xff
movzx eax, byte [esi + 3]
movzx ecx, al
shr ecx, 3
or dl, cl
mov byte [esp + 7], dl
shl eax, 4
and al, 0xff
movzx edx, byte [esi + 4]
shr edx, 4
or al, dl
mov byte [esp + 8], al
movzx eax, byte [esi + 4]
add eax, eax
add eax, eax
add eax, eax
and al, 0xff
movzx edx, byte [esi + 5]
shr edx, 5
or al, dl
mov byte [esp + 9], al
movzx eax, byte [esi + 5]
add eax, eax
add eax, eax
and al, 0xff
movzx edx, byte [esi + 6]
shr edx, 6
or al, dl
mov byte [esp + 0xa], al
movzx eax, byte [esi + 6]
add eax, eax
and al, 0xff
mov byte [esp + 0xb], al
mov edi, 8
lea eax, [esp + 4]
mov edx, 1
xor esi, esi
mov ecx, edx
movzx ebx, byte [eax]
shl ebx, cl
mov ecx, ebx
xor ecx, esi
and ecx, 1
mov esi, ecx
inc edx
cmp edx, 8
jne 0x496bb1
movzx edx, byte [eax]
and dl, 0xfe
mov ecx, esi
or dl, cl
mov byte [eax], dl
inc eax
dec edi
jne 0x496bac
mov eax, ebp
mov edx, 8
call fcn.00406bfc
push 1
mov eax, ebp
call fcn.004069cc
mov edx, eax
lea ecx, [esp + 8]
mov eax, dword [esp + 4]
call fcn.0049684c
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4977c8
Capabilities:
Hash data using sha1

Disassembly:
test eax, eax
jne 0x4977d2
mov eax, 1
ret
xor edx, edx
mov dword [eax + 0x14], edx
xor edx, edx
mov dword [eax + 0x18], edx
xor edx, edx
mov dword [eax + 0x1c], edx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
xor edx, edx
mov dword [eax + 0x60], edx
xor edx, edx
mov dword [eax + 0x64], edx
xor eax, eax
ret

Function at 0x49795c
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff0c
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x49]
xor ecx, ecx
mov edx, 0x41
call fcn.00404e90
lea eax, [ebp - 0x8a]
xor ecx, ecx
mov edx, 0x41
call fcn.00404e90
cmp ebx, 0x40
jle 0x4979e5
lea eax, [ebp - 0xf4]
call fcn.004977c8
mov edx, esi
lea eax, [ebp - 0xf4]
mov ecx, ebx
call fcn.00497880
mov edx, dword [ebp + 8]
lea eax, [ebp - 0xf4]
call fcn.00497810
lea edx, [ebp - 0x49]
mov eax, dword [ebp + 8]
mov ecx, 0x14
call fcn.004048a0
lea edx, [ebp - 0x8a]
mov eax, dword [ebp + 8]
mov ecx, 0x14
call fcn.004048a0
jmp 0x497a00
lea edx, [ebp - 0x49]
mov eax, esi
mov ecx, ebx
call fcn.004048a0
lea edx, [ebp - 0x8a]
mov eax, esi
mov ecx, ebx
call fcn.004048a0
mov ecx, 0x40
lea eax, [ebp - 0x49]
lea edx, [ebp - 0x8a]
xor byte [eax], 0x36
xor byte [edx], 0x5c
inc edx
inc eax
dec ecx
jne 0x497a0e
lea eax, [ebp - 0xf4]
call fcn.004977c8
lea edx, [ebp - 0x49]
lea eax, [ebp - 0xf4]
mov ecx, 0x40
call fcn.00497880
mov edx, dword [ebp - 4]
lea eax, [ebp - 0xf4]
mov ecx, dword [ebp - 8]
call fcn.00497880
mov edx, dword [ebp + 8]
lea eax, [ebp - 0xf4]
call fcn.00497810
lea eax, [ebp - 0xf4]
call fcn.004977c8
lea edx, [ebp - 0x8a]
lea eax, [ebp - 0xf4]
mov ecx, 0x40
call fcn.00497880
mov edx, dword [ebp + 8]
lea eax, [ebp - 0xf4]
mov ecx, 0x14
call fcn.00497880
mov edx, dword [ebp + 8]
lea eax, [ebp - 0xf4]
call fcn.00497810
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x497b18
Capabilities:
Hash data with md5

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004986a8
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
pop ebx
ret
Function at 0x49aa3c
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x49aa45
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov byte [ebp - 5], cl
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x49abf7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0049ad84
xor eax, eax
push ebp
push 0x49abd5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 8
je 0x49aa94
call fcn.00405ed0
jmp 0x49abdc
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 8
je 0x49ab63
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 1
je 0x49aae9
mov eax, dword [ebp - 4]
cmp word [eax + 0x3a], 0
je 0x49aae9
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0049a9ec
push dword [ebp - 0x10]
mov eax, dword [ebp - 4]
push dword [eax + 0x50]
push ebx
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406870
mov eax, dword [ebp - 0xc]
push eax
mov edi, dword [ebp - 4]
movzx ecx, byte [ebp - 5]
mov edx, esi
mov eax, dword [edi + 0x3c]
call dword [edi + 0x38]
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 4
je 0x49ab22
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0049a9ec
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
push dword [eax + 0x50]
push ebx
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00406870
mov eax, dword [ebp - 0x14]
call fcn.0040696c
push eax
call sub.kernel32.dll_OutputDebugStringA
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 2
je 0x49abbf
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.0049a9ec
push dword [ebp - 0x20]
mov eax, dword [ebp - 4]
push dword [eax + 0x50]
push ebx
push 0x49ac10
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00406870
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0049aa0c
jmp 0x49abbf
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 1
je 0x49ab86
mov eax, dword [ebp - 4]
cmp word [eax + 0x3a], 0
je 0x49ab86
push ebx
mov edi, dword [ebp - 4]
movzx ecx, byte [ebp - 5]
mov edx, esi
mov eax, dword [edi + 0x3c]
call dword [edi + 0x38]
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 4
je 0x49ab9c
mov eax, ebx
call fcn.0040696c
push eax
call sub.kernel32.dll_OutputDebugStringA
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 2
je 0x49abbf
lea eax, [ebp - 0x24]
mov ecx, 0x49ac10
mov edx, ebx
call fcn.004067f4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.0049aa0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49abdc
mov eax, dword [ebp - 4]
call fcn.0049ad90
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49abfe
lea eax, [ebp - 0x24]
mov edx, 7
call fcn.004064f0
ret
Function at 0x49c8dc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov esi, eax
mov byte [esp], 0
xor eax, eax
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 8], eax
mov edi, 1
jmp 0x49c8fd
inc edi
mov eax, esi
call fcn.0040679c
cmp edi, eax
jg 0x49c90f
cmp byte [esi + edi - 1], 0x20
je 0x49c8fc
mov eax, esi
test eax, eax
je 0x49c91a
sub eax, 4
mov eax, dword [eax]
cmp eax, edi
jl 0x49c9dc
cmp byte [esi + edi - 1], 0x2e
je 0x49ca00
jmp 0x49c9dc
cmp byte [esi + edi - 1], 0x2e
jne 0x49c984
inc dword [esp + 4]
cmp dword [esp + 4], 3
jg 0x49ca00
cmp dword [esp + 8], 0xff
jg 0x49ca00
xor eax, eax
mov dword [esp + 8], eax
mov ebp, esi
test ebp, ebp
je 0x49c968
sub ebp, 4
mov ebp, dword [ebp]
cmp ebp, edi
jg 0x49c970
mov bl, 1
jmp 0x49c97e
movzx eax, byte [esi + edi]
add al, 0xd0
sub al, 0xa
setb bl
xor bl, 1
test bl, bl
jne 0x49ca00
jmp 0x49c9db
movzx eax, byte [esi + edi - 1]
add al, 0xd0
sub al, 0xa
jae 0x49c9a9
mov eax, dword [esp + 8]
add eax, eax
lea eax, [eax + eax*4]
movzx edx, byte [esi + edi - 1]
add eax, edx
sub eax, 0x30
mov dword [esp + 8], eax
jmp 0x49c9db
inc edi
mov eax, esi
call fcn.0040679c
cmp edi, eax
jg 0x49c9bb
cmp byte [esi + edi - 1], 0x20
je 0x49c9a8
mov dword [esp + 0xc], esi
cmp dword [esp + 0xc], 0
je 0x49c9d3
mov eax, dword [esp + 0xc]
sub eax, 4
mov eax, dword [eax]
mov dword [esp + 0xc], eax
cmp edi, dword [esp + 0xc]
jle 0x49ca00
jmp 0x49c9eb
inc edi
mov eax, esi
call fcn.0040679c
cmp edi, eax
jle 0x49c932
cmp dword [esp + 4], 3
jne 0x49ca00
cmp dword [esp + 8], 0xff
jg 0x49ca00
mov byte [esp], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4bd3b8
Capabilities:
Encode data using base64
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
add eax, eax
add eax, eax
mov ecx, 3
cdq
idiv ecx
mov edx, eax
add edx, 4
mov ecx, esi
xor eax, eax
call fcn.00406c60
cmp byte [ebp - 1], 0
jne 0x4bd418
mov eax, esi
call fcn.004069cc
movzx edx, byte [ebp - 0xc]
dec edx
and dl, 0x3f
add dl, 0x21
mov byte [eax], dl
mov eax, dword [ebp - 0xc]
add eax, 2
mov ecx, 3
cdq
idiv ecx
lea eax, [eax + eax*2]
mov dword [ebp - 0xc], eax
mov edi, 2
xor eax, eax
mov dword [ebp - 0x10], eax
xor ebx, ebx
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x4bd432
sub al, 2
jb 0x4bd439
jmp 0x4bd43e
mov ebx, 2
jmp 0x4bd43e
mov ebx, 1
mov eax, esi
call fcn.004069cc
mov byte [eax + ebx - 1], 0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jge 0x4bd522
test edi, edi
jle 0x4bd49a
mov eax, esi
call fcn.004069cc
lea eax, [eax + ebx - 1]
push eax
mov ecx, edi
mov eax, 0x3f
shl eax, cl
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
movzx edx, byte [edx + ecx]
and eax, edx
mov ecx, edi
shr eax, cl
mov edx, dword [esi]
or al, byte [edx + ebx - 1]
pop edx
mov byte [edx], al
sub edi, 6
inc ebx
mov eax, esi
call fcn.004069cc
mov byte [eax + ebx - 1], 0
jmp 0x4bd516
test edi, edi
jge 0x4bd4e0
mov eax, edi
cdq
xor eax, edx
sub eax, edx
mov edi, eax
mov eax, esi
call fcn.004069cc
lea eax, [eax + ebx - 1]
push eax
mov ecx, edi
mov eax, 0x3f
shr eax, cl
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
and al, byte [edx + ecx]
mov ecx, edi
shl al, cl
mov edx, dword [esi]
or al, byte [edx + ebx - 1]
pop edx
mov byte [edx], al
mov eax, 8
sub eax, edi
mov edi, eax
inc dword [ebp - 0x10]
jmp 0x4bd516
mov eax, esi
call fcn.004069cc
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
movzx edx, byte [edx + ecx]
and dl, 0x3f
mov ecx, dword [esi]
movzx ecx, byte [ecx + ebx - 1]
or dl, cl
mov byte [eax + ebx - 1], dl
inc ebx
inc dword [ebp - 0x10]
mov eax, esi
call fcn.004069cc
mov byte [eax + ebx - 1], 0
mov edi, 2
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jl 0x4bd456
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x4bd533
sub al, 2
jb 0x4bd56d
jmp 0x4bd5b5
cmp edi, 2
jne 0x4bd539
dec ebx
mov eax, ebx
sub eax, 2
jl 0x4bd5b5
inc eax
mov dword [ebp - 0x14], eax
mov edi, 2
mov eax, esi
call fcn.004069cc
mov edx, dword [esi]
movzx edx, byte [edx + edi - 1]
mov ecx, dword [0x508b2c]
movzx edx, byte [ecx + edx]
mov byte [eax + edi - 1], dl
inc edi
dec dword [ebp - 0x14]
jne 0x4bd549
jmp 0x4bd5b5
cmp edi, 2
jne 0x4bd573
dec ebx
test ebx, ebx
jle 0x4bd5b0
mov dword [ebp - 0x14], ebx
mov edi, 1
mov eax, esi
call fcn.004069cc
mov edx, dword [esi]
movzx edx, byte [edx + edi - 1]
mov ecx, dword [0x508b30]
movzx edx, byte [ecx + edx]
mov byte [eax + edi - 1], dl
inc edi
dec dword [ebp - 0x14]
jne 0x4bd57f
jmp 0x4bd5b0
inc ebx
mov eax, esi
call fcn.004069cc
mov byte [eax + ebx - 1], 0x3d
test bl, 3
jne 0x4bd5a3
mov eax, esi
mov edx, ebx
call fcn.00406bfc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4