joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a2bd
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
push 0x2001f
push dword [ebp + 8]
mov ebx, ecx
xor esi, esi
lea ecx, [ebp - 4]
push dword [ebx]
mov dword [ebp - 4], esi
call fcn.0040a091
mov edi, eax
cmp edi, esi
je 0x40a2fd
cmp dword [ebp - 4], esi
je 0x40a2f6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x40a39a
lea eax, [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 8], pe_nt_image_headers32
push eax
push esi
push dword [ebp - 4]
call edi
test eax, eax
jne 0x40a36e
lea eax, [ebp - 0x114]
lea ecx, [ebp - 4]
push eax
call fcn.0040a2bd
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x40a35b
lea eax, [ebp - 0x14]
mov dword [ebp - 8], pe_nt_image_headers32
push eax
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push dword [ebp - 4]
jmp 0x40a320
cmp dword [ebp - 4], esi
je 0x40a369
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
jmp 0x40a39a
cmp dword [ebp - 4], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x40a381
push dword [ebp - 4]
call edi
mov dword [ebp - 4], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 4], esi
mov ebx, eax
je 0x40a398
push dword [ebp - 4]
call edi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40a436
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, edi
mov dword [esi + 0x88], eax
jne 0x40a455
xor al, al
jmp 0x40a478
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x40a47c
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
cmp eax, edi
setne cl
mov dword [esi + 0x90], eax
mov al, cl
pop edi
pop esi
pop ecx
ret
Function at 0x40ad7f
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
lea eax, [ebp - 1]
mov ebx, 0x4465a8
mov edi, 0x4465a0
push 0
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x18], edi
call fcn.00403e8f
and byte [ebp - 0xc], 0
and dword [ebp - 8], 0
mov esi, 0x104
lea eax, [ebp - 0x38]
cmp dword [ebp - 0x2c], esi
mov dword [ebp - 0x10], eax
jae 0x40adc7
push esi
lea ecx, [ebp - 0x34]
call fcn.00404fb4
mov ecx, dword [ebp - 0x10]
call fcn.00405033
push esi
push eax
push 0
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x10]
call fcn.00404253
lea eax, [ebp - 0x60]
push 0
push eax
lea ecx, [ebp - 0x38]
call fcn.004048e3
mov ecx, eax
call fcn.00405033
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea ecx, [ebp - 0x60]
mov esi, eax
call fcn.0040e0a8
cmp esi, 2
je 0x40ae5f
cmp esi, 5
je 0x40ae5f
cmp esi, 3
je 0x40ae53
cmp esi, 4
je 0x40ae53
cmp esi, 6
je 0x40ae53
sub esp, 0x28
lea eax, [ebp - 0x38]
mov ecx, esp
push 0
push eax
mov dword [ecx], ebx
mov dword [ecx + 0x20], edi
call fcn.00403eea
call fcn.0040ac6c
add esp, 0x28
lea ecx, [ebp - 0x38]
mov esi, eax
call fcn.0040e0a8
cmp si, 1
setne al
jmp 0x40ae69
lea ecx, [ebp - 0x38]
call fcn.0040e0a8
xor al, al
jmp 0x40ae69
lea ecx, [ebp - 0x38]
call fcn.0040e0a8
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40bdd4
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
push 1
lea ecx, [ebp - 0x38]
call fcn.00402749
mov ebx, dword [ebp + 8]
xor esi, esi
lea eax, [ebp - 0x1c]
push esi
push eax
mov ecx, ebx
call fcn.0040c978
add eax, 0x10
mov eax, dword [eax]
cmp eax, esi
je 0x40be0a
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, eax
lea ecx, [ebp - 0x1c]
call fcn.0040252a
push 0x5c
inc esi
pop edi
mov dword [ebp + 8], edi
push esi
lea eax, [ebp + 8]
push 1
push eax
mov ecx, ebx
call fcn.004074fd
cmp dword [0x44656c], eax
je 0x40be75
lea esi, [eax + 1]
push 0
push esi
push 0
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], 0x446564
mov dword [ebp - 8], 0x44655c
call fcn.0040890c
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x446558
call fcn.00402db3
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x1c]
call fcn.0040252a
mov dword [ebp + 8], edi
jmp 0x40be19
lea ecx, [ebp - 0x38]
call fcn.00402818
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40ffe1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [ebp + 0xc], 1
push ebx
push esi
push edi
mov esi, 0x104
jne 0x410073
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x410073
push str.GetSystemWindowsDirectoryA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x44d034], eax
je 0x410073
lea ecx, [ebp - 0x12c]
push esi
push ecx
call eax
test eax, eax
je 0x410073
lea eax, [ebp + 0xf]
push 0
push eax
lea eax, [ebp - 0x12c]
mov edi, 0x446878
mov esi, 0x446870
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], edi
mov dword [ebp - 8], esi
call fcn.0040cb18
push 0x44c700
lea ecx, [ebp - 0x28]
call fcn.0040b4c1
mov ebx, dword [ebp + 8]
push 0
push eax
mov ecx, ebx
mov dword [ebx], edi
mov dword [ebx + 0x20], esi
call fcn.00403eea
lea ecx, [ebp - 0x28]
jmp 0x4100e2
lea eax, [ebp - 0x12c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x41009b
lea ecx, [ebp - 0x1c]
call fcn.004100ee
lea eax, [ebp - 0x1c]
push 0x448050
push eax
call fcn.004226d7
lea eax, [ebp + 0xf]
push 0
push eax
lea eax, [ebp - 0x12c]
mov edi, 0x446878
mov esi, 0x446870
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], edi
mov dword [ebp - 8], esi
call fcn.0040cb18
push 0x44c700
lea ecx, [ebp - 0x28]
call fcn.0040b4c1
mov ebx, dword [ebp + 8]
push 0
push eax
mov ecx, ebx
mov dword [ebx], edi
mov dword [ebx + 0x20], esi
call fcn.00403eea
lea ecx, [ebp - 0x28]
call fcn.0040e0a8
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x410794
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
and byte [ebp - 0x134], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x133]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x410859
cmp dword [ebp + 0xc], 1
mov dword [ebp - 8], 0x104
mov eax, str.CommonFilesDir
je 0x4107ef
mov eax, str.ProgramFilesDir
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x134]
push ecx
push ebx
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp + 0xf]
push ebx
push eax
lea eax, [ebp - 0x134]
mov edi, 0x446878
mov esi, 0x446870
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x10], esi
call fcn.0040cb18
push 0x44c700
lea ecx, [ebp - 0x30]
call fcn.0040b4c1
lea ecx, [ebp - 0x30]
call fcn.00410472
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x30]
push 0
push eax
mov ecx, ebx
mov dword [ebx], edi
mov dword [ebx + 0x20], esi
call fcn.00403eea
lea ecx, [ebp - 0x30]
jmp 0x41089f
lea eax, [ebp + 0xf]
push ebx
push eax
lea eax, [ebp - 0x134]
mov edi, 0x446878
mov esi, 0x446870
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x10], esi
call fcn.0040cb18
push 0x44c700
lea ecx, [ebp - 0x30]
call fcn.0040b4c1
mov ebx, dword [ebp + 8]
push 0
push eax
mov ecx, ebx
mov dword [ebx], edi
mov dword [ebx + 0x20], esi
call fcn.00403eea
lea ecx, [ebp - 0x30]
call fcn.0040e0a8
cmp dword [ebp - 4], 0
je 0x4108b3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x411e49
Capabilities:
Read .ini file

Disassembly:
push esi
mov esi, dword [ecx + 0x1e4]
add esi, 0x1c
mov ecx, esi
call fcn.00402db3
push dword [esi + 4]
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop esi
ret 0xc
Function at 0x412cfe
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1fc
and byte [ebp - 0x1fc], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x1fb]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
and dword [ebp - 4], 0
stosb byte es:[edi], al
lea eax, [ebp - 0x1fc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x24
xor eax, eax
pop ecx
lea edi, [ebp - 0xf4]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xf8]
mov dword [ebp - 0xf8], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
mov ebx, 0x446564
mov edi, 0x44655c
mov esi, 0x446558
je 0x412e4e
cmp dword [ebp - 0xe8], 1
jne 0x412e4e
lea eax, [ebp - 0x1fc]
push 0
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], edi
call fcn.00403177
push str.123.tmp
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], esi
call fcn.004031e6
lea ecx, [ebp - 0x20]
call fcn.00402db3
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x412e2e
lea eax, [ebp - 0x64]
push 0
push eax
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00412f7e
pop ecx
pop ecx
mov ecx, eax
call fcn.00407325
push eax
lea ecx, [ebp - 0x20]
call fcn.0040266e
lea ecx, [ebp - 0x64]
call fcn.0040252a
lea ecx, [ebp - 0x3c]
call fcn.0040252a
push str.temp
lea ecx, [ebp - 0x20]
call fcn.004031e6
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x14], edi
call fcn.00406d6c
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x20]
mov dword [edi], esi
jmp 0x412edc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x20]
call fcn.00402db3
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x20]
call fcn.0040252a
cmp byte [ebp - 0x1fc], 0
je 0x412e87
lea eax, [ebp - 0x1fc]
push 0
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], edi
call fcn.00403177
push 0x44c700
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 4], 1
call fcn.004031e6
jmp 0x412eab
lea eax, [ebp - 0x1fc]
push 0
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], edi
call fcn.00403177
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 2
lea eax, [ebp - 0x20]
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x14], edi
call fcn.00406d6c
mov edi, dword [ebp + 8]
test byte [ebp - 4], 2
mov dword [edi], esi
je 0x412ed3
and dword [ebp - 4], 0xfffffffd
lea ecx, [ebp - 0x20]
call fcn.0040252a
test byte [ebp - 4], 1
je 0x412ee1
lea ecx, [ebp - 0x3c]
call fcn.0040252a
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412f7e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
and byte [ebp - 0x140], 0
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x13f]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x140]
push 0x104
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [ebp - 0x140], 0
je 0x412ffd
lea eax, [ebp - 0x140]
mov edi, 0x44655c
push esi
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], 0x446564
mov dword [ebp - 0xc], edi
call fcn.00403177
mov esi, 0x446558
push 0x44c700
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 1
call fcn.004031e6
jmp 0x41302e
lea eax, [ebp - 0x140]
mov edi, 0x44655c
push esi
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x30], 0x446564
mov dword [ebp - 0x28], edi
call fcn.00403177
mov esi, 0x446558
mov dword [ebp - 4], 2
mov dword [ebp - 0x3c], esi
lea eax, [ebp - 0x3c]
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx + 0xc], 0x446564
mov dword [ecx + 0x14], edi
call fcn.00406d6c
mov edi, dword [ebp + 8]
test byte [ebp - 4], 2
mov dword [edi], esi
je 0x41305a
and dword [ebp - 4], 0xfffffffd
lea ecx, [ebp - 0x3c]
call fcn.0040252a
test byte [ebp - 4], 1
je 0x413068
lea ecx, [ebp - 0x20]
call fcn.0040252a
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x414996
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0xd0]
rep stosd dword es:[edi], eax
push 0x40
xor ebx, ebx
pop ecx
lea edi, [ebp - 0x1d7]
mov byte [ebp - 0x1d8], bl
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1d8]
mov dword [ebp - 0x30], ebx
push eax
push ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0xd4], 0x44
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x1d8]
mov esi, 0x44655c
push ebx
push eax
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x5c], 0x446564
mov dword [ebp - 0x54], esi
call fcn.00403177
mov edi, 0x446558
push 1
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x68], edi
call fcn.00402457
push 0x44d2f8
lea ecx, [ebp - 0x20]
call fcn.0040295c
push ebx
push 0x451a40
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x40], 0x446564
mov dword [ebp - 0x38], esi
call fcn.00403177
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], edi
lea eax, [esi + 0x6d4]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.004162fa
mov eax, dword [eax + 0x10]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantInit]
add esp, 0xc
mov dword [ebp - 4], eax
push eax
call edi
push eax
lea ecx, [ebp - 0x10]
push dword [ebp - 4]
call fcn.004023e3
lea ecx, [ebp - 0x84]
call fcn.0040252a
lea ecx, [ebp - 0x4c]
call fcn.0040252a
lea eax, [ebp - 0x90]
lea ecx, [ebp - 0x68]
push eax
call fcn.0040c8a6
mov eax, dword [eax + 0x10]
push eax
mov dword [ebp - 4], eax
call edi
push eax
lea ecx, [ebp - 0x10]
push dword [ebp - 4]
call fcn.004023e3
lea ecx, [ebp - 0x90]
call fcn.0040252a
push 0x44d77c
lea ecx, [ebp - 0x20]
call fcn.00403496
mov esi, dword [esi + 0x1e4]
mov ecx, esi
call fcn.00402db3
push dword [esi + 4]
lea ecx, [ebp - 0x20]
call fcn.00403496
lea ecx, [ebp - 0x20]
call fcn.00402db3
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0xd4]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push dword [ebp - 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
lea ecx, [ebp - 0x20]
call fcn.0040252a
lea ecx, [ebp - 0x68]
call fcn.0040252a
lea ecx, [ebp - 0x30]
call fcn.0040b28c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414b24
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push str.Windows
mov ecx, ebx
call fcn.0040295c
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0x24
pop ecx
xor eax, eax
lea edi, [ebp - 0xbc]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xc0], 0x94
push eax
call esi
test eax, eax
je 0x414c71
mov eax, dword [ebp - 0xb0]
dec eax
je 0x414bea
dec eax
jne 0x414c2a
mov eax, dword [ebp - 0xb8]
sub eax, 0
je 0x414bca
dec eax
jne 0x414c2a
push 0x26
xor eax, eax
pop ecx
lea edi, [ebp - 0x270]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x274]
mov dword [ebp - 0x274], 0x9c
push eax
call esi
test eax, eax
je 0x414c2a
cmp byte [ebp - 0x1d9], 3
jne 0x414bc3
push str..NET_Server
jmp 0x414c23
push 0x44d7c8
jmp 0x414c23
cmp dword [ebp - 0xbc], 4
jne 0x414bda
push str.NT_4.0
jmp 0x414c23
cmp dword [ebp - 0xbc], 5
jne 0x414c2a
push str.2000
jmp 0x414c23
cmp dword [ebp - 0xb8], 0
je 0x414c1e
cmp dword [ebp - 0xb8], 0xa
je 0x414c07
cmp dword [ebp - 0xb8], 0x5a
jne 0x414c2a
jmp 0x414c10
call fcn.0041ff24
test eax, eax
je 0x414c17
push 0x44d7b4
jmp 0x414c23
push 0x44d7b0
jmp 0x414c23
push 0x44d7ac
mov ecx, ebx
call fcn.00403496
and byte [ebp - 0x140], 0
push 0x1f
pop ecx
xor eax, eax
lea edi, [ebp - 0x13f]
push dword [ebp - 0xb4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x140]
push str.__s___d_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x140]
mov ecx, ebx
push eax
call fcn.00403496
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402749
lea ecx, [ebp - 0x1d8]
call fcn.00407c04
and byte [ebp - 0xc], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x10]
mov dword [ebp - 8], eax
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x10], pe_nt_image_headers32
call fcn.00402733
push eax
lea ecx, [ebp - 0x1d8]
call fcn.0041d166
lea ecx, [ebp - 0x10]
call fcn.00402a34
mov eax, dword [ebp + 8]
sub eax, 0
je 0x414cd4
dec eax
je 0x414ccd
push str._BT_OTHER
jmp 0x414cd9
push str._IE
jmp 0x414cd9
push str._Netscape
mov ecx, ebx
call fcn.00403496
mov esi, dword [ebp - 0x1c]
push esi
call dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
push esi
lea ecx, [ebx + 0x10]
call fcn.004023e3
lea ecx, [ebp - 0x1d8]
mov dword [ebp - 0x1d8], 0x446660
call fcn.0041d0dd
lea ecx, [ebp - 0x2c]
call fcn.00402818
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41526c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
and byte [ebp - 0x148], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x147]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 8]
xor esi, esi
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x415345
cmp dword [ebp + 0xc], 1
mov dword [ebp - 0x28], 0x104
mov eax, str.CommonFilesDir
je 0x4152c7
mov eax, str.ProgramFilesDir
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x148]
push ecx
push esi
push esi
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x148]
mov ebx, 0x446564
mov edi, 0x44655c
push esi
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], edi
call fcn.00403177
mov esi, 0x446558
push 0x44c700
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], esi
call fcn.004031e6
lea ecx, [ebp - 0x24]
call fcn.004153f6
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x24]
push 0
push eax
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x14], edi
call fcn.00406d6c
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x24]
mov dword [edi], esi
jmp 0x4153ea
cmp byte [ebp - 0x148], 0
mov ebx, 0x446564
je 0x41538c
lea eax, [ebp - 0x148]
mov edi, 0x44655c
push esi
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], edi
call fcn.00403177
mov esi, 0x446558
push 0x44c700
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], esi
mov dword [ebp - 4], 1
call fcn.004031e6
jmp 0x4153b9
lea eax, [ebp - 0x148]
mov edi, 0x44655c
push esi
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], edi
call fcn.00403177
mov esi, 0x446558
mov dword [ebp - 4], 2
mov dword [ebp - 0x24], esi
lea eax, [ebp - 0x24]
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x14], edi
call fcn.00406d6c
mov edi, dword [ebp + 8]
test byte [ebp - 4], 2
mov dword [edi], esi
je 0x4153e1
and dword [ebp - 4], 0xfffffffd
lea ecx, [ebp - 0x24]
call fcn.0040252a
test byte [ebp - 4], 1
je 0x4153ef
lea ecx, [ebp - 0x44]
call fcn.0040252a
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417d5e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx eax, word [esp + 4]
push esi
push edi
push 5
push eax
push dword [esp + 0x18]
mov esi, ecx
and dword [esi], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
mov dword [esi + 4], eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
cmp dword [esi], edi
je 0x417daa
mov ecx, esi
call fcn.0041687f
mov dword [esi], edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [esi]
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [esi + 8]
call fcn.00420c30
mov eax, dword [esi + 8]
add esp, 0xc
cmp word [eax + 2], 0xffff
jne 0x417de2
or dword [eax + 0xc], 0x48
mov eax, esi
pop edi
pop esi
ret 8
Function at 0x418327
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0xc], ecx
cmp word [eax + 0xc0], 8
jne 0x4184b1
push ebx
push esi
push edi
push 1
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push 1
lea ecx, [ebp - 0x58]
call fcn.00402749
and byte [ebp - 0x28], 0
and dword [ebp - 0x20], 0
push 0x32
lea ecx, [ebp - 0x58]
pop eax
mov dword [ebp - 0x24], ecx
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
call fcn.00402733
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [ebp - 0x2c]
call fcn.00402a34
push ebx
call dword [sym.imp.USER32.dll_GetDC]
lea ecx, [ebp - 0x58]
mov dword [ebp - 8], eax
call fcn.00402db3
mov esi, dword [ebp - 0x54]
lea ecx, [ebp - 0x58]
call fcn.00402db3
mov edi, dword [ebp - 0x54]
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push edi
push dword [ebp - 8]
mov edi, dword [sym.imp.GDI32.dll_GetTextExtentPointA]
call edi
movzx esi, word [ebp - 0x18]
movzx eax, word [ebp - 0x1c]
shl esi, 0x10
or esi, eax
lea eax, [ebp - 0x1c]
push eax
push 1
push 0x44da14
push dword [ebp - 8]
call edi
push dword [ebp - 8]
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
movzx eax, si
and byte [ebp - 1], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x3c]
shr esi, 0x10
push eax
push ebx
mov dword [ebp - 0x14], esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [ebp - 0x34]
mov esi, dword [ebp - 0x30]
sub edi, dword [ebp - 0x3c]
sub esi, dword [ebp - 0x38]
cmp edi, dword [ebp - 8]
jge 0x41842c
mov eax, dword [ebp - 8]
mov byte [ebp - 1], 1
sub eax, edi
mov edi, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
cmp esi, eax
jge 0x41843a
lea esi, [eax + 4]
mov byte [ebp - 1], 1
cmp byte [ebp - 1], 0
je 0x4184a6
lea eax, [ebp - 0x84]
mov dword [ebp - 0x84], 0x2c
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowPlacement]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x68]
push 1
push esi
push edi
lea eax, [eax + eax*2]
push dword [ebp - 0x64]
sub ecx, eax
push ecx
push ebx
mov ebx, dword [sym.imp.USER32.dll_MoveWindow]
call ebx
mov eax, dword [ebp - 0xc]
push 9
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [ebp - 0x84]
mov dword [ebp - 0xc], eax
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowPlacement]
mov eax, dword [ebp - 0x68]
push 1
sub eax, dword [ebp - 0x10]
push esi
push edi
push dword [ebp - 0x64]
push eax
push dword [ebp - 0xc]
call ebx
lea ecx, [ebp - 0x58]
call fcn.00402818
pop edi
pop esi
pop ebx
leave
ret