joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a8930
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b3227
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov dword [esp + 8], 0
mov eax, dword [0x628100]
mov esi, dword [ecx + 0x64]
mov dword [esp + 0x14], 1
mov dword [esp + 4], eax
push str._tblNotificationMessages
push esi
mov byte [esp + 0x1c], 2
call fcn.00508ae0
push 0xffffd8ef
push esi
call fcn.00508c60
mov ecx, dword [esp + 0x30]
push ecx
push esi
call fcn.00508ae0
push 0xfffffffffffffffe
push esi
call fcn.00508c60
push 0xffffffffffffffff
push esi
call fcn.005088c0
add esp, 0x28
lea ecx, [esp + 4]
push eax
call fcn.0058f868
push 0xfffffffffffffffe
push esi
call fcn.005084b0
push 0xfffffffffffffffe
push esi
call fcn.005084b0
mov esi, dword [esp + 0x2c]
add esp, 0x10
lea edx, [esp + 4]
mov ecx, esi
push edx
call fcn.0058f454
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 1
call fcn.0058f6df
lea ecx, [esp + 0x20]
mov byte [esp + 0x14], 0
call fcn.0058f6df
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8

Function at 0x4aa6c0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5b3462
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
xor ebx, ebx
push 0x4b90
mov dword [eax], 0x64
mov dword [esp + 0x2c], ebx
mov dword [ebp], 0x32
call fcn.0058f420
add esp, 4
mov dword [esp + 0x38], eax
cmp eax, ebx
mov byte [esp + 0x28], 1
je 0x4aa71c
mov ecx, eax
call fcn.00495fa0
mov esi, eax
jmp 0x4aa71e
xor esi, esi
mov edi, dword [esp + 0x3c]
mov byte [esp + 0x28], bl
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x44], edi
call fcn.005953c4
cmp eax, ebx
je 0x4aa73e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x4aa740
xor eax, eax
mov edx, dword [esi]
push ebx
push 0x270f
push eax
lea eax, [esp + 0x1c]
mov ecx, 0x64
push eax
push 0x40000000
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
push str.VideoWindow
push ebx
mov ecx, esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call dword [edx + 0x54]
test eax, eax
mov ecx, esi
je 0x4aa7d8
push ebx
call fcn.00592e77
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.0058f454
mov ecx, esi
call fcn.00497d50
mov ecx, dword [esi + 0x3c]
push ebx
call fcn.00592eb9
mov ecx, dword [esi + 0x3c]
lea eax, [esp + 0x10]
push eax
call fcn.0049a290
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [edx], ecx
mov dword [ebp], eax
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x58]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
cmp edi, ebx
je 0x4aa7df
add dword [ebp], 0x19
jmp 0x4aa7df
mov edx, dword [esi]
push 1
call dword [edx + 4]
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.0058f6df
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret 0x24
Function at 0x4b14d0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5b3db5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
mov dword [esp + 0xc], 0
mov eax, dword [0x628100]
push esi
mov dword [esp + 4], eax
mov edx, dword [esp + 0x12c]
lea ecx, [esp + 0xc]
push ecx
push edx
push 0
mov dword [esp + 0x12c], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4b1587
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x4b1587
lea edx, [esp + 8]
push edx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x14]
push edx
call esi
cmp byte [esp + eax + 0x13], 0x5c
jne 0x4b1579
lea eax, [esp + 0x14]
push eax
call esi
mov byte [esp + eax + 0x13], 0
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 8]
call fcn.0058f868
mov esi, dword [esp + 0x128]
lea edx, [esp + 4]
push edx
mov ecx, esi
call fcn.0058f454
mov dword [esp + 0x10], 1
lea ecx, [esp + 4]
mov byte [esp + 0x120], 0
call fcn.0058f6df
mov ecx, dword [esp + 0x118]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x120
ret 8

Function at 0x4b1763
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, 0x5b3dca
call fcn.00576dcc
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov eax, dword [esi]
mov dword [ebp - 0x14], ebx
cmp eax, 0xffffffff
mov dword [ebp - 4], ebx
je 0x4b1805
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x4b1805
push 0x328
call fcn.0058f420
pop ecx
mov ecx, eax
mov dword [ebp - 0x1c], ecx
cmp ecx, ebx
mov byte [ebp - 4], 1
je 0x4b17b4
call fcn.004b189e
jmp 0x4b17b6
xor eax, eax
push eax
mov byte [ebp - 4], bl
push dword [esi]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, ebx
jne 0x4b17e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push 0x5f7768
push eax
call fcn.00575ec1
lea edi, [esi + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esi + 4]
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ecx + 4]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004b1821
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4b4ed6
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x4b50b7
push ebx
call fcn.00576df0
cmp eax, 0x26
pop ecx
jb 0x4b50b7
push dword [0x60b24c]
xor esi, esi
inc esi
call fcn.00576df0
pop ecx
push eax
lea ecx, [ebp - 0x14c]
push dword [0x60b24c]
call fcn.004b5482
lea edi, [ebp - 0x44]
jmp 0x4b4f26
mov ebx, dword [ebp + 8]
mov al, byte [esi + ebx]
push eax
call fcn.004b50bc
mov cl, byte [ebx + esi + 1]
shl al, 4
push ecx
mov byte [ebp - 1], al
call fcn.004b50bc
pop ecx
and al, 0xf
pop ecx
mov cl, byte [ebp - 1]
or cl, al
push ecx
lea ecx, [ebp - 0x14c]
call fcn.004b557e
mov byte [edi], al
inc edi
inc esi
inc esi
cmp esi, 9
je 0x4b4f6d
cmp esi, 0xe
je 0x4b4f6d
cmp esi, 0x13
je 0x4b4f6d
cmp esi, 0x18
jne 0x4b4f6e
inc esi
cmp esi, 0x25
jl 0x4b4f23
mov byte [ebp - 0x34], 0x65
mov byte [ebp - 0x33], 0x20
mov byte [ebp - 0x32], 1
mov byte [ebp - 0x31], 0x54
mov byte [ebp - 0x30], 0xcb
mov byte [ebp - 0x2f], 0x7a
mov byte [ebp - 0x2e], 0xbe
mov byte [ebp - 0x2d], 0xce
mov byte [ebp - 0x2c], 1
mov byte [ebp - 0x2b], 0xbd
mov byte [ebp - 0x2a], 0x59
mov byte [ebp - 0x29], 0xa4
mov byte [ebp - 0x28], 0x88
mov byte [ebp - 0x27], 0x12
mov byte [ebp - 0x26], 0x5f
mov byte [ebp - 0x25], 0xf7
mov byte [ebp - 0x24], 0x91
mov byte [ebp - 0x23], 0x6b
mov byte [ebp - 0x22], 0xec
mov byte [ebp - 0x21], 0x31
mov byte [ebp - 0x20], 0x76
mov byte [ebp - 0x1f], 0x4c
mov byte [ebp - 0x1e], 0xe
mov byte [ebp - 0x1d], 0xb8
mov byte [ebp - 0x1c], 0x36
mov byte [ebp - 0x1b], 0xa5
mov byte [ebp - 0x1a], 0xd9
mov byte [ebp - 0x19], 0x15
mov byte [ebp - 0x18], 0x33
mov byte [ebp - 0x17], 0x7f
mov byte [ebp - 0x16], 0x10
mov byte [ebp - 0x15], 0xa7
mov byte [ebp - 0x14], 0x8a
mov byte [ebp - 0x13], 0xf9
mov byte [ebp - 0x12], 0xb5
mov byte [ebp - 0x11], 0x2c
mov byte [ebp - 0x10], 0xdd
mov byte [ebp - 0xf], 0x97
mov byte [ebp - 0xe], 0x17
mov byte [ebp - 0xd], 0x6d
mov byte [ebp - 0xc], 0xce
mov byte [ebp - 0xb], 0x83
mov byte [ebp - 0xa], 0xe9
mov byte [ebp - 9], 0x35
mov byte [ebp - 8], 0x20
mov byte [ebp - 7], 0x54
mov byte [ebp - 6], 0xc6
mov byte [ebp - 5], 0xb9
xor edi, edi
lea esi, [ebp - 0x34]
lea eax, [ebp - 0x44]
push 0x10
push eax
push esi
call fcn.005773d0
add esp, 0xc
test eax, eax
je 0x4b50b7
inc edi
add esi, 0x10
cmp edi, 3
jl 0x4b5038
lea eax, [ebp - 0x44]
push 2
push eax
push 0x62cf30
call fcn.00576e70
and dword [ebp + 8], 0
add esp, 0xc
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x254]
push 0xc
push eax
call fcn.004b5662
xor esi, esi
push 0
lea ecx, [ebp - 0x254]
call fcn.004b557e
mov byte [ebp + esi + 8], al
inc esi
cmp esi, 4
jb 0x4b507e
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x38]
jne 0x4b50aa
mov eax, dword [ebp - 0x42]
mov dword [0x62cf34], eax
mov eax, dword [ebp - 0x3c]
jmp 0x4b50b2
push 0xfffffffffffffffe
pop eax
mov dword [0x62cf34], eax
mov dword [0x62cf38], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b62a1
Capabilities:
Encode data using xor

Disassembly:
mov eax, ecx
push ebx
xor edx, edx
push esi
mov dword [eax], edx
xor esi, esi
mov bl, 1
mov ecx, esi
shl bl, cl
inc esi
cmp esi, 8
mov byte [eax + esi + 3], bl
jl 0x4b62ab
mov bl, dl
mov cl, dl
shl bl, 4
shr cl, 4
xor cl, bl
and cl, 0xf
xor cl, bl
mov bl, cl
shl bl, 2
shr cl, 2
xor cl, bl
and cl, 0x33
xor cl, bl
mov bl, cl
add bl, bl
shr cl, 1
xor cl, bl
and cl, 0x55
xor cl, bl
mov byte [eax + edx + 0xc], cl
inc edx
cmp edx, 0x100
jl 0x4b62bb
pop esi
pop ebx
ret

Function at 0x4b8c13
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x10]
dec ecx
je 0x4b8cf0
dec ecx
je 0x4b8cb1
dec ecx
je 0x4b8c97
dec ecx
je 0x4b8c79
dec ecx
je 0x4b8c3f
xor eax, eax
jmp 0x4b8d03
test byte [eax + 0x14c], 1
je 0x4b8c38
mov edi, dword [ebp + 0xc]
push edi
push 0
push dword [ebp + 8]
call fcn.005771b0
mov eax, dword [esi + 4]
add esp, 0xc
add dword [eax + 0x1c], edi
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
cmp ecx, edx
ja 0x4b8c6e
mov ecx, edx
mov dword [eax + 0x20], ecx
xor eax, eax
inc eax
jmp 0x4b8d03
lea ecx, [ebp - 4]
and dword [ebp - 4], 0
push 0
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 4]
jmp 0x4b8d03
mov ecx, dword [eax + 0x130]
test ecx, ecx
je 0x4b8c38
push dword [eax + 0x14c]
push dword [ebp + 0xc]
push dword [ebp + 8]
call ecx
jmp 0x4b8d03
cmp byte [eax + 0x129], 0
mov edi, dword [ebp + 0xc]
mov edx, dword [eax + 0x1c]
je 0x4b8cc5
mov ecx, dword [eax + 0x20]
jmp 0x4b8cc8
mov ecx, dword [eax + 0x18]
sub ecx, edx
cmp ecx, edi
jae 0x4b8cd0
mov edi, ecx
test edi, edi
jbe 0x4b8cec
mov eax, dword [eax + 0x14]
push edi
add eax, edx
push eax
push dword [ebp + 8]
call fcn.00576e70
mov eax, dword [esi + 4]
add esp, 0xc
add dword [eax + 0x1c], edi
mov eax, edi
jmp 0x4b8d03
push dword [eax + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.00575b96
add esp, 0x10
pop edi
pop esi
leave
ret 8
Function at 0x4b8fc8
Capabilities:
Get file size

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
xor ebx, ebx
mov dword [esi], ebx
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x10]
dec ecx
je 0x4b903a
dec ecx
je 0x4b9028
dec ecx
je 0x4b900e
dec ecx
je 0x4b8fee
dec ecx
je 0x4b9030
xor al, al
jmp 0x4b905e
cmp byte [eax + 0x129], bl
je 0x4b8fff
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [edi + 4]
push ebx
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
jmp 0x4b905a
mov ecx, dword [eax + 0x140]
cmp ecx, ebx
je 0x4b8fea
push esi
push dword [eax + 0x14c]
call ecx
test eax, eax
setne al
jmp 0x4b905e
cmp byte [eax + 0x129], bl
je 0x4b9035
mov eax, dword [eax + 0x20]
jmp 0x4b905a
mov eax, dword [eax + 0x18]
jmp 0x4b905a
cmp byte [eax + 0x129], bl
je 0x4b904b
push dword [eax + 8]
call fcn.005775ec
pop ecx
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
push dword [eax + 0x10]
call fcn.00577562
pop ecx
mov dword [esi], eax
mov al, 1
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b9076
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
cmp byte [eax + 0x129], 0
je 0x4b90a4
mov ecx, dword [eax + 0x10]
dec ecx
je 0x4b916f
dec ecx
je 0x4b912b
dec ecx
je 0x4b9107
dec ecx
je 0x4b90cc
dec ecx
je 0x4b90ab
xor al, al
jmp 0x4b918b
mov ecx, dword [ebp + 0xc]
imul ecx, dword [ebp + 0x10]
add dword [eax + 0x1c], ecx
mov edi, dword [edi + 4]
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
cmp eax, ecx
ja 0x4b90c4
mov eax, ecx
mov dword [edi + 0x20], eax
jmp 0x4b916b
mov esi, dword [ebp + 0xc]
and dword [ebp - 4], 0
imul esi, dword [ebp + 0x10]
lea ecx, [ebp - 4]
push 0
push ecx
push esi
push dword [ebp + 8]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
cmp dword [ebp - 4], esi
jne 0x4b9100
test al, al
je 0x4b9100
xor eax, eax
inc eax
jmp 0x4b918b
xor eax, eax
jmp 0x4b918b
mov ecx, dword [eax + 0x134]
test ecx, ecx
je 0x4b90a4
push dword [eax + 0x14c]
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call ecx
test eax, eax
setne al
jmp 0x4b918b
mov esi, dword [ebp + 0xc]
mov ecx, dword [eax + 0x1c]
imul esi, dword [ebp + 0x10]
lea edx, [ecx + esi]
cmp edx, dword [eax + 0x18]
jae 0x4b90a4
mov eax, dword [eax + 0x14]
push esi
push dword [ebp + 8]
add eax, ecx
push eax
call fcn.00576e70
mov eax, dword [edi + 4]
add esp, 0xc
add dword [eax + 0x1c], esi
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
cmp ecx, edx
ja 0x4b9168
mov ecx, edx
mov dword [eax + 0x20], ecx
mov al, 1
jmp 0x4b918b
push dword [eax + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00577752
sub eax, dword [ebp + 0x10]
add esp, 0x10
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
leave
ret 0xc
Function at 0x4c8903
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
xor edx, edx
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], edx
jne 0x4c8918
xor eax, eax
jmp 0x4c8a06
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
imul esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
add esi, dword [ebp + 8]
push edi
mov edi, ebx
push 8
sub ecx, ebx
and edi, 7
pop eax
inc ecx
sub eax, edi
cmp eax, ecx
mov dword [ebp + 8], eax
jb 0x4c8942
mov dword [ebp + 8], ecx
cmp dword [ebp + 8], 8
jne 0x4c894b
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0x18]
and eax, 7
inc eax
cmp eax, ecx
mov dword [ebp + 0xc], eax
jb 0x4c895c
mov dword [ebp + 0xc], ecx
mov eax, ebx
xor eax, dword [ebp + 0x18]
test eax, 0xfffffff8
jne 0x4c896b
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 8]
add eax, ebx
cmp ebx, eax
mov dword [ebp + 0x10], eax
jae 0x4c89a0
mov edx, dword [ebp - 4]
mov edi, ebx
mov eax, ebx
not edi
shr eax, 3
and edi, 7
add eax, esi
cmp dword [ebp + 0x1c], 0
mov dl, byte [edx + edi + 4]
je 0x4c8996
or byte [eax], dl
jmp 0x4c899a
not dl
and byte [eax], dl
inc ebx
cmp ebx, dword [ebp + 0x10]
jb 0x4c8977
xor edi, edi
cmp ecx, 8
jbe 0x4c89d2
sub ecx, dword [ebp + 0xc]
sub ecx, dword [ebp + 8]
shr ecx, 3
mov edi, ecx
je 0x4c89d2
mov eax, dword [ebp + 0x1c]
push edi
neg eax
sbb eax, eax
and eax, 0xff
push eax
mov eax, ebx
shr eax, 3
add eax, esi
push eax
call fcn.005771b0
add esp, 0xc
lea edx, [ebx + edi*8]
jmp 0x4c89fb
mov edi, dword [ebp - 4]
mov ecx, edx
mov eax, edx
not ecx
shr eax, 3
and ecx, 7
add eax, esi
cmp dword [ebp + 0x1c], 0
mov cl, byte [edi + ecx + 4]
je 0x4c89f6
or byte [eax], cl
jmp 0x4c89fa
not cl
and byte [eax], cl
inc edx
cmp edx, dword [ebp + 0x18]
jb 0x4c89d7
xor eax, eax
pop edi
pop esi
inc eax
pop ebx
leave
ret 0x18
Function at 0x4d590b
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, 0x120
cmp dword [esp + 0x10], esi
mov eax, dword [edi]
jae 0x4d592f
push eax
call fcn.004e4cf8
push 2
call fcn.004e4c88
pop ecx
mov dword [edi], eax
pop ecx
push esi
push 0
push eax
call fcn.005771b0
add esp, 0xc
pop edi
pop esi
ret

Function at 0x4e2511
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x4e253e
push esi
call fcn.004e04aa
cmp byte [esi + 0x40], 0
pop ecx
je 0x4e2537
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x4e25ad
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x4e25a2
mov eax, dword [esi + 8]
test eax, eax
je 0x4e255f
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x190]
push esi
call dword [eax]
test eax, eax
pop ecx
je 0x4e259e
cmp eax, 2
je 0x4e25a2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4e2554
cmp eax, 3
je 0x4e2583
cmp eax, 1
jne 0x4e2554
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x4e2554
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4e2554
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
jmp 0x4e25cb
cmp eax, 0xcc
je 0x4e25cb
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x15
mov eax, dword [esi]
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
call dword [eax]
pop ecx
push esi
call fcn.004e25d4
pop ecx
pop esi
ret

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

Disassembly:
cmp dword [esp + 8], 0
jne 0x4e8cbf
xor eax, eax
ret
jmp fcn.004e8cc4
Function at 0x4f286d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x24]
mov ebx, dword [esi + 0x34]
mov ecx, dword [esi + 0x24]
sub ebx, dword [esi + 0x6c]
mov eax, dword [esi + 0x64]
lea ecx, [edi + ecx - 0x106]
sub ebx, eax
cmp eax, ecx
jb 0x4f28f5
mov eax, dword [esi + 0x30]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.00576e70
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x3c]
sub dword [esi + 0x68], edi
sub dword [esi + 0x64], edi
add esp, 0xc
sub dword [esi + 0x54], edi
mov dword [ebp + 8], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp + 8]
mov word [eax], cx
jne 0x4f28b8
mov eax, dword [esi + 0x38]
mov dword [ebp + 8], edi
lea eax, [eax + edi*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp + 8]
mov word [eax], cx
jne 0x4f28da
add ebx, edi
mov eax, dword [esi]
cmp dword [eax + 4], 0
je 0x4f2950
mov ecx, dword [esi + 0x6c]
push ebx
add ecx, dword [esi + 0x64]
add ecx, dword [esi + 0x30]
push ecx
push eax
call fcn.004f2955
add dword [esi + 0x6c], eax
mov ebx, dword [esi + 0x6c]
add esp, 0xc
cmp ebx, 3
jb 0x4f293c
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x30]
lea edx, [eax + ecx]
mov ecx, dword [esi + 0x50]
movzx eax, byte [edx]
mov dword [esi + 0x40], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x4c]
mov dword [esi + 0x40], eax
cmp ebx, 0x106
jae 0x4f2950
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x4f2879
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x510290
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x5102b0
mov edx, dword [esp + 8]
push 1
mov dword [ecx + 0x44], edx
mov eax, dword [eax + 0x58]
add eax, 4
push eax
call fcn.00578148
mov ecx, dword [eax + 0x10]
push eax
call dword [ecx + 0x28]
add esp, 4
push 1
call fcn.00576b86
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x510580
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [ebx]
mov ebp, ebx
push edi
mov ecx, dword [esi + 0x1c]
sub ebp, ecx
cmp eax, 6
je 0x5105a6
push ebx
push esi
call fcn.00510890
add esp, 8
mov ebx, eax
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x24]
add eax, 0x18
cmp eax, ecx
jne 0x5105bc
push esi
call fcn.00510700
add esp, 4
mov eax, dword [ebx + 8]
mov cl, byte [eax + 6]
test cl, cl
jne 0x510678
mov edi, dword [eax + 0xc]
mov al, byte [edi + 0x46]
test al, al
je 0x5105e7
xor ecx, ecx
add ebx, 0x10
mov cl, byte [edi + 0x45]
push ebx
push ecx
push esi
call fcn.00510750
add esp, 0xc
mov edx, dword [esi + 0x18]
mov ecx, dword [esi + 8]
xor eax, eax
sub edx, ecx
mov al, byte [edi + 0x47]
mov ecx, eax
shl ecx, 4
cmp edx, ecx
jg 0x510607
push eax
push esi
call fcn.00510480
add esp, 8
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x1c]
add eax, 0x18
lea ecx, [edx + ebp + 0x10]
mov dword [esi + 0x14], eax
mov dword [eax], ecx
mov edx, dword [esi + 0x14]
mov ecx, dword [edx]
xor edx, edx
mov dword [esi + 0xc], ecx
mov dl, byte [edi + 0x47]
shl edx, 4
add edx, ecx
mov dword [eax + 4], edx
mov ecx, dword [edi + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [eax + 4]
mov dword [eax + 0x14], 0
mov dword [eax + 8], 8
mov edx, dword [esi + 8]
cmp edx, ecx
jae 0x51066b
mov edx, 0x10
mov ecx, dword [esi + 8]
mov dword [ecx], 0
mov ebx, dword [esi + 8]
add ebx, edx
mov dword [esi + 8], ebx
mov edi, dword [eax + 4]
mov ecx, ebx
cmp ecx, edi
jb 0x510651
mov edx, dword [eax + 4]
pop edi
mov dword [esi + 8], edx
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 8]
sub eax, edx
cmp eax, 0x140
jg 0x510692
push 0x14
push esi
call fcn.00510480
add esp, 8
mov edi, dword [esi + 0x14]
mov ecx, dword [esi + 0x1c]
add edi, 0x18
mov eax, edi
lea edx, [ecx + ebp + 0x10]
mov dword [esi + 0x14], edi
mov dword [eax], edx
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx]
mov ecx, dword [esi + 8]
add ecx, 0x140
mov dword [esi + 0xc], edx
mov dword [eax + 4], ecx
mov ecx, 1
mov dword [eax + 8], ecx
mov al, byte [esi + 0x30]
test cl, al
je 0x5106d6
push 0xffffffffffffffff
push 0
push esi
call fcn.005104b0
add esp, 0xc
mov edx, dword [esi + 0xc]
push esi
mov eax, dword [edx - 8]
call dword [eax + 0xc]
add esp, 4
shl eax, 4
mov ecx, eax
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret