joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48ee00
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x48ee34
lea ecx, [esp + 8]
lea edx, [esp + 4]
push ecx
mov ecx, dword [esp + 0xc]
push 0
push edx
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48ee34
mov eax, dword [esp + 4]
cmp eax, 4
je 0x48ee36
cmp eax, 1
je 0x48ee36
xor eax, eax
ret

Function at 0x48fd10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x503750
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], esi
call fcn.0048f890
mov ecx, esi
mov dword [esp + 0x6c], 0
call fcn.0048edb0
mov edi, dword [esi + 8]
add esi, 4
mov byte [esp + 0x60], al
push 0xffffffffffffffff
lea eax, [edi + 1]
mov ecx, esi
push eax
call fcn.00490380
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x18]
mov eax, edi
push edx
cdq
idiv ecx
mov ebp, dword [esi + 0x14]
mov ebx, eax
mov eax, edi
cdq
idiv ecx
lea eax, [edx + edx*8]
lea ecx, [edx + eax*2]
mov edx, dword [ebp + ebx*4]
lea ecx, [edx + ecx*4]
call fcn.004902b0
mov ecx, dword [esi + 0xc]
mov eax, edi
cdq
idiv ecx
mov esi, dword [esi + 0x14]
mov ebx, eax
mov eax, edi
cdq
idiv ecx
mov edi, dword [esp + 0x74]
push edi
lea eax, [edx + edx*8]
lea ecx, [edx + eax*2]
mov edx, dword [esi + ebx*4]
lea esi, [edx + ecx*4]
mov ecx, esi
call fcn.004dc058
push edi
lea ecx, [esp + 0x14]
call fcn.004dbf35
lea ecx, [esp + 0x10]
mov byte [esp + 0x6c], 1
call fcn.004dc446
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
add ecx, 0x34
call fcn.004d7575
lea ecx, [esp + 0x10]
mov dword [eax], esi
mov byte [esp + 0x6c], 0
call fcn.004dbec1
lea ecx, [esp + 0x44]
mov dword [esp + 0x6c], 4
call fcn.004d74a6
lea edx, [esp + 0x30]
mov dword [esp + 0x30], 0x517d80
mov dword [esp + 0x74], edx
mov eax, dword [esp + 0x34]
mov byte [esp + 0x6c], 5
test eax, eax
je 0x48fe24
push eax
call fcn.004dbc23
add esp, 4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 2
call fcn.004d6225
lea ecx, [esp + 0x18]
mov dword [esp + 0x6c], 0xffffffff
call fcn.004dbec1
mov ecx, dword [esp + 0x64]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret 4
Function at 0x48fe60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x503770
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebp
push esi
mov ebp, ecx
push edi
push SysReAllocStringLen
lea ecx, [esp + 0x10]
call fcn.00442180
mov dword [esp + 0x30], 0
call fcn.004f0976
mov ecx, dword [eax + 4]
call fcn.004f202a
mov edi, dword [esp + 0x38]
mov esi, eax
test esi, esi
je 0x48ff06
lea ecx, [esp + 0x14]
call fcn.004d61f2
lea eax, [esp + 0x14]
push esi
push eax
push 0
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 1
call fcn.004422e0
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
xor esi, esi
test eax, eax
jle 0x48fef8
mov ecx, dword [esp + 0x18]
push edi
mov edx, dword [ecx + esi*4]
push edx
call fcn.004bf957
add esp, 8
test eax, eax
je 0x48ff35
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, eax
jl 0x48feda
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 0
call fcn.004d6225
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x48ff56
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.0048e410
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 8
push edi
mov ecx, ebp
call fcn.0048fd10
mov esi, eax
mov ecx, esi
call fcn.0048f930
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 0
call fcn.004d6225
jmp 0x48ff60
push edi
mov ecx, ebp
call fcn.0048fd10
mov esi, eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.0048e410
mov ecx, dword [esp + 0x28]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x28
ret 8

Function at 0x492490
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x503b30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x574900]
push esi
push edi
mov esi, ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x20], edi
je 0x4924d3
push eax
lea ecx, [esp + 0x10]
call fcn.004dc058
jmp 0x4924dc
lea ecx, [esp + 0xc]
call fcn.004dbe49
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x4924f0
push eax
lea ecx, [esp + 0xc]
call fcn.004dc058
jmp 0x4924f9
lea ecx, [esp + 8]
call fcn.004dbe49
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x30]
lea edi, [esi + 0x7c]
push 0xffffffffffffffff
mov dword [esp + 0x14], eax
mov esi, dword [edi + 8]
lea ecx, [esi + 1]
push ecx
mov ecx, edi
call fcn.00493160
mov eax, dword [edi + 4]
lea edx, [esp + 8]
shl esi, 4
add esi, eax
push edx
mov ecx, esi
call fcn.004dc008
lea eax, [esp + 0xc]
lea ecx, [esi + 4]
push eax
call fcn.004dc008
mov ecx, dword [esp + 0x10]
mov dword [esi + 8], ecx
mov edx, dword [esp + 0x14]
mov dword [esi + 0xc], edx
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 1
call fcn.004dbec1
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call fcn.004dbec1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
Function at 0x492bf0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x503b93
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.004dede2
lea ebp, [esi + 0x10]
xor ecx, ecx
mov dword [esp + 0x34], ecx
mov dword [ebp + 4], ecx
mov dword [ebp], vtable.CBitmap.0
mov edi, dword [esp + 0x3c]
mov dword [esi], method.CDC.virtual_0
mov dword [esi + 0x1c], edi
mov dword [esi + 0x18], ecx
mov ebx, dword [edi + 0xc]
xor eax, eax
cmp ebx, ecx
mov byte [esp + 0x34], 1
sete al
cmp eax, ecx
mov dword [esi + 0x30], eax
je 0x492d03
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_WindowFromDC]
push eax
call fcn.004d849b
mov ecx, dword [eax + 0x1c]
lea ebx, [esi + 0x20]
push ebx
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
test edi, edi
jne 0x492c7a
xor eax, eax
jmp 0x492c7d
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.004dee99
mov eax, dword [ebx + 8]
mov edx, dword [ebx]
sub eax, edx
mov edx, dword [esp + 0x40]
push edx
push eax
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebp
call fcn.004df9fd
xor edi, edi
cmp ebp, edi
jne 0x492cb5
xor ebp, ebp
jmp 0x492cb8
mov ebp, dword [ebp + 4]
mov ecx, dword [esi + 4]
push ebp
push ecx
call fcn.004defda
push edi
lea edx, [esp + 0x18]
push edi
push edx
mov ecx, esi
mov dword [esi + 0x18], eax
call fcn.004df315
mov eax, dword [ebx + 8]
mov edx, dword [ebx]
mov ecx, dword [esp + 0x40]
sub eax, edx
lea edx, [esp + 0x1c]
mov dword [esp + 0x28], ecx
push 0xffffff
push edx
mov ecx, esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], eax
call fcn.004ed550
xor ecx, ecx
jmp 0x492d15
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 4]
mov dword [esi + 4], edx
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov edx, dword [esi + 0x2c]
mov ebx, dword [esi + 0x24]
mov eax, dword [0x57bd00]
mov edi, dword [0x57bcfc]
sub edx, ebx
cmp eax, edx
jl 0x492d43
cmp edi, ecx
jne 0x492d43
mov ebx, dword [0x57bcf0]
xor edx, edx
cmp ebx, ecx
sete dl
mov dword [0x57bcf0], edx
cmp eax, dword [esp + 0x40]
jl 0x492d53
mov dword [0x57bd04], 1
cmp edi, eax
jl 0x492d7b
mov edx, dword [0x57bcf0]
xor eax, eax
cmp edx, ecx
mov dword [0x57bcfc], ecx
sete al
mov dword [0x57bcf0], eax
mov dword [0x57bd00], ecx
mov dword [0x57bd04], ecx
mov ecx, dword [esp + 0x2c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 8

Function at 0x493330
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
push edi
push 0
mov esi, ecx
push 0
call ebx
mov edi, eax
lea eax, [edi + edi]
push eax
call fcn.004dbbfa
add esp, 4
mov dword [esi], eax
push eax
push edi
call ebx
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x4935cb
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x503c56
push eax
mov dword fs:[0], esp
sub esp, 0x444
push esi
mov esi, ecx
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x4935f8
mov ecx, esi
call fcn.004d3ef4
pop esi
mov ecx, dword [esp + 0x444]
mov dword fs:[0], ecx
add esp, 0x450
ret
mov eax, dword [esi + 0x88]
push 0
push 0
push eax
lea ecx, [esp + 0x14]
call fcn.0048dae0
mov eax, dword [esi + 0x340]
lea ecx, [esp + 8]
push eax
mov dword [esp + 0x454], 0
call fcn.0048dcb0
lea ecx, [esp + 8]
call fcn.0048dcf0
cmp eax, 1
jne 0x493697
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 0xc]
call fcn.0048dd70
push eax
lea ecx, [esi + 0x33c]
mov byte [esp + 0x454], 1
call fcn.004dc008
lea ecx, [esp + 4]
mov byte [esp + 0x450], 0
call fcn.004dbec1
lea ecx, [esp + 8]
mov dword [esp + 0x450], 0xffffffff
call fcn.0048dc50
mov eax, 1
pop esi
mov ecx, dword [esp + 0x444]
mov dword fs:[0], ecx
add esp, 0x450
ret
lea ecx, [esp + 8]
mov dword [esp + 0x450], 0xffffffff
call fcn.0048dc50
mov ecx, dword [esp + 0x448]
mov eax, 2
pop esi
mov dword fs:[0], ecx
add esp, 0x450
ret

Function at 0x4952d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x503d9e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 8], esi
mov dword [esi + 4], edi
mov dword [esi], 0x50db74
mov dword [esp + 0x18], edi
mov dword [esi + 0x14], 0x518720
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], 0x11
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], 0xa
push 8
mov byte [esp + 0x1c], 1
call fcn.004dbbfa
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, edi
mov byte [esp + 0x18], 2
je 0x495345
mov ecx, eax
call fcn.00493a20
jmp 0x495347
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x10], eax
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x30], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x496630
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x503f09
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
xor eax, eax
mov edx, 0x11
mov ecx, 0xa
mov dword [esp + 0x10], eax
mov dword [esi + 4], 0x518754
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], 0x518748
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], edx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], 0x518748
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edx
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], ecx
mov dword [esi + 0x58], eax
mov byte [esi + 0x5c], al
mov eax, dword [esp + 0x18]
mov ecx, esi
push eax
mov byte [esp + 0x14], 3
mov dword [esi], method.CCommandLineInfo.virtual_0
call fcn.00497150
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x4994d0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
push 0x50427f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, dword [esp + 0x20]
push 0
push edi
mov dword [esp + 0x10], 0
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov esi, eax
lea eax, [edi - 0x21]
shl esi, 0x10
cmp eax, 0xd
ja case.0x499512.34
xor ecx, ecx
mov cl, byte [eax + 0x499598]
jmp dword [ecx*4 + 0x499590]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x499527
or esi, 0x1000000
mov edx, dword [0x574900]
mov dword [esp + 0x20], edx
mov edi, 1
push 0x63
push 0x64
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], edi
call fcn.004dc306
push eax
push esi
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
call fcn.004dc356
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.004dbc2e
mov dword [esp + 8], edi
lea ecx, [esp + 0x20]
mov byte [esp + 0x14], 0
call fcn.004dbec1
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4998d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x50430e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov eax, dword [0x574900]
lea ecx, [esi + 8]
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [ecx], eax
mov dword [esi + 0xc], 0x518a98
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], 0xa
mov eax, dword [esp + 0x30]
mov dx, word [esp + 0x28]
push eax
mov byte [esp + 0x20], 2
mov dword [esi], method.CCommandLineInfo.virtual_0
mov word [esi + 4], dx
call fcn.004dc058
push 0xc
call fcn.004dbbfa
add esp, 4
cmp eax, edi
je 0x499963
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push ecx
mov ecx, eax
call fcn.00499460
mov ebp, eax
jmp 0x499965
xor ebp, ebp
mov eax, dword [esi + 0x1c]
mov ebx, dword [esi + 0x14]
cmp eax, edi
jne 0x49999f
mov edx, dword [esi + 0x24]
push 0xc
lea eax, [esi + 0x20]
push edx
push eax
call fcn.004d65ec
mov ecx, dword [esi + 0x24]
add eax, 4
lea edx, [ecx + ecx*2]
dec ecx
cmp ecx, edi
lea eax, [eax + edx*4 - 0xc]
jl 0x49999f
inc ecx
mov edx, dword [esi + 0x1c]
mov dword [eax], edx
mov dword [esi + 0x1c], eax
sub eax, 0xc
dec ecx
jne 0x499991
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax]
mov dword [esi + 0x1c], ecx
mov dword [eax + 4], ebx
mov dword [eax], edi
mov ebx, dword [esi + 0x18]
inc ebx
mov dword [esi + 0x18], ebx
mov dword [eax + 8], edi
mov dword [eax + 8], ebp
mov ecx, dword [esi + 0x14]
cmp ecx, edi
je 0x4999c4
mov dword [ecx], eax
jmp 0x4999c7
mov dword [esi + 0x10], eax
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x14], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14

Function at 0x49a488
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x49a4e0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x5798f0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x49a4d3
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x49a4e2
xor eax, eax
pop esi
leave
ret 4
Function at 0x49a6f4
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
pushal
xor eax, eax
lea edi, [esp + 0x20]
mov ecx, ebp
sub ecx, edi
shr ecx, 2
rep stosd dword es:[edi], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edx, eax
mov ebx, eax
shr eax, 6
shl eax, 6
add esi, eax
mov eax, edx
and eax, 0x3f
mov edx, eax
mov ecx, eax
shr ecx, 2
and eax, 3
lea edi, [ebp - 0x94]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
rep movsb byte es:[edi], byte [esi]
or byte [edi], 0x80
sub edx, 0x38
sbb edx, edx
add edx, 2
mov eax, edx
shl eax, 6
lea eax, [eax - 8]
lea edi, [ebp - 0x94]
add edi, eax
mov eax, ebx
shl eax, 3
mov dword [edi], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], 0x67452301
mov dword [ebp - 0xc], 0xefcdab89
mov dword [ebp - 8], 0x98badcfe
mov dword [ebp - 4], 0x10325476
shr eax, 9
je 0x49a78d
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.0049a7b4
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.0049a7b4
lea esi, [ebp - 0x10]
mov edi, dword [ebp + 0x10]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
popal
leave
ret 0xc
Function at 0x4a05a8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push edi
push esi
push ecx
push ebx
xor eax, eax
lea edi, [esp + 0x10]
mov ecx, ebp
sub ecx, edi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ebx, dword [ebp + 0x18]
lea esi, [ebx + 0xcc]
mov ecx, dword [ebx + 0x11c]
push ecx
lea edi, [ebp - 0x110]
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 8]
mov dword [edi], eax
pop eax
add eax, 5
lea edi, [ebp - 0x110]
push eax
push edi
push eax
push edi
call fcn.0049a6f4
pop edx
cmp edx, 0x10
jbe 0x4a05ff
mov edx, 0x10
lea eax, [ebp - 0x100]
push eax
push edx
push edi
call fcn.004a3a1c
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
lea ebx, [ebp - 0x100]
jmp 0x4a0671
push esi
inc dword [ebp - 0x114]
and dword [ebp - 0x114], 0xff
mov esi, dword [ebp - 0x114]
movzx eax, byte [esi + ebx]
add eax, dword [ebp - 0x118]
and eax, 0xff
mov dword [ebp - 0x118], eax
movzx ecx, byte [esi + ebx]
movzx edx, byte [eax + ebx]
mov byte [eax + ebx], cl
mov byte [esi + ebx], dl
add edx, ecx
and edx, 0xff
movzx edx, byte [edx + ebx]
pop esi
movzx eax, byte [esi]
xor eax, edx
mov byte [edi], al
inc edi
inc esi
dec dword [ebp + 0x10]
cmp dword [ebp + 0x10], 0
jne 0x4a061e
pop ebx
pop ecx
pop esi
pop edi
leave
ret 0x14

Function at 0x4a3a1c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov edx, dword [ebp + 0x10]
mov ecx, 0x40
mov eax, 0x3020100
mov dword [edx], eax
add eax, 0x4040404
add edx, 4
dec ecx
jne 0x4a3a2f
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
xor ecx, ecx
xor ebx, ebx
xor edx, edx
jmp 0x4a3a75
movzx eax, byte [ecx + esi]
add al, byte [edx + edi]
add ebx, eax
and ebx, 0xff
movzx eax, byte [edx + edi]
xor byte [ebx + edi], al
xor al, byte [ebx + edi]
xor byte [ebx + edi], al
mov byte [edx + edi], al
inc ecx
sub ecx, dword [ebp + 0xc]
add ecx, dword [ebp + 0xc]
sbb eax, eax
and ecx, eax
inc edx
cmp edx, 0x100
jb 0x4a3a4a
pop ebx
pop esi
pop edi
leave
ret 0xc
Function at 0x4a78dc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push edi
push esi
mov edi, dword [ebp + 0x14]
xor eax, eax
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp + 8]
movzx eax, word [ebx]
mov dword [ebp - 4], eax
add ebx, 2
mov eax, dword [edi + 4]
mov dword [ebp - 8], eax
mov esi, dword [ebp + 0xc]
movzx ecx, byte [ebx + 0x1a]
and ecx, 1
xor ecx, 1
shl ecx, 3
inc ecx
mov edi, dword [ebp + 0x14]
push edi
push dword [edi + 0xb4]
push dword [edi + 0xbc]
push 0x1c
push esi
push dword [edi + 0xdc]
call fcn.004a96d4
mov edi, eax
mov eax, dword [ebp - 0xc]
shl eax, 2
add eax, dword [ebp + 0x10]
mov dword [eax], edi
inc dword [ebp - 0xc]
movzx edx, word [edi + 0x18]
add dl, dh
movzx edx, dl
adc dh, dh
add edx, 2
add esi, 0x1c
mov edi, dword [ebp + 0x14]
push edi
push dword [edi + 0xb4]
push dword [edi + 0xbc]
push edx
push esi
push dword [edi + 0xdc]
call fcn.004a96d4
mov edi, eax
add edi, edx
add esi, edx
movzx edx, word [edi - 2]
shl edx, 1
mov edi, dword [ebp + 0x14]
push edi
push dword [edi + 0xb4]
push dword [edi + 0xbc]
push edx
push esi
push dword [edi + 0xdc]
call fcn.004a96d4
add esi, edx
dec ecx
jne 0x4a790f
add ebx, 0x1c
dec dword [ebp - 4]
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4a7901
mov eax, dword [ebp - 8]
pop esi
pop edi
leave
ret 0x10
Function at 0x4aa130
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
xor ebx, ebx
xor edi, edi
xor esi, esi
push eax
push eax
push 3
push eax
push 3
push SysReAllocStringLen
push dword [ebp + 8]
cmp dword [ebp + 0x10], 0
je 0x4aa157
call sub.KERNEL32.dll_CreateFileW
jmp 0x4aa15c
call sub.KERNEL32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x4aa194
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov edi, eax
push 0
push eax
call sub.KERNEL32.dll_GetFileSize
mov ebx, eax
xor eax, eax
push eax
push eax
push eax
push 2
push eax
push edi
call sub.KERNEL32.dll_CreateFileMappingA
test eax, eax
je 0x4aa194
mov esi, eax
push 0
push 0
push 0
push 4
push eax
call sub.KERNEL32.dll_MapViewOfFile
leave
ret 0xc
Function at 0x4ac8b0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
push eax
mov ecx, dword [esi + 0x198]
push ecx
mov ecx, esi
call fcn.004aca20
mov edx, dword [esi + 0x19c]
mov dword [esi + 0x198], eax
and eax, 0xff
mov ecx, esi
add eax, edx
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x19c], eax
shr eax, 0x18
mov byte [esp + 8], al
mov eax, dword [esi + 0x1a0]
mov edx, dword [esp + 8]
push edx
push eax
call fcn.004aca20
mov dword [esi + 0x1a0], eax
pop esi
ret 4

