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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x435022
cmp dword [edi + 0x54], 0
jne 0x435022
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00443fe1
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00434fbf
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4358c9
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x46a928
call fcn.004567f7
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4358ee
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x435934
lea ecx, [ebp - 0x10]
call fcn.004014f0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043509e
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401170
mov eax, esi
call fcn.004568cf
ret 8

Function at 0x43b306
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x43b34d
call fcn.00443fe1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x43b34d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x43b369
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0043ae80
mov esi, eax
test edi, edi
je 0x43b367
test ebx, ebx
je 0x43b367
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x442cc1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x442d09
call fcn.00443fe1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x442d09
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x442d4c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x442d35
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x442d35
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x442d49
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x454546
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48ef30]
jne 0x454550
repz ret
jmp fcn.0045dd0c
Function at 0x46507f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0045d655
and dword [ebp - 4], 0
cmp dword [0x494188], 0
mov ebx, eax
jne 0x465130
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4651e1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x477024
push edi
call esi
test eax, eax
je 0x4651e1
push eax
call fcn.0045d5e3
mov dword [esp], 0x477014
push edi
mov dword [0x494188], eax
call esi
push eax
call fcn.0045d5e3
mov dword [esp], 0x477000
push edi
mov dword [0x49418c], eax
call esi
push eax
call fcn.0045d5e3
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x494190], eax
call esi
push eax
call fcn.0045d5e3
pop ecx
mov dword [0x494198], eax
test eax, eax
je 0x465130
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0045d5e3
pop ecx
mov dword [0x494194], eax
mov eax, dword [0x494194]
cmp eax, ebx
je 0x465188
cmp dword [0x494198], ebx
je 0x465188
push eax
call fcn.0045d65e
push dword [0x494198]
mov esi, eax
call fcn.0045d65e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x465188
test edi, edi
je 0x465188
call esi
test eax, eax
je 0x46517f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x46517f
test byte [ebp - 0xc], 1
jne 0x465188
or dword [ebp + 0x10], 0x200000
jmp 0x4651c1
mov eax, dword [0x49418c]
cmp eax, ebx
je 0x4651c1
push eax
call fcn.0045d65e
pop ecx
test eax, eax
je 0x4651c1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4651c1
mov eax, dword [0x494190]
cmp eax, ebx
je 0x4651c1
push eax
call fcn.0045d65e
pop ecx
test eax, eax
je 0x4651c1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x494188]
call fcn.0045d65e
pop ecx
test eax, eax
je 0x4651e1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4651e3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000127d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 8]
push ebx
push eax
xor ebx, ebx
push 0x20019
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x100012a2
xor eax, eax
jmp 0x100012ff
push esi
lea eax, [ebp + 0xc]
push edi
push eax
lea eax, [ebp - 4]
push ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
or edi, 0xffffffff
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x100012ed
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x18]
jge 0x100012ed
lea eax, [ebp + 0xc]
inc dword [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push dword [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
mov edi, eax
cmp edi, ebx
je 0x100012ed
mov eax, dword [ebp + 0x14]
mov byte [eax], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, ebx
pop edi
pop esi
sete al
pop ebx
leave
ret
Function at 0x406ced
Capabilities:
Parse pe header

Disassembly:
push 0x74
push 0x40af98
call fcn.00406fd4
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x406d2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406d2d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x406d45
cmp eax, 0x20b
je 0x406d32
mov dword [ebp - 0x1c], ebx
jmp 0x406d59
cmp dword [ecx + 0x84], 0xe
jbe 0x406d2d
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x406d53
cmp dword [ecx + 0x74], 0xe
jbe 0x406d2d
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x40ea78], 0xffffffff
or dword [0x40ea7c], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x40d464]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x40d460]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40ea74], eax
call fcn.00532000
call fcn.00406fd0
cmp dword [0x40d320], ebx
jne 0x406db9
push fcn.00406fd0
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00406fbe
push 0x40c00c
push 0x40c008
call sub.MSVCR71.dll__initterm
push 0x406f74
call fcn.00406f1e
mov eax, dword [0x40d45c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x40d458]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x406e0d
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x40c004
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x406e8b
cmp al, bl
je 0x406e37
cmp dword [ebp - 0x20], ebx
jne 0x406e8b
mov al, byte [esi]
cmp al, bl
je 0x406e47
cmp al, 0x20
ja 0x406e47
inc esi
mov dword [ebp - 0x24], esi
jmp 0x406e37
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x406e63
movzx eax, word [ebp - 0x54]
jmp 0x406e66
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.00404254
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x406e83
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x406ee0
cmp al, 0x22
jne 0x406e9a
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x406ead
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x406e25
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040700f
ret
Function at 0x41764c
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [ecx + 0x9c8], 0x270
jl 0x41770a
xor edx, edx
push esi
mov eax, dword [ecx + edx*4 + 0xc]
xor eax, dword [ecx + edx*4 + 8]
inc edx
and eax, 0x7fffffff
xor eax, dword [ecx + edx*4 + 4]
mov esi, eax
shr eax, 1
and esi, 1
xor eax, dword [esi*4 + 0x1e265820]
xor eax, dword [ecx + edx*4 + 0x638]
cmp edx, 0xe3
mov dword [ecx + edx*4 + 4], eax
jl 0x41765f
cmp edx, 0x26f
jge 0x4176cf
mov edi, edi
mov eax, dword [ecx + edx*4 + 0xc]
xor eax, dword [ecx + edx*4 + 8]
inc edx
and eax, 0x7fffffff
xor eax, dword [ecx + edx*4 + 4]
mov esi, eax
shr eax, 1
and esi, 1
xor eax, dword [esi*4 + 0x1e265820]
xor eax, dword [ecx + edx*4 - 0x388]
cmp edx, 0x26f
mov dword [ecx + edx*4 + 4], eax
jl 0x41769c
mov eax, dword [ecx + 0x9c4]
xor eax, dword [ecx + 8]
pop esi
and eax, 0x7fffffff
xor eax, dword [ecx + 0x9c4]
mov edx, eax
and edx, 1
mov edx, dword [edx*4 + 0x1e265820]
xor edx, dword [ecx + 0x638]
shr eax, 1
xor edx, eax
mov dword [ecx + 0x9c4], edx
mov dword [ecx + 0x9c8], 0
mov eax, dword [ecx + 0x9c8]
mov edx, dword [ecx + eax*4 + 8]
inc eax
mov dword [ecx + 0x9c8], eax
mov eax, edx
shr eax, 0xb
xor edx, eax
mov ecx, edx
and ecx, 0xff3a58ad
shl ecx, 7
xor edx, ecx
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
ret

