joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ba20
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a71b
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x4b13d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xa4]
push eax
mov dword [edi + 0x10], esi
call fcn.0045b0c0
mov esi, dword [esi + 0x6f0]
mov ecx, dword [edi + 0x10]
or esi, 0x40000080
call fcn.00420f40
test al, 1
je 0x45ba7e
or esi, 1
jmp 0x45ba85
test al, 2
je 0x45ba85
or esi, 2
movups xmm0, xmmword [ebp - 0xa4]
mov ecx, dword [edi + 0x10]
push 0
sub esp, 0x10
mov eax, esp
push 0
movups xmmword [eax], xmm0
mov eax, esi
or eax, 0x20
cmp byte [ecx + 0x6e1], 0
cmove eax, esi
push eax
mov eax, dword [ecx]
push 0
call dword [eax + 0x24]
mov ecx, eax
call fcn.00413cc0
push eax
mov ecx, edi
call fcn.00411610
mov ecx, dword [edi + 0x10]
call fcn.00420dc0
cmp eax, 0xffffffff
je 0x45bae2
mov ecx, dword [edi + 0x10]
push eax
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ecx, eax
call fcn.004136b0
test eax, eax
jne 0x45baf3
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ecx, eax
call fcn.004135d0
mov eax, dword [eax]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push eax
push 0x30
push dword [edi + 4]
call esi
mov eax, dword [edi + 0x10]
push 0
push dword [eax + 0x6dc]
push 0xc5
push dword [edi + 4]
call esi
mov ecx, dword [edi + 0x10]
mov al, byte [ecx + 0x6e1]
test al, al
je 0x45bb39
movzx eax, word [ecx + 0x6e4]
push 0
push eax
push 0xcc
push dword [edi + 4]
call esi
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x38]
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00410850
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.0040ffc0
push 0
push 0
push 0xb9
push dword [edi + 4]
call esi
push 0
push 3
push 0xd3
mov ecx, edi
call fcn.00411c20
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0xe8]
call eax
xor ecx, ecx
cmp al, 1
sete cl
push ecx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [edi + 0x10]
xor ecx, ecx
push 0
cmp byte [eax + 0x6e0], 1
sete cl
push ecx
push 0xcf
push dword [edi + 4]
call esi
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [edi + 0x10]
push dword [edi + 4]
cmp byte [eax + 0x6e2], 0
je 0x45bc02
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
mov ecx, 1
cmove eax, ecx
push eax
push 0
jmp 0x45bc0a
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push eax
push eax
push 0xb1
push dword [edi + 4]
call esi
mov byte [edi + 0x18], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004683fe
mov esp, ebp
pop ebp
ret 4
Function at 0x45bc40
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4b13d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041de90
mov ecx, dword [esi + 0x6d8]
test ecx, ecx
je 0x45bcd1
lea eax, [ebp - 0x14]
push eax
call fcn.0045b0c0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x45bca7
mov ecx, dword [esi + 0x6d8]
push 0
call fcn.00411790
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004683fe
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x14]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [esi + 0x6d8]
push 0
call fcn.00411790
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004683fe
mov esp, ebp
pop ebp
ret 0xc

Function at 0x45bcf0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4b13d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x45bd7b
cmp dword [esi + 0x10], 0
je 0x45bd7b
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.00468c70
mov ebx, esp
test ebx, ebx
je 0x45bd7b
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1e4
call fcn.00410070
mov ecx, dword [esi + 0x10]
push 1
push 0
push 0
mov eax, dword [ecx]
push 0
push str.textchanged
push ecx
call dword [eax + 0x24]
mov ecx, eax
call fcn.00417890
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ecx, eax
call fcn.00413f90
test al, al
je 0x45bd7b
mov ecx, dword [esi + 0x10]
call fcn.0041dd60
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004683fe
mov esp, ebp
pop ebp
ret 0x10
Function at 0x45c890
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4b13d4]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [ebp + 8]
push esi
push dword [ebp + 0x18]
mov esi, ecx
sub esp, 0x10
mov eax, esp
movups xmmword [eax], xmm0
call fcn.00420090
mov ecx, dword [esi + 0x6d8]
test ecx, ecx
je 0x45c927
lea eax, [ebp - 0x14]
push eax
call fcn.0045b0c0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x45c8fd
mov ecx, dword [esi + 0x6d8]
push 0
call fcn.00411790
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004683fe
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x14]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [esi + 0x6d8]
push 0
call fcn.00411790
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004683fe
mov esp, ebp
pop ebp
ret 0x14

Function at 0x45fbd0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a99b
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x4b13d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [edi + 0x10], eax
mov dword [eax + 0x6e8], 0
cmp dword [edi + 4], 0
jne 0x45fc7b
lea eax, [ebp - 0xa4]
push eax
call fcn.0045f710
mov ecx, dword [edi + 0x10]
movups xmm0, xmmword [ebp - 0xa4]
push 0
sub esp, 0x10
mov eax, esp
push 0
movups xmmword [eax], xmm0
mov eax, dword [ecx]
push 0x40000000
push 0
call dword [eax + 0x24]
mov ecx, eax
call fcn.00413cc0
push eax
mov ecx, edi
call fcn.00411610
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.00420dc0
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
mov ecx, eax
call fcn.00413850
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x38]
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00410ab0
lea ecx, [ebp - 0x94]
mov bl, al
call fcn.0040ffc0
test bl, bl
je 0x45fcb8
mov eax, dword [edi + 0x10]
add eax, 0x6d8
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [edi + 0x10]
add eax, 0x6d8
push eax
push 0
push 0x1002
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x18], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004683fe
mov esp, ebp
pop ebp
ret 4
Function at 0x45fd10
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4b13d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041de90
mov ecx, dword [esi + 0x6f0]
test ecx, ecx
je 0x45fda1
lea eax, [ebp - 0x14]
push eax
call fcn.0045f710
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x45fd77
mov ecx, dword [esi + 0x6f0]
push 0
call fcn.00411790
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004683fe
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x14]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [esi + 0x6f0]
push 0
call fcn.00411790
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004683fe
mov esp, ebp
pop ebp
ret 0xc

Function at 0x45feb0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4b13d4]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [ebp + 8]
push esi
push dword [ebp + 0x18]
mov esi, ecx
sub esp, 0x10
mov eax, esp
movups xmmword [eax], xmm0
call fcn.00420090
mov ecx, dword [esi + 0x6f0]
test ecx, ecx
je 0x45ff47
lea eax, [ebp - 0x14]
push eax
call fcn.0045f710
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x45ff1d
mov ecx, dword [esi + 0x6f0]
push 0
call fcn.00411790
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004683fe
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x14]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [esi + 0x6f0]
push 0
call fcn.00411790
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004683fe
mov esp, ebp
pop ebp
ret 0x14
Function at 0x461de0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
push ebx
xor ebx, ebx
and eax, 7
cmp ecx, 5
jae 0x461e00
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
add dword [ebp + 0x10], 5
lea edx, [ecx - 4]
push esi
mov esi, dword [ebp + 8]
push edi
or edi, 0xffffffff
add edx, esi
mov dword [ebp - 4], edx
add esi, ebx
mov dword [ebp + 0xc], esi
cmp esi, edx
jae 0x461e32
nop dword [eax]
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x461e2f
inc esi
cmp esi, edx
jb 0x461e20
mov dword [ebp + 0xc], esi
mov ebx, esi
sub ebx, dword [ebp + 8]
mov ecx, ebx
sub ecx, edi
cmp esi, edx
jae 0x461f5c
cmp ecx, 3
jbe 0x461e72
xor eax, eax
mov cl, byte [esi + 4]
mov edi, ebx
mov dword [ebp - 0x10], edi
test cl, cl
je 0x461eb0
cmp cl, 0xff
je 0x461eb0
mov edx, dword [ebp - 4]
and eax, 3
mov esi, dword [ebp + 8]
add eax, eax
mov ecx, 1
or eax, 1
add ebx, ecx
jmp 0x461e14
dec ecx
shl eax, cl
and eax, 7
je 0x461e4a
movzx ecx, byte [eax + 0x494a1c]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x494a14], 0
mov cl, byte [edx + 4]
je 0x461e9a
test cl, cl
je 0x461e9a
cmp cl, 0xff
jne 0x461e4a
mov edx, dword [ebp - 4]
and eax, 3
mov esi, dword [ebp + 8]
add eax, eax
mov edi, ebx
or eax, 1
inc ebx
jmp 0x461e14
movzx edi, cl
movzx ecx, byte [esi + 3]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 2]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 1]
mov esi, dword [ebp + 0x10]
shl edi, 8
or edi, ecx
cmp dword [ebp + 0x18], 0
je 0x461ede
lea edx, [edi + ebx]
add edx, esi
jmp 0x461ee4
mov edx, edi
sub edx, ebx
sub edx, esi
test eax, eax
je 0x461f22
movzx edi, byte [eax + 0x494a1c]
mov ecx, 0x18
shl edi, 3
sub ecx, edi
mov dword [ebp - 0xc], edi
mov edi, edx
shr edi, cl
mov ecx, edi
mov dword [ebp - 8], edi
test cl, cl
je 0x461f0e
cmp cl, 0xff
jne 0x461f22
mov ecx, 0x20
mov edi, 1
sub ecx, dword [ebp - 0xc]
shl edi, cl
dec edi
xor edi, edx
jmp 0x461ed1
mov esi, dword [ebp + 0xc]
mov ecx, edx
mov edi, dword [ebp - 0x10]
shr ecx, 0x18
and cl, 1
dec cl
mov byte [esi + 1], dl
not cl
mov byte [esi + 4], cl
mov ecx, edx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, edx
mov edx, dword [ebp - 4]
shr ecx, 8
mov byte [esi + 2], cl
mov ecx, 5
mov esi, dword [ebp + 8]
add ebx, ecx
jmp 0x461e14
pop edi
pop esi
cmp ecx, 3
jbe 0x461f71
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0x14]
and eax, 7
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40103b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401074
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x401070
jmp 0x401060
cmp esi, eax
jae 0x401074
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401060
cmp esi, eax
jb 0x40107b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401130
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push 4
call fcn.004027ad
add esp, 4
test eax, eax
je 0x40114f
mov dword [eax], 0x62
mov esi, eax
jmp 0x401151
xor esi, esi
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.0040c9a0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], ecx
add esp, 0xc
lea ecx, [ebp - 0x3c]
push ecx
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 5
mov dword [ebp - 0x1c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x4011d3
mov edx, dword [ebp - 4]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x426f80], eax
mov eax, 0x426f80
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401f80
Capabilities:
Create directory
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41cad8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x425ad0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0x10]
mov ebx, 0x10
mov byte [ebp - 4], 2
cmp dword [ebp + 0x24], ebx
jae 0x401fc7
lea eax, [ebp + 0x10]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x41e45c
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x54]
push ecx
call fcn.00401e20
add esp, 0xc
lea edx, [ebp + 0x28]
push edx
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 3
call fcn.00401ed0
add esp, 0xc
cmp dword [ebp - 0x3c], ebx
jb 0x40200a
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.004027dc
add esp, 4
movzx edx, word [ebp + 8]
push str.file
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, edi
jne 0x40206f
cmp dword [ebp - 0x18], ebx
jb 0x402032
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004027dc
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
cmp dword [ebp + 0x24], ebx
jb 0x402052
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004027dc
add esp, 4
mov dword [ebp + 0x24], esi
mov dword [ebp + 0x20], edi
mov byte [ebp + 0x10], 0
cmp dword [ebp + 0x40], ebx
jb 0x4020b2
mov edx, dword [ebp + 0x2c]
push edx
call fcn.004027dc
add esp, 4
jmp 0x4020b2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x402021
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x34], eax
cmp eax, edi
je 0x402021
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x38], esi
cmp esi, edi
jne 0x4020d0
lea ecx, [ebp - 0x30]
call fcn.00401780
lea ecx, [ebp + 0xc]
call fcn.00401780
lea ecx, [ebp + 0x28]
call fcn.00401780
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040ce4c
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x4020db
lea eax, [ebp - 0x2c]
push edi
push 0x80
push 2
push edi
push edi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
push esi
push edi
push 4
mov ebx, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
cmp esi, edi
je 0x40209a
push edi
push edi
push edi
push 2
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp - 0x34]
mov edi, eax
mov eax, dword [ebp - 0x38]
push eax
push ecx
push edi
call fcn.0040ce60
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
lea ecx, [ebp - 0x30]
call fcn.00401780
lea ecx, [ebp + 0xc]
call fcn.00401780
lea ecx, [ebp + 0x28]
call fcn.00401780
mov al, 1
jmp 0x4020b4
Function at 0x402160
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41cb08
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x425ad0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x103
lea eax, [ebp - 0x113]
push 0
push eax
mov dword [ebp - 4], 0
mov byte [ebp - 0x114], 0
call fcn.0040c9a0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x114]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp dword [ebp + 0x20], 0x10
mov eax, dword [ebp + 0xc]
jae 0x4021cf
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x118]
call fcn.00401d20
mov edx, dword [ebp - 0x118]
push 0
push edx
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [ebp - 0x118]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402213
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp + 0x20], 0x10
jb 0x402225
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004027dc
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ce4c
mov esp, ebp
pop ebp
ret
Function at 0x402240
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x425ad0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
push 0x426e80
xor ebx, ebx
mov esi, 0xf
push 0xff
mov dword [ebp - 0x2c], eax
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], ebx
mov byte [ebp - 0x1c], bl
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x41e4a4
push 0x426e80
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, eax
mov ecx, edi
lea eax, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x402290
sub ecx, eax
push ecx
push edi
lea ecx, [ebp - 0x20]
call fcn.00401bd0
push 0x426e80
lea ecx, [ebp - 0x25]
call fcn.00402750
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x24], esp
push 9
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push 0x41e498
mov byte [ecx + 4], bl
call fcn.00401bd0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x20]
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.00401ae0
push 0x65
call fcn.00401f80
add esp, 0x20
mov ecx, esp
mov dword [ebp - 0x24], esp
mov edi, 0x10
push edi
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push str.setup.exe.config
mov byte [ecx + 4], bl
call fcn.00401bd0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x20]
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00401ae0
push 0x69
call fcn.00401f80
add esp, 0x20
mov ecx, esp
mov dword [ebp - 0x24], esp
push 9
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push 0x41e478
mov byte [ecx + 4], bl
call fcn.00401bd0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x20]
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.00401ae0
push 0x66
call fcn.00401f80
add esp, 0x20
mov eax, esp
mov dword [ebp - 0x24], esp
push str.parent.txt
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.00401e20
add esp, 0xc
call fcn.00402160
mov esi, dword [ebp - 0x1c]
add esp, 0x1c
cmp dword [ebp - 8], edi
jae 0x4023a4
lea esi, [ebp - 0x1c]
push str._setup.exe
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.00401e20
add esp, 0xc
cmp dword [eax + 0x18], edi
jb 0x4023c3
mov eax, dword [eax + 4]
jmp 0x4023c6
add eax, 4
mov ecx, dword [ebp - 0x2c]
push esi
push ecx
push eax
call fcn.00401130
add esp, 0xc
cmp dword [ebp - 0x30], edi
jb 0x4023e5
mov edx, dword [ebp - 0x44]
push edx
call fcn.004027dc
add esp, 4
cmp dword [ebp - 8], edi
jb 0x4023f6
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004027dc
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040ce4c
mov esp, ebp
pop ebp
ret 0x10