joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445e33
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [ebp + 8], ebx
je 0x445e50
cmp dword [ebp + 8], 3
jne 0x445ec8
call fcn.00445cef
jmp 0x445e5f
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 8]
cmp eax, ebx
je 0x445ec8
push dword [ebp + 0xc]
push eax
call fcn.00445d96
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x445ec8
cmp dword [ebp + 8], 3
jne 0x445ec8
mov eax, dword [esi]
cmp eax, 0x6c64746e
je 0x445e8a
cmp eax, 0x4c44544e
jne 0x445ec8
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x3c]
mov ecx, dword [ecx + eax + 0x78]
add esi, 6
mov edx, esi
shr edx, 0x10
add ecx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esi
test dx, dx
jne 0x445ece
movzx edx, si
sub edx, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x1c]
lea ecx, [ecx + edx*4]
mov ecx, dword [ecx + eax]
add ecx, eax
mov esi, ecx
mov eax, esi
pop esi
pop ebx
leave
ret
mov esi, dword [ecx + 0x20]
push edi
mov edi, dword [ecx + 0x24]
add esi, eax
add edi, eax
mov dword [ebp + 8], ebx
cmp dword [ecx + 0x18], ebx
jbe 0x445f25
mov edx, dword [esi]
mov ebx, dword [ebp - 8]
add edx, eax
mov al, byte [edx]
cmp al, byte [ebx]
jne 0x445f08
test al, al
je 0x445f04
mov al, byte [edx + 1]
cmp al, byte [ebx + 1]
jne 0x445f08
add edx, 2
add ebx, 2
test al, al
jne 0x445ee8
xor eax, eax
jmp 0x445f0d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x445f35
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
add esi, 4
add edi, 2
cmp eax, dword [ecx + 0x18]
mov eax, dword [ebp - 4]
jb 0x445ee1
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 8]
pop edi
cmp esi, dword [ecx + 0x18]
jne 0x445ebb
xor ecx, ecx
jmp 0x445ec6
movzx edx, word [edi]
mov eax, dword [ebp - 4]
jmp 0x445f28

Function at 0x447f47
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
and dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 8]
push 0x78740534
push eax
call fcn.00447fee
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
je 0x447fe9
lea eax, [ebp - 0x54]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
mov dword [edx], 0x65006b
add edx, 4
mov dword [edx], 0x6e0072
add edx, 4
mov dword [edx], 0x6c0065
add edx, 4
mov dword [edx], 0x320033
add edx, 4
mov dword [edx], 0x64002e
add edx, 4
mov dword [edx], 0x6c006c
add edx, 4
and dword [edx], 0
lea eax, [ebp - 4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x54]
push 0x18
mov dword [ebp - 0x18], eax
pop eax
mov word [ebp - 0x1c], ax
push 0x1a
pop eax
mov word [ebp - 0x1a], ax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
and eax, 0
push eax
push eax
call dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
leave
ret
Function at 0x447fee
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x3c]
mov ecx, dword [eax + ebx + 0x78]
mov eax, dword [ebp + 0xc]
shr eax, 0x10
add ecx, ebx
test ax, ax
jne 0x448020
movzx eax, word [ebp + 0xc]
sub eax, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + ebx]
add eax, ebx
pop ebx
leave
ret
and dword [ebp - 4], 0
push esi
mov esi, dword [ecx + 0x20]
push edi
mov edi, dword [ecx + 0x24]
add esi, ebx
add edi, ebx
cmp dword [ecx + 0x18], 0
jbe 0x448075
mov eax, dword [esi]
and dword [ebp - 8], 0
add eax, ebx
mov dl, byte [eax]
test dl, dl
je 0x44805c
mov ebx, dword [ebp - 8]
movsx edx, dl
rol ebx, 7
xor ebx, edx
inc eax
mov dl, byte [eax]
mov dword [ebp - 8], ebx
test dl, dl
jne 0x448044
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 8], eax
je 0x448086
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add esi, 4
add edi, 2
cmp eax, dword [ecx + 0x18]
jb 0x448036
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
pop edi
pop esi
cmp edx, dword [ecx + 0x18]
jne 0x448012
xor eax, eax
jmp 0x44801d
movzx eax, word [edi]
jmp 0x448078

