joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403730
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ebp
push str.PowerDesk_Utilties_98_Evaluation_Version_Setup
mov ebp, dword [sym.imp.USER32.dll_FindWindowA]
push 0
call ebp
mov esi, eax
test esi, esi
je 0x40376b
push 3
push 0
push 0
mov ebx, dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push 0
push 1
push esi
call ebx
push 0
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push esi
call edi
jmp 0x403777
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [sym.imp.USER32.dll_SetWindowPos]
push 0x13
call fcn.004013a0
add esp, 4
push 0
push eax
call ebp
mov esi, eax
test esi, esi
je 0x4037a0
push 3
push 0
push 0
push 0
push 0
push 1
push esi
call ebx
push 0
push esi
call edi
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4037b0
Capabilities:
Create process on windows
Delete file
Get common file path

Disassembly:
sub esp, 0x244
mov dword [esp], 0x3c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [0x6c6050]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
lea ecx, [esp + 0x48]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
push ecx
mov byte [esp + 0x4c], bl
push 0x104
mov dword [esp + 0x30], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x403912
lea edi, [esp + 0x48]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
mov edi, 0x411844
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x48]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.MIJENIX.URL
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x48]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x48]
push 0x411820
push ecx
call fcn.004095f0
add esp, 8
mov esi, eax
test esi, esi
je 0x403912
push str._InternetShortcut__n
push esi
call fcn.00409510
mov eax, dword [esp + 0x25c]
add esp, 8
push eax
push str.URL_s_n
push esi
call fcn.00409510
add esp, 0xc
push esi
call fcn.004094a0
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x150]
mov dword [esp + 0x20], eax
add esp, 4
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x14c]
lea eax, [esp + 0xc]
mov dword [esp + 0x24], ecx
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
pop edi
pop esi
pop ebx
add esp, 0x244
ret
Function at 0x4053c0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x26c
push ebx
push esi
push edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, dword [esp + 0x280]
mov ebp, 0x12c
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x150]
push eax
lea eax, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x2c]
push edx
mov dword [esp + 0x24], ebp
push 0
mov dword [esp + 0x24], ebp
push eax
push ecx
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x405451
lea eax, [esp + 0x10]
lea ecx, [esp + 0x24]
push eax
push 0xf003f
push 0
push ecx
push ebx
call edi
test eax, eax
jne 0x405441
mov eax, dword [esp + 0x10]
push eax
call fcn.004053c0
mov eax, dword [esp + 0x14]
add esp, 4
push eax
call esi
lea eax, [esp + 0x24]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x4053e2
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x26c
ret

Function at 0x405460
Capabilities:
Delete registry key

Disassembly:
sub esp, 4
lea eax, [esp]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
push eax
push 0xf003f
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40549d
mov eax, dword [esp + 8]
push eax
call fcn.004053c0
mov eax, dword [esp + 0xc]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
add esp, 4
ret

Function at 0x406070
Capabilities:
Set registry value

Disassembly:
cmp dword [0x41209c], 0
push edi
je 0x4060a3
mov edx, dword [esp + 0xc]
mov ecx, 0xffffffff
mov edi, edx
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
mov eax, dword [esp + 8]
push ecx
push edx
mov ecx, dword [0x41209c]
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
ret

Function at 0x406370
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
mov ecx, dword [0x6c5d80]
push 0
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp]
push 0
mov edx, dword [esp + 0x14]
push ecx
mov eax, dword [esp + 0x10]
push edx
push eax
mov ecx, dword [0x6c5d80]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 4
ret
Function at 0x4098f0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f410
push 0x40bc2c
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x6c5134], eax
xor eax, eax
mov al, byte [0x6c5135]
mov dword [0x6c5140], eax
mov eax, dword [0x6c5134]
shr dword [0x6c5134], 0x10
and eax, 0xff
mov dword [0x6c513c], eax
shl eax, 8
add eax, dword [0x6c5140]
mov dword [0x6c5138], eax
call fcn.0040b110
mov dword [ebp - 4], 0
call fcn.0040ba50
call fcn.0040afb0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x6c7290], eax
call fcn.0040b8b0
mov dword [0x6c4ecc], eax
test eax, eax
je 0x409989
cmp dword [0x6c7290], 0
jne 0x409993
push 0xffffffffffffffff
call fcn.0040b190
add esp, 4
call fcn.0040b630
call fcn.0040b550
call fcn.0040b160
mov esi, dword [0x6c7290]
mov al, byte [esi]
cmp al, 0x22
je 0x4099ba
cmp al, 0x20
jbe 0x4099e7
inc esi
cmp byte [esi], 0x20
ja 0x4099b2
jmp 0x4099e7
inc esi
cmp byte [esi], 0x22
je 0x4099e6
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x4099e1
xor eax, eax
mov al, bl
push eax
call fcn.0040b4f0
add esp, 4
test eax, eax
je 0x4099db
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x4099c3
cmp byte [esi], 0x22
jne 0x4099e7
inc esi
cmp byte [esi], 0
je 0x4099f7
cmp byte [esi], 0x20
ja 0x4099f7
inc esi
cmp byte [esi], 0
jne 0x4099ec
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x409a1b
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.0040b190
jmp 0x409a5c
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40b1d0
Capabilities:
Terminate process

Disassembly:
mov dword [0x6c516c], 1
cmp dword [esp + 8], 0
push ebx
push esi
mov ebx, dword [esp + 0x14]
mov byte [0x6c5168], bl
jne 0x40b22c
cmp dword [0x6c7288], 0
je 0x40b21a
mov esi, dword [0x6c7280]
sub esi, 4
cmp esi, dword [0x6c7288]
jb 0x40b21a
mov eax, dword [esi]
test eax, eax
je 0x40b20f
call eax
sub esi, 4
cmp esi, dword [0x6c7288]
jae 0x40b207
push 0x41001c
push 0x410014
call fcn.0040b250
add esp, 8
push 0x410024
push 0x410020
call fcn.0040b250
add esp, 8
test ebx, ebx
jne 0x40b24d
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebx
ret
Function at 0x40b8b0
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
cmp dword [0x6c5210], 0
push ebx
push esi
push edi
push ebp
jne 0x40b900
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
call esi
mov edi, eax
test edi, edi
je 0x40b8de
mov dword [0x6c5210], 1
mov ebx, dword [esp + 0x10]
jmp 0x40b90e
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x40b8f6
mov dword [0x6c5210], 2
jmp 0x40b90e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x6c5210], 1
jne 0x40b9bd
test edi, edi
jne 0x40b931
call esi
mov edi, eax
test edi, edi
jne 0x40b931
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x40b94b
add esi, 2
cmp word [esi], 0
jne 0x40b939
add esi, 2
cmp word [esi], 0
jne 0x40b939
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x40b9ac
push ebp
call fcn.00409870
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x40b9ac
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x40b99b
push ebx
call fcn.00409850
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x6c5210], 2
jne 0x40ba41
test ebx, ebx
jne 0x40b9e0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x40b9e0
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x40b9f5
inc ebp
cmp byte [ebp], 0
jne 0x40b9e7
inc ebp
cmp byte [ebp], 0
jne 0x40b9e7
sub ebp, ebx
inc ebp
push ebp
call fcn.00409870
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x40ba1a
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x40bd50
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor eax, eax
mov ecx, 0x6c5480
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [ecx], edx
je 0x40bd78
add ecx, 8
inc eax
cmp ecx, 0x6c5508
jb 0x40bd68
cmp dword [eax*8 + 0x6c5480], edx
lea ebx, [eax*8]
jne 0x40bf33
cmp dword [0x6c4ed8], 1
je 0x40bef8
cmp dword [0x6c4ed8], 0
jne 0x40bdaf
cmp dword [0x6c4edc], 1
je 0x40bef8
cmp edx, 0xfc
je 0x40bf33
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x40bdec
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x40be30
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x6c5554
push ebp
call fcn.0040ce30
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x6c5534
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x6c5484]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.0040cf20
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x6c7180]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x40bf0f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x6c5484]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x40c270
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x418
cmp dword [0x6c7170], edx
push ebx
push esi
push edi
push ebp
jbe 0x40c477
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x6c7180
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ecx, dword [esp + 0x18]
shl eax, 3
mov ebx, dword [ecx]
mov ebp, eax
mov dword [esp + 0x1c], eax
mov al, byte [ebx + ebp + 4]
test al, 1
je 0x40c477
xor esi, esi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], esi
cmp ebp, esi
jne 0x40c2d9
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
test al, 0x20
je 0x40c2ea
push 2
push 0
push edx
call fcn.0040ce60
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x40c386
mov dword [esp + 0x10], 0
mov edi, dword [esp + 0x430]
mov eax, edi
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x40c3bf
lea ebx, [esp + 0x24]
mov eax, edi
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x40c34d
mov al, byte [edi]
inc edi
cmp al, 0xa
jne 0x40c33b
mov byte [ebx], 0xd
inc esi
inc ebx
mov byte [ebx], al
inc ebx
mov eax, ebx
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x40c322
lea eax, [esp + 0x24]
push 0
sub ebx, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push ebx
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40c3b5
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, ebx
jge 0x40c30d
jmp 0x40c3bf
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40c3b5
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x40c3bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x40c466
cmp dword [esp + 0x10], 0
je 0x40c418
cmp dword [esp + 0x10], 5
jne 0x40c3fb
mov dword [0x6c5128], 9
mov eax, dword [esp + 0x10]
pop ebp
pop edi
mov dword [0x6c512c], eax
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.0040bf40
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x40c442
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x40c442
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x6c5128], 0x1c
mov dword [0x6c512c], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, esi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x6c5128], 9
mov dword [0x6c512c], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x40d0b0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.004097e0
push ebx
push esi
push edi
xor ebx, ebx
mov esi, dword [esp + 0x1014]
push ebp
cmp dword [0x6c7170], esi
jbe 0x40d1fd
mov eax, esi
mov ecx, esi
and eax, 0xffffffe7
and ecx, 0x1f
sar eax, 3
mov edx, dword [eax + 0x6c7180]
test byte [edx + ecx*8 + 4], 1
je 0x40d1fd
push 1
push ebx
push esi
call fcn.0040ce60
mov dword [esp + 0x1c], eax
add esp, 0xc
cmp eax, 0xffffffff
je 0x40d1ed
push 2
push ebx
push esi
call fcn.0040ce60
add esp, 0xc
cmp eax, 0xffffffff
je 0x40d1ed
mov ecx, dword [esp + 0x101c]
mov ebp, ecx
sub ebp, eax
test ebp, ebp
jle 0x40d193
lea edi, [esp + 0x14]
xor eax, eax
mov ecx, 0x400
push 0x8000
rep stosd dword es:[edi], eax
push esi
call fcn.0040d260
add esp, 8
mov edi, eax
mov eax, 0x1000
cmp ebp, eax
jge 0x40d156
mov eax, ebp
push eax
lea eax, [esp + 0x18]
push eax
push esi
call fcn.0040c270
add esp, 0xc
cmp eax, 0xffffffff
je 0x40d172
sub ebp, eax
test ebp, ebp
jg 0x40d14b
jmp 0x40d187
cmp dword [0x6c512c], 5
jne 0x40d185
mov dword [0x6c5128], 0xd
mov ebx, eax
push edi
push esi
call fcn.0040d260
add esp, 8
jmp 0x40d1d0
jge 0x40d1d0
push 0
push ecx
push esi
call fcn.0040ce60
add esp, 0xc
push esi
call fcn.0040c1b0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, 1
sbb ebx, ebx
cmp ebx, 0xffffffff
jne 0x40d1d0
mov dword [0x6c5128], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x6c512c], eax
mov eax, dword [esp + 0x10]
push 0
push eax
push esi
call fcn.0040ce60
add esp, 0xc
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x6c5128], 9
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
Function at 0x40e000
Capabilities:
Encode data using xor

