joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404d4e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x404d7c
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x404d83
cmp ebx, dword [eax + 4]
jae 0x404d83
xor eax, eax
jmp 0x404f73
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x404d94
xor eax, eax
inc eax
jmp 0x404f72
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x404daa
cmp ecx, edx
jae 0x404eef
cmp dword [eax + 4], 0
je 0x404db3
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x404d9b
cmp dword [ebp + 8], 0
je 0x404dd5
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x404eef
cmp eax, esi
jae 0x404eef
mov eax, dword [0x409850]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x404dfa
cmp dword [esi*4 + 0x409858], edi
je 0x404ef3
inc esi
cmp esi, eax
jl 0x404de8
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404f6f
cmp dword [ebp - 8], 0x1000000
jne 0x404f6f
test byte [ebp - 0xc], 0xcc
je 0x404e78
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x404f6f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x404f6f
cmp word [eax + 0x18], 0x10b
jne 0x404f6f
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x404f6f
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x404e78
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x404e78
test byte [ecx + 0x27], 0x80
jne 0x404eef
push 1
push 0x409898
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x404d8c
mov ecx, dword [0x409850]
test ecx, ecx
mov edx, ecx
jle 0x404eac
lea eax, [ecx*4 + 0x409854]
cmp dword [eax], edi
je 0x404eac
dec edx
sub eax, 4
test edx, edx
jg 0x404ea0
test edx, edx
jne 0x404edd
push 0xf
pop ebx
cmp ecx, ebx
jg 0x404eb9
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x404ed1
lea eax, [edx*4 + 0x409858]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x404ebf
cmp ecx, 0x10
jge 0x404edd
inc ecx
mov dword [0x409850], ecx
push 0
push 0x409898
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x404d8c
xor eax, eax
jmp 0x404f72
test esi, esi
jle 0x404d8c
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x409898
call ebx
test eax, eax
jne 0x404d8c
cmp dword [esi*4 + 0x409858], edi
je 0x404f49
mov eax, dword [0x409850]
lea esi, [eax - 1]
test esi, esi
jl 0x404f37
cmp dword [esi*4 + 0x409858], edi
je 0x404f33
dec esi
jns 0x404f27
test esi, esi
jge 0x404f47
cmp eax, 0x10
jge 0x404f42
inc eax
mov dword [0x409850], eax
lea esi, [eax - 1]
jmp 0x404f49
je 0x404f61
xor ecx, ecx
test esi, esi
jl 0x404f61
lea eax, [ecx*4 + 0x409858]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x404f4f
push 0
push 0x409898
call ebx
jmp 0x404d8c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406249
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00402fc0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4062e4
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4096d8]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4062e4
cmp eax, 1
je 0x406305
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4062e4
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4062b1
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4062e0
xor eax, eax
inc eax
jmp 0x406324
cmp edi, eax
jae 0x4062e8
xor eax, eax
jmp 0x406324
cmp eax, esi
jae 0x4062ef
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4096d8]
jmp 0x406308
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401a09
Capabilities:
Hide graphical window

Disassembly:
mov ecx, 0xfffffffe
jmp fcn.00401641
Function at 0x10013a4
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x248]
mov edi, 0xfffff758
and eax, edi
or eax, dword [ebp + 8]
push eax
lea eax, [esi + 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x10013e4
mov eax, dword [esi + 0x248]
and eax, edi
or eax, dword [ebp + 8]
mov dword [esi + 0x248], eax
mov al, 1
jmp 0x10013f5
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10013f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor al, al
pop edi
pop esi
pop ebp
ret 8

Function at 0x1002653
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001278
call fcn.01002808
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x100268e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100268e
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10026a6
cmp eax, 0x20b
je 0x1002693
mov dword [ebp - 0x1c], edi
jmp 0x10026ba
cmp dword [ecx + 0x84], 0xe
jbe 0x100268e
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x10026b4
cmp dword [ecx + 0x74], 0xe
jbe 0x100268e
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1004034], 0xffffffff
or dword [0x1004038], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1004030]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100402c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100403c], eax
call fcn.01002800
cmp dword [0x100401c], edi
jne 0x1002715
push fcn.01002800
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010027e9
push 0x1004010
push 0x100400c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1004028]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1004024]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x34], eax
push 0x1004008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0100239f
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x100278c
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x10027c1
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01002843
ret
Function at 0x401b40
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401b8b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401b84
test esi, esi
je 0x401b84
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401b60
mov dword [esp], 0x407044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401d70
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401dc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401e98
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401dfe
cmp eax, 4
jne 0x401e20
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401e0e
cmp edx, 4
je 0x401e0e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401d70

Function at 0x401678
Capabilities:
Encode data using xor

Disassembly:
push 0x43bdb8
call sub.MSVBVM60.DLL_ThunRTMain
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax], al
add byte [eax], al
dec eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [ecx - 0x1c65a0a8], cl
pushal
pushfd
inc edx
invalid
Function at 0x402d55
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x403027
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push dword [ebp + 8]
call fcn.00402d55
test eax, eax
pop ecx
je 0x403041
xor eax, eax
leave
ret
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x108]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 0x10
test eax, eax
je 0x403076
and byte [eax], 0
lea eax, [ebp - 0x108]
push eax
call fcn.00403027
pop ecx
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
leave
ret

Function at 0x4030d5
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
lea eax, [ebp - 0x248]
push esi
push eax
push dword [ebp + 0xc]
call fcn.00402f98
pop ecx
lea eax, [ebp - 0x140]
pop ecx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40313d
push dword [ebp + 0x10]
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x140]
push eax
call dword [ebp + 8]
test eax, eax
je 0x403131
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x403107
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
push 1
pop eax
jmp 0x40313f
xor eax, eax
pop esi
leave
ret

Function at 0x40327d
Capabilities:
Get common file path

Disassembly:
cmp byte [0x40e2e0], 0
push esi
mov esi, 0x40e2e0
jne 0x40329d
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
mov dword [0x40e3e8], eax
push esi
push dword [esp + 0xc]
call sub.MSVCRT.dll_strcpy
mov eax, dword [0x40e3e8]
pop ecx
pop ecx
pop esi
ret

Function at 0x4032b0
Capabilities:
Get common file path

Disassembly:
cmp byte [0x40e3ec], 0
push esi
mov esi, 0x40e3ec
jne 0x4032d0
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
mov dword [0x40e4f4], eax
push esi
push dword [esp + 0xc]
call sub.MSVCRT.dll_strcpy
mov eax, dword [0x40e4f4]
pop ecx
pop ecx
pop esi
ret

Function at 0x4032e3
Capabilities:
Get common file path
Get file attributes

Disassembly:
cmp byte [0x40e4f8], 0
push esi
mov esi, 0x40e4f8
jne 0x403310
push esi
call fcn.00402ee0
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
test al, 1
je 0x403310
push esi
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
mov eax, esi
pop esi
ret

Function at 0x403314
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x40de80
push 5
push eax
push eax
push dword [esp + 0x14]
push str.open
push dword [esp + 0x18]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x20
pop ecx
cmp ecx, eax
sbb eax, eax
neg eax
ret
Function at 0x403685
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push dword [esp + 0x10]
mov esi, ecx
push dword [esp + 0x10]
call fcn.0040285b
mov ebx, eax
pop ecx
cmp ebx, 0xffffffff
pop ecx
je 0x4036de
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ecx, esi
mov edi, eax
call fcn.00403651
push edi
mov ecx, esi
call fcn.00403638
push 0
push edi
push dword [esi]
push ebx
call fcn.0040333a
mov eax, dword [esi]
add esp, 0x10
and byte [eax + edi], 0
push ebx
mov dword [esi + 8], edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 1
pop eax
pop edi
jmp 0x4036e0
xor eax, eax
pop esi
pop ebx
ret 8

Function at 0x4041b6
Capabilities:
Read .ini file

Disassembly:
push 0x40e634
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0x40e73c
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
ret

Function at 0x4041cf
Capabilities:
Read .ini file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push 0x40e634
push dword [esp + 0x14]
and byte [esi], 0
push esi
push 0x40de80
push dword [esp + 0x18]
push 0x40e73c
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
mov eax, esi
pop esi
ret

Function at 0x4047cc
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
lea eax, [ebp - 4]
push edi
push eax
push 0x40b348
xor edi, edi
push 1
push edi
push 0x40b358
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, edi
jl 0x40488d
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 4]
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp dword [ebp + 0x14], edi
je 0x404823
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp dword [ebp + 0x18], edi
jl 0x404837
push dword [ebp + 0x18]
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x40b368
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
cmp esi, edi
jl 0x404884
lea eax, [ebp - 0x210]
push 0x104
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x210]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x406877
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push CreateStatusWindowA
lea eax, [ebp - 4]
xor esi, esi
push 0x20019
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call fcn.00401560
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
test eax, eax
jne 0x4068c6
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call ebx
push 0x80000001
lea eax, [ebp - 4]
push 0x20019
push eax
call fcn.00401560
add esp, 0xc
test eax, eax
jne 0x4068f8
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0xc]
push esi
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call ebx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
add eax, ecx
pop ebx
leave
ret

Function at 0x406ad0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push dword [esi + 0xa28]
push 0x2001f
push eax
call fcn.00401560
add esp, 0xc
test eax, eax
jne 0x406b00
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x406b0e
mov eax, dword [ebp + 8]
push 0
push dword [eax]
call fcn.004028dd
pop ecx
pop ecx
pop esi
pop ebp
ret

Function at 0x406b11
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [ebp + 0x14]
sub eax, 0x9c45
je 0x406b38
sub eax, 6
jne 0x406b6b
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406ad0
pop ecx
pop ecx
leave
ret
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0xa10], 0
jne 0x406b6b
push 1
lea ecx, [ebp - 0x310]
push 0
push ecx
push eax
call fcn.004053fd
add esp, 0x10
test eax, eax
je 0x406b6b
lea eax, [ebp - 0x310]
push 5
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
leave
ret

Function at 0x406baf
Capabilities:
Delete file

Disassembly:
mov eax, 0x40a3a7
call fcn.0040a0f4
sub esp, 0x84
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea edi, [esi + 0x30]
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
lea ecx, [ebp - 0x90]
call fcn.0040370d
xor ebx, ebx
push 1
push edi
lea ecx, [ebp - 0x90]
mov dword [ebp - 4], ebx
call fcn.00403aa4
test eax, eax
je 0x406c25
xor edi, edi
cmp dword [esi + 0x20], ebx
jle 0x406c1a
mov eax, dword [esi + 0x1c]
lea ecx, [ebp - 0x90]
add eax, ebx
push ecx
push eax
push esi
call fcn.00406a0f
add esp, 0xc
inc edi
add ebx, 0xa3c
cmp edi, dword [esi + 0x20]
jl 0x406bf8
lea ecx, [ebp - 0x90]
call fcn.00403afe
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.00403799
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x406f2d
Capabilities:
Delete file
Get common file path

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push 0x1a
and byte [edi + 0x30], 0
lea esi, [edi + 0x30]
push esi
call fcn.00409b0f
pop ecx
test eax, eax
pop ecx
je 0x406f6d
push esi
call fcn.004028b5
mov dword [esp], str.NirSoft
push esi
call sub.MSVCRT.dll_strcat
cmp dword [edi + 0x250], 0
pop ecx
pop ecx
je 0x406f6d
push esi
call fcn.00403027
pop ecx
cmp byte [esi], 0
jne 0x406f7e
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
push esi
call fcn.004028b5
mov dword [esp], str.MyUninst.ini
push esi
call sub.MSVCRT.dll_strcat
cmp dword [edi + 0x250], 0
pop ecx
pop ecx
jne 0x406fa3
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
pop edi
pop esi
ret

Function at 0x407d20
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 0x104]
push 0x40d8f4
push eax
call fcn.00402cce
push 1
push 1
lea eax, [ebp - 0x104]
push 1
push eax
push dword [ebp + 8]
call fcn.00407bc5
add esp, 0x1c
test eax, eax
je 0x407d83
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call fcn.00402aa0
pop ecx
test eax, eax
pop ecx
je 0x407d76
push eax
push dword [ebp + 8]
call fcn.004028dd
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
leave
ret

Function at 0x408029
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 8]
call fcn.00404c69
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.00404c76
add esp, 0xc
test eax, eax
je 0x408066
mov eax, dword [ebp - 4]
push 5
push 0x40de80
add eax, 0x305
push 0
push eax
push str.open
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
leave
ret

Function at 0x40809a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
push dword [ebp + 8]
call fcn.00404c69
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.00404c76
add esp, 0xc
test eax, eax
je 0x408109
mov eax, dword [ebp - 4]
cmp dword [eax + 0xa18], 0
je 0x408109
push 0xc
call fcn.00404117
push eax
push dword [ebp + 8]
call fcn.004013c0
add esp, 0xc
cmp eax, 6
jne 0x408109
push 2
lea eax, [ebp - 0x314]
push 0
push eax
push dword [ebp - 4]
call fcn.004053fd
add esp, 0x10
test eax, eax
je 0x408109
lea eax, [ebp - 0x314]
push 5
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
leave
ret

Function at 0x40810b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
push dword [ebp + 8]
call fcn.00404c69
cmp dword [eax + 0x254], 0
pop ecx
je 0x408135
push 0x9c45
push eax
call fcn.00406b6d
pop ecx
pop ecx
leave
ret
lea ecx, [ebp + 8]
push ecx
push eax
call fcn.00404c76
pop ecx
test eax, eax
pop ecx
je 0x408178
mov eax, dword [ebp + 8]
cmp dword [eax + 0xa10], 0
jne 0x408178
push 1
lea ecx, [ebp - 0x310]
push 0
push ecx
push eax
call fcn.004053fd
add esp, 0x10
test eax, eax
je 0x408178
lea eax, [ebp - 0x310]
push 5
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
leave
ret