joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cc58
Capabilities:
Delete file
Enumerate files on windows
Get common file path

Disassembly:
mov eax, 0x42973f
call fcn.0041e1f0
sub esp, 0x5c0
and byte [ebp - 0x5cc], 0
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x5cb]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x5cc]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0xf]
push 1
push eax
lea eax, [ebp - 0x5cc]
push eax
lea ecx, [ebp - 0x64]
call fcn.00410a13
and dword [ebp - 4], 0
mov eax, 0x430b30
mov ecx, eax
mov dword [ebp - 0x3c], 0x42b630
test ecx, ecx
mov dword [ebp - 0x1c], 0x42b628
jne 0x40cccc
mov eax, 0x4379c4
lea ecx, [ebp - 0xd]
push 0
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.00410ebb
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x64]
push eax
mov byte [ebp - 4], 1
call fcn.00410ac9
and byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.0040ba41
or edi, 0xffffffff
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x1cc]
lea ecx, [ebp - 0x64]
push eax
mov byte [ebp - 4], 2
call fcn.0041167c
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, edi
je 0x40cdc3
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x1c0]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jg 0x40cda6
lea eax, [ebp - 0xd]
push 1
push eax
lea eax, [ebp - 0x5cc]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00410a13
lea eax, [ebp - 0xe]
push 1
push eax
lea eax, [ebp - 0x1a0]
push eax
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 3
call fcn.00410a13
lea eax, [ebp - 0x8c]
lea ecx, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 4
call fcn.00410ac9
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 3
call fcn.0040ba41
lea ecx, [ebp - 0x3c]
call fcn.0041167c
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.0040ba41
lea eax, [ebp - 0x1cc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40cd24
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], edi
call fcn.0040ba41
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40e2b4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe20
and byte [ebp - 0x20], 0
push ebx
push esi
push edi
mov ebx, ecx
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1f]
and byte [ebp - 0x620], 0
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
push 0x7f
xor eax, eax
pop ecx
lea edi, [ebp - 0x61f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x20]
push eax
push str.Msi.DLL
call fcn.00417829
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call fcn.0041810f
add esp, 0x14
test eax, eax
jge 0x40e4d5
mov ecx, ebx
call fcn.00401046
mov edi, eax
mov ecx, edi
call fcn.0041437c
mov ecx, edi
mov esi, eax
call fcn.00415cf4
test eax, eax
je 0x40e338
mov eax, str.SupportOSMsi30
jmp 0x40e34d
mov ecx, edi
call fcn.00415cd7
test eax, eax
mov eax, str.SupportOSMsi12
jne 0x40e34d
mov eax, str.SupportOS
push edi
push eax
call fcn.00418d54
pop ecx
test eax, eax
pop ecx
je 0x40e3fc
cmp dword [esi], 2
jne 0x40e3f5
call fcn.0041843e
test eax, eax
jne 0x40e388
mov eax, 0x4b2
push eax
mov dword [0x437e5c], eax
call fcn.0041760f
pop ecx
push 1
jmp 0x40e4d7
and byte [ebp - 0x420], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x41f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x420]
mov esi, 0x400
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40e3ca
lea eax, [ebp - 0x420]
mov ecx, ebx
push eax
call fcn.0040dfc2
test eax, eax
je 0x40e3ee
lea eax, [ebp - 0x420]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x40e3f5
lea eax, [ebp - 0x420]
mov ecx, ebx
push eax
call fcn.0040dfc2
test eax, eax
jne 0x40e3f5
push 2
jmp 0x40e4d7
xor eax, eax
jmp 0x40e4d8
cmp dword [esi + 0x14], 2
jne 0x40e408
cmp dword [esi + 8], 4
je 0x40e413
mov ecx, edi
call fcn.00415cf4
test eax, eax
je 0x40e421
mov ecx, edi
call fcn.00415c9e
push 3
jmp 0x40e4d7
mov esi, 0x400
lea eax, [ebp - 0xe20]
push esi
push eax
push 0x434e90
lea ecx, [edi + 0x4428]
push dword [0x42b5e4]
push dword [0x42b5dc]
call fcn.00401d30
cmp byte [ebp - 0xe20], 0x79
je 0x40e4d0
cmp byte [ebp - 0xe20], 0x59
je 0x40e4d0
and byte [ebp - 0x420], 0
mov ebx, 0xff
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x41f]
mov edx, 0x4b7
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x420]
push esi
push eax
push edx
mov dword [0x437e5c], edx
call fcn.004176ef
and byte [ebp - 0xa20], 0
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0xa1f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0xc
stosb byte es:[edi], al
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0xa20]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0xa20]
push eax
call fcn.004174b7
add esp, 0x10
or eax, 0xffffffff
jmp 0x40e4d8
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40e4df
Capabilities:
Query or enumerate registry value
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
and byte [ebp - 0x108], 0
push ebx
push esi
push edi
mov esi, ecx
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
mov ebx, dword [ebp + 0xc]
rep stosd dword es:[edi], eax
and dword [ebx], 0
and byte [ebp + 0xf], 0
stosw word es:[edi], ax
mov ecx, esi
stosb byte es:[edi], al
call fcn.00401046
add eax, 0xac
push eax
push str.2.0.2600.0
call fcn.0041810f
pop ecx
test eax, eax
pop ecx
jge 0x40e535
push dword [ebp + 8]
push str.__s___q
jmp 0x40e55a
mov ecx, esi
mov byte [ebp + 0xf], 1
call fcn.00401046
mov ecx, eax
call fcn.00415cf4
push dword [ebp + 8]
test eax, eax
je 0x40e555
push str.__s___quiet__norestart
jmp 0x40e55a
push str.__s___c:_msiinst__delayrebootq_
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov ecx, esi
call fcn.00401046
mov ecx, eax
call fcn.00415cf4
test eax, eax
je 0x40e594
mov ecx, esi
call fcn.00401046
push eax
lea eax, [ebp - 0x108]
push 1
push eax
call fcn.00418922
jmp 0x40e5a2
lea eax, [ebp - 0x108]
push 1
push eax
call fcn.00418219
mov edi, eax
xor esi, esi
cmp edi, esi
je 0x40e659
cmp edi, 0xbc2
je 0x40e5d0
push esi
push edi
mov dword [0x437e5c], 0x484
call fcn.00417529
pop ecx
mov eax, edi
pop ecx
jmp 0x40e65b
cmp byte [ebp + 0xf], 0
je 0x40e653
push 0x20019
push str.SoftwareMicrosoftWindowsCurrentVersionInstaller
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp + 8]
mov dword [ebx], 2
mov dword [ebp + 8], esi
call fcn.00409e71
test eax, eax
jne 0x40e643
and byte [ebp - 0x20c], al
push 0x40
pop ecx
lea edi, [ebp - 0x20b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 4]
push eax
push esi
push str.InstallerLocation
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp dword [ebp + 8], esi
je 0x40e659
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40e659
mov dword [ebx], 1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40f94a
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push ebx
push esi
push edi
push str.31EE4FE8_7F9C_11D5_ABB8_00B0D02332EB
lea eax, [ebp - 0x80c]
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_s
push eax
xor ebx, ebx
xor edi, edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 8]
mov esi, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push 0xf003f
push ebx
push ebx
lea eax, [ebp - 0x80c]
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40f9b6
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 0x80c]
push eax
push esi
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 8], ebx
sete byte [ebp - 1]
cmp edi, ebx
je 0x40f9c8
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40fd25
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x429986
call fcn.0041e1f0
sub esp, 0x18c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x12]
mov ebx, 0x42b630
mov esi, 0x42b628
push edi
push eax
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], 1
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x4c], esi
call fcn.00410db3
push dword [ebp + 0xc]
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 2
push eax
call fcn.0040ff2c
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0041167c
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], edi
push ecx
push 0x20019
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x40fdae
lea ecx, [ebp - 0x10]
call fcn.00408daa
mov ecx, dword [ebp + 0xc]
cmp eax, edi
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
sete byte [ebp + 0xf]
call fcn.0040ba41
cmp byte [ebp + 0xf], 0
je 0x40fee4
and byte [ebp - 0x198], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x197]
and dword [ebp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x104
push eax
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp + 0xc]
push eax
push 0
push str.Version
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40fe2e
mov edi, dword [ebp + 8]
lea eax, [ebp + 0xf]
push 0
push eax
mov ecx, edi
mov dword [edi], ebx
mov dword [edi + 0x20], esi
call fcn.00410db3
mov dword [ebp - 0x18], 1
jmp 0x40ff00
lea eax, [ebp + 0xf]
push 1
push eax
lea eax, [ebp - 0x198]
push eax
lea ecx, [ebp - 0x44]
call fcn.00410a13
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x6c]
push eax
mov byte [ebp - 4], 4
call fcn.00410198
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.0040ba41
mov eax, 0x431034
mov dword [ebp - 0x44], ebx
mov ecx, eax
mov dword [ebp - 0x24], esi
test ecx, ecx
mov edi, 0x4379c4
jne 0x40fe77
mov eax, edi
lea ecx, [ebp + 0xf]
push 0
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.00410ebb
mov eax, 0x431030
mov byte [ebp - 4], 5
mov ecx, eax
mov dword [ebp - 0x94], ebx
test ecx, ecx
mov dword [ebp - 0x74], esi
jne 0x40fea0
mov eax, edi
lea ecx, [ebp - 0x11]
push 0
push ecx
push eax
lea ecx, [ebp - 0x94]
call fcn.00410ebb
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 6
call fcn.00410c1f
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 5
call fcn.0040ba41
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.0040ba41
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x6c]
push 0
push eax
mov ecx, edi
mov dword [edi], ebx
mov dword [edi + 0x20], esi
call fcn.00410e28
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.0040ba41
cmp dword [ebp - 0x10], 0
je 0x40ff1b
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x412fed
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
and dword [ebp - 0x14], 0
push esi
push edi
mov edi, ecx
call fcn.0040105f
push 1
lea eax, [ebp - 0xd0]
pop esi
mov dword [ebp - 0xd0], 0x94
push eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 4], eax
sub eax, 0
mov dword [ebp - 8], ecx
je 0x41309d
dec eax
je 0x413092
dec eax
jne 0x4130a4
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x18], 2
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x3c]
push 4
dec eax
pop ecx
je 0x413082
dec eax
je 0x413079
dec eax
jne 0x413085
mov dword [ebp - 0x18], 5
jmp 0x413085
mov dword [ebp - 0x18], 3
jmp 0x413085
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0xcc], ecx
jb 0x4130a4
mov dword [ebp - 0x14], esi
jmp 0x4130a4
movzx eax, cx
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], eax
jmp 0x4130a4
mov dword [ebp - 0x18], 7
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.00401046
mov ecx, eax
call fcn.00414383
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x413479
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov eax, edx
dec edx
test eax, eax
je 0x4134b3
mov eax, dword [ecx + 0x70]
push esi
lea esi, [edx + 1]
mov edx, dword [ebp + 8]
push edi
mov ecx, dword [ebp + 0x10]
movzx edi, byte [edx]
and ecx, 0xff
xor ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 8
mov ecx, dword [eax + ecx*4]
inc edx
xor edi, ecx
dec esi
mov dword [ebp + 0x10], edi
jne 0x413491
pop edi
pop esi
mov eax, dword [ebp + 0x10]
pop ebp
ret 0xc
Function at 0x4155a9
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41565f
lea eax, [ebp - 0x118]
push 0xff
push eax
push dword [ebp + 0xc]
call fcn.004176ef
add esp, 0xc
cmp dword [ebp + 0xc], 0x452
jne 0x41564f
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x41560b
lea eax, [ebp - 0x118]
push 0x43025c
push eax
call fcn.0041f290
pop ecx
test eax, eax
pop ecx
jne 0x415627
mov eax, 0x486
push eax
mov dword [0x437e5c], eax
call fcn.0041760f
pop ecx
push dword [0x437e5c]
call fcn.0041f194
lea eax, [ebp - 0x18]
push eax
push 0
call fcn.004188bf
pop ecx
lea eax, [ebp - 0x18]
pop ecx
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
leave
ret 8
Function at 0x41592f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
mov esi, str.SetupBitmapCls
push edi
lea eax, [ebp - 0x14]
push esi
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 4
xor ebx, ebx
pop eax
mov dword [ebp - 0x54], 3
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov eax, dword [edi + 0x48b4]
push 0x7f00
push ebx
mov dword [ebp - 0x50], 0x415a87
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x7c]
push eax
push esi
push dword [edi + 0x48b4]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
call dword [sym.imp.USER32.dll_GetClassInfoA]
test eax, eax
jne 0x4159b2
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
je 0x415a54
push 0xd0
call fcn.0041d7f8
mov esi, eax
pop ecx
cmp esi, ebx
je 0x415a54
mov eax, dword [ebp + 8]
push 1
pop ecx
mov dword [esi + 4], ecx
mov edx, dword [eax]
mov dword [esi], edx
mov edx, dword [eax + 4]
mov dword [esi + 8], edx
mov eax, dword [eax]
mov dword [esi + 0x78], eax
lea eax, [ebp - 0x2c]
push eax
push 0x18
push dword [esi]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], ebx
call dword [sym.imp.GDI32.dll_GetObjectA]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
call ebx
sub eax, dword [ebp - 0x28]
push 1
cdq
sub eax, edx
sar eax, 1
mov dword [ebp + 8], eax
call ebx
sub eax, dword [ebp - 0x24]
push esi
push dword [edi + 0x48b4]
xor ecx, ecx
cdq
push ecx
push ecx
push dword [ebp - 0x24]
sub eax, edx
sar eax, 1
push dword [ebp - 0x28]
mov dword [edi + 0x4474], ecx
push eax
push dword [ebp + 8]
push 0x86000000
push str.SetupBitmapWin
push str.SetupBitmapCls
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ebx, eax
test ebx, ebx
jne 0x415a58
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x415a80
push esi
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 5
push ebx
mov dword [edi + 0x4474], ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 0x4474]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x415e15
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x429fbe
call fcn.0041e1f0
sub esp, 0x4a4
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x4af]
mov byte [ebp - 0x4b0], bl
push 0x400
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x4b0]
lea ecx, [esi + 0x4428]
push eax
push 0x434e90
push str.ClickOncePackage
push str.Startup
call fcn.00401d30
cmp byte [ebp - 0x4b0], bl
jne 0x415e79
xor eax, eax
jmp 0x415f79
push 1
lea eax, [ebp - 0xe]
pop edi
mov ecx, esi
push edi
push eax
call fcn.00414429
push eax
lea ecx, [ebp - 0x38]
call fcn.00410a13
lea eax, [ebp - 0xd]
push edi
push eax
lea eax, [ebp - 0x4b0]
push eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], ebx
call fcn.00410a13
push ebx
lea eax, [ebp - 0x88]
push ebx
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.00416013
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
push ecx
lea ecx, [ebp - 0xb0]
push ecx
mov ecx, eax
call fcn.00415f88
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.00410198
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 2
call fcn.0040ba41
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 1
call fcn.0040ba41
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], bl
call fcn.0040ba41
lea ecx, [ebp - 0x38]
call fcn.0041167c
push eax
call fcn.00418001
test eax, eax
jne 0x415f4a
lea eax, [ebp - 0xd]
push edi
push eax
lea eax, [ebp - 0x4b0]
push eax
lea ecx, [ebp - 0x60]
call fcn.00410a13
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x38]
push eax
mov byte [ebp - 4], 4
call fcn.00410198
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], bl
call fcn.0040ba41
push edi
push ebx
push ebx
lea ecx, [ebp - 0x38]
call fcn.0041167c
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x20
pop ecx
cmp ecx, eax
lea ecx, [ebp - 0x38]
sbb esi, esi
or dword [ebp - 4], 0xffffffff
neg esi
call fcn.0040ba41
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x416af3
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x42a0c6
call fcn.0041e1f0
push ecx
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
lea eax, [esi + 0x120]
mov dword [esi + 0x108], edi
mov dword [esi + 0x10c], edi
mov byte [esi + 0x110], 1
mov dword [esi + 0x118], edi
mov dword [ebp - 0x14], esi
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
push dword [ebp + 8]
lea eax, [esi + 4]
mov dword [ebp - 4], edi
mov dword [esi], 0x42bed8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, esi
call fcn.0041705e
push edi
push 0x80
push 3
push edi
push 3
push SysReAllocString
push dword [ebp + 8]
mov dword [esi + 0x114], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x108], eax
jne 0x416b87
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x118], eax
jmp 0x416c0a
push 0x2e
mov dword [esi + 0x10c], 1
call fcn.0041d7f8
push 0x2e
push edi
push eax
mov dword [esi + 0x11c], eax
call fcn.0041dd00
add esp, 0x10
mov ecx, esi
push edi
push edi
push dword [esi + 0x114]
push dword [esi + 0x108]
call fcn.004172ec
test eax, eax
je 0x416c0a
lea eax, [ebp - 0x10]
push edi
push eax
push 0x2e
push dword [esi + 0x11c]
push dword [esi + 0x108]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x416c0a
cmp dword [ebp - 0x10], edi
je 0x416c0a
mov ecx, esi
call fcn.00416ca6
test eax, eax
je 0x416c0a
mov eax, dword [esi + 0x11c]
mov ax, word [eax + 0xe]
cmp ax, di
je 0x416c0a
movzx eax, ax
push eax
mov ecx, esi
call fcn.00416fda
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x416d99
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
xor ebx, ebx
cmp dword [ecx + 0x10c], ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
je 0x416de8
cmp dword [ebp + 8], ebx
je 0x416de8
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, 0x80
push ebx
push edi
push 3
push ebx
push 3
add ecx, 4
push SysReAllocString
push ecx
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
jne 0x416df1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x118], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10
mov ecx, dword [ebp - 0x14]
push ebx
push ebx
push dword [ebp + 0xc]
push eax
call fcn.004172ec
test eax, eax
je 0x416de8
push ebx
push edi
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0x10]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
jne 0x416e35
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x14]
push dword [ebp - 0x18]
mov dword [ecx + 0x118], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x416de8
mov edi, dword [ebp + 8]
mov eax, 0x400
mov dword [ebp - 0xc], eax
mov esi, dword [edi + 0x10c]
cmp esi, eax
mov dword [ebp - 0x14], esi
jae 0x416e50
mov dword [ebp - 0xc], esi
push dword [ebp - 0xc]
call fcn.0041d7f8
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x104]
test al, 6
pop ecx
mov byte [ebp + 0xf], bl
je 0x416e6d
mov byte [ebp + 0xf], 1
mov edi, dword [ebp + 0x14]
shr al, 2
and al, 1
cmp edi, ebx
mov byte [ebp - 1], al
je 0x416e84
mov eax, dword [edi]
push esi
push ebx
mov ecx, edi
call dword [eax]
lea eax, [ebp - 8]
push ebx
push eax
mov dword [ebp - 0x20], esi
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp + 0x14], ebx
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call esi
test eax, eax
je 0x416f14
cmp byte [ebp - 1], bl
je 0x416ebf
cmp byte [ebp + 0xf], bl
je 0x416ebf
push dword [ebp + 8]
push dword [ebp - 8]
push dword [ebp - 0x10]
call fcn.004013bf
add esp, 0xc
lea eax, [ebp - 8]
push ebx
push eax
push dword [ebp - 8]
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 8]
add dword [ebp + 0x14], eax
cmp edi, ebx
je 0x416ee9
push dword [ebp - 0x20]
mov eax, dword [edi]
mov ecx, edi
push dword [ebp + 0x14]
call dword [eax]
mov eax, dword [ebp - 8]
sub dword [ebp - 0x14], eax
je 0x416f14
cmp eax, ebx
je 0x416f14
cmp dword [ebp - 0x14], 0x400
jae 0x416f04
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push ebx
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x18]
jmp 0x416e9e
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 0x1c]
call esi
cmp byte [ebp - 1], bl
jne 0x416f44
cmp byte [ebp + 0xf], bl
je 0x416f44
push dword [ebp + 8]
push dword [ebp + 0x10]
call fcn.0040141d
pop ecx
pop ecx
push dword [ebp - 0x10]
call fcn.0040729e
pop ecx
push 1
pop eax
jmp 0x416dea