joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48d380
Capabilities:
Copy file

Disassembly:
mov eax, 0x1030
call fcn.0049ebb0
mov eax, dword [0x4c03a0]
xor eax, esp
mov dword [esp + 0x102c], eax
cmp dword [0x4dbca4], 0
je 0x48d577
push 0
lea eax, [esp + 0x428]
push eax
mov ecx, 0x4e0c60
call fcn.00413520
push 1
push str.History
push str.General
call fcn.00456940
test eax, eax
setne al
mov byte [esp + 3], al
test al, al
je 0x48d3f5
push 0x400
push 0x4b1914
lea ecx, [esp + 0x2c]
push ecx
push str.SaveArcFolder
push str.InterfaceMisc
call fcn.004568e0
cmp byte [esp + 0x24], 0
jne 0x48d406
lea edx, [esp + 0x24]
push edx
call fcn.0043b050
xor eax, eax
jmp 0x48d410
mov cl, byte [esp + eax + 0x24]
mov byte [esp + eax + 0x828], cl
inc eax
test cl, cl
jne 0x48d410
lea eax, [esp + 0x828]
push eax
call fcn.0044df70
lea ecx, [esp + 0x424]
push ecx
call fcn.0044daf0
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x48d440
push esi
push edi
lea edi, [esp + 0x830]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x48d453
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push 1
push 0
lea edx, [esp + 0x838]
mov ecx, eax
push edx
and ecx, 3
push 0x5af
rep movsb byte es:[edi], byte [esi]
call fcn.0045be10
push eax
mov eax, dword [0x4dc210]
push eax
call fcn.00418e20
pop edi
pop esi
test al, al
je 0x48d577
push 0x400
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x830]
push edx
call fcn.0044dfb0
cmp byte [esp + 3], 0
je 0x48d4c9
lea eax, [esp + 0x24]
push eax
push str.SaveArcFolder
push str.InterfaceMisc
call fcn.004567a0
lea eax, [esp + 0x424]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x48d4d3
sub eax, edx
mov byte [esp + eax + 0x425], cl
lea eax, [esp + 0x828]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x48d4f0
sub eax, edx
mov byte [esp + eax + 0x829], cl
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 4], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov word [esp + 0x20], ax
lea eax, [esp + 4]
lea ecx, [esp + 0x424]
lea edx, [esp + 0x828]
push eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
je 0x48d577
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
push edx
push 0x5b0
call fcn.0045be10
push eax
call fcn.0048cd40
add esp, 0xc
mov ecx, 0x4c93ac
call fcn.00428050
mov ecx, dword [esp + 0x102c]
xor ecx, esp
call fcn.0049e626
add esp, 0x1030
ret
Function at 0x4901f0
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
sub esp, 0x41c
mov eax, dword [0x4c03a0]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [0x4e81f4]
push esi
xor esi, esi
cmp dword [eax + 0x30], esi
je 0x4903d4
push esi
push 1
push esi
push 0x4e75f4
mov ecx, 0x4e0c60
call fcn.00414490
cmp eax, 1
jne 0x4903d4
cmp dword [0x4e4708], 3
mov dword [esp + 8], esi
mov dword [esp + 0xc], esi
mov dword [esp + 4], esi
push eax
jne 0x49025d
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
mov ecx, 0x4e0c60
call fcn.00413ab0
jmp 0x490271
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, 0x4e0c60
call fcn.004139c0
cmp dword [esp + 4], esi
je 0x4903d4
mov ecx, dword [0x4e81f4]
push esi
push 0x400
push esi
lea edx, [esp + 0x28]
push edx
call fcn.004659d0
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4902e0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.0040a2e0
mov al, byte [esp + 0x10]
cmp al, 0x43
je 0x4902bd
cmp al, 0x4e
jne 0x4902e0
mov eax, dword [esp + 8]
push eax
call fcn.0049efc5
add esp, 4
pop esi
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.0049e626
add esp, 0x41c
ret
push edi
lea ecx, [esp + 0x20]
push 0x4b1ba8
push ecx
call fcn.0049fec8
mov edi, eax
add esp, 8
cmp edi, esi
jne 0x490337
lea edx, [esp + 0x20]
push edx
push 0x1f6
call fcn.0045be10
push eax
push 0x4e75f4
call fcn.0048d240
mov eax, dword [esp + 0x18]
push eax
call fcn.0049efc5
add esp, 0x10
pop edi
pop esi
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.0049e626
add esp, 0x41c
ret
mov eax, dword [0x4e4708]
cmp eax, 3
jne 0x49038b
push edi
push 0xff
call fcn.004a251d
push edi
push 0xfe
call fcn.004a251d
add esp, 0x10
cmp dword [esp + 8], esi
jbe 0x4903b6
mov ecx, dword [esp + 0x10]
movzx edx, word [ecx + esi*2]
push edi
push edx
call fcn.004a251d
mov eax, dword [esp + 0x18]
movzx ecx, byte [eax + esi*2 + 1]
push edi
push ecx
call fcn.004a251d
inc esi
add esp, 0x10
cmp esi, dword [esp + 8]
jb 0x490360
jmp 0x4903b6
cmp eax, 2
jne 0x4903a1
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push edx
push eax
push eax
call dword [sym.imp.USER32.dll_CharToOemBuffA]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push edi
push eax
push 1
push ecx
call fcn.0049fd82
add esp, 0x10
push edi
call fcn.0049fba6
mov edx, dword [esp + 0x10]
push edx
call fcn.0049efc5
mov eax, dword [esp + 0x18]
push eax
call fcn.0049efc5
add esp, 0xc
pop edi
mov ecx, dword [esp + 0x41c]
pop esi
xor ecx, esp
call fcn.0049e626
add esp, 0x41c
ret
Function at 0x490a20
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x4cc
mov eax, dword [0x4c03a0]
xor eax, esp
mov dword [esp + 0x4c8], eax
cmp byte [0x4c8d98], 0
jne 0x490b23
push esi
push 0x400
lea eax, [esp + 0xd0]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0xcc]
push ecx
call fcn.0044daf0
mov edx, dword [str.rar.ini]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [eax], edx
mov ecx, dword [0x4b596c]
lea edx, [esp + 0xcc]
push edx
push 0x64
mov dword [eax + 4], ecx
lea eax, [esp + 0x70]
push eax
push 0x4b1914
push str.regname
push str.registration
call esi
lea ecx, [esp + 0xcc]
push ecx
push 0x64
lea edx, [esp + 0xc]
push edx
push 0x4b1914
push str.regcode
push str.registration
call esi
lea eax, [esp + 0xcc]
push eax
push 0
push str.informed
push str.registration
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp byte [esp + 0x68], 0
pop esi
je 0x490b23
cmp byte [esp], 0
je 0x490b23
test eax, eax
jne 0x490b23
lea ecx, [esp + 0xc8]
push ecx
push 0x4b5938
push str.informed
push str.registration
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov edx, dword [0x4dc210]
mov eax, dword [0x4c93a8]
push 0
push 0x4851d0
push edx
push str.REREG
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov ecx, dword [esp + 0x4c8]
xor ecx, esp
call fcn.0049e626
add esp, 0x4cc
ret
Function at 0x491110
Capabilities:
Copy file

Disassembly:
sub esp, 0xc2c
mov eax, dword [0x4c03a0]
xor eax, esp
mov dword [esp + 0xc28], eax
push 0
push str.AppDataCopied
push str.General
call fcn.00456940
test eax, eax
jne 0x491296
push 0x401
lea eax, [esp + 0x428]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x424]
push ecx
call fcn.0044daf0
mov edx, dword [str.Themes]
mov dword [eax], edx
mov cx, word [0x4b59c4]
mov word [eax + 4], cx
mov dl, byte [0x4b59c6]
mov byte [eax + 6], dl
lea eax, [esp + 0x828]
push eax
call fcn.0044e170
xor eax, eax
lea ebx, [ebx]
mov cl, byte [esp + eax + 0x828]
mov byte [esp + eax + 0x20], cl
inc eax
test cl, cl
jne 0x491190
lea ecx, [esp + 0x20]
push ecx
call fcn.0044df70
lea eax, [esp + 0x20]
dec eax
nop
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4911b0
mov edx, dword [str.Themes]
mov cx, word [0x4b59c4]
mov dword [eax], edx
mov dl, byte [0x4b59c6]
mov word [eax + 4], cx
mov byte [eax + 6], dl
push 0
lea eax, [esp + 0x428]
push eax
call fcn.0042fc80
test al, al
je 0x491285
push 0
lea ecx, [esp + 0x24]
push ecx
call fcn.0042fc80
test al, al
jne 0x491285
lea eax, [esp + 0x424]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x491210
sub eax, edx
mov byte [esp + eax + 0x425], cl
lea eax, [esp + 0x20]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x491227
sub eax, edx
mov byte [esp + eax + 0x21], cl
xor eax, eax
mov dword [esp + 8], eax
lea edx, [esp + 0x424]
mov dword [esp + 4], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], ax
lea edx, [esp]
lea eax, [esp + 0x20]
mov ecx, 0x14
push edx
mov dword [esp + 8], 2
mov dword [esp + 0x10], eax
mov word [esp + 0x14], cx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
push 1
push str.AppDataCopied
push str.General
call fcn.004567e0
mov ecx, dword [esp + 0xc28]
xor ecx, esp
call fcn.0049e626
add esp, 0xc2c
ret
Function at 0x4912b0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x428
mov eax, dword [0x4c03a0]
xor eax, esp
mov dword [esp + 0x424], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x1c], 0x35d00
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 0xc
push 0
lea ecx, [esp + 8]
push ecx
push str.VerInfo
push str.General
call fcn.00456970
lea edx, [esp + 0x24]
push edx
call fcn.0044e170
lea eax, [esp + 0x24]
push eax
call fcn.0044df70
lea eax, [esp + 0x24]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x491308
mov ecx, dword [str.version.dat]
mov edx, dword [0x4b59dc]
mov dword [eax], ecx
mov ecx, dword [0x4b59e0]
push esi
mov dword [eax + 4], edx
lea edx, [esp + 0x28]
push 0x4b1948
push edx
mov dword [eax + 8], ecx
mov dword [esp + 0x18], 0
call fcn.0049fec8
mov esi, eax
add esp, 8
test esi, esi
je 0x491363
push esi
push 0xc
lea eax, [esp + 0x18]
push 1
push eax
call fcn.004a0179
push esi
call fcn.0049fba6
add esp, 0x14
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
je 0x491415
mov ecx, dword [esp + 0x10]
push 0xc
cmp ecx, eax
je 0x4913e1
lea ecx, [esp + 0x20]
push ecx
push str.VerInfo
push str.General
call fcn.00456840
lea edx, [esp + 0x28]
push 0x4b1ba8
push edx
call fcn.0049fec8
mov esi, eax
add esp, 8
test esi, esi
je 0x4913c1
push esi
push 0xc
lea eax, [esp + 0x24]
push 1
push eax
call fcn.0049fd82
push esi
call fcn.0049fba6
add esp, 0x14
mov dword [0x4dbd00], 0
pop esi
mov ecx, dword [esp + 0x424]
xor ecx, esp
call fcn.0049e626
add esp, 0x428
ret
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x1c]
push str.VerInfo
push str.General
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
call fcn.00456840
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
jne 0x49145f
cmp dword [esp + 0x10], eax
je 0x49145f
mov edx, dword [esp + 0xc]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x28]
push 0x4b1ba8
push eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
call fcn.0049fec8
mov esi, eax
add esp, 8
test esi, esi
je 0x49145f
push esi
push 0xc
lea ecx, [esp + 0xc]
push 1
push ecx
call fcn.0049fd82
push esi
call fcn.0049fba6
add esp, 0x14
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x24]
xor eax, eax
push 1
xor esi, esi
sub ecx, edx
push eax
sbb esi, eax
push esi
push ecx
call fcn.0049f1e0
mov ecx, dword [esp + 8]
xor esi, esi
sub eax, ecx
mov ecx, dword [esp + 0x20]
sbb edx, esi
push esi
add eax, ecx
push 0x989680
adc edx, esi
push edx
push eax
call fcn.0049f560
push esi
push 0xe10
push edx
push eax
call fcn.0049f560
push esi
push 0x18
push edx
push eax
call fcn.0049f560
mov dword [0x4dbd00], eax
test eax, eax
jge 0x4914c2
mov dword [0x4dbd00], 0x168
mov ecx, dword [esp + 0x428]
pop esi
xor ecx, esp
call fcn.0049e626
add esp, 0x428
ret
Function at 0x498120
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push 0x4db890
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x498159
push 0x40
push 0x2bc
call fcn.0045be10
push eax
push 0x2bd
call fcn.0045be10
push eax
mov eax, dword [0x4dc210]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
ret
push 0
push 0
push 0x4db890
mov ecx, esi
call fcn.00497210
pop esi
ret

Function at 0x498170
Capabilities:
Get common file path

Disassembly:
mov eax, 0x14a4
call fcn.0049ebb0
mov eax, dword [0x4c03a0]
xor eax, esp
mov dword [esp + 0x14a0], eax
push ebx
mov ebx, dword [esp + 0x14ac]
push esi
mov esi, dword [esp + 0x14b4]
test ebx, ebx
je 0x4981db
push 0x4b5bb8
push ebx
call fcn.0044dee0
test al, al
jne 0x4981b5
push esi
call fcn.00496150
test al, al
je 0x4981db
push 0x30
push 0x65
call fcn.0045be10
push eax
push 0x596
call fcn.0045be10
push eax
mov eax, dword [0x4dc210]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4983df
cmp dword [0x4dbca4], 0
jne 0x498218
push 0
push 0
push 1
push 0
push 0
push 0
push esi
push ebx
call fcn.00496190
test al, al
jne 0x4983df
push ebx
push 0x201
call fcn.0045be10
push eax
call fcn.0048cd40
add esp, 8
jmp 0x4983df
lea ecx, [esp + 0x4a8]
push ecx
push str.Rar_EXXXXXXX
call fcn.0047f110
test al, al
je 0x4983df
lea edx, [esp + 0x8a8]
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0x4a8]
push eax
call fcn.004acbe8
add esp, 4
lea ecx, [esp + 8]
push ecx
mov ecx, 0x4e0c60
call fcn.00413570
call fcn.0047b3d0
call fcn.00477200
push 0x4e79f4
push 0x4e75f4
mov ecx, 0x4e0c60
call fcn.00413520
mov edx, dword [esp + 0x18]
mov ecx, dword [0x4e81f4]
push 0x4b175c
mov dword [0x4e6194], edx
call fcn.00465960
push 0
push 0
mov ecx, 0x4e0c60
mov dword [0x4e5d80], 4
call fcn.004160e0
cmp dword [0x4db888], 0
jne 0x4983df
lea eax, [esp + 0xa8]
push eax
push ebx
call fcn.0044dc00
lea ecx, [esp + 0xca8]
push ecx
push esi
call fcn.0044dd40
lea edx, [esp + 0xa8]
push edx
mov eax, edx
push eax
call fcn.0042fda0
lea ecx, [esp + 0xca8]
push ecx
mov edx, ecx
push edx
call fcn.0042fe30
push 0x2010
push 0
push 0x4fdf18
call fcn.0049ebe0
add esp, 0xc
xor eax, eax
jmp 0x498320
mov cl, byte [esp + eax + 0xa8]
mov byte [eax + 0x4feb25], cl
inc eax
test cl, cl
jne 0x498320
lea eax, [esp + 0xca8]
push eax
push 0x4fef26
call fcn.0046db30
xor eax, eax
jmp 0x498350
mov cl, byte [eax + 0x4e75f4]
mov byte [eax + 0x4fdf1d], cl
inc eax
test cl, cl
jne 0x498350
push 0x4e79f4
push 0x4fe31e
call fcn.0046db30
xor eax, eax
mov cl, byte [esp + eax + 0x4a8]
mov byte [eax + 0x4ff726], cl
inc eax
test cl, cl
jne 0x498372
lea ecx, [esp + 0x8a8]
push ecx
call fcn.004acbe8
mov edx, dword [0x4e6194]
add esp, 4
cmp dword [esp + 0x94], 0
mov byte [0x4fdf1c], 0
mov dword [0x4feb20], edx
je 0x4983c1
cmp byte [0x4e2822], 0
mov byte [0x4feb24], 1
je 0x4983c8
mov byte [0x4feb24], 0
push 0x4fdf18
push 0x10000
push 0x496a10
call fcn.0049f708
add esp, 0xc
mov ecx, dword [esp + 0x14a8]
pop esi
pop ebx
xor ecx, esp
call fcn.0049e626
add esp, 0x14a4
ret 8
Function at 0x499750
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push esi
push edi
mov edi, eax
mov eax, 0x12345678
mov edx, 0x23456789
mov esi, 0x34567890
mov dword [0x500808], eax
mov dword [0x50080c], edx
mov dword [0x500810], esi
mov cl, byte [edi]
test cl, cl
je 0x4997d0
lea ebx, [ebx]
movsx ecx, cl
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x4c6a48]
inc edi
movzx ecx, al
add ecx, edx
imul ecx, ecx, 0x8088405
inc ecx
mov edx, ecx
shr ecx, 0x18
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x4c6a48]
mov dword [0x500808], eax
mov dword [0x50080c], edx
mov dword [0x500810], esi
mov cl, byte [edi]
test cl, cl
jne 0x499780
pop edi
pop esi
ret

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

Disassembly:
sub esp, 0x10
mov eax, dword [0x4c03a0]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov eax, esi
call fcn.00499750
push 0xa
lea eax, [esp + 0x14]
push eax
call fcn.00420000
mov eax, esi
call fcn.00499750
xor edi, edi
jmp 0x499820
movzx ebp, byte [esp + edi + 0x10]
mov esi, dword [0x500808]
mov ecx, dword [0x500810]
mov eax, ebp
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x4c6a48]
mov edx, ecx
mov eax, esi
mov dword [0x500808], eax
movzx eax, al
add eax, dword [0x50080c]
and edx, 0xfffd
imul eax, eax, 0x8088405
inc eax
mov dword [0x50080c], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x4c6a48]
or edx, 2
mov dword [0x500810], ecx
mov ecx, edx
xor ecx, 1
imul ecx, edx
shr ecx, 8
and ecx, 0xff
xor ecx, ebp
push ebx
push ecx
call fcn.004a251d
inc edi
add esp, 8
cmp edi, 0xa
jl 0x499820
mov esi, dword [esp + 0x28]
mov edi, dword [0x500808]
mov ebp, esi
mov ecx, dword [0x500810]
shr ebp, 0x10
mov eax, ebp
xor eax, edi
and eax, 0xff
shr edi, 8
xor edi, dword [eax*4 + 0x4c6a48]
mov edx, ecx
mov eax, edi
mov dword [0x500808], eax
movzx eax, al
add eax, dword [0x50080c]
and edx, 0xfffd
imul eax, eax, 0x8088405
inc eax
mov dword [0x50080c], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x4c6a48]
or edx, 2
mov dword [0x500810], ecx
mov ecx, edx
xor ecx, 1
imul ecx, edx
mov edx, esi
shr edx, 8
xor ecx, edx
shr ecx, 8
and ecx, 0xff
push ebx
push ecx
call fcn.004a251d
mov edi, dword [0x500808]
mov ecx, dword [0x500810]
shr esi, 0x18
xor esi, edi
and esi, 0xff
shr edi, 8
xor edi, dword [esi*4 + 0x4c6a48]
mov edx, ecx
mov eax, edi
mov dword [0x500808], eax
movzx eax, al
add eax, dword [0x50080c]
and edx, 0xfffd
imul eax, eax, 0x8088405
inc eax
mov dword [0x50080c], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
or edx, 2
shr ecx, 8
xor ecx, dword [eax*4 + 0x4c6a48]
mov eax, edx
xor eax, 1
imul eax, edx
and eax, 0xff00
xor eax, ebp
shr eax, 8
push ebx
push eax
mov dword [0x500810], ecx
call fcn.004a251d
mov ecx, dword [esp + 0x2c]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049e626
add esp, 0x10
ret 0xc
Function at 0x4999d0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Write file on windows

Disassembly:
cmp byte [0x4e5310], 0
push ebp
mov ebp, dword [esp + 0x10]
je 0x499a6b
push ebx
mov ebx, dword [esp + 0x10]
imul ebx, ebp
push edi
mov edi, dword [esp + 0x10]
test ebx, ebx
je 0x499a69
push esi
movsx eax, byte [edi]
mov esi, dword [0x500808]
xor eax, esi
and eax, 0xff
mov ecx, dword [0x500810]
shr esi, 8
xor esi, dword [eax*4 + 0x4c6a48]
mov edx, ecx
mov eax, esi
mov dword [0x500808], eax
movzx eax, al
add eax, dword [0x50080c]
and edx, 0xfffd
imul eax, eax, 0x8088405
inc eax
mov dword [0x50080c], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x4c6a48]
or edx, 2
mov dword [0x500810], ecx
mov ecx, edx
xor ecx, 1
imul ecx, edx
shr ecx, 8
xor byte [edi], cl
inc edi
sub ebx, 1
jne 0x4999f4
pop esi
pop edi
pop ebx
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push edx
push ebp
push eax
push ecx
call fcn.0049fd82
add esp, 0x10
pop ebp
ret 0x10
Function at 0x49c170
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x404
mov eax, dword [0x4c03a0]
xor eax, esp
mov dword [esp + 0x400], eax
push esi
mov esi, dword [esp + 0x40c]
push edi
mov edi, dword [esp + 0x414]
push edi
push 0x50
call fcn.004a251d
push edi
push 0x4b
call fcn.004a251d
push edi
push 3
call fcn.004a251d
push edi
push 4
call fcn.004a251d
movsx eax, byte [esi + 2]
push edi
push eax
call fcn.004a251d
movsx ecx, byte [esi + 3]
push edi
push ecx
call fcn.004a251d
movsx edx, byte [esi + 0x2c]
push edi
push edx
call fcn.004a251d
movsx eax, byte [esi + 0x2d]
push edi
push eax
call fcn.004a251d
movsx ecx, byte [esi + 6]
add esp, 0x40
push edi
push ecx
call fcn.004a251d
movsx edx, byte [esi + 7]
push edi
push edx
call fcn.004a251d
movsx eax, byte [esi + 8]
push edi
push eax
call fcn.004a251d
movsx ecx, byte [esi + 9]
push edi
push ecx
call fcn.004a251d
movsx edx, byte [esi + 0xa]
push edi
push edx
call fcn.004a251d
movsx eax, byte [esi + 0xb]
push edi
push eax
call fcn.004a251d
movsx ecx, byte [esi + 0xc]
push edi
push ecx
call fcn.004a251d
movsx edx, byte [esi + 0xd]
push edi
push edx
call fcn.004a251d
movsx eax, byte [esi + 0xe]
add esp, 0x40
push edi
push eax
call fcn.004a251d
movsx ecx, byte [esi + 0xf]
push edi
push ecx
call fcn.004a251d
movsx edx, byte [esi + 0x10]
push edi
push edx
call fcn.004a251d
movsx eax, byte [esi + 0x11]
push edi
push eax
call fcn.004a251d
movsx ecx, byte [esi + 0x12]
push edi
push ecx
call fcn.004a251d
movsx edx, byte [esi + 0x13]
push edi
push edx
call fcn.004a251d
movsx eax, byte [esi + 0x14]
push edi
push eax
call fcn.004a251d
movsx ecx, byte [esi + 0x15]
push edi
push ecx
call fcn.004a251d
movsx edx, byte [esi + 0x16]
add esp, 0x40
push edi
push edx
call fcn.004a251d
movsx eax, byte [esi + 0x17]
push edi
push eax
call fcn.004a251d
movsx ecx, byte [esi + 0x18]
push edi
push ecx
call fcn.004a251d
mov edx, dword [esi + 0x18]
shr edx, 8
movsx eax, dl
push edi
push eax
call fcn.004a251d
movsx ecx, byte [esi + 0x1c]
push edi
push ecx
call fcn.004a251d
mov edx, dword [esi + 0x1c]
shr edx, 8
movsx eax, dl
push edi
push eax
call fcn.004a251d
mov edx, dword [esi + 0x48]
add esp, 0x30
push 0x400
lea ecx, [esp + 0xc]
push ecx
push edx
call fcn.0044e7a0
mov eax, dword [esi + 0x18]
push edi
push eax
lea ecx, [esp + 0x10]
push 1
push ecx
call fcn.0049fd82
add esp, 0x10
cmp eax, dword [esi + 0x18]
jne 0x49c334
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x49c330
mov edx, dword [esi + 0x3c]
push edi
push eax
push 1
push edx
call fcn.0049fd82
add esp, 0x10
cmp eax, dword [esi + 0x1c]
jne 0x49c334
xor eax, eax
jmp 0x49c339
mov eax, 0xa
mov ecx, dword [esp + 0x408]
pop edi
pop esi
xor ecx, esp
call fcn.0049e626
add esp, 0x404
ret 8
Function at 0x49c6e0
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x20]
push edi
push esi
push 0x50
call fcn.004a251d
push esi
push 0x4b
call fcn.004a251d
push esi
push 5
call fcn.004a251d
push esi
push 6
call fcn.004a251d
push esi
push 0
call fcn.004a251d
push esi
push 0
call fcn.004a251d
push esi
push 0
call fcn.004a251d
push esi
push 0
call fcn.004a251d
mov ebx, dword [esp + 0x50]
add esp, 0x40
movsx edi, bl
push esi
push edi
call fcn.004a251d
sar ebx, 8
movsx ebx, bl
push esi
push ebx
call fcn.004a251d
push esi
push edi
call fcn.004a251d
push esi
push ebx
call fcn.004a251d
mov ebx, dword [esp + 0x34]
movsx eax, bl
push esi
push eax
call fcn.004a251d
mov ecx, ebx
shr ecx, 8
movsx edx, cl
push esi
push edx
call fcn.004a251d
mov eax, ebx
shr eax, 0x10
movsx ecx, al
push esi
push ecx
call fcn.004a251d
shr ebx, 0x18
movsx edx, bl
push esi
push edx
call fcn.004a251d
mov ebx, dword [esp + 0x58]
add esp, 0x40
movsx eax, bl
push esi
push eax
call fcn.004a251d
mov ecx, ebx
shr ecx, 8
movsx edx, cl
push esi
push edx
call fcn.004a251d
push esi
mov eax, ebx
shr eax, 0x10
movsx ecx, al
push ecx
call fcn.004a251d
shr ebx, 0x18
movsx edx, bl
push esi
push edx
call fcn.004a251d
mov ebx, dword [esp + 0x3c]
movsx eax, bl
push esi
push eax
call fcn.004a251d
mov ecx, ebx
shr ecx, 8
movsx edx, cl
push esi
push edx
call fcn.004a251d
add esp, 0x30
test ebx, ebx
je 0x49c80c
mov eax, dword [esp + 0x20]
push esi
push ebx
push 1
push eax
call fcn.0049fd82
add esp, 0x10
cmp eax, ebx
je 0x49c80c
pop edi
pop esi
mov eax, 0xa
pop ebx
ret 0x18
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x18
Function at 0x49e626
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c03a0]
jne 0x49e630
repz ret
jmp fcn.004a3615

Function at 0x49f708
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
jne 0x49f73a
call fcn.004a28c2
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.004a436d
add esp, 0x14
or eax, 0xffffffff
jmp 0x49f7bb
push esi
call fcn.004a5686
push 0x214
push 1
call fcn.004a72ba
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x49f79e
call fcn.004a586c
push dword [eax + 0x6c]
push esi
call fcn.004a570e
mov eax, dword [ebp + 0x10]
pop ecx
pop ecx
push esi
push 4
push esi
push 0x49f694
push dword [ebp + 0xc]
mov dword [esi + 0x54], edi
push ebx
mov dword [esi + 0x58], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
mov dword [esi + 4], edi
cmp edi, ebx
je 0x49f795
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x49f7b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push esi
call fcn.0049e37d
pop ecx
cmp dword [ebp - 4], ebx
je 0x49f7b3
push dword [ebp - 4]
call fcn.004a28e8
pop ecx
or eax, 0xffffffff
jmp 0x49f7ba
mov eax, edi
pop esi
pop edi
pop ebx
leave
ret