joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d52a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x54170b
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x596c60]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], 0x56b67c
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], ax
mov dword [esp + 0x18], eax
call fcn.00493c80
call fcn.00493f60
call fcn.004945a0
mov ecx, esi
call fcn.00493c10
mov dword [esi], 0x5766a8
xor eax, eax
mov dword [esi + 0x30], 7
mov dword [esi + 0x2c], 0
mov word [esi + 0x1c], ax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], 7
mov word [esi + 0x34], ax
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], 7
mov word [esi + 0x54], ax
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], 7
mov word [esi + 0x6c], ax
mov dword [esi + 0x94], eax
mov dword [esi + 0x98], 7
mov word [esi + 0x84], ax
mov dword [esi + 0xac], eax
mov dword [esi + 0xb0], 7
mov word [esi + 0x9c], ax
mov dword [esi + 0xc4], eax
mov dword [esi + 0xc8], 7
mov word [esi + 0xb4], ax
mov dword [esi + 0xd0], eax
mov dword [esi + 0xd4], eax
mov dword [esi + 0xd8], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0xcc], eax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x4dd590
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x547afb
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x596c60]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], 0x56b67c
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], ax
mov dword [esp + 0x14], eax
call fcn.00493c80
call fcn.00493f60
call fcn.004945a0
mov ecx, esi
call fcn.00493c10
mov dword [esi], 0x576928
mov eax, esi
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x4df7d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x54170b
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x596c60]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], 0x56b67c
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], ax
mov dword [esp + 0x18], eax
call fcn.00493c80
call fcn.00493f60
call fcn.004945a0
mov ecx, esi
call fcn.00493c10
mov dword [esi], 0x5769fc
xor eax, eax
mov dword [esi + 0x30], 7
mov dword [esi + 0x2c], 0
mov word [esi + 0x1c], ax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], 7
mov word [esi + 0x40], ax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x4e10a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x54170b
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x596c60]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], 0x56b67c
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], ax
mov dword [esp + 0x18], eax
call fcn.00493c80
call fcn.00493f60
call fcn.004945a0
mov ecx, esi
call fcn.00493c10
mov dword [esi], 0x576bec
xor eax, eax
mov dword [esi + 0x30], 7
mov dword [esi + 0x2c], 0
mov word [esi + 0x1c], ax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], 7
mov word [esi + 0x34], ax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], 7
mov word [esi + 0x4c], ax
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], eax
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], eax
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], eax
mov dword [esi + 0x98], eax
mov dword [esi + 0x9c], eax
mov dword [esi + 0xb0], eax
mov dword [esi + 0xb4], 7
mov word [esi + 0xa0], ax
mov dword [esi + 0xc8], eax
mov dword [esi + 0xcc], 7
mov word [esi + 0xb8], ax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x4e5c50
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [esp + 0x2c]
mov esi, ecx
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x24], eax
cmp eax, 0xffffffff
je 0x4e5cef
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4e5cef
cmp dword [esp + 0xc], 0
jne 0x4e5cef
push dword [esp + 8]
call fcn.0050828d
add esp, 4
mov dword [esi + 0x28], eax
test eax, eax
je 0x4e5cef
push 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
push ecx
push dword [esp + 0x10]
push eax
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4e5cef
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 8]
jne 0x4e5cef
mov dword [esi + 0x2c], eax
mov al, 1
pop esi
pop ebx
add esp, 8
ret 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x4e5cff
push eax
call fcn.00507b54
add esp, 4
push dword [esi + 0x24]
mov dword [esi + 0x28], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x24], 0xffffffff
mov al, bl
pop esi
pop ebx
add esp, 8
ret 4

Function at 0x4e5dd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54bfb8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x596c60]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
lea eax, [esi + 0xc]
mov dword [esi], 0x576cc0
mov dword [esi + 4], 1
push eax
mov dword [esi + 8], 0x576f98
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x20], 0
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x34]
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x3c], eax
mov dword [esi], 0x576ca8
mov byte [esi + 0x24], 1
mov dword [esi + 0x28], ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
xor ecx, ecx
test al, al
setne cl
mov byte [esi + 0x24], cl
test cl, cl
je 0x4e5e7c
mov ecx, dword [esi + 0x28]
lea edx, [esp + 0xc]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x4e5e7c
mov eax, 1
jmp 0x4e5e7e
xor eax, eax
mov edx, dword [esp + 0x10]
test al, al
mov byte [esi + 0x24], al
mov eax, dword [esp + 0xc]
je 0x4e5ea0
cmp dword [esi + 0x34], edx
ja 0x4e5ea0
jb 0x4e5e99
cmp dword [esi + 0x30], eax
ja 0x4e5ea0
mov ecx, 1
jmp 0x4e5ea2
xor ecx, ecx
mov byte [esi + 0x24], cl
test cl, cl
je 0x4e5ec2
sub eax, dword [esi + 0x30]
sbb edx, dword [esi + 0x34]
cmp dword [esi + 0x3c], edx
ja 0x4e5ec2
jb 0x4e5ebb
cmp dword [esi + 0x38], eax
ja 0x4e5ec2
mov eax, 1
jmp 0x4e5ec4
xor eax, eax
mov ecx, dword [esi + 0x28]
mov byte [esi + 0x24], al
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret 0x18
Function at 0x4e62c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54bfe8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x596c60]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
lea eax, [esi + 0xc]
mov dword [esi], 0x576cc0
mov dword [esi + 4], 1
push eax
mov dword [esi + 8], 0x576f98
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [esp + 0x1c]
lea ecx, [esi + 0x38]
mov dword [esp + 0x14], 0
sub esp, 8
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x2c]
mov dword [esi], 0x576cf0
mov byte [esi + 0x24], 1
mov dword [esi + 0x34], eax
mov byte [esi + 0x70], 0
mov dword [esi + 0x100078], 0
mov dword [esi + 0x10007c], 0
mov dword [esi + 0x100080], 0
mov dword [esi + 0x100084], 0
mov dword [esi + 0x100088], 0
mov dword [esi + 0x10008c], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [ecx], 0
mov dword [esi + 0x3c], 0
call fcn.004e8190
add esp, 8
neg eax
sbb eax, eax
inc eax
mov byte [esi + 0x24], al
test al, al
mov eax, esi
je 0x4e63af
mov byte [esi + 0x70], 1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x10
Function at 0x4e6da0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54c0e3
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x596c60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
lea eax, [esi + 0xc]
mov dword [esi], 0x576cc0
mov dword [esi + 4], 1
push eax
mov dword [esi + 8], 0x576f98
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0
lea edi, [esi + 0x30]
mov ecx, dword [ebp + 8]
mov dword [esi], 0x576c78
mov word [esi + 0x24], 1
mov dword [esi + 0x28], ecx
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
xor ecx, ecx
test al, al
setne cl
mov byte [esi + 0x24], cl
test cl, cl
je 0x4e6e86
mov ecx, dword [esi + 0x28]
push edi
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x4e6e86
mov eax, 1
jmp 0x4e6e88
xor eax, eax
mov byte [esi + 0x24], al
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
test al, al
je 0x4e6eb3
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.004e66e0
test al, al
je 0x4e6eb3
mov eax, 1
jmp 0x4e6eb5
xor eax, eax
mov byte [esi + 0x24], al
test al, al
je 0x4e6ed2
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.004e6ab0
test al, al
je 0x4e6ed2
mov eax, 1
jmp 0x4e6ed4
xor eax, eax
mov byte [esi + 0x24], al
test al, al
je 0x4e6ef3
push dword [ebp - 0x1c]
mov ecx, esi
push dword [ebp - 0x20]
call fcn.004e6c30
test al, al
je 0x4e6ef3
mov eax, 1
jmp 0x4e6ef5
xor eax, eax
mov byte [esi + 0x24], al
test al, al
je 0x4e6f98
push 0x40
mov byte [ebp - 4], 1
call fcn.0050828d
add esp, 4
test eax, eax
jne 0x4e6f3c
push 1
lea eax, [ebp + 8]
mov dword [ebp + 8], str.bad_allocation
push eax
lea ecx, [ebp - 0x2c]
call fcn.00507368
push 0x592bac
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], vtable.std::bad_alloc.0
push eax
call fcn.0053eadf
mov dword [ebp + 8], eax
push ecx
mov byte [ebp - 4], 2
mov ecx, eax
push dword [esi + 0x64]
push dword [esi + 0x60]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [esi + 0x28]
call fcn.004e5dd0
mov byte [ebp - 4], 1
mov ecx, eax
cmp byte [esi + 0x24], 0
mov dword [esi + 0x94], ecx
je 0x4e6f81
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
test al, al
je 0x4e6f81
mov eax, 1
mov byte [esi + 0x24], al
jmp 0x4e6f98
xor eax, eax
mov byte [esi + 0x24], al
jmp 0x4e6f98
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4e8310
Capabilities:
Compress data via zlib inflate or deflate

Disassembly:
sub esp, 0x3c
mov dword [esp + 4], ecx
push edi
test ecx, ecx
je 0x4e98f6
mov edi, dword [ecx + 0x1c]
mov dword [esp + 0x18], edi
test edi, edi
je 0x4e98f6
cmp dword [ecx + 0xc], 0
je 0x4e98f6
cmp dword [ecx], 0
jne 0x4e8348
cmp dword [ecx + 4], 0
jne 0x4e98f6
cmp dword [edi], 0xb
jne 0x4e8353
mov dword [edi], 0xc
mov eax, dword [ecx + 0xc]
mov edx, dword [edi + 0x38]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0x10]
push ebx
mov ebx, dword [ecx]
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
xor eax, eax
push ebp
mov ebp, dword [ecx + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [edi]
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 0x44], ebp
push esi
mov esi, dword [edi + 0x3c]
cmp eax, 0x1e
ja 0x4e8c47
lea ebx, [edi + 0x54]
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x18]
jmp 0x4e83a0
jmp dword [eax*4 + 0x4e9900]
mov eax, 0xfffffffe
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x3c
ret
mov eax, 0xfffffffe
pop edi
add esp, 0x3c
ret
Function at 0x4ea030
Capabilities:
Hash data with crc32

Disassembly:
test edx, edx
jne 0x4ea037
xor eax, eax
ret
jmp fcn.004ea040
Function at 0x4eb710
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40003c]
cmp dword [eax + 0x4000e4], 0
je 0x4eb790
push ebp
mov ebp, dword [eax + 0x4000e0]
add ebp, 4
add ebp, 0x400000
cmp dword [ebp], 0
je 0x4eb78f
push ebx
push esi
push edi
jmp 0x4eb740
mov ecx, dword [ebp]
add ecx, 0x400000
call fcn.004eb400
mov edi, eax
test edi, edi
je 0x4eb791
mov esi, dword [edi + 0xc]
xor edx, edx
add esi, 0x400000
mov ecx, esi
cmp dword [esi], edx
je 0x4eb76e
lea ecx, [ecx + 4]
inc edx
cmp dword [ecx], 0
jne 0x4eb765
lea ebx, [esi + edx*4]
cmp esi, ebx
jae 0x4eb783
push esi
push edi
call fcn.004eb490
add esi, 4
cmp esi, ebx
jb 0x4eb775
add ebp, 0x20
cmp dword [ebp], 0
jne 0x4eb740
pop edi
pop esi
pop ebx
pop ebp
ret
push 0x7e
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4eceb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54c581
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x596c60]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
push edi
mov eax, dword [0x596c60]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, dword [esp + 0x40]
mov dword [esp + 0xc], 0
push 0x36e
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], 0x570c58
mov byte [esp + 0x24], 0
mov dword [esp + 0x28], 0x36e
mov dword [esp + 0x2c], 0x9e7fa5ff
call fcn.0050828d
push 0x36e
push 0
push eax
mov dword [esp + 0x2c], eax
mov byte [esp + 0x24], 1
call fcn.0050c510
add esp, 0x10
mov dword [esp + 0x38], 1
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
push 0x36d
mov ecx, edi
mov dword [esp + 0x10], 1
call fcn.004ed350
mov esi, dword [edi]
lea ecx, [esp + 0x14]
push 0x36d
call fcn.004ed3b0
push eax
push esi
call fcn.0050bdb0
mov eax, dword [esp + 0x28]
add esp, 0xc
test eax, eax
je 0x4ecf8b
push eax
call fcn.00507b54
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005072fd
add esp, 0x30
ret 4

Function at 0x4ecfb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54c581
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x596c60]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
push edi
mov eax, dword [0x596c60]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, dword [esp + 0x40]
mov dword [esp + 0xc], 0
push 0x372
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], 0x56e3c8
mov byte [esp + 0x24], 0
mov dword [esp + 0x28], 0x372
mov dword [esp + 0x2c], 0x9e7fa5ff
call fcn.0050828d
push 0x372
push 0
push eax
mov dword [esp + 0x2c], eax
mov byte [esp + 0x24], 1
call fcn.0050c510
add esp, 0x10
mov dword [esp + 0x38], 1
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
push 0x371
mov ecx, edi
mov dword [esp + 0x10], 1
call fcn.004ed350
mov esi, dword [edi]
lea ecx, [esp + 0x14]
push 0x371
call fcn.004ed3b0
push eax
push esi
call fcn.0050bdb0
mov eax, dword [esp + 0x28]
add esp, 0xc
test eax, eax
je 0x4ed08b
push eax
call fcn.00507b54
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005072fd
add esp, 0x30
ret 4
Function at 0x4ed0b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54c581
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x596c60]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
push edi
mov eax, dword [0x596c60]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, dword [esp + 0x40]
mov dword [esp + 0xc], 0
push 0x396
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], 0x5708c0
mov byte [esp + 0x24], 0
mov dword [esp + 0x28], 0x396
mov dword [esp + 0x2c], 0x9e7fa5ff
call fcn.0050828d
push 0x396
push 0
push eax
mov dword [esp + 0x2c], eax
mov byte [esp + 0x24], 1
call fcn.0050c510
add esp, 0x10
mov dword [esp + 0x38], 1
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
push 0x395
mov ecx, edi
mov dword [esp + 0x10], 1
call fcn.004ed350
mov esi, dword [edi]
lea ecx, [esp + 0x14]
push 0x395
call fcn.004ed3b0
push eax
push esi
call fcn.0050bdb0
mov eax, dword [esp + 0x28]
add esp, 0xc
test eax, eax
je 0x4ed18b
push eax
call fcn.00507b54
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005072fd
add esp, 0x30
ret 4

Function at 0x4ef4b0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x100ac], ebx
je 0x4ef562
cmp dword [esi + 0x7c], ebx
jbe 0x4ef562
push ebp
mov ebp, 0xffffff5c
lea ebx, [esi + 0xa4]
sub ebp, esi
lea ebx, [ebx]
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
mov ecx, dword [esi + 0x100d0]
xor eax, ecx
mov edx, dword [esi + 0x100dc]
and eax, 0xff
mov edi, dword [esi + 0x100d8]
shr ecx, 8
and edi, 0xfffd
or edi, 2
mov eax, dword [edx + eax*4]
xor eax, ecx
mov dword [esi + 0x100d0], eax
movzx eax, al
add eax, dword [esi + 0x100d4]
imul ecx, eax, 0x8088405
mov eax, dword [esi + 0x100d8]
inc ecx
mov dword [esi + 0x100d4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [edx + ecx*4]
mov dword [esi + 0x100d8], eax
mov eax, edi
xor eax, 1
imul eax, edi
shr eax, 8
xor byte [ebx - 1], al
lea eax, [ebx + ebp]
cmp eax, dword [esi + 0x7c]
jb 0x4ef4e0
xor ebx, ebx
pop ebp
mov edi, dword [esi + 0x7c]
lea eax, [esi + 0xa4]
push edi
push eax
push dword [esi + 0x2c]
mov eax, dword [esi + 8]
push dword [esi + 0x1c]
call eax
add esp, 0x10
cmp eax, edi
je 0x4ef582
or ebx, 0xffffffff
add dword [esi + 0x100c0], edi
mov eax, ebx
mov ecx, dword [esi + 0x48]
adc dword [esi + 0x100c4], 0
add dword [esi + 0x100c8], ecx
pop edi
adc dword [esi + 0x100cc], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x7c], 0
pop esi
pop ebx
ret
Function at 0x4f0e50
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
sub esp, 0x128
mov eax, dword [0x596c60]
xor eax, esp
mov dword [esp + 0x124], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x138]
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x10], edx
mov ebp, 3
mov dword [esp + 0x20], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x20], 5
mov eax, 0x20019
jne 0x4f0e9d
cmp dword [esp + 0x24], 0
je 0x4f0ea2
mov eax, 0x20219
lea ecx, [esp + 0x14]
push ecx
push eax
push 0
push str.SoftwareMcAfeeSystemCore
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
neg esi
sbb esi, esi
not esi
and esi, dword [esp + 0x14]
je 0x4f0fa7
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x20c
push eax
push edi
lea eax, [esp + 0x20]
push eax
push 0
push str.szInstallDir32
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebp, eax
test ebp, ebp
jne 0x4f0fa0
test edi, edi
je 0x4f0fa0
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f0f04
push ebx
sub ecx, edx
mov ebx, 0x105
sar ecx, 1
mov eax, ebx
sub eax, ecx
je 0x4f0f52
mov ecx, edi
xor eax, eax
mov word [edi + 0x20a], ax
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f0f30
sub ecx, edx
mov eax, ebx
sar ecx, 1
sub eax, ecx
push eax
push 0x56b8e4
push edi
call fcn.00510f61
add esp, 0xc
cmp dword [esp + 0x10], 0
je 0x4f0f9f
mov ecx, edi
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f0f60
sub ecx, edx
mov eax, ebx
sar ecx, 1
sub eax, ecx
je 0x4f0f9f
mov ecx, edi
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f0f80
sub ecx, edx
sar ecx, 1
sub ebx, ecx
push ebx
push dword [esp + 0x14]
push edi
call fcn.00510f61
add esp, 0xc
pop ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x130]
xor eax, eax
pop edi
test ebp, ebp
pop esi
sete al
pop ebp
xor ecx, esp
call fcn.005072fd
add esp, 0x128
ret
Function at 0x4f3290
Capabilities:
Hash data using sha256

Disassembly:
push esi
mov esi, ecx
push 0x40
push 0
mov dword [esi + 0x8c], 0
lea eax, [esi + 0x2c]
push eax
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 4], 0x6a09e667
mov dword [esi + 8], 0xbb67ae85
mov dword [esi + 0xc], 0x3c6ef372
mov dword [esi + 0x10], 0xa54ff53a
mov dword [esi + 0x14], 0x510e527f
mov dword [esi + 0x18], 0x9b05688c
mov dword [esi + 0x1c], 0x1f83d9ab
mov dword [esi + 0x20], 0x5be0cd19
call fcn.0050c510
xor eax, eax
add esp, 0xc
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], eax
mov dword [esi + 0x88], eax
pop esi
ret