joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411820
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x2c]
movzx ecx, byte [ebx + 1]
movzx edx, byte [ebx + 2]
push ebp
mov ebp, dword [esp + 0x28]
push esi
mov esi, eax
movzx eax, byte [ebx]
shl ecx, 8
or eax, ecx
movzx ecx, byte [ebx + 3]
shl edx, 0x10
or eax, edx
movzx edx, byte [ebx + 5]
shl ecx, 0x18
or eax, ecx
movzx ecx, byte [ebx + 6]
mov dword [esp + 0xc], eax
movzx eax, byte [ebx + 4]
shl edx, 8
or eax, edx
movzx edx, byte [ebx + 7]
shl ecx, 0x10
or eax, ecx
shl edx, 0x18
or eax, edx
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0xb
mov edi, edi
movzx ecx, byte [esi + 1]
movzx eax, byte [esi]
movzx edx, byte [esi + 2]
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 3]
shl edx, 0x10
or eax, edx
movzx edx, byte [esi + 5]
shl ecx, 0x18
or eax, ecx
movzx ecx, byte [esi + 6]
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
movzx eax, byte [esi + 4]
shl edx, 8
or eax, edx
movzx edx, byte [esi + 7]
shl ecx, 0x10
or eax, ecx
shl edx, 0x18
or eax, edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x34]
lea edi, [esp + 0x24]
add esi, 8
call fcn.00411980
mov ecx, dword [esp + 0x10]
xor ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
xor edx, dword [esp + 0x28]
mov byte [ebp], cl
mov eax, ecx
shr eax, 8
mov byte [ebp + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp + 2], al
shr ecx, 0x18
mov byte [ebp + 3], cl
mov byte [ebp + 4], dl
mov ecx, edx
mov eax, edx
shr ecx, 8
mov byte [ebp + 5], cl
mov ecx, dword [esp + 0x1c]
shr eax, 0x10
shr edx, 0x18
mov byte [ebp + 6], al
mov byte [ebp + 7], dl
mov edx, dword [esp + 0x20]
add ebp, 8
dec dword [esp + 0x18]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
jne 0x411880
mov eax, ecx
mov byte [ebx], al
mov edx, eax
shr ecx, 8
mov byte [ebx + 1], cl
shr edx, 0x10
mov byte [ebx + 2], dl
shr eax, 0x18
mov byte [ebx + 3], al
mov eax, dword [esp + 0x20]
mov byte [ebx + 4], al
mov ecx, eax
pop edi
mov edx, eax
shr ecx, 8
mov byte [ebx + 5], cl
shr edx, 0x10
pop esi
mov byte [ebx + 6], dl
shr eax, 0x18
pop ebp
mov byte [ebx + 7], al
pop ebx
add esp, 0x1c
ret
Function at 0x411df0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
movzx edx, byte [eax + 2]
push ebx
movzx ebx, byte [eax]
push ebp
movzx ebp, byte [eax + 4]
push esi
mov esi, dword [esp + 0x24]
push edi
mov edi, ecx
movzx ecx, byte [eax + 1]
shl ecx, 8
or ebx, ecx
movzx ecx, byte [eax + 3]
shl edx, 0x10
or ebx, edx
movzx edx, byte [eax + 5]
shl ecx, 0x18
or ebx, ecx
movzx ecx, byte [eax + 7]
shl edx, 8
or ebp, edx
movzx edx, byte [eax + 6]
mov eax, dword [esp + 0x2c]
shl ecx, 8
or ecx, edx
shl ecx, 0x10
or ebp, ecx
add eax, 0xfffffff8
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x2c], eax
js 0x411f2c
lea ecx, [eax + 8]
shr ecx, 3
mov dword [esp + 0x18], ecx
neg ecx
lea eax, [eax + ecx*8]
mov dword [esp + 0x2c], eax
jmp 0x411e70
movzx ecx, byte [esi + 1]
movzx ebp, byte [esi]
movzx edx, byte [esi + 2]
movzx eax, byte [esi + 3]
movzx ebx, byte [esi + 4]
shl ecx, 8
or ebp, ecx
movzx ecx, byte [esi + 5]
shl edx, 0x10
or ebp, edx
movzx edx, byte [esi + 6]
shl eax, 0x18
or ebp, eax
movzx eax, byte [esi + 7]
shl ecx, 8
or ebx, ecx
mov ecx, dword [esp + 0x30]
shl edx, 0x10
or ebx, edx
push 0
shl eax, 0x18
push ecx
lea edx, [esp + 0x24]
or ebx, eax
push edx
mov dword [esp + 0x28], ebp
add esi, 8
mov dword [esp + 0x2c], ebx
call fcn.0045ca00
mov eax, dword [esp + 0x1c]
xor eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
xor ecx, dword [esp + 0x2c]
mov byte [edi], al
mov edx, eax
shr edx, 8
mov byte [edi + 1], dl
mov edx, eax
shr edx, 0x10
mov byte [edi + 2], dl
shr eax, 0x18
mov byte [edi + 3], al
mov byte [edi + 4], cl
mov eax, ecx
mov edx, ecx
shr eax, 8
mov byte [edi + 5], al
shr edx, 0x10
shr ecx, 0x18
mov byte [edi + 6], dl
mov byte [edi + 7], cl
add esp, 0xc
add edi, 8
dec dword [esp + 0x18]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebx
jne 0x411e70
mov eax, dword [esp + 0x2c]
mov ebx, ebp
mov ebp, dword [esp + 0x14]
cmp eax, 0xfffffff8
je case.default.0x411fa8
movzx ecx, byte [esi + 1]
movzx eax, byte [esi]
movzx edx, byte [esi + 2]
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 3]
shl ecx, 0x18
shl edx, 0x10
or eax, edx
movzx edx, byte [esi + 5]
or eax, ecx
movzx ecx, byte [esi + 7]
mov dword [esp + 0x1c], eax
movzx eax, byte [esi + 4]
shl edx, 8
or eax, edx
movzx edx, byte [esi + 6]
shl ecx, 8
or ecx, edx
shl ecx, 0x10
or ecx, eax
mov eax, dword [esp + 0x30]
push 0
mov dword [esp + 0x24], ecx
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.0045ca00
mov eax, dword [esp + 0x38]
xor ebp, dword [esp + 0x2c]
xor ebx, dword [esp + 0x28]
lea edi, [edi + eax + 8]
add eax, 7
add esp, 0xc
mov ecx, ebp
cmp eax, 7
ja case.default.0x411fa8
jmp dword [eax*4 + 0x411ff0]
dec edi
mov edx, ecx
shr edx, 0x18
mov byte [edi], dl
dec edi
mov eax, ecx
shr eax, 0x10
mov byte [edi], al
dec edi
mov edx, ecx
shr edx, 8
mov byte [edi], dl
dec edi
mov byte [edi], cl
dec edi
mov eax, ebx
shr eax, 0x18
mov byte [edi], al
dec edi
mov ecx, ebx
shr ecx, 0x10
mov byte [edi], cl
dec edi
mov edx, ebx
shr edx, 8
mov byte [edi], dl
mov byte [edi - 1], bl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4128f0
Capabilities:
Encrypt data using rc6

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4ca510]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x110]
cmp edx, 0x30
je 0x41291a
cmp edx, 0x14
je 0x41291a
mov edx, 0x10
mov dword [edi], edx
movzx ecx, byte [eax]
push ebx
push ebp
push esi
movzx esi, byte [eax + 1]
shl esi, 8
or ecx, esi
movzx esi, byte [eax + 2]
shl esi, 0x10
or ecx, esi
movzx esi, byte [eax + 3]
shl esi, 0x18
or ecx, esi
movzx esi, byte [eax + 5]
mov dword [esp + 0x14], ecx
movzx ecx, byte [eax + 4]
shl esi, 8
or ecx, esi
movzx esi, byte [eax + 6]
movzx eax, byte [eax + 7]
shl esi, 0x10
or ecx, esi
shl eax, 0x18
or eax, ecx
mov dword [esp + 0x18], eax
lea ecx, [edx + edx + 2]
mov eax, 1
mov dword [esp + 0x10], ecx
mov dword [edi + 4], 0xb7e15163
cmp ecx, eax
jle 0x412992
lea esp, [esp]
mov edx, dword [edi + eax*4]
sub edx, 0x61c88647
mov dword [edi + eax*4 + 4], edx
inc eax
cmp eax, ecx
jl 0x412980
cmp ecx, 2
jg 0x41299c
mov ecx, 2
lea eax, [ecx + ecx*2]
xor ebp, ebp
xor esi, esi
xor ebx, ebx
xor edx, edx
test eax, eax
jle 0x4129eb
mov dword [esp + 0xc], eax
nop
mov eax, dword [edi + esi*4 + 4]
add eax, ebx
add eax, edx
rol eax, 3
mov dword [edi + esi*4 + 4], eax
mov edx, eax
mov eax, dword [esp + ebp*4 + 0x14]
add eax, ebx
lea ecx, [ebx + edx]
add eax, edx
rol eax, cl
inc esi
mov dword [esp + ebp*4 + 0x14], eax
mov ebx, eax
cmp esi, dword [esp + 0x10]
jl 0x4129dd
xor esi, esi
inc ebp
cmp ebp, 2
jl 0x4129e5
xor ebp, ebp
dec dword [esp + 0xc]
jne 0x4129b0
mov ecx, dword [esp + 0x114]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046c8b9
add esp, 0x10c
ret
Function at 0x421590
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
xor esi, esi
test edx, edx
je 0x4215d4
mov al, byte [edx]
test al, al
je 0x4215d4
push edi
mov edi, 0x100
movsx eax, al
or eax, edi
mov ecx, eax
shr ecx, 2
xor ecx, eax
imul eax, eax
and ecx, 0xf
add edi, 0x100
rol esi, cl
inc edx
xor esi, eax
mov al, byte [edx]
test al, al
jne 0x4215a7
mov eax, esi
shr eax, 0x10
pop edi
xor eax, esi
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x422fb0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
cmp dword [0x4db34c], 0
push ebx
push ebp
push esi
push edi
jne 0x4230eb
push 0x30
push 0x4dace8
push str.OPENSSL_ia32cap
mov dword [0x4db34c], 1
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x2e
ja 0x4230c8
mov bp, word [0x4dace8]
xor eax, eax
cmp bp, 0x7e
sete al
mov edi, eax
lea ecx, [edi*2 + 0x4dace8]
push ecx
call fcn.00422f30
add esp, 4
mov esi, eax
mov ebx, edx
test edi, edi
je 0x423049
push 0x4db3f0
mov edi, esi
mov dword [esp + 0x18], ebx
call fcn.0045e440
not esi
and esi, eax
not ebx
and edi, 0x1000000
xor eax, eax
add esp, 4
and ebx, edx
or edi, eax
je 0x423060
and ebx, 0xedfff7fd
jmp 0x423060
cmp bp, 0x3a
jne 0x423060
push 0x4db3f0
call fcn.0045e440
add esp, 4
mov esi, eax
mov ebx, edx
mov dx, word [0x4dace8]
mov eax, 0x4dace8
movzx ecx, dx
test dx, dx
je 0x423086
cmp cx, 0x3a
je 0x423092
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x423074
mov dword [0x4db3f8], 0
jmp 0x4230d9
test eax, eax
je 0x423086
xor edx, edx
cmp word [eax + 2], 0x7e
sete dl
mov edi, edx
lea eax, [eax + edi*2 + 2]
push eax
call fcn.00422f30
add esp, 4
mov dword [esp + 0x14], edx
test edi, edi
je 0x4230c1
not eax
and dword [0x4db3f8], eax
jmp 0x4230d9
mov dword [0x4db3f8], eax
jmp 0x4230d9
push 0x4db3f0
call fcn.0045e440
add esp, 4
mov esi, eax
mov ebx, edx
or esi, 0x400
mov dword [0x4db3f0], esi
mov dword [0x4db3f4], ebx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423230
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x4ca510]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x4232a1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x4232a1
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x204]
push 0x200
push edx
call fcn.00471870
add esp, 0x10
test eax, eax
jns 0x423284
mov eax, 0x200
push 0
lea ecx, [ebp - 0x208]
push ecx
push eax
lea edx, [ebp - 0x204]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4233ee
mov ebx, dword [ebp + 8]
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4232b0
sub eax, edx
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.00477870
mov esi, esp
test esi, esi
jne 0x4232d4
mov esi, str.no_stack_
jmp 0x42335f
push edi
push esi
push edi
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x423301
test edi, edi
je 0x423301
lea ebx, [ebx]
mov ecx, dword [ebp + 8]
movsx dx, byte [eax + ecx]
mov word [esi + eax*2], dx
inc eax
cmp eax, edi
jb 0x4232f0
xor eax, eax
test edi, edi
je 0x42335f
cmp word [esi + eax*2], 0x25
jne case.0x423324.43
lea ecx, [esi + eax*2 + 2]
movzx edx, word [ecx]
add edx, 0xffffffd6
cmp edx, 0x49
ja case.0x423324.43
movzx edx, byte [edx + 0x423420]
jmp dword [edx*4 + 0x423408]
inc eax
add ecx, 2
jmp 0x423312
mov ecx, 0x53
mov word [esi + eax*2 + 2], cx
jmp case.0x423324.43
mov edx, 0x73
jmp 0x423355
mov ecx, 0x43
mov word [esi + eax*2 + 2], cx
jmp case.0x423324.43
mov edx, 0x63
mov word [esi + eax*2 + 2], dx
inc eax
cmp eax, edi
jb 0x423307
lea eax, [ebp + 0xc]
push eax
push esi
lea ecx, [ebp - 0x204]
push 0xff
push ecx
call fcn.004717a7
xor edx, edx
add esp, 0x10
mov word [ebp - 6], dx
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4233d8
call fcn.00423100
test eax, eax
jle 0x4233d8
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x4233ee
push 0
lea ecx, [ebp - 0x208]
push ecx
push 0
push 1
push 0
push 0
push 0
push 1
lea eax, [ebp - 0x204]
push esi
mov dword [ebp - 0x208], eax
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x4233ee
push 0x10
push str.OpenSSL:_FATAL
lea edx, [ebp - 0x204]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esp, [ebp - 0x214]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046c8b9
mov esp, ebp
pop ebp
ret

Function at 0x427100
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
movzx edi, byte [esp + 0x10]
mov eax, edi
and eax, 1
add esi, ecx
add edx, ecx
test ecx, ecx
je 0x427133
push ebx
lea esp, [esp]
movzx ebx, byte [edx - 1]
dec edx
xor ebx, edi
add eax, ebx
dec esi
mov byte [esi], al
shr eax, 8
dec ecx
jne 0x427120
pop ebx
pop edi
pop esi
ret
Function at 0x42cb20
Capabilities:
Generate random numbers via winapi
Get memory capacity

Disassembly:
sub esp, 0x78
mov eax, dword [0x4ca510]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push edi
push 0xf0000040
push 1
push 0
push 0
lea eax, [esp + 0x20]
push eax
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
je 0x42cb8f
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x38]
push ecx
push 0x40
push edx
call edi
test eax, eax
je 0x42cb86
fld qword [0x4c86b0]
sub esp, 8
fstp qword [esp]
lea eax, [esp + 0x40]
push 0x40
push eax
call fcn.0041d370
add esp, 0x10
mov ecx, dword [esp + 0x10]
push 0
push ecx
call ebx
push 0xf0000040
push 0x16
push 0x4c6538
push 0
lea edx, [esp + 0x20]
push edx
call esi
test eax, eax
je 0x42cbde
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x38]
push eax
push 0x40
push ecx
call edi
test eax, eax
je 0x42cbd5
fld qword [0x4c86b0]
sub esp, 8
fstp qword [esp]
lea edx, [esp + 0x40]
push 0x40
push edx
call fcn.0041d370
add esp, 0x10
mov eax, dword [esp + 0x10]
push 0
push eax
call ebx
call fcn.0042cc40
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
fld1
sub esp, 8
fstp qword [esp]
lea edx, [esp + 0x20]
push 0x20
push edx
call fcn.0041d370
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
fld1
sub esp, 8
fstp qword [esp]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push 4
push eax
call fcn.0041d370
mov ecx, dword [esp + 0x8c]
add esp, 0x10
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0046c8b9
add esp, 0x78
ret

Function at 0x42cc40
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x14
cmp dword [0x4cb5c0], 0
je 0x42cc82
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x42cc62
mov dword [0x4cb5c0], eax
jmp 0x42cc82
fldz
sub esp, 8
fstp qword [esp]
lea ecx, [esp + 0x10]
push 8
push ecx
call fcn.0041d370
add esp, 0x10
cmp dword [0x4cb5c0], 0
jne 0x42cca3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
fldz
sub esp, 8
fstp qword [esp]
lea edx, [esp + 0xc]
push 4
push edx
mov dword [esp + 0x14], eax
call fcn.0041d370
add esp, 0x10
add esp, 0x14
ret
Function at 0x437600
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0x8c
mov eax, dword [0x4ca510]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
mov ebx, dword [esp + 0x94]
push ebp
mov ebp, dword [esp + 0x9c]
push esi
xor eax, eax
push edi
mov esi, ecx
mov edi, edx
test ebp, ebp
je 0x437645
cmp ebp, dword [ebx]
je 0x43763c
test edi, edi
je 0x43769b
test esi, esi
js 0x43769b
mov eax, 1
mov dword [ebx], ebp
jmp 0x43764b
mov ebp, dword [ebx]
test ebp, ebp
je 0x43769b
test edi, edi
je 0x4376fe
mov eax, dword [ebp + 0x24]
cmp eax, 0x80
jg 0x4376f4
cmp eax, esi
jge 0x4376b6
mov eax, dword [ebx + 4]
push eax
mov eax, ebp
call fcn.0042b120
add esp, 4
test eax, eax
je 0x43769b
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x14]
push esi
push edi
push eax
call ecx
add esp, 0xc
test eax, eax
je 0x43769b
mov esi, dword [ebx + 4]
lea edi, [ebx + 0x10]
lea ecx, [ebx + 0x14]
call fcn.0042b250
test eax, eax
jne 0x4376d1
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046c8b9
add esp, 0x8c
ret
cmp esi, 0x80
ja 0x43769b
push esi
lea edx, [ebx + 0x14]
push edi
push edx
call fcn.00478340
lea edi, [ebx + 0x10]
add esp, 0xc
mov dword [edi], esi
mov edi, dword [edi]
cmp edi, 0x80
je 0x437706
mov eax, 0x80
sub eax, edi
push eax
lea ecx, [edi + ebx + 0x14]
push 0
push ecx
call fcn.00476ac0
add esp, 0xc
jmp 0x437706
mov eax, str.assertion_failed:_j____int_sizeof_ctx__key_
call fcn.00423470
test eax, eax
je 0x4377a6
xor eax, eax
jmp 0x437710
mov dl, byte [ebx + eax + 0x14]
xor dl, 0x36
mov byte [esp + eax + 0x10], dl
inc eax
cmp eax, 0x80
jl 0x437710
mov eax, dword [ebx + 8]
push eax
mov eax, ebp
call fcn.0042b120
add esp, 4
test eax, eax
je 0x43769b
mov ecx, dword [ebp + 0x24]
mov eax, dword [ebx + 8]
mov edx, dword [eax + 0x14]
push ecx
lea ecx, [esp + 0x14]
push ecx
push eax
call edx
add esp, 0xc
test eax, eax
je 0x43769b
xor eax, eax
jmp 0x437760
mov cl, byte [ebx + eax + 0x14]
xor cl, 0x5c
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0x437760
mov edx, dword [ebx + 0xc]
push edx
mov eax, ebp
call fcn.0042b120
add esp, 4
test eax, eax
je 0x43769b
mov ebp, dword [ebp + 0x24]
mov eax, dword [ebx + 0xc]
mov edx, dword [eax + 0x14]
push ebp
lea ecx, [esp + 0x14]
push ecx
push eax
call edx
add esp, 0xc
test eax, eax
je 0x43769b
mov eax, dword [ebx + 8]
mov esi, dword [ebx + 4]
push eax
call fcn.0042b2b0
add esp, 4
test eax, eax
je 0x43769b
mov eax, 1
jmp 0x43769d
Function at 0x44d7e0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
cmp dword [esi + 0x100ac], ebx
je 0x44d8a0
cmp dword [esi + 0x7c], ebx
jbe 0x44d8a0
mov eax, 0xffffff5c
sub eax, esi
lea edi, [esi + 0xa4]
mov dword [ebp - 4], eax
jmp 0x44d820
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
shr ecx, 8
xor ecx, dword [ebx + eax*4]
and edx, 0xfffd
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
mov dword [esi + 0x100d8], ecx
mov ecx, dword [ebp - 4]
shr eax, 8
xor byte [edi], al
inc edi
add ecx, edi
cmp ecx, dword [esi + 0x7c]
jb 0x44d820
xor ebx, ebx
mov edi, dword [esi + 0x7c]
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x1c]
push edi
lea eax, [esi + 0xa4]
push eax
mov eax, dword [esi + 8]
push ecx
push edx
call eax
add esp, 0x10
cmp eax, edi
je 0x44d8c4
or eax, 0xffffffff
jmp 0x44d8c7
mov eax, dword [ebp - 8]
add dword [esi + 0x100c0], edi
mov ecx, dword [esi + 0x48]
pop edi
adc dword [esi + 0x100c4], ebx
add dword [esi + 0x100c8], ecx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x7c], ebx
adc dword [esi + 0x100cc], ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x454c30
Capabilities:
Encode data using xor

Disassembly:
mov dword [esp + 0x14], edi
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
mov esi, dword [edi + 0xf0]
lea esi, [esi + esi - 2]
lea esi, [edi + esi*8]
mov dword [esp + 0x18], esi
mov esi, eax
and esi, 0xff
mov esi, dword [ebp + esi*8]
movzx edi, bh
xor esi, dword [ebp + edi*8 + 3]
mov edi, ecx
shr edi, 0x10
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
mov edi, edx
shr edi, 0x18
xor esi, dword [ebp + edi*8 + 1]
mov dword [esp + 4], esi
mov esi, ebx
and esi, 0xff
shr ebx, 0x10
mov esi, dword [ebp + esi*8]
movzx edi, ch
xor esi, dword [ebp + edi*8 + 3]
mov edi, edx
shr edi, 0x10
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
mov edi, eax
shr edi, 0x18
xor esi, dword [ebp + edi*8 + 1]
mov dword [esp + 8], esi
mov esi, ecx
and esi, 0xff
shr ecx, 0x18
mov esi, dword [ebp + esi*8]
movzx edi, dh
xor esi, dword [ebp + edi*8 + 3]
mov edi, eax
shr edi, 0x10
and edx, 0xff
and edi, 0xff
xor esi, dword [ebp + edi*8 + 2]
movzx edi, bh
xor esi, dword [ebp + edi*8 + 1]
mov edi, dword [esp + 0x14]
mov edx, dword [ebp + edx*8]
movzx eax, ah
xor edx, dword [ebp + eax*8 + 3]
mov eax, dword [esp + 4]
and ebx, 0xff
xor edx, dword [ebp + ebx*8 + 2]
mov ebx, dword [esp + 8]
xor edx, dword [ebp + ecx*8 + 1]
mov ecx, esi
add edi, 0x10
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
cmp edi, dword [esp + 0x18]
mov dword [esp + 0x14], edi
jb 0x454c50
mov esi, eax
and esi, 0xff
mov esi, dword [ebp + esi*8 + 2]
and esi, 0xff
movzx edi, bh
mov edi, dword [ebp + edi*8]
and edi, 0xff00
xor esi, edi
mov edi, ecx
shr edi, 0x10
and edi, 0xff
mov edi, dword [ebp + edi*8]
and edi, 0xff0000
xor esi, edi
mov edi, edx
shr edi, 0x18
mov edi, dword [ebp + edi*8 + 2]
and edi, 0xff000000
xor esi, edi
mov dword [esp + 4], esi
mov esi, ebx
and esi, 0xff
shr ebx, 0x10
mov esi, dword [ebp + esi*8 + 2]
and esi, 0xff
movzx edi, ch
mov edi, dword [ebp + edi*8]
and edi, 0xff00
xor esi, edi
mov edi, edx
shr edi, 0x10
and edi, 0xff
mov edi, dword [ebp + edi*8]
and edi, 0xff0000
xor esi, edi
mov edi, eax
shr edi, 0x18
mov edi, dword [ebp + edi*8 + 2]
and edi, 0xff000000
xor esi, edi
mov dword [esp + 8], esi
mov esi, ecx
and esi, 0xff
shr ecx, 0x18
mov esi, dword [ebp + esi*8 + 2]
and esi, 0xff
movzx edi, dh
mov edi, dword [ebp + edi*8]
and edi, 0xff00
xor esi, edi
mov edi, eax
shr edi, 0x10
and edx, 0xff
and edi, 0xff
mov edi, dword [ebp + edi*8]
and edi, 0xff0000
xor esi, edi
movzx edi, bh
mov edi, dword [ebp + edi*8 + 2]
and edi, 0xff000000
xor esi, edi
mov edi, dword [esp + 0x14]
and edx, 0xff
mov edx, dword [ebp + edx*8 + 2]
and edx, 0xff
movzx eax, ah
mov eax, dword [ebp + eax*8]
and eax, 0xff00
xor edx, eax
mov eax, dword [esp + 4]
and ebx, 0xff
mov ebx, dword [ebp + ebx*8]
and ebx, 0xff0000
xor edx, ebx
mov ebx, dword [esp + 8]
mov ecx, dword [ebp + ecx*8 + 2]
and ecx, 0xff000000
xor edx, ecx
mov ecx, esi
add edi, 0x10
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
ret