joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dc50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x43ba60]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40dd50
mov ecx, dword [eax + 0x2c]
test ecx, ecx
js 0x40dd40
mov edx, dword [eax + 0x2c]
test edx, edx
jne 0x40dd13
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x10], eax
lea eax, [ebp - 0x14]
mov dword [esp + 4], eax
mov dword [esp], edi
call sym.__Unwind_ForcedUnwind_Phase2
cmp eax, 7
je 0x40dcb0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x43ba60]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40dd07
mov edi, dword [eax + 0x2c]
test edi, edi
js 0x40dcfb
mov esi, dword [eax + 0x2c]
test esi, esi
jne 0x40dcde
mov dword [eax + 0x24], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ebp, dword [eax + 0x20]
mov ecx, dword [edx + 4]
mov esp, dword [edx + 8]
jmp ecx
mov eax, dword [eax + 0x28]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
test eax, eax
jne 0x40dccd
call fcn.004112d0
jmp 0x40dccd
call sym._fc_key_init_once
mov eax, dword [0x43ba60]
jmp 0x40dcc3
call sym.___w32_sharedptr_initialize
mov eax, dword [0x43ba60]
jmp 0x40dcbc
mov ebx, dword [eax + 0x28]
call fcn.004112d0
mov esi, eax
mov dword [esp], ebx
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sub.KERNEL32.dll_SetLastError
sub esp, 4
mov eax, ebx
jmp 0x40dc82
call sym._fc_key_init_once
mov eax, dword [0x43ba60]
jmp 0x40dc74
call sym.___w32_sharedptr_initialize
mov eax, dword [0x43ba60]
jmp 0x40dc69
Function at 0x40dd60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x43ba60]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40de80
mov ecx, dword [eax + 0x2c]
test ecx, ecx
js 0x40de70
mov edx, dword [eax + 0x2c]
test edx, edx
jne 0x40de44
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x40de30
mov dword [esp], edi
lea eax, [ebp - 0x14]
mov dword [esp + 4], eax
call sym.__Unwind_RaiseException_Phase2
cmp eax, 7
jne 0x40de8f
mov eax, dword [0x43ba60]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40de20
mov edi, dword [eax + 0x2c]
test edi, edi
js 0x40de10
mov esi, dword [eax + 0x2c]
test esi, esi
jne 0x40ddf0
mov dword [eax + 0x24], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ebp, dword [eax + 0x20]
mov ecx, dword [edx + 4]
mov esp, dword [edx + 8]
jmp ecx
mov eax, dword [eax + 0x28]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
test eax, eax
jne 0x40ddd8
call fcn.004112d0
jmp 0x40ddd8
call sym._fc_key_init_once
mov eax, dword [0x43ba60]
jmp 0x40ddce
call sym.___w32_sharedptr_initialize
mov eax, dword [0x43ba60]
jmp 0x40ddc7
mov dword [esp], edi
lea eax, [ebp - 0x14]
mov dword [esp + 4], eax
call sym.__Unwind_ForcedUnwind_Phase2
jmp 0x40ddb2
mov ebx, dword [eax + 0x28]
call fcn.004112d0
mov esi, eax
mov dword [esp], ebx
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sub.KERNEL32.dll_SetLastError
sub esp, 4
mov eax, ebx
jmp 0x40dd92
call sym._fc_key_init_once
mov eax, dword [0x43ba60]
jmp 0x40dd84
call sym.___w32_sharedptr_initialize
mov eax, dword [0x43ba60]
jmp 0x40dd79
call sym._abort
lea esi, [esi]
lea edi, [edi]
Function at 0x40dea0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov ebx, dword [edi + 0xc]
test ebx, ebx
je 0x40dfb7
mov eax, dword [0x43ba60]
test eax, eax
je 0x40dfa8
mov ecx, dword [eax + 0x2c]
test ecx, ecx
js 0x40df99
mov edx, dword [eax + 0x2c]
test edx, edx
jne 0x40df70
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
mov dword [esp + 4], eax
mov dword [esp], edi
call sym.__Unwind_ForcedUnwind_Phase2
cmp eax, 7
jne 0x40dfcc
mov eax, dword [0x43ba60]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40df60
mov edi, dword [eax + 0x2c]
test edi, edi
js 0x40df4d
mov esi, dword [eax + 0x2c]
test esi, esi
jne 0x40df30
mov dword [eax + 0x24], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ebp, dword [eax + 0x20]
mov ecx, dword [edx + 4]
mov esp, dword [edx + 8]
jmp ecx
mov eax, dword [eax + 0x28]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
test eax, eax
jne 0x40df1e
call fcn.004112d0
jmp 0x40df1e
call sym._fc_key_init_once
mov eax, dword [0x43ba60]
jmp 0x40df14
call sym.___w32_sharedptr_initialize
mov eax, dword [0x43ba60]
jmp 0x40df0d
mov ebx, dword [eax + 0x28]
call fcn.004112d0
mov esi, eax
mov dword [esp], ebx
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sub.KERNEL32.dll_SetLastError
sub esp, 4
mov eax, ebx
jmp 0x40dee3
call sym._fc_key_init_once
mov eax, dword [0x43ba60]
jmp 0x40ded5
call sym.___w32_sharedptr_initialize
mov eax, dword [0x43ba60]
jmp 0x40deca
mov dword [esp], edi
call sym.__Unwind_SjLj_RaiseException
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call sym._abort
jmp sym.__Unwind_DeleteException

Function at 0x40e410
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
mov edx, eax
je 0x40e440
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov dword [esp], edx
mov dword [esp + 4], eax
call sym.___mingwthr_key_dtor
mov esp, ebp
pop ebp
ret
call fcn.004112d0
jmp 0x40e436

Function at 0x411350
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.___do_sjlj_init
Function at 0x42ed80
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0x18]
sub esp, 0x78
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x3c], sym.___gxx_personality_sj0
mov dword [ebp - 0x38], 0x4339e8
mov dword [ebp - 0x30], 0x42ef1a
mov dword [ebp - 0x2c], esp
mov dword [esp], eax
call sym.__Unwind_SjLj_Register
mov edx, dword [0x434124]
test edx, edx
je 0x42eef2
cmp dword [ebp + 8], 0x80
ja 0x42edd8
mov eax, dword [0x434124]
test eax, eax
jle 0x42ee08
mov dword [ebp - 0x50], 0xffffffff
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
call sym.operator_new_unsigned_int_
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x54]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
mov eax, dword [ebp - 0x58]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
add eax, 7
mov dword [ebp - 0x5c], eax
shr eax, 3
lea eax, [eax*4 - 4]
mov dword [ebp - 0x60], eax
mov eax, dword [0x434130]
test eax, eax
je 0x42eeda
mov eax, dword [0x4340f0]
test eax, eax
jne 0x42eec2
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx + 0x43ba10]
test edx, edx
je 0x42eea7
mov eax, dword [edx]
mov dword [ebp - 0x58], edx
mov ecx, dword [ebp - 0x60]
mov dword [ecx + 0x43ba10], eax
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x42ee99
mov eax, dword [0x434130]
test eax, eax
je 0x42ee84
mov eax, dword [0x4340f0]
test eax, eax
je 0x42eded
mov dword [esp], 0x43413c
mov dword [ebp - 0x50], 0xffffffff
call sym.___gthr_win32_mutex_unlock
jmp 0x42eded
mov dword [esp], 0x434130
mov dword [ebp - 0x50], 0xffffffff
call method.std::_STL_mutex_lock._M_initialize__
jmp 0x42ee63
mov dword [ebp - 0x50], 1
call method.std.__throw_bad_alloc__
jmp 0x42ee5a
and dword [ebp - 0x5c], 0xfffffff8
mov dword [ebp - 0x50], 1
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call method.std::__default_alloc_template_true__0_._S_refill_unsigned_int_
mov dword [ebp - 0x58], eax
jmp 0x42ee53
mov dword [esp], 0x43413c
mov dword [ebp - 0x50], 0xffffffff
call sym.___gthr_win32_mutex_lock
jmp 0x42ee38
mov dword [esp], 0x434130
mov dword [ebp - 0x50], 0xffffffff
call method.std::_STL_mutex_lock._M_initialize__
jmp 0x42ee2b
mov dword [esp], 0x407ef0
call sym._getenv
test eax, eax
je 0x42ef13
mov eax, 1
lock add dword [0x434124], eax
jmp 0x42edc6
mov eax, 0xffffffff
jmp 0x42ef07
Function at 0x407ef0
Capabilities:
Encode data using xor

Disassembly:
xchg ecx, eax
sbb ch, ah
sub esp, 0x14
sbb esi, 0x10
dec edi
xor dword [edi], eax
mov bl, 0x45
adc byte [ecx - 0x23000000], ah
aam 8
fcomp qword [0xfec230]
xor dl, al
inc byte [eax]
mov ecx, dword [ebp + 0x18]
push ebx
insb byte es:[edi], dx
cmp eax, 0x9e3356ee
push edi
fnstsw ax
mov dword [edx - 0x36ce7604], edx
les eax, [0xe7aa714]
inc ebp
or cl, bl
loopne 0x407f08
arpl word [eax], cx
mov dword [ecx], 0x46e89301
int 0x4d
or al, 0x2a
push ebp
or byte [ebp + 0x5150ec45], cl
push edx
jmp dword [ebx + sym.imp.MSVCRT.dll_modf]

Function at 0x40a2ca
Capabilities:
Resolve function by parsing pe exports

Disassembly:
nop
jmp 0x40a2bf
xor eax, eax
nop
ror edi, 0xd
nop
lodsb al, byte [esi]
add edi, eax
nop
cmp al, ah
nop
invalid
test eax, esp
Function at 0x401000
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
mov dword [ebp - 0x34], 0x30
mov dword [ebp - 0x30], 0x2003
mov dword [ebp - 0x2c], 0x4010f3
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push dword [0x403020]
pop dword [ebp - 0x20]
push 0x7f05
push dword [0x403020]
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], eax
push 0x7f00
push dword [0x403020]
call sub.user32.dll_LoadCursorA
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 5
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], str.mainclass
lea eax, [ebp - 0x34]
push eax
call sub.user32.dll_RegisterClassExA
push 0
push dword [0x403020]
push 0
push 0
push 0x12c
push 0x12c
push 0xc8
push 0x12c
push 0xcf0000
push str.My_Win32_program
push str.mainclass
push 0x40000
call sub.user32.dll_CreateWindowExA
mov dword [ebp - 4], eax
push 1
push dword [ebp - 4]
call sub.user32.dll_ShowWindow
push dword [ebp - 4]
call sub.user32.dll_UpdateWindow
push 0
push 0
push 0
lea eax, [ebp - 0x50]
push eax
call sub.user32.dll_GetMessageA
or eax, eax
je 0x4010ee
lea eax, [ebp - 0x50]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x50]
push eax
call sub.user32.dll_DispatchMessageA
jmp 0x4010c7
mov eax, dword [ebp - 0x48]
leave
ret
Function at 0x401ec3
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
push ebx
push esi
push edi
push 0x3e9
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
xor ebx, ebx
push ebx
push ebx
push 0x1009
push eax
mov dword [ebp + 8], eax
call esi
push 1
push 1
push 0x19
push 0x10
push 0x10
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
push 2
push eax
mov dword [0x40be24], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push 0xce
call fcn.00402680
mov edi, dword [sym.imp.USER32.dll_LoadIconA]
push eax
call edi
push eax
push ebx
push dword [0x40be24]
mov ebx, dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
call ebx
push 0xcf
call fcn.00402680
push eax
call edi
push eax
push 1
push dword [0x40be24]
call ebx
mov ebx, dword [ebp + 8]
xor edi, edi
push 0x26
push edi
push 0x1036
push ebx
call esi
push dword [0x40be24]
push 2
push 0x1003
push ebx
call esi
push ebx
call fcn.00401a6c
mov dword [esp], 0x40bc00
push 0xc8
push edi
push 6
push edi
push ebx
call fcn.00401787
mov ecx, dword [0x40be20]
add esp, 0x18
mov edi, dword [ecx + 4]
mov dword [ebp - 0x14], edi
call fcn.00404425
and dword [ebp - 8], 0
mov dword [ebp - 0x10], eax
test edi, edi
jle 0x40207f
mov eax, dword [ebp - 0x10]
and dword [ebp - 4], 0
and dword [ebp - 0xc], 0
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
movsx eax, word [eax + 2]
cmp eax, dword [ebp - 8]
jne 0x40205c
mov al, byte [0x40bc00]
push 0x3f
mov byte [ebp - 0x13c], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x13b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x13c]
push 0xff
mov ecx, dword [0x40be20]
push eax
lea eax, [ebp - 0x34]
push eax
push 4
push dword [ebp - 4]
call fcn.0040440f
push eax
call fcn.00401829
add esp, 0x18
test eax, eax
je 0x40205c
xor eax, eax
lea ecx, [ebp - 0x13c]
push eax
push dword [ebp - 4]
push eax
push ecx
push eax
push eax
push 0xffff
push 5
push ebx
call fcn.00401854
mov ecx, dword [ebp + 8]
movsx edi, word [ecx]
xor ecx, ecx
test edi, edi
setg cl
push ecx
push eax
push ebx
call fcn.00401c25
add esp, 0x30
test edi, edi
jne 0x40205c
mov eax, dword [0x40be28]
mov ecx, dword [ebp - 0xc]
mov ax, word [ecx + eax + 0xc]
mov ecx, dword [ebp + 8]
mov word [ecx], ax
inc dword [ebp - 4]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], 0x14
add dword [ebp + 8], 4
cmp dword [ebp - 4], eax
jl 0x401fb8
inc dword [ebp - 8]
cmp dword [ebp - 8], eax
jl 0x401faa
push 2
pop eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x3c]
push eax
push 0
push 0x102b
push ebx
call esi
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402b83
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 0x402ee6
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.00402da9
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 0x402f4e
push dword [ebp + 0x10]
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x140]
push eax
call dword [ebp + 8]
test eax, eax
je 0x402f42
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x402f18
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
push 1
pop eax
jmp 0x402f50
xor eax, eax
pop esi
leave
ret

Function at 0x40308e
Capabilities:
Get common file path

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

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

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

Function at 0x4030f2
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x40bc00
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 0x40331b
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push dword [esp + 0x10]
mov esi, ecx
push dword [esp + 0x10]
call fcn.004026cd
mov ebx, eax
pop ecx
cmp ebx, 0xffffffff
pop ecx
je 0x403374
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ecx, esi
mov edi, eax
call fcn.004032e7
push edi
mov ecx, esi
call fcn.004032ce
push 0
push edi
push dword [esi]
push ebx
call fcn.00403118
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 0x403376
xor eax, eax
pop esi
pop ebx
ret 8
Function at 0x404181
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 0x409308
xor edi, edi
push 1
push edi
push 0x409318
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, edi
jl 0x404242
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 0x4041d8
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 0x4041ec
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 0x409328
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
cmp esi, edi
jl 0x404239
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 0x405c76
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.00401458
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0xc
test eax, eax
jne 0x405cc5
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.00401458
add esp, 0xc
test eax, eax
jne 0x405cf7
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 0x405eb6
Capabilities:
Delete file

Disassembly:
mov eax, 0x408ad7
call fcn.00408824
sub esp, 0x84
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea edi, [esi + 0x2c]
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
lea ecx, [ebp - 0x90]
call fcn.004033a3
xor ebx, ebx
push 1
push edi
lea ecx, [ebp - 0x90]
mov dword [ebp - 4], ebx
call fcn.004036a6
test eax, eax
je 0x405f2c
xor edi, edi
cmp dword [esi + 0x1c], ebx
jle 0x405f21
mov eax, dword [esi + 0x18]
lea ecx, [ebp - 0x90]
add eax, ebx
push ecx
push eax
push esi
call fcn.00405e0e
add esp, 0xc
inc edi
add ebx, 0xa34
cmp edi, dword [esi + 0x1c]
jl 0x405eff
lea ecx, [ebp - 0x90]
call fcn.00403700
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.0040342f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x406220
Capabilities:
Delete file
Get common file path

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push 0x1a
and byte [edi + 0x2c], 0
lea esi, [edi + 0x2c]
push esi
call fcn.00408279
pop ecx
test eax, eax
pop ecx
je 0x406260
push esi
call fcn.00402727
mov dword [esp], 0x40b534
push esi
call sub.MSVCRT.dll_strcat
cmp dword [edi + 0x24c], 0
pop ecx
pop ecx
je 0x406260
push esi
call fcn.00402e38
pop ecx
cmp byte [esi], 0
jne 0x406271
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
push esi
call fcn.00402727
mov dword [esp], str.MyUninst.ini
push esi
call sub.MSVCRT.dll_strcat
cmp dword [edi + 0x24c], 0
pop ecx
pop ecx
jne 0x406296
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
pop edi
pop esi
ret
Function at 0x406df4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp - 0x104]
push 0x40b77c
push eax
call fcn.00402afc
push 1
push 1
lea eax, [ebp - 0x104]
push 1
push eax
push dword [ebp + 8]
call fcn.00406c99
add esp, 0x1c
test eax, eax
je 0x406e57
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call fcn.004028ce
pop ecx
test eax, eax
pop ecx
je 0x406e4a
push eax
push dword [ebp + 8]
call fcn.0040274f
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
leave
ret

