joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44bec4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x94], 0
je 0x44bef9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403c20
jmp 0x44bf03
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.00403b8c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44cdb8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x44cdf0
mov eax, esi
call fcn.004345d8
test al, al
je 0x44cdf0
mov eax, dword [ebx + 0x74]
call fcn.004342dc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44cdf0
push 0
mov eax, dword [ebx + 0x74]
call fcn.004342dc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403f7c
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x453371
test al, 0x10
jne 0x453375
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x45ae50
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.00402bc8
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x482ab0]
cmp byte [edx + 8], 0
je 0x45aeb4
mov edx, dword [0x482aa8]
cmp dword [edx], 2
jne 0x45aeb4
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret
Function at 0x45aeb8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x45af70
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x40]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.0045ae50
test al, al
je 0x45af52
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00403c20
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x45af52
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00403f7c
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumValueA
mov eax, dword [ebp - 0xc]
call fcn.00403f7c
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00403cf0
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x34]
inc esi
dec ebx
jne 0x45af0b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45af77
lea eax, [ebp - 0x2c]
call fcn.00403b38
lea eax, [ebp - 0xc]
call fcn.00403b38
ret

Function at 0x45b0fc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.0045ab90
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00403f7c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x45b15a
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4828d0]
mov dl, 1
mov eax, dword [0x45aa1c]
call fcn.0040c344
call fcn.00403608
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x45b164
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00403f7c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x45b1bc
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x482abc]
mov dl, 1
mov eax, dword [0x45aa1c]
call fcn.0040c344
call fcn.00403608
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0045abc0
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x45c2bc
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 8]
call fcn.00403f6c
xor eax, eax
push ebp
push 0x45c3b8
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x45c3d0
mov dl, 1
mov eax, dword [0x45aae4]
call fcn.0045b280
mov esi, eax
push 1
mov ecx, 0x45c3e4
mov edx, 0x45c3f8
mov eax, esi
call fcn.0045b414
mov ebx, eax
mov eax, esi
call fcn.00402eb0
cmp bl, 1
jne 0x45c3a2
push 0x45c404
push 0
push 0
call sub.KERNEL32.DLL_CreateMutexA
mov dword [0x4838ac], eax
push 0x2710
mov eax, dword [0x4838ac]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
cmp eax, 0x102
jne 0x45c34a
call fcn.00403a00
mov eax, dword [ebp - 4]
push eax
push edi
call sub.user32.dll_FindWindowA
mov ebx, eax
test ebx, ebx
je 0x45c364
push 4
push ebx
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
je 0x45c3a2
push ebx
call sub.user32.dll_IsIconic
test eax, eax
je 0x45c37c
push 1
push ebx
call sub.user32.dll_ShowWindow
jmp 0x45c382
push ebx
call sub.user32.dll_SetForegroundWindow
mov eax, dword [ebp - 8]
call fcn.00403db8
test eax, eax
jle 0x45c39d
push 0x40
call sub.user32.dll_MessageBeep
mov eax, dword [ebp - 8]
call fcn.00452fb0
call fcn.00403a00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c3bf
lea eax, [ebp - 8]
call fcn.00403b38
ret

Function at 0x45c444
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403f6c
xor eax, eax
push ebp
push 0x45c525
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
call fcn.00403f7c
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
mov eax, ebx
call fcn.0040271c
mov esi, eax
push esi
push ebx
push 0
push edi
call sub.version.dll_GetFileVersionInfoA
test ebx, ebx
jbe 0x45c4e6
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x45c538
push esi
call sub.version.dll_VerQueryValueA
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 8]
shr edx, 0x10
mov ecx, dword [ebp - 8]
mov word [ecx], dx
mov dx, word [eax + 8]
and dx, 0xffff
mov ecx, dword [ebp - 0xc]
mov word [ecx], dx
mov edx, dword [eax + 0xc]
shr edx, 0x10
mov ecx, dword [ebp + 0xc]
mov word [ecx], dx
mov ax, word [eax + 0xc]
and ax, 0xffff
mov edx, dword [ebp + 8]
mov word [edx], ax
jmp 0x45c506
mov eax, dword [ebp - 8]
mov word [eax], 0
mov eax, dword [ebp - 0xc]
mov word [eax], 0
mov eax, dword [ebp + 0xc]
mov word [eax], 0
mov eax, dword [ebp + 8]
mov word [eax], 0
mov edx, ebx
mov eax, esi
call fcn.00402734
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c52c
lea eax, [ebp - 4]
call fcn.00403b38
ret
Function at 0x45c6b8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403f6c
xor eax, eax
push ebp
push 0x45c826
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00403db8
test eax, eax
jle 0x45c701
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 4]
call fcn.00403bd0
jmp 0x45c70b
lea edx, [ebp - 0x20]
xor eax, eax
call fcn.00402958
lea eax, [ebp - 0x115]
mov edx, dword [ebp - 0x20]
call fcn.004097e4
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x20]
call fcn.00403f7c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x45c7d4
mov eax, dword [ebp - 0xc]
call fcn.0040271c
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x45c7cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x115]
push eax
call sub.version.dll_GetFileVersionInfoA
neg eax
sbb eax, eax
neg eax
cmp al, 1
jne 0x45c7b4
xor eax, eax
push ebp
push 0x45c7aa
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x45c834
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueA
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
call fcn.00409954
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45c7b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c7e1
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
call fcn.00402734
ret
lea eax, [ebp - 0x24]
mov edx, 0x45c864
call fcn.00403bd0
mov eax, dword [ebp - 0x24]
call fcn.0045bcc0
test al, al
jne 0x45c7f8
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.0045c53c
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x24]
call fcn.00403b8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c82d
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00403b5c
lea eax, [ebp - 4]
call fcn.00403b38
ret

Function at 0x45d350
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403f6c
xor eax, eax
push ebp
push 0x45d3c4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00403db8
movzx edi, ax
test edi, edi
jle 0x45d3a3
mov esi, 1
mov eax, dword [ebp - 4]
mov bl, byte [eax + esi - 1]
xor bl, 0x9f
lea eax, [ebp - 4]
call fcn.00403f88
mov byte [eax + esi - 1], bl
inc esi
dec edi
jne 0x45d389
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00403b8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d3cb
lea eax, [ebp - 4]
call fcn.00403b38
ret
Function at 0x45d3d4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45d460
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
push esi
push ebx
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.0040796c
test eax, eax
je 0x45d44a
lea eax, [ebp - 8]
mov edx, 0x104
call fcn.004040ec
mov eax, dword [ebp - 8]
call fcn.00403f7c
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov eax, dword [ebp - 8]
call fcn.00403f7c
call fcn.00409720
mov edx, eax
lea eax, [ebp - 8]
call fcn.004040ec
mov edx, edi
mov eax, dword [ebp - 8]
call fcn.0045b874
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d467
lea eax, [ebp - 8]
call fcn.00403b38
ret

Function at 0x45eed8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov edi, edx
xor edx, edx
push ebp
push 0x45ef79
push dword fs:[edx]
mov dword fs:[edx], esp
mov ebx, dword [eax + 4]
mov eax, ebx
mov edx, dword [0x442768]
call fcn.00403040
call fcn.004342dc
mov ebx, eax
lea eax, [ebp - 4]
push eax
push edi
push ebx
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.0040e4d0
test al, al
je 0x45ef63
lea eax, [ebp - 8]
mov edx, 0x104
call fcn.004040ec
mov eax, dword [ebp - 8]
call fcn.00403f7c
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov eax, dword [ebp - 8]
call fcn.00403f7c
call fcn.00409720
mov edx, eax
lea eax, [ebp - 8]
call fcn.004040ec
mov eax, esi
mov edx, dword [ebp - 8]
call fcn.00403b8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ef80
lea eax, [ebp - 8]
call fcn.00403b38
ret

Function at 0x4605fc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403f6c
xor eax, eax
push ebp
push 0x4606c9
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4606a4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00403db8
test eax, eax
jle 0x460689
push pe_nt_image_headers32
lea eax, [ebx + 0x10d]
push eax
lea eax, [ebx + 8]
push eax
lea eax, [ebx + 4]
push eax
push ebx
push pe_nt_image_headers32
lea eax, [ebx + 0xc]
push eax
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004668e8
mov eax, dword [ebp - 0x10]
call fcn.00403f7c
push eax
call sub.KERNEL32.DLL_GetVolumeInformationA
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 5], al
jmp 0x46068d
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4606ab
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
Function at 0x460954
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00403f6c
xor eax, eax
push ebp
push 0x460a34
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [esi + 0x7c], 4
jne 0x46098d
mov byte [ebp - 5], 1
jmp 0x460a16
mov eax, ebx
xor ecx, ecx
mov edx, 0x18
call fcn.00402bc8
push 1
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x460a0f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
lea eax, [ebx + 4]
push eax
push ebx
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004668e8
mov eax, dword [ebp - 0x10]
call fcn.00403f7c
push eax
call sub.KERNEL32.DLL_GetDiskFreeSpaceA
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 5], al
mov eax, dword [ebx + 4]
imul dword [ebx]
imul dword [ebx + 8]
mov dword [ebx + 0x14], eax
mov eax, dword [ebx + 4]
imul dword [ebx]
imul dword [ebx + 0xc]
mov dword [ebx + 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460a16
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460a3b
lea eax, [ebp - 0x10]
call fcn.00403b38
lea eax, [ebp - 4]
call fcn.00403b38
ret

Function at 0x460b40
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00403f6c
xor eax, eax
push ebp
push 0x460bab
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00403db8
test eax, eax
jle 0x460b8e
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004668e8
mov eax, dword [ebp - 8]
call fcn.00403f7c
push eax
call sub.KERNEL32.DLL_GetDriveTypeA
mov ebx, eax
jmp 0x460b90
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460bb2
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403b5c
ret

Function at 0x461108
Capabilities:
Get file size

Disassembly:
push ebx
push ecx
push esp
push eax
call sub.KERNEL32.DLL_GetFileSize_1
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x461125
call sub.KERNEL32.DLL_GetLastError_1
test eax, eax
je 0x461125
xor ebx, ebx
jmp 0x46112e
mov eax, dword [esp]
mov edx, eax
neg eax
add ebx, eax
mov eax, ebx
pop edx
pop ebx
ret
Function at 0x466d74
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffefc
mov edi, ecx
mov esi, edx
mov ebx, eax
mov edx, dword [esi]
xor ecx, ecx
mov eax, ebx
call fcn.004610e0
push 0
lea eax, [esp + 4]
push eax
push pe_nt_image_headers32
lea eax, [esp + 0x10]
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile_1
mov eax, edi
lea edx, [esp + 4]
mov ecx, pe_nt_image_headers32
call fcn.00403d68
mov eax, dword [edi]
call fcn.00403db8
inc eax
add dword [esi], eax
add esp, 0x104
pop edi
pop esi
pop ebx
ret

Function at 0x466dcc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov byte [ebp - 5], cl
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov edx, dword [edx]
xor ecx, ecx
mov eax, esi
call fcn.004610e0
xor edx, edx
mov dl, byte [ebp - 5]
mov eax, ebx
call fcn.004040ec
push 0
lea eax, [ebp - 0xc]
push eax
xor eax, eax
mov al, byte [ebp - 5]
push eax
mov eax, ebx
call fcn.00403f88
push eax
push esi
call sub.KERNEL32.DLL_ReadFile_1
test eax, eax
je 0x466e3f
mov edi, dword [ebp - 0xc]
test edi, edi
jle 0x466e46
mov esi, 1
mov eax, dword [ebx]
cmp byte [eax + esi - 1], 0
jne 0x466e39
mov eax, ebx
call fcn.00403f88
mov byte [eax + esi - 1], 0x20
inc esi
dec edi
jne 0x466e24
jmp 0x466e46
mov eax, ebx
call fcn.00403b38
xor eax, eax
mov al, byte [ebp - 5]
mov edx, dword [ebp - 4]
add dword [edx], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x467458
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
test edx, edx
jle 0x467482
mov ebx, dword [ecx]
movzx esi, byte [eax]
xor ebx, esi
and ebx, 0xff
movzx ebx, word [ebx*2 + 0x482290]
mov esi, dword [ecx]
shr esi, 8
xor ebx, esi
mov dword [ecx], ebx
inc eax
dec edx
test edx, edx
jg 0x46745e
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403f7c
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4674c5
test al, 0x10
jne 0x4674c9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x46766c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov esi, 0x4839a4
mov edx, dword [esi]
mov eax, ebx
call fcn.00466ef4
mov edi, eax
mov dword [esi], edi
and edi, 0xff
add dword [esi + 4], edi
imul ebx, dword [esi + 4], 0x8088405
inc ebx
mov dword [esi + 4], ebx
mov eax, ebx
call fcn.0040790c
call fcn.00407910
mov edx, dword [esi + 8]
call fcn.00466ef4
mov dword [esi + 8], eax
pop edi
pop esi
pop ebx
ret
Function at 0x467760
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov byte [ebp - 1], dl
mov esi, eax
mov eax, dword [ebp + 8]
call fcn.00403f6c
xor eax, eax
push ebp
push 0x467829
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 2], 0
cmp dword [ebp + 8], 0
je 0x467813
mov eax, dword [ebp + 8]
call fcn.004676b4
mov al, byte [ebp - 1]
dec eax
test al, al
jb 0x4677d6
inc eax
mov byte [ebp - 4], al
mov bl, 0
call fcn.0046764c
xor edx, edx
mov dl, bl
xor ecx, ecx
mov cl, byte [ebp - 1]
add edx, ecx
xor al, byte [esi + edx]
mov byte [ebp - 3], al
mov al, byte [ebp - 3]
call fcn.0046766c
xor eax, eax
mov al, bl
mov dl, byte [ebp - 3]
mov byte [esi + eax], dl
inc ebx
dec byte [ebp - 4]
jne 0x4677a8
xor eax, eax
mov al, byte [ebp - 1]
mov bl, byte [esi + eax - 1]
and di, 8
cmp di, 8
je 0x467800
mov eax, dword [ebp + 0x10]
call fcn.0040790c
call fcn.00407910
cmp bl, al
jne 0x467813
mov byte [ebp - 2], 1
jmp 0x467813
xor eax, eax
mov al, bl
movzx edx, word [ebp + 0xc]
shr edx, 8
cmp eax, edx
jne 0x467813
mov byte [ebp - 2], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467830
lea eax, [ebp + 8]
call fcn.00403b38
ret
Function at 0x46859c
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, edx
mov esi, eax
xor ebx, ebx
mov byte [esi + 0x3c], 0
cmp dword [esi + 0x40], 4
jbe 0x468686
xor ecx, ecx
mov edx, 0x1e24
mov eax, edi
call fcn.004610e0
test al, al
je 0x4685fe
xor eax, eax
mov dword [esp + 4], eax
push 0
lea eax, [esp + 4]
push eax
push 2
lea eax, [esp + 0x10]
push eax
push edi
call sub.KERNEL32.DLL_ReadFile_1
cmp dword [esp + 4], 0x91a
jne 0x4685fe
mov dword [esi + 0x30], 0x1e25
mov byte [esi + 0x3c], 7
mov bl, 1
jmp 0x4686a4
cmp dword [esi + 0x40], 0x1dc0
jbe 0x468642
xor ecx, ecx
mov edx, 0x1dbc
mov eax, edi
call fcn.004610e0
test al, al
je 0x468642
push 0
lea eax, [esp + 4]
push eax
push 4
lea eax, [esp + 0x10]
push eax
push edi
call sub.KERNEL32.DLL_ReadFile_1
cmp dword [esp + 4], 0x4034b50
jne 0x468642
mov dword [esi + 0x30], 0x1dbc
mov bl, 1
jmp 0x4686a4
cmp dword [esi + 0x40], 0x6441
jbe 0x468686
xor ecx, ecx
mov edx, 0x643d
mov eax, edi
call fcn.004610e0
test al, al
je 0x468686
push 0
lea eax, [esp + 4]
push eax
push 4
lea eax, [esp + 0x10]
push eax
push edi
call sub.KERNEL32.DLL_ReadFile_1
cmp dword [esp + 4], 0x4034b50
jne 0x468686
mov dword [esi + 0x30], 0x643d
mov bl, 1
jmp 0x4686a4
test bl, bl
je 0x4686a0
mov edx, edi
mov eax, esi
call fcn.00467c04
mov byte [esi + 0x3c], 0x1d
mov byte [esi + 0x31e], 0x10
jmp 0x4686a4
mov byte [esi + 0x3c], 0
mov eax, ebx
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x46883c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x468997
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp dword [eax + 0x40], 0x200
jbe 0x468981
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.004610e0
push 0
lea eax, [ebp - 8]
push eax
push 0x200
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
add eax, 0x11e
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile_1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp byte [eax + 0x1ba], 0x56
jne 0x4688f0
mov eax, ebx
call fcn.004610d0
mov esi, eax
inc esi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dword [eax + 0x30], esi
mov eax, dword [ebp + 8]
add esi, 0x200
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp esi, dword [eax + 0x40]
jae 0x468981
push 0
lea eax, [ebp - 8]
push eax
push 0x200
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
add eax, 0x11e
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile_1
lea eax, [ebp - 0xc]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
add edx, 0x1b2
mov ecx, 8
call fcn.00403d68
mov eax, dword [ebp - 0xc]
call fcn.004662fc
mov esi, eax
xor ecx, ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
lea edx, [eax + 0x11e]
xor eax, eax
lea ebx, [edx + eax]
mov edi, dword [ebp + 8]
mov edi, dword [edi - 4]
add edi, 0x1b2
cmp ebx, edi
jl 0x46894c
lea ebx, [edx + eax]
mov edi, dword [ebp + 8]
mov edi, dword [edi - 4]
add edi, 0x1b2
add edi, 8
cmp ebx, edi
jl 0x468955
xor ebx, ebx
mov bl, byte [edx + eax]
add ecx, ebx
jmp 0x468958
add ecx, 0x20
inc eax
cmp eax, 0x200
jne 0x468923
cmp esi, ecx
jne 0x468974
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov byte [eax + 0x3c], 0x1a
mov byte [ebp - 1], 1
jmp 0x468981
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dword [eax + 0x30], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46899e
lea eax, [ebp - 0xc]
call fcn.00403b38
ret