joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4165bd
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x443fef
call fcn.0043680c
sub esp, 0x1f0
and dword [ebp - 0x1c], 0
push esi
mov esi, ecx
lea ecx, [ebp - 0x10]
call fcn.004066b3
cmp dword [esi + 4], 0
lea eax, [esi + 4]
mov dword [ebp - 4], 1
je 0x416770
push ebx
push edi
mov ebx, eax
mov dword [ebp - 0x18], eax
mov esi, 0x104
mov ecx, dword [0x46487c]
call fcn.004045d7
mov dl, byte [0x464878]
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp - 0x9b]
mov byte [ebp - 0x9c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x5b]
mov byte [ebp - 0x5c], dl
and byte [ebp - 0x3c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x3b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x14]
stosb byte es:[edi], al
call fcn.004066b3
mov eax, dword [ebx]
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
mov di, word [eax + 0xc]
call fcn.0040679b
push esi
push eax
lea eax, [ebp - 0x5c]
push 0x20
push eax
lea eax, [ebp - 0x9c]
push 0x40
push eax
push edi
call fcn.004266e9
add esp, 0x1c
lea ecx, [ebp - 0x14]
call fcn.004067f3
lea eax, [ebp - 0x3c]
push 0x20
push eax
push edi
call fcn.00426766
mov eax, dword [ebp - 0x10]
xor edi, edi
add esp, 0xc
cmp dword [eax - 4], edi
je 0x4166a7
push 0x451938
lea ecx, [ebp - 0x10]
call fcn.00406c71
lea eax, [ebp - 0x9c]
lea ecx, [ebp - 0x10]
push eax
call fcn.00406c71
push 0x451934
lea ecx, [ebp - 0x10]
call fcn.00406c71
lea eax, [ebp - 0x5c]
lea ecx, [ebp - 0x10]
push eax
call fcn.00406c71
push 0x451930
lea ecx, [ebp - 0x10]
call fcn.00406c71
cmp dword [ebp + 0xc], edi
je 0x416751
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x14]
push eax
call fcn.00406cdd
mov eax, dword [0x46487c]
push edi
lea ecx, [ebp - 0x14]
mov ebx, dword [eax + 0xa68]
call fcn.00406a8a
push eax
push ebx
call dword [sym.imp.SHELL32.dll_ExtractIconA]
cmp eax, edi
mov dword [ebp - 0x1fc], eax
jne 0x416734
push 0x111
lea eax, [ebp - 0x1fc]
push 0x160
push eax
push edi
lea ecx, [ebp - 0x14]
call fcn.00406a8a
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push dword [ebp - 0x1fc]
push 0xffffffffffffffff
push dword [ebp + 0xc]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push dword [ebp - 0x1fc]
call dword [sym.imp.USER32.dll_DestroyIcon]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00406733
mov ebx, dword [ebp - 0x18]
add ebx, 4
mov dword [ebp - 0x18], ebx
cmp dword [ebx], edi
jne 0x4165fc
pop edi
pop ebx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004066f2
mov dword [ebp - 0x1c], 1
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00406733
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x416f42
Capabilities:
Copy file

