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

Disassembly:
mov eax, 0x2004
call fcn.004f8350
mov eax, dword [0x544354]
xor eax, esp
mov dword [esp + 0x2000], eax
mov eax, dword [esp + 0x2008]
push ebx
mov ebx, dword [esp + 0x2010]
push esi
push edi
push 0x519c98
push eax
mov esi, ecx
call fcn.004ccb60
mov edi, eax
test edi, edi
sete cl
mov byte [esi + 0x3028], cl
test cl, cl
je 0x4aac9b
xor al, al
jmp 0x4aace6
push edi
push 0x2000
lea eax, [esp + 0x14]
push 1
push eax
call fcn.0050273f
add esp, 0x10
test eax, eax
je 0x4aacdb
push ebx
push eax
lea eax, [esp + 0x14]
push 1
push eax
call fcn.004ff1cc
push edi
push 0x2000
lea eax, [esp + 0x24]
push 1
push eax
call fcn.0050273f
add esp, 0x20
test eax, eax
jne 0x4aacb4
push edi
call fcn.004fede7
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x200c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f833c
add esp, 0x2004
ret 8

Function at 0x4aad00
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x2008
call fcn.004f8350
mov eax, dword [0x544354]
xor eax, esp
mov dword [esp + 0x2004], eax
mov eax, dword [esp + 0x200c]
push ebp
push esi
push 0x526e48
push eax
mov esi, ecx
call fcn.004ccb60
mov ebp, eax
test ebp, ebp
sete cl
mov byte [esi + 0x3028], cl
test cl, cl
je 0x4aad46
xor al, al
jmp 0x4aadec
push ebx
push edi
push ebp
xor eax, eax
push 0x2000
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
push 1
push eax
call fcn.0050273f
mov ebx, eax
add esp, 0x10
cmp ebx, 0x20
jbe 0x4aaddf
lea ebx, [ebx]
lea edi, [ebx - 0x20]
xor esi, esi
test edi, edi
jle 0x4aadad
lea esp, [esp]
cmp byte [esp + esi + 0x14], 0x61
jne 0x4aada8
cmp byte [esp + esi + 0x15], 0x73
jne 0x4aada8
push 0x14
lea eax, [esp + 0x1a]
add eax, esi
push str.Invoker_
push eax
call fcn.004ff7e0
add esp, 0xc
test eax, eax
je 0x4aae05
inc esi
cmp esi, edi
jl 0x4aad80
mov eax, dword [esp + 0x10]
add eax, 0xffffffe0
add eax, ebx
push 0
push eax
push ebp
mov dword [esp + 0x1c], eax
call fcn.00502aa9
push ebp
push 0x2000
lea eax, [esp + 0x28]
push 1
push eax
call fcn.0050273f
mov ebx, eax
add esp, 0x1c
cmp ebx, 0x20
ja 0x4aad70
push ebp
call fcn.004fede7
add esp, 4
xor al, al
pop edi
pop ebx
mov ecx, dword [esp + 0x200c]
pop esi
pop ebp
xor ecx, esp
call fcn.004f833c
add esp, 0x2008
ret 4
mov eax, dword [esp + 0x10]
push 0
add eax, esi
push eax
push ebp
call fcn.00502aa9
push ebp
push 0x15
push 1
push str.requireAdministrator_
call fcn.004ff1cc
cmp eax, 0x15
push ebp
sete bl
call fcn.004fede7
add esp, 0x20
mov al, bl
jmp 0x4aadea
Function at 0x4ab3f0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x200c
call fcn.004f8350
mov eax, dword [0x544354]
xor eax, esp
mov dword [esp + 0x2008], eax
mov eax, dword [esp + 0x2010]
push edi
push 0x519c98
push eax
call fcn.0046dd80
mov edi, eax
mov dword [esp + 8], edi
test edi, edi
jne 0x4ab43f
xor al, al
pop edi
mov ecx, dword [esp + 0x2008]
xor ecx, esp
call fcn.004f833c
add esp, 0x200c
ret 4
push ebp
xor ebp, ebp
push ebx
mov dword [esp + 0xc], ebp
push esi
jmp 0x4ab450
push edi
push 0x2000
lea eax, [esp + 0x20]
push 1
push eax
call fcn.0050273f
mov ebx, eax
add esp, 0x10
cmp ebx, 0x20
jle 0x4ab4c6
lea edi, [ebx - 0x20]
xor esi, esi
test edi, edi
jle 0x4ab4a0
cmp byte [esp + esi + 0x18], 0x72
jne 0x4ab49b
cmp byte [esp + esi + 0x19], 0x65
jne 0x4ab49b
push 0x14
lea eax, [esp + esi + 0x1e]
push str.quireAdministrator_
push eax
call fcn.004ff7e0
add esp, 0xc
test eax, eax
je 0x4ab4ec
inc esi
cmp esi, edi
jl 0x4ab475
mov edi, dword [esp + 0x14]
add ebp, 0xffffffe0
push 0
add ebp, ebx
push ebp
push edi
call fcn.00502aa9
mov esi, dword [esp + 0x1c]
add esp, 0xc
inc esi
mov dword [esp + 0x10], esi
cmp esi, 0x100
jb 0x4ab450
push edi
call fcn.004fede7
add esp, 4
xor al, al
mov ecx, dword [esp + 0x2018]
pop esi
pop ebx
pop ebp
pop edi
xor ecx, esp
call fcn.004f833c
add esp, 0x200c
ret 4
push dword [esp + 0x14]
call fcn.004fede7
add esp, 4
mov al, 1
jmp 0x4ab4d1

Function at 0x4ab500
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x404
mov eax, dword [0x544354]
xor eax, esp
mov dword [esp + 0x400], eax
mov eax, dword [esp + 0x408]
push esi
push edi
push 0x519c98
push eax
mov esi, ecx
call fcn.004ccb60
mov edi, eax
test edi, edi
sete cl
mov byte [esi + 0x3028], cl
test cl, cl
je 0x4ab53f
mov al, 1
jmp 0x4ab588
push edi
push 0x400
lea eax, [esp + 0x10]
push 1
push eax
call fcn.0050273f
push edi
mov esi, eax
call fcn.004fede7
add esi, 0xfffffffc
add esp, 0x14
xor eax, eax
test esi, esi
jle 0x4ab586
cmp byte [esp + eax + 8], 0x55
jne 0x4ab581
cmp byte [esp + eax + 9], 0x50
jne 0x4ab581
cmp byte [esp + eax + 0xa], 0x58
jne 0x4ab581
cmp byte [esp + eax + 0xb], 0x30
je 0x4ab53b
inc eax
cmp eax, esi
jl 0x4ab565
xor al, al
mov ecx, dword [esp + 0x408]
pop edi
pop esi
xor ecx, esp
call fcn.004f833c
add esp, 0x404
ret 4
Function at 0x4ab9c0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x2010
call fcn.004f8350
mov eax, dword [0x544354]
xor eax, esp
mov dword [esp + 0x200c], eax
mov eax, dword [esp + 0x2014]
push ebx
push esi
push 0x519c98
mov esi, ecx
mov ecx, dword [esp + 0x2024]
push eax
mov dword [esp + 0x18], ecx
call fcn.004ccb60
mov ebx, eax
test ebx, ebx
mov dword [esp + 0xc], ebx
sete cl
mov byte [esi + 0x3028], cl
test cl, cl
je 0x4aba15
xor eax, eax
jmp 0x4abb5c
push ebp
push edi
push ebx
push 0x2000
lea eax, [esp + 0x24]
xor esi, esi
push 1
push eax
mov dword [esp + 0x20], esi
call fcn.0050273f
add esp, 0x10
mov ebp, eax
cmp ebp, 0x28
jbe 0x4abb4f
lea ebx, [ebp - 0x28]
xor edi, edi
mov eax, 0xfeff
test ebx, ebx
je 0x4abaea
lea esi, [esp + 0x20]
cmp byte [esp + edi + 0x1c], 0x2a
jne 0x4aba84
cmp byte [esp + edi + 0x1d], 0x2a
jne 0x4aba84
push 0xc
lea eax, [esp + 0x22]
add eax, edi
push 0x525f70
push eax
call fcn.004ff7e0
add esp, 0xc
test eax, eax
je 0x4abb1a
mov eax, 0xfeff
cmp word [esi - 4], 0x2a
jne 0x4abaab
cmp word [esi - 2], 0x2a
jne 0x4abaab
push 0xc
push str.messages
push esi
call fcn.004fecf4
add esp, 0xc
test eax, eax
je 0x4abb1a
mov eax, 0xfeff
cmp word [esi - 4], ax
jne 0x4abada
cmp word [esi - 2], 0x2a
jne 0x4abada
cmp word [esi], 0x2a
jne 0x4abada
push 0xc
lea eax, [esi + 2]
push str.messages
push eax
call fcn.004fecf4
add esp, 0xc
test eax, eax
je 0x4abb1a
mov eax, 0xfeff
inc edi
add esi, 2
cmp edi, ebx
jb 0x4aba53
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
add ebp, 0xffffffd8
add esi, ebp
push 0
push esi
push ebx
mov dword [esp + 0x1c], esi
call fcn.00502aa9
push ebx
push 0x2000
lea eax, [esp + 0x30]
push 1
push eax
call fcn.0050273f
add esp, 0x1c
jmp 0x4aba32
mov eax, dword [esp + 0x10]
add eax, edi
mov edi, dword [esp + 0x14]
push 0
push eax
push edi
call fcn.00502aa9
push edi
push dword [esp + 0x203c]
push 1
push dword [esp + 0x30]
call fcn.0050273f
push edi
mov esi, eax
call fcn.004fede7
add esp, 0x20
mov eax, esi
jmp 0x4abb5a
push ebx
call fcn.004fede7
add esp, 4
xor eax, eax
pop edi
pop ebp
mov ecx, dword [esp + 0x2014]
pop esi
pop ebx
xor ecx, esp
call fcn.004f833c
add esp, 0x2010
ret 0xc

Function at 0x4addd0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x130
mov eax, dword [0x544354]
xor eax, esp
mov dword [esp + 0x12c], eax
cmp dword [0x5428b8], 0
push esi
mov esi, dword [esp + 0x140]
push edi
mov edi, dword [esp + 0x148]
jne 0x4ade2e
push 0x64
lea eax, [esp + 0x70]
push eax
push 0xf
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [esp + 0x6c]
mov word [0x58cb0c], ax
xor eax, eax
mov word [0x58cb0e], ax
mov dword [0x5428b8], 0x58cb0c
push 0x32
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x148]
push dword [esp + 0x148]
call fcn.004945c0
push edi
push esi
xor eax, eax
push 0x5428a8
mov word [esi], ax
lea eax, [esp + 0x14]
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
mov ecx, dword [esp + 0x134]
xor eax, eax
mov word [esi + edi*2 - 2], ax
pop edi
pop esi
xor ecx, esp
call fcn.004f833c
add esp, 0x130
ret 0x10
Function at 0x4ade90
Capabilities:
Get geographical location

Disassembly:
sub esp, 0xf8
mov eax, dword [0x544354]
xor eax, esp
mov dword [esp + 0xf4], eax
mov eax, dword [esp + 0x104]
mov ecx, dword [esp + 0x10c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x108]
xor ebx, ebx
push edi
mov edi, dword [esp + 0x110]
xor ebp, ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], 0x5e7
mov dword [esp + 0x1c], 0x5e8
mov dword [esp + 0x20], 0x5e9
mov dword [esp + 0x24], 0x5ea
mov dword [esp + 0x14], ecx
test edi, edi
jne 0x4adf00
cmp esi, 0x400
jb 0x4adf23
lea esp, [esp]
cmp ebx, 5
jae 0x4adf23
mov ebp, esi
inc ebx
shrd esi, edi, 0xa
and ebp, 0x3ff
shr edi, 0xa
test edi, edi
ja 0x4adf00
jb 0x4adf23
cmp esi, 0x400
jae 0x4adf00
push dword [esp + 0x118]
push eax
push edi
push esi
call fcn.004addd0
test edi, edi
ja 0x4adfb3
jb 0x4adf3d
cmp esi, 0x64
jae 0x4adfb3
test ebp, ebp
je 0x4adfb3
imul eax, ebp, 0x3e8
shr eax, 0xa
test edi, edi
ja 0x4adf5c
jb 0x4adf55
cmp esi, 0xa
jae 0x4adf5c
mov ecx, 0xa
jmp 0x4adf61
mov ecx, 0x64
xor edx, edx
div ecx
mov esi, eax
test esi, esi
je 0x4adfb3
push 0x64
lea eax, [esp + 0x40]
push eax
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
movzx eax, word [esp + 0x3c]
push esi
push eax
push str._c_u
lea eax, [esp + 0x34]
push 0xa
push eax
call fcn.00402720
mov esi, dword [esp + 0x12c]
lea eax, [esp + 0x3c]
mov edi, dword [esp + 0x24]
add esp, 0x14
push esi
push eax
push edi
call fcn.00494790
jmp 0x4adfbe
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x118]
cmp dword [esp + 0x11c], 0
jne 0x4adfcc
test ebx, ebx
je 0x4adfe9
push esi
push 0x519c74
push edi
call fcn.00494790
push esi
push dword [esp + ebx*4 + 0x18]
call fcn.0048e4c0
push eax
push edi
call fcn.00494790
mov ecx, dword [esp + 0x104]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004f833c
add esp, 0xf8
ret 0x14

Function at 0x4ae0b0
Capabilities:
Get graphical window text

Disassembly:
push edi
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x4ae114
push ebx
lea ebx, [eax + 1]
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
push esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004f847f
mov esi, eax
add esp, 4
test esi, esi
je 0x4ae112
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0
push 0
push dword [esp + 0x20]
push esi
call fcn.004ae220
push esi
call fcn.004f8488
add esp, 4
pop esi
pop ebx
pop edi
ret 0x14
Function at 0x4affd0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x30
push esi
mov esi, dword [esp + 0x38]
push edi
mov edi, ecx
cmp esi, 0x10d
jne 0x4b0026
push 1
push str.Settings
call fcn.0040bcb0
test eax, eax
je 0x4b001c
lea esi, [edi + 0x1098]
push esi
push 0x4afbf0
push dword [0x54b9c8]
push str.ORGTHEMES
push dword [0x57f310]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov dword [esi], 0
pop edi
mov al, 1
pop esi
add esp, 0x30
ret 4
cmp esi, 0x10e
jne 0x4b0056
push 1
push 0x51787c
push 0
push 0x4fe
call fcn.0048e4c0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
mov al, 1
pop esi
add esp, 0x30
ret 4
mov eax, dword [0x54b9c8]
push ebx
test eax, eax
jne 0x4b0064
xor ebx, ebx
jmp 0x4b008d
push eax
call dword [sym.imp.USER32.dll_GetMenu]
test eax, eax
jne 0x4b0073
xor ebx, ebx
jmp 0x4b008d
mov ebx, dword [sym.imp.USER32.dll_GetSubMenu]
push 4
push eax
call ebx
test eax, eax
jne 0x4b0086
xor ebx, ebx
jmp 0x4b008d
push 5
push eax
call ebx
mov ebx, eax
cmp esi, 0x10f
jne 0x4b00a6
mov dword [edi + 0x8c], 0xffffffff
push 0x51787c
jmp 0x4b0108
lea eax, [esi - 0x41a]
cmp eax, 0x7f
ja 0x4b014e
push 0x30
lea eax, [esp + 0x10]
push 0
push eax
call fcn.004fa860
add esp, 0xc
mov dword [esp + 0xc], 0x30
lea eax, [esp + 0xc]
mov dword [esp + 0x10], 0x20
push eax
push 0
push esi
push ebx
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
test eax, eax
je 0x4b014e
mov eax, dword [esp + 0x2c]
cmp eax, dword [edi + 0x7c]
jae 0x4b014e
mov dword [edi + 0x8c], eax
imul eax, eax, 0x1304
add eax, dword [edi + 0x78]
push eax
call fcn.0047d830
push eax
push str.ActivePath
push str.InterfaceThemes
call fcn.004a6940
mov eax, dword [edi + 0x1094]
cmp eax, 0xffffffff
je 0x4b012c
push 0
push eax
push ebx
call dword [sym.imp.USER32.dll_CheckMenuItem]
push 8
push esi
push ebx
call dword [sym.imp.USER32.dll_CheckMenuItem]
mov ecx, edi
mov dword [edi + 0x1094], esi
call fcn.004ae880
pop ebx
pop edi
mov al, 1
pop esi
add esp, 0x30
ret 4
pop ebx
pop edi
xor al, al
pop esi
add esp, 0x30
ret 4
Function at 0x4b2170
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x70
mov eax, dword [0x544354]
xor eax, esp
mov dword [esp + 0x6c], eax
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
je 0x4b2196
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [edi + 4], 0
push 1
push str.ViewSmall
push str.GeneralToolbar
call fcn.004a5d50
test eax, eax
je 0x4b2379
push ebx
push ebp
push esi
push 0
push dword [0x57f314]
push 0xd
push dword [0x54b9c8]
push 0
push 0
push 0
push 0
push 0x56000944
push 0
push str.ToolbarWindow32
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0x14
push 0x41e
push eax
mov dword [edi + 4], eax
call ebx
mov ebp, 0x10
mov esi, ebp
mov dword [esp + 0x10], esi
call fcn.004ccfa0
test al, al
je 0x4b221b
push ebp
call fcn.004cd030
push esi
mov ebp, eax
call fcn.004cd030
mov esi, eax
mov dword [esp + 0x10], esi
movzx esi, si
movzx ecx, bp
shl esi, 0x10
or esi, ecx
push esi
push 0
push 0x41f
push dword [edi + 4]
call ebx
push esi
push 0
push 0x420
push dword [edi + 4]
call ebx
mov eax, dword [edi + 0xc]
test eax, eax
je 0x4b224e
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0
push 0x85
push 0x84
push 0x83
push str.FolderUp.png
push 1
call fcn.004af5d0
mov dword [edi + 0xc], eax
cmp byte [0x57f404], 0
je 0x4b227d
push eax
call fcn.004cc480
call fcn.004cd260
test al, al
jne 0x4b22ad
push dword [edi + 0xc]
mov ecx, 0x572f10
call fcn.004ae810
push dword [esp + 0x10]
push ebp
push dword [edi + 0xc]
call fcn.004cd580
push 0xf
push 0xffffffffffffffff
push eax
mov dword [edi + 0xc], eax
call fcn.004cd480
mov eax, dword [edi + 0xc]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push eax
push 1
push 0x413
push dword [edi + 4]
mov dword [esp + 0x24], 0
call ebx
push 0x542dc0
push 1
push 0x444
push dword [edi + 4]
call ebx
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
push 2
call fcn.004b1050
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], 0x38
mov dword [esp + 0x20], 0x173
test eax, eax
jne 0x4b2309
mov eax, 1
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
or eax, 4
mov dword [esp + 0x24], eax
mov eax, dword [edi + 4]
push 0x12
mov dword [esp + 0x40], eax
mov dword [esp + 0x54], 2
mov dword [esp + 0x44], 0
call esi
push 0xf
mov dword [esp + 0x2c], eax
call esi
cmp dword [esp + 0x48], 0
mov dword [esp + 0x2c], eax
jne 0x4b234c
mov dword [esp + 0x48], 0x2a
lea eax, [esp + 0x6c]
push eax
push dword [0x570978]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x78]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x1c]
push eax
push 0xffffffffffffffff
push 0x40a
push dword [edi + 8]
call ebx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
pop edi
xor ecx, esp
call fcn.004f833c
add esp, 0x70
ret
Function at 0x4bbd60
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push esi
push edi
push 0x58db58
call fcn.00461e90
mov edi, dword [esp + 0xc]
mov ecx, 0x12345678
mov esi, 0x23456789
mov dword [0x59f0e8], ecx
mov edx, 0x34567890
mov dword [0x59f0ec], esi
mov dword [0x59f0f0], edx
mov al, byte [edi]
test al, al
je 0x4bbde4
movsx eax, al
lea edi, [edi + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x58db58]
movzx eax, cl
add eax, esi
mov dword [0x59f0e8], ecx
imul esi, eax, 0x8088405
inc esi
mov eax, esi
mov dword [0x59f0ec], esi
shr eax, 0x18
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x58db58]
mov dword [0x59f0f0], edx
mov al, byte [edi]
test al, al
jne 0x4bbd97
pop edi
pop esi
ret 4

Function at 0x4bbdf0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
sub esp, 0x10
mov eax, dword [0x544354]
xor eax, esp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push ebx
push esi
mov esi, dword [esp + 0x1c]
push edi
push eax
call fcn.004bbd60
mov eax, dword [esi]
xor edi, edi
mov ecx, dword [0x59f0f0]
mov ebx, dword [0x59f0e8]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 8]
mov esi, dword [0x59f0ec]
mov dword [esp + 0x14], eax
jmp 0x4bbe40
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
movzx edx, al
movzx eax, byte [esp + edi + 0xc]
xor edx, eax
movzx eax, dl
xor eax, ebx
mov byte [esp + edi + 0xc], dl
movzx eax, al
inc edi
shr ebx, 8
xor ebx, dword [eax*4 + 0x58db58]
movzx eax, bl
add eax, esi
imul esi, eax, 0x8088405
inc esi
mov eax, esi
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x58db58]
cmp edi, 0xc
jl 0x4bbe40
mov eax, dword [0x58dfb0]
movzx edx, byte [0x59e01f]
mov dword [0x59f0ec], esi
movzx esi, byte [esp + 0x17]
mov dword [0x59f0f0], ecx
mov dword [0x59f0e8], ebx
test byte [eax + 0x40], 2
jne 0x4bbecc
movzx edx, byte [0x59e027]
cmp esi, edx
je 0x4bbee7
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.004f833c
add esp, 0x10
ret 8
mov esi, dword [0x59dfc8]
mov eax, esi
cdq
cmp edx, dword [0x58df84]
jl 0x4bbf04
mov edx, dword [0x58df80]
jg 0x4bbf06
cmp eax, edx
ja 0x4bbf06
mov edx, esi
mov esi, dword [0x59dfc0]
test edx, edx
je 0x4bbf81
and ecx, 0xfffd
lea esi, [esi + 1]
or ecx, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
shr eax, 8
xor byte [esi - 1], al
movzx eax, byte [esi - 1]
mov ecx, dword [0x59f0e8]
xor eax, ecx
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x58db58]
movzx eax, cl
add eax, dword [0x59f0ec]
imul eax, eax, 0x8088405
mov dword [0x59f0e8], ecx
mov ecx, dword [0x59f0f0]
inc eax
mov dword [0x59f0ec], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x58db58]
mov dword [0x59f0f0], ecx
sub edx, 1
jne 0x4bbf10
mov ecx, dword [esp + 0x18]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f833c
add esp, 0x10
ret 8
Function at 0x4bbfa0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [0x59f0e8]
mov eax, ecx
xor eax, dword [esp + 4]
mov edx, dword [0x59f0f0]
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x58db58]
movzx eax, cl
add eax, dword [0x59f0ec]
mov dword [0x59f0e8], ecx
imul ecx, eax, 0x8088405
mov eax, dword [esp + 4]
inc ecx
mov dword [0x59f0ec], ecx
shr ecx, 0x18
xor ecx, edx
shr edx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x58db58]
mov dword [0x59f0f0], edx
ret 4
Function at 0x4bc000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x304
mov eax, dword [0x544354]
xor eax, esp
mov dword [esp + 0x300], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
push 0xa8
mov dword [esp + 0x24], eax
lea eax, [esp + 0xec]
push 0
push eax
call fcn.004fa860
add esp, 0xc
lea eax, [esp + 0xe8]
push eax
push dword [ebp + 0xc]
push esi
call fcn.004bc6f0
lea eax, [esp + 0x12]
mov byte [esp + 0x12], 0
push eax
lea eax, [esp + 0x2c]
mov byte [esp + 0x17], 0
push eax
lea eax, [esp + 0x240]
mov ecx, 0x2a
push eax
push dword [ebp + 0x14]
lea esi, [esp + 0xf8]
lea edi, [esp + 0x248]
rep movsd dword es:[edi], dword [esi]
push ebx
call fcn.004bc470
mov ecx, dword [ebp + 0x20]
mov eax, 0xcccccccd
dec ecx
mul ecx
mov eax, edx
shr eax, 4
add eax, 1
mov dword [esp + 0x24], eax
je 0x4bc247
mov edx, 1
mov dword [esp + 0x18], 0
lea ebx, [esp + 0x2e4]
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
jmp 0x4bc0d0
xor eax, eax
mov byte [esp + 0x2fb], dl
mov dword [esp + 0x2e4], eax
lea esi, [esp + 0x238]
mov dword [esp + 0x2e8], eax
lea edi, [esp + 0x190]
mov dword [esp + 0x2ec], eax
mov ecx, 0x2a
mov dword [esp + 0x2f0], eax
mov dword [esp + 0x2f4], eax
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x2f8], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x2f9], al
mov eax, edx
shr eax, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x18]
mov byte [esp + 0x2fa], al
mov eax, 4
test ecx, ecx
je 0x4bc205
mov ebx, ecx
lea ecx, [esp + 0x12]
push ecx
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x198]
push ecx
push eax
lea eax, [esp + 0x308]
push eax
call fcn.004bc470
lea eax, [esp + 0x13]
push eax
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x198]
push eax
push 0x14
lea eax, [esp + 0x308]
push eax
call fcn.004bc5a0
xor eax, eax
lea ecx, [ecx]
movzx ecx, byte [esp + eax + 0x2f8]
xor byte [esp + eax + 0x2e4], cl
movzx ecx, byte [esp + eax + 0x2f9]
xor byte [esp + eax + 0x2e5], cl
movzx ecx, byte [esp + eax + 0x2fa]
xor byte [esp + eax + 0x2e6], cl
movzx ecx, byte [esp + eax + 0x2fb]
xor byte [esp + eax + 0x2e7], cl
movzx ecx, byte [esp + eax + 0x2fc]
xor byte [esp + eax + 0x2e8], cl
add eax, 5
cmp eax, 0x14
jb 0x4bc190
lea esi, [esp + 0xe8]
mov ecx, 0x2a
lea edi, [esp + 0x190]
rep movsd dword es:[edi], dword [esi]
sub ebx, 1
jne 0x4bc147
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
xor edx, edx
mov esi, dword [esp + 0x20]
mov ecx, edi
cmp ecx, dword [ebp + 0x20]
jae 0x4bc223
mov al, byte [ebx + ecx]
inc edx
mov byte [ecx + esi], al
inc ecx
cmp edx, 0x14
jb 0x4bc211
mov edx, dword [esp + 0x14]
add edi, 0x14
inc edx
mov dword [esp + 0x18], edi
sub ebx, 0x14
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebx
lea eax, [edx - 1]
cmp eax, dword [esp + 0x24]
jb 0x4bc0d0
mov ecx, dword [esp + 0x30c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f833c
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4bc470
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [0x544354]
xor eax, esp
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x38]
push ebx
mov ebx, dword [esp + 0x34]
push edi
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x10], ecx
mov eax, dword [ebx + 0xa0]
mov dword [esp + 0xc], edi
mov dword [esp + 8], edx
cmp eax, 0xffffffff
je 0x4bc57a
cmp eax, 0x40
jbe 0x4bc4f8
lea eax, [esp + 0x14]
push eax
lea eax, [ebx + 0x40]
push eax
call fcn.00493380
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 8]
bswap eax
mov dword [ebx], eax
mov eax, dword [esp + 0x18]
bswap eax
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x1c]
bswap eax
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x20]
bswap eax
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x24]
bswap eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0xa0], 0x14
push ebp
push esi
test edi, edi
je 0x4bc517
cmp byte [edx], 0
je 0x4bc517
mov esi, edi
lea ebp, [ebx + 0x40]
mov ecx, 0x18
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x14]
jmp 0x4bc555
mov ecx, dword [ebx + 0xa0]
mov eax, 0x40
sub eax, ecx
push eax
push 0
lea eax, [ecx + ebx]
push eax
call fcn.004fa860
add esp, 0xc
xor eax, eax
xor byte [ebx + eax], 0x36
inc eax
cmp eax, 0x40
jb 0x4bc535
lea ebp, [ebx + 0x40]
push ebp
call fcn.004934a0
push 0x40
push ebx
push ebp
call fcn.004934e0
mov edx, dword [esp + 0x10]
test edi, edi
je 0x4bc56a
cmp byte [edx], 0
jne 0x4bc56a
mov ecx, 0x18
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
mov byte [edx], 1
mov ecx, dword [esp + 0x18]
pop esi
mov dword [ebx + 0xa0], 0xffffffff
pop ebp
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4bc58d
push eax
push ecx
lea eax, [ebx + 0x40]
push eax
call fcn.004934e0
mov ecx, dword [esp + 0x28]
pop edi
pop ebx
xor ecx, esp
call fcn.004f833c
add esp, 0x24
ret 0x14