joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101a0aa0
Capabilities:
Persist via run registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x101f6fc0
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x101a0ad3
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
cmp word [esi], 0
jne 0x101a0aeb
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
lea ecx, [esp + 4]
call fcn.10086ff0
mov eax, dword [str.SoftwareMicrosoftWindowsCurrentVersionRunServices]
push 0x20019
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0
call fcn.10087110
test eax, eax
je 0x101a0b97
push 1
push esi
lea ecx, [esp + 0xc]
call fcn.10089610
test eax, eax
jne 0x101a0b4c
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.10087090
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push edi
mov edi, dword [esp + 0x28]
test edi, edi
je 0x101a0b7f
lea ecx, [esp + 0x28]
push esi
push ecx
lea ecx, [esp + 0x10]
call fcn.10087740
push eax
mov ecx, edi
mov byte [esp + 0x1c], 1
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x28]
mov byte [esp + 0x18], 0
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0x24]
pop edi
test eax, eax
je 0x101a0c5f
mov dword [eax], 0x10
jmp 0x101a0c5f
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::CString_2
mov edx, dword [str.SystemCurrentControlSetServicesVxD]
push esi
push edx
lea eax, [esp + 0x24]
push 0x10236e60
push eax
mov byte [esp + 0x24], 2
call sub.MFC42u.DLL_CString::Format
mov ecx, dword [esp + 0x2c]
add esp, 0x10
push 0x20019
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x10]
call fcn.10087110
test eax, eax
jne 0x101a0c0b
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], al
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.10087090
xor eax, eax
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov esi, dword [esp + 0x24]
test esi, esi
je 0x101a0c43
mov edx, dword [str.StaticVxD]
lea eax, [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0xc]
call fcn.10087740
push eax
mov ecx, esi
mov byte [esp + 0x18], 3
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x24]
mov byte [esp + 0x14], 2
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0x20]
test eax, eax
je 0x101a0c51
mov dword [eax], 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.10087090
mov ecx, dword [esp + 0xc]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x101a0c90
Capabilities:
Persist via run registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x101f6fe8
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [esp + 0x24]
xor ebx, ebx
cmp edi, ebx
je 0x101a0da1
mov esi, dword [esp + 0x2c]
cmp esi, ebx
je 0x101a0da1
cmp word [edi], bx
je 0x101a0da1
cmp word [esi], bx
je 0x101a0da1
lea ecx, [esp + 0xc]
call fcn.10086ff0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], ebx
cmp eax, 2
je 0x101a0d3f
cmp eax, 1
je 0x101a0d3f
mov eax, dword [str.SoftwareMicrosoftWindowsCurrentVersionRunServices]
push 0x2001f
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x18]
call fcn.10087110
test eax, eax
jne 0x101a0d2d
mov ecx, dword [str.SoftwareMicrosoftWindowsCurrentVersionRunServices]
push 0x2001f
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x18]
call fcn.10087180
test eax, eax
je 0x101a0d90
push esi
push edi
lea ecx, [esp + 0x14]
call fcn.10088420
mov esi, eax
jmp 0x101a0e27
lea ecx, [esp + 0x24]
call sub.MFC42u.DLL_CString::CString_2
mov edx, dword [str.SystemCurrentControlSetServicesVxD]
push edi
push edx
lea eax, [esp + 0x2c]
push 0x10236e60
push eax
mov byte [esp + 0x2c], 1
call sub.MFC42u.DLL_CString::Format
mov ecx, dword [esp + 0x34]
add esp, 0x10
push 0x2001f
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x18]
call fcn.10087110
test eax, eax
jne 0x101a0db5
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.10087090
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
lea ecx, [esp + 0x2c]
call sub.MFC42u.DLL_CString::CString_2
push 0x5c
push esi
mov byte [esp + 0x24], 2
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 8
cmp eax, ebx
je 0x101a0de0
add eax, 2
lea ecx, [esp + 0x2c]
push eax
call sub.MFC42u.DLL_CString::operator_1
mov eax, dword [esp + 0x2c]
cmp dword [eax - 8], ebx
jne 0x101a0df9
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], 1
call sub.MFC42u.DLL_CString::CString
jmp 0x101a0d83
mov edx, dword [str.StaticVxD]
push eax
push edx
lea ecx, [esp + 0x14]
call fcn.10088420
lea ecx, [esp + 0x2c]
mov esi, eax
mov byte [esp + 0x1c], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.10087160
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.10087090
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x101aa7f0
Capabilities:
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x101f7180
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.1007f2d0
mov edi, dword [esp + 0x3c]
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.1007f2d0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, eax
mov eax, dword [0x10285694]
test eax, eax
je 0x101aa8a8
cmp ebp, eax
jne 0x101aa8a8
mov eax, dword [0x10285698]
test eax, eax
je 0x101aa8a8
cmp ebx, eax
jb 0x101aa8a8
add eax, 0x493e0
cmp eax, ebx
jb 0x101aa8a8
mov ebp, dword [0x1028569c]
push 1
inc ebp
push 0x102855b0
lea ecx, [esp + 0x18]
mov dword [0x1028569c], ebp
call fcn.101deb00
push 0x102855e0
mov ecx, esi
mov dword [esp + 0x34], 0
call fcn.1007f520
push 0x102855d0
mov ecx, edi
call fcn.1007f520
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
jmp 0x101aa91e
push edi
push esi
mov dword [0x1028569c], 0
call fcn.101aac20
add esp, 8
lea ecx, [esp + 0x1c]
push 1
push 0x102855b0
call fcn.101deb00
push 0xffffffffffffffff
push 0
mov ecx, 0x102855e0
mov dword [esp + 0x38], 1
mov dword [0x10285694], ebp
mov dword [0x10285698], ebx
call fcn.1007f2d0
push esi
mov ecx, 0x102855e0
call fcn.1007f520
push 0xffffffffffffffff
push 0
mov ecx, 0x102855d0
call fcn.1007f2d0
push edi
mov ecx, 0x102855d0
call fcn.1007f520
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.101deb60
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x101aac20
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x101f71e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push ebp
push esi
mov esi, dword [esp + 0x240]
push edi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.1007f2d0
mov ebp, dword [esp + 0x248]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.1007f2d0
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
test ecx, edx
je 0x101aad58
mov edx, dword [0x102459a8]
mov cx, word [0x102459ac]
mov dword [esp + 0x18], edx
add word [esp + 0x18], ax
lea edx, [esp + 0x18]
mov word [esp + 0x1c], cx
push edx
lea ecx, [esp + 0x28]
mov word [esp + 0x22], bx
call fcn.10077a80
mov eax, dword [esi + 4]
lea ecx, [esp + 0x24]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x244], ebx
call fcn.1007f960
lea ecx, [esp + 0x14]
call fcn.10077860
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x2c]
push 0x104
lea eax, [esp + 0x1c]
push edx
push eax
mov byte [esp + 0x248], 1
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea ecx, [esp + 0x2c]
mov word [esp + 0x232], bx
push ecx
lea ecx, [esp + 0x18]
call fcn.100785e0
mov eax, dword [ebp + 4]
lea edx, [esp + 0x14]
push edx
push eax
mov ecx, ebp
call fcn.1007f960
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], bl
call fcn.10078300
lea ecx, [esp + 0x24]
mov dword [esp + 0x23c], 0xffffffff
call fcn.10078300
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
inc eax
shl edx, 1
cmp eax, 0x1a
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edx
jb 0x101aac7b
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x230
ret
Function at 0x101abc00
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
mov esi, ecx
push edi
push ebp
lea edi, [esi + 0xec]
mov ecx, edi
call fcn.101b1e70
test al, al
jne 0x101abc21
pop edi
pop esi
pop ebp
ret 4
lea ecx, [esi + 0x78]
call fcn.101b02b0
cmp eax, 1
jne 0x101abc36
pop edi
pop esi
xor al, al
pop ebp
ret 4
mov al, byte [esi + 0xe8]
test al, al
je 0x101abc48
pop edi
pop esi
xor al, al
pop ebp
ret 4
lea ecx, [esi + 0x20]
call fcn.101b1390
push ebp
mov ecx, edi
call fcn.101b1e90
mov ecx, dword [esi + 0x114]
call fcn.101afcd0
test al, al
je 0x101abcff
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x101abc7a
pop edi
pop esi
xor al, al
pop ebp
ret 4
mov dword [esi + 0x14], 0x12345678
mov dword [esi + 0x18], 0x23456789
mov dword [esi + 0x1c], 0x34567890
mov eax, dword [esi + 0x10]
xor edi, edi
test eax, eax
jbe 0x101abceb
mov eax, dword [esi + 0xc]
mov cl, byte [edi + eax]
mov eax, dword [esi + 0x14]
mov byte [esp + 0x10], cl
mov ecx, esi
mov edx, dword [esp + 0x10]
push edx
push eax
call fcn.101aea30
mov edx, dword [esi + 0x18]
mov dword [esi + 0x14], eax
and eax, 0xff
add eax, edx
mov edx, dword [esi + 0x1c]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x18], eax
shr eax, 0x18
mov byte [esp + 0x10], al
mov ecx, dword [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.101aea30
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x10]
inc edi
cmp edi, eax
jb 0x101abc98
mov ecx, esi
call fcn.101ae780
test al, al
jne 0x101abcff
push 0xffffffffffffff94
mov ecx, esi
call fcn.101ab8a0
mov eax, dword [esi + 0x114]
mov di, word [eax + 0xe]
test di, di
je 0x101abd1d
cmp di, 8
je 0x101abd23
push 0xffffffffffffff9b
mov ecx, esi
call fcn.101ab8a0
cmp di, 8
jne 0x101abd5a
mov al, byte [esi + 4]
test al, al
je 0x101abd32
lea eax, [esi + 0xcc]
jmp 0x101abd34
xor eax, eax
push 0x38
push str.1.1.4
lea ecx, [esi + 0x28]
push 0xfffffffffffffff1
push ecx
mov dword [esi + 0x50], eax
call fcn.101a2b60
test eax, eax
je 0x101abd5a
cmp eax, 2
je 0x101abd5a
push eax
mov ecx, esi
call fcn.101ab8a0
mov ecx, dword [esi + 0x114]
mov edx, dword [ecx + 0x18]
mov dword [esi + 0x64], edx
call fcn.101afcd0
test al, al
je 0x101abd73
add dword [esi + 0x64], 0xfffffff4
mov eax, dword [esi + 0x114]
pop edi
mov ecx, dword [eax + 0x1c]
mov dword [esi + 0x68], 0
mov dword [esi + 0x60], ecx
mov dword [esi + 0x3c], 0
mov dword [esi + 0x2c], 0
mov byte [esi + 0xe8], 0xff
pop esi
mov al, 1
pop ebp
ret 4
Function at 0x101ace70
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x101f75ac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x22c
mov eax, dword [esp + 0x23c]
push ebx
push edi
push eax
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString_1
push 0x1023ec2c
lea ecx, [esp + 0xc]
mov dword [esp + 0x240], 0
call sub.MFC42u.DLL_CString::TrimRight_2
mov ecx, dword [esp + 8]
lea edx, [esp + 0xc]
push ecx
push edx
call fcn.101ac9f0
mov ecx, dword [esp + 0x10]
mov edx, dword [eax]
push ecx
push edx
mov byte [esp + 0x24c], 1
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 0x10
or edi, 0xffffffff
test eax, eax
je 0x101acfab
push esi
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CFileFind::CFileFind
push 0
push esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x248], 2
call sub.MFC42u.DLL_CFileFind::FindFile
test eax, eax
jne 0x101acf6b
lea eax, [esp + 0x30]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__wgetcwd]
add esp, 8
test eax, eax
je 0x101acf56
push esi
mov esi, dword [sym.imp.MSVCRT.dll__wchdir]
call esi
add esp, 4
test eax, eax
jne 0x101acf56
lea ecx, [esp + 0x30]
push ecx
call esi
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x240], 1
call fcn.101b394c
mov eax, edi
jmp 0x101acf9d
lea ecx, [esp + 0x14]
mov byte [esp + 0x240], 1
call fcn.101b394c
xor eax, eax
jmp 0x101acf9d
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CFileFind::FindNextFileW
mov edx, dword [esp + 0x14]
push 0x10
lea ecx, [esp + 0x18]
call dword [edx + 0x40]
neg eax
sbb eax, eax
lea ecx, [esp + 0x14]
and al, 0xfe
mov byte [esp + 0x240], 1
inc eax
mov esi, eax
call fcn.101b394c
mov eax, esi
cmp eax, edi
pop esi
sete al
test al, al
jne 0x101acfab
xor bl, bl
jmp 0x101acfad
mov bl, 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x23c], 0
call sub.MFC42u.DLL_CString::CString
test bl, bl
jne 0x101ad038
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
call fcn.101ac9f0
mov eax, dword [eax]
mov byte [esp + 0x244], 3
push eax
call fcn.101ace70
add esp, 0xc
lea ecx, [esp + 0xc]
test al, al
sete bl
mov byte [esp + 0x23c], 0
call sub.MFC42u.DLL_CString::CString
test bl, bl
jne 0x101ad00f
mov edx, dword [esp + 8]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x101ad038
lea ecx, [esp + 8]
mov dword [esp + 0x23c], edi
call sub.MFC42u.DLL_CString::CString
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
add esp, 0x238
ret
lea ecx, [esp + 8]
mov dword [esp + 0x23c], edi
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x234]
pop edi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x238
ret
Function at 0x101ad810
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, ecx
cmp byte [ebx + 0xe8], 1
je 0x101ad822
xor al, al
pop ebx
ret 8
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push esi
mov esi, dword [ebx + 0x114]
push ecx
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], ecx
push eax
mov eax, dword [esi + 0x14]
push eax
call fcn.101de3b0
mov dword [esi + 0x14], eax
mov eax, dword [ebx + 0x2c]
test eax, eax
jbe 0x101ad96c
push ebp
push edi
mov eax, dword [ebx + 0x38]
test eax, eax
jne 0x101ad8ca
mov ecx, dword [ebx + 0x114]
call fcn.101afcd0
test al, al
je 0x101ad8a5
mov eax, dword [ebx + 0x64]
xor ebp, ebp
test eax, eax
jbe 0x101ad8a5
mov esi, dword [ebx + 0x70]
mov edi, dword [ebx + 0x1c]
add esi, ebp
and edi, 0xfffd
or edi, 2
mov cl, byte [esi]
push ecx
mov ecx, ebx
call fcn.101ae710
mov edx, edi
mov al, byte [esi]
xor edx, 1
imul edx, edi
sar edx, 8
xor al, dl
inc ebp
mov byte [esi], al
mov eax, dword [ebx + 0x64]
cmp ebp, eax
jb 0x101ad871
mov eax, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x70]
push 0
push eax
push ecx
lea ecx, [ebx + 0x78]
call fcn.101b1000
mov dword [ebx + 0x64], 0
mov edx, dword [ebx + 0x74]
mov dword [ebx + 0x38], edx
mov eax, dword [ebx + 0x70]
mov dword [ebx + 0x34], eax
mov ecx, dword [ebx + 0x114]
cmp word [ecx + 0xe], 8
jne 0x101ad905
mov esi, dword [ebx + 0x3c]
lea eax, [ebx + 0x28]
push 0
push eax
call fcn.101a1860
test eax, eax
je 0x101ad8f6
cmp eax, 2
je 0x101ad8f6
push eax
mov ecx, ebx
call fcn.101ab8a0
mov edx, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x64]
sub edx, esi
add eax, edx
mov dword [ebx + 0x64], eax
jmp 0x101ad95f
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x38]
cmp eax, ecx
jb 0x101ad911
mov eax, ecx
mov esi, dword [ebx + 0x28]
mov edi, dword [ebx + 0x34]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x38]
mov ebp, dword [ebx + 0x28]
mov edi, dword [ebx + 0x34]
mov esi, dword [ebx + 0x30]
sub edx, eax
sub ecx, eax
mov dword [ebx + 0x2c], edx
mov edx, dword [ebx + 0x3c]
mov dword [ebx + 0x38], ecx
mov ecx, dword [ebx + 0x64]
add ebp, eax
add edi, eax
add esi, eax
add edx, eax
add ecx, eax
mov dword [ebx + 0x28], ebp
mov dword [ebx + 0x34], edi
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x3c], edx
mov dword [ebx + 0x64], ecx
mov eax, dword [ebx + 0x2c]
test eax, eax
ja 0x101ad852
pop edi
pop ebp
pop esi
mov al, 1
pop ebx
ret 8
Function at 0x101ad980
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0xe8], 1
je 0x101ad990
xor al, al
pop esi
ret
mov eax, dword [esi + 0x114]
push ebx
mov dword [esi + 0x2c], 0
push ebp
cmp word [eax + 0xe], 8
push edi
jne 0x101ada4a
mov eax, dword [esi + 0x38]
test eax, eax
jne 0x101ada15
mov ecx, dword [esi + 0x114]
call fcn.101afcd0
test al, al
je 0x101ad9f0
mov eax, dword [esi + 0x64]
xor ebp, ebp
test eax, eax
jbe 0x101ad9f0
mov edi, dword [esi + 0x70]
mov ecx, esi
add edi, ebp
call fcn.101ae890
mov cl, byte [edi]
mov bl, al
push ecx
mov ecx, esi
call fcn.101ae710
mov dl, byte [edi]
xor dl, bl
inc ebp
mov byte [edi], dl
mov eax, dword [esi + 0x64]
cmp ebp, eax
jb 0x101ad9ca
mov edx, dword [esi + 0x64]
mov eax, dword [esi + 0x70]
push 0
push edx
push eax
lea ecx, [esi + 0x78]
call fcn.101b1000
mov dword [esi + 0x64], 0
mov ecx, dword [esi + 0x74]
mov dword [esi + 0x38], ecx
mov edx, dword [esi + 0x70]
mov dword [esi + 0x34], edx
mov edi, dword [esi + 0x3c]
lea eax, [esi + 0x28]
push 4
push eax
call fcn.101a1860
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x64]
sub ecx, edi
add edx, ecx
test eax, eax
mov dword [esi + 0x64], edx
je 0x101ad9ab
cmp eax, 1
je 0x101ada4a
cmp eax, 2
je 0x101ada4a
push eax
mov ecx, esi
call fcn.101ab8a0
mov eax, dword [esi + 0x64]
test eax, eax
jbe 0x101adaaf
mov ecx, dword [esi + 0x114]
call fcn.101afcd0
test al, al
je 0x101ada9d
mov eax, dword [esi + 0x64]
xor ebx, ebx
test eax, eax
jbe 0x101ada9d
mov edi, dword [esi + 0x70]
mov ebp, dword [esi + 0x1c]
add edi, ebx
and ebp, 0xfffd
mov ecx, esi
or ebp, 2
mov dl, byte [edi]
push edx
call fcn.101ae710
mov eax, ebp
mov dl, byte [edi]
xor eax, 1
imul eax, ebp
sar eax, 8
xor dl, al
inc ebx
mov byte [edi], dl
mov eax, dword [esi + 0x64]
cmp ebx, eax
jb 0x101ada69
mov ecx, dword [esi + 0x64]
mov edx, dword [esi + 0x70]
push 0
push ecx
push edx
lea ecx, [esi + 0x78]
call fcn.101b1000
mov eax, dword [esi + 0x114]
pop edi
pop ebp
pop ebx
cmp word [eax + 0xe], 8
jne 0x101adad9
lea ecx, [esi + 0x28]
push ecx
call fcn.101a1be0
test eax, eax
je 0x101adad9
cmp eax, 2
je 0x101adad9
push eax
mov ecx, esi
call fcn.101ab8a0
mov eax, dword [esi + 0x114]
mov edx, dword [esi + 0x3c]
mov ecx, dword [eax + 0x18]
add ecx, edx
mov dword [eax + 0x18], ecx
mov eax, dword [esi + 0x114]
mov ecx, dword [esi + 0x30]
mov dword [eax + 0x1c], ecx
lea ecx, [esi + 0xec]
call fcn.101b2200
lea ecx, [esi + 0x6c]
mov byte [esi + 0xe8], 0
call fcn.101b14b0
mov al, 1
pop esi
ret