Disassembly:
mov eax, 0x444084
call fcn.0043680c
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 8]
push edi
push eax
mov ecx, esi
call fcn.0040758a
and dword [ebp - 4], 0
push 0
push dword [ebp + 0xc]
mov ecx, eax
call fcn.00406a8a
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
or ebx, 0xffffffff
lea ecx, [ebp + 8]
mov edi, eax
mov dword [ebp - 4], ebx
call fcn.00406733
test edi, edi
je 0x416fda
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.0040758a
push 1
mov ecx, eax
pop edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
call fcn.00406a8a
push eax
push str._Autoup__CPdList::Backup_Dest__Temp___success_Backup__s___s_
push edi
call fcn.00408bf4
add esp, 0x10
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.00406733
push dword [ebp + 0xc]
or dword [esi + 0x1cc], 4
lea ecx, [esi + 0x1d8]
call fcn.00406ab0
jmp 0x4170e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.0040758a
push dword [ebp + 8]
mov ecx, eax
mov dword [ebp - 4], 2
push dword [ebp + 0xc]
call fcn.00406a8a
push eax
push str._Autoup__CPdList::Backup_Dest__Temp___CopyFile__s___s___GetLastError___d_
push 1
pop edi
push edi
call fcn.00408bf4
add esp, 0x14
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.00406733
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.0040758a
push 0
mov ecx, eax
mov dword [ebp - 4], 3
call fcn.00406a8a
push eax
call fcn.00405bc1
pop ecx
mov dword [ebp - 0x14], eax
pop ecx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x10]
call fcn.00406733
cmp dword [ebp - 0x14], 0
je 0x4170b0
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.0040758a
push dword [ebp + 8]
mov ecx, eax
mov dword [ebp - 4], 4
push dword [ebp + 0xc]
call fcn.00406a8a
push eax
push str._Autoup__CPdList::Backup_Dest__Temp___failed_Backup__s___s___GetLastError___d_
push edi
call fcn.00408bf4
add esp, 0x14
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.00406733
add esi, 0x94
mov ecx, dword [0x46487c]
push 0
push esi
push dword [ebp + 8]
push 0x283f
push edi
call fcn.004036cd
xor eax, eax
jmp 0x4170eb
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.0040758a
push dword [ebp + 8]
mov ecx, eax
mov dword [ebp - 4], 5
push dword [ebp + 0xc]
call fcn.00406a8a
push eax
push str._Autoup__CPdList::Backup_Dest__Temp___warning_Backup__s___s___GetLastError___d_
push edi
call fcn.00408bf4
add esp, 0x14
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.00406733
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x417c90
Capabilities:
Delete file
Move file

Disassembly:
mov eax, 0x444108
call fcn.0043680c
push ecx
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x1d8]
lea esi, [edi + 0x1d8]
mov eax, dword [eax - 4]
test eax, eax
jle 0x417e5a
mov eax, dword [edi + 0x1cc]
test al, 8
je 0x417cfb
mov ecx, esi
call fcn.00406a8a
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x417e68
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00406a8a
push eax
push str._Autoup__CPdList::RestoreBackupFiles_Bakcup__Destination___RestoreBackupFiles__s__error_Delete__GetLastError___d_
push 1
call fcn.00408bf4
add esp, 0x10
jmp 0x417e68
test al, 0x20
je 0x417d8e
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.0040fc9f
and dword [ebp - 4], 0
push 1
mov ecx, eax
call fcn.00406a8a
push eax
mov ecx, esi
call fcn.00406a8a
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov dword [ebp + 8], eax
call fcn.00406733
cmp dword [ebp + 8], 0
jne 0x417e68
lea eax, [ebp + 8]
mov ecx, edi
push eax
call fcn.0040fc9f
mov edi, eax
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call fcn.00406a8a
push eax
mov ecx, esi
call fcn.00406a8a
push eax
push str._Autoup__CPdList::RestoreBackupFiles_Bakcup__Destination___RestoreBackupFiles__s___s__error_Move__GetLastError___d_
push 1
call fcn.00408bf4
add esp, 0x14
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00406733
jmp 0x417e68
test al, 4
je 0x417e68
lea eax, [ebp + 8]
mov ecx, edi
push eax
call fcn.0040758a
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.00406a8a
push eax
mov ecx, esi
call fcn.00406a8a
push eax
push str._Autoup__CPdList::RestoreBackupFiles_Bakcup__Destination___RestoreBackupFiles__s___s_
push 1
call fcn.00408bf4
or dword [ebp - 4], 0xffffffff
add esp, 0x10
lea ecx, [ebp + 8]
call fcn.00406733
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.0040758a
push 0
mov ecx, eax
mov dword [ebp - 4], 3
call fcn.00406a8a
push eax
mov ecx, esi
call fcn.00406a8a
push eax
call fcn.00405c75
or dword [ebp - 4], 0xffffffff
add esp, 0xc
lea ecx, [ebp - 0x10]
mov dword [ebp + 8], eax
call fcn.00406733
cmp dword [ebp + 8], 0
jne 0x417e68
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.0040758a
mov edi, eax
mov dword [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call fcn.00406a8a
push eax
mov ecx, esi
call fcn.00406a8a
push eax
push str._Autoup__CPdList::RestoreBackupFiles_Bakcup__Destination___RestoreBackupFiles__s___s__error_copy__GetLastError___d_
push 1
call fcn.00408bf4
add esp, 0x14
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
jmp 0x417d84
push str._Autoup__CPdList::RestoreBackupFiles_Bakcup__Destination___failure_to_Get_BackupFiles_length_zero
push 1
call fcn.00408bf4
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4185a9
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x44417c
call fcn.0043680c
push ecx
push ecx
and dword [ebp - 0x10], 0
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx], 0
je 0x418743
mov esi, ebx
mov edi, ebx
mov eax, dword [esi]
push dword [eax + 0x20]
movzx eax, word [eax + 0xc]
push eax
push dword [ebp - 0x10]
push str._Autoup__CPdList::CopyEngine____m_ppd__d____04x__EngineType:_d_
push 1
call fcn.00408bf4
mov ecx, dword [esi]
add esp, 0x14
mov eax, dword [ecx]
call dword [eax + 0x18]
push eax
mov eax, dword [esi]
movzx eax, word [eax + 0xc]
push eax
push dword [ebp - 0x10]
push str._Autoup__CPdList::CopyEngine____m_ppd__d____04x__CopyEngineToSystem:_d_
push 1
call fcn.00408bf4
mov ecx, dword [esi]
add esp, 0x14
mov eax, dword [ecx]
call dword [eax + 0x1c]
push eax
mov eax, dword [esi]
movzx eax, word [eax + 0xc]
push eax
push dword [ebp - 0x10]
push str._Autoup__CPdList::CopyEngine____m_ppd__d____04x__CopyEngineToData:_d_
push 1
call fcn.00408bf4
mov ecx, dword [esi]
add esp, 0x14
mov eax, dword [ecx]
call dword [eax + 0x20]
push eax
mov eax, dword [esi]
movzx eax, word [eax + 0xc]
push eax
push dword [ebp - 0x10]
push str._Autoup__CPdList::CopyEngine____m_ppd__d____04x__CopyEngineToOnlyNative:_d_
push 1
call fcn.00408bf4
mov eax, dword [esi]
xor esi, esi
add esp, 0x14
cmp dword [eax + 0x14], esi
je 0x418732
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x18]
test eax, eax
jne 0x41867c
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x1c]
test eax, eax
jne 0x41867c
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x20]
test eax, eax
je 0x418732
mov eax, dword [edi]
cmp dword [eax + 0x20], esi
je 0x418726
cmp dword [eax + 0x24], esi
jne 0x418726
push str._Autoup__CPdList::CopyEngine____Brahma_Engine_patch_without_v3pro32e.dll_v3pro32n.dll__or_ASZ_Only__
push 1
call fcn.00408bf4
pop ecx
pop ecx
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x20]
test eax, eax
je 0x4186b8
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [edi]
mov ecx, ebx
call fcn.0041ad57
jmp 0x41872e
mov eax, dword [edi]
lea ecx, [ebp - 0x14]
add eax, 0x1c
push eax
call fcn.004066f2
push str.System
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.00406cdd
push str.EINFO.CFG
lea ecx, [ebp - 0x14]
call fcn.00406cdd
lea ecx, [ebp - 0x14]
call fcn.00406a8a
push eax
push 0xffffffffffffffff
push str.Newest
push str.E_INFO
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push dword [edi]
mov ecx, ebx
mov esi, eax
call fcn.0041b863
push eax
push esi
push dword [edi]
mov ecx, ebx
call fcn.0041ad57
test eax, eax
je 0x418755
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00406733
jmp 0x418732
push eax
mov ecx, ebx
call fcn.00418a1c
cmp eax, esi
je 0x418761
inc dword [ebp - 0x10]
add edi, 4
mov esi, edi
cmp dword [edi], 0
jne 0x4185cb
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00406733
xor eax, eax
jmp 0x418746
Function at 0x419594
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4442b8
call fcn.0043680c
sub esp, 0x24
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea ecx, [eax + 0x1c]
call fcn.00406a8a
mov esi, eax
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x10]
call fcn.004066bf
xor ebx, ebx
push str.System
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.00406cdd
lea eax, [ebp - 0x10]
push str.EINFO.CFG
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00406bba
add esp, 0xc
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.004066b3
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00406a8a
push eax
push 0xffffffffffffffff
push str.Newest
push str.E_INFO
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push esi
lea ecx, [ebp + 8]
mov dword [ebp - 0x14], eax
call fcn.00406ab0
push str.V3DrEx.dll
lea ecx, [ebp + 8]
call fcn.00406cdd
lea ecx, [ebp + 8]
call fcn.00406a8a
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4196dd
push dword [ebp - 0x14]
push str._Autoup__CPdList::CallDrFunc__Dr_fSetEngineInfo_nNewest_is__d
push 1
call fcn.00408893
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 0xc
push str.Dr_fSetEngineInfo
push edi
call esi
cmp eax, ebx
je 0x41966a
push dword [ebp - 0x14]
call eax
pop ecx
push str.Dr_fLoadAndInitEngine
push edi
call esi
cmp eax, ebx
je 0x4196d6
push 1
push ebx
push ebx
call eax
add esp, 0xc
test eax, eax
je 0x4196d6
push str.Dr_fGetEngineDateString
push edi
call esi
cmp eax, ebx
je 0x4196d6
lea ecx, [ebp - 0x30]
push 0x18
push ecx
push ebx
call eax
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
push str._Autoup__CPdList::CallDrFunc__Dr_fGetEngineDateString_:__s
push 1
call fcn.00408bf4
lea eax, [ebp - 0x30]
push eax
push dword [0x451730]
push dword [0x45172c]
push 0x80000002
call fcn.00406596
add esp, 0x1c
push str.Dr_fFreeEngine
push edi
call esi
cmp eax, ebx
je 0x4196d6
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00406733
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.00406733
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00406733
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x41a309
Capabilities:
Move file

Disassembly:
mov eax, 0x4443b4
call fcn.0043680c
push ecx
push ebx
push esi
push edi
lea ecx, [ebp - 0x10]
call fcn.004066b3
xor esi, esi
cmp dword [ebp + 8], esi
mov dword [ebp - 4], esi
je 0x41a3f0
mov ebx, dword [ebp + 0xc]
cmp ebx, esi
je 0x41a3f0
mov edi, dword [ebp + 0x10]
cmp edi, esi
je 0x41a3f0
mov ecx, dword [0x46487c]
push 2
lea eax, [ebp + 0xc]
push ebx
push eax
call fcn.00403c45
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00406a8d
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00406733
push 1
lea ecx, [ebp - 0x10]
call fcn.00406a8a
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push eax
push ebx
call esi
test eax, eax
jne 0x41a3a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x10]
push ebx
push str._Autoup__CPdList::CopyToDriverFile__Failure_to_Driver_file_MoveFile__s___s__GetLastError___d_
push 1
call fcn.00408bf4
add esp, 0x14
xor esi, esi
jmp 0x41a3f0
push 0
push ebx
push dword [ebp + 8]
call fcn.00405c75
add esp, 0xc
test eax, eax
jne 0x41a3c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push dword [ebp + 8]
push str._Autoup__CPdList::CopyToDriverFile__Failure_to_Driver_file_Copy_File__s___s__GetLastError___d_
jmp 0x41a396
push 5
push 0
lea ecx, [ebp - 0x10]
call fcn.00406a8a
push eax
call esi
or dword [edi + 0x1cc], 0x20
lea eax, [ebp - 0x10]
push eax
lea ecx, [edi + 0x1d8]
call fcn.00406a8d
push 1
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00406733
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x41b863
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x44452c
call fcn.0043680c
sub esp, 0xc
push esi
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push eax
call fcn.0041b919
and dword [ebp - 4], 0
push str.EINFO.CFG
push eax
lea eax, [ebp + 8]
push eax
call fcn.00406bba
add esp, 0xc
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00406733
lea ecx, [ebp - 0x18]
call fcn.004066b3
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004066b3
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.00406a8a
push eax
push 0xffffffffffffffff
push str.Newest
push str.E_INFO
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, eax
push esi
push str._Autoup__CPdList::GetNewestSZ__nNewest___d
push 1
call fcn.00408bf4
add esp, 0xc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00406733
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00406733
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00406733
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x41da65
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.software_ahnlab_twaupdate
push 0x80000002
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41dad1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push str.frsvc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41dac8
mov esi, dword [ebp - 8]
push esi
push str._autoup__CPdTWC::IsFirstUpdate__First_update_for_master_without_engine:_d
push 1
call fcn.00408893
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x41dad6
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 2
push 0
push str.software_ahnlab_twaupdate
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41db21
push str.frsvc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push eax
push str._autoup__CPdTWC::ClearFirstUpdate__delete_frsvc_value_:_d
push 1
call fcn.00408893
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x41ec15
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x41ec50
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x41ec37
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x41ec48
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x41ec52
inc edi
add eax, 0x28
cmp edi, esi
jb 0x41ec2d
xor eax, eax
pop edi
pop esi
ret

Function at 0x41eea0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
clc
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x41eec3
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
invalid

Function at 0x421b6d
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
xor esi, esi
cmp edx, esi
je 0x421b9d
cmp dword [esp + 0xc], 0x6400000
ja 0x421b9d
xor ecx, ecx
cmp dword [esp + 0xc], esi
jbe 0x421ba0
mov al, byte [ecx + edx]
add al, 0x31
xor al, 0x23
mov byte [ecx + edx], al
inc ecx
cmp ecx, dword [esp + 0xc]
jb 0x421b8a
jmp 0x421ba0
push 2
pop esi
mov eax, esi
pop esi
ret

Function at 0x421c1f
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
xor esi, esi
cmp edx, esi
je 0x421c4f
cmp dword [esp + 0xc], 0x6400000
ja 0x421c4f
xor ecx, ecx
cmp dword [esp + 0xc], esi
jbe 0x421c52
mov al, byte [ecx + edx]
xor al, 0x23
sub al, 0x31
mov byte [ecx + edx], al
inc ecx
cmp ecx, dword [esp + 0xc]
jb 0x421c3c
jmp 0x421c52
push 2
pop esi
mov eax, esi
pop esi
ret

Function at 0x422b44
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor edi, edi
push str.IsWow64Process
push str.kernel32
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, edi
je 0x422b94
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
jne 0x422b83
mov dword [ebp - 4], eax
jmp 0x422b86
mov eax, dword [ebp - 4]
dec eax
neg eax
sbb eax, eax
and al, 0
add eax, 0x20119
jmp 0x422b99
mov eax, 0x20019
lea ecx, [ebp - 8]
push ecx
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x422bd3
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x14]
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x422bd6
push 1
pop edi
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x4230b4
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
push esi
push edi
xor esi, esi
push dword [ebp + 8]
push str._AutoUp__BA_DeleteSummaryFileInDir__Start_Delete_Summary_File_:___s
push 1
call fcn.00408bf4
push 0x44e390
push dword [ebp + 8]
call fcn.0041fb56
add esp, 0x14
mov dword [ebp - 8], eax
test eax, eax
jne 0x4230f4
mov dword [ebp - 4], 3
jmp 0x423215
lea ecx, [ebp - 0x148]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x423118
and dword [ebp - 4], 0
jmp 0x423205
test byte [ebp - 0x148], 0x20
je 0x4231c9
lea eax, [ebp - 0x11c]
push eax
call fcn.004379d0
cmp eax, 6
pop ecx
mov dword [ebp - 4], eax
jle 0x4231c9
push 2
lea eax, [ebp - 0x11c]
push 0x458884
push eax
call fcn.00429ea0
test eax, eax
jne 0x4231c9
mov eax, dword [ebp - 4]
push 4
push str..scd
lea eax, [ebp + eax - 0x120]
push eax
call fcn.00429ea0
test eax, eax
jne 0x4231c9
test esi, esi
je 0x42317a
push esi
call fcn.0042abf0
lea eax, [ebp - 0x11c]
push eax
push dword [ebp + 8]
call fcn.0041fb56
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x4231a7
lea eax, [ebp - 0x11c]
push eax
push str._AutoUp__BA_DeleteSummaryFileInDir__ERROR:_Create_pSummaryFilePath_Fail____s__
push 1
call fcn.00408bf4
add esp, 0xc
push esi
call fcn.0042018d
pop ecx
test eax, eax
push esi
jne 0x4231ba
push str._AutoUp__BA_DeleteSummaryFileInDir__INFO:_Success_Delete_Summary_File_:___s
jmp 0x4231bf
push str._AutoUp__BA_DeleteSummaryFileInDir__INFO:_Fail_Delete_Summary_File_:___s
push 1
call fcn.00408bf4
add esp, 0xc
lea eax, [ebp - 0x148]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x423118
push ebx
call edi
push dword [ebp + 8]
and dword [ebp - 4], 0
or ebx, 0xffffffff
push str._AutoUp__BA_DeleteSummaryFileInDir__End_Delete_Summary_File_:___s
push 1
call fcn.00408bf4
add esp, 0xc
test esi, esi
je 0x423205
push esi
call fcn.0042abf0
push dword [ebp - 8]
call fcn.0042abf0
cmp ebx, 0xffffffff
je 0x423215
push ebx
call edi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret