joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409e70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov ebx, dword [sym.imp.msvcrt.dll__iob]
mov dword [ebp - 4], esi
lea esi, [ebp + 0xc]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov eax, dword [ebp + 8]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x409ec0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x409ee6
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x409f8b
mov eax, dword [ebp - 0x24]
cmp eax, 4
jne 0x409f60
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x409ed9
cmp eax, 0x40
je 0x409ed9
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
sub esp, 0x10
mov esp, ebp
pop ebp
ret
cmp eax, 0x40
je 0x409f10
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x409f10
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00409e70
lea esi, [esi]
lea edi, [edi]
Function at 0x40a200
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call fcn.0040a1e0
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x40a236
jmp 0x40a286
add ebx, 1
movzx edx, byte [ebx]
cmp dl, 9
je 0x40a233
cmp dl, 0x20
je 0x40a233
cmp dl, 0x22
je 0x40a2d0
cmp dl, 9
mov eax, edx
je 0x40a274
cmp dl, 0x20
je 0x40a278
test dl, dl
jne 0x40a26a
lea esi, [esi]
jmp 0x40a286
cmp al, 0x20
je 0x40a278
test al, al
je 0x40a286
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
jne 0x40a262
cmp al, 0x20
jne 0x40a2ea
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x40a278
cmp al, 0x20
je 0x40a278
test byte [ebp - 0x30], 1
mov esi, 0xa
je 0x40a295
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call int.00401340
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
add ebx, 1
movzx eax, byte [ebx]
test al, al
je 0x40a2de
cmp al, 0x22
jne 0x40a2d0
cmp al, 0x22
jne 0x40a274
add ebx, 1
movzx eax, byte [ebx]
jmp 0x40a274
cmp al, 9
je 0x40a278
nop
jmp 0x40a286

Function at 0x40a640
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x40a674
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [0x41e060], eax
call fcn.0040b410
test eax, eax
sete al
movzx eax, al
mov dword [0x416c6c], eax
leave
ret
call sub.KERNEL32.dll_GetLastError
test eax, eax
sete al
movzx eax, al
mov dword [0x416c6c], eax
leave
ret
Function at 0x40a790
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x4c
mov eax, dword [eax + 0xc]
mov edx, dword [ebx + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
mov dword [ebp - 0x1c], edx
jmp 0x40a7bc
mov dword [0x41e05c], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
test eax, eax
je 0x40a881
mov eax, dword [eax + 0x18]
xor edi, edi
mov dword [ebp - 0x2c], eax
mov eax, 0xa
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebx]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ecx
mov ecx, dword [ebx + 4]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], 1
mov dword [esp + 0xc], ecx
call dword [ebp - 0x20]
test eax, eax
jne 0x40a8a0
cmp edi, 5
je 0x40a8a5
mov edi, dword [ebp - 0x2c]
test edi, edi
je 0x40a846
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0xa
mov dword [esp], 1
call dword [ebp - 0x2c]
cmp eax, 7
mov edi, eax
je 0x40a8a5
cmp eax, 8
jne 0x40a8a0
mov eax, dword [esi]
mov edi, dword [eax]
mov eax, dword [0x416c6c]
test eax, eax
js 0x40a894
test eax, eax
je 0x40a7b0
mov eax, dword [0x41e060]
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
test eax, eax
jne 0x40a7b6
call sub.KERNEL32.dll_GetLastError
jmp 0x40a7b6
mov dword [ebp - 0x2c], 0
mov edi, 5
mov al, 0x1a
jmp 0x40a7d1
call fcn.0040a690
mov eax, dword [0x416c6c]
jmp 0x40a853
mov edi, 2
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40aab0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [0x416c6c]
mov ebx, dword [ebp + 8]
test eax, eax
js 0x40ab9d
test eax, eax
jne 0x40ab31
mov eax, dword [0x41e05c]
test eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
je 0x40ab24
lea esi, [ebp - 0x20]
jmp 0x40aae4
mov dword [ebp - 0x20], eax
mov eax, dword [eax + 0x18]
test eax, eax
je 0x40ab1b
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov edx, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [esp + 4], 1
mov dword [esp], 1
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
call eax
cmp eax, 6
je 0x40ab60
cmp eax, 8
jne 0x40ab90
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
test eax, eax
jne 0x40aae1
mov eax, 5
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [0x41e060]
call sub.KERNEL32.dll_GetLastError
mov dword [esp], edi
mov esi, eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov edi, eax
mov dword [esp], esi
call sub.KERNEL32.dll_SetLastError
mov eax, edi
sub esp, 4
jmp 0x40aad2
mov eax, dword [ebp - 0x20]
mov edx, esi
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, ebx
call fcn.0040a700
cmp eax, 7
jne 0x40ab29
lea eax, [ebp - 0x1c]
mov edx, esi
call fcn.0040a8b0
nop
lea esi, [esi]
lea esp, [ebp - 0xc]
mov eax, 3
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0040a690
mov eax, dword [0x416c6c]
jmp 0x40aac9

