joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4924f0
Capabilities:
Delete directory
Enumerate files on windows

Disassembly:
mov eax, 0x1a64
call fcn.004a4490
mov eax, dword [0x4ca3b0]
xor eax, esp
mov dword [esp + 0x1a60], eax
cmp byte [esp + 0x1a6c], 0
mov dword [0x4e83a0], 1
je 0x4926a0
push esi
push 0x400
lea eax, [esp + 0xa68]
push eax
call fcn.00484000
lea ecx, [esp + 0xa64]
push ecx
call fcn.00451050
lea edx, [esp + 0xa64]
push edx
lea eax, [esp + 0x1268]
push str._sRar_
push eax
mov edx, 0x400
call fcn.0046b810
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1268]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [esp + 8], esi
cmp esi, 0xffffffff
je 0x492698
push ebx
push edi
cmp dword [0x4e83a0], 1
jne 0x492696
mov ecx, dword [esp + 0x18]
sub ecx, dword [esp + 0x24]
cmp ecx, 8
setae byte [esp + 0xf]
xor eax, eax
movzx ecx, word [esp + eax + 0xa6c]
mov word [esp + eax + 0x26c], cx
add eax, 2
test cx, cx
jne 0x4925b0
lea eax, [esp + 0x48]
mov edx, eax
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4925d0
lea edi, [esp + 0x26c]
sub eax, edx
add edi, 0xfffffffe
jmp 0x4925f0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4925f0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test byte [esp + 0x1c], 0x10
rep movsb byte es:[edi], byte [esi]
je 0x492671
push 6
lea edx, [esp + 0x4c]
push str.Rar_DI
push edx
call fcn.004a663a
add esp, 0xc
test eax, eax
jne 0x49263b
call fcn.0043e920
cmp eax, 0x400
je 0x49263b
mov bl, 1
jmp 0x49263d
xor bl, bl
lea eax, [esp + 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x49267e
cmp byte [esp + 0xf], al
je 0x49265e
cmp byte [esp + 0x1a74], al
je 0x492662
test bl, bl
je 0x49267e
lea ecx, [esp + 0x26c]
push ecx
call fcn.00484e00
jmp 0x49267e
lea edx, [esp + 0x26c]
push edx
call fcn.00484b90
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x492591
pop edi
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
cmp byte [esp + 0x1a68], 0
jne 0x4926ce
cmp byte [0x4d50a0], 0
je 0x4926ce
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 1
call fcn.0048fbf0
mov byte [0x4d50a0], al
mov ecx, dword [esp + 0x1a60]
xor ecx, esp
mov dword [0x4e83a0], 0
call fcn.004a3c63
add esp, 0x1a64
ret 8
Function at 0x4931d0
Capabilities:
Copy file
Move file

Disassembly:
mov eax, 0x202c
call fcn.004a4490
mov eax, dword [0x4ca3b0]
xor eax, esp
mov dword [esp + 0x2028], eax
cmp byte [0x4e7b89], 0
je 0x4933e5
push ebx
push 0x401
lea eax, [esp + 0x828]
push eax
mov ecx, 0x4eeda0
call fcn.00412f80
push 1
push str.History
push str.General
call fcn.0045b230
test eax, eax
setne bl
test bl, bl
je 0x493245
push 0x400
push 0x4b8d34
lea ecx, [esp + 0x2c]
push ecx
push str.SaveArcFolder
push 0x4ba258
call fcn.0045b200
cmp word [esp + 0x24], 0
jne 0x493257
lea edx, [esp + 0x24]
push edx
call fcn.0043c740
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0x24]
mov word [esp + eax + 0x1028], cx
add eax, 2
test cx, cx
jne 0x493260
lea eax, [esp + 0x1028]
push eax
call fcn.00451050
lea ecx, [esp + 0x824]
push ecx
call fcn.004515b0
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x493291
push esi
push edi
lea edi, [esp + 0x1030]
sub eax, edx
add edi, 0xfffffffe
lea ebx, [ebx]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4932b0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push 1
push 0
lea edx, [esp + 0x1038]
mov ecx, eax
push edx
and ecx, 3
push 0x5af
rep movsb byte es:[edi], byte [esi]
call fcn.00460a30
push eax
mov eax, dword [0x4e8cd4]
push eax
call fcn.00419620
pop edi
pop esi
test al, al
je 0x4933e4
push 0x400
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x1030]
push edx
call fcn.00451ae0
test bl, bl
je 0x493327
lea eax, [esp + 0x24]
push eax
push str.SaveArcFolder
push 0x4ba258
call fcn.0045b130
lea eax, [esp + 0x824]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x493331
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [esp + eax*2 + 0x826], cx
lea eax, [esp + 0x1028]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x493354
sub eax, edx
sar eax, 1
xor edx, edx
mov word [esp + eax*2 + 0x102a], dx
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 edx, [esp + 4]
lea eax, [esp + 0x824]
lea ecx, [esp + 0x1028]
push edx
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x4933e4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
push 0x5b0
call fcn.00460a30
push eax
call fcn.004926f0
add esp, 0xc
mov ecx, 0x4d56b4
call fcn.00428cd0
pop ebx
mov ecx, dword [esp + 0x2028]
xor ecx, esp
call fcn.004a3c63
add esp, 0x202c
ret
Function at 0x496350
Capabilities:
Copy file
Move file

Disassembly:
mov eax, 0x182c
call fcn.004a4490
mov eax, dword [0x4ca3b0]
xor eax, esp
mov dword [esp + 0x1828], eax
push 0
push str.AppDataCopied
push str.General
call fcn.0045b230
test eax, eax
jne 0x496508
push esi
push 0x401
lea eax, [esp + 0x82c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x828]
push ecx
mov esi, str.Themes
call fcn.004515b0
lea esp, [esp]
movzx ecx, word [esi]
mov word [eax], cx
add esi, 2
add eax, 2
test cx, cx
jne 0x4963b0
lea edx, [esp + 0x102c]
push edx
call fcn.00451da0
xor eax, eax
pop esi
jmp 0x4963e0
movzx ecx, word [esp + eax + 0x1028]
mov word [esp + eax + 0x20], cx
add eax, 2
test cx, cx
jne 0x4963e0
lea eax, [esp + 0x20]
push eax
call fcn.00451050
lea eax, [esp + 0x20]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x496406
mov ecx, dword [str.Themes]
mov edx, dword [0x4bf610]
mov dword [eax], ecx
mov ecx, dword [0x4bf614]
mov dword [eax + 4], edx
mov dx, word [0x4bf618]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
lea eax, [esp + 0x824]
push eax
call fcn.00431560
test al, al
je 0x4964f7
lea ecx, [esp + 0x20]
push ecx
call fcn.00431560
test al, al
jne 0x4964f7
lea eax, [esp + 0x824]
lea edx, [eax + 2]
jmp 0x496470
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x496470
sub eax, edx
sar eax, 1
xor edx, edx
mov word [esp + eax*2 + 0x826], dx
lea eax, [esp + 0x20]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x496490
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [esp + eax*2 + 0x22], cx
xor eax, eax
mov dword [esp + 8], eax
lea edx, [esp + 0x824]
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_SHFileOperationW]
push 1
push str.AppDataCopied
push str.General
call fcn.0045b150
mov ecx, dword [esp + 0x1828]
xor ecx, esp
call fcn.004a3c63
add esp, 0x182c
ret
Function at 0x496520
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x428
mov eax, dword [0x4ca3b0]
xor eax, esp
mov dword [esp + 0x424], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x1c], 0x40002
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.0045b250
lea edx, [esp + 0x24]
push edx
call fcn.00451d20
lea eax, [esp + 0x24]
push eax
call fcn.00451a60
lea eax, [esp + 0x24]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x496578
mov ecx, dword [str.version.dat]
mov edx, dword [0x4bf63c]
mov dword [eax], ecx
mov ecx, dword [0x4bf640]
push esi
mov dword [eax + 4], edx
lea edx, [esp + 0x28]
push 0x4b8a34
push edx
mov dword [eax + 8], ecx
mov dword [esp + 0x18], 0
call fcn.004a70a7
mov esi, eax
add esp, 8
test esi, esi
je 0x4965d3
push esi
push 0xc
lea eax, [esp + 0x18]
push 1
push eax
call fcn.004a5982
push esi
call fcn.004a5d25
add esp, 0x14
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
je 0x496685
mov ecx, dword [esp + 0x10]
push 0xc
cmp ecx, eax
je 0x496651
lea ecx, [esp + 0x20]
push ecx
push str.VerInfo
push str.General
call fcn.0045b1b0
lea edx, [esp + 0x28]
push 0x4b8e04
push edx
call fcn.004a70a7
mov esi, eax
add esp, 8
test esi, esi
je 0x496631
push esi
push 0xc
lea eax, [esp + 0x24]
push 1
push eax
call fcn.004a5f54
push esi
call fcn.004a5d25
add esp, 0x14
mov dword [0x4e8428], 0
pop esi
mov ecx, dword [esp + 0x424]
xor ecx, esp
call fcn.004a3c63
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.0045b1b0
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
jne 0x4966cf
cmp dword [esp + 0x10], eax
je 0x4966cf
mov edx, dword [esp + 0xc]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x28]
push 0x4b8e04
push eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
call fcn.004a70a7
mov esi, eax
add esp, 8
test esi, esi
je 0x4966cf
push esi
push 0xc
lea ecx, [esp + 0xc]
push 1
push ecx
call fcn.004a5f54
push esi
call fcn.004a5d25
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.004a4ac0
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.004a5010
push esi
push 0xe10
push edx
push eax
call fcn.004a5010
push esi
push 0x18
push edx
push eax
call fcn.004a5010
mov dword [0x4e8428], eax
test eax, eax
jge 0x496732
mov dword [0x4e8428], 0x168
mov ecx, dword [esp + 0x428]
pop esi
xor ecx, esp
call fcn.004a3c63
add esp, 0x428
ret
Function at 0x497280
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
sub esp, 0x810
mov eax, dword [0x4ca3b0]
xor eax, esp
mov dword [esp + 0x80c], eax
mov eax, dword [0x4f781c]
push esi
xor esi, esi
cmp dword [eax + 0x20], esi
je 0x497464
push esi
push 1
push 0x4f701c
mov ecx, 0x4eeda0
call fcn.00416180
cmp eax, 1
jne 0x497464
cmp dword [0x4f34b0], 3
mov dword [esp + 8], esi
mov dword [esp + 0xc], esi
mov dword [esp + 4], esi
push eax
jne 0x4972ec
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
mov ecx, 0x4eeda0
call fcn.00413240
jmp 0x497300
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, 0x4eeda0
call fcn.00413160
cmp dword [esp + 4], esi
je 0x497464
mov ecx, dword [0x4f781c]
push 0x400
lea edx, [esp + 0x14]
push edx
call fcn.0046abc0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x497371
push esi
push esi
push 0x7fffffff
push 0x7fffffff
lea ecx, [esp + 0x20]
push ecx
push esi
call fcn.0040aea0
cmp al, 0x43
je 0x49734e
cmp al, 0x4e
jne 0x497371
mov edx, dword [esp + 8]
push edx
call fcn.004a48a5
add esp, 4
pop esi
mov ecx, dword [esp + 0x80c]
xor ecx, esp
call fcn.004a3c63
add esp, 0x810
ret
push edi
push esi
push 0x4b8e04
lea eax, [esp + 0x1c]
push eax
call fcn.00431b90
mov edi, eax
cmp edi, esi
jne 0x4973c6
lea ecx, [esp + 0x14]
push ecx
push 0x1f6
call fcn.00460a30
push eax
push 0x4f701c
call fcn.00492ce0
mov edx, dword [esp + 0x18]
push edx
call fcn.004a48a5
add esp, 0x10
pop edi
pop esi
mov ecx, dword [esp + 0x80c]
xor ecx, esp
call fcn.004a3c63
add esp, 0x810
ret
mov eax, dword [0x4f34b0]
cmp eax, 3
jne 0x49741b
push edi
push 0xff
call fcn.004a7680
push edi
push 0xfe
call fcn.004a7680
add esp, 0x10
cmp dword [esp + 8], esi
jbe 0x497446
nop
mov eax, dword [esp + 0x10]
movzx ecx, word [eax + esi*2]
push edi
push ecx
call fcn.004a7680
mov edx, dword [esp + 0x18]
movzx eax, byte [edx + esi*2 + 1]
push edi
push eax
call fcn.004a7680
inc esi
add esp, 0x10
cmp esi, dword [esp + 8]
jb 0x4973f0
jmp 0x497446
cmp eax, 2
jne 0x497431
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push ecx
push eax
push eax
call dword [sym.imp.USER32.dll_CharToOemBuffA]
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push edi
push edx
push 1
push eax
call fcn.004a5f54
add esp, 0x10
push edi
call fcn.004a5d25
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004a48a5
mov edx, dword [esp + 0x18]
push edx
call fcn.004a48a5
add esp, 0xc
pop edi
mov ecx, dword [esp + 0x810]
pop esi
xor ecx, esp
call fcn.004a3c63
add esp, 0x810
ret
Function at 0x49ba40
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1044
call fcn.004a4490
mov eax, dword [0x4ca3b0]
xor eax, esp
mov dword [esp + 0x1040], eax
mov eax, dword [esp + 0x105c]
push ebx
mov ebx, dword [esp + 0x1064]
push ebp
mov ebp, dword [esp + 0x105c]
push esi
mov esi, dword [esp + 0x1058]
push edi
mov edi, dword [esp + 0x1060]
push 0x3c
lea ecx, [esp + 0x18]
push 0
push ecx
mov dword [esp + 0x1c], eax
call fcn.004a44c0
add esp, 0xc
cmp byte [esp + 0x1068], 0
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x18], 0x500
jne 0x49bab6
mov dword [esp + 0x18], 0x540
push esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebp
call fcn.004515b0
cmp eax, esi
jne 0x49baf0
push esi
lea edx, [esp + 0x54]
push str.._s
push edx
mov edx, 0x800
call fcn.0046b810
lea eax, [esp + 0x5c]
add esp, 0xc
mov dword [esp + 0x24], eax
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea ecx, [esp + 0x14]
mov ebx, 1
push ecx
mov dword [esp + 0x34], ebx
mov byte [0x4e7b8b], bl
call esi
test eax, eax
jne 0x49bb21
cmp dword [esp + 0x20], eax
je 0x49bb21
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x24], eax
call esi
mov byte [0x4e7b8b], 0
test eax, eax
je 0x49bbd2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x483
je 0x49bbd2
cmp byte [esp + 0x1068], 0
jne 0x49bbce
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x49bb82
mov eax, dword [0x514118]
mov edx, dword [esp + 0x34]
mov dword [eax*4 + 0x5140d8], ecx
mov dword [eax*4 + 0x514098], edx
inc eax
and eax, 0x8000000f
jns 0x49bb7b
dec eax
or eax, 0xfffffff0
inc eax
mov dword [0x514118], eax
jmp 0x49bbc4
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor esi, esi
lea ebx, [ebx]
mov eax, dword [esi + 0x514098]
cmp eax, dword [esp + 0x34]
jne 0x49bbb8
mov ecx, dword [esi + 0x5140d8]
push 0
push ecx
call edi
cmp eax, 0x102
jne 0x49bbb8
mov edx, dword [esi + 0x5140d8]
mov dword [esp + 0x4c], edx
add esi, 4
cmp esi, 0x40
jl 0x49bb90
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x49bbce
mov dword [eax], ecx
mov al, bl
jmp 0x49bbd4
xor al, al
mov ecx, dword [esp + 0x1050]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a3c63
add esp, 0x1044
ret 0x1c

Function at 0x49d950
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push 0x4e7b90
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x49d989
push 0x40
push 0x2bc
call fcn.00460a30
push eax
push 0x2bd
call fcn.00460a30
push eax
mov eax, dword [0x4e8cd4]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
pop esi
ret
push 0
push 0x4e7b90
mov ecx, esi
call fcn.0049cb70
pop esi
ret
Function at 0x49eea0
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 [0x51ccb4], eax
mov dword [0x51ccb8], edx
mov dword [0x51ccbc], esi
mov cl, byte [edi]
test cl, cl
je 0x49ef20
lea ebx, [ebx]
movsx ecx, cl
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x4d1b58]
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 + 0x4d1b58]
mov dword [0x51ccb4], eax
mov dword [0x51ccb8], edx
mov dword [0x51ccbc], esi
mov cl, byte [edi]
test cl, cl
jne 0x49eed0
pop edi
pop esi
ret

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

Disassembly:
sub esp, 0x10
mov eax, dword [0x4ca3b0]
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.0049eea0
push 0xa
lea eax, [esp + 0x14]
push eax
call fcn.00420c40
mov eax, esi
call fcn.0049eea0
xor edi, edi
jmp 0x49ef70
movzx ebp, byte [esp + edi + 0x10]
mov esi, dword [0x51ccb4]
mov ecx, dword [0x51ccbc]
mov eax, ebp
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x4d1b58]
mov edx, ecx
mov eax, esi
mov dword [0x51ccb4], eax
movzx eax, al
add eax, dword [0x51ccb8]
and edx, 0xfffd
imul eax, eax, 0x8088405
inc eax
mov dword [0x51ccb8], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x4d1b58]
or edx, 2
mov dword [0x51ccbc], 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.004a7680
inc edi
add esp, 8
cmp edi, 0xa
jl 0x49ef70
mov esi, dword [esp + 0x28]
mov edi, dword [0x51ccb4]
mov ebp, esi
mov ecx, dword [0x51ccbc]
shr ebp, 0x10
mov eax, ebp
xor eax, edi
and eax, 0xff
shr edi, 8
xor edi, dword [eax*4 + 0x4d1b58]
mov edx, ecx
mov eax, edi
mov dword [0x51ccb4], eax
movzx eax, al
add eax, dword [0x51ccb8]
and edx, 0xfffd
imul eax, eax, 0x8088405
inc eax
mov dword [0x51ccb8], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x4d1b58]
or edx, 2
mov dword [0x51ccbc], 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.004a7680
mov edi, dword [0x51ccb4]
mov ecx, dword [0x51ccbc]
shr esi, 0x18
xor esi, edi
and esi, 0xff
shr edi, 8
xor edi, dword [esi*4 + 0x4d1b58]
mov edx, ecx
mov eax, edi
mov dword [0x51ccb4], eax
movzx eax, al
add eax, dword [0x51ccb8]
and edx, 0xfffd
imul eax, eax, 0x8088405
inc eax
mov dword [0x51ccb8], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
or edx, 2
shr ecx, 8
xor ecx, dword [eax*4 + 0x4d1b58]
mov eax, edx
xor eax, 1
imul eax, edx
and eax, 0xff00
xor eax, ebp
shr eax, 8
push ebx
push eax
mov dword [0x51ccbc], ecx
call fcn.004a7680
mov ecx, dword [esp + 0x2c]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a3c63
add esp, 0x10
ret 0xc
Function at 0x49f120
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Write file on windows

Disassembly:
cmp word [0x4f40b8], 0
push ebp
mov ebp, dword [esp + 0x10]
je 0x49f1bc
push ebx
mov ebx, dword [esp + 0x10]
imul ebx, ebp
push edi
mov edi, dword [esp + 0x10]
test ebx, ebx
je 0x49f1ba
push esi
movsx eax, byte [edi]
mov esi, dword [0x51ccb4]
xor eax, esi
and eax, 0xff
mov ecx, dword [0x51ccbc]
shr esi, 8
xor esi, dword [eax*4 + 0x4d1b58]
mov edx, ecx
mov eax, esi
mov dword [0x51ccb4], eax
movzx eax, al
add eax, dword [0x51ccb8]
and edx, 0xfffd
imul eax, eax, 0x8088405
inc eax
mov dword [0x51ccb8], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x4d1b58]
or edx, 2
mov dword [0x51ccbc], ecx
mov ecx, edx
xor ecx, 1
imul ecx, edx
shr ecx, 8
xor byte [edi], cl
inc edi
sub ebx, 1
jne 0x49f145
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.004a5f54
add esp, 0x10
pop ebp
ret 0x10
Function at 0x4a10e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x404
mov eax, dword [0x4ca3b0]
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.004a7680
push edi
push 0x4b
call fcn.004a7680
push edi
push 3
call fcn.004a7680
push edi
push 4
call fcn.004a7680
movsx eax, byte [esi + 2]
push edi
push eax
call fcn.004a7680
movsx ecx, byte [esi + 3]
push edi
push ecx
call fcn.004a7680
movsx edx, byte [esi + 0x2c]
push edi
push edx
call fcn.004a7680
movsx eax, byte [esi + 0x2d]
push edi
push eax
call fcn.004a7680
movsx ecx, byte [esi + 6]
add esp, 0x40
push edi
push ecx
call fcn.004a7680
movsx edx, byte [esi + 7]
push edi
push edx
call fcn.004a7680
movsx eax, byte [esi + 8]
push edi
push eax
call fcn.004a7680
movsx ecx, byte [esi + 9]
push edi
push ecx
call fcn.004a7680
movsx edx, byte [esi + 0xa]
push edi
push edx
call fcn.004a7680
movsx eax, byte [esi + 0xb]
push edi
push eax
call fcn.004a7680
movsx ecx, byte [esi + 0xc]
push edi
push ecx
call fcn.004a7680
movsx edx, byte [esi + 0xd]
push edi
push edx
call fcn.004a7680
movsx eax, byte [esi + 0xe]
add esp, 0x40
push edi
push eax
call fcn.004a7680
movsx ecx, byte [esi + 0xf]
push edi
push ecx
call fcn.004a7680
movsx edx, byte [esi + 0x10]
push edi
push edx
call fcn.004a7680
movsx eax, byte [esi + 0x11]
push edi
push eax
call fcn.004a7680
movsx ecx, byte [esi + 0x12]
push edi
push ecx
call fcn.004a7680
movsx edx, byte [esi + 0x13]
push edi
push edx
call fcn.004a7680
movsx eax, byte [esi + 0x14]
push edi
push eax
call fcn.004a7680
movsx ecx, byte [esi + 0x15]
push edi
push ecx
call fcn.004a7680
movsx edx, byte [esi + 0x16]
add esp, 0x40
push edi
push edx
call fcn.004a7680
movsx eax, byte [esi + 0x17]
push edi
push eax
call fcn.004a7680
movsx ecx, byte [esi + 0x18]
push edi
push ecx
call fcn.004a7680
mov edx, dword [esi + 0x18]
shr edx, 8
movsx eax, dl
push edi
push eax
call fcn.004a7680
movsx ecx, byte [esi + 0x1c]
push edi
push ecx
call fcn.004a7680
mov edx, dword [esi + 0x1c]
shr edx, 8
movsx eax, dl
push edi
push eax
call fcn.004a7680
mov edx, dword [esi + 0x48]
add esp, 0x30
push 0x400
lea ecx, [esp + 0xc]
push ecx
push edx
call fcn.004526f0
mov eax, dword [esi + 0x18]
push edi
push eax
lea ecx, [esp + 0x10]
push 1
push ecx
call fcn.004a5f54
add esp, 0x10
cmp eax, dword [esi + 0x18]
jne 0x4a12a4
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4a12a0
mov edx, dword [esi + 0x3c]
push edi
push eax
push 1
push edx
call fcn.004a5f54
add esp, 0x10
cmp eax, dword [esi + 0x1c]
jne 0x4a12a4
xor eax, eax
jmp 0x4a12a9
mov eax, 0xa
mov ecx, dword [esp + 0x408]
pop edi
pop esi
xor ecx, esp
call fcn.004a3c63
add esp, 0x404
ret 8
Function at 0x4a1650
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x20]
push edi
push esi
push 0x50
call fcn.004a7680
push esi
push 0x4b
call fcn.004a7680
push esi
push 5
call fcn.004a7680
push esi
push 6
call fcn.004a7680
push esi
push 0
call fcn.004a7680
push esi
push 0
call fcn.004a7680
push esi
push 0
call fcn.004a7680
push esi
push 0
call fcn.004a7680
mov ebx, dword [esp + 0x50]
add esp, 0x40
movsx edi, bl
push esi
push edi
call fcn.004a7680
sar ebx, 8
movsx ebx, bl
push esi
push ebx
call fcn.004a7680
push esi
push edi
call fcn.004a7680
push esi
push ebx
call fcn.004a7680
mov ebx, dword [esp + 0x34]
movsx eax, bl
push esi
push eax
call fcn.004a7680
mov ecx, ebx
shr ecx, 8
movsx edx, cl
push esi
push edx
call fcn.004a7680
mov eax, ebx
shr eax, 0x10
movsx ecx, al
push esi
push ecx
call fcn.004a7680
shr ebx, 0x18
movsx edx, bl
push esi
push edx
call fcn.004a7680
mov ebx, dword [esp + 0x58]
add esp, 0x40
movsx eax, bl
push esi
push eax
call fcn.004a7680
mov ecx, ebx
shr ecx, 8
movsx edx, cl
push esi
push edx
call fcn.004a7680
push esi
mov eax, ebx
shr eax, 0x10
movsx ecx, al
push ecx
call fcn.004a7680
shr ebx, 0x18
movsx edx, bl
push esi
push edx
call fcn.004a7680
mov ebx, dword [esp + 0x3c]
movsx eax, bl
push esi
push eax
call fcn.004a7680
mov ecx, ebx
shr ecx, 8
movsx edx, cl
push esi
push edx
call fcn.004a7680
add esp, 0x30
test ebx, ebx
je 0x4a177c
mov eax, dword [esp + 0x20]
push esi
push ebx
push 1
push eax
call fcn.004a5f54
add esp, 0x10
cmp eax, ebx
je 0x4a177c
pop edi
pop esi
mov eax, 0xa
pop ebx
ret 0x18
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x18