joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40209e
Capabilities:
Create directory
Delete file
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 4]
and byte [ebp - 0x210], al
mov dword [ebp - 8], ebx
stosd dword es:[edi], eax
push 0x40
lea edi, [ebp - 0x20f]
pop ecx
and byte [ebp - 0x33c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x4a
xor eax, eax
pop ecx
lea edi, [ebp - 0x33b]
rep stosd dword es:[edi], eax
and byte [ebp - 0x468], bl
push 0x4a
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x467]
and byte [ebp - 0x10c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x210]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x402134
lea eax, [ebp - 0x210]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x4021a3
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00402ae9
pop ecx
test eax, eax
pop ecx
je 0x4021a3
mov eax, dword [0x40edac]
xor ecx, ecx
cmp ecx, dword [ebp - 4]
ja 0x4021af
jb 0x40215d
cmp eax, dword [ebp - 8]
jae 0x4021af
mov esi, 0x40ec94
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00402bf3
pop ecx
test eax, eax
pop ecx
je 0x4021a3
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4021a3
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4021a3
cmp dword [0x40edb4], ebx
je 0x40219b
push ebx
push ebx
jmp 0x40229b
push 1
pop eax
jmp 0x4022ae
push ebx
call fcn.00401d3c
pop ecx
jmp 0x4022ac
movzx eax, word [0x40de40]
push eax
lea eax, [ebp - 0x33c]
push str.0x_04x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x10c]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x10c]
push 0x40b0ec
push eax
call fcn.00402a07
pop ecx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop ecx
lea eax, [ebp - 0x10c]
mov esi, 0x12c
push eax
mov edi, 0x40e35c
push esi
push edi
push 0x40de38
lea eax, [ebp - 0x33c]
push str.Caption
push eax
call ebx
test eax, eax
jne 0x40222e
push esi
push edi
push 3
push dword [0x40dd30]
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x468]
push esi
push eax
push 0x40de38
lea eax, [ebp - 0x33c]
push str.NoSpace
push eax
call ebx
test eax, eax
jne 0x40226a
lea eax, [ebp - 0x468]
push esi
push eax
push 1
push dword [0x40dd30]
call dword [sym.imp.USER32.dll_LoadStringA]
push 4
lea eax, [ebp - 0x468]
push edi
push eax
push dword [0x40eda0]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x402297
push dword [0x40eda0]
push 0x40de48
call fcn.00401261
pop ecx
pop ecx
push 0
push 0
push 0x415
push dword [0x40eda0]
call dword [sym.imp.USER32.dll_PostMessageA]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4022b3
Capabilities:
Create directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
push ebx
push esi
xor ebx, ebx
push edi
cmp dword [0x40edb4], ebx
jne 0x402426
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x107]
mov byte [ebp - 0x108], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x20b]
mov byte [ebp - 0x20c], bl
rep stosd dword es:[edi], eax
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x108]
push eax
call esi
lea eax, [ebp - 0x108]
push eax
call fcn.00402a91
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x108]
mov dword [esp], 0x40b174
push eax
call edi
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x402426
cmp dword [0x40edb4], ebx
jne 0x40241d
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call esi
lea eax, [ebp - 0x108]
push eax
call fcn.00402a91
pop ecx
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x108]
push eax
call edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call fcn.00402a91
pop ecx
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
mov eax, dword [ebp - 0x34c]
and eax, 0x10
test al, al
jne 0x4023cd
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0040242b
jmp 0x402403
cmp byte [ebp - 0x320], 0x2e
je 0x402405
lea eax, [ebp - 0x20c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4023f0
push ebx
call fcn.00401d3c
jmp 0x402404
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.004022b3
pop ecx
pop ecx
lea eax, [ebp - 0x34c]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40234d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40242b
Capabilities:
Copy file
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x514
push ebx
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x513]
mov byte [ebp - 0x514], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x207]
mov byte [ebp - 0x208], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
mov byte [ebp - 0x104], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x30b]
mov byte [ebp - 0x30c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call fcn.00402a43
lea eax, [ebp - 0x30c]
push eax
push dword [ebp + 0xc]
call fcn.00402a22
add esp, 0x10
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x514]
push 0x40e6e0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x514]
push eax
push 0x3ec
push dword [0x40eda0]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
cmp dword [0x40edb4], ebx
jne 0x402574
push esi
lea eax, [ebp - 0x208]
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
add dword [0x40edb0], eax
push dword [0x40edb0]
call fcn.004027c8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ebx
leave
ret

Function at 0x402578
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
lea eax, [ebp - 0x108]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push 0x40b0ec
push eax
call fcn.00402a07
pop ecx
lea eax, [ebp - 0x108]
pop ecx
push eax
push 0
push str.QTInstall
push str.32Bit
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
jne 0x40260c
push 0
call fcn.00407f30
test ax, ax
pop ecx
jne 0x4025fb
call fcn.004080e0
lea eax, [ebp - 4]
push eax
push 0x7174696d
call fcn.00407ce0
pop ecx
pop ecx
call fcn.00408100
call fcn.00408090
cmp dword [ebp - 4], 0x4128000
jge 0x40260c
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call fcn.0040260e
pop ecx
pop ecx
leave
ret
Function at 0x40260e
Capabilities:
Create process on windows
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x568
movzx eax, word [ebp + 8]
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x25c]
push str.0x_04x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, 0x104
lea eax, [ebp - 0x464]
push dword [ebp + 0xc]
mov ebx, 0x40de38
push esi
push eax
push ebx
lea eax, [ebp - 0x25c]
push str.QTInstallCaption
push eax
call edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x360]
push esi
push eax
push ebx
lea eax, [ebp - 0x25c]
push str.QTInstallMsg
push eax
call edi
lea eax, [ebp - 0x464]
push 0x34
push eax
lea eax, [ebp - 0x360]
push eax
push dword [0x40eda0]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x402760
push dword [ebp + 0xc]
lea eax, [ebp - 0x568]
push esi
push eax
push ebx
push str.QTInstallDir
push str.32Bit
call edi
push esi
lea eax, [ebp - 0x158]
xor esi, esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x158]
push eax
call fcn.00402a22
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
pop ecx
pop ecx
lea eax, [ebp - 0x568]
push eax
lea eax, [ebp - 0x158]
push eax
call edi
lea eax, [ebp - 0x158]
push str.QuickTimeInstaller.exe
push eax
call edi
push 0x44
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.004032b0
push 0x10
lea eax, [ebp - 0x10]
push esi
push eax
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], si
call fcn.004032b0
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x158]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x402760
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402ae9
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
and byte [ebp - 0x114], 0
push 1
xor eax, eax
pop ebx
lea edi, [ebp - 0x113]
push 0x40
lea esi, [ebp - 0x114]
pop ecx
rep stosd dword es:[edi], eax
push dword [ebp + 8]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [ebp - 0x114], 0x5c
jne 0x402b40
cmp byte [ebp - 0x113], 0x5c
jne 0x402b40
push 2
lea esi, [ebp - 0x112]
pop ebx
xor ecx, ecx
test ebx, ebx
jle 0x402b62
mov al, byte [esi]
test al, al
je 0x402b62
cmp al, 0x5c
je 0x402b54
cmp al, 0x2f
jne 0x402b5d
inc ecx
cmp ecx, ebx
jne 0x402b5d
inc esi
and byte [esi], 0
inc esi
cmp ecx, ebx
jl 0x402b46
lea eax, [ebp - 0x114]
push eax
call fcn.00402a91
mov dword [esp], str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
push str.GetDiskFreeSpaceExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
test ecx, ecx
je 0x402bae
and dword [ebp - 0xc], 0
xor eax, eax
lea edi, [ebp - 8]
push eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x114]
push dword [ebp + 0xc]
push eax
call ecx
mov esi, eax
jmp 0x402be5
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov esi, eax
test esi, esi
je 0x402be5
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
imul ecx, dword [ebp - 0x10]
imul ecx, dword [ebp - 4]
mov dword [eax], ecx
and dword [eax + 4], 0
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402bf3
Capabilities:
Get common file path

Disassembly:
push esi
push edi
xor esi, esi
xor edi, edi
cmp edi, 5
jge 0x402c29
push dword [esp + 0x10]
push 0
push 0x40b214
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov esi, eax
test esi, esi
jne 0x402c24
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
test esi, esi
je 0x402bf9
mov eax, esi
pop edi
pop esi
ret
Function at 0x402c2e
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
and byte [ebp - 0x108], 0
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x108]
push eax
call esi
lea eax, [ebp - 0x108]
push eax
call fcn.00402a91
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x108]
mov dword [esp], 0x40b174
push eax
call edi
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x402d55
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call esi
lea eax, [ebp - 0x108]
push eax
call fcn.00402a91
pop ecx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x108]
push eax
call edi
mov eax, dword [ebp - 0x248]
test al, 1
je 0x402cf9
dec eax
mov dword [ebp - 0x248], eax
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x248]
and eax, 0x10
test al, al
jne 0x402d0f
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x402d2e
cmp byte [ebp - 0x21c], 0x2e
je 0x402d2e
lea eax, [ebp - 0x108]
push eax
call fcn.00402c2e
pop ecx
lea eax, [ebp - 0x108]
push eax
call ebx
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402cab
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
call ebx
pop ebx
pop edi
pop esi
leave
ret

Function at 0x402d59
Capabilities:
Get file size

Disassembly:
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push 1
push esi
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x402d86
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x402d9a
mov dword [eax], esi
jmp 0x402d9a
push dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
ret
Function at 0x4046c1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40b300
cmp edx, dword [eax]
je 0x4046e3
add eax, 8
inc ecx
cmp eax, 0x40b390
jl 0x4046d4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40b300]
jne 0x404811
mov eax, dword [0x40edd8]
cmp eax, 1
je 0x4047eb
test eax, eax
jne 0x404714
cmp dword [0x40b238], 1
je 0x4047eb
cmp edx, 0xfc
je 0x404811
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40474b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004031c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00406210
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40478e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00406210
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b218
push edi
call fcn.00406b90
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004031c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004031d0
lea eax, [ebp - 0xa0]
push 0x40955c
push eax
call fcn.004031d0
push dword [esi + 0x40b304]
lea eax, [ebp - 0xa0]
push eax
call fcn.004031d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00406aff
add esp, 0x2c
pop edi
jmp 0x404811
lea eax, [ebp + 8]
lea esi, [esi + 0x40b304]
push 0
push eax
push dword [esi]
call fcn.00406210
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x407dc0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
push edi
push str.QuickTime.qts
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x407e08
lea ecx, [esp + 0x10]
push 0x104
push ecx
push eax
call esi
test eax, eax
jbe 0x407e08
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
lea eax, [esp + 0x10]
push 0x104
push eax
push 0
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
jbe 0x407e9c
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0xf]
lea ecx, [esp + 0x10]
cmp eax, ecx
jb 0x407e9c
mov cl, byte [eax]
cmp cl, 0x5c
je 0x407e51
cmp cl, 0x2f
je 0x407e51
dec eax
lea edx, [esp + 0x10]
cmp eax, edx
jae 0x407e3a
jmp 0x407e9c
lea ecx, [esp + 0x10]
cmp eax, ecx
jb 0x407e9c
mov byte [eax + 1], 0
mov edi, str.QuickTime.qts
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
mov ebx, eax
test ebx, ebx
jne 0x407f1c
lea ecx, [esp + 0x10]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x407f1c
mov edi, 0x40b1ec
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.QuickTime.qts
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x402db4
Capabilities:
Generate random numbers using the delphi lcg

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

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x40c008], 0x8088405
inc edx
mov dword [ebx + 0x40c008], edx
fld qword [ebx + 0x40c05c]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret

Function at 0x405400
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov dword [esp + 4], ecx
mov ebx, edx
mov dword [esp], eax
mov eax, dword [esp]
call fcn.00404208
mov edx, eax
mov eax, dword [esp + 4]
call fcn.00404594
mov eax, dword [esp]
call fcn.00404208
mov edi, eax
test edi, edi
jle 0x405465
mov esi, 1
imul eax, ebx, 0x57
add eax, 0x21
mov ebx, eax
mov ebp, ebx
and ebp, 0x3f
mov eax, dword [esp + 4]
call fcn.00404460
mov edx, dword [esp]
movzx edx, byte [edx + esi - 1]
dec edx
sub edx, 0x30
xor edx, ebp
add edx, 0x20
mov byte [eax + esi - 1], dl
inc esi
dec edi
jne 0x405436
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406510
Capabilities:
Check http status code
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov edi, edx
mov esi, eax
lea ebx, [ebp - 0x14]
xor eax, eax
push ebp
push 0x4067ac
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004053fc
mov eax, edi
mov edx, 0x4067c4
call fcn.004040b4
lea eax, [ebp - 0x58]
xor ecx, ecx
mov edx, 0x3c
call fcn.00402d94
push 0x104
call fcn.00404aa0
pop ecx
mov dword [ebp - 0x48], eax
push 0x104
call fcn.00404aa0
pop ecx
mov dword [ebp - 0x3c], eax
push 0x104
call fcn.00404aa0
pop ecx
mov dword [ebp - 0x34], eax
push 0x104
call fcn.00404aa0
pop ecx
mov dword [ebp - 0x2c], eax
push 0x104
call fcn.00404aa0
pop ecx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x28], 0x104
mov dword [ebp - 0x44], 0x104
mov dword [ebp - 0x38], 0x104
mov dword [ebp - 0x30], 0x104
mov dword [ebp - 0x50], 0x104
mov dword [ebp - 0x58], 0x3c
xor eax, eax
push ebp
push 0x40678a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x58]
push eax
push 0x10000000
push 0
mov eax, esi
call fcn.00404408
push eax
call fcn.004064b8
push 0
push 0
push 0
push 0
push 0x4067c8
call fcn.004064c0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x406611
call fcn.00403bb8
jmp 0x406791
xor eax, eax
push ebp
push 0x406743
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004053fc
push 0
push 0x44000000
push 0
push 0
mov eax, esi
call fcn.00404408
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.004064c8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x406658
call fcn.00403bb8
call fcn.00403bb8
jmp 0x406791
xor eax, eax
push ebp
push 0x406725
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 4
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push 0x20000013
mov eax, dword [ebp - 8]
push eax
call fcn.004064a8
test eax, eax
je 0x4066a9
cmp dword [ebx], 0xc8
je 0x4066a9
call fcn.00403bb8
call fcn.00403bb8
call fcn.00403bb8
jmp 0x406791
lea eax, [ebp - 0x10]
call fcn.00404060
mov dword [ebx], 0x100000
lea eax, [ebp - 0xc]
mov edx, dword [ebx]
call fcn.00404594
push ebx
mov eax, dword [ebx]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.004064d0
test eax, eax
jne 0x4066ea
call fcn.00403bb8
call fcn.00403bb8
call fcn.00403bb8
jmp 0x406791
lea eax, [ebp - 0xc]
mov edx, dword [ebx]
call fcn.00404594
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00404210
cmp dword [ebx], 0
jne 0x4066b1
mov eax, edi
mov edx, dword [ebp - 0x10]
call fcn.004040b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40672c
mov eax, dword [ebp - 8]
push eax
call fcn.004064b0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4067b3
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404084
ret
Function at 0x409ef4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x409fcb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00404060
mov eax, dword [ebp - 4]
call fcn.00404208
test eax, eax
jle 0x409fa3
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov al, byte [eax + edx - 1]
mov dl, byte [ebp - 0xc]
lea edx, [edx + edx*2]
add al, dl
mov byte [ebp - 0xd], al
xor byte [ebp - 0xd], 0x37
mov eax, dword [ebp - 8]
push dword [eax]
lea eax, [ebp - 0x18]
mov dl, byte [ebp - 0xd]
and dl, 0xf
and edx, 0xff
mov ecx, dword [0x40c1b8]
mov dl, byte [ecx + edx]
call fcn.00404180
push dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
xor edx, edx
mov dl, byte [ebp - 0xd]
shr edx, 4
mov ecx, dword [0x40c1b8]
mov dl, byte [ecx + edx]
call fcn.00404180
push dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
mov edx, 3
call fcn.004042c8
inc dword [ebp - 0xc]
dec dword [ebp - 0x14]
jne 0x409f34
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00404210
mov eax, dword [ebp - 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409fd2
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404084
ret