Function at 0x40abb0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x40abe0
mov dword [esp], ebx
call fcn.0040aab0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [0x416c6c]
test eax, eax
js 0x40ac40
test eax, eax
jne 0x40ac10
mov eax, dword [0x41e05c]
lea esi, [ebp - 0x20]
mov dword [ebp - 0x1c], eax
mov edx, esi
mov dword [ebp - 0x20], eax
mov eax, ebx
call fcn.0040a790
cmp eax, 7
je 0x40ac50
call sub.msvcrt.dll_abort
nop
mov edi, dword [0x41e060]
call sub.KERNEL32.dll_GetLastError
mov dword [esp], edi
mov esi, eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov edi, eax
mov dword [esp], esi
call sub.KERNEL32.dll_SetLastError
mov eax, edi
sub esp, 4
jmp 0x40abf2
call fcn.0040a690
mov eax, dword [0x416c6c]
jmp 0x40abe9
lea eax, [ebp - 0x1c]
mov edx, esi
call fcn.0040a8b0
lea esi, [esi]
Function at 0x40ac60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x416c6c]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
test eax, eax
js 0x40acf0
test eax, eax
jne 0x40acc2
mov eax, dword [0x41e05c]
mov edx, dword [ebx + 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
test edx, edx
jne 0x40aca7
lea esi, [ebp - 0x20]
mov eax, ebx
mov edx, esi
call fcn.0040a700
cmp eax, 7
je 0x40acb8
call sub.msvcrt.dll_abort
lea esi, [ebp - 0x20]
mov eax, ebx
mov edx, esi
call fcn.0040a790
cmp eax, 7
jne 0x40aca2
lea eax, [ebp - 0x1c]
mov edx, esi
call fcn.0040a8b0
mov edi, dword [0x41e060]
call sub.KERNEL32.dll_GetLastError
mov dword [esp], edi
mov esi, eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov edi, eax
mov dword [esp], esi
call sub.KERNEL32.dll_SetLastError
mov eax, edi
sub esp, 4
jmp 0x40ac84
call fcn.0040a690
mov eax, dword [0x416c6c]
jmp 0x40ac7b

Function at 0x40b130
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [esp], ebx
mov ebx, dword [ebp + 0xc]
mov dword [esp + 4], esi
mov esi, dword [ebp + 8]
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x40b164
mov dword [esi], eax
mov esi, dword [esp + 4]
mov dword [ebp + 0xc], ebx
mov ebx, dword [esp]
mov dword [ebp + 8], eax
mov esp, ebp
pop ebp
jmp fcn.0040b410
mov ebx, dword [esp]
mov esi, dword [esp + 4]
mov esp, ebp
pop ebp
jmp sub.KERNEL32.dll_GetLastError

Function at 0x805f5c
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x805f62
pop ebp
sub ebp, 6
sub ebp, 0x405f5c
jmp 0x805fc0
jmp 0x805fc9
mov eax, 0x405f5c
add eax, ebp
add eax, 0x93
mov ecx, 0x63e
mov edx, 0x2d392596
xor byte [eax], dl
inc eax
dec ecx
jne 0x805fe0
jmp 0x805ff3
cld
salc
invalid
Function at 0x4018e5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp + 0xc]
push esi
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40193e
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x104
push eax
lea eax, [ebp - 0x104]
push eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0xc

Function at 0x401a7a
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
push edi
mov ebx, ecx
call esi
mov edi, eax
mov ecx, ebx
call fcn.00401aac
test eax, eax
je 0x401aa6
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
call esi
sub eax, edi
cmp eax, dword [esp + 0x10]
jbe 0x401a89
pop edi
pop esi
pop ebx
ret 4

Function at 0x4057a2
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4d9730
call fcn.004b36d0
sub esp, 0x110
push esi
mov esi, ecx
and dword [ebp - 4], 0
push 0x522f08
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.004cf1e2
mov ecx, esi
call fcn.00405b1b
cmp eax, 1
jne 0x405899
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0x52300c
call fcn.004cf1e2
mov ecx, esi
call fcn.00405ce9
lea eax, [ebp - 0x11c]
push 0x105
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
lea eax, [ebp - 0x11c]
lea ecx, [ebp - 0x14]
push eax
call fcn.004cf4db
push str.MacromedFlashFlash.ocx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004cf4db
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
mov byte [ebp - 4], 2
call fcn.004cf885
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov esi, eax
cmp esi, 0x20
jae 0x405855
xor esi, esi
jmp 0x405871
push str.DllRegisterServer
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x405867
call eax
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push 1
pop esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004cf46d
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004cf46d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004cf46d
mov eax, esi
jmp 0x4058a7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004cf46d
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x405ce9
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4d977c
call fcn.004b36d0
sub esp, 0x58
push ebx
push esi
push 0x44
xor ebx, ebx
pop esi
lea eax, [ebp - 0x64]
push esi
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004b36f0
push 0x10
lea eax, [ebp - 0x20]
push ebx
push eax
mov dword [ebp - 0x64], esi
call fcn.004b36f0
add esp, 0x18
lea ecx, [ebp - 0x10]
push str.RUNDLL32.EXE_SETUPAPI.DLL_InstallHinfSection_DefaultInstall_132
call fcn.004cf4db
push 0x52300c
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004cf885
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004cf89d
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
je 0x405d79
push 0xffffffffffffffff
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.004cf46d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004cf46d
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x408f51
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0f38
push 0x4b5134
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
rdtsc
mov esi, eax
mov edi, edx
call ebx
rdtsc
pop ebx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
or dword [ebp - 4], 0xffffffff
xor esi, esi
mov edi, dword [ebp - 0x20]
push 1
push esi
push esi
push dword [ebp - 0x28]
call fcn.004b5600
sub eax, esi
sbb edx, edi
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sbb edx, esi
mov ecx, dword [ebp - 0x24]
add eax, ecx
adc edx, esi
jmp 0x408fd0
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4090af
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x4d9acc
call fcn.004b36d0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0x20
xor eax, eax
pop edx
mov dword [ebp - 4], eax
push 1
mov dword [esi], 0x4e0f60
pop ecx
mov dword [esi + 0x20], edx
push eax
push edx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x1c], ecx
push 8
push 8
mov ecx, esi
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x28], eax
mov dword [esi + 4], eax
mov dword [esi + 0x30], eax
call fcn.00409156
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x40c745
Capabilities:
Delete file

Disassembly:
mov eax, 0x4d9e7c
call fcn.004b36d0
sub esp, 0x10
push esi
mov esi, ecx
call fcn.004d565d
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x14]
add eax, 0xd4
push eax
call fcn.004cf1e2
mov eax, dword [esi + 0x1c]
and dword [ebp - 4], 0
mov esi, dword [eax + 4]
mov eax, dword [0x52041c]
mov dword [ebp - 0x10], eax
test esi, esi
mov byte [ebp - 4], 1
je 0x40c7f4
push edi
mov eax, esi
mov esi, dword [esi]
mov edi, dword [eax + 8]
test edi, edi
je 0x40c7ef
mov ecx, edi
call fcn.0042c3b2
cmp eax, 0xa
jl 0x40c7ef
lea eax, [ebp - 0x14]
push 0x506f58
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004cf702
add edi, 0xc
mov byte [ebp - 4], 2
push edi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004cf69c
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004cf5a6
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004cf46d
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004cf46d
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
test esi, esi
jne 0x40c786
pop edi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004cf46d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004cf46d
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x40e010
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, 0x4da167
call fcn.004b36d0
sub esp, 0x1a0
cmp byte [0x5230d5], 0
push ebx
je 0x40e034
mov al, byte [0x5230d4]
jmp 0x40e132
mov eax, dword [0x52041c]
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x1ac]
push eax
push 0xff
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
test eax, eax
je 0x40e065
lea eax, [ebp - 0x1ac]
lea ecx, [ebp - 0x10]
push eax
call fcn.004cf5f6
push str.swflash.cab
lea ecx, [ebp - 0x10]
call fcn.004cf849
call fcn.0040a2b3
push 0
push dword [ebp - 0x10]
push str.http:__download.macromedia.com_pub_shockwave_cabs_flash_swflash.cab
call fcn.0040e166
add esp, 0xc
call fcn.0040e13f
test eax, eax
je 0x40e0bd
push 0
lea ecx, [ebp - 0xac]
call fcn.0040a01c
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 1
call fcn.004cffb4
and byte [ebp - 4], 0
lea ecx, [ebp - 0xac]
call fcn.0040a07e
call fcn.0040e1b3
call fcn.0040a436
lea ecx, [ebp - 0x14]
call fcn.00405776
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov byte [ebp - 4], 2
call fcn.004cf1e2
lea ecx, [ebp - 0x14]
call fcn.004057a2
test eax, eax
je 0x40e102
call fcn.0040e3b2
test eax, eax
mov dword [0x506f8c], eax
setg al
mov byte [0x5230d4], al
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov bl, byte [0x5230d4]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
mov byte [0x5230d5], 1
call fcn.0040579b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004cf46d
mov al, bl
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40e1e5
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4da184
call fcn.004b36d0
sub esp, 0x5c
push ebx
xor ebx, ebx
cmp byte [0x5230d6], bl
push edi
mov edi, ecx
je 0x40e20a
mov al, byte [0x5230d4]
jmp 0x40e339
call fcn.0040e3b2
cmp eax, ebx
mov dword [0x506f8c], eax
setg al
cmp al, bl
mov byte [0x5230d4], al
jne 0x40e339
mov eax, dword [0x52041c]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call fcn.0040e5f7
test eax, eax
je 0x40e31e
cmp byte [edi + 0x49], bl
je 0x40e259
push str.__Q:A__R:N
lea ecx, [ebp - 0x10]
call fcn.004cf849
push esi
push 0x44
pop esi
lea eax, [ebp - 0x68]
push esi
push ebx
push eax
call fcn.004b36f0
push 0x10
lea eax, [ebp - 0x24]
push ebx
push eax
mov dword [ebp - 0x68], esi
call fcn.004b36f0
add esp, 0x18
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004cf89d
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
push dword [ebp - 0x20]
call esi
call fcn.0040e3b2
cmp eax, ebx
mov dword [0x506f8c], eax
setg byte [0x5230d4]
cmp eax, ebx
pop esi
jge 0x40e31e
mov eax, dword [0x52041c]
mov dword [ebp + 8], eax
push 0x65be
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.004d0547
push str.Flash_Player_installation
lea ecx, [ebp - 0x14]
call fcn.004cf4db
push 0x2030
mov ecx, edi
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.0040d4ff
lea ecx, [ebp - 0x14]
mov byte [0x5230d5], 1
call fcn.004cf46d
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.004cf46d
mov bl, byte [0x5230d4]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov byte [0x5230d6], 1
call fcn.004cf46d
mov al, bl
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40e3b2
Capabilities:
Get file version info
Query or enumerate registry value

