joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42060a
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
push 0x47f02c
lea ecx, [ebp - 0x10]
call fcn.0041c87f
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
dec eax
push eax
call fcn.0041c9c9
cmp al, 0x5c
je 0x42063b
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.0041c9de
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push str.Microsoft.NETFramework_
lea ecx, [ebp - 0x10]
call fcn.0041ca2d
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x28]
call fcn.0041c87f
push ebx
push 0x42cfa4
lea ecx, [ebp - 0x28]
call fcn.0041ca2d
push 0x140
lea eax, [ebp - 0x168]
push ebx
push eax
call fcn.00425010
add esp, 0xc
lea eax, [ebp - 0x168]
lea ecx, [ebp - 0x28]
push eax
call fcn.0041d704
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x420778
test byte [ebp - 0x168], 0x10
je 0x420754
cmp byte [ebp - 0x13c], 0x2e
je 0x420754
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x1c]
push eax
call fcn.0041c87f
lea eax, [ebp - 0x13c]
push ebx
push eax
lea ecx, [ebp - 0x1c]
call fcn.0041ca2d
push ebx
push str._system.dll
lea ecx, [ebp - 0x1c]
call fcn.0041ca2d
lea ecx, [ebp - 0x1c]
call fcn.0041d704
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42074c
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 4
jb 0x42074c
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x26b]
mov byte [ebp - 0x26c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x139]
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.00425b90
cmp byte [ebp - 0x26c], 0x31
pop ecx
pop ecx
je 0x420769
cmp byte [ebp - 0x26c], 0x30
jne 0x42074c
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x1c]
call fcn.0041c8e1
lea eax, [ebp - 0x168]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jmp 0x42069c
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 1
call fcn.0041c8e1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x28]
call fcn.0041c8e1
lea ecx, [ebp - 0x10]
call fcn.0041c8e1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x420797
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
and byte [ebp - 0x408], 0
push esi
push edi
push 0x7f
pop ecx
xor eax, eax
lea edi, [ebp - 0x407]
and byte [ebp - 0x208], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x7f
xor eax, eax
pop ecx
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
mov esi, dword [ebp + 8]
push 0x104
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x408]
mov dword [ebp + 8], esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x4207f3
mov eax, esi
jmp 0x42097e
lea eax, [ebp - 0x408]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
lea eax, [ebp - 0x208]
push eax
call ebx
lea eax, [ebp - 0x208]
push str.d3d8.dll
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.00420455
pop ecx
pop ecx
push 4
test eax, eax
pop edi
jl 0x42089c
mov eax, dword [ebp - 4]
mov esi, 0x371
mov ecx, eax
shr ecx, 0x10
cmp cx, di
jne 0x420869
push esi
push 1
push 8
push edi
call fcn.004204f4
push edx
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00420513
add esp, 0x20
test eax, eax
jge 0x420895
mov eax, dword [ebp - 4]
shr eax, 0x10
cmp ax, 5
jne 0x42089c
push esi
push 0xa28
push 1
push 5
call fcn.004204f4
push edx
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00420513
add esp, 0x20
test eax, eax
jl 0x42089c
mov dword [ebp + 8], 0x10008
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x208]
push eax
call ebx
lea eax, [ebp - 0x208]
push str.dpnet.dll
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.00420455
pop ecx
test eax, eax
pop ecx
jl 0x42093b
mov eax, dword [ebp - 4]
mov esi, 0x86
mov ecx, eax
shr ecx, 0x10
cmp cx, di
jne 0x420908
push esi
push 0
push 9
push edi
call fcn.004204f4
push edx
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00420513
add esp, 0x20
test eax, eax
jge 0x420934
mov eax, dword [ebp - 4]
shr eax, 0x10
cmp ax, 5
jne 0x42093b
push esi
push 0xe5d
push 2
push 5
call fcn.004204f4
push edx
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00420513
add esp, 0x20
test eax, eax
jl 0x42093b
mov dword [ebp + 8], 0x20008
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x208]
push eax
call ebx
lea eax, [ebp - 0x208]
push str.d3d9.dll
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.00420455
pop ecx
pop ecx
pop ebx
test eax, eax
jl 0x42097b
mov dword [ebp + 8], 9
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret
Function at 0x420bda
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov dword [ebp - 0x14], ecx
xor esi, esi
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
call fcn.0041c7ab
push 0x13c
call fcn.004258e9
cmp eax, esi
pop ecx
je 0x420c25
push 0x1a
lea esi, [eax + 4]
pop ecx
mov edi, esi
mov dword [eax], ecx
mov ebx, ecx
mov ecx, edi
call fcn.0041c7ab
add edi, 0xc
dec ebx
jne 0x420c11
mov dword [ebp - 8], esi
xor esi, esi
jmp 0x420c28
mov dword [ebp - 8], esi
cmp dword [ebp - 8], esi
je 0x420c46
push esi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
call esi
mov ebx, eax
push ebx
call fcn.004258e9
mov edi, eax
pop ecx
test edi, edi
jne 0x420c51
inc dword [0x47f338]
jmp 0x420df7
push edi
push ebx
call esi
push str._HD_space_placeholder_
lea ecx, [ebp - 0x4c]
mov esi, edi
call fcn.0041c81b
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x4c]
push eax
call fcn.0041f94e
cmp byte [edi], 0
je 0x420d43
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push esi
call fcn.0041c8f8
mov ecx, dword [ebp - 4]
call fcn.0041d704
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x420d29
inc dword [ebp - 0xc]
push str.
lea ecx, [ebp - 0x28]
call fcn.0041c8f8
push dword [ebp - 4]
lea ecx, [ebp - 0x28]
call fcn.0041caab
push 9
lea ecx, [ebp - 0x28]
call fcn.0041c9de
mov ecx, dword [ebp - 4]
push 1
call fcn.0041d704
push eax
call fcn.0040e6f4
mov ebx, edx
pop ecx
cmp ebx, dword [0x47f6c4]
pop ecx
mov dword [ebp - 0x1c], eax
ja 0x420cf1
jb 0x420cee
cmp eax, dword [0x47f6c0]
jae 0x420cf1
inc dword [ebp - 0x10]
lea ecx, [ebp - 0x34]
call fcn.0041c7ab
lea eax, [ebp - 0x34]
push eax
push ebx
push dword [ebp - 0x1c]
call fcn.0041e3e7
add esp, 0xc
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x28]
push eax
call fcn.0041caab
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
push eax
call fcn.0041f94e
lea ecx, [ebp - 0x34]
call fcn.0041c8e1
add dword [ebp - 4], 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esi + eax + 1], 0
lea esi, [esi + eax + 1]
jne 0x420c7f
push edi
call fcn.004258de
pop ecx
mov ecx, dword [ebp - 8]
push 3
call fcn.00419aae
push 0x47fab4
lea ecx, [ebp - 0x28]
call fcn.0041c966
xor esi, esi
lea ecx, [ebp - 0x28]
push esi
push 0x42e9a8
call fcn.0041ca2d
lea ecx, [ebp - 0x40]
call fcn.0041c7ab
lea eax, [ebp - 0x40]
push eax
push dword [0x47f6c4]
push dword [0x47f6c0]
call fcn.0041e3e7
add esp, 0xc
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
call fcn.0041caab
push 9
lea ecx, [ebp - 0x28]
call fcn.0041c9de
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x10], eax
jne 0x420dbc
inc dword [0x47f330]
push 0x47f94c
jmp 0x420dc1
push 0x47f964
lea ecx, [ebp - 0x28]
call fcn.0041caab
push 1
push esi
push esi
lea ecx, [ebp - 0x28]
call fcn.0041d704
push eax
lea ecx, [ebp - 0x4c]
call fcn.0041d704
mov ecx, dword [ebp - 0x14]
push eax
call fcn.0041d5df
lea ecx, [ebp - 0x40]
call fcn.0041c8e1
lea ecx, [ebp - 0x4c]
call fcn.0041c8e1
lea ecx, [ebp - 0x28]
call fcn.0041c8e1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x420e04
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push 0x24
lea eax, [ebp - 0x30]
push 0
mov esi, ecx
push eax
call fcn.00425010
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x47fb50
lea ecx, [ebp - 0xc]
call fcn.0041c87f
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
push 0x42e9cc
push eax
call fcn.0041ce4d
add esp, 0xc
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.0041f94e
lea ecx, [ebp - 0xc]
call fcn.0041c8e1
pop esi
leave
ret
Function at 0x422a08
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
xor ebx, ebx
cmp dword [0x47f20c], ebx
je 0x422a27
push ebx
push dword [ebp + 8]
call fcn.004227d2
jmp 0x422b6f
push esi
mov esi, 0x104
push edi
push esi
call fcn.004258e9
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x422a4c
mov ecx, 0x47f994
call fcn.0041d704
push eax
call fcn.0041e30a
pop ecx
push esi
push ebx
push edi
call fcn.00425010
add esp, 0xc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call ebx
cmp byte [eax + edi - 1], 0x5c
je 0x422a76
push edi
call ebx
mov byte [eax + edi], 0x5c
push str.wininit.ini
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x10]
call fcn.0041c7ab
push 0
push 0
push edi
lea ecx, [ebp - 0x10]
call fcn.0041d4ab
test eax, eax
jle 0x422b5e
push str.NUL
lea ecx, [ebp - 0x1c]
call fcn.0041c81b
push esi
call fcn.004258e9
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x422aca
mov ecx, 0x47f994
call fcn.0041d704
push eax
call fcn.0041e30a
pop ecx
push esi
push 0
push ebx
call fcn.00425010
add esp, 0xc
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
xor esi, esi
lea ecx, [ebp - 0x1c]
push esi
push ebx
call fcn.0041ca2d
push ebx
call fcn.004258de
pop ecx
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x28]
xor ebx, ebx
call fcn.0041c7ab
push dword [ebp - 4]
lea ecx, [ebp - 0x10]
call fcn.0041d3b8
test al, al
je 0x422b4e
lea eax, [ebp - 0x1c]
push esi
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x10]
call fcn.0041d315
mov ecx, eax
call fcn.0041cb5c
test al, al
jne 0x422b36
mov ebx, dword [ebp - 4]
push ebx
jmp 0x422b04
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x10]
sub eax, ebx
push eax
push ebx
call fcn.0041cd8f
push edi
lea ecx, [ebp - 0x10]
call fcn.0041d7f4
lea ecx, [ebp - 0x28]
call fcn.0041c8e1
lea ecx, [ebp - 0x1c]
call fcn.0041c8e1
push edi
call fcn.004258de
pop ecx
lea ecx, [ebp - 0x10]
call fcn.0041c8e1
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x422bed
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov edx, ecx
xor cl, cl
cmp byte [edx + 0x93], cl
lea eax, [edx + 0x93]
je 0x422c3d
push edi
push 0x40
mov byte [eax], cl
mov byte [ebp - 0x104], cl
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
mov ecx, edx
push eax
call fcn.00423583
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
leave
ret
Function at 0x422f3f
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
cmp dword [0x47f5b0], ebx
push edi
mov edi, dword [eax + 0x34]
jle 0x422f7f
mov esi, 0x47f5a4
push ebx
mov ecx, esi
call fcn.0041f2e9
cmp eax, edi
je 0x422f74
inc ebx
inc ebx
cmp ebx, dword [0x47f5b0]
jl 0x422f5c
jmp 0x422f7f
inc ebx
mov ecx, esi
push ebx
call fcn.0041f2e9
mov edi, eax
xor esi, esi
cmp dword [0x47f59c], esi
jle 0x423020
push esi
mov ecx, 0x47f590
call fcn.0041f2e9
cmp dword [eax], edi
je 0x422fa7
inc esi
cmp esi, dword [0x47f59c]
jl 0x422f8d
jmp 0x423020
add eax, 4
xor esi, esi
cmp eax, esi
je 0x423020
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
mov ecx, eax
call fcn.0041d704
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x423020
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0xc
mov dword [ebp + 8], eax
call fcn.004258e9
cmp eax, esi
pop ecx
je 0x422ff7
mov ecx, eax
call fcn.0041c7ab
mov ebx, eax
jmp 0x422ff9
xor ebx, ebx
push dword [ebp + 8]
mov ecx, ebx
call fcn.0041d042
cmp eax, esi
jne 0x423029
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, esi
je 0x423020
mov ecx, ebx
call fcn.0041c8e1
push ebx
call fcn.004258de
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
lea ecx, [ebp - 4]
push esi
push ecx
mov dword [ebp - 4], esi
push dword [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
je 0x42300e
mov eax, dword [ebp + 8]
cmp dword [ebp - 4], eax
jne 0x42300e
mov eax, ebx
jmp 0x423022

Function at 0x4234a5
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
xor esi, esi
cmp dword [0x47f5fc], esi
push edi
mov edi, 0x104
jbe 0x423532
lea eax, [ebp - 4]
mov ecx, 0x47f5fc
push eax
push 0x20019
push esi
call fcn.0041d704
push eax
push dword [0x47f5f8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x423532
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 0x10c]
push eax
push esi
push esi
push str.Uninstaller
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x423529
lea eax, [ebp - 0x10c]
push eax
call fcn.0040e7f9
test al, al
pop ecx
je 0x423529
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x42357b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00425010
add esp, 0xc
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
cmp byte [eax + esi - 1], 0x5c
je 0x42355f
push esi
call edi
mov byte [eax + esi], 0x5c
mov ecx, 0x47f3cc
call fcn.0041d704
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push eax
push esi
call edi
push str._Uninstaller.exe
push esi
call edi
pop edi
mov al, 1
pop esi
leave
ret 4
Function at 0x4237ba
Capabilities:
Copy file
Delete directory
Delete file
Get file size
Set current directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
push edi
mov esi, ecx
push 0x42ec50
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test byte [0x47f1fc], 0x40
jne 0x423947
test byte [0x47f202], 2
jne 0x423947
xor ebx, ebx
cmp byte [esi + 0x90], bl
je 0x42382a
lea eax, [ebp - 0x11c]
mov ecx, esi
push eax
call fcn.00423583
lea eax, [ebp - 0x11c]
mov ecx, 0x47f028
push eax
push 1
call fcn.0041600f
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4238eb
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000000
mov ecx, esi
call fcn.0041d704
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push ebx
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp edi, 0xffffffff
mov dword [ebp - 8], eax
je 0x42393e
cmp eax, ebx
je 0x42393e
lea ecx, [ebp - 0x18]
mov byte [esi + 0x92], 1
call fcn.0041c7ab
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.00422c3f
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0xc]
push ebx
push eax
lea ecx, [ebp - 0x18]
push dword [ebp - 0x18]
call fcn.0041d704
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
call edi
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 8]
push 4
push eax
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.0041d704
push eax
push 1
mov ecx, 0x47f028
call fcn.0041600f
mov ecx, esi
call fcn.0041d704
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x18]
call fcn.0041c8e1
cmp dword [0x47f6f8], ebx
jbe 0x423936
lea eax, [ebp - 0x11c]
mov ecx, esi
push eax
call fcn.004234a5
lea eax, [ebp - 0x11c]
mov esi, 0x47f6f8
push ebx
push eax
mov ecx, esi
call fcn.0041d704
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, esi
call fcn.0041d704
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x42f138
mov ecx, esi
call fcn.0041c8f8
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x423936
xor ebx, ebx
push 1
cmp byte [esi + 0x90], bl
jne 0x423938
pop edi
push ebx
push dword [esi + 0x20]
call fcn.0040e7c6
pop ecx
pop ecx
cmp eax, ebx
je 0x42397a
push eax
call fcn.0040e106
mov eax, edi
inc edi
push eax
push dword [esi + 0x20]
call fcn.0040e7c6
add esp, 0xc
jmp 0x42395f
push 1
pop edi
push ebx
push dword [esi + 0x38]
call fcn.0040e7c6
pop ecx
cmp eax, ebx
pop ecx
je 0x423936
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, edi
inc edi
push eax
jmp 0x42397e
Function at 0x423999
Capabilities:
Copy file
Delete file
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
test byte [0x47f202], 2
push esi
mov esi, ecx
mov dword [ebp - 4], esi
je 0x4239c1
test byte [0x47f1fc], 0x40
jne 0x4239c1
mov al, 1
jmp 0x423afe
lea eax, [ebp - 0x11c]
mov ecx, esi
push eax
call fcn.00423583
lea eax, [ebp - 0x11c]
push eax
call fcn.0040e7f9
test al, al
pop ecx
je 0x4239f0
lea eax, [ebp - 0x11c]
mov ecx, esi
push eax
call fcn.00422a08
jmp 0x4239f9
test byte [0x47f1fc], 0x40
je 0x423a05
mov ecx, esi
call fcn.00423b03
jmp 0x423afe
push ebx
push edi
lea ecx, [ebp - 0x18]
call fcn.0041c7ab
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.00422c3f
xor ebx, ebx
lea eax, [ebp - 0x11c]
push ebx
push eax
mov ecx, esi
call fcn.0041d704
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, esi
call fcn.0041d704
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call esi
push ebx
push 0x80
push 3
push ebx
push 1
lea eax, [ebp - 0x11c]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp edi, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x423ac9
cmp eax, ebx
je 0x423ac9
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 8]
push ebx
push eax
lea ecx, [ebp - 0x18]
push dword [ebp - 0x18]
call fcn.0041d704
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
push edi
call esi
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0xc]
push 4
push eax
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x11c]
push eax
mov byte [ecx + 0x90], 1
call fcn.00422a08
mov bl, 1
jmp 0x423af2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x11c]
push eax
call esi
push ebx
mov ecx, 0x47ffa0
call fcn.0041d704
push eax
mov ecx, 0x47f028
push dword [ebp + 8]
call fcn.0041bc87
lea ecx, [ebp - 0x18]
call fcn.0041c8e1
mov al, bl
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x4275e5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42ef58
cmp edx, dword [eax]
je 0x427607
add eax, 8
inc ecx
cmp eax, 0x42efe8
jl 0x4275f8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42ef58]
jne 0x427735
mov eax, dword [0x4803e0]
cmp eax, 1
je 0x42770f
test eax, eax
jne 0x427638
cmp dword [0x42eca4], 1
je 0x42770f
cmp edx, 0xfc
je 0x427735
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42766f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00425b90
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00425480
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4276b2
lea eax, [ebp - 0x1a4]
push eax
call fcn.00425480
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x429b1c
push edi
call fcn.00428070
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00425b90
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00425ba0
lea eax, [ebp - 0xa0]
push 0x429afc
push eax
call fcn.00425ba0
push dword [esi + 0x42ef5c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00425ba0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00427fe0
add esp, 0x2c
pop edi
jmp 0x427735
lea eax, [ebp + 8]
lea esi, [esi + 0x42ef5c]
push 0
push eax
push dword [esi]
call fcn.00425480
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x19e7b538
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ebx, ecx
test esi, esi
jne 0x19e7b553
push 0x80004005
call fcn.19e7b1b5
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x19e7b555
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x19e7bbb1
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x19f20004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, ecx
mov ecx, dword [ebp + 8]
push 0x2001f
push ecx
push dword [eax]
xor esi, esi
mov dword [ebp - 0x21c], ecx
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
call fcn.19e7b496
mov edi, eax
cmp edi, esi
je 0x19e7bc23
lea ecx, [ebp - 0x214]
call fcn.19e7b423
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.19e70f3c
leave
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_RegEnumKeyExW]
jmp 0x19e7bc41
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.19e7bbb1
cmp eax, esi
jne 0x19e7bc8c
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x208], 0x100
call edi
test eax, eax
je 0x19e7bc2b
lea ecx, [ebp - 0x214]
call fcn.19e7b423
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x218]
call fcn.19e7b39d
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.19e7b423
mov eax, esi
jmp 0x19e7bc13