joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003a0f0
Capabilities:
Delete file
Get file size

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0x14]
mov esi, dword [eax]
mov eax, dword [edi]
test eax, eax
jne 0x1003a12d
call fcn.100f3f6c
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x1003a115
call fcn.100f3f6c
mov esi, dword [esi + 8]
cmp dword [esi + 0x14], 0
jbe 0x1003a170
mov ebp, 0x10
cmp dword [esi + 0x18], ebp
jb 0x1003a131
mov eax, dword [esi + 4]
jmp 0x1003a134
mov eax, dword [eax]
jmp 0x1003a10b
lea eax, [esi + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 1
push accept
push eax
call ebx
cmp eax, 0xffffffff
je 0x1003a165
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x18], ebp
jb 0x1003a199
mov eax, dword [esi + 4]
jmp 0x1003a19c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x1003a15b
mov ecx, dword [edi + 0x14]
mov eax, dword [ecx]
mov ecx, dword [edi]
push eax
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.10040c90
call fcn.10038ac0
push esi
call fcn.100f4085
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
lea eax, [esi + 4]
push 0
push 0
push 3
push 0
push 0
push 0
push eax
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1003a1cd
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
ja 0x1003a234
mov ebp, 0x10
cmp dword [esi + 0x18], ebp
jb 0x1003a1d7
mov eax, dword [esi + 4]
jmp 0x1003a1da
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ebp, [esi + 0x3c]
push ebp
push edi
call fcn.10040940
mov ebx, eax
test ebx, ebx
je 0x1003a221
push ebx
call fcn.10038030
test al, al
je 0x1003a221
cmp dword [ebx + 0x11c], 0x10
jb 0x1003a20c
mov ebx, dword [ebx + 0x108]
jmp 0x1003a212
add ebx, 0x108
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebp
mov eax, edi
call fcn.10040840
mov eax, dword [edi + 0x14]
mov eax, dword [eax]
mov ecx, dword [edi]
push eax
push ecx
lea ecx, [esp + 0x18]
push ecx
jmp 0x1003a17e
push ebp
mov ecx, esi
call fcn.1003a290
test al, al
je 0x1003a252
mov edx, dword [edi + 0x68]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call fcn.1003ad90
mov eax, dword [edi + 0x14]
mov eax, dword [eax]
mov ecx, dword [edi]
push eax
push ecx
lea ecx, [esp + 0x18]
push ecx
call fcn.10040c90
call fcn.10038ac0
push esi
call fcn.100f4085
add esp, 4
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x100403b0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x10124116
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x1015d2f0]
xor eax, esp
mov dword [esp + 0x17c], eax
push ebx
push ebp
push edi
mov eax, dword [0x1015d2f0]
xor eax, esp
push eax
lea eax, [esp + 0x190]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
push 0xffffffffffffffff
lea eax, [edi + 0xa4]
push ebx
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.100057a0
push 1
push 0x1013af20
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1a0], ebx
call fcn.10006400
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [esp + 0x20]
call fcn.10006300
push 2
push 0x1013afe0
lea ecx, [esp + 0x1c]
call fcn.10006400
mov eax, dword [esp + 0x18]
mov ebp, 0x10
cmp dword [esp + 0x2c], ebp
jae 0x10040458
lea eax, [esp + 0x18]
lea ecx, [esp + 0x4c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x100404f9
cmp byte [esp + 0x78], 0x2e
je 0x100404da
test byte [esp + 0x4c], 0x10
je 0x100404da
lea eax, [esp + 0x78]
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10040496
sub eax, edx
push eax
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x38]
call fcn.10004290
push esi
lea ecx, [esp + 0x34]
mov byte [esp + 0x19c], 1
call fcn.10040120
mov byte [esp + 0x198], bl
cmp dword [esp + 0x48], ebp
jb 0x100404da
mov ecx, dword [esp + 0x34]
push ecx
call fcn.100f4085
add esp, 4
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x4c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10040471
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x2c], ebp
jb 0x1004050c
mov edx, dword [esp + 0x18]
push edx
call fcn.100f4085
add esp, 4
mov ecx, dword [esp + 0x190]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x17c]
xor ecx, esp
call fcn.100f30a6
add esp, 0x18c
ret
Function at 0x10040540
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10123c76
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x1015d2f0]
xor eax, esp
mov dword [esp + 0x188], eax
push ebx
push esi
push edi
mov eax, dword [0x1015d2f0]
xor eax, esp
push eax
lea eax, [esp + 0x1a0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0xffffffffffffffff
mov dword [esp + 0x18], eax
add eax, 0xa4
push ebx
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
call fcn.100057a0
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x1ac], ebx
call fcn.10032350
add esp, 4
test al, al
jne 0x100405cd
cmp dword [esp + 0x34], 0x10
jmp 0x100406e4
push 2
push 0x1013afe0
lea ecx, [esp + 0x24]
call fcn.10006400
mov eax, dword [esp + 0x20]
mov edi, 0x10
cmp dword [esp + 0x34], edi
jae 0x100405f0
lea eax, [esp + 0x20]
lea edx, [esp + 0x54]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, 0xffffffff
jne 0x10040620
cmp dword [esp + 0x34], edi
jb 0x100406f3
mov eax, dword [esp + 0x20]
push eax
jmp 0x100406eb
cmp byte [esp + 0x80], 0x2e
je 0x100406bc
test byte [esp + 0x54], 0x10
je 0x100406bc
lea eax, [esp + 0x80]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10040653
sub eax, edx
push eax
lea ecx, [esp + 0x84]
push ecx
lea ecx, [esp + 0x40]
call fcn.10004290
mov byte [esp + 0x1a8], 1
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x50], edi
jae 0x10040684
lea eax, [esp + 0x3c]
push eax
call fcn.100f39b6
add esp, 4
test eax, eax
jle 0x100406a2
mov ecx, dword [esp + 0x14]
lea esi, [esp + 0x38]
call fcn.100403b0
mov esi, dword [esp + 0x18]
mov byte [esp + 0x1a8], bl
cmp dword [esp + 0x50], edi
jb 0x100406bc
mov edx, dword [esp + 0x3c]
push edx
call fcn.100f4085
add esp, 4
lea eax, [esp + 0x54]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10040620
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x14]
call fcn.10040750
cmp dword [esp + 0x34], edi
jb 0x100406f3
mov ecx, dword [esp + 0x20]
push ecx
call fcn.100f4085
add esp, 4
mov ecx, dword [esp + 0x1a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x188]
xor ecx, esp
call fcn.100f30a6
mov esp, ebp
pop ebp
ret 4
Function at 0x10040750
Capabilities:
Create thread

Disassembly:
push ecx
mov eax, dword [0x10163088]
test eax, eax
je 0x10040837
call eax
test al, al
je 0x10040837
cmp byte [esi + 0x114], 0
je 0x10040837
cmp dword [esi + 0x18], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetEvent]
push edi
jbe 0x100407d9
cmp dword [esi + 0x54], 0
jne 0x100407d3
lea edi, [esi + 0x118]
push edi
call ebx
cmp dword [esi + 0x54], 0
jne 0x100407c4
lea eax, [esp + 0xc]
push eax
push 0
push esi
push 0x1003a090
push 0
push 0
call fcn.100f3d5f
add esp, 0x18
push edi
mov dword [esi + 0x54], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x100407d9
mov ecx, dword [esi + 0x60]
push ecx
call ebp
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x100407d9
mov edx, dword [esi + 0x60]
push edx
call ebp
cmp dword [esi + 0x34], 0
jbe 0x10040834
cmp dword [esi + 0x58], 0
jne 0x1004082e
lea edi, [esi + 0x130]
push edi
call ebx
cmp dword [esi + 0x58], 0
jne 0x1004081c
lea eax, [esp + 0xc]
push eax
push 0
push esi
push 0x1003ef10
push 0
push 0
call fcn.100f3d5f
add esp, 0x18
push edi
mov dword [esi + 0x58], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [esi + 0x64]
push ecx
call ebp
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebp
pop ebx
pop ecx
ret
mov edx, dword [esi + 0x64]
push edx
call ebp
pop edi
pop ebp
pop ebx
pop ecx
ret

Function at 0x10045a40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101220c3
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x1015d2f0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
xor edi, edi
mov dword [esi + 0xc], eax
mov dword [esp + 0xc], 1
mov dword [esi + 0x14], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esp + 0x24], 4
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov byte [esp + 0x24], 6
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
mov dword [esi + 0x54], ecx
push eax
mov ecx, str.BlockPaddingScheme
mov dword [esi], vtable.CryptoPP::StreamTransformationFilter.0
mov dword [esi + 4], vtable.CryptoPP::StreamTransformationFilter.1.0
call fcn.10046520
add esp, 8
push eax
mov ecx, esi
mov byte [esp + 0x28], 8
call fcn.10045110
mov byte [esp + 0x24], 6
mov ecx, dword [esp + 0x14]
cmp ecx, edi
je 0x10045adf
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret 8
Function at 0x10046520
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10121c61
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x1015d2f0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2c]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], vtable.CryptoPP::AlgorithmParameters.0
mov dword [esp + 0x14], 0
mov byte [esp + 0x18], 1
mov eax, dword [esp + 0x30]
push eax
push ecx
lea edi, [esp + 0x18]
mov dword [esp + 0x2c], 1
call fcn.100465c0
push eax
push esi
call fcn.1004a0c0
mov byte [esp + 0x24], 0
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xc], 1
test ecx, ecx
je 0x100465a1
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret

Function at 0x10048520
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
mov ecx, edi
shr ecx, 2
xor eax, eax
test ecx, ecx
jbe 0x10048566
mov edi, ebx
sub esi, edx
mov eax, edx
sub edi, edx
mov dword [esp + 0xc], ecx
push ebp
mov ebp, dword [esi + eax]
xor ebp, dword [eax]
add eax, 4
sub ecx, 1
mov dword [edi + eax - 4], ebp
jne 0x10048548
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
pop ebp
add eax, eax
add eax, eax
sub edi, eax
je 0x10048591
add ebx, eax
add esi, eax
add edx, eax
test edi, edi
jbe 0x10048591
mov ecx, esi
mov esi, ebx
sub ecx, edx
mov eax, edx
sub esi, edx
mov dl, byte [eax + ecx]
xor dl, byte [eax]
inc eax
sub edi, 1
mov byte [eax + esi - 1], dl
jne 0x10048582
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x10049980
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10121fe8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x1015d2f0]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov edx, dword [eax + 4]
lea ecx, [esp + 0x10]
push ecx
push 0x10160844
push str.InsertLineBreaks
mov ecx, esi
mov byte [esp + 0x1c], 1
call edx
mov eax, dword [esi]
mov edx, dword [eax + 4]
lea ecx, [esp + 0x14]
push ecx
push 0x101607d8
push str.MaxLineLength
mov ecx, esi
mov dword [esp + 0x20], 0x48
call edx
mov al, byte [esp + 0x10]
mov esi, 0x101433fc
test al, al
jne 0x10049a00
mov esi, 0x1013e2a2
mov ebx, dword [edi + 0x44]
movzx eax, al
neg eax
sbb eax, eax
and eax, dword [esp + 0x14]
lea ecx, [esp + 0x54]
push ecx
mov dword [esp + 0x24], 6
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0x1013df28
call fcn.10025ae0
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x7c], 0
call fcn.10025ae0
mov esi, eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
push ecx
mov ecx, str.EncodingLookupArray
mov byte [esp + 0x80], 1
call fcn.10049b50
add esp, 8
mov byte [esp + 0x78], 2
movzx edx, byte [eax + 8]
push edx
push str.PaddingByte
mov edi, eax
call fcn.10049ca0
movzx ecx, byte [eax + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
push str.GroupSize
mov edi, eax
call fcn.10028f20
movzx ecx, byte [eax + 8]
push ecx
push esi
push str.Separator
mov edi, eax
call fcn.10028e60
movzx edx, byte [eax + 8]
mov ecx, dword [esp + 0x1c]
push edx
push ecx
push str.Terminator
mov edi, eax
call fcn.10028e60
push 1
lea edx, [esp + 0x24]
push edx
push str.Log2Base
mov edi, eax
call fcn.10028f20
mov ecx, dword [ebp + 8]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], vtable.CryptoPP::CombinedNameValuePairs.0
mov edx, dword [ebx]
mov edx, dword [edx + 0x28]
push 0xffffffffffffffff
lea eax, [esp + 0x28]
push eax
mov ecx, ebx
call edx
mov byte [esp + 0x78], 1
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x10049b02
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov edi, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
mov edx, edi
xor al, al
push edx
rep stosb byte es:[edi], al
call fcn.100f355b
mov edi, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov edx, edi
xor al, al
push edx
rep stosb byte es:[edi], al
call fcn.100f355b
add esp, 8
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10049b50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10121c61
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x1015d2f0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2c]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], vtable.CryptoPP::AlgorithmParameters.0
mov dword [esp + 0x14], 0
mov byte [esp + 0x18], 1
mov eax, dword [esp + 0x30]
push eax
push ecx
lea edi, [esp + 0x18]
mov dword [esp + 0x2c], 1
call fcn.10049bf0
push eax
push esi
call fcn.1004a0c0
mov byte [esp + 0x24], 0
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xc], 1
test ecx, ecx
je 0x10049bd1
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret

Function at 0x1004a150
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
jmp 0x1004a160
movzx edx, byte [esi + str.cw]
mov eax, edx
shr eax, 7
mov ecx, eax
imul eax, eax, 0x11b
imul ecx, ecx, 0x1b000000
mov ebx, edx
shl ebx, 0x19
xor ecx, ebx
mov ebx, edx
shl ebx, 8
or ebx, edx
shl ebx, 8
or ecx, ebx
lea ebx, [edx + edx]
xor eax, ebx
xor eax, edx
or eax, ecx
xor edx, edx
xor ebx, ebx
or edx, ecx
or eax, ebx
mov dword [esi*8 + 0x10162870], edx
mov dword [esi*8 + 0x10162874], eax
inc esi
cmp esi, 0x100
jl 0x1004a160
mov dword [0x10163078], edi
mov dword [0x1016307c], edi
mov dword [0x10163070], edi
mov dword [0x10163074], edi
pop edi
pop esi
mov byte [0x101630b0], 1
pop ebx
ret
Function at 0x1004a1e0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x10
push ebx
push ebp
xor eax, eax
push esi
mov dword [esp + 0x14], eax
push edi
lea ecx, [ecx]
movzx eax, byte [eax + 0x1013de00]
mov ebp, eax
shr ebp, 7
mov dword [esp + 0x1c], ebp
imul ebp, ebp, 0x1b000000
mov ecx, eax
shr ecx, 6
mov esi, ecx
and ecx, 1
mov dword [esp + 0x10], ecx
lea ebx, [eax + eax]
xor ebx, eax
lea ecx, [ebx + ebx]
xor ecx, eax
shl ecx, 0x19
xor ecx, ebp
and esi, 2
mov dword [esp + 0x14], esi
mov edi, eax
shr edi, 5
mov edx, edi
mov esi, edi
and edi, 1
mov ebp, edi
imul ebp, ebp, 0x1b000000
xor ecx, ebp
and esi, 2
mov ebp, esi
imul ebp, ebp, 0x1b000000
xor ecx, ebp
mov ebp, dword [esp + 0x10]
imul ebp, ebp, 0x1b000000
xor ecx, ebp
mov ebp, dword [esp + 0x14]
imul ebp, ebp, 0x1b000000
xor ecx, ebp
and edx, 4
mov ebp, edx
imul ebp, ebp, 0x1b000000
xor ecx, ebp
lea ebp, [ebx*4]
xor ebp, eax
shl ebp, 8
mov ebx, edi
imul ebx, ebx, 0x11b00
xor ebp, ebx
mov ebx, esi
imul ebx, ebx, 0x11b00
xor ebp, ebx
mov ebx, dword [esp + 0x10]
imul ebx, ebx, 0x11b00
xor ebp, ebx
mov ebx, dword [esp + 0x14]
imul ebx, ebx, 0x11b00
xor ebp, ebx
mov ebx, edx
imul ebx, ebx, 0x11b00
xor ebp, ebx
or ecx, ebp
mov ebp, edi
imul edi, edi, 0x11b
imul ebp, ebp, 0x11b0000
lea ebx, [eax*8]
xor ebx, eax
shl ebx, 0x10
xor ebx, ebp
mov ebp, esi
imul ebp, ebp, 0x11b0000
xor ebx, ebp
mov ebp, edx
imul ebp, ebp, 0x11b0000
xor ebx, ebp
or ecx, ebx
mov ebx, dword [esp + 0x1c]
imul ebx, ebx, 0x11b
lea ebp, [eax*4]
xor ebp, eax
add ebp, ebp
xor ebp, ebx
xor ebp, edi
imul esi, esi, 0x11b
imul edx, edx, 0x11b
xor ebp, esi
xor ebp, edx
xor ebp, eax
or eax, ecx
or ebp, ecx
xor edx, edx
or edx, eax
mov eax, dword [esp + 0x18]
xor ecx, ecx
or ebp, ecx
mov dword [eax*8 + 0x10162070], edx
mov dword [eax*8 + 0x10162074], ebp
inc eax
cmp eax, 0x100
mov dword [esp + 0x18], eax
jl 0x1004a1f0
pop edi
pop esi
pop ebp
mov byte [0x101630b1], 1
pop ebx
add esp, 0x10
ret
Function at 0x100501e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10121fa0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x1015d2f0]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [0x1015d2f0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
xor edx, edx
push 1
mov dword [esp + 0x20], eax
mov dword [esp + 8], eax
push 0x1015f05c
lea eax, [esp + 0xc]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x10], edx
mov edx, dword [ecx]
mov edx, dword [edx + 0x7c]
push eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], vtable.CryptoPP::ArraySink.0
mov dword [esp + 0x20], vtable.CryptoPP::ArraySink.1.0
call edx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.100f30a6
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10121f70
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x1015d2f0]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
mov eax, dword [0x1015d2f0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ecx]
xor edx, edx
push 1
push 0x1015f05c
push edx
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
push eax
lea edx, [esp + 0x1c]
mov dword [esp + 0x34], eax
push edx
mov edx, dword [esi + 0x80]
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], vtable.CryptoPP::ArraySink.0
mov dword [esp + 0x30], vtable.CryptoPP::ArraySink.1.0
call edx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.100f30a6
mov esp, ebp
pop ebp
ret 8
Function at 0x10051550
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ecx
push ebx
xor ebx, ebx
push edi
mov dword [esp + 8], ebx
cmp dword [esi + 0x100ac], ebx
je 0x100515ff
cmp dword [esi + 0x7c], ebx
jbe 0x100515ff
push ebp
mov ebp, 0xffffff5c
lea edi, [esi + 0xa4]
sub ebp, esi
lea esp, [esp]
movzx ecx, byte [edi]
mov eax, dword [esi + 0x100d0]
mov ebx, dword [esi + 0x100dc]
xor ecx, eax
mov edx, dword [esi + 0x100d8]
shr eax, 8
and ecx, 0xff
mov ecx, dword [ebx + ecx*4]
xor ecx, eax
movzx eax, cl
add eax, dword [esi + 0x100d4]
mov dword [esi + 0x100d0], ecx
mov ecx, dword [esi + 0x100d8]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x100d4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
and edx, 0xfffd
shr ecx, 8
xor ecx, dword [ebx + eax*4]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
mov dword [esi + 0x100d8], ecx
shr eax, 8
xor byte [edi], al
inc edi
lea ecx, [edi + ebp]
cmp ecx, dword [esi + 0x7c]
jb 0x10051580
xor ebx, ebx
pop ebp
mov edi, dword [esi + 0x7c]
mov ecx, dword [esi + 0x2c]
mov edx, edi
push edx
mov edx, dword [esi + 0x1c]
lea eax, [esi + 0xa4]
push eax
mov eax, dword [esi + 8]
push ecx
push edx
call eax
add esp, 0x10
cmp eax, edi
je 0x10051628
mov dword [esp + 8], 0xffffffff
add dword [esi + 0x100c0], edi
mov ecx, dword [esi + 0x48]
mov eax, dword [esp + 8]
adc dword [esi + 0x100c4], ebx
add dword [esi + 0x100c8], ecx
pop edi
mov dword [esi + 0x48], ebx
adc dword [esi + 0x100cc], ebx
mov dword [esi + 0x7c], ebx
pop ebx
pop ecx
ret