joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46cab4
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
push esp
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [esp + 8]
add esp, 0x20
ret

Function at 0x47156c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00403fc8
xor eax, eax
push ebp
push 0x471702
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
add eax, 0x44
mov edx, dword [ebp - 8]
call fcn.00403be8
mov eax, dword [ebp - 4]
add eax, 0x24
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.00403fd8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x28], ebx
test ebx, ebx
je 0x4716e7
mov eax, ebx
call fcn.0040270c
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x2c], esi
xor eax, eax
push ebp
push 0x4716e0
push dword fs:[eax]
mov dword fs:[eax], esp
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
push eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
call fcn.00403fd8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4716c1
lea ecx, [ebp - 0xc]
mov edx, 0x471718
mov eax, dword [ebp - 4]
call fcn.00471498
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.00403be8
lea ecx, [ebp - 0x10]
mov edx, 0x47172c
mov eax, dword [ebp - 4]
call fcn.00471498
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
add eax, 0x4c
call fcn.00403be8
lea ecx, [ebp - 0x14]
mov edx, 0x471744
mov eax, dword [ebp - 4]
call fcn.00471498
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
add eax, 0x50
call fcn.00403be8
lea ecx, [ebp - 0x18]
mov edx, 0x471758
mov eax, dword [ebp - 4]
call fcn.00471498
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
add eax, 0x54
call fcn.00403be8
lea ecx, [ebp - 0x1c]
mov edx, 0x471770
mov eax, dword [ebp - 4]
call fcn.00471498
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
add eax, 0x58
call fcn.00403be8
lea ecx, [ebp - 0x20]
mov edx, 0x47178c
mov eax, dword [ebp - 4]
call fcn.00471498
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
add eax, 0x5c
call fcn.00403be8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4716e7
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
call fcn.00402724
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x471709
lea eax, [ebp - 0x20]
mov edx, 7
call fcn.00403bb8
ret
Function at 0x471798
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x150], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47190d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 0x44]
call fcn.00403fd8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov edi, eax
mov eax, edi
call fcn.004088c0
mov esi, eax
push esi
push edi
push 0
mov eax, dword [ebx + 0x44]
call fcn.00403fd8
push eax
call sub.version.dll_GetFileVersionInfoA
neg eax
sbb eax, eax
neg eax
test al, al
je 0x4718ef
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x47191c
push esi
call sub.version.dll_VerQueryValueA
lea eax, [ebp - 0x4c]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00406c60
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x471920
push esi
call sub.version.dll_VerQueryValueA
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov esi, eax
and esi, 0xffff
mov edi, eax
and edi, 0xffff0000
shr edi, 0x10
and edi, 0xffff
lea ecx, [ebp - 0x150]
mov edx, 4
mov eax, esi
call fcn.004081a0
mov edx, dword [ebp - 0x150]
lea eax, [ebp - 0x14c]
mov ecx, 0xff
call fcn.00403df0
lea edx, [ebp - 0x14c]
lea eax, [ebp - 0x11]
mov cl, 4
call fcn.00402a64
lea ecx, [ebp - 0x154]
mov edx, 4
mov eax, edi
call fcn.004081a0
mov edx, dword [ebp - 0x154]
lea eax, [ebp - 0x14c]
mov ecx, 0xff
call fcn.00403df0
lea edx, [ebp - 0x14c]
lea eax, [ebp - 0x16]
mov cl, 4
call fcn.00402a64
lea edx, [ebp - 0x11]
lea eax, [ebp - 0x160]
call fcn.00402a48
lea edx, [ebp - 0x16]
lea eax, [ebp - 0x160]
mov cl, 8
call fcn.00402a18
lea edx, [ebp - 0x160]
lea eax, [ebx + 0x38]
mov cl, 8
call fcn.00402a64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x471914
lea eax, [ebp - 0x154]
mov edx, 2
call fcn.00403bb8
ret

Function at 0x471974
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403fd8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x47198d
test al, 0x10
jne 0x471991
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x4770fc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403fc8
mov eax, dword [ebp - 8]
call fcn.00403fc8
mov eax, dword [ebp - 0xc]
call fcn.00403fc8
xor eax, eax
push ebp
push 0x47723d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00408368
test al, al
je 0x47721a
lea edx, [ebp - 0x1c]
mov eax, dword [0x4a11dc]
mov eax, dword [eax]
call fcn.00447a68
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00403f24
je 0x47721a
mov dl, 1
mov eax, dword [0x40dfa8]
call fcn.00402e58
mov dword [ebp - 0x10], eax
mov dl, 1
mov eax, dword [0x40dfa8]
call fcn.00402e58
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.00410fc8
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.00410b84
mov eax, dword [ebp - 0x10]
call fcn.00410b90
mov esi, eax
dec esi
test esi, esi
jl 0x4771ff
inc esi
xor ebx, ebx
lea edx, [ebp - 0x15]
mov ecx, 1
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 4]
mov eax, dword [ebp - 0xc]
call fcn.00403e14
dec eax
push eax
mov eax, ebx
pop edx
mov ecx, edx
cdq
idiv ecx
mov eax, dword [ebp - 0xc]
movzx edi, byte [eax + edx]
mov eax, dword [ebp - 0xc]
call fcn.00403e14
mov edx, edi
xor dl, byte [ebp - 0x15]
xor dl, bl
xor al, dl
mov byte [ebp - 0x15], al
lea edx, [ebp - 0x15]
mov ecx, 1
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 8]
inc ebx
dec esi
jne 0x4771ae
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
call fcn.00410ef4
mov eax, dword [ebp - 0x14]
call fcn.00402e88
mov eax, dword [ebp - 0x10]
call fcn.00402e88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477244
lea eax, [ebp - 0x1c]
call fcn.00403b94
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403bb8
ret
Function at 0x47fa64
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe8c
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x168], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x160]
mov edx, dword [0x4071ac]
call fcn.00404344
xor eax, eax
push ebp
push 0x47fc65
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x47fbfb
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 8]
mov edx, 0x47fc7c
call fcn.00403c2c
mov eax, dword [ebp - 8]
call fcn.00403e14
mov esi, eax
test esi, esi
jle 0x47fbf1
mov ebx, 1
mov eax, dword [ebp - 8]
mov al, byte [eax + ebx - 1]
mov byte [0x4a0f48], al
push 0x4a0f48
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x47fbe9
lea eax, [ebp - 0x168]
mov edx, dword [ebp - 8]
mov dl, byte [edx + ebx - 1]
call fcn.00403d3c
push dword [ebp - 0x168]
push 0x47fca0
push 0x47fcac
lea eax, [ebp - 0x164]
mov edx, 3
call fcn.00403ed4
mov eax, dword [ebp - 0x164]
lea ecx, [ebp - 0x160]
mov edx, 0x3f
call fcn.004083dc
test eax, eax
jne 0x47fbe9
lea eax, [ebp - 0x16c]
mov edx, dword [ebp - 8]
mov dl, byte [edx + ebx - 1]
call fcn.00403d3c
push dword [ebp - 0x16c]
push 0x47fca0
push dword [ebp - 0x154]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00403ed4
mov eax, dword [ebp - 4]
call fcn.00408368
test al, al
je 0x47fbd6
lea eax, [ebp - 0x170]
push eax
lea edx, [ebp - 0x174]
mov eax, dword [ebp - 4]
call fcn.00408538
mov eax, dword [ebp - 0x174]
mov ecx, 0xa
mov edx, 1
call fcn.0040401c
mov eax, dword [ebp - 0x170]
mov edx, 0x47fcbc
call fcn.00403f24
jne 0x47fbd6
mov eax, dword [ebp - 4]
call fcn.0040846c
lea eax, [ebp - 0x160]
call fcn.0040842c
test eax, eax
je 0x47fb56
inc ebx
dec esi
jne 0x47fae7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47fc29
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47fc6c
lea eax, [ebp - 0x174]
mov edx, 5
call fcn.00403bb8
lea eax, [ebp - 0x160]
mov edx, dword [0x4071ac]
call fcn.00404410
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403bb8
ret

Function at 0x480f80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x480ffe
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x480fe8
inc esi
mov dword [ebp - 8], 0
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xc]
call fcn.00481010
xor eax, ebx
mov ecx, 0x7918
cdq
idiv ecx
mov ebx, edx
inc dword [ebp - 8]
dec esi
jne 0x480fc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x481005
lea eax, [ebp - 0xc]
call fcn.00403b94
ret
Function at 0x481370
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff10
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0xf0]
mov edx, edi
call fcn.00408788
push eax
lea eax, [ebp - 0xa0]
mov edx, esi
call fcn.00408788
push eax
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.00408788
push eax
push 0
mov eax, dword [0x4a11dc]
mov eax, dword [eax]
mov eax, dword [eax + 0x38]
call fcn.0042f748
push eax
call sub.shell32.dll_ShellExecuteA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4820f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403fc8
mov eax, dword [ebp - 8]
call fcn.00403fc8
mov eax, dword [ebp - 0xc]
call fcn.00403fc8
xor eax, eax
push ebp
push 0x482231
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00408368
test al, al
je 0x48220e
lea edx, [ebp - 0x1c]
mov eax, dword [0x4a11dc]
mov eax, dword [eax]
call fcn.00447a68
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00403f24
je 0x48220e
mov dl, 1
mov eax, dword [0x40dfa8]
call fcn.00402e58
mov dword [ebp - 0x10], eax
mov dl, 1
mov eax, dword [0x40dfa8]
call fcn.00402e58
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.00410fc8
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.00410b84
mov eax, dword [ebp - 0x10]
call fcn.00410b90
mov esi, eax
dec esi
test esi, esi
jl 0x4821f3
inc esi
xor ebx, ebx
lea edx, [ebp - 0x15]
mov ecx, 1
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 4]
mov eax, dword [ebp - 0xc]
call fcn.00403e14
dec eax
push eax
mov eax, ebx
pop edx
mov ecx, edx
cdq
idiv ecx
mov eax, dword [ebp - 0xc]
movzx edi, byte [eax + edx]
mov eax, dword [ebp - 0xc]
call fcn.00403e14
mov edx, edi
xor dl, byte [ebp - 0x15]
xor dl, bl
xor al, dl
mov byte [ebp - 0x15], al
lea edx, [ebp - 0x15]
mov ecx, 1
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 8]
inc ebx
dec esi
jne 0x4821a2
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
call fcn.00410ef4
mov eax, dword [ebp - 0x14]
call fcn.00402e88
mov eax, dword [ebp - 0x10]
call fcn.00402e88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482238
lea eax, [ebp - 0x1c]
call fcn.00403b94
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403bb8
ret
Function at 0x4132c2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00413141

Function at 0x41760b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416f79

Function at 0x417616
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004171b4

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x401055
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40106c
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4010a1
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x40109d
cmp edi, eax
jae 0x4010a1
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x40108f
cmp edi, eax
jb 0x4010a5
xor eax, eax
jmp 0x4010af
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x401246
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push 0x11c
lea eax, [ebp - 0x80]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40128d
xor al, al
jmp 0x4012ad
cmp dword [ebp - 0x7c], 5
jb 0x401289
jbe 0x401299
mov al, 1
jmp 0x4012ad
xor eax, eax
inc eax
cmp dword [ebp - 0x78], eax
jae 0x4012ad
cmp word [ebp + 0x94], 4
sbb al, al
inc al
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.00405310
add ebp, 0xa0
leave
ret

Function at 0x401ac7
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push 0x10
mov eax, 0x4068bb
call fcn.0040671c
mov edi, ecx
mov eax, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push eax
call ebx
test eax, eax
jne 0x401af7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401b87
mov eax, dword [0x4096e8]
mov ecx, 0x4096e8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
or dword [ebp - 0x14], 0xffffffff
lea eax, [ebp - 0x10]
push 0x104
mov esi, eax
mov dword [ebp - 0x1c], eax
call fcn.00402c05
mov edi, dword [edi]
push eax
push 0
push 0x4074a0
push edi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.004028bc
test esi, esi
je 0x401b7c
cmp esi, 0x6f
je 0x401b7c
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push dword [ebp - 0x10]
call ebx
test eax, eax
je 0x401b7c
mov edi, dword [ebp + 8]
add edi, 0x1c
lea eax, [ebp - 0x10]
call fcn.00402665
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401143
mov al, 1
jmp 0x401b89
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401143
xor al, al
call fcn.00406785
ret 4
Function at 0x401b91
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 0x10
mov eax, 0x4068bb
call fcn.0040671c
mov edi, ecx
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x401bb1
xor al, al
call fcn.00406785
ret
mov eax, dword [0x4096e8]
mov ecx, 0x4096e8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
xor ebx, ebx
mov dword [ebp - 4], ebx
or dword [ebp - 0x14], 0xffffffff
push 0x104
mov esi, eax
mov dword [ebp - 0x1c], eax
call fcn.00402c05
push eax
push ebx
push ebx
push 0x26
push ebx
mov dword [ebp - 0x18], eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.004028bc
cmp esi, ebx
jge 0x401c09
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401143
jmp 0x401ba9
push edi
lea ecx, [ebp - 0x10]
call fcn.00401ac7
test al, al
jne 0x401c25
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401143
mov al, bl
jmp 0x401bab
add edi, 0x20
lea eax, [ebp - 0x10]
call fcn.00402665
mov bl, 1
jmp 0x401c16

Function at 0x401c34
Capabilities:
Get common file path

Disassembly:
push 0x10
mov eax, 0x4068bb
call fcn.0040671c
mov eax, dword [0x4096e8]
mov ecx, 0x4096e8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
or dword [ebp - 0x14], 0xffffffff
lea eax, [ebp - 0x10]
mov edi, 0x104
push edi
mov esi, eax
mov dword [ebp - 0x1c], eax
call fcn.00402c05
push eax
push edi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.004028bc
test esi, esi
je 0x401cb2
cmp esi, edi
ja 0x401cb2
push ebx
lea ecx, [ebp - 0x10]
call fcn.00401ac7
test al, al
je 0x401cb2
lea edi, [ebx + 0x20]
lea eax, [ebp - 0x10]
call fcn.00402665
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401143
mov al, 1
jmp 0x401cbf
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401143
xor al, al
call fcn.00406785
ret
Function at 0x401cc5
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push 0x21c
mov eax, 0x406a01
call fcn.0040674f
or dword [ebp - 0x21c], 0xffffffff
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x216]
push ebx
push eax
mov esi, ecx
mov word [ebp - 0x218], bx
call sub.msvcrt.dll_memset
mov eax, dword [esi + 0x20]
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
push ebx
push 0x4074a8
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x401e08
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004025e0
lea eax, [ebp - 0x220]
push eax
add esi, 0x10
mov dword [ebp - 4], ebx
call fcn.0040280f
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
call fcn.00401143
push 0x4073fc
push 0x66
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x401e08
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x401e08
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
mov dword [ebp - 0x220], eax
je 0x401e08
push ebx
push ebx
push 4
push ebx
push ebx
push 0xc0000000
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x21c], eax
je 0x401e08
push dword [ebp - 0x21c]
xor eax, eax
lea edi, [ebp - 0x228]
stosd dword es:[edi], eax
push esi
push ebx
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 0x220]
push eax
call fcn.004020b4
test eax, eax
pop ecx
pop ecx
jne 0x401df5
push ebx
push ebx
push dword [ebp - 0x224]
push dword [ebp - 0x228]
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x401e08
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x21c], 0xffffffff
mov eax, dword [ebp - 0x21c]
call fcn.00406799
ret
Function at 0x401e14
Capabilities:
Copy file

Disassembly:
push 0x14
mov eax, 0x406ae5
call fcn.0040671c
mov eax, dword [0x4096e8]
mov ecx, 0x4096e8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
or dword [ebp - 0x18], 0xffffffff
lea eax, [ebp - 0x14]
mov edi, 0x104
push edi
mov esi, eax
mov dword [ebp - 0x20], eax
call fcn.00402c05
push edi
push eax
push 0
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.004028bc
test esi, esi
je 0x401ed0
cmp esi, edi
ja 0x401ed0
push dword [ebx + 0x1c]
lea eax, [ebp - 0x10]
push eax
call fcn.004025e0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
mov esi, dword [eax - 0xc]
mov edi, 0x4073b4
mov ecx, edi
call fcn.00402c2b
lea eax, [eax + esi + 1]
push eax
lea esi, [ebp - 0x10]
call fcn.00402c05
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, dword [ebp - 0x10]
call fcn.00402c2b
mov edx, esi
call fcn.00402c40
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x401ee3
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401143
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00401143
xor al, al
call fcn.00406785
ret
lea eax, [ebp - 0x10]
push eax
lea esi, [ebx + 0x10]
call fcn.0040280f
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401143
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00401143
mov al, 1
jmp 0x401edd
Function at 0x4031ff
Capabilities:
Delete file

Disassembly:
push esi
xor esi, esi
cmp dword [edi + 0x10], esi
je 0x403222
test esi, esi
jl 0x403236
cmp esi, dword [edi + 0x10]
jge 0x403236
mov eax, dword [edi + 0xc]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc esi
cmp esi, dword [edi + 0x10]
jne 0x403207
lea esi, [edi + 0xc]
call fcn.00402887
mov eax, dword [edi + 4]
sub eax, 0x10
pop esi
jmp fcn.00401143
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]