Function at 0x406f8d
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push dword [esi + 0xa24]
push 0x2001f
push eax
call fcn.00401458
add esp, 0xc
test eax, eax
jne 0x406fbd
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x406fcb
mov eax, dword [ebp + 8]
push 0
push dword [eax]
call fcn.0040274f
pop ecx
pop ecx
pop esi
pop ebp
ret

Function at 0x40705c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 8]
call fcn.004045cd
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.004045da
add esp, 0xc
test eax, eax
je 0x407099
mov eax, dword [ebp - 4]
push 5
push 0x40bc00
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 0x4070cd
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
push dword [ebp + 8]
call fcn.004045cd
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.004045da
add esp, 0xc
test eax, eax
je 0x40713c
mov eax, dword [ebp - 4]
cmp dword [eax + 0xa18], 0
je 0x40713c
push 0xc
call fcn.00403c1a
push eax
push dword [ebp + 8]
call fcn.0040131c
add esp, 0xc
cmp eax, 6
jne 0x40713c
push 2
lea eax, [ebp - 0x314]
push 0
push eax
push dword [ebp - 4]
call fcn.00404c94
add esp, 0x10
test eax, eax
je 0x40713c
lea eax, [ebp - 0x314]
push 5
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
leave
ret

Function at 0x40713e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
push dword [ebp + 8]
call fcn.004045cd
lea ecx, [ebp + 8]
push ecx
push eax
call fcn.004045da
add esp, 0xc
test eax, eax
je 0x407193
mov eax, dword [ebp + 8]
cmp dword [eax + 0xa10], 0
jne 0x407193
push 1
lea ecx, [ebp - 0x310]
push 0
push ecx
push eax
call fcn.00404c94
add esp, 0x10
test eax, eax
je 0x407193
lea eax, [ebp - 0x310]
push 5
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
leave
ret

Function at 0x4072e5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov al, byte [0x40bc00]
push edi
push 0x41
mov byte [ebp - 0x108], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x108]
push eax
call fcn.00402cfc
lea eax, [ebp - 0x108]
mov dword [esp], 0x40b780
push eax
call fcn.0040315d
pop ecx
lea eax, [ebp - 0x108]
pop ecx
push 5
push 0x40bc00
push 0
push eax
push str.open
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
leave
ret