Function at 0x44808b
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [ebp + 8], ebx
je 0x4480a8
cmp dword [ebp + 8], 3
jne 0x448120
call fcn.00447f47
jmp 0x4480b7
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 8]
cmp eax, ebx
je 0x448120
push dword [ebp + 0xc]
push eax
call fcn.00447fee
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x448120
cmp dword [ebp + 8], 3
jne 0x448120
mov eax, dword [esi]
cmp eax, 0x6c64746e
je 0x4480e2
cmp eax, 0x4c44544e
jne 0x448120
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x3c]
mov ecx, dword [ecx + eax + 0x78]
add esi, 6
mov edx, esi
shr edx, 0x10
add ecx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esi
test dx, dx
jne 0x448126
movzx edx, si
sub edx, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x1c]
lea ecx, [ecx + edx*4]
mov ecx, dword [ecx + eax]
add ecx, eax
mov esi, ecx
mov eax, esi
pop esi
pop ebx
leave
ret
mov esi, dword [ecx + 0x20]
push edi
mov edi, dword [ecx + 0x24]
add esi, eax
add edi, eax
mov dword [ebp + 8], ebx
cmp dword [ecx + 0x18], ebx
jbe 0x44817d
mov edx, dword [esi]
mov ebx, dword [ebp - 8]
add edx, eax
mov al, byte [edx]
cmp al, byte [ebx]
jne 0x448160
test al, al
je 0x44815c
mov al, byte [edx + 1]
cmp al, byte [ebx + 1]
jne 0x448160
add edx, 2
add ebx, 2
test al, al
jne 0x448140
xor eax, eax
jmp 0x448165
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x44818d
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
add esi, 4
add edi, 2
cmp eax, dword [ecx + 0x18]
mov eax, dword [ebp - 4]
jb 0x448139
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 8]
pop edi
cmp esi, dword [ecx + 0x18]
jne 0x448113
xor ecx, ecx
jmp 0x44811e
movzx edx, word [edi]
mov eax, dword [ebp - 4]
jmp 0x448180
Function at 0x44cc73
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
mov edx, dword [ebp + 8]
je 0x44ccab
mov ecx, dword [ebp + 0x10]
push esi
push edi
mov eax, dword [ecx]
movzx edi, byte [edx]
dec dword [ebp + 0xc]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
xor eax, dword [esi*4 + 0xc403340]
inc edx
cmp dword [ebp + 0xc], 0
mov dword [ecx], eax
jne 0x44cc84
pop edi
pop esi
pop ebp
ret

Function at 0x44e15b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44e1a6
add eax, dword [eax + 0x3c]
mov ecx, 0x4550
cmp dword [eax], ecx
jne 0x44e1a6
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
cmp dword [eax], ecx
jne 0x44e1a6
mov ecx, dword [ebp + 0x10]
add eax, 4
mov dword [edx], eax
add eax, 0x14
mov dword [ecx], eax
mov ecx, 0x10b
cmp word [eax], cx
jne 0x44e1a6
mov ecx, dword [ebp + 0x14]
add eax, 0xe0
mov dword [ecx], eax
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x44efe2
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x3c]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + edx + 0x78]
shr ecx, 0x10
add eax, edx
test cx, cx
jne 0x44f013
movzx ecx, word [ebp + 0xc]
sub ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
leave
ret 8
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [eax + 0x20]
push edi
mov edi, dword [eax + 0x24]
add esi, edx
add edi, edx
cmp dword [eax + 0x18], 0
jbe 0x44f06e
mov ecx, dword [esi]
mov ebx, dword [ebp + 0xc]
add ecx, edx
mov dl, byte [ecx]
cmp dl, byte [ebx]
jne 0x44f051
test dl, dl
je 0x44f04d
mov dl, byte [ecx + 1]
cmp dl, byte [ebx + 1]
jne 0x44f051
add ecx, 2
add ebx, 2
test dl, dl
jne 0x44f031
xor ecx, ecx
jmp 0x44f056
sbb ecx, ecx
sbb ecx, 0xffffffff
mov edx, dword [ebp + 8]
test ecx, ecx
je 0x44f080
inc dword [ebp - 4]
mov ecx, dword [ebp - 4]
add esi, 4
add edi, 2
cmp ecx, dword [eax + 0x18]
jb 0x44f02a
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 4]
cmp esi, dword [eax + 0x18]
pop edi
pop esi
pop ebx
jne 0x44f004
xor eax, eax
jmp 0x44f00f
movzx ecx, word [edi]
jmp 0x44f071

Function at 0x44f2fd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
push esi
mov esi, dword [eax + ecx + 0x78]
mov eax, dword [ebp + 0xc]
shr eax, 0x10
add esi, ecx
test ax, ax
jne 0x44f32e
movzx eax, word [ebp + 0xc]
sub eax, dword [esi + 0x10]
mov edx, dword [esi + 0x1c]
lea eax, [edx + eax*4]
mov eax, dword [eax + ecx]
add eax, ecx
pop esi
leave
ret
and dword [ebp - 4], 0
push ebx
mov ebx, dword [esi + 0x24]
push edi
mov edi, dword [esi + 0x20]
add edi, ecx
add ebx, ecx
cmp dword [esi + 0x18], 0
jbe 0x44f368
mov eax, dword [edi]
add eax, ecx
push eax
call fcn.00469f9d
pop ecx
mov ecx, dword [ebp + 8]
cmp eax, dword [ebp + 0xc]
je 0x44f379
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 4
add ebx, 2
cmp eax, dword [esi + 0x18]
jb 0x44f344
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
pop edi
pop ebx
cmp edx, dword [esi + 0x18]
jne 0x44f320
xor eax, eax
jmp 0x44f32b
movzx eax, word [ebx]
jmp 0x44f36b

Function at 0x45298a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jle 0x4529aa
mov ecx, dword [ebp + 8]
mov dl, byte [eax + ecx]
xor dl, 0x4c
sub dl, byte [eax + ecx - 1]
mov byte [eax + ecx], dl
dec eax
test eax, eax
jg 0x452998
pop ebp
ret
Function at 0x452b95
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [ebp - 0x10], edi
cmp dword [ebp + 0xc], edi
je 0x452cbb
push ebx
mov eax, dword [ebp + 8]
mov al, byte [eax]
dec dword [ebp + 0xc]
mov byte [ebp + esi - 4], al
mov dl, byte [ebp - 2]
mov al, byte [ebp - 3]
mov cl, byte [ebp - 4]
inc esi
inc dword [ebp + 8]
cmp esi, 3
jne 0x452c30
mov dl, cl
shr dl, 2
mov byte [ebp - 8], dl
mov dl, cl
and dl, 3
shl dl, 4
mov bl, al
shr bl, 4
add dl, bl
mov bl, byte [ebp - 2]
mov byte [ebp - 7], dl
mov dl, al
and dl, 0xf
shr bl, 6
shl dl, 2
add dl, bl
mov byte [ebp - 6], dl
mov dl, byte [ebp - 2]
mov bl, dl
and bl, 0x3f
and dword [ebp - 0xc], 0
mov byte [ebp - 5], bl
mov esi, dword [ebp - 0xc]
movzx esi, byte [ebp + esi - 8]
mov bl, byte [esi + 0xc403748]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp + 0x10]
mov byte [esi + edi], bl
mov edi, esi
inc edi
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 4
mov dword [ebp - 0x10], edi
jl 0x452c08
xor esi, esi
cmp dword [ebp + 0xc], 0
jne 0x452bae
test esi, esi
je 0x452cba
cmp esi, 3
jge 0x452c61
push 3
pop ecx
sub ecx, esi
push ecx
lea eax, [ebp + esi - 4]
push 0
push eax
call fcn.0046c28c
mov dl, byte [ebp - 2]
mov al, byte [ebp - 3]
mov cl, byte [ebp - 4]
add esp, 0xc
mov bl, cl
shr bl, 2
and cl, 3
mov byte [ebp - 8], bl
mov bl, al
shl cl, 4
shr bl, 4
add cl, bl
mov byte [ebp - 7], cl
and al, 0xf
mov cl, dl
shl al, 2
shr cl, 6
add al, cl
mov byte [ebp - 6], al
and dl, 0x3f
lea eax, [esi + 1]
xor ecx, ecx
mov byte [ebp - 5], dl
test eax, eax
jle 0x452cae
movzx edx, byte [ebp + ecx - 8]
mov dl, byte [edx + 0xc403748]
mov ebx, dword [ebp + 0x10]
mov byte [edi + ebx], dl
inc edi
inc ecx
cmp ecx, eax
jl 0x452c97
cmp esi, 3
jge 0x452cba
mov eax, dword [ebp + 0x10]
mov byte [edi + eax], 0x3d
pop ebx
mov eax, dword [ebp + 0x10]
mov byte [edi + eax], 0
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x4533c9
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop ebp
ret
Function at 0x45517f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
not eax
mov edx, 0xff
cmp edi, 8
jb 0x45523a
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0xc4037b0]
movzx ebx, byte [ecx + 1]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0xc4037b0]
movzx ebx, byte [ecx + 2]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0xc4037b0]
movzx ebx, byte [ecx + 3]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0xc4037b0]
movzx ebx, byte [ecx + 4]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0xc4037b0]
movzx ebx, byte [ecx + 5]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0xc4037b0]
movzx ebx, byte [ecx + 6]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0xc4037b0]
movzx ebx, byte [ecx + 7]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0xc4037b0]
add ecx, 8
sub edi, 8
dec esi
jne 0x45519d
pop ebx
test edi, edi
je 0x455253
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0xc4037b0]
inc ecx
dec edi
jne 0x45523e
pop edi
not eax
pop esi
pop ebp
ret

Function at 0x455259
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0xc4037b0]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0xc4037b0]
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x456495
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
mov esi, eax
lea eax, [ebp - 0x48]
push eax
push dword [esi + 0x48]
call dword [0xc401114]
test eax, eax
jne 0x4564b5
inc eax
jmp 0x456633
mov ecx, dword [ebp - 0x48]
xor eax, eax
push ebx
xor ebx, ebx
mov edx, ecx
inc eax
and edx, eax
mov dword [ebp - 8], ebx
je 0x4564ca
mov dword [ebp - 8], eax
test cl, 2
je 0x4564d3
or dword [ebp - 8], 2
test cl, 4
je 0x4564dc
or dword [ebp - 8], 4
mov eax, ecx
and eax, 0x10
je 0x4564e7
or dword [ebp - 8], 0x10
test cl, 0x20
je 0x4564f0
or dword [ebp - 8], 0x20
cmp eax, ebx
je 0x4564fd
or dword [ebp - 8], 0x40000000
jmp 0x456504
or dword [ebp - 8], 0x80000000
or dword [ebp - 8], 0x1000000
cmp edx, ebx
jne 0x456516
or dword [ebp - 8], 0x800000
push ebx
push dword [esi + 0x48]
call dword [0xc4011c8]
mov dword [esi + 0x3c], eax
cmp eax, 0x28
jbe 0x4565d8
cmp dword [esi + 0x10], ebx
jne 0x4565d8
push edi
mov edi, dword [0xc4011c4]
push ebx
push ebx
push ebx
push dword [esi + 0x48]
call edi
push ebx
mov ebx, dword [0xc4011c0]
lea eax, [ebp - 0xc]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [esi + 0x48]
call ebx
push 0
push 0
push 0x24
push dword [esi + 0x48]
call edi
push 0
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0x48]
call ebx
mov eax, 0x54ad
cmp word [ebp - 4], ax
jne 0x4565cd
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x34]
cmp dword [esi + 0x3c], ecx
jbe 0x4565cd
push 0
push 0
push eax
push dword [esi + 0x48]
call edi
push 0
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x48]
call ebx
mov eax, dword [ebp - 0x14]
cmp eax, 0x5a4d
je 0x4565c6
cmp eax, 0x454e
je 0x4565c6
cmp eax, 0x454c
je 0x4565c6
cmp eax, 0x4550
jne 0x4565cd
or dword [ebp - 8], 0x400000
xor eax, eax
push eax
push eax
push eax
push dword [esi + 0x48]
call edi
pop edi
push dword [ebp - 0x38]
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 8]
push dword [ebp - 0x3c]
mov dword [esi + 0x10], eax
call fcn.0045642d
push dword [ebp - 0x30]
mov dword [esi], eax
push dword [ebp - 0x34]
call fcn.0045642d
push dword [ebp - 0x40]
mov dword [esi + 4], eax
push dword [ebp - 0x44]
call fcn.0045642d
mov dword [esi + 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call fcn.004563d4
movzx eax, word [ebp - 4]
movzx ecx, word [ebp - 8]
shl eax, 0x10
or eax, ecx
add esp, 0x28
mov dword [esi + 0xc], eax
xor eax, eax
pop ebx
pop esi
leave
ret
Function at 0x456ce4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
test ecx, ecx
jne 0x456cf6
xor eax, eax
jmp 0x456dc6
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x456daa
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0xc403340]
movzx ebx, byte [ecx + 1]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0xc403340]
movzx ebx, byte [ecx + 2]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0xc403340]
movzx ebx, byte [ecx + 3]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0xc403340]
movzx ebx, byte [ecx + 4]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0xc403340]
movzx ebx, byte [ecx + 5]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0xc403340]
movzx ebx, byte [ecx + 6]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0xc403340]
movzx ebx, byte [ecx + 7]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0xc403340]
add ecx, 8
sub edi, 8
dec esi
jne 0x456d0d
pop ebx
test edi, edi
je 0x456dc3
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0xc403340]
inc ecx
dec edi
jne 0x456dae
not eax
pop esi
pop edi
pop ebp
ret

Function at 0x456dc9
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0xc403340]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0xc403340]
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x458351
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 8], 0
jne 0x458366
or eax, 0xffffffff
jmp 0x458454
mov eax, dword [esi + 4]
mov ecx, eax
shr ecx, 4
lea eax, [ecx + eax + 0x43]
mov ecx, dword [esi + 0x10]
mov dword [ebp - 4], eax
lea eax, [eax + ecx*2]
push edi
push eax
call fcn.0044f888
mov edi, eax
pop ecx
test edi, edi
jne 0x45838d
push 0xfffffffffffffffe
jmp 0x4583b1
push 0xc4300f8
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 0x10]
lea eax, [edi + eax*2]
push eax
push dword [esi + 4]
push dword [esi + 8]
call fcn.0044e6be
add esp, 0x14
test eax, eax
je 0x4583b7
push 0xfffffffffffffffd
pop eax
jmp 0x458453
mov eax, dword [esi + 0x10]
push ebx
mov ebx, dword [ebp - 4]
add eax, eax
lea ecx, [eax + ebx]
mov dword [esi + 0xc], 1
cmp ecx, dword [esi + 4]
jae 0x4583ea
lea ecx, [eax + edi]
push ebx
push ecx
mov ecx, dword [esi + 8]
add ecx, eax
push ecx
call fcn.0046c292
push edi
call fcn.0044f8dc
add esp, 0x10
jmp 0x4583f6
push dword [esi + 8]
call fcn.0044f8dc
pop ecx
mov dword [esi + 8], edi
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
and dword [ebp - 4], 0
mov dword [eax + ecx], edx
mov eax, dword [esi + 0x10]
lea eax, [ebx + eax*2]
mov dword [esi + 4], eax
mov eax, dword [esi + 8]
and dword [eax], 0
mov eax, dword [esi + 0x10]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [esi + 4]
sub ecx, eax
push ecx
mov ecx, dword [esi + 8]
add ecx, eax
push ecx
call fcn.0044cc73
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 8]
mov dword [eax], ecx
xor ecx, ecx
add esp, 0xc
inc ecx
pop ebx
cmp dword [esi + 4], ecx
jbe 0x458451
mov eax, dword [esi + 8]
mov dl, byte [eax + ecx - 1]
xor byte [eax + ecx], dl
inc ecx
cmp ecx, dword [esi + 4]
jb 0x458441
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x458536
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x45854e
cmp dword [ebp + 8], 3
jne 0x4585a3
call fcn.0046b2b6
jmp 0x45855d
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 8]
test eax, eax
je 0x4585a3
push dword [ebp + 0xc]
push eax
call fcn.0044f2fd
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4585a3
cmp dword [ebp + 8], 3
jne 0x4585a3
mov eax, dword [esi]
cmp eax, 0x6c64746e
je 0x458588
cmp eax, 0x4c44544e
jne 0x4585a3
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + 8]
add esi, 6
push esi
push eax
call fcn.0044efe2
mov esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x45a766
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [edi + 0x74], eax
mov eax, dword [edi + 0x8c]
cmp ecx, eax
jbe 0x45a789
mov ecx, eax
mov dword [edi + 0x78], ecx
test ecx, ecx
je 0x45a90a
cmp dword [edi + 0x6c], 0
jne 0x45a816
mov eax, dword [edi + 0x88]
test eax, eax
je 0x45a816
mov ebx, 0x4000
cmp eax, ebx
jae 0x45a7af
mov ebx, eax
push dword [edi + 0x64]
mov eax, ebx
mov esi, edi
call fcn.004552e1
pop ecx
test eax, eax
je 0x45a912
sub dword [edi + 0x88], ebx
test byte [edi + 0x3c], 1
mov eax, dword [edi + 0x64]
mov dword [edi + 0x68], eax
mov dword [edi + 0x6c], ebx
je 0x45a816
xor esi, esi
test ebx, ebx
je 0x45a816
mov eax, dword [edi + 0x98]
mov ecx, dword [edi + 0x64]
lea edx, [esi + ecx]
and eax, 0xfffd
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
shr ecx, 8
xor byte [edx], cl
mov eax, dword [edi + 0x64]
mov dl, byte [esi + eax]
lea ecx, [edi + 0x90]
call fcn.00455259
inc esi
cmp esi, ebx
jb 0x45a7df
mov ecx, dword [edi + 0x9c]
mov eax, dword [edi + 0x6c]
cmp ecx, eax
jbe 0x45a825
mov ecx, eax
test ecx, ecx
je 0x45a84e
mov edx, dword [edi + 0x68]
lea esi, [edx + ecx]
mov dl, byte [esi - 1]
sub eax, ecx
sub dword [edi + 0x9c], ecx
mov dword [edi + 0x6c], eax
mov dword [edi + 0x68], esi
jne 0x45a84e
cmp dl, byte [edi + 0xa0]
jne 0x45a91b
cmp word [edi + 0x3e], 0
jne 0x45a8ac
mov eax, dword [edi + 0x78]
mov esi, dword [edi + 0x6c]
cmp eax, esi
jae 0x45a861
mov esi, eax
push esi
push dword [edi + 0x68]
push dword [edi + 0x74]
call fcn.0046c292
mov ecx, dword [edi + 0x74]
mov eax, dword [edi + 0x84]
push esi
call fcn.0045517f
sub dword [edi + 0x8c], esi
mov ecx, dword [edi + 0x8c]
sub dword [edi + 0x6c], esi
sub dword [edi + 0x78], esi
add dword [edi + 0x68], esi
add dword [edi + 0x7c], esi
add dword [ebp - 4], esi
mov dword [edi + 0x84], eax
mov eax, dword [edi + 0x74]
add eax, esi
add esp, 0x10
mov dword [edi + 0x74], eax
test ecx, ecx
jmp 0x45a8fe
mov eax, dword [edi + 0x74]
mov ebx, dword [edi + 0x7c]
push 2
lea esi, [edi + 0x68]
mov dword [ebp + 8], eax
call fcn.0045a476
pop ecx
mov dword [ebp + 0xc], eax
test eax, eax
je 0x45a8cc
cmp eax, 1
jne 0x45a924
mov esi, dword [edi + 0x7c]
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 0x84]
sub esi, ebx
push esi
call fcn.0045517f
sub dword [edi + 0x8c], esi
add dword [ebp - 4], esi
cmp dword [ebp + 0xc], 1
mov dword [edi + 0x84], eax
mov eax, dword [edi + 0x8c]
pop ecx
je 0x45a90a
test eax, eax
je 0x45a90a
cmp dword [edi + 0x78], 0
jne 0x45a794
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
mov dword [edi + 8], 7
jmp 0x45a92b
mov dword [edi + 8], 0x13
jmp 0x45a92b
mov dword [edi + 8], 0x12
xor eax, eax
jmp 0x45a90d