joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101bdc9e
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x98
mov eax, dword [0x101db514]
add eax, 0xffffda07
mov dword [0x101db514], eax
call fcn.10001070
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x24], ecx
je 0x101bdd7a
jmp 0x101bde1d
lea eax, [esp + 0x28]
mov dword [esp], eax
call fcn.101bdecc
lea ecx, [0x101bf1a6]
mov dword [0x101db518], 0xb1d
mov edx, dword [esp + 0x28]
mov dword [esp + 0x50], edx
mov dword [esp + 0x3c], 0x118600
mov edx, dword [0x101db500]
mov dword [esp + 0x58], edx
mov edx, dword [0x101db504]
mov dword [esp + 0x68], edx
mov edx, dword [0x101db508]
mov dword [esp + 0x78], edx
mov edx, dword [0x101db50c]
mov dword [esp + 0x6c], edx
mov dword [0x101db514], 0x135a
mov edx, dword [0x101db510]
mov dword [esp + 0x8c], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
jmp 0x101bdda4
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x14], ecx
je 0x101bddb5
mov eax, dword [esp + 0x18]
add eax, 0xfffff000
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
and eax, 0xfffff000
mov dword [esp + 0x1c], eax
jmp 0x101bdda4
lea eax, [esp + 0x38]
mov dword [0x101db514], 0xbdc
mov dword [esp + 0xc], eax
call fcn.101bef2c
xor ecx, ecx
cmp eax, 0
mov dword [esp + 8], ecx
je 0x101bdcd5
jmp 0x101bde15
mov eax, dword [esp + 0x1c]
cmp word [eax], 0x5a4d
mov dword [esp + 0x18], eax
je 0x101bdd4a
jmp 0x101bdd5e
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x88], ecx
mov edx, dword [esp + 0x14]
mov esi, dword [ecx + edx + 0x50]
mov dword [esp + 0x84], esi
mov dword [0x101db514], 0x111c
mov esi, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.101be168
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov ecx, dword [0x101db514]
add ecx, 0xfffff0fe
mov dword [0x101db514], ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x101bdecc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x168
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x101db514], 0x483
mov dword [0x101db518], 0xa86
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, section..data
mov esi, eax
shl esi, 8
mov edi, edx
add edi, esi
add edi, 0xf8
mov esi, dword [edi]
mov edi, eax
shl edi, 8
add edx, edi
add edx, 0xd0
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x185
mov ecx, edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
jne 0x101bdf05
lea eax, [0x101c06e9]
mov ecx, 0xe
lea edx, [ebp - 0x12c]
mov dword [0x101db518], 0x18c2
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x144], ecx
call fcn.101be873
mov dword [0x101db514], 0x2e3
mov dword [0x101db518], 0x2085
call fcn.101be419
mov dword [esp], eax
mov eax, dword [ebp - 0x140]
mov dword [esp + 4], eax
call fcn.101be661
mov ecx, eax
mov dword [0x101db534], eax
mov eax, esp
mov edx, dword [ebp - 0x13c]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov edx, ecx
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x150], ecx
mov eax, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x14c]
lea edx, section..data
mov esi, eax
shl esi, 8
mov edi, edx
add edi, esi
add edi, 0xf8
mov esi, dword [edi]
mov edi, eax
shl edi, 8
mov ebx, edx
add ebx, edi
add ebx, 0xc0
mov edi, dword [ebx]
mov ebx, eax
shl ebx, 8
add edx, ebx
add edx, 0xd0
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x148]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x15c], edx
call fcn.101bf0f8
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x158]
add eax, ecx
mov edx, dword [ebp - 0x154]
add edx, 1
cmp edx, 0x185
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x150], edx
jne 0x101be003
lea eax, [0x101c06f7]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov dword [0x101db514], 0x1ad9
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x164], ecx
call fcn.101bec14
mov eax, dword [ebp - 0x160]
mov dword [esp], eax
mov ecx, dword [ebp - 0x148]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x13c]
mov dword [esp + 0xc], edx
call fcn.101be9d5
xor eax, eax
mov ecx, dword [ebp - 0x148]
add ecx, 0x67b6c
mov edx, dword [ebp - 0x130]
mov dword [edx], ecx
mov ecx, dword [0x101db518]
add ecx, 0xfffff632
mov dword [0x101db514], ecx
mov dword [edx + 4], 0x118600
mov ecx, dword [ebp - 0x148]
add ecx, 0x5af91
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x1f70
mov ecx, dword [0x101db514]
add ecx, 0xffffe960
mov dword [0x101db518], ecx
add esp, 0x168
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101be168
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [0x101c06e9]
mov esi, 0xe
lea edi, [ebp - 0x28]
mov dword [0x101db514], 0x90d
mov dword [0x101db518], 0xb59
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], 0xe
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
call fcn.101be873
mov eax, dword [0x101db514]
add eax, 0x1da2
mov dword [0x101db518], eax
call fcn.101be419
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.101be661
xor ecx, ecx
cmp eax, 0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
jne 0x101be1f4
mov eax, dword [ebp - 0x40]
add esp, 0x4c
pop esi
pop edi
pop ebp
ret
mov dword [0x101db518], 0xc01
mov eax, dword [ebp - 0x3c]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [0x101db514], 0x1a95
mov dword [esp], eax
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ecx
mov dword [ebp - 0x44], eax
call fcn.101be4bd
xor eax, eax
mov ecx, dword [ebp - 0x44]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xc0
mov dword [ecx + 0xc0], 0x4550
mov dword [0x101db518], 0x539
add ecx, 0xffc00000
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x44], ecx
mov ecx, dword [0x101db518]
add ecx, 0xffffeed3
mov dword [0x101db518], ecx
mov ecx, dword [ebp - 0x44]
mov dword [edx + 0x10], ecx
mov dword [0x101db514], 0x147
cmp ecx, 0
mov dword [ebp - 0x40], eax
je 0x101be1ea
mov eax, dword [ebp - 0x44]
add eax, 0x1398
mov dword [0x101db518], 0x1479
mov dword [ebp - 0x40], eax
jmp 0x101be1ea
Function at 0x101be9d5
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x101db51c], 0
mov dword [0x101db520], 0
mov dword [0x101db52c], 0
mov ebx, dword [0x101db514]
add ebx, 0x5f1
mov dword [0x101db514], ebx
cmp eax, 0
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov eax, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], edi
jne 0x101bea56
mov eax, dword [0x101db518]
add eax, 0x221
mov dword [0x101db518], eax
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x28]
mov edi, 0x100
add eax, 1
add esi, 0x214e
mov ebx, edx
add ebx, 1
mov dword [0x101db514], esi
mov dword [ebp - 0x30], edx
cdq
idiv edi
mov dword [0x101db51c], edx
mov dword [0x101db518], 0xe94
mov esi, dword [ebp - 0x24]
movzx esi, byte [esi + edx]
add esi, ecx
mov eax, esi
mov dword [ebp - 0x34], edx
cdq
idiv edi
mov dword [0x101db520], edx
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x101db524], cl
mov edi, dword [ebp - 0x24]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov dword [0x101db514], 0x20fe
mov cl, byte [0x101db524]
mov edx, dword [0x101db520]
mov byte [edi + edx], cl
mov edx, dword [0x101db51c]
movzx edx, byte [edi + edx]
mov ecx, dword [0x101db520]
movzx ecx, byte [edi + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x101db52c], ecx
mov dword [0x101db514], 0x211
mov cl, byte [edi + ecx]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x30]
mov ch, byte [edx + esi]
mov byte [0x101db531], ch
mov byte [0x101db532], cl
mov dword [0x101db514], 0x1106
xor ch, cl
mov byte [0x101db530], ch
mov edx, dword [ebp - 0x20]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp ebx, edx
mov dword [ebp - 0x38], ebx
je 0x101bea3f
mov eax, dword [0x101db520]
mov ecx, dword [0x101db514]
mov edx, dword [0x101db51c]
mov esi, dword [ebp - 0x38]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], edx
jmp 0x101bea56
Function at 0x101bec14
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [0x101db520], 0
mov byte [0x101db524], 0
mov dword [0x101db514], 0x9b7
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
xor eax, eax
mov dword [0x101db51c], 0
mov dword [ebp - 0x1c], eax
jmp 0x101bec88
mov dword [0x101db514], 0x20f6
mov dword [0x101db518], 0xbda
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov dword [0x101db51c], 0
mov dword [ebp - 0x20], eax
jmp 0x101becba
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x101db514], 0x1a34
mov eax, dword [0x101db51c]
add eax, 1
mov dword [0x101db51c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x101bec88
jmp 0x101bec77
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x101db528], 0
mov dword [0x101db518], 0xa70
mov edx, dword [0x101db520]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + eax]
add edi, edx
mov dword [ebp - 0x24], eax
xor edx, edx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov dword [0x101db528], edi
mov dword [0x101db514], 0x2605
mov eax, edi
cdq
idiv ecx
mov dword [0x101db520], edx
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov cl, byte [ecx + edi]
mov byte [0x101db524], cl
mov dword [0x101db518], 0x1d7f
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov dword [0x101db514], 0x14bd
mov cl, byte [0x101db524]
mov edx, dword [0x101db520]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov edx, dword [0x101db51c]
add edx, 1
mov dword [0x101db51c], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x101becba
jmp 0x101bec5b
Function at 0x101bed7a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [ebp + 8]
mov ecx, dword [0x101db514]
add ecx, 0x89f
mov dword [0x101db514], ecx
mov dword [0x101db518], 0x1fa4
mov dword [ebp - 0x10], eax
call fcn.101bdb41
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x101bedd2
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov dword [0x101db514], 0xfffff354
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov esi, dword [edx + eax + 0x24]
mov dword [0x101db518], 0x1e93
mov edi, dword [edx + eax + 0x18]
cmp edi, 0
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], ebx
jne 0x101bee23
mov eax, dword [ebp - 0x34]
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov ecx, 0xfffff354
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x2c]
add edx, esi
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
xor esi, esi
add ecx, 0x89f
mov edi, dword [ebp - 0x28]
mov ebx, dword [edi + edx*4]
mov dword [0x101db514], ecx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x54], esi
mov eax, dword [ebp - 0x54]
mov ecx, eax
mov edx, dword [ebp - 0x48]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x59], bh
mov byte [ebp - 0x5a], cl
je 0x101beeb8
mov eax, dword [ebp - 0x58]
add eax, 1
mov cl, byte [ebp - 0x59]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x5a]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x54], eax
jne 0x101bee67
mov al, byte [ebp - 0x5a]
test al, 1
jne 0x101beef4
jmp 0x101beec1
xor eax, eax
mov ecx, dword [ebp - 0x44]
add ecx, 2
mov edx, dword [ebp - 0x4c]
add edx, 1
mov esi, dword [ebp - 0x30]
cmp edx, esi
mov edi, dword [ebp - 0x50]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], ecx
jb 0x101bee3b
jmp 0x101bee18
mov eax, dword [ebp - 0x44]
movzx ecx, word [eax]
mov dword [ebp - 0x60], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
add eax, dword [eax + ecx + 0x1c]
mov dword [0x101db514], 0x5ea
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x60]
add edx, dword [eax + esi*4]
mov dword [0x101db518], 0x19e
mov dword [ebp - 0x34], edx
jmp 0x101bee18
Function at 0x101bef2c
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [0x101db514]
add eax, 0xfffff2a7
mov dword [0x101db514], eax
mov dword [ebp - 0x10], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 0x10], eax
xor ecx, ecx
mov dword [0x101db518], 0x1944
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x101db514], 0x2173
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], ecx
jmp 0x101beff6
mov eax, 0xb8a
mov ecx, 0x23bc
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x20]
mov di, word [edx + esi*2 - 0xe]
cmp di, 0x6c
sete bl
cmp di, 0x6c
mov byte [ebp - 0x21], bl
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
je 0x101befb1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [0x101db514], eax
mov cl, byte [ebp - 0x21]
and cl, 1
movzx eax, cl
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x14], 0x64
je 0x101bf060
jmp 0x101bf096
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x101bf04b
jmp 0x101bf096
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edx
je 0x101bf023
mov eax, dword [ebp - 0x30]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x34], eax
jl 0x101beff6
mov eax, dword [ebp - 0x34]
mov dword [0x101db518], 0x1341
mov dword [0x101db514], 0x356f
mov ecx, dword [ebp - 0x18]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x20], eax
je 0x101befe2
jmp 0x101bf096
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x101befca
jmp 0x101bf096
mov dword [0x101db514], 0x8c1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x101bf096
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff8
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x38]
cmp word [eax + ecx*2], 0x6c
je 0x101bef7e
xor eax, eax
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402bf0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x22b4008], 0x8088405
inc edx
mov dword [ebx + 0x22b4008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x404464
Capabilities:
Packed with generic packer

Disassembly:
test edx, edx
je 0x4044c9
test ecx, ecx
je fcn.0040419c
cmp edx, dword [eax]
je 0x4044d0
cmp ecx, dword [eax]
je 0x404486
push eax
push ecx
call fcn.0040419c
pop edx
pop eax
jmp fcn.00404420
push ebx
push esi
push edi
mov ebx, edx
mov esi, ecx
push eax
mov eax, dword [ebx - 4]
add eax, dword [esi - 4]
call fcn.0040420c
mov edi, eax
mov edx, eax
mov eax, ebx
mov ecx, dword [ebx - 4]
call fcn.0040293c
mov edx, edi
mov eax, esi
mov ecx, dword [esi - 4]
add edx, dword [ebx - 4]
call fcn.0040293c
pop eax
mov edx, edi
test edi, edi
je 0x4044c0
dec dword [edi - 8]
call fcn.0040419c
pop edi
pop esi
pop ebx
ret
mov edx, ecx
jmp fcn.0040419c
mov edx, ecx
jmp fcn.00404420

Function at 0x42f460
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push ebp
mov edi, ecx
mov ecx, dword [ebp + 8]
mov esi, ecx
shr esi, 2
je 0x42f48d
lea edi, [edi + esi*4]
lea edx, [edx + esi*4]
lea eax, [eax + esi*4]
neg esi
mov ebx, dword [eax + esi*4]
mov ebp, dword [edx + esi*4]
mov dword [edi + esi*4], ebx
xor dword [eax + esi*4], ebp
inc esi
jne 0x42f47e
and ecx, 3
je 0x42f4a5
mov bl, byte [ecx + eax - 1]
mov bh, byte [ecx + edx - 1]
mov byte [ecx + edi - 1], bl
xor byte [ecx + eax - 1], bh
dec ecx
jne 0x42f492
pop ebp
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x42f4b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push ebp
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push esi
shr esi, 2
je 0x42f4e9
lea ecx, [ecx + esi*4]
lea edi, [edi + esi*4]
lea edx, [edx + esi*4]
lea eax, [eax + esi*4]
neg esi
mov ebp, dword [eax + esi*4]
mov ebx, dword [edi + esi*4]
xor ebx, dword [edx + esi*4]
mov dword [edx + esi*4], ebx
xor ebx, dword [ecx + esi*4]
mov dword [edi + esi*4], ebp
mov dword [eax + esi*4], ebx
inc esi
jne 0x42f4d1
pop esi
and esi, 3
je 0x42f50e
mov bl, byte [esi + eax - 1]
mov bh, byte [esi + edx - 1]
xor bh, byte [esi + edi - 1]
mov byte [esi + edx - 1], bh
xor bh, byte [esi + ecx - 1]
mov byte [esi + edi - 1], bl
mov byte [esi + eax - 1], bh
dec esi
jne 0x42f4ef
pop ebp
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x42f518
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov esi, ecx
shr esi, 2
je 0x42f544
lea edi, [edi + esi*4]
lea edx, [edx + esi*4]
lea eax, [eax + esi*4]
neg esi
mov ebx, dword [edx + esi*4]
xor ebx, dword [eax + esi*4]
mov dword [edi + esi*4], ebx
mov dword [eax + esi*4], ebx
inc esi
jne 0x42f535
and ecx, 3
je 0x42f55c
mov bl, byte [ecx + edx - 1]
xor bl, byte [ecx + eax - 1]
mov byte [ecx + edi - 1], bl
mov byte [ecx + eax - 1], bl
dec ecx
jne 0x42f549
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x42f564
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
shr ecx, 1
lea edi, [eax + ecx*8]
lea edx, [edx + ecx*8]
neg ecx
mov ebx, dword [edx + ecx*8]
mov eax, dword [edx + ecx*8 + 4]
xor dword [edi + ecx*8], ebx
xor dword [edi + ecx*8 + 4], eax
inc ecx
jne 0x42f570
pop edi
pop ebx
ret

Function at 0x42fe8c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call dword [eax + 0x20]
mov esi, eax
mov eax, esi
shr eax, 2
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
call fcn.0042fae4
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x21ddfcb
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, esi
add eax, eax
push eax
mov eax, dword [ebp - 8]
pop edx
mov ecx, edx
cdq
idiv ecx
mov edi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x14], eax
dec edi
test edi, edi
jl 0x42ff3a
inc edi
mov edx, dword [ebp - 0x10]
mov eax, ebx
mov ecx, esi
call fcn.0040293c
mov edx, ebx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
call fcn.0042f564
lea eax, [ebx + esi]
mov ebx, eax
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov ecx, esi
call fcn.0040293c
mov edx, ebx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov edx, dword [ebp - 0x10]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
call fcn.0042f564
lea eax, [ebx + esi]
mov ebx, eax
dec edi
jne 0x42fee7
mov eax, esi
add eax, eax
push eax
mov eax, dword [ebp - 8]
pop edx
mov ecx, edx
cdq
idiv ecx
mov edi, edx
cmp esi, edi
jg 0x42ff88
mov edx, dword [ebp - 0x10]
mov eax, ebx
mov ecx, esi
call fcn.0040293c
mov edx, ebx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
call fcn.0042f564
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x10]
mov ecx, esi
call fcn.0040293c
lea eax, [ebx + esi]
mov ebx, eax
sub edi, esi
test edi, edi
jle 0x42ffb2
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
dec edi
test edi, edi
jl 0x42ffb2
inc edi
xor eax, eax
mov edx, dword [ebp - 4]
mov edx, dword [edx + 8]
mov dl, byte [edx + eax]
xor byte [ebx + eax], dl
inc eax
dec edi
jne 0x42ffa2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x21ddfd2
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0042fc80
ret
Function at 0x43e794
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
mov bl, dl
dec ebx
test ebx, ebx
jl 0x43e7e8
inc ebx
xor edx, edx
mov ecx, edx
shl ecx, 2
movzx esi, byte [eax + ecx]
lea esi, [esi*4 + 0x22b4814]
mov esi, dword [esi]
movzx edi, byte [eax + ecx + 1]
lea edi, [edi*4 + 0x22b4c14]
xor esi, dword [edi]
movzx edi, byte [eax + ecx + 2]
lea edi, [edi*4 + 0x22b5014]
xor esi, dword [edi]
movzx edi, byte [eax + ecx + 3]
lea edi, [edi*4 + 0x22b5414]
xor esi, dword [edi]
lea ecx, [eax + ecx]
mov dword [ecx], esi
inc edx
dec ebx
jne 0x43e7a3
pop edi
pop esi
pop ebx
ret