Function at 0x101aded0
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
push ebx
lea ecx, [esp + 8]
push eax
push ecx
call fcn.101adf00
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
lea ecx, [esp + 8]
sete bl
call sub.MFC42u.DLL_CString::CString
mov al, bl
pop ebx
ret
Function at 0x101ae780
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push 0xffffffffffffffff
push 0x101f77c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov esi, ecx
push ebp
push 0xc
lea ecx, [esp + 0x1c]
call fcn.101b1400
mov eax, dword [esp + 0x18]
push ebp
push 0xc
push eax
lea ecx, [esi + 0x78]
mov dword [esp + 0x34], ebp
call fcn.101b00a0
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0x18]
and eax, 0xfffd
mov edi, dword [esi + 0x14]
or al, 2
mov dl, byte [ecx + ebp]
mov ebx, eax
xor ebx, 1
imul ebx, eax
sar ebx, 8
xor bl, dl
call fcn.101de3a0
mov dl, bl
mov ecx, edi
and edx, 0xff
and ecx, 0xff
xor edx, ecx
mov ecx, esi
shr edi, 8
mov eax, dword [eax + edx*4]
mov edx, dword [esi + 0x18]
xor eax, edi
mov dword [esi + 0x14], eax
and eax, 0xff
add eax, edx
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x18], eax
shr eax, 0x18
mov byte [esp + 0x10], al
mov eax, dword [esi + 0x1c]
mov edx, dword [esp + 0x10]
push edx
push eax
call fcn.101aea30
inc ebp
mov dword [esi + 0x1c], eax
cmp ebp, 0xc
jl 0x101ae7c0
mov ecx, dword [esi + 0x114]
call fcn.101afce0
mov esi, dword [esi + 0x114]
test al, al
je 0x101ae855
xor ecx, ecx
mov cl, byte [esi + 0x11]
cmp cl, bl
jmp 0x101ae85d
mov edx, dword [esi + 0x14]
shr edx, 0x18
cmp dl, bl
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
sete bl
call fcn.101b1480
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x101aea60
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esi + 0x14], 0x12345678
mov dword [esi + 0x18], 0x23456789
mov dword [esi + 0x1c], 0x34567890
mov eax, dword [esi + 0x10]
test eax, eax
jbe 0x101aead8
mov eax, dword [esi + 0xc]
mov cl, byte [eax + edi]
mov eax, dword [esi + 0x14]
mov byte [esp + 0x10], cl
mov ecx, esi
mov edx, dword [esp + 0x10]
push edx
push eax
call fcn.101aea30
mov edx, dword [esi + 0x18]
mov dword [esi + 0x14], eax
and eax, 0xff
add eax, edx
mov edx, dword [esi + 0x1c]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x18], eax
shr eax, 0x18
mov byte [esp + 0x10], al
mov ecx, dword [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.101aea30
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x10]
inc edi
cmp edi, eax
jb 0x101aea85
push 0
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
imul edi, eax
push edi
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 4
xor ebp, ebp
call dword [sym.imp.MSVCRT.dll_rand]
mov ebx, eax
sar ebx, 6
test bl, bl
mov byte [esp + 0x10], bl
jne 0x101aeb13
mov bl, al
mov byte [esp + 0x10], bl
mov edi, dword [esi + 0x1c]
mov eax, dword [esp + 0x10]
and edi, 0xfffd
push eax
mov ecx, esi
or edi, 2
call fcn.101ae710
mov ecx, edi
mov edx, dword [esp + 0x1c]
xor ecx, 1
imul ecx, edi
mov eax, dword [edx + 4]
sar ecx, 8
xor cl, bl
mov byte [eax + ebp], cl
inc ebp
cmp ebp, 0xa
jl 0x101aeafa
mov ebp, dword [esp + 0x18]
mov edi, dword [esi + 0x1c]
mov ebx, ebp
and edi, 0xfffd
sar ebx, 0x10
mov byte [esp + 0x10], bl
or edi, 2
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, esi
call fcn.101ae710
mov edx, edi
mov eax, dword [esp + 0x1c]
xor edx, 1
imul edx, edi
mov ecx, dword [eax + 4]
mov eax, ebp
sar edx, 8
xor dl, bl
mov byte [ecx + 0xa], dl
mov edi, dword [esi + 0x1c]
mov ebx, dword [esi + 0x14]
and edi, 0xfffd
sar eax, 0x18
mov byte [esp + 0x10], al
or edi, 2
call fcn.101de3a0
mov dl, byte [esp + 0x10]
mov ecx, ebx
and edx, 0xff
and ecx, 0xff
xor edx, ecx
mov ecx, dword [esi + 0x18]
shr ebx, 8
mov eax, dword [eax + edx*4]
mov ebp, dword [esi + 0x1c]
xor eax, ebx
mov dword [esi + 0x14], eax
and eax, 0xff
add eax, ecx
imul eax, eax, 0x8088405
inc eax
mov ebx, eax
mov dword [esi + 0x18], eax
shr ebx, 0x18
call fcn.101de3a0
mov ecx, edi
mov edx, ebp
xor ecx, 1
and ebx, 0xff
imul ecx, edi
and edx, 0xff
pop edi
xor ebx, edx
mov edx, dword [esp + 0x18]
shr ebp, 8
mov eax, dword [eax + ebx*4]
xor eax, ebp
mov dword [esi + 0x1c], eax
mov al, byte [esp + 0xc]
sar ecx, 8
xor cl, al
mov eax, dword [edx + 4]
pop esi
pop ebp
mov byte [eax + 0xb], cl
pop ebx
pop ecx
ret 8