Function at 0x4ad060
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x504855
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x38]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0xc], ebx
call fcn.004dbf35
mov eax, dword [esp + 0x48]
mov dword [esp + 0x30], 1
test eax, eax
jne 0x4ad0a4
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x10]
call fcn.004dbf35
mov ecx, dword [esp + 0xc]
mov byte [esp + 0x30], 2
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4ad0db
mov esi, dword [esp + 0x38]
lea edx, [esp + 0x40]
push edx
mov ecx, esi
call fcn.004dbc2e
mov dword [esp + 8], 1
jmp 0x4ad20a
mov eax, dword [esp + 0x40]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4ad105
push 0x5730e8
lea ecx, [esp + 0x44]
call fcn.004d3b53
mov cx, word [0x518e40]
push ecx
lea ecx, [esp + 0x44]
call fcn.004dc2d9
push 0x5730e8
lea ecx, [esp + 0x10]
call fcn.004d3b53
mov eax, dword [0x574900]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x34], 7
mov dword [esp + 0x14], 0x518dfc
call fcn.004b3a30
mov al, byte [esp + 0x44]
mov byte [esp + 0x30], 8
test al, al
je 0x4ad17f
mov al, byte [esi + 4]
test al, al
je 0x4ad179
lea eax, [esp + 0x48]
lea ecx, [esp + 0x10]
push eax
call fcn.004b3c30
mov ebx, 2
mov dword [esp + 8], ebx
mov byte [esp + 0x30], 9
jmp 0x4ad1a1
lea eax, [esp + 0xc]
jmp 0x4ad1a1
lea ecx, [esp + 0x10]
lea edx, [esp + 0x44]
push ecx
push edx
mov ecx, esi
call fcn.004accb0
mov ebx, 4
mov dword [esp + 8], ebx
mov dword [esp + 0x30], 0xa
push eax
lea ecx, [esp + 0x44]
call fcn.004dc2ee
test bl, 4
mov dword [esp + 0x30], 9
je 0x4ad1c8
and ebx, 0xfffffffb
lea ecx, [esp + 0x44]
mov dword [esp + 8], ebx
call fcn.004dbec1
test bl, 2
mov dword [esp + 0x30], 8
je 0x4ad1e5
and ebx, 0xfffffffd
lea ecx, [esp + 0x48]
mov dword [esp + 8], ebx
call fcn.004dbec1
mov esi, dword [esp + 0x38]
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call fcn.004dbc2e
or ebx, 1
lea ecx, [esp + 0x10]
mov dword [esp + 8], ebx
mov byte [esp + 0x30], 2
call fcn.004b39b0
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 1
call fcn.004dbec1
lea ecx, [esp + 0x40]
mov byte [esp + 0x30], 0
call fcn.004dbec1
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x14