Function at 0x4177dc
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
lea ecx, [esi + 8]
mov dword [ecx], eax
mov eax, 1
push edi
jmp 0x4177ec
mov edx, dword [ecx]
mov edi, edx
shr edi, 0x1e
xor edi, edx
imul edi, edi, 0x6c078965
add edi, eax
mov dword [ecx + 4], edi
inc eax
add ecx, 4
cmp eax, 0x270
jl 0x4177ec
mov dword [esi + 0x9c8], eax
pop edi
ret

Function at 0x44be8c
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [0x1e259830]
push eax
call fcn.004cc01c
add esp, 4
test eax, eax
jne 0x44bea5
call fcn.0052391c
jmp 0x44beb2
mov dword [eax + 4], 0x1e259820
mov dword [eax], 1
test eax, eax
jne 0x44beb7
ret
mov dword [eax + 0xc], 0
mov dword [eax + 8], 0
mov dword [eax + 0x10], 0x67452301
mov dword [eax + 0x14], 0xefcdab89
mov dword [eax + 0x18], 0x98badcfe
mov dword [eax + 0x1c], 0x10325476
ret

Function at 0x44f4ac
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov dword [ebp - 8], eax
push edi
mov edi, ecx
mov ecx, dword [ebp - 8]
xor eax, eax
cmp edx, ecx
jne 0x44f4c9
mov eax, dword [ebp + 8]
xor cl, cl
jmp 0x44f4cc
mov cl, byte [ebp - 1]
mov esi, dword [ebp - 8]
cmp edx, esi
je 0x44f4d7
mov eax, edi
mov cl, 1
mov edx, dword [ebp - 8]
xor esi, esi
test edx, edx
jle 0x44f4f4
push ebx
mov dl, byte [edi]
mov bl, byte [eax]
xor dl, bl
or cl, dl
mov edx, dword [ebp - 8]
inc esi
inc edi
inc eax
cmp esi, edx
jl 0x44f4e1
pop ebx
xor eax, eax
test cl, cl
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x45dd0c
Capabilities:
Hash data using sha256

Disassembly:
xor ecx, ecx
mov dword [eax + 0x70], 1
mov dword [eax + 8], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0x3c6ef372
mov dword [eax + 0x14], 0xa54ff53a
mov dword [eax + 0x18], 0x510e527f
mov dword [eax + 0x1c], 0x9b05688c
mov dword [eax + 0x20], 0x1f83d9ab
mov dword [eax + 0x24], 0x5be0cd19
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x74], ecx
mov dword [eax + 0x78], 0x20
ret

Function at 0x45dd6c
Capabilities:
Hash data using sha224

Disassembly:
xor ecx, ecx
mov dword [eax + 0x70], 1
mov dword [eax + 8], 0xc1059ed8
mov dword [eax + 0xc], 0x367cd507
mov dword [eax + 0x10], 0x3070dd17
mov dword [eax + 0x14], 0xf70e5939
mov dword [eax + 0x18], 0xffc00b31
mov dword [eax + 0x1c], 0x68581511
mov dword [eax + 0x20], 0x64f98fa7
mov dword [eax + 0x24], 0xbefa4fa4
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x74], ecx
mov dword [eax + 0x78], 0x1c
ret
Function at 0x46439c
Capabilities:
Hash data using sha256

Disassembly:
xor ecx, ecx
mov dword [eax + 0xd0], 1
mov dword [eax + 8], 0xf3bcc908
mov dword [eax + 0xc], 0x6a09e667
mov dword [eax + 0x10], 0x84caa73b
mov dword [eax + 0x14], 0xbb67ae85
mov dword [eax + 0x18], 0xfe94f82b
mov dword [eax + 0x1c], 0x3c6ef372
mov dword [eax + 0x20], 0x5f1d36f1
mov dword [eax + 0x24], 0xa54ff53a
mov dword [eax + 0x28], 0xade682d1
mov dword [eax + 0x2c], 0x510e527f
mov dword [eax + 0x30], 0x2b3e6c1f
mov dword [eax + 0x34], 0x9b05688c
mov dword [eax + 0x38], 0xfb41bd6b
mov dword [eax + 0x3c], 0x1f83d9ab
mov dword [eax + 0x40], 0x137e2179
mov dword [eax + 0x44], 0x5be0cd19
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd4], ecx
mov dword [eax + 0xd8], 0x40
ret

Function at 0x46443c
Capabilities:
Hash data using sha224

Disassembly:
xor ecx, ecx
mov dword [eax + 0xd0], 1
mov dword [eax + 8], 0xc1059ed8
mov dword [eax + 0xc], 0xcbbb9d5d
mov dword [eax + 0x10], 0x367cd507
mov dword [eax + 0x14], 0x629a292a
mov dword [eax + 0x18], 0x3070dd17
mov dword [eax + 0x1c], 0x9159015a
mov dword [eax + 0x20], 0xf70e5939
mov dword [eax + 0x24], 0x152fecd8
mov dword [eax + 0x28], 0xffc00b31
mov dword [eax + 0x2c], 0x67332667
mov dword [eax + 0x30], 0x68581511
mov dword [eax + 0x34], 0x8eb44a87
mov dword [eax + 0x38], 0x64f98fa7
mov dword [eax + 0x3c], 0xdb0c2e0d
mov dword [eax + 0x40], 0xbefa4fa4
mov dword [eax + 0x44], 0x47b5481d
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd4], ecx
mov dword [eax + 0xd8], 0x30
ret
Function at 0x46fa0c
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
cmp dword [ebp + 0x10], 0
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, eax
jg 0x46fa30
jl 0x46fb0f
test edi, edi
jbe 0x46fb0f
mov ecx, 1
mov dword [ebp - 0x80], 0xedb88320
mov eax, ecx
mov dword [ebp + eax*4 - 0x80], ecx
inc eax
add ecx, ecx
cmp eax, 0x20
jl 0x46fa3e
push ebx
lea ebx, [ebp - 0x80]
lea eax, [ebp - 0x100]
call fcn.0046f9cc
lea ebx, [ebp - 0x100]
lea eax, [ebp - 0x80]
call fcn.0046f9cc
jmp 0x46fa6c
lea ebx, [ebp - 0x80]
lea eax, [ebp - 0x100]
call fcn.0046f9cc
mov eax, edi
and eax, 1
xor ecx, ecx
or eax, ecx
je 0x46faa4
xor edx, edx
mov eax, esi
lea ecx, [ebp - 0x100]
test esi, esi
je 0x46faa2
test al, 1
je 0x46fa99
xor edx, dword [ecx]
shr eax, 1
add ecx, 4
test eax, eax
jne 0x46fa93
mov esi, edx
mov edx, dword [ebp + 0x10]
mov eax, edi
mov cl, 1
call fcn.0054c22c
mov edi, eax
or eax, edx
mov dword [ebp + 0x10], edx
je 0x46fb09
lea ebx, [ebp - 0x100]
lea eax, [ebp - 0x80]
call fcn.0046f9cc
mov eax, edi
and eax, 1
xor ecx, ecx
or eax, ecx
je 0x46faee
xor edx, edx
mov eax, esi
lea ecx, [ebp - 0x80]
test esi, esi
je 0x46faec
test al, 1
je 0x46fae3
xor edx, dword [ecx]
shr eax, 1
add ecx, 4
test eax, eax
jne 0x46fadd
mov esi, edx
mov edx, dword [ebp + 0x10]
mov eax, edi
mov cl, 1
call fcn.0054c22c
mov edi, eax
mov ecx, edi
or ecx, edx
mov dword [ebp + 0x10], edx
jne 0x46fa6c
mov eax, esi
xor eax, dword [ebp + 8]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4c19bc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], 0
test edx, edx
jne 0x4c19dd
push edx
call fcn.004c118c
add esp, 4
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x10], 0
push edi
je 0x4c19f4
mov eax, dword [ebp + 8]
lea edi, [eax + edx - 1]
mov dword [ebp - 8], 1
jmp 0x4c1a02
mov edi, dword [ebp + 8]
lea eax, [edi + edx - 1]
mov dword [ebp - 8], 0xffffffff
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
test ebx, ebx
je 0x4c1a18
cmp byte [edi], 0x80
sbb eax, eax
inc eax
mov dword [ebp + 0x14], eax
mov ebx, eax
mov ecx, dword [ebp - 8]
neg ecx
mov eax, ebx
neg eax
sbb al, al
push esi
xor esi, esi
test edx, edx
jbe 0x4c1a37
mov edi, edi
cmp byte [edi], al
jne 0x4c1a37
inc esi
add edi, ecx
cmp esi, edx
jb 0x4c1a2c
mov edi, edx
sub edi, esi
test ebx, ebx
je 0x4c1a44
cmp edi, edx
jae 0x4c1a44
inc edi
cmp edi, 0xffffffe
jbe 0x4c1a69
mov ecx, dword [0x1e23f414]
push 0x1e1ffd58
push ecx
call fcn.0052338c
add esp, 8
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
lea edx, [edi*8 + 0xe]
mov eax, 0x88888889
mul edx
shr edx, 3
push edx
call fcn.004c10cc
add esp, 4
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4c1a60
mov ebx, dword [ebp - 0xc]
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x10], 1
test edi, edi
jbe 0x4c1b00
add eax, 0xc
mov dword [ebp - 0xc], edi
cmp dword [ebp + 0x14], 0
movzx edx, byte [ebx]
je 0x4c1ac2
xor edx, 0xff
add edx, dword [ebp - 0x10]
mov edi, edx
shr edi, 8
mov dword [ebp - 0x10], edi
and edx, 0xff
shl edx, cl
add ecx, 8
or esi, edx
cmp ecx, 0xf
jb 0x4c1ae5
inc dword [ebp - 4]
mov edx, esi
and edx, 0x7fff
mov word [eax], dx
add eax, 2
shr esi, 0xf
sub ecx, 0xf
add ebx, dword [ebp - 8]
sub dword [ebp - 0xc], 1
jne 0x4c1aa2
mov eax, dword [ebp + 0xc]
test ecx, ecx
mov ecx, dword [ebp - 4]
je 0x4c1b03
mov word [eax + ecx*2 + 0xc], si
inc ecx
jmp 0x4c1b03
mov ecx, dword [ebp - 4]
cmp dword [ebp + 0x14], 0
je 0x4c1b0b
neg ecx
mov esi, ecx
mov dword [eax + 8], esi
mov edx, esi
test esi, esi
jge 0x4c1b18
neg edx
mov edi, dword [ebp + 0xc]
mov ecx, edx
test edx, edx
jle 0x4c1b47
lea eax, [edi + edx*2 + 0xa]
lea esp, [esp]
cmp word [eax], 0
jne 0x4c1b3a
dec ecx
sub eax, 2
test ecx, ecx
jg 0x4c1b2c
cmp ecx, edx
je 0x4c1b47
test esi, esi
jge 0x4c1b44
neg ecx
mov dword [edi + 8], ecx
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4c633c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 4], 1
test esi, esi
jle 0x4c6386
mov cx, word [ebp - 4]
sub edx, eax
push edi
lea esp, [esp]
mov edi, 0x7fff
xor di, word [edx + eax]
add eax, 2
add cx, di
mov word [ebp - 4], cx
mov edi, dword [ebp - 4]
and edi, 0x7fff
mov word [eax - 2], di
shr cx, 0xf
sub esi, 1
jne 0x4c635c
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5ef3a1
Capabilities:
Check for vm using instruction vpcext
Contain obfuscated stackstrings
Reference the vmware io port

Disassembly:
push dword [esp]
push dword [esp]
push dword [esp]
push dword [esp]
pop eax
add esp, 4
add esp, 4
add esp, 4
push ebp
mov ebp, esp
push edi
mov edi, 0x7fdf0f89
jmp 0x5ef3ef
neg ebp
neg ebp
sub ebp, 0x17126ec7
or ebx, ebp
pop ebp
xor ebx, 0x7ffb2fea
xor ebx, 0x24803c
jmp 0x5ef415
mov eax, ebx
pop ebx
xor edi, eax
pop eax
add ebp, edi
jmp 0x5ef494
push ebp
mov ebp, 0x7ebf5f46
and edi, ebp
mov ebp, dword [esp]
add esp, 4
dec edi
or edi, 0x70f73a4d
shl edi, 2
jmp 0x5ef44f
add ebp, 0x4e7ff400
add ebp, ebx
sub ebp, 0x4e7ff400
mov ebx, dword [esp]
jmp fcn.005ef47c
or edi, 0x65fd159c
push eax
push ebx
mov ebx, 0xfffdfff8
jmp 0x5ef3e2
pop edi
push esi
mov dword [esp], ebx
jmp 0x5ef49e
mov ebx, 0x67f50e8e
add ebx, 0x7d59d950
sub ebx, 0x77f1e8c9
sub ebx, 0x2cc34f43
push ebp
mov ebp, 0x56f19dc7
jmp 0x5ef3bc
Function at 0x403d39
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x403e85
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCacheEx]
push edi
mov edi, dword [esp + 0x10]
call ebx
sub byte [esi + edi], 0x55
call ebx
add byte [esi + edi], 0x1e
call ebx
xor byte [esi + edi], 0x93
call ebx
add byte [esi + edi], 8
call ebx
add byte [esi + edi], 0x92
call ebx
add byte [esi + edi], 0x11
call ebx
add byte [esi + edi], 0x1a
call ebx
xor byte [esi + edi], 0xde
call ebx
add byte [esi + edi], 0xc7
call ebx
add byte [esi + edi], 0xec
call ebx
xor byte [esi + edi], 0x8f
call ebx
add byte [esi + edi], 0x9a
call ebx
add byte [esi + edi], 0x79
call ebx
add byte [esi + edi], 0x73
call ebx
add byte [esi + edi], 0x92
call ebx
add byte [esi + edi], 0xba
call ebx
xor byte [esi + edi], 0xc4
call ebx
add byte [esi + edi], 0xa8
call ebx
add byte [esi + edi], 0xe1
call ebx
add byte [esi + edi], 0x83
call ebx
add byte [esi + edi], 0xb0
call ebx
add byte [esi + edi], 0xf4
call ebx
add byte [esi + edi], 0xc8
call ebx
add byte [esi + edi], 0xb0
call ebx
add byte [esi + edi], 0xe6
call ebx
xor byte [esi + edi], 0xcd
call ebx
add byte [esi + edi], 0x91
call ebx
add byte [esi + edi], 0x53
call ebx
add byte [esi + edi], 0x35
call ebx
add byte [esi + edi], 0x4b
call ebx
add byte [esi + edi], 0x54
call ebx
xor byte [esi + edi], 0x1f
call ebx
xor byte [esi + edi], 0x8a
call ebx
xor byte [esi + edi], 0xd6
call ebx
add byte [esi + edi], 0x81
call ebx
add byte [esi + edi], 0x6b
call ebx
xor byte [esi + edi], 0xc7
call ebx
add byte [esi + edi], 0x4d
call ebx
add byte [esi + edi], 0xc6
call ebx
xor byte [esi + edi], 0x88
call ebx
add byte [esi + edi], 0xa6
call ebx
xor byte [esi + edi], 0x97
call ebx
add byte [esi + edi], 0x17
call ebx
xor byte [esi + edi], 0x56
call ebx
add byte [esi + edi], 0xf3
call ebx
xor byte [esi + edi], 0x35
call ebx
add byte [esi + edi], 7
call ebx
add byte [esi + edi], 0xb4
call ebx
add byte [esi + edi], 0x5c
inc esi
cmp esi, dword [esp + 0x14]
jb 0x403d52
pop edi
pop ebx
pop esi
ret

Function at 0x403f0f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
mov eax, dword [0x42a8ec]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x403f78
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00401b44
lea eax, [esp + 0x14]
push 0x14d
push eax
call fcn.004040e6
pop ecx
pop ecx
cmp eax, dword [esp + 0x38]
je 0x403f90
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00403ab2
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x403f40
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405f4c
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00403ab2
jmp 0x403f7a