Disassembly:
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [edi + 0x790000de], ch
scasd eax, dword es:[edi]
fiadd word [eax]
add byte [ecx + 6], bh
scasd eax, dword es:[edi]
fiadd word [eax]
add byte [ecx + 6], bh
lldt word [edx]
add esp, dword [edx + 0x39382736]
push 0x7b
dec esp
popfd
outsb dx, byte [esi]
pop ds
or dword [esi], eax
add dword [ebx], edx
xor al, 0xe5
not byte [esi + 0x27b307f7]
fstp dword [eax + 0x50804928]
cwde
sub byte [ecx - 0x80], cl
push eax
call dword [edi - 0x1c]
cmp ebx, dword [eax + 0x4cc6c02d]
dec ecx
sub byte [esp + ecx*2 - 0x6b], 0x24
pop es
imul eax, edi, 0x31d98518
dec edx
imul esi, dword [esi - 0x74], 0x454aa350
dec edi
rol eax, 1
mov edx, 0x1838a713
jg 0x40e010
mov edx, 0x26e6cd42
or edx, dword [eax]
sub eax, 0xbb377e32
call 0x8cab62dd
jl 0x40dfe1
push 0xffffffffffffff8c
pop edi
sub ebp, ebx
in al, dx
std
clc
add cx, word [ebx]
jnp 0x40e0dd
mov al, 0x69
jne 0x40e0da
xchg ecx, eax
std
or byte [ecx - 0x77af6cd0], ah
sbb eax, 0xffffc962
fiadd word [edi + 0x21be8a]
mov dword [0x8724e269], eax
xor esp, dword [edi + 0x16]
sub al, 0x41
imul esp, dword [eax - 0xa], 0xffffffcc
add ebx, dword [eax - 0x61]
jns 0x40e023
aad 0x66
mov esp, 0xefdb99d5
out 0xbf, eax
mov dl, 0xb4
sub al, 0xbf
cwde
xor byte [ecx + 0x70], cl
fldcw word [esi]
jne 0x40e0df
arpl word [edx - 0x57127118], dx
sal edi, 1
pushal
jl 0x40e05d
out 0x51, al
mov eax, dword [0x24ca62fb]
cwde
retf 0x69d8
sbb al, 0xa2
outsd dx, dword [esi]
lodsb al, byte [esi]
sub al, 0x83
add bl, byte [edx + ebx - 0x2290845b]
retf 0xca27
add dword [edx], 0xffffff9c
sbb ah, byte [ebp - 0x35229085]
daa
retf 0x7bb5
Function at 0x402e30
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x546008], 0x8088405
inc edx
mov dword [ebx + 0x546008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x426eb0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x426eb6
ret
Function at 0x46a488
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, ecx
mov dword [ebp - 4], eax
mov esi, dword [0x548aa8]
mov eax, dword [ebp - 4]
mov byte [eax + 0x210], 1
xor eax, eax
push ebp
push 0x46a661
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004624f0
add dword [ebp - 0xc], 4
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00463774
mov eax, dword [esi]
call fcn.00480724
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4c]
add edx, dword [ebp - 0x14]
cmp eax, edx
jge 0x46a4fa
mov eax, dword [esi]
call fcn.00480724
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x4c]
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
call fcn.00480730
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x48]
add edx, dword [ebp - 0x18]
cmp eax, edx
jge 0x46a51e
mov eax, dword [esi]
call fcn.00480730
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x48]
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
call fcn.00480718
cmp eax, dword [ebp - 0x18]
jle 0x46a534
mov eax, dword [esi]
call fcn.00480718
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
call fcn.0048070c
cmp eax, dword [ebp - 0xc]
jle 0x46a54a
mov eax, dword [esi]
call fcn.0048070c
mov dword [ebp - 0xc], eax
push 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
call fcn.00468e54
push eax
call fcn.0040799c
call fcn.00406e64
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x214]
cmp eax, 0xfa
jbe 0x46a611
mov eax, ebx
call fcn.0040450c
cmp eax, 0x64
jge 0x46a611
cmp dword [0x546e90], 0
je 0x46a611
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0x1016
call fcn.004079f4
cmp dword [ebp - 8], 0
je 0x46a611
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0x1018
call fcn.004079f4
cmp dword [ebp - 8], 0
je 0x46a5d4
mov bl, 2
jmp 0x46a5ef
lea edx, [ebp - 0x20]
mov eax, dword [0x549b24]
call fcn.0046d720
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x14]
jle 0x46a5ed
xor ebx, ebx
jmp 0x46a5ef
mov bl, 1
xor eax, eax
mov al, bl
mov eax, dword [eax*4 + 0x546f98]
or eax, 0x40000
push eax
push 0x64
mov eax, dword [ebp - 4]
call fcn.00468e54
push eax
call dword [0x546e90]
mov eax, dword [0x5488a4]
mov eax, dword [eax]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp - 4]
call fcn.0046654c
push 4
mov eax, dword [ebp - 4]
call fcn.00468e54
push eax
call fcn.004079e4
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x7c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a668
call fcn.00406e64
mov edx, dword [ebp - 4]
mov dword [edx + 0x214], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x210], 0
ret