Disassembly:
mov eax, 0x4da1b4
call fcn.004b36d0
sub esp, 0x128
or dword [ebp - 0x28], 0xffffffff
lea eax, [ebp - 0x18]
push ebx
push eax
xor ebx, ebx
push 1
push ebx
push str.SOFTWAREClassesCLSIDD27CDB6E_AE6D_11CF_96B8_444553540000InprocServer32
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40e3ec
or eax, 0xffffffff
jmp 0x40e55f
mov eax, dword [0x52041c]
push esi
push edi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
push ebx
mov edi, 0x522f00
push ebx
push edi
push dword [ebp - 0x18]
mov dword [ebp - 4], ebx
call esi
cmp eax, ebx
je 0x40e41d
or esi, 0xffffffff
jmp 0x40e54f
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x10]
push eax
push dword [ebp - 0x20]
call fcn.004cf89d
push eax
push ebx
push ebx
push edi
push dword [ebp - 0x18]
call esi
cmp eax, ebx
jne 0x40e415
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push ebx
lea ecx, [ebp - 0x10]
call fcn.004cf89d
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
push 1
push esi
call fcn.004b581e
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
je 0x40e415
push edi
push esi
push ebx
push ebx
lea ecx, [ebp - 0x10]
call fcn.004cf89d
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
cmp eax, ebx
jne 0x40e495
or esi, 0xffffffff
jmp 0x40e548
xor esi, esi
test dword [ebp - 0x24], 0xfffffffc
jbe 0x40e545
mov eax, dword [ebp - 0x2c]
movzx ecx, word [eax + esi*4 + 2]
lea eax, [eax + esi*4]
push ecx
movzx eax, word [eax]
push eax
lea eax, [ebp - 0x134]
push str.StringFileInfo_04x_04xProductVersion
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x134]
push eax
push edi
call sub.VERSION.dll_VerQueryValueA
cmp eax, ebx
je 0x40e545
push dword [ebp - 0x30]
lea ecx, [ebp - 0x14]
call fcn.004cf4db
push ebx
push 0x2c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004cf969
cmp eax, 0xffffffff
jg 0x40e519
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004cf46d
mov eax, dword [ebp - 0x24]
inc esi
shr eax, 2
cmp esi, eax
jb 0x40e4a4
jmp 0x40e545
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.004c9834
push dword [ebp - 0x1c]
call fcn.004b5813
pop ecx
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x1c]
call fcn.004cf46d
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004cf46d
mov esi, dword [ebp - 0x28]
push edi
call fcn.004b42a5
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004cf46d
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret