joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4176dd
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x4176f6
or eax, 0xffffffff
jmp 0x417757
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x417753
push 0x3d
push esi
call fcn.0040e94b
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x417753
cmp esi, eax
je 0x417753
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x42a718]
sete cl
cmp eax, dword [0x42a71c]
mov dword [ebp - 8], ecx
jne 0x417739
mov edi, eax
call fcn.0041767c
mov dword [0x42a718], eax
cmp eax, ebx
jne 0x417792
cmp dword [ebp + 0xc], ebx
je 0x41775b
cmp dword [0x42a720], ebx
je 0x41775b
call fcn.0041682c
test eax, eax
je 0x417792
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x417764
xor eax, eax
jmp 0x417756
push 4
call fcn.0040dca5
cmp eax, ebx
pop ecx
mov dword [0x42a718], eax
je 0x417753
mov dword [eax], ebx
cmp dword [0x42a720], ebx
jne 0x417792
push 4
call fcn.0040dca5
cmp eax, ebx
pop ecx
mov dword [0x42a720], eax
je 0x417753
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x42a718]
call fcn.0041762f
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x4177f3
cmp dword [esi], ebx
je 0x4177f3
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0040d0ed
cmp dword [ebp - 8], ebx
pop ecx
jne 0x4177d6
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x417834
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x4177cd
mov eax, edi
shl eax, 2
push eax
push dword [0x42a718]
call fcn.0040e9c6
cmp eax, ebx
pop ecx
pop ecx
je 0x417834
jmp 0x41782f
cmp dword [ebp - 8], ebx
jne 0x41789f
cmp edi, ebx
jge 0x417802
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x42a718]
call fcn.0040e9c6
cmp eax, ebx
pop ecx
pop ecx
je 0x417753
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x42a718], eax
cmp dword [ebp + 0xc], ebx
je 0x417889
push dword [ebp - 4]
call fcn.0040e8a0
inc eax
inc eax
push eax
call fcn.0040dca5
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x417889
push dword [ebp - 4]
push esi
call fcn.00411c00
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x417882
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0040d0ed
pop ecx
cmp dword [ebp - 8], ebx
je 0x417897
push dword [ebp - 4]
call fcn.0040d0ed
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x417756
push dword [ebp - 4]
call fcn.0040d0ed
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x417760
Function at 0x41c300
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x4278f0]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, pe_nt_image_headers32
cmp esi, eax
ja 0x41c34f
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x41c34f
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x41c35b
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.0040e88e
leave
ret 8

Function at 0x41d40f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x41d444
cmp edi, dword [esi + 0xc]
jge 0x41d444
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41d444
cmp edi, dword [eax + 8]
jge 0x41d444
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x41d446
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x41d4f2
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x41d526
jmp fcn.00417f07
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret
Function at 0x41d597
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x41d690
cmp eax, dword [edi + 0xc]
jge 0x41d690
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x41d5e8
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x41d679
cmp dword [ebp + 0xc], ebx
je 0x41d679
jmp 0x41d612
push 0x10
call fcn.0041d2db
cmp eax, ebx
je 0x41d5fe
mov ecx, eax
call fcn.0041d4e9
mov esi, eax
jmp 0x41d600
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x41d629
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x41d639
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x41d64b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00417f07
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.0040f0d0
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x41d68b
cmp ecx, dword [esi + 8]
jge 0x41d68b
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x41d691
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40100c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x417e88], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x401050
call ebx
test eax, eax
jns 0x401046
push str.___.___
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x412358
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x417e84], eax
mov dword [0x417e88], 1
mov eax, dword [0x417e84]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x40106c
push dword [ebp + 0x10]
push eax
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x40109c
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x401092
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x401086
push dword [eax + 8]
call dword [eax]
jmp 0x40108c
push dword [eax + 0xc]
call dword [eax + 4]
test eax, eax
je 0x40109b
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc

Function at 0x4011bf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4011d4
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4011e6
xor eax, eax
jmp 0x401218
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40120a
cmp esi, eax
jae 0x4011e2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4011fc
cmp esi, eax
jae 0x4011e2
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x4019e9
Capabilities:
Delete file
Move file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
test eax, eax
push edi
jl 0x401a72
cmp eax, 1
jle 0x401a4d
cmp eax, 2
je 0x401a0b
cmp eax, 3
jne 0x401a72
push dword [esi + 8]
jmp 0x401ab0
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 8]
push 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x401a61
push dword [esp + 0xc]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x10]
xor edx, edx
mov dl, byte [esi + 0x20]
push edx
push eax
push ecx
push str.DBEA1034_5882_4a88_8033_81C4EF0CFA29
call fcn.00402956
add esp, 0x14
test eax, eax
je 0x401ab6
jmp 0x401a75
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 8]
push 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x401a7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, 0x417f40
call fcn.00403060
push 0x11
pop eax
pop edi
pop esi
ret 4
push dword [esp + 0xc]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x10]
xor edx, edx
mov dl, byte [esi + 0x20]
push edx
push eax
push ecx
call fcn.004025de
add esp, 0x10
mov edi, eax
test edi, edi
je 0x401aa7
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
jmp 0x401a75
cmp dword [esi + 0x1c], 1
jne 0x401ab6
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
jmp 0x401a75

Function at 0x4020c2
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push str.Vista
mov edi, 0x417f40
push edi
mov esi, ecx
call fcn.0040300d
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push ebx
mov dword [ebp - 4], ebx
call fcn.00403ac7
add esp, 0x10
cmp eax, ebx
jge 0x402103
push eax
mov ecx, edi
call fcn.004030b1
push 0x11
pop eax
jmp 0x4021dc
push dword [ebp - 4]
push eax
push str.Integrity__x__d
push edi
call fcn.0040300d
add esp, 0x10
cmp dword [ebp - 4], 3
jl 0x402128
call fcn.00403c10
test al, al
mov byte [ebp - 0xc], 1
je 0x40212b
mov byte [ebp - 0xc], bl
cmp byte [esi + 0x22], bl
je 0x402142
push str.Skipping_install__post_install_only
push edi
call fcn.0040300d
pop ecx
pop ecx
jmp 0x4021d0
cmp dword [ebp - 4], 3
mov ecx, esi
jl 0x4021c2
call fcn.00401c81
cmp eax, ebx
jne 0x4021dc
lea eax, [esi + 8]
push eax
call fcn.00402f5a
cmp eax, ebx
pop ecx
jne 0x4021dc
mov ecx, esi
call fcn.00401f53
cmp eax, ebx
jne 0x4021dc
cmp dword [esi + 0x1c], ebx
je 0x40219b
mov edi, str.DBEA1034_5882_4a88_8033_81C4EF0CFA29
push edi
call fcn.00402690
test al, al
pop ecx
jne 0x40219b
push 1
push edi
call fcn.00402642
pop ecx
pop ecx
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esi + 0x1c], ebx
push dword [esi + 0x24]
lea ecx, [ebp - 8]
call fcn.00403e40
push dword [ebp - 8]
mov ecx, esi
call fcn.004019e9
lea ecx, [ebp - 8]
mov edi, eax
call fcn.00403c76
cmp edi, ebx
je 0x4021cb
mov eax, edi
jmp 0x4021dc
call fcn.00401d50
cmp eax, ebx
jne 0x4021dc
cmp byte [esi + 0x21], bl
jne 0x4021da
push dword [ebp - 0xc]
mov ecx, esi
call fcn.00401919
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402749
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
cmp dword [ebp + 8], 0
push esi
je 0x402790
lea eax, [ebp - 0x208]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4027aa
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.004026ee
push 1
lea eax, [ebp - 0x208]
push eax
push 0x3fdf
jmp 0x402796
push 1
push 0
push 0
call sub.msi.dll_MsiGetComponentPathW
test eax, eax
je 0x4027aa
mov ecx, 0x417f40
push eax
call fcn.00403060
pop esi
leave
ret

Function at 0x40280b
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, 0x417f40
push str.Getting_the_version_of__s
push edi
call fcn.0040300d
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0xc], ebx
call sub.msi.dll_MsiOpenProductW
mov esi, eax
cmp esi, ebx
jne 0x4028db
lea eax, [ebp - 4]
push eax
push str.SELECT__Value__FROM__Property__WHERE__Property_ProductVersion
push dword [ebp - 0xc]
mov dword [ebp - 4], ebx
call sub.msi.dll_MsiEnumClientsA
mov esi, eax
cmp esi, ebx
jne 0x4028cf
push ebx
push dword [ebp - 4]
call sub.msi.dll_MsiViewModify
mov esi, eax
cmp esi, ebx
jne 0x4028c7
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call sub.msi.dll_MsiDatabaseIsTablePersistentA
mov esi, eax
cmp esi, ebx
jne 0x4028bf
push 0x28
pop eax
push 1
push eax
push dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], eax
call fcn.004027cc
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x10]
push ecx
push eax
push 1
push dword [ebp - 8]
call sub.msi.dll_MsiRecordSetStreamA
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
mov esi, eax
call fcn.00402720
push dword [ebp - 8]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
push dword [ebp - 4]
call sub.msi.dll_MsiViewGetErrorW
push dword [ebp - 4]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
push dword [ebp - 0xc]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp esi, ebx
je 0x4028e8
push esi
mov ecx, edi
call fcn.00403060
push 0x14
pop eax
jmp 0x4028ea
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402b58
Capabilities:
Write file on windows

Disassembly:
push ebp
mov eax, 0x20a8
lea ebp, [esp - 0x6c]
call fcn.004080d0
push ebx
push dword [ebp + 0x78]
mov ebx, 0x417f40
push str.Decompressing__d
push ebx
call fcn.0040300d
add esp, 0xc
cmp dword [ebp + 0x78], 0xd
jae 0x402b99
push str.Too_small
push ebx
call fcn.0040300d
pop ecx
pop ecx
push 0x10
pop eax
jmp 0x402d08
push esi
mov esi, dword [ebp + 0x74]
push edi
push 0x23
pop ecx
xor eax, eax
lea edi, [ebp - 0x3c]
push 5
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.004063b3
xor edi, edi
add esp, 0xc
cmp eax, edi
je 0x402bd4
push eax
push str.Properties_decoding_error__x
push ebx
call fcn.0040300d
add esp, 0xc
push 0x10
pop eax
jmp 0x402d06
push 8
add esi, 5
lea eax, [ebp + 0x64]
push esi
push eax
call fcn.00407710
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
sub dword [ebp + 0x78], 0xd
add ecx, eax
mov eax, 0x300
shl eax, cl
add esp, 0xc
lea ecx, [ebp + 0x5c]
add esi, 8
add eax, 0x736
push eax
mov dword [ebp + 0x5c], edi
call fcn.00402b25
test al, al
jne 0x402c26
push str.Out_of_memory
push ebx
call fcn.0040300d
pop ecx
pop ecx
push 0x11
pop edi
jmp 0x402cfb
push dword [ebp - 0x30]
lea ecx, [ebp + 0x60]
mov dword [ebp + 0x60], edi
call fcn.00402b40
test al, al
jne 0x402c42
push str.Out_of_memory
jmp 0x402ce7
mov eax, dword [ebp + 0x60]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x5c]
mov dword [ebp - 0x2c], eax
mov dword [ebp + 0x48], 0xfffffffe
mov dword [ebp + 0x1c], edi
cmp dword [ebp + 0x64], edi
jne 0x402c6b
cmp dword [ebp + 0x68], edi
jne 0x402c6b
cmp dword [ebp + 0x78], edi
je 0x402d0e
mov eax, 0x2000
cmp dword [ebp + 0x64], eax
mov dword [ebp + 0x54], edi
mov dword [ebp + 0x58], edi
jae 0x402c7e
mov eax, dword [ebp + 0x64]
xor ecx, ecx
cmp dword [ebp + 0x78], edi
sete cl
push ecx
lea ecx, [ebp + 0x58]
push ecx
push eax
lea eax, [ebp - 0x203c]
push eax
lea eax, [ebp + 0x54]
push eax
push dword [ebp + 0x78]
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.00406445
add esp, 0x20
cmp eax, edi
jne 0x402d1d
mov eax, dword [ebp + 0x54]
sub dword [ebp + 0x78], eax
push edi
add esi, eax
mov eax, dword [ebp + 0x58]
sub dword [ebp + 0x64], eax
lea ecx, [ebp + 0x50]
push ecx
sbb dword [ebp + 0x68], edi
push eax
lea eax, [ebp - 0x203c]
push eax
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402d30
mov eax, dword [ebp + 0x50]
cmp eax, dword [ebp + 0x58]
je 0x402c58
push str.Incomplete
push ebx
call fcn.0040300d
pop ecx
pop ecx
push 0x11
pop edi
push dword [ebp + 0x60]
call fcn.00407e22
pop ecx
push dword [ebp + 0x5c]
call fcn.00407e22
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret
push str.Decompression_completed
push ebx
call fcn.0040300d
pop ecx
pop ecx
jmp 0x402cf2
push eax
push str.Decoding_error__x
push ebx
call fcn.0040300d
add esp, 0xc
push 0x10
jmp 0x402cf1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, ebx
call fcn.00403060
jmp 0x402cef
Function at 0x402d40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov edi, 0x417f40
push dword [ebp + 8]
push str.Saving_resource__d_to__s
push edi
call fcn.0040300d
movzx eax, word [ebp + 8]
add esp, 0x10
push 0x412f2c
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, esi
jne 0x402d8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call fcn.00403060
push 0x10
jmp 0x402dcf
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push esi
push 0x80
push 2
push esi
push 0x40000000
push dword [ebp + 0xc]
lea ecx, [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp + 8], esi
call fcn.004029ff
cmp eax, esi
jge 0x402dd2
push eax
mov ecx, edi
call fcn.004030b1
cmp dword [ebp + 8], esi
je 0x402dcd
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x13
pop eax
jmp 0x402dfb
push dword [ebp + 8]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push dword [ebp - 4]
call fcn.00402b58
add esp, 0xc
cmp dword [ebp + 8], esi
mov edi, eax
je 0x402df9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402e78
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea ecx, [ebp - 4]
call fcn.00404f67
push 1
push 0x104
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x10]
call fcn.004027cc
push dword [eax + 4]
xor edi, edi
push edi
push edi
push 0x26
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov esi, eax
call fcn.00402720
cmp esi, edi
jge 0x402ecc
push esi
mov ecx, 0x417f40
call fcn.004030b1
push 0x11
pop edi
jmp 0x402f49
push str.GoogleInstallers_
lea ecx, [ebp - 4]
call fcn.00402e53
push dword [ebp - 4]
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
cmp eax, edi
je 0x402f02
cmp eax, 0x50
je 0x402f02
cmp eax, 0xb7
je 0x402f02
push eax
mov ecx, 0x417f40
call fcn.00403060
push 0x13
jmp 0x402ec9
push str.GoogleToolbarInstaller
lea ecx, [ebp - 4]
call fcn.00402e53
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.00402e53
push str..msi
lea ecx, [ebp - 4]
call fcn.00402e53
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
mov ecx, esi
call fcn.00401c34
push dword [esi]
push str.Location_to_save_is__s
push 0x417f40
call fcn.0040300d
add esp, 0xc
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.004012bf
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x402fb7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x402fcd
call fcn.00402fa2
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x403008
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x208]
push 0x412fdc
push eax
call fcn.00408423
pop ecx
pop ecx
mov dword [esi], eax
pop esi
leave
ret 4
Function at 0x403140
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
call fcn.00403a5e
test al, al
jne 0x403153
inc al
leave
ret
push ebx
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push str.IEUSER.EXE
mov dword [ebp - 4], ebx
call fcn.00403479
add esp, 0xc
cmp dword [ebp - 4], ebx
jg 0x403177
mov al, 1
jmp 0x4032b2
lea eax, [ebp - 8]
push eax
push ebx
mov dword [ebp - 8], ebx
call fcn.00403ac7
mov eax, dword [ebp - 8]
dec eax
dec eax
pop ecx
pop ecx
je 0x4031b2
dec eax
je 0x403197
xor al, al
jmp 0x4032b2
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [0x417080]
mov dword [ebp - 0x10], ebx
call fcn.00403479
add esp, 0xc
cmp dword [ebp - 0x10], ebx
jg 0x403190
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push 0x63
pop edi
lea eax, [ebp - 4]
push eax
push 2
push str.IEXPLORE.EXE
mov dword [ebp - 4], ebx
call fcn.00403479
add esp, 0xc
cmp dword [ebp - 4], ebx
jle 0x4031df
push 0x64
call esi
dec edi
jns 0x4031bd
lea eax, [ebp - 4]
push eax
push 1
push dword [0x41707c]
mov dword [ebp - 4], ebx
call fcn.00403479
add esp, 0xc
cmp dword [ebp - 4], ebx
jle 0x403201
cmp dword [ebp - 8], 3
jne 0x403208
mov al, 1
jmp 0x4032b0
lea eax, [ebp - 0xc]
push eax
call fcn.004060b2
lea ecx, [ebp - 0xc]
mov dword [esp], str.__embedding
call fcn.00402e53
xor eax, eax
mov dword [ebp - 0x20], ebx
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x10
pop ecx
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x60]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x64], 0x44
call fcn.00403118
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4032a3
push 0x63
pop edi
push 0x64
call esi
lea eax, [ebp - 4]
push eax
push ebx
push dword [0x41707c]
mov dword [ebp - 4], ebx
call fcn.00403479
add esp, 0xc
cmp dword [ebp - 4], ebx
jg 0x403283
dec edi
jns 0x403261
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
cmp dword [ebp - 4], ebx
setg bl
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
call fcn.004012bf
mov al, bl
pop edi
pop esi
pop ebx
leave
ret