joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408178
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x634
mov eax, dword [0x5c2fd0]
xor eax, esp
mov dword [esp + 0x630], eax
push ebx
mov ebx, ecx
push esi
push edi
xor edi, edi
lea eax, [ebx + 0x10]
cmp word [eax], di
je 0x40837f
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x10], esi
cmp esi, 0xffffffff
je 0x40837f
mov eax, dword [ebx + 0x21c]
mov dword [esp + 0x14], edi
cmp eax, 1
jne 0x4081e8
push edi
lea eax, [esp + 0x18]
push eax
push 2
push 0x5a6828
jmp 0x4081fa
cmp eax, 2
jne 0x408201
push edi
lea eax, [esp + 0x18]
push eax
push 3
push 0x5a4474
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, edi
mov dword [esp + 0x1c], eax
cmp dword [ebx + 0xc], edi
jle 0x408373
lea ecx, [esp + 0x430]
push ecx
push eax
mov ecx, ebx
call fcn.0040ab30
mov ecx, 0x82
lea esi, [esp + 0x430]
lea edi, [esp + 0x20]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov edi, eax
mov esi, dword [esp + 0x10]
cmp word [esp + 0x430], ax
je 0x40826f
push 0x5a682c
push esi
mov ecx, ebx
call fcn.00408080
lea eax, [esp + 0x20]
mov ecx, ebx
push eax
push esi
call fcn.00408080
push 0x5a6830
push esi
mov ecx, ebx
mov edi, eax
call fcn.00408080
xor eax, eax
mov ecx, dword [esp + 0x224]
test ecx, ecx
je 0x40828a
cmp word [ecx], ax
je 0x40828a
push ecx
push esi
mov ecx, ebx
call fcn.00408080
mov edi, eax
test edi, edi
je 0x40829b
push 0x5a6834
push esi
mov ecx, ebx
call fcn.00408080
mov eax, dword [esp + 0x220]
xor edx, edx
mov ecx, edx
mov dword [esp + 0x18], edx
cmp dword [eax + 0xc], edx
jle 0x408361
lea edx, [esp + 0x430]
push edx
push ecx
mov ecx, eax
call fcn.0040ab30
cmp word [esp + 0x430], 0
lea esi, [esp + 0x430]
mov ecx, 0x82
lea edi, [esp + 0x228]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x10]
je 0x408320
lea eax, [esp + 0x228]
mov ecx, ebx
push eax
push esi
call fcn.00408080
push 0x5a683c
push esi
mov ecx, ebx
call fcn.00408080
push dword [esp + 0x428]
mov ecx, ebx
push esi
call fcn.00408080
push 0x5a6848
push esi
mov ecx, ebx
call fcn.00408080
mov eax, dword [esp + 0x42c]
test eax, eax
je 0x40833b
xor ecx, ecx
cmp word [eax], cx
je 0x40833b
push eax
push esi
mov ecx, ebx
call fcn.00408080
push 0x5a6834
push esi
mov ecx, ebx
call fcn.00408080
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x220]
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, dword [eax + 0xc]
jl 0x4082b3
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [ebx + 0xc]
jl 0x408210
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x408381
xor eax, eax
mov ecx, dword [esp + 0x63c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00546259
mov esp, ebp
pop ebp
ret 8
Function at 0x408398
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
cmp dword [edi + 0xc], ebx
je 0x4083d4
lea eax, [edi + 0x10]
cmp word [eax], bx
jne 0x4083b7
test esi, esi
je 0x4083cc
cmp dword [edi + 0x218], ebx
jne 0x4083d4
push esi
push eax
call fcn.0054e5c4
pop ecx
pop ecx
test eax, eax
jne 0x4083d4
xor eax, eax
inc eax
jmp 0x40848f
xor eax, eax
mov dword [edi + 0x218], ebx
cmp dword [ebp + 0x10], eax
push ebx
push 0x80
setne al
mov dword [ebp + 8], ebx
add eax, 3
push eax
push ebx
push 1
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor ecx, ecx
mov dword [ebp + 0x10], eax
cmp eax, 0xffffffff
setne cl
mov dword [ebp - 4], ecx
je 0x40841a
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
jmp 0x40841d
mov ecx, dword [ebp + 8]
cmp dword [ebp - 4], ebx
je 0x40848d
mov edx, edi
sub edx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [edx + esi + 0xe], ax
test ax, ax
jne 0x408426
cmp ecx, 0xffffffff
mov eax, 0x100000
cmove ecx, eax
mov dword [ebp + 8], ecx
lea eax, [ecx + 1]
push eax
call fcn.0040abe1
mov esi, eax
pop ecx
test esi, esi
je 0x408484
push ebx
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40847d
mov eax, dword [ebp + 8]
mov ecx, edi
mov byte [esi + eax], bl
push dword [ebp + 8]
push esi
call fcn.004084ca
mov ebx, eax
push esi
call fcn.0040abdc
pop ecx
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40e110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0041c142
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40e147
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.0040e166
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x4101b2
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x14]
add edx, dword [ecx + 0x3c]

Function at 0x4118d5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x41191a
call fcn.0041c142
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41191a
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x411936
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041c6cf
mov ebx, eax
test edi, edi
je 0x411934
test esi, esi
je 0x411934
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x412352
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x412410
cmp dword [esi + 0x20], 0
je 0x412410
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x412410
cmp dword [ebp + 8], 0
je 0x412410
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.0041c142
push 0x573528
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4123e1
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x412410
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.00439ea3
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x412401
test edi, edi
je 0x412401
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x41240c
mov ecx, esi
call fcn.004120f4
mov eax, ebx
jmp 0x412412
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4171eb
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x563ada
call fcn.005469d7
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x417211
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x417271
call fcn.0040d5cc
push eax
lea ecx, [ebp - 0x10]
call fcn.00402de0
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x571994]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00551865
push eax
call fcn.00402590
add esp, 0x14
test esi, esi
je 0x417264
push esi
call fcn.00551719
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402f50
mov eax, ebx
call fcn.005469a0
ret 8

Function at 0x41a8c2
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x41a915
push esi
push dword [ebp + 8]
call fcn.0041aaab
mov edi, eax
test edi, edi
je 0x41a910
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x41a910
mov eax, dword [ebp - 8]
jmp 0x41a927
mov eax, dword [ebp + 0x10]
jmp 0x41a927
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
leave
ret 0xc

Function at 0x41c289
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [edi + 4]
call fcn.00417114
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
mov esi, eax
mov ecx, edi
and esi, 3
call fcn.0041c4a2
cmp esi, 3
je 0x41c2c7
mov dword [edi + 0xc], 1
cmp dword [edi], 0
je 0x41c310
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x41c2ea
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00407560
jmp 0x41c2fb
push 0xff
mov ecx, esi
call fcn.004031d0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00407510
jmp 0x41c334
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x41c334
push dword [esi]
push dword [ebp - 4]
call fcn.0041d338
pop edi
pop esi
leave
ret 0xc
Function at 0x41c3f9
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.0041c4a2
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x41c441
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00407560
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00407510
jmp 0x41c44c
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0041d338
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x43c59f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x43c5f5
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x43c5ce
call fcn.0040b5d1
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x43c5e3
call fcn.0040b5d1
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x43c5f5
call fcn.0040b5d1
call fcn.0041c142
cmp dword [eax + 0x3c], 0
je 0x43c60a
push edi
mov ecx, ebx
call fcn.0043bccf
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0043c7dc
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x43c633
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x43c63f
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x448dc3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
push edi
test esi, esi
jne 0x448ddd
call fcn.0041c142
mov esi, dword [eax + 0xc]
push 0x577e3c
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x448e33
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x448e33
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x448e12
xor esi, esi
jmp 0x448e28
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.00448e3c
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
jmp 0x448e35
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x48762e
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.005217fb
call fcn.0041c196
cmp dword [eax + 0x14], 0
jne 0x487649
mov ecx, esi
pop esi
jmp fcn.00486959
pop esi
ret
Function at 0x4ec5c0
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.004024c0
call fcn.0041c196
cmp dword [eax + 0x14], 0
jne 0x4ec5db
mov ecx, esi
pop esi
jmp fcn.004ebe3c
pop esi
ret

Function at 0x5042df
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.00556bab
pop ecx
test eax, eax
jne 0x504321
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00407ee0
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5042e7
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret

Function at 0x55ee32
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0055eaf2
Function at 0x401570
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47fb7c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
mov eax, dword [0x4a6844]
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x164]
push 0x5c
mov ecx, esi
mov dword [esp + 0x160], 0
call fcn.00474e5e
inc eax
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, esi
call fcn.00474de6
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x160], 1
call fcn.00475f95
lea ecx, [esp + 0x10]
mov byte [esp + 0x15c], 0
call fcn.00475ea8
mov edx, dword [0x4a6844]
mov dword [esp + 8], edx
mov esi, dword [esi]
lea eax, [esp + 0x14]
push eax
push esi
mov byte [esp + 0x164], 2
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4016b4
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x10]
call fcn.00475fe5
mov edx, dword [esp + 0xc]
push 0x49b150
push edx
call fcn.00465d10
add esp, 8
test eax, eax
je 0x40169c
mov eax, dword [esp + 0xc]
push 0x49b14c
push eax
call fcn.00465d10
add esp, 8
test eax, eax
je 0x40169c
lea ecx, [esp + 0x44]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
call fcn.004760f1
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], 3
call fcn.00475f95
lea ecx, [esp + 0x14]
mov byte [esp + 0x160], 2
call fcn.00475ea8
lea ecx, [esp + 0xc]
call fcn.0047635e
lea ecx, [esp + 0xc]
push ecx
mov ecx, edi
call fcn.004757e9
lea edx, [esp + 0x18]
push edx
push esi
call ebp
test eax, eax
jne 0x401616
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
lea ecx, [esp + 8]
mov byte [esp + 0x15c], 0
call fcn.00475ea8
lea ecx, [esp + 0xc]
mov dword [esp + 0x15c], 0xffffffff
call fcn.00475ea8
mov ecx, dword [esp + 0x154]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x158
ret 4
Function at 0x4064c0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4809bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esp + 0x18], 0
lea edi, [esi + 0x48]
mov dword [esp + 0xc], edi
lea ecx, [edi + 4]
mov byte [esp + 0x18], 0x12
call fcn.00475ea8
mov ecx, edi
mov byte [esp + 0x18], 0x11
call fcn.00475ea8
lea ecx, [esi + 0x44]
mov byte [esp + 0x18], 0x10
call fcn.00475ea8
lea ecx, [esi + 0x40]
mov byte [esp + 0x18], 0xf
call fcn.00475ea8
lea ecx, [esi + 0x3c]
mov byte [esp + 0x18], 0xe
call fcn.00475ea8
lea ecx, [esi + 0x38]
mov byte [esp + 0x18], 0xd
call fcn.00475ea8
lea ecx, [esi + 0x34]
mov byte [esp + 0x18], 0xc
call fcn.00475ea8
lea ecx, [esi + 0x30]
mov byte [esp + 0x18], 0xb
call fcn.00475ea8
lea ecx, [esi + 0x2c]
mov byte [esp + 0x18], 0xa
call fcn.00475ea8
lea ecx, [esi + 0x28]
mov byte [esp + 0x18], 9
call fcn.00475ea8
lea ecx, [esi + 0x24]
mov byte [esp + 0x18], 8
call fcn.00475ea8
lea ecx, [esi + 0x20]
mov byte [esp + 0x18], 7
call fcn.00475ea8
lea ecx, [esi + 0x1c]
mov byte [esp + 0x18], 6
call fcn.00475ea8
lea ecx, [esi + 0x18]
mov byte [esp + 0x18], 5
call fcn.00475ea8
lea ecx, [esi + 0x14]
mov byte [esp + 0x18], 4
call fcn.00475ea8
lea ecx, [esi + 0x10]
mov byte [esp + 0x18], 3
call fcn.00475ea8
lea ecx, [esi + 0xc]
mov byte [esp + 0x18], 2
call fcn.00475ea8
lea ecx, [esi + 8]
mov byte [esp + 0x18], 1
call fcn.00475ea8
mov byte [esp + 0x18], 0
lea ecx, [esi + 4]
call fcn.00475ea8
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.00475ea8
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x407680
Capabilities:
Delete directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x480cab
push eax
mov dword fs:[0], esp
sub esp, 0x404
push ebx
push esi
push edi
mov ebx, ecx
call fcn.00441cf0
test eax, eax
je 0x407742
push ebp
push 0
lea eax, [esp + 0x218]
push str.CInstall_::_CleanUpFilesAndRegistryAfterInstall_n
push eax
call fcn.00465850
mov edi, str.ENTRY:
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x114]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x114]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x214]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00441c80
mov ecx, eax
call fcn.00441d20
lea eax, [esp + 0x114]
push eax
call fcn.00441c80
mov ecx, eax
call fcn.00442090
pop ebp
add ebx, 0x3fc
push 0x49bc2c
lea ecx, [esp + 0x10]
push ebx
push ecx
call fcn.004760f1
mov edx, dword [esp + 0xc]
mov dword [esp + 0x418], 0
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
call fcn.00441cf0
test eax, eax
je 0x407805
push 0
lea eax, [esp + 0x314]
push str.CInstall_::_CleanUpFilesAndRegistryAfterInstall_n
push eax
call fcn.00465850
mov edi, str.EXIT:
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x310]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00441c80
mov ecx, eax
call fcn.00442090
call fcn.00441c80
mov ecx, eax
call fcn.00441d30
lea ecx, [esp + 0xc]
mov dword [esp + 0x418], 0xffffffff
call fcn.00475ea8
mov ecx, dword [esp + 0x410]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x410
ret
Function at 0x40bb50
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4817c3
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x1c], 0
lea esi, [eax + 8]
mov ecx, esi
call fcn.00475f95
lea edx, [esp + 0x28]
lea ecx, [esi + 4]
push edx
call fcn.00475f95
lea eax, [esp + 0x2c]
lea ecx, [esi + 8]
push eax
call fcn.00475f95
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esi + 0xc]
call fcn.00475f95
lea edx, [esp + 0x34]
lea ecx, [esi + 0x10]
push edx
call fcn.00475f95
lea eax, [esp + 0x38]
lea ecx, [esi + 0x14]
push eax
call fcn.00475f95
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esi + 0x18]
call fcn.00475f95
lea ebx, [esp + 0x28]
lea ebp, [esp + 0x24]
sub ebx, esi
lea edi, [esi + 0x1c]
sub ebp, esi
mov dword [esp + 0x20], 5
lea edx, [edi + ebp]
mov ecx, edi
push edx
call fcn.00475f95
lea eax, [ebx + edi]
lea ecx, [edi + 4]
push eax
call fcn.00475f95
mov eax, dword [esp + 0x20]
add edi, 8
dec eax
mov dword [esp + 0x20], eax
jne 0x40bbe9
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esi + 0x44]
call fcn.00475f95
lea edx, [esp + 0x6c]
lea ecx, [esi + 0x48]
push edx
call fcn.00475f95
lea eax, [esp + 0x70]
lea ecx, [esi + 0x4c]
push eax
call fcn.00475f95
mov ecx, dword [esp + 0x74]
lea edi, [esi + 0x54]
mov dword [esi + 0x50], ecx
mov ecx, 0x146
lea esi, [esp + 0x78]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x70]
mov dword [esp + 0x18], 0xa
call fcn.00475ea8
lea ecx, [esp + 0x6c]
mov byte [esp + 0x18], 9
call fcn.00475ea8
lea ecx, [esp + 0x68]
mov byte [esp + 0x18], 8
call fcn.00475ea8
push 0x403560
push 5
lea edx, [esp + 0x48]
push 8
push edx
mov byte [esp + 0x28], 7
call fcn.00465d50
lea ecx, [esp + 0x3c]
mov byte [esp + 0x18], 6
call fcn.00475ea8
lea ecx, [esp + 0x38]
mov byte [esp + 0x18], 5
call fcn.00475ea8
lea ecx, [esp + 0x34]
mov byte [esp + 0x18], 4
call fcn.00475ea8
lea ecx, [esp + 0x30]
mov byte [esp + 0x18], 3
call fcn.00475ea8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x18], 2
call fcn.00475ea8
lea ecx, [esp + 0x28]
mov byte [esp + 0x18], 1
call fcn.00475ea8
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0xffffffff
call fcn.00475ea8
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0x570