joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41eaf3
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x43ce70]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0041ea32
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0041fdf0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x41eb42
cmp dword [ebp - 0x1c], 5
jb 0x41eb5a
jmp 0x41eb56
cmp dword [ebp - 0x10], 1
jne 0x41eb5a
cmp dword [ebp - 0x1c], 4
ja 0x41eb56
jne 0x41eb5a
cmp dword [ebp - 0x18], 0
jbe 0x41eb5a
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x434220
call fcn.004010e0
test eax, eax
jge 0x41eb7b
mov byte [0x43e260], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041fbd2
add ebp, 0x78
leave
ret

Function at 0x41edb4
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x43e3a4], 0
push esi
jne 0x41ed27
call fcn.0041ec52
test eax, eax
je 0x41ed6a
mov eax, dword [0x43e3a4]
cmp eax, 1
jne 0x41ed48
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x41ed6a
pop esi
ret
push eax
call dword [0x43e3ac]
test eax, eax
jne 0x41edb2
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x41ed6e
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x43e3a4]
call dword [0x43e3ac]
mov edi, eax
test edi, edi
je 0x41ed95
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x41edb1
lea edi, [esi + 0xff0]
push esi
push dword [0x43e3a4]
call dword [0x43e3a8]
add esi, 0x10
cmp esi, edi
jb 0x41ed9b
mov eax, esi
pop edi
pop esi
ret
jmp 0x41ed14

Function at 0x41fbd2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43ce70]
jne 0x41fbdc
repz ret
jmp fcn.00423e9c
Function at 0x4242bc
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x43d198]
je 0x4242d7
inc edi
cmp edi, 0x17
jb 0x4242c8
cmp edi, 0x17
jae 0x424457
push ebp
push 3
call fcn.0042a095
cmp eax, 1
pop ecx
je 0x424423
push 3
call fcn.0042a095
test eax, eax
pop ecx
jne 0x42430b
cmp dword [0x43cea0], 1
je 0x424423
cmp ebx, 0xfc
je 0x424456
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x43e8f0
push ebp
call fcn.0042654f
add esp, 0xc
test eax, eax
je 0x424341
push esi
push esi
push esi
push esi
push esi
call fcn.0041ffaa
add esp, 0x14
push 0x104
mov esi, 0x43e909
push esi
push 0
mov byte [0x43ea0d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x424385
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0042654f
add esp, 0xc
test eax, eax
je 0x424385
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0041ffaa
add esp, 0x14
push esi
call fcn.004217a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4243ca
push esi
call fcn.004217a0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x43ec04
push 0x434954
sub ecx, eax
push ecx
push eax
call fcn.00429fe2
add esp, 0x14
test eax, eax
je 0x4243ca
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0041ffaa
add esp, 0x14
jmp 0x4243cc
xor esi, esi
push 0x434950
push ebx
push ebp
call fcn.00429f71
add esp, 0xc
test eax, eax
je 0x4243ec
push esi
push esi
push esi
push esi
push esi
call fcn.0041ffaa
add esp, 0x14
push dword [edi*8 + 0x43d19c]
push ebx
push ebp
call fcn.00429f71
add esp, 0xc
test eax, eax
je 0x42440e
push esi
push esi
push esi
push esi
push esi
call fcn.0041ffaa
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00429db4
add esp, 0xc
jmp 0x424456
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x424456
cmp ebp, 0xffffffff
je 0x424456
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x43d19c]
push dword [esi]
call fcn.004217a0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x429db4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00423839
xor ebx, ebx
cmp dword [0x43eec0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x429e8a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x429f6a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x429f6a
push eax
call fcn.004237cb
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43eec0], eax
call esi
push eax
call fcn.004237cb
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43eec4], eax
call esi
push eax
call fcn.004237cb
mov dword [0x43eec8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00424049
test eax, eax
pop ecx
pop ecx
je 0x429e58
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041ffaa
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x429e8a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004237cb
cmp eax, ebx
pop ecx
mov dword [0x43eed0], eax
je 0x429e8a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004237cb
pop ecx
mov dword [0x43eecc], eax
mov eax, dword [0x43eecc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x429f0f
cmp dword [0x43eed0], ecx
je 0x429f0f
push eax
call fcn.00423842
push dword [0x43eed0]
mov esi, eax
call fcn.00423842
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x429f0f
cmp edi, ebx
je 0x429f0f
call esi
cmp eax, ebx
je 0x429edc
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x429edc
test byte [ebp - 0x18], 1
jne 0x429f0f
lea eax, [ebp - 0x10]
push eax
call fcn.00424080
test eax, eax
pop ecx
je 0x429ef7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041ffaa
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x429f06
or dword [ebp + 0x10], 0x200000
jmp 0x429f4a
or dword [ebp + 0x10], 0x40000
jmp 0x429f4a
mov eax, dword [0x43eec4]
cmp eax, dword [ebp - 8]
je 0x429f4a
push eax
call fcn.00423842
cmp eax, ebx
pop ecx
je 0x429f4a
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x429f4a
mov eax, dword [0x43eec8]
cmp eax, dword [ebp - 8]
je 0x429f4a
push eax
call fcn.00423842
cmp eax, ebx
pop ecx
je 0x429f4a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43eec0]
call fcn.00423842
cmp eax, ebx
pop ecx
je 0x429f6a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x429f6c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401269
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 0x40127e
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x401290
xor eax, eax
jmp 0x4012c2
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 0x4012b4
cmp esi, eax
jae 0x40128c
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4012a6
cmp esi, eax
jae 0x40128c
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret

Function at 0x4015fa
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
jbe 0x4016b5
lea eax, [esi + esi + 2]
push edi
push eax
call fcn.004047b5
mov edi, eax
cmp edi, ebx
pop ecx
je 0x4016b4
push edi
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4016ad
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x40c398
push edi
mov dword [ebp - 0xc], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4016ad
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push 0x40c39c
push dword [ebp + 0xc]
call fcn.00404746
mov eax, dword [ebp + 0x10]
add esp, 0x18
cmp eax, ebx
je 0x4016aa
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + 0xa]
mov dword [eax], edx
movzx edx, word [ecx + 8]
mov dword [eax + 4], edx
movzx edx, word [ecx + 0xe]
mov dword [eax + 8], edx
movzx ecx, word [ecx + 0xc]
mov dword [eax + 0xc], ecx
xor ebx, ebx
inc ebx
push edi
call fcn.00404741
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x401762
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x410eec]
push esi
xor esi, esi
cmp dword [ebp + 0x3a4], esi
mov dword [ebp + 0x398], eax
je 0x4018f8
cmp dword [ebp + 0x3a8], esi
je 0x4018f8
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x7c]
push eax
push 0x40cc60
push 1
push esi
push 0x40cc70
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x80], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
mov eax, dword [ebp - 0x7c]
jge 0x4017c9
cmp eax, esi
jne 0x4018f8
cmp dword [ebp + 0x3b4], esi
je 0x4017e6
push dword [ebp + 0x3b8]
mov ecx, dword [eax]
push dword [ebp + 0x3b4]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push ebx
push edi
push dword [ebp + 0x3a8]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x7c]
push dword [ebp + 0x3ac]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x7c]
push dword [ebp + 0x3b0]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
push dword [ebp + 0x3a8]
xor eax, eax
mov word [ebp + 0x190], si
mov ecx, 0x81
lea edi, [ebp + 0x192]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp + 0x190]
push eax
call fcn.00404725
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
pop ecx
pop ecx
mov ebx, 0x40c384
push ebx
lea eax, [ebp + 0x190]
push eax
call esi
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
lea edx, [ebp + 0x190]
push edx
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
lea edx, [ebp - 0x80]
push edx
push 0x40cc80
push eax
call dword [ecx]
test eax, eax
mov eax, dword [ebp - 0x80]
jge 0x40187f
test eax, eax
jne 0x4018f6
mov ecx, dword [eax]
push 2
push dword [ebp + 0x3a4]
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and word [ebp - 0x78], 0
push dword [ebp + 0x3a4]
xor eax, eax
mov ecx, 0x81
lea edi, [ebp - 0x76]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x78]
push eax
call fcn.00404725
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x78]
push eax
call esi
mov esi, dword [sym.imp.SHELL32.dll_SHChangeNotify]
push 0
lea eax, [ebp - 0x78]
push eax
mov ebx, 0x8001005
push ebx
mov edi, 0x88001000
push edi
call esi
push 0
push dword [ebp + 0x3a4]
push ebx
push edi
call esi
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop ebx
mov ecx, dword [ebp + 0x398]
pop esi
call fcn.00403dff
add ebp, 0x39c
leave
ret
Function at 0x401959
Capabilities:
Check if file exists
Copy file
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x3b4]
sub esp, 0x434
mov eax, dword [0x410eec]
push ebx
push esi
push edi
mov dword [ebp + 0x3b0], eax
xor eax, eax
xor esi, esi
mov word [ebp + 0x39c], si
lea edi, [ebp + 0x39e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xa
lea eax, [ebp + 0x39c]
push eax
push str.InstallSource
mov dword [ebp - 0x7c], 1
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp + 0x39c]
push 0x40c434
push eax
call fcn.0040483d
test eax, eax
pop ecx
pop ecx
je 0x4019d9
lea eax, [ebp + 0x39c]
push 0x40c430
push eax
call fcn.0040483d
test eax, eax
pop ecx
pop ecx
je 0x401a5c
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov dword [ebp - 0x78], esi
mov ebx, str..zlib1.dll
mov esi, 0x208
lea eax, [ebp - 0x74]
push 0x411c40
push eax
call fcn.00404725
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x74]
push eax
call edi
lea eax, [ebp + 0x194]
push 0x411a38
push eax
call fcn.00404725
pop ecx
pop ecx
push ebx
lea eax, [ebp + 0x194]
push eax
call edi
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401a49
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
and dword [ebp - 0x7c], eax
je 0x401b0f
add dword [ebp - 0x78], esi
add ebx, esi
cmp dword [ebp - 0x78], 0x1658
jb 0x4019ec
jmp 0x401b0f
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x78], str..zlib1.dll
mov esi, 0x208
lea eax, [ebp - 0x74]
push 0x411c40
push eax
call fcn.00404725
pop ecx
pop ecx
push dword [ebp - 0x78]
lea eax, [ebp - 0x74]
push eax
call edi
lea eax, [ebp + 0x194]
push 0x411628
push eax
call fcn.00404725
pop ecx
pop ecx
push dword [ebp - 0x78]
lea eax, [ebp + 0x194]
push eax
call edi
lea eax, [ebp + 0x194]
push eax
call ebx
test eax, eax
jne 0x401adb
lea eax, [ebp + 0x194]
push 0x411a38
push eax
call fcn.00404725
pop ecx
pop ecx
push dword [ebp - 0x78]
lea eax, [ebp + 0x194]
push eax
call edi
lea eax, [ebp - 0x74]
push eax
call ebx
test eax, eax
jne 0x401afc
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
and dword [ebp - 0x7c], eax
je 0x401b0f
add dword [ebp - 0x80], esi
add dword [ebp - 0x78], esi
cmp dword [ebp - 0x80], 0x1658
jb 0x401a77
mov ecx, dword [ebp + 0x3b0]
mov eax, dword [ebp - 0x7c]
pop edi
pop esi
pop ebx
call fcn.00403dff
add ebp, 0x3b4
leave
ret
Function at 0x401de9
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x2d4
mov eax, dword [0x410eec]
push esi
push edi
mov dword [ebp + 0x74], eax
lea eax, [ebp - 0x25c]
push 0x411c40
push eax
call fcn.00404725
lea eax, [ebp - 0x25c]
push 0x40c398
push eax
call fcn.004046fb
lea eax, [ebp - 0x25c]
push str.FCDownloader.exe
push eax
call fcn.004046fb
mov esi, str._first
lea edi, [ebp - 0x54]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 0x18
movsw word es:[edi], word [esi]
push 0x2e
pop ecx
xor eax, eax
lea edi, [ebp - 0x46]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.004016bb
pop edi
pop esi
push 1
test eax, eax
push 0
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x25c]
push eax
jle 0x401e6e
push str.runas
jmp 0x401e73
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp + 0x74]
xor eax, eax
inc eax
call fcn.00403dff
add ebp, 0x78
leave
ret

Function at 0x401e8b
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x1a4]
sub esp, 0x224
mov eax, dword [0x410eec]
push esi
xor esi, esi
push esi
mov dword [ebp + 0x1a0], eax
push 0x1a
lea eax, [ebp - 0x7c]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, esi
mov dword [ebp - 0x80], eax
je 0x401f75
push ebx
push edi
lea eax, [ebp - 0x7c]
push 0x40c608
push eax
call fcn.004046fb
pop ecx
pop ecx
lea eax, [ebp - 0x7c]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea eax, [ebp - 0x7c]
push str.config.ini
push eax
call fcn.004046fb
pop ecx
pop ecx
push 0xa
lea eax, [ebp + 0x18c]
push eax
push str.InstallSource
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x18c]
push eax
push str.source
mov edi, str.config
push edi
call esi
lea eax, [ebp - 0x7c]
push eax
mov ebx, str.0100000001
push ebx
push str.Main_Ver
push edi
call esi
lea eax, [ebp - 0x7c]
push eax
push ebx
push 0x40c58c
push edi
call esi
lea eax, [ebp - 0x7c]
push eax
mov ebx, 0x40c588
push ebx
push str.initcount
push edi
call esi
lea eax, [ebp - 0x7c]
push eax
push ebx
push str.show_cnt
mov edi, str.helper
push edi
call esi
lea eax, [ebp - 0x7c]
push eax
push 0x40c434
push str.show
push edi
call esi
pop edi
pop ebx
mov ecx, dword [ebp + 0x1a0]
mov eax, dword [ebp - 0x80]
pop esi
call fcn.00403dff
add ebp, 0x1a4
leave
ret
Function at 0x402689
Capabilities:
Create thread
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x410eec]
push ebx
push esi
push edi
mov esi, 0x1fe
push esi
mov dword [ebp - 4], eax
call fcn.004048e1
push esi
xor esi, esi
push esi
push eax
mov dword [ebp - 0x264], eax
call fcn.00404500
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor eax, eax
mov word [ebp - 0x18], si
lea edi, [ebp - 0x16]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0x10
stosw word es:[edi], ax
push 0xa
lea eax, [ebp - 0x18]
push eax
push str.InstallSource
call ebx
xor eax, eax
cmp dword [ebp + 0xc], esi
mov word [ebp - 0x260], si
mov ecx, 0x81
lea edi, [ebp - 0x25e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x260]
jne 0x40270f
push 0x104
push eax
push 0x40c2f4
call ebx
jmp 0x40271a
push dword [ebp + 0xc]
push eax
call fcn.00404725
pop ecx
pop ecx
push 0xf
xor eax, eax
pop ecx
mov word [ebp - 0x58], si
lea edi, [ebp - 0x56]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00402448
push esi
call fcn.00404a08
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x18]
push eax
push str.gsfcdlinstallersrc_spid_sop_dtsp_d
push dword [ebp - 0x264]
call fcn.00404746
add esp, 0x24
push esi
push esi
push dword [ebp - 0x264]
push 0x4016da
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00403dff
leave
ret
Function at 0x403244
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov eax, 0x40b254
call fcn.00404ee4
sub esp, 0x25c
mov eax, dword [0x410eec]
push ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [edi]
xor bl, bl
cmp dword [eax - 0xc], 0
jne 0x403272
xor al, al
jmp 0x4033e1
push esi
push edi
lea ecx, [ebp + 8]
call fcn.004021fc
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
mov esi, dword [eax - 0xc]
push 0x5c
mov ecx, edi
call fcn.004021ba
dec esi
cmp eax, esi
je 0x40329e
push 0x5c
lea ecx, [ebp + 8]
call fcn.00403039
push 0x40cb44
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.00403118
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 1
call fcn.00402d38
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4033c3
lea eax, [ebp - 0x234]
push 0x40cb40
push eax
call fcn.00404f03
test eax, eax
pop ecx
pop ecx
je 0x40338c
lea eax, [ebp - 0x234]
push 0x40cb38
push eax
call fcn.00404f03
test eax, eax
pop ecx
pop ecx
je 0x40338c
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.00403118
add esp, 0xc
test byte [ebp - 0x260], 0x10
mov byte [ebp - 4], 2
je 0x40334c
lea eax, [ebp - 0x264]
push eax
call fcn.00403244
mov bl, al
test bl, bl
pop ecx
jne 0x40337a
jmp 0x40337a
push 0x80
lea ecx, [ebp - 0x264]
call fcn.00402d38
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x264]
call fcn.00402d38
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
mov ecx, dword [ebp - 0x264]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00401369
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4032de
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
test bl, bl
je 0x4033c3
mov ecx, edi
call fcn.00402d38
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x4033c3
mov bl, 1
jmp 0x4033c5
xor bl, bl
mov ecx, dword [ebp - 0x268]
add ecx, 0xfffffff0
call fcn.00401369
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401369
mov al, bl
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.00403dff
leave
ret
Function at 0x403469
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x40b27b
call fcn.00404ee4
mov eax, 0x1030
call fcn.00404800
mov eax, dword [0x410eec]
and dword [ebp - 0x101c], 0
and dword [ebp - 0x1018], 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1018]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x1020], eax
xor eax, eax
inc eax
cmp dword [ebp - 0x1018], eax
mov dword [ebp - 0x1014], eax
jle 0x4035a1
push ebx
push edi
xor eax, eax
xor ebx, ebx
mov word [ebp - 0x1010], bx
mov ecx, 0x1ff
lea edi, [ebp - 0x100e]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x1014]
stosw word es:[edi], ax
mov eax, dword [ebp - 0x1020]
push dword [eax + ecx*4]
lea eax, [ebp - 0x1010]
push eax
call fcn.00404725
lea eax, [ebp - 0x1010]
push eax
call fcn.00404f8b
push dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x810], bx
mov ecx, 0x1ff
lea edi, [ebp - 0x80e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x810]
push eax
call fcn.00404725
lea eax, [ebp - 0x810]
push eax
call fcn.00404f8b
add esp, 0x18
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x103c]
call fcn.00403447
lea ecx, [ebp - 0x810]
push ecx
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.00402426
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
xor edi, edi
push 0
inc edi
push edi
lea ecx, [ebp - 0x103c]
inc bl
call fcn.00402d52
test bl, bl
jne 0x403599
inc dword [ebp - 0x1014]
mov eax, dword [ebp - 0x1014]
cmp eax, dword [ebp - 0x1018]
jl 0x4034c4
jmp 0x40359f
mov dword [ebp - 0x101c], edi
pop edi
pop ebx
push dword [ebp - 0x1020]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x101c]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00403dff
leave
ret