joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4012c5
Capabilities:
Hide graphical window

Disassembly:
push ebp
push 0x10000
push 0x1000
push 1
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x403fa4], eax
push 0x64
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, 0x30
push eax
mov dword [eax], ecx
add eax, 0x4c
mov ebp, eax
mov eax, 0x400000
mov dword [0x403fa0], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], 0x401196
mov dword [ebp - 0x24], str.resiliency
call dword [sym.imp.USER32.dll_RegisterClassExA]
xor eax, eax
push eax
push dword [0x403fa0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.abasement
push str.resiliency
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403fa8], eax
push eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x40138f
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401376
mov eax, dword [0x403fa4]
push eax
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
pop ebp
ret 0x10
Function at 0x4026bc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004031f0
test esi, esi
jne 0x4026f2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004032b4
jmp 0x402710
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004025d0
mov edi, eax
test esi, esi
je 0x402710
cmp dword [ebx], 0
je 0x402710
dec esi
jmp 0x4026f9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4027d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40900c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402868
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402848
xor eax, eax
push ebp
push 0x402841
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402884
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402848
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40900c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40900c], ax
mov esp, ebp
pop ebp
ret

Function at 0x403074
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40a034], 0
je 0x4030d5
cmp word [0x40a208], 0xd7b2
jne 0x40309d
cmp dword [0x40a210], 0
jbe 0x40309d
mov eax, 0x40a204
call dword [0x40a220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40904c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4030fc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x409018], 0
jne 0x4030f1
push 0
push 0x40906c
push 0x40904c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x407e54
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x407f0d
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
push 0
push 0xffffffffffffffe0
push esi
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 4]
push eax
push 0x20
lea eax, [ebx + 0xc]
push eax
push esi
call sub.kernel32.dll_ReadFile
lea eax, [ebp - 8]
lea edx, [ebx + 0xc]
mov ecx, 0xc
call fcn.004032f0
mov eax, dword [ebp - 8]
mov edx, 0x407f24
call fcn.0040344c
je 0x407eec
lea eax, [ebx + 0xc]
xor ecx, ecx
mov edx, 0x20
call fcn.00402778
mov eax, dword [0x407f30]
mov dword [ebx + 0xc], eax
mov eax, dword [0x407f34]
mov dword [ebx + 0x10], eax
mov eax, dword [0x407f38]
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
xor ebx, ebx
jmp 0x407ef7
mov edx, esi
mov eax, ebx
call fcn.00407f3c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407f14
lea eax, [ebp - 8]
call fcn.004031f0
ret

Function at 0x407fe4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x114], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004034f0
xor eax, eax
push ebp
push 0x408102
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 1
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 4]
call fcn.00403500
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4080da
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x4080c3
call sub.kernel32.dll_GetLastError
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x110]
call fcn.0040391c
lea edx, [ebp - 0x110]
mov eax, 0x40b830
call fcn.004032e4
push 0
push 0x408114
push 0x408124
push dword [ebp - 4]
push 0x408144
push dword [0x40b830]
lea eax, [ebp - 0x114]
mov edx, 4
call fcn.004033c8
mov eax, dword [ebp - 0x114]
call fcn.00403500
push eax
push 0
call sub.user32.dll_MessageBoxA_1
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4080e1
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
ret
Function at 0x404770
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b8400
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x6c21e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x68]
test eax, eax
je 0x4047d3
push fcn.00516d50
lea esi, [eax - 4]
mov dword [ebp - 4], 0
push dword [esi]
push 0xc
push eax
call fcn.0041eb04
mov eax, dword [esi]
lea eax, [eax + eax*2]
lea eax, [eax*4 + 4]
push eax
push esi
call fcn.0041e87b
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x404809
push fcn.00516d50
lea esi, [eax - 4]
mov dword [ebp - 4], 1
push dword [esi]
push 0xc
push eax
call fcn.0041eb04
mov eax, dword [esi]
lea eax, [eax + eax*2]
lea eax, [eax*4 + 4]
push eax
push esi
call fcn.0041e87b
add esp, 8
lea ecx, [edi + 0x48]
call fcn.00516d50
lea ecx, [edi + 0x3c]
call fcn.00516d50
lea ecx, [edi + 0x30]
call fcn.00516d50
lea ecx, [edi + 0x24]
call fcn.00516d50
lea ecx, [edi + 0x18]
call fcn.00516d50
lea ecx, [edi + 0xc]
call fcn.00516d50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404e80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b8491
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6c21e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xorps xmm0, xmm0
mov byte [esi], 0
lea ecx, [esi + 0x68]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movsd qword [esi + 0x18], xmm0
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 dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
call fcn.00516ef0
mov dword [ebp - 4], 0
mov dword [esi + 0x74], 0
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 1
call fcn.00505a80
lea ecx, [esi + 0x9c]
mov byte [ebp - 4], 2
call fcn.00505a80
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x48b3c0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5be3ff
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6c21e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov byte [ebp - 4], 4
mov dword [esi + 0x40], 0x64
call fcn.0048b230
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4c36b0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push edi
mov edi, edx
mov esi, ecx
call fcn.00513870
cmp eax, 0x26
jge 0x4c36c5
pop edi
xor al, al
pop esi
ret
movzx eax, word [esi + 0x10]
mov edx, 0x14
mov word [edi], ax
movzx eax, word [esi + 0xe]
mov word [edi + 2], ax
movzx eax, word [esi + 0xc]
mov word [edi + 4], ax
movzx eax, word [esi + 0xa]
mov word [edi + 6], ax
movzx eax, word [esi + 8]
mov word [edi + 8], ax
movzx eax, word [esi + 6]
mov word [edi + 0xa], ax
movzx eax, word [esi + 4]
mov word [edi + 0xc], ax
movzx eax, word [esi + 2]
mov word [edi + 0xe], ax
movzx eax, word [esi + 0x1a]
mov word [edi + 0x10], ax
movzx eax, word [esi + 0x18]
mov word [edi + 0x12], ax
movzx eax, word [esi + 0x16]
mov word [edi + 0x14], ax
movzx eax, word [esi + 0x14]
mov word [edi + 0x16], ax
movzx eax, word [esi + 0x24]
mov word [edi + 0x18], ax
movzx eax, word [esi + 0x22]
mov word [edi + 0x1a], ax
movzx eax, word [esi + 0x20]
mov word [edi + 0x1c], ax
movzx eax, word [esi + 0x1e]
mov word [edi + 0x1e], ax
mov eax, 0x10
nop
movzx ecx, word [esi + edx*2 + 2]
mov word [edi + eax*2], cx
movzx ecx, word [esi + edx*2]
add edx, 2
mov word [edi + eax*2 + 2], cx
add eax, 2
cmp edx, 0x18
jl 0x4c3750
mov edx, 0x19
movzx ecx, word [esi + edx*2 + 2]
lea eax, [eax + 2]
mov word [edi + eax*2 - 4], cx
movzx ecx, word [esi + edx*2]
add edx, 2
mov word [edi + eax*2 - 2], cx
cmp edx, 0x24
jl 0x4c3772
pop edi
mov al, 1
pop esi
ret
Function at 0x4d3a20
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov ecx, dword [edi + 8]
movzx eax, al
shr esi, 8
mov eax, dword [eax*4 + 0x5eec50]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5eec50]
mov dword [edi + 8], ecx
pop edi
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4d3a7b
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x4d3b37
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5eec50]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5eec50]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5eec50]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5eec50]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5eec50]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5eec50]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5eec50]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5eec50]
sub edi, 1
jne 0x4d3a90
pop edi
test esi, esi
je 0x4d3b5a
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5eec50]
sub esi, 1
jne 0x4d3b40
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x4d6950
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x6c21e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x5c], eax
mov edi, ecx
lea eax, [ebp - 0x48]
mov dword [ebp - 0x50], edx
push eax
push edi
call dword [0x5cd434]
test eax, eax
jne 0x4d699f
mov eax, 0x200
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e865
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x48]
mov esi, ebx
and esi, 1
mov eax, ebx
mov ecx, esi
or ecx, 2
and al, 2
mov eax, ebx
cmove ecx, esi
mov edx, ecx
or edx, 4
and al, 4
cmove edx, ecx
mov ecx, ebx
mov eax, edx
or eax, 0x10
and ecx, 0x10
cmove eax, edx
mov edx, eax
or edx, 0x20
and bl, 0x20
mov ebx, 0x81000000
cmove edx, eax
test ecx, ecx
mov eax, 0x41000000
cmove eax, ebx
or edx, eax
mov dword [ebp - 0x4c], edx
test esi, esi
jne 0x4d69f8
or edx, 0x800000
mov dword [ebp - 0x4c], edx
push 0
push edi
call dword [0x5cd33c]
mov esi, eax
cmp esi, 0x28
jbe 0x4d6aa3
mov ebx, dword [0x5cd49c]
push 0
push 0
push 0
push edi
call ebx
push 0
lea eax, [ebp - 0xc]
push eax
push 2
lea eax, [ebp - 8]
push eax
push edi
call dword [0x5cd504]
push 0
push 0
push 0x24
push edi
call ebx
push 0
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push edi
call dword [0x5cd504]
mov eax, 0x54ad
cmp word [ebp - 8], ax
jne 0x4d6aa3
mov ecx, dword [ebp - 0x10]
lea eax, [ecx + 0x34]
cmp esi, eax
jbe 0x4d6aa3
push 0
push 0
push ecx
push edi
call ebx
push 0
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push edi
call dword [0x5cd504]
mov eax, dword [ebp - 0x14]
cmp eax, 0x5a4d
je 0x4d6a99
cmp eax, 0x454e
je 0x4d6a99
cmp eax, 0x454c
je 0x4d6a99
cmp eax, 0x4550
jne 0x4d6aa3
mov eax, dword [ebp - 0x4c]
or eax, 0x400000
jmp 0x4d6aa6
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x50]
test ecx, ecx
je 0x4d6aaf
mov dword [ecx], eax
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x4d6ab8
mov dword [eax], esi
mov ebx, dword [ebp - 0x58]
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp - 0x34]
test ebx, ebx
je 0x4d6af6
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
call fcn.004d6bb0
push esi
push edi
mov dword [ebx], eax
mov dword [ebx + 4], edx
call fcn.004d6bb0
push dword [ebp - 0x40]
mov dword [ebx + 8], eax
push dword [ebp - 0x44]
mov dword [ebx + 0xc], edx
call fcn.004d6bb0
add esp, 0x18
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], edx
mov ebx, dword [ebp - 0x5c]
test ebx, ebx
je 0x4d6b1c
push esi
push edi
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 8]
call fcn.004d6b30
movzx ecx, word [ebp - 8]
add esp, 8
movzx eax, word [ebp - 0x4c]
shl ecx, 0x10
or ecx, eax
mov dword [ebx], ecx
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e865
mov esp, ebp
pop ebp
ret
Function at 0x4d6d00
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov ecx, dword [edi + 8]
movzx eax, al
shr esi, 8
mov eax, dword [eax*4 + 0x5eec50]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5eec50]
mov dword [edi + 8], ecx
pop edi
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4d6d5b
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x4d6e17
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5eec50]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5eec50]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5eec50]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5eec50]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5eec50]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5eec50]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5eec50]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5eec50]
sub edi, 1
jne 0x4d6d70
pop edi
test esi, esi
je 0x4d6e3a
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5eec50]
sub esi, 1
jne 0x4d6e20
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x4d7bb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
xor edi, edi
mov eax, dword [esi + 0x6af90]
mov dword [esi + 0x6af80], 2
test eax, eax
je 0x4d7dd9
cmp eax, 3
jb 0x4d7c26
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
xor ecx, eax
and ecx, 0x7fff
and edx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ebx, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], ebx
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
test ebx, ebx
je 0x4d7c63
mov eax, dword [esi + 0x6af84]
sub eax, ebx
cmp eax, 0x7efa
ja 0x4d7c63
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x4d7c4d
mov dword [esi + 0x6afa0], eax
mov edx, ebx
mov ecx, esi
call fcn.004d7f70
mov ecx, dword [esi + 0x6af90]
mov edi, eax
cmp edi, ecx
cmova edi, ecx
mov ecx, dword [esi + 0x6af84]
cmp edi, 3
jb 0x4d7d5c
sub ecx, dword [esi + 0x6af88]
lea eax, [edi - 3]
mov edx, ecx
mov ecx, esi
push eax
call fcn.004d8830
mov ecx, dword [esi + 0x6af90]
add esp, 4
sub ecx, edi
mov dword [ebp - 4], eax
mov dword [esi + 0x6af90], ecx
cmp edi, dword [esi + 0x6af98]
ja 0x4d7d12
cmp ecx, 3
jb 0x4d7d12
dec edi
nop word [eax + eax]
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
and edx, 0x7fff
xor ecx, eax
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ebx, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], ebx
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
sub edi, 1
jne 0x4d7cb0
inc dword [esi + 0x6af84]
mov eax, dword [ebp - 4]
jmp 0x4d7d7d
add dword [esi + 0x6af84], edi
mov dl, 1
mov eax, dword [esi + 0x6af84]
xor edi, edi
push 0x5f8fc0
movzx ecx, byte [esi + eax + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx eax, byte [eax + esi + 0x1af71]
shl ecx, 5
xor eax, ecx
mov ecx, esi
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
call fcn.004d9940
mov eax, dword [ebp - 4]
add esp, 4
jmp 0x4d7d7d
movzx eax, byte [esi + ecx + 0x1af70]
xor edx, edx
push eax
mov ecx, esi
call fcn.004d8830
dec dword [esi + 0x6af90]
add esp, 4
inc dword [esi + 0x6af84]
mov ecx, dword [esi + 0x6af84]
lea edx, [esi + 0x1af70]
test eax, eax
je 0x4d7db7
mov eax, dword [esi + 0x6af74]
sub ecx, eax
push 0
push ecx
xor ecx, ecx
add edx, eax
test eax, eax
cmovs edx, ecx
mov ecx, esi
call fcn.004d8a20
mov eax, dword [esi + 0x6af84]
add esp, 8
mov dword [esi + 0x6af74], eax
mov eax, dword [esi + 0x6af90]
cmp eax, 0x106
jae 0x4d7dd1
mov ecx, esi
call fcn.004d7e10
mov eax, dword [esi + 0x6af90]
test eax, eax
jne 0x4d7bd5
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x4d7ded
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x4d7def
xor edx, edx
mov eax, dword [esi + 0x6af84]
sub eax, ecx
mov ecx, esi
push 1
push eax
call fcn.004d8a20
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4df990
Capabilities:
Access peb ldr_data
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c281d
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x6c21e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [edi + 0xc]
call fcn.00516cc0
cmp eax, 6
jle 0x4df9d5
lea ecx, [edi + 0xc]
call fcn.00516ab0
push eax
lea ecx, [edi + 0x34]
call fcn.00510470
mov eax, dword [edi + 0xa4]
test eax, eax
je 0x4df9e8
push eax
call fcn.004191b0
add esp, 4
lea ecx, [edi + 0xa0]
mov dword [edi + 0xa4], 0
call fcn.004e1760
lea ecx, [edi + 0x9c]
call fcn.004e1760
mov eax, dword [edi + 0x98]
test eax, eax
je 0x4dfa41
push fcn.00516d50
lea esi, [eax - 4]
mov dword [ebp - 4], 0
push dword [esi]
push 0xc
push eax
call fcn.0041eb04
mov eax, dword [esi]
lea eax, [eax + eax*2]
lea eax, [eax*4 + 4]
push eax
push esi
call fcn.0041e87b
add esp, 8
lea ecx, [edi + 0x84]
call fcn.00516d50
lea ecx, [edi + 0x78]
call fcn.00516d50
mov eax, dword [edi + 0x70]
test eax, eax
je 0x4dfa64
push eax
call fcn.0041e876
add esp, 4
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x4dfa74
push eax
call fcn.0041e876
add esp, 4
mov eax, dword [edi + 0x48]
test eax, eax
je 0x4dfa84
push eax
call fcn.0041e876
add esp, 4
lea ecx, [edi + 0x34]
call fcn.005116a0
lea ecx, [edi + 0x30]
call fcn.005116a0
lea ecx, [edi + 0xc]
call fcn.00516d50
mov ecx, edi
call fcn.00516d50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4dfac0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c28d3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6c21e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00516ef0
lea ecx, [esi + 0xc]
mov dword [ebp - 4], 0
call fcn.00516ef0
lea ecx, [esi + 0x30]
call fcn.00511760
lea ecx, [esi + 0x34]
call fcn.00511760
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 3
call fcn.004dfc60
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 4
call fcn.004dfc60
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 5
call fcn.004dfc60
lea ecx, [esi + 0x78]
call fcn.00516ef0
lea ecx, [esi + 0x84]
call fcn.00516ef0
mov dword [esi + 0x98], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
lea ecx, [esi + 0x9c]
call fcn.004e1780
lea ecx, [esi + 0xa0]
call fcn.004e1780
mov dword [esi + 0xa4], 0
push ecx
mov ecx, esi
mov byte [ebp - 4], 0xc
call fcn.004df8d0
mov dword [esi + 0x1c], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret