joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44a380
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push edi
mov edi, 0x105
jmp 0x44a3d2
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x44a3c4
push dword [ebp - 4]
call fcn.0044a380
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push edi
lea eax, [ebp - 0x10c]
push eax
push 0
push ebx
call esi
test eax, eax
je 0x44a39c
pop edi
pop esi
pop ebx
leave
ret

Function at 0x44a3e8
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
push 0
call fcn.00449ea6
pop ecx
call fcn.00446304
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp - 4]
push eax
push str.SoftwareSimonTathamPuTTY
mov edi, 0x80000001
push edi
call esi
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x44a430
push dword [ebp - 4]
call fcn.0044a380
pop ecx
push dword [ebp - 4]
call ebx
lea eax, [ebp - 4]
push eax
push str.SoftwareSimonTatham
push edi
call esi
test eax, eax
jne 0x44a496
push str.PuTTY
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x105
lea eax, [ebp - 0x110]
push eax
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call ebx
cmp dword [ebp - 8], 0
je 0x44a496
lea eax, [ebp - 4]
push eax
push str.Software
push edi
call esi
test eax, eax
jne 0x44a496
push str.SimonTatham
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 4]
call ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x44af76
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
cmp dword [ebp + 0x10], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, 0x104
je 0x44afa9
lea eax, [ebp - 0x104]
push eax
push esi
call edi
test eax, eax
je 0x44afa5
cmp eax, esi
jb 0x44afa9
and dword [ebp + 0x10], 0
mov ebx, dword [ebp + 8]
test ebx, ebx
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x4c
je 0x44afc2
cmp byte [ebx], 0
je 0x44afc2
mov ecx, ebx
jmp 0x44afc4
xor ecx, ecx
cmp dword [ebp + 0x14], 0
mov dword [eax + 0x2c], ecx
push eax
je 0x44afd6
call dword [sym.imp.comdlg32.dll_GetSaveFileNameA]
jmp 0x44afdc
call dword [sym.imp.comdlg32.dll_GetOpenFileNameA]
test ebx, ebx
mov dword [ebp + 0xc], eax
je 0x44aff2
push ebx
push esi
call edi
test eax, eax
je 0x44afef
cmp eax, esi
jb 0x44aff2
mov byte [ebx], 0
cmp dword [ebp + 0x10], 0
pop edi
pop esi
pop ebx
je 0x44b008
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp + 0xc]
leave
ret
Function at 0x44ee6e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x477140], esi
push edi
jne 0x44ee8e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x47713c], esi
mov byte [0x477138], al
jne 0x44eef4
mov ecx, dword [0x4778ac]
test ecx, ecx
je 0x44eed5
mov eax, dword [0x4778a8]
sub eax, 4
cmp eax, ecx
jmp 0x44eece
mov eax, dword [eax]
test eax, eax
je 0x44eec0
call eax
mov eax, dword [0x4778a8]
sub eax, 4
cmp eax, dword [0x4778ac]
mov dword [0x4778a8], eax
jae 0x44eeb8
mov eax, 0x473020
mov esi, 0x473028
cmp eax, esi
mov edi, eax
jae 0x44eef4
mov eax, dword [edi]
test eax, eax
je 0x44eeed
call eax
add edi, 4
cmp edi, esi
jb 0x44eee5
mov eax, 0x47302c
mov esi, 0x473030
cmp eax, esi
mov edi, eax
jae 0x44ef13
mov eax, dword [edi]
test eax, eax
je 0x44ef0c
call eax
add edi, 4
cmp edi, esi
jb 0x44ef04
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x44ef2d
push dword [ebp + 8]
mov dword [0x477140], 1
call fcn.0044edd4
pop ebp
ret
Function at 0x44f125
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x470420
call fcn.00451234
mov edi, 0x94
mov eax, edi
call fcn.0044ed20
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x477100], ecx
mov eax, dword [esi + 4]
mov dword [0x47710c], eax
mov edx, dword [esi + 8]
mov dword [0x477110], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x477104], esi
cmp ecx, 2
je 0x44f185
or esi, 0x8000
mov dword [0x477104], esi
shl eax, 8
add eax, edx
mov dword [0x477108], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x44f1c0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44f1c0
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x44f1d8
cmp eax, 0x20b
je 0x44f1c5
mov dword [ebp - 0x1c], esi
jmp 0x44f1ec
cmp dword [ecx + 0x84], 0xe
jbe 0x44f1c0
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x44f1e6
cmp dword [ecx + 0x74], 0xe
jbe 0x44f1c0
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00451aa1
pop ecx
test eax, eax
jne 0x44f218
cmp dword [0x47714c], 1
jne 0x44f205
call fcn.00453656
push 0x1c
call fcn.004534df
push 0xff
call fcn.0044edd4
pop ecx
pop ecx
call fcn.0045397d
mov dword [ebp - 4], esi
call fcn.00451809
test eax, eax
jge 0x44f231
push 0x1b
call fcn.0044f100
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4778a0], eax
call fcn.00453feb
mov dword [0x477144], eax
call fcn.00453f49
test eax, eax
jge 0x44f257
push 8
call fcn.0044f100
pop ecx
call fcn.00453d16
test eax, eax
jge 0x44f268
push 9
call fcn.0044f100
pop ecx
push 1
call fcn.0044ee04
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x44f27e
push eax
call fcn.0044f100
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00453cb9
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x44f29f
movzx eax, word [ebp - 0x40]
jmp 0x44f2a2
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004441f2
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x44f2c0
push edi
call fcn.0044ef2f
call fcn.0044ef51
jmp 0x44f2f2
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0045126f
ret
Function at 0x44f92a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x477164], ebx
push esi
push edi
jne 0x44f9aa
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x44f9e5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x470484
push edi
call esi
test eax, eax
mov dword [0x477164], eax
je 0x44f9e5
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x477168], eax
call esi
cmp dword [0x477100], 2
mov dword [0x47716c], eax
jne 0x44f9aa
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x477174], eax
je 0x44f9aa
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x477170], eax
mov eax, dword [0x477170]
test eax, eax
je 0x44f9ef
call eax
test eax, eax
je 0x44f9d6
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x477174]
test eax, eax
je 0x44f9d6
test byte [ebp - 8], 1
jne 0x44f9ef
cmp dword [0x47710c], 4
jb 0x44f9e9
or byte [ebp + 0x12], 0x20
jmp 0x44fa0e
xor eax, eax
jmp 0x44fa1e
or byte [ebp + 0x12], 4
jmp 0x44fa0e
mov eax, dword [0x477168]
test eax, eax
je 0x44fa0e
call eax
mov ebx, eax
test ebx, ebx
je 0x44fa0e
mov eax, dword [0x47716c]
test eax, eax
je 0x44fa0e
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x477164]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x456543
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0044ed20
mov eax, dword [0x473bf0]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x477784]
mov dword [ebp - 4], eax
jae 0x456686
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x4777a0]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x456686
push 1
push esi
push ebx
call fcn.004553c1
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x456690
push 2
push esi
push ebx
call fcn.004553c1
add esp, 0xc
cmp eax, 0xffffffff
je 0x456690
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x456630
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0044ce90
push 0x8000
push ebx
call fcn.00456e2f
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x4565ef
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.00450c4f
add esp, 0xc
cmp eax, 0xffffffff
je 0x45660d
sub edi, eax
test edi, edi
jg 0x4565e4
jmp 0x456623
cmp dword [0x4770f8], 5
jne 0x456620
mov dword [0x4770f4], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.00456e2f
pop ecx
pop ecx
jmp 0x456670
jge 0x456670
push 0
push dword [ebp + 0xc]
push ebx
call fcn.004553c1
push ebx
call fcn.004542fa
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x456670
mov dword [0x4770f4], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4770f8], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.004553c1
add esp, 0xc
mov eax, esi
pop edi
jmp 0x456693
mov dword [0x4770f4], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0044fbf6
leave
ret
Function at 0x404474
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
cmp eax, 1
jne 0x4044b0
add esp, 0xfffffff4
push dword [edx + 0x4c]
call sym._getc
cmp eax, 0xffffffff
jne 0x4044a0
xor eax, eax
jmp 0x4044bc
mov byte [ebx], al
mov eax, 1
jmp 0x4044bc
push dword [edx + 0x4c]
push eax
push 1
push ebx
call sym._fread
mov ebx, dword [ebp - 0x18]
leave
ret

Function at 0x4044c4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push ebx
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
push dword [ebx + 0x4c]
push esi
push 1
push dword [ebp + 0xc]
call sym._fwrite
mov edx, dword [ebx + 0x40]
test edx, edx
jl 0x4044ec
add edx, esi
mov dword [ebx + 0x40], edx
lea esp, [ebp - 0x18]
pop ebx
pop esi
leave
ret

Function at 0x4045bc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx]
shr eax, 1
xor al, 1
test al, 1
jne 0x4045e5
push dword [edx + 0x4c]
push ecx
push 1
push ebx
call sym._fwrite
jmp 0x4045f0
add esp, 0xfffffffc
push ecx
push ebx
push edx
call sym._xsputn__9streambufPCci
mov ebx, dword [ebp - 0x18]
leave
ret

Function at 0x407450
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
add esp, 0xfffffffc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax + 0x38]
call sym._read
leave
ret

Function at 0x40ab24
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x40ab49
mov dword [0x4133c4], eax
add esp, 0xfffffff8
push sym._eh_context_free
push eax
call sym.___mingwthr_key_dtor
jmp 0x40ab4e
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x40ab64
mov dword [sym._eh_context_initialize], 0x40ac48
jmp 0x40ab6e
mov dword [sym._eh_context_initialize], 0x40abfc
leave
ret

Function at 0x40ac48
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
add esp, 0xfffffff4
push dword [0x4133c4]
call sub.KERNEL32.dll_TlsGetValue
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x40ac95
call sym._new_eh_context
mov ebx, eax
add esp, 0xfffffff8
push ebx
push dword [0x4133c4]
call sub.KERNEL32.dll_TlsSetValue
add esp, 8
test eax, eax
jne 0x40ac8a
call sub.KERNEL32.dll_GetLastError
jmp 0x40ac8c
xor eax, eax
test eax, eax
je 0x40ac95
call sym.___terminate
mov eax, ebx
mov ebx, dword [ebp - 0x18]
leave
ret
Function at 0x40adc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x65c
push edi
push esi
push ebx
mov eax, dword [sym._eh_context_initialize]
call eax
mov edx, eax
lea eax, [edx + 4]
mov dword [ebp - 0x644], eax
mov eax, dword [edx + 4]
lea ecx, [eax + 4]
mov dword [ebp - 0x648], ecx
cmp dword [eax + 4], 0
je 0x40ae7d
lea ebx, [ebp - 0x640]
mov dword [ebp - 0x64c], ebx
mov dword [ebx + 4], 0
mov eax, dword [edx + 4]
mov dword [ebp - 0x640], eax
lea eax, [ebp - 0x638]
mov dword [ebp - 0x638], ebp
mov dword [eax + 4], 0x40ae28
mov dword [eax + 8], esp
jmp 0x40ae2a
mov edx, dword [ebp - 0x64c]
mov eax, dword [ebp - 0x644]
mov dword [eax], edx
mov ecx, dword [ebp - 0x648]
cmp dword [ecx], 0
je 0x40ae66
nop
mov ebx, dword [ebp - 0x648]
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov eax, dword [eax]
mov dword [ebx], eax
add esp, 0xfffffff8
push 2
push edx
call ecx
add esp, 0x10
cmp dword [ebx], 0
jne 0x40ae44
mov edx, dword [ebp - 0x64c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x644]
mov dword [ecx], eax
jmp 0x40ae7d
mov ebx, dword [ebp - 0x644]
mov eax, dword [ebx]
mov eax, dword [eax]
mov dword [ebx], eax
call sym.___sjthrow
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
dec ecx
outsb dx, byte [esi]
je 0x40af0d
jb 0x40af18
popal
insb byte es:[edi], dx
and byte [ebx + 0x6f], al
insd dword es:[edi], dx
jo 0x40af1b
insb byte es:[edi], dx
jb 0x40aed6
inc edx
jne sym.___get_eh_table_version
cmp ah, byte [eax]
dec esi
outsd dx, dword [esi]
and byte [edx + 0x75], dh
outsb dx, byte [esi]
je sym.___get_eh_table_language
insd dword es:[edi], dx
and byte gs:[ecx + edi*2 + 0x70], dh
and byte gs:[ebp + 0x61], ch
je 0x40af32
push 0x2e7265
in eax, 0x83
in al, dx
or al, ch
xor esp, edi
invalid
mov al, 0x41
inc ecx
add byte [ebx - 0x17afbf40], al
mov byte [0x31000043], al
add byte [eax], al
xor eax, eax
ror cl, 0xc3
mov esi, esi
leave
ret
movsx eax, word [eax + 4]
leave
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
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 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 0x40b340
xor edi, edi
push 1
push edi
push 0x40b350
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 0x40b360
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, 0x40a397
call fcn.0040a0e4
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.00409b05
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