joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420020
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a738
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x51384c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
cmp dword [ecx + 4], 0xffffffff
jne 0x420080
cmp dword [ecx + 8], 0
jne 0x420080
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x42006a
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
push str.Failed_to_write_because_file_is_not_open.
call edx
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
test edi, edi
je 0x420097
mov dword [edi], 0
mov dword [edi + 4], 0
mov edx, dword [ebp + 0xc]
mov eax, edx
or eax, dword [ebp + 0x10]
je 0x420187
cmp dword [ebp + 0x10], 0
jl 0x4200bc
jg 0x4200b5
cmp edx, 0x989680
jbe 0x4200bc
mov esi, 0x989680
jmp 0x4200be
mov esi, edx
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x42013f
push 0
lea ecx, [ebp + 8]
push ecx
push esi
push ebx
push eax
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4200e5
cmp dword [ebp + 8], esi
je 0x42015b
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x420129
lea ecx, [ebp - 0x38]
call fcn.004065a0
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0
call fcn.00407f10
mov esi, dword [edi]
lea ecx, [ebp - 0x38]
call fcn.00405cc0
mov edx, dword [esi + 0x28]
push eax
push str.WriteFileError
mov ecx, edi
call edx
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.004067c0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ecx + 8]
test eax, eax
je 0x420161
push eax
push 1
push esi
push ebx
call fcn.0046659d
add esp, 0x10
cmp eax, 1
jne 0x42019d
mov dword [ebp + 8], esi
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
add ebx, esi
sub edx, esi
mov eax, 0
sbb dword [ebp + 0x10], eax
mov dword [ebp + 0xc], edx
cmp edi, eax
je 0x42017c
mov esi, dword [ebp + 8]
add dword [edi], esi
adc dword [edi + 4], eax
mov eax, edx
or eax, dword [ebp + 0x10]
jne 0x4200a5
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x4201b0
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
push str.fwrite_failed.
call edx
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4201d0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479ad8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x51384c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x42026f
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x420259
mov esi, dword [ebp + 8]
test esi, esi
je 0x420259
lea ecx, [ebp - 0x34]
call fcn.004065a0
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0
call fcn.00407f10
mov edi, dword [esi]
lea ecx, [ebp - 0x34]
call fcn.00405cc0
push eax
mov eax, dword [edi + 0x10]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
push str.Failed_to_get_file_size__32_
mov ecx, esi
call eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], ebx
call fcn.004067c0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x420299
push ecx
call fcn.004701c0
push eax
call fcn.00466617
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4202b0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a118
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push esi
push edi
mov eax, dword [0x51384c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x420379
lea ecx, [ebp - 0x10]
push ecx
xor edi, edi
push eax
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x420359
mov esi, dword [ebp + 8]
cmp esi, edi
je 0x420341
lea ecx, [ebp - 0x38]
call fcn.004065a0
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], edi
call fcn.00407f10
mov edi, dword [esi]
lea ecx, [ebp - 0x38]
call fcn.00405cc0
mov edx, dword [edi + 0x10]
push eax
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push str.Failed_to_get_file_size__64_
mov ecx, esi
call edx
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.004067c0
or eax, 0xffffffff
or edx, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x10]
push ecx
push eax
call fcn.0041eb70
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x420341
push ecx
call fcn.004701c0
push eax
call fcn.0046670d
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4308f0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx + 0x20]
movzx eax, word [ecx + 0x14]
push ebx
push esi
push edi
movzx edi, word [ecx + 6]
xor esi, esi
lea eax, [eax + ecx + 0x18]
test edi, edi
je 0x43092f
mov ebx, dword [ebp + 8]
mov edi, edi
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x43091a
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x430927
add edx, ecx
cmp ebx, edx
jb 0x430931
inc esi
add eax, 0x28
cmp esi, edi
jb 0x430910
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x436ce0
Capabilities:
Hash data using crc32b

Disassembly:
cmp byte [0x515ee4], 0
jne 0x436eaf
push 0x400
call fcn.00462d62
add esp, 4
push ebx
push esi
mov dword [0x515ee8], eax
xor eax, eax
push edi
xor ecx, ecx
test al, 1
je 0x436d0f
mov ecx, 0x80
mov edx, eax
shr edx, 1
test dl, 1
je 0x436d1b
or ecx, 0x40
shr edx, 1
test dl, 1
je 0x436d25
or ecx, 0x20
shr edx, 1
test dl, 1
je 0x436d2f
or ecx, 0x10
shr edx, 1
test dl, 1
je 0x436d39
or ecx, 8
shr edx, 1
test dl, 1
je 0x436d43
or ecx, 4
shr edx, 1
test dl, 1
je 0x436d4d
or ecx, 2
test dl, 2
je 0x436d55
or ecx, 1
mov edx, dword [0x515ee8]
shl ecx, 0x18
mov dword [edx + eax*4], ecx
mov edx, dword [0x515ee8]
mov ecx, dword [edx + eax*4]
mov esi, ecx
and esi, 0x80000000
neg esi
sbb esi, esi
and esi, 0x4c11db7
add ecx, ecx
xor esi, ecx
mov dword [edx + eax*4], esi
mov edx, dword [0x515ee8]
mov ecx, dword [edx + eax*4]
mov esi, ecx
and esi, 0x80000000
neg esi
sbb esi, esi
and esi, 0x4c11db7
add ecx, ecx
xor esi, ecx
mov dword [edx + eax*4], esi
mov edx, dword [0x515ee8]
mov ecx, dword [edx + eax*4]
mov esi, ecx
and esi, 0x80000000
neg esi
sbb esi, esi
and esi, 0x4c11db7
add ecx, ecx
xor esi, ecx
mov dword [edx + eax*4], esi
mov edx, dword [0x515ee8]
mov ecx, dword [edx + eax*4]
mov esi, ecx
and esi, 0x80000000
neg esi
sbb esi, esi
and esi, 0x4c11db7
add ecx, ecx
xor esi, ecx
mov dword [edx + eax*4], esi
mov edx, dword [0x515ee8]
mov ecx, dword [edx + eax*4]
mov esi, ecx
and esi, 0x80000000
neg esi
sbb esi, esi
and esi, 0x4c11db7
add ecx, ecx
xor esi, ecx
mov dword [edx + eax*4], esi
mov edx, dword [0x515ee8]
mov ecx, dword [edx + eax*4]
mov esi, ecx
and esi, 0x80000000
neg esi
sbb esi, esi
and esi, 0x4c11db7
add ecx, ecx
xor esi, ecx
mov dword [edx + eax*4], esi
mov edx, dword [0x515ee8]
mov ecx, dword [edx + eax*4]
mov esi, ecx
and esi, 0x80000000
neg esi
sbb esi, esi
and esi, 0x4c11db7
add ecx, ecx
xor esi, ecx
mov dword [edx + eax*4], esi
mov edx, dword [0x515ee8]
mov ecx, dword [edx + eax*4]
mov esi, ecx
and esi, 0x80000000
neg esi
sbb esi, esi
and esi, 0x4c11db7
add ecx, ecx
xor esi, ecx
mov dword [edx + eax*4], esi
mov edi, dword [0x515ee8]
mov edx, dword [edi + eax*4]
xor esi, esi
lea ecx, [esi + 0x1f]
nop
test dl, 1
je 0x436e8e
mov ebx, 1
shl ebx, cl
or esi, ebx
dec ecx
shr edx, 1
cmp ecx, 0xffffffff
jg 0x436e80
mov dword [edi + eax*4], esi
inc eax
cmp eax, 0xff
jbe 0x436d04
pop edi
pop esi
mov byte [0x515ee4], 1
pop ebx
ret
Function at 0x436ed0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x51384c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x408], eax
test edi, edi
jne 0x436f0a
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00462848
mov esp, ebp
pop ebp
ret
push esi
call fcn.00436ce0
or esi, 0xffffffff
cmp dword [ebp - 0x408], 0
jne 0x436f3d
mov eax, dword [0x515ee8]
movzx edx, byte [ebx]
mov ecx, esi
and ecx, 0xff
xor ecx, edx
shr esi, 8
xor esi, dword [eax + ecx*4]
inc ebx
dec edi
jne 0x436f21
jmp 0x437042
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.00464150
mov ecx, dword [0x515ee8]
add esp, 0xc
lea esp, [esp]
movzx eax, byte [ebx]
inc dword [ebp + eax*4 - 0x404]
mov edx, esi
and edx, 0xff
xor edx, eax
shr esi, 8
xor esi, dword [ecx + edx*4]
inc ebx
dec edi
jne 0x436f60
mov ecx, dword [ebp - 0x404]
add ecx, dword [ebp - 0x400]
xor ebx, ebx
add ecx, dword [ebp - 0x3fc]
mov eax, 7
add ecx, dword [ebp - 0x3f8]
add ecx, dword [ebp - 0x3f4]
add ecx, dword [ebp - 0x3f0]
add ecx, dword [ebp - 0x3ec]
xor edx, edx
add edx, dword [ebp + eax*4 - 0x404]
add edi, dword [ebp + eax*4 - 0x400]
add eax, 2
cmp eax, 0x7f
jl 0x436fb1
cmp eax, 0x80
jge 0x436fd6
mov ebx, dword [ebp + eax*4 - 0x404]
inc eax
add edi, edx
add ebx, edi
xor edx, edx
xor edi, edi
mov dword [ebp - 0x40c], ebx
cmp eax, 0x100
jge 0x437030
mov ebx, pe_nt_image_headers32
sub ebx, eax
cmp ebx, 2
jl 0x437018
jmp 0x437000
add edx, dword [ebp + eax*4 - 0x404]
add edi, dword [ebp + eax*4 - 0x400]
add eax, 2
cmp eax, 0xff
jl 0x437000
cmp eax, 0x100
jge 0x437026
add ecx, dword [ebp + eax*4 - 0x404]
mov ebx, dword [ebp - 0x40c]
add edi, edx
add ecx, edi
mov eax, dword [ebp - 0x408]
shr ebx, 2
cmp ebx, ecx
sbb edx, edx
neg edx
mov word [eax], dx
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop edi
xor ecx, ebp
not eax
pop ebx
call fcn.00462848
mov esp, ebp
pop ebp
ret
Function at 0x4482b0
Capabilities:
Hash data using sha1

Disassembly:
xor eax, eax
mov dword [ecx + 0x10], 0x67452301
mov dword [ecx + 0x14], 0xefcdab89
mov dword [ecx + 0x18], 0x98badcfe
mov dword [ecx + 0x1c], 0x10325476
mov dword [ecx + 0x20], 0xc3d2e1f0
mov dword [ecx + 0x24], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
ret
Function at 0x4497a0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x51384c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov edx, dword [ebx + 0x48]
sub edx, 6
push esi
push edi
test edx, edx
jle 0x4497c9
mov esi, dword [ebp + 8]
mov ecx, edx
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x28], esi
test edx, edx
jle 0x44980b
cmp esi, dword [ebx + 0x48]
jg 0x449921
cmp eax, edx
jge 0x4497fc
cmp ecx, 4
jge 0x4497ff
mov edi, dword [ebp + eax*4 - 0x24]
lea esi, [ecx + esi*4]
inc eax
inc ecx
mov dword [ebx + esi*4 + 0x4c], edi
mov esi, dword [ebp - 0x28]
cmp eax, edx
jl 0x4497e3
cmp ecx, 4
jne 0x449807
inc esi
mov dword [ebp - 0x28], esi
xor ecx, ecx
cmp eax, edx
jl 0x4497d6
cmp esi, dword [ebx + 0x48]
jg 0x449921
mov dword [ebp - 0x2c], 0x50fb78
jmp 0x449820
movzx eax, byte [ebp + edx*4 - 0x27]
movzx eax, byte [eax + str.cw]
xor byte [ebp - 0x24], al
movzx eax, byte [ebp + edx*4 - 0x26]
movzx eax, byte [eax + str.cw]
xor byte [ebp - 0x23], al
movzx eax, byte [ebp + edx*4 - 0x25]
movzx eax, byte [eax + str.cw]
xor byte [ebp - 0x22], al
movzx eax, byte [ebp + edx*4 - 0x28]
movzx eax, byte [eax + str.cw]
xor byte [ebp - 0x21], al
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax]
xor byte [ebp - 0x24], al
add dword [ebp - 0x2c], 4
mov eax, 1
cmp edx, 8
je 0x449886
cmp edx, eax
jle 0x4498df
mov edi, dword [ebp + eax*4 - 0x28]
xor dword [ebp + eax*4 - 0x24], edi
inc eax
cmp eax, edx
jl 0x449877
jmp 0x4498df
mov edi, dword [ebp + eax*4 - 0x28]
xor dword [ebp + eax*4 - 0x24], edi
inc eax
cmp eax, 4
jl 0x449886
movzx eax, byte [ebp - 0x18]
movzx eax, byte [eax + str.cw]
xor byte [ebp - 0x14], al
movzx eax, byte [ebp - 0x17]
movzx eax, byte [eax + str.cw]
xor byte [ebp - 0x13], al
movzx eax, byte [ebp - 0x16]
movzx eax, byte [eax + str.cw]
xor byte [ebp - 0x12], al
movzx eax, byte [ebp - 0x15]
movzx eax, byte [eax + str.cw]
xor byte [ebp - 0x11], al
mov eax, 5
mov edi, dword [ebp + eax*4 - 0x28]
xor dword [ebp + eax*4 - 0x24], edi
inc eax
cmp eax, 8
jl 0x4498d1
xor eax, eax
test edx, edx
jle 0x449918
cmp esi, dword [ebx + 0x48]
jg 0x449921
cmp eax, edx
jge 0x449909
mov edi, edi
cmp ecx, 4
jge 0x44990c
mov edi, dword [ebp + eax*4 - 0x24]
lea esi, [ecx + esi*4]
inc eax
inc ecx
mov dword [ebx + esi*4 + 0x4c], edi
mov esi, dword [ebp - 0x28]
cmp eax, edx
jl 0x4498f0
cmp ecx, 4
jne 0x449914
inc esi
mov dword [ebp - 0x28], esi
xor ecx, ecx
cmp eax, edx
jl 0x4498e5
cmp esi, dword [ebx + 0x48]
jle 0x449820
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00462848
mov esp, ebp
pop ebp
ret 4
Function at 0x449940
Capabilities:
Encode data using xor

Disassembly:
mov edx, 1
cmp dword [ecx + 0x48], edx
jle 0x449a2a
push esi
lea eax, [ecx + 0x5e]
push edi
jmp 0x449960
movzx esi, byte [eax + 1]
mov esi, dword [esi*4 + 0x50f778]
movzx edi, byte [eax - 1]
xor esi, dword [edi*4 + 0x50ef78]
movzx edi, byte [eax]
xor esi, dword [edi*4 + 0x50f378]
movzx edi, byte [eax - 2]
xor esi, dword [edi*4 + 0x50eb78]
inc edx
mov dword [eax - 2], esi
movzx esi, byte [eax + 5]
mov esi, dword [esi*4 + 0x50f778]
movzx edi, byte [eax + 4]
xor esi, dword [edi*4 + 0x50f378]
movzx edi, byte [eax + 3]
xor esi, dword [edi*4 + 0x50ef78]
movzx edi, byte [eax + 2]
xor esi, dword [edi*4 + 0x50eb78]
add eax, 0x10
mov dword [eax - 0xe], esi
movzx esi, byte [eax - 7]
mov esi, dword [esi*4 + 0x50f778]
movzx edi, byte [eax - 8]
xor esi, dword [edi*4 + 0x50f378]
movzx edi, byte [eax - 9]
xor esi, dword [edi*4 + 0x50ef78]
movzx edi, byte [eax - 0xa]
xor esi, dword [edi*4 + 0x50eb78]
mov dword [eax - 0xa], esi
movzx esi, byte [eax - 3]
movzx edi, byte [eax - 4]
mov esi, dword [esi*4 + 0x50f778]
xor esi, dword [edi*4 + 0x50f378]
movzx edi, byte [eax - 5]
xor esi, dword [edi*4 + 0x50ef78]
movzx edi, byte [eax - 6]
xor esi, dword [edi*4 + 0x50eb78]
mov dword [eax - 6], esi
cmp edx, dword [ecx + 0x48]
jl 0x449960
pop edi
pop esi
ret
Function at 0x44a3d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov ebx, ecx
push edi
mov ecx, esi
call fcn.0045f630
cmp eax, 0x10
jae 0x44a3fc
mov edi, 0x10
nop
push 0
mov ecx, esi
call fcn.00409eb0
dec edi
jne 0x44a3f0
cmp byte [ebp + 0x18], 0
jne 0x44a424
mov ecx, esi
call fcn.00405cc0
test eax, eax
je 0x44a424
mov ecx, dword [eax]
mov dword [ebx + 0x38], ecx
mov edx, dword [eax + 4]
mov dword [ebx + 0x3c], edx
mov ecx, dword [eax + 8]
mov dword [ebx + 0x40], ecx
mov edx, dword [eax + 0xc]
mov dword [ebx + 0x44], edx
cmp dword [ebx + 0x2c], 0
je 0x44a438
pop edi
pop esi
mov eax, 0xfffffffb
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp dword [ebx + 0x34], 0
je 0x44a44c
pop edi
pop esi
mov eax, 0xfffffffa
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov esi, dword [ebp + 8]
test esi, esi
je 0x44a558
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x44a558
mov ecx, dword [ebx + 0x30]
cdq
and edx, 0x7f
add eax, edx
sar eax, 7
sub ecx, 0
mov dword [ebp + 0x18], eax
je 0x44a521
dec ecx
je 0x44a489
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebx + 0x38]
xor eax, dword [esi]
mov ecx, dword [esi + 4]
xor ecx, dword [ebx + 0x3c]
mov edx, dword [esi + 8]
mov edi, dword [ebp + 0x10]
xor edx, dword [ebx + 0x40]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0xc]
xor eax, dword [ebx + 0x44]
mov dword [ebp - 0xc], ecx
push edi
lea ecx, [ebp - 0x10]
push ecx
mov ecx, ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
call fcn.00449a30
mov eax, dword [ebp + 0x18]
dec eax
add esi, 0x10
mov dword [ebp + 0x10], eax
test eax, eax
jle 0x44a549
add edi, 8
mov edx, dword [edi - 8]
xor edx, dword [esi]
mov eax, dword [edi - 4]
xor eax, dword [esi + 4]
mov ecx, dword [esi + 8]
xor ecx, dword [edi]
mov dword [ebp - 0x10], edx
mov edx, dword [edi + 4]
xor edx, dword [esi + 0xc]
mov dword [ebp - 0xc], eax
add edi, 0x10
mov dword [ebp - 8], ecx
lea eax, [edi - 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov ecx, ebx
mov dword [ebp - 4], edx
call fcn.00449a30
mov eax, dword [ebp + 0x10]
dec eax
add esi, 0x10
mov dword [ebp + 0x10], eax
test eax, eax
jg 0x44a4d0
mov eax, dword [ebp + 0x18]
pop edi
pop esi
shl eax, 7
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov edi, eax
test eax, eax
jle 0x44a54c
mov eax, esi
mov esi, dword [ebp + 0x10]
sub eax, esi
mov dword [ebp + 0x10], eax
jmp 0x44a536
mov eax, dword [ebp + 0x10]
push esi
add eax, esi
push eax
mov ecx, ebx
call fcn.00449a30
dec edi
add esi, 0x10
test edi, edi
jg 0x44a533
mov eax, dword [ebp + 0x18]
pop edi
pop esi
shl eax, 7
pop ebx
mov esp, ebp
pop ebp
ret 0x14
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x44ad30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
cmp dword [esi + 0x2c], 0
mov dword [ebp - 4], esi
je 0x44ad4e
mov eax, 0xfffffffb
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [esi + 0x30]
cmp ecx, 2
je 0x44ad68
cmp dword [esi + 0x34], 0
jne 0x44ad68
mov eax, 0xfffffffa
pop esi
mov esp, ebp
pop ebp
ret 0x14
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x44aec0
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x44aec0
cdq
and edx, 0x7f
push edi
lea edi, [edx + eax]
sar edi, 7
mov eax, ecx
sub eax, 0
mov dword [ebp + 8], edi
je 0x44ae93
dec eax
je 0x44ada7
pop edi
pop ebx
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 0x14
cmp byte [ebp + 0x18], 0
je 0x44adca
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x40]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x44]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
jmp 0x44ade4
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x10], edx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp + 0x18], edi
test edi, edi
jle 0x44ae6e
mov eax, dword [ebp + 0x10]
lea edi, [ebx + 8]
sub ebx, eax
add ebx, 0xfffffff8
lea esi, [eax + 8]
mov dword [ebp + 0x10], ebx
mov ebx, dword [ebp + 0x10]
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 4]
add ebx, esi
push ebx
call fcn.00449e00
mov eax, dword [ebp - 0x24]
xor eax, dword [ebp - 0x14]
mov ebx, dword [ebx]
mov ecx, dword [ebp - 0x20]
xor ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
xor dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x18]
xor edx, dword [ebp - 8]
mov dword [esi - 8], eax
mov dword [ebp - 0x24], eax
mov eax, dword [edi - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi - 4], ecx
mov dword [ebp - 0x20], ecx
mov ecx, dword [edi]
mov dword [esi], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + 4]
dec eax
mov dword [esi + 4], edx
add edi, 0x10
add esi, 0x10
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp + 0x18], eax
test eax, eax
jg 0x44ae00
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [eax], edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 8]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov eax, edi
pop edi
pop ebx
shl eax, 7
pop esi
mov esp, ebp
pop ebp
ret 0x14
test edi, edi
jle 0x44aeb2
mov edx, dword [ebp + 0x10]
push edx
push ebx
mov ecx, esi
call fcn.00449e00
add dword [ebp + 0x10], 0x10
dec edi
add ebx, 0x10
test edi, edi
jg 0x44ae97
mov edi, dword [ebp + 8]
mov eax, edi
pop edi
pop ebx
shl eax, 7
pop esi
mov esp, ebp
pop ebp
ret 0x14
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x450a40
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x20]
mov dword [esi + 0x10], 0x12345678
mov dword [esi + 0x14], 0x23456789
mov dword [esi + 0x18], 0x34567890
xor edi, edi
call fcn.004095d0
test eax, eax
jle 0x450acc
jmp 0x450a70
push edi
lea ecx, [esi + 0x20]
call fcn.004071e0
mov ecx, dword [esi + 0x10]
movsx eax, al
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x511160]
shr ecx, 8
xor eax, ecx
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x10], eax
movzx eax, al
add eax, dword [esi + 0x14]
inc edi
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x14], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x511160]
mov dword [esi + 0x18], ecx
lea ecx, [esi + 0x20]
call fcn.004095d0
cmp edi, eax
jl 0x450a70
pop edi
pop esi
pop ebx
ret 4

Function at 0x450ae0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
test ebx, ebx
je 0x450b59
push edi
mov edi, dword [ebp + 8]
mov eax, dword [ecx + 0x18]
and eax, 0xfffd
or eax, 2
mov edx, eax
xor edx, 1
imul edx, eax
sar edx, 8
xor byte [esi + edi], dl
movsx edx, byte [esi + edi]
mov eax, dword [ecx + 0x10]
xor edx, eax
shr eax, 8
and edx, 0xff
mov edx, dword [edx*4 + 0x511160]
xor edx, eax
movzx eax, dl
add eax, dword [ecx + 0x14]
mov dword [ecx + 0x10], edx
mov edx, dword [ecx + 0x18]
imul eax, eax, 0x8088405
inc eax
mov dword [ecx + 0x14], eax
shr eax, 0x18
xor eax, edx
and eax, 0xff
shr edx, 8
xor edx, dword [eax*4 + 0x511160]
inc esi
mov dword [ecx + 0x18], edx
cmp esi, ebx
jb 0x450af2
pop edi
pop esi
pop ebx
pop ebp
ret 8