joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000307a
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
mov esi, 0x104
push str._s.
lea eax, [ebp - 0x348]
push esi
push eax
call fcn.10001426
add esp, 0x10
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
test edi, edi
je 0x10003166
cmp edi, 0xffffffff
je 0x10003166
cmp byte [ebp - 0x113], 0
jne 0x100030dd
cmp byte [ebp - 0x114], 0x2e
je 0x10003132
cmp byte [ebp - 0x112], 0
jne 0x100030f8
cmp byte [ebp - 0x114], 0x2e
jne 0x100030f8
cmp byte [ebp - 0x113], 0x2e
je 0x10003132
lea eax, [ebp - 0x114]
push eax
push ebx
push 0x1004a050
lea eax, [ebp - 0x244]
push esi
push eax
call fcn.10001426
add esp, 0x14
lea eax, [ebp - 0x244]
test byte [ebp - 0x140], 0x10
push eax
je 0x1000312c
call fcn.1000307a
jmp 0x10003131
call fcn.100032ea
pop ecx
lea eax, [ebp - 0x140]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100030cb
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
neg eax
sbb eax, eax
neg eax
jmp 0x10003168
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000316d
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
mov esi, 0x104
push str._s.
lea eax, [ebp - 0x348]
push esi
push eax
call fcn.10001426
add esp, 0x10
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
test edi, edi
je 0x1000324a
cmp edi, 0xffffffff
je 0x1000324a
cmp byte [ebp - 0x113], 0
jne 0x100031d0
cmp byte [ebp - 0x114], 0x2e
je 0x1000321e
cmp byte [ebp - 0x112], 0
jne 0x100031eb
cmp byte [ebp - 0x114], 0x2e
jne 0x100031eb
cmp byte [ebp - 0x113], 0x2e
je 0x1000321e
lea eax, [ebp - 0x114]
push eax
push ebx
push 0x1004a050
lea eax, [ebp - 0x244]
push esi
push eax
call fcn.10001426
add esp, 0x14
test byte [ebp - 0x140], 0x10
je 0x1000321e
lea eax, [ebp - 0x244]
push eax
call fcn.1000316d
pop ecx
lea eax, [ebp - 0x140]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100031be
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100032c8
Capabilities:
Copy file
Set file attributes

Disassembly:
push 0x80
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
ret
Function at 0x100032ea
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0x80
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
ret

Function at 0x100033a9
Capabilities:
Get file size

Disassembly:
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push ebx
push 3
push ebx
push 1
push ebx
push dword [esp + 0x28]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x100033e1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100033da
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x10003689
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100036a0
test al, 0x10
je 0x100036a0
push 1
pop eax
ret
xor eax, eax
ret

Function at 0x1000375f
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
test byte [ebp + 0xc], 0x10
push ebx
push esi
push edi
je 0x100038e0
push dword [ebp + 0x10]
mov esi, 0x104
lea eax, [ebp - 0x30c]
push dword [ebp + 8]
push esi
push eax
call fcn.100036db
add esp, 0x10
mov ebx, str.ahn.ui
lea eax, [ebp - 0x30c]
mov edi, 0x1004a050
push ebx
push eax
push edi
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.10001426
lea eax, [ebp - 0x208]
push 0
push eax
call fcn.1000336b
add esp, 0x1c
test eax, eax
je 0x1000383d
lea eax, [ebp - 0x30c]
push str.ahn.bak
push eax
push edi
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.10001426
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.1000336b
add esp, 0x1c
test eax, eax
je 0x10003801
lea eax, [ebp - 0x104]
push eax
call fcn.100032ea
pop ecx
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x1000383d
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._AhnuiRenameForUNIX__move_file_error_errno_d__:__s_____s
push 1
call fcn.1000aeb9
add esp, 0x14
lea eax, [ebp - 0x30c]
push str.ahn.unix
push eax
push edi
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.10001426
lea eax, [ebp - 0x208]
push 0
push eax
call fcn.1000336b
add esp, 0x1c
test eax, eax
je 0x100038e0
lea eax, [ebp - 0x30c]
push ebx
push eax
push edi
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.10001426
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.1000336b
add esp, 0x1c
test eax, eax
je 0x100038a4
lea eax, [ebp - 0x104]
push eax
call fcn.100032ea
pop ecx
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x100038e0
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._AhnuiRenameForUNIX__move_file_error_errno_d__:__s_____s
push 1
call fcn.1000aeb9
add esp, 0x14
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100038e5
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
test byte [ebp + 0xc], 0x10
push ebx
push esi
push edi
je 0x10003a66
push dword [ebp + 0x10]
mov esi, 0x104
lea eax, [ebp - 0x30c]
push dword [ebp + 8]
push esi
push eax
call fcn.100036db
add esp, 0x10
mov ebx, str.ahn.ui
lea eax, [ebp - 0x30c]
mov edi, 0x1004a050
push ebx
push eax
push edi
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.10001426
lea eax, [ebp - 0x208]
push 0
push eax
call fcn.1000336b
add esp, 0x1c
test eax, eax
je 0x100039c3
lea eax, [ebp - 0x30c]
push str.ahn.unix
push eax
push edi
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.10001426
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.1000336b
add esp, 0x1c
test eax, eax
je 0x10003987
lea eax, [ebp - 0x104]
push eax
call fcn.100032ea
pop ecx
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x100039c3
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._AhnuiRecoveryForUNIX__move_file_error_errno_d__:__s_____s
push 1
call fcn.1000aeb9
add esp, 0x14
lea eax, [ebp - 0x30c]
push str.ahn.bak
push eax
push edi
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.10001426
lea eax, [ebp - 0x208]
push 0
push eax
call fcn.1000336b
add esp, 0x1c
test eax, eax
je 0x10003a66
lea eax, [ebp - 0x30c]
push ebx
push eax
push edi
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.10001426
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.1000336b
add esp, 0x1c
test eax, eax
je 0x10003a2a
lea eax, [ebp - 0x104]
push eax
call fcn.100032ea
pop ecx
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x10003a66
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._AhnuiRecoveryForUNIX__move_file_error_errno_d__:__s_____s
push 1
call fcn.1000aeb9
add esp, 0x14
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10003ffe
Capabilities:
Move file

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
cmp dword [esi + 0x30c], ebp
mov dword [esp + 0x10], ebp
jne 0x10004029
push str._ahnup.dll_CSuperBackupCopy_Init_Failed
push 1
call fcn.1000aeb9
pop ecx
pop ecx
push 0xfffffffffffffffe
pop eax
jmp 0x1000419d
lea ebx, [esi + 0x208]
lea edi, [esi + 0x104]
push ebx
push edi
push esi
mov ecx, esi
call fcn.100041a3
cmp eax, ebp
jge 0x10004088
push ebx
push edi
push esi
push eax
push str._ahnup.dll__CSuperBackupCopy::Copy____error:_d__BackupFiles__s___s___s_
push 1
call fcn.1000aeb9
add esp, 0x18
push edi
push ebx
push str._ahnup.dll__CSuperBackupCopy::Copy___Recover_::_SuperCopyFiles__s___s_
push 1
call fcn.1000aeb9
add esp, 0x10
mov ecx, esi
push ebp
push edi
push ebx
call fcn.10004393
push ebx
push str._ahnup.dll__CSuperBackupCopy::Copy___Recover_::_Clean_Up_Folder___s_
push 1
call fcn.1000aeb9
add esp, 0xc
xor eax, eax
jmp 0x1000419d
push dword [esi + 0x310]
mov ecx, esi
push edi
push esi
call fcn.10004393
cmp eax, ebp
jge 0x1000418a
push edi
push esi
push eax
push str._ahnup.dll__CSuperBackupCopy::Copy____error:_d__SuperCopyFiles__s___s_
push 1
call fcn.1000aeb9
add esp, 0x14
push str._ahnup.dll__CSuperBackupCopy::Copy___Recover_::_using_m_vMFL_data
push 1
call fcn.1000aeb9
mov eax, dword [esi + 0x310]
pop ecx
pop ecx
mov ecx, dword [eax + 4]
cmp ecx, ebp
jne 0x100040d0
xor eax, eax
jmp 0x100040d8
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 3
lea ebp, [eax - 1]
test ebp, ebp
jl 0x1000416c
mov ecx, dword [esi + 0x310]
push 0
push ebp
call fcn.100048ae
push dword [eax]
call fcn.1000336b
pop ecx
test eax, eax
pop ecx
je 0x10004112
mov ecx, dword [esi + 0x310]
push ebp
call fcn.100048ae
push dword [eax]
call fcn.100032ea
pop ecx
mov ecx, dword [esi + 0x310]
push ebp
call fcn.100048ae
push dword [eax]
mov ecx, dword [esi + 0x310]
push ebp
call fcn.100048ae
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x10004165
mov ecx, dword [esi + 0x310]
push ebp
call fcn.100048ae
push dword [eax]
mov ecx, dword [esi + 0x310]
push ebp
call fcn.100048ae
push dword [eax + 4]
push str._ahnup.dll__SuperBackupCopy__::Copy___Recover_::_MovefileEx_return_FALSE____s___s_
push 1
call fcn.1000aeb9
add esp, 0x10
dec ebp
jns 0x100040e3
push edi
push ebx
push str._ahnup.dll__CSuperBackupCopy::Copy___Recover_::_SuperCopyFiles__s___s_
push 1
call fcn.1000aeb9
add esp, 0x10
mov ecx, esi
push 0
push edi
push ebx
call fcn.10004393
jmp 0x10004199
push esi
call fcn.1000307a
pop ecx
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x100041a3
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1148
call fcn.100318b0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
mov dword [ebp - 8], ecx
push dword [ebp + 0xc]
call ebx
cmp eax, 0xffffffff
jne 0x100041cc
xor eax, eax
jmp 0x10004346
push dword [ebp + 8]
mov esi, 0x400
lea eax, [ebp - 0xd48]
push esi
push eax
call fcn.1000180e
push str..
lea eax, [ebp - 0xd48]
push esi
push eax
call fcn.100020b4
push dword [ebp + 0x10]
call fcn.10002fbc
pop ecx
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0xd48]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x10004245
lea eax, [ebp - 0xd48]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._ahnup.dll__BackupFiles____error:_d__FindFirstFile__s_
push 1
call fcn.1000aeb9
add esp, 0x10
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0xffffffffffffff9b
pop eax
jmp 0x10004346
push edi
mov edi, 0x1004a050
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x1148]
push dword [ebp + 8]
push edi
push esi
push eax
call fcn.100046c9
add esp, 0x14
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x948]
push dword [ebp + 0xc]
push edi
push esi
push eax
call fcn.100046c9
add esp, 0x14
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x548]
push dword [ebp + 0x10]
push edi
push esi
push eax
call fcn.100046c9
add esp, 0x14
test byte [ebp - 0x148], 0x10
je 0x100042d1
cmp byte [ebp - 0x11c], 0x2e
je 0x10004320
lea eax, [ebp - 0x548]
mov ecx, dword [ebp - 8]
push eax
lea eax, [ebp - 0x948]
push eax
lea eax, [ebp - 0x1148]
push eax
call fcn.100041a3
test eax, eax
jl 0x1000434c
jmp 0x10004320
lea eax, [ebp - 0x948]
push eax
call ebx
cmp eax, 0xffffffff
je 0x10004320
lea eax, [ebp - 0x548]
push eax
call ebx
cmp eax, 0xffffffff
je 0x10004308
lea eax, [ebp - 0x548]
push eax
call fcn.100032ea
pop ecx
lea eax, [ebp - 0x548]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x10004350
lea eax, [ebp - 0x548]
push eax
lea eax, [ebp - 0x948]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x1000436b
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1000424b
xor esi, esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0xc
mov esi, eax
jmp 0x1000433a
lea eax, [ebp - 0x548]
push eax
push str._ahnup.dll__BackupFiles___Error_File_Exist_:__s
push 1
call fcn.1000aeb9
add esp, 0xc
push 0xffffffffffffff99
pop esi
jmp 0x1000433a
lea eax, [ebp - 0x548]
push eax
lea eax, [ebp - 0x948]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._ahnup.dll__BackupFiles____error:_d__MoveFile__s___s_
push 1
call fcn.1000aeb9
add esp, 0x14
push 0xffffffffffffff9a
jmp 0x10004368
Function at 0x1000473e
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
mov esi, 0x104
push dword [ebp + 0xc]
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.1000180e
push str.ahn.ui
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.100020b4
lea eax, [ebp - 0x10c]
mov dword [ebp - 8], str.EngineDate
push eax
xor eax, eax
cmp word [ebp + 8], ax
push 0x20
push dword [ebp + 0x10]
mov dword [ebp - 4], str.BuildDate
setne al
push 0x100583f4
push dword [ebp + eax*4 - 8]
push str.Update
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop esi
leave
ret

Function at 0x100047a9
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
and byte [ebp - 0x104], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
push dword [ebp + 0xc]
mov esi, 0x104
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.1000180e
push str.ahn.ui
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.100020b4
and byte [ebp - 0x30c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x30b]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x30c]
push esi
push eax
push 0x100583f4
push str.EngineDate
push str.Update
call ebx
and byte [ebp - 0x208], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push esi
push eax
push 0x100583f4
push str.BuildDate
push str.Update
call ebx
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x30c]
push eax
movzx eax, word [ebp + 8]
push eax
push str._AhnUp__AhnUIVersion__PID_04x__EngineDate_s__BuildDate_s
push 1
call fcn.1000b21a
add esp, 0x14
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100052bd
Capabilities:
Clear file content
Get common file path
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
push ebx
xor ebx, ebx
push edi
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x1000548c
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x10005482
cmp esi, 0xffffffff
je 0x10005482
lea eax, [ebp - 0xc]
push eax
lea eax, [esi + 1]
push eax
call fcn.1000e5dd
push ebx
mov dword [ebp - 4], eax
push dword [ebp - 0xc]
call fcn.1000e5dd
add esp, 0x10
cmp dword [ebp - 4], ebx
mov dword [ebp + 8], eax
je 0x1000546b
cmp eax, ebx
je 0x10005462
lea eax, [ebp - 0x10]
push ebx
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x10], esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10005462
cmp dword [ebp - 0x10], esi
jne 0x10005462
push ebx
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.1000e573
mov eax, dword [ebp + 8]
add esp, 0x10
push dword [ebp + 0xc]
mov byte [eax + esi], bl
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x1000545b
mov esi, 0x400
lea eax, [ebp - 0x418]
push esi
push ebx
push eax
call fcn.10031550
add esp, 0xc
lea eax, [ebp - 0x818]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x418]
push eax
push ebx
lea eax, [ebp - 0x818]
push 0x100583f4
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push ebx
push 0x80
push 2
push ebx
push 1
lea eax, [ebp - 0x418]
push 0x40000000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x10005462
push dword [ebp + 8]
call fcn.10031620
pop ecx
mov edi, eax
lea eax, [ebp - 0x18]
push ebx
push eax
push edi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10005414
cmp edi, dword [ebp - 0x18]
jne 0x10005414
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
lea eax, [ebp - 0x418]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 9
push dword [ebp + 0xc]
push eax
call fcn.100050f6
mov dword [ebp - 8], eax
lea eax, [ebp - 0x418]
push eax
call fcn.100032ea
add esp, 0x1c
cmp dword [ebp - 8], ebx
jne 0x10005462
push str._AhnUp__DeltaUI2DeltaUIC__AhnLib_Compress___return_FALSE
push 1
call fcn.1000aeb9
pop ecx
pop ecx
jmp 0x10005462
mov dword [ebp - 8], 1
push dword [ebp - 4]
call fcn.1000e636
pop ecx
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x10005479
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x10005482
push dword [ebp + 8]
call fcn.1000e636
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, dword [ebp - 8]
pop edi
pop ebx
leave
ret
Function at 0x1000581d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
and byte [ebp - 0x108], 0
push ebx
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
mov ebx, dword [ebp + 8]
rep stosd dword es:[edi], eax
cmp dword [ebx + 0x18], 0xffffffff
stosw word es:[edi], ax
stosb byte es:[edi], al
jne 0x10005874
push str._AhnUpP2P__User_Canceled___Send_quit_now.
push 1
call fcn.1000b21a
pop ecx
lea eax, [ebp - 0x108]
pop ecx
push str.quit_now
push 0x104
push eax
call fcn.10001426
add esp, 0xc
jmp 0x1000591f
push esi
mov esi, 0x104
push str.quit
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.10001426
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x10005904
mov eax, dword [0x1005840c]
shr eax, 0x14
je 0x10005904
cmp eax, 0x1e
jbe 0x100058ad
mov dword [ebp + 8], 0x708
jmp 0x100058b3
imul eax, eax, 0x3c
mov dword [ebp + 8], eax
push 7
mov ecx, ebx
call fcn.1001dc85
cmp dword [ebp + 8], eax
jle 0x10005904
and byte [ebp - 0x20c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x20b]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x1004b974
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.10001426
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.100020b4
lea eax, [ebp - 0x108]
push eax
push str._AhnUpP2P__Download_Complete__so_send__s.
push 1
call fcn.1000b21a
add esp, 0xc
and dword [ebx + 0x18], 0
pop esi
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.10031620
pop ecx
inc eax
push eax
lea eax, [ebp - 0x108]
push eax
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push str.Download_Complete..
mov ecx, ebx
call fcn.10008206
pop edi
pop ebx
leave
ret

Function at 0x10005f64
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push ebx
push esi
mov esi, ecx
je 0x10005ffb
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x10005ffb
push 1
push dword [ebp + 8]
call fcn.1000336b
pop ecx
test eax, eax
pop ecx
je 0x10005ffb
mov eax, dword [esi]
push edi
push dword [eax + 0x45c]
push 0xffffffffffffffff
push str.country_code
push str.update
call fcn.1000e1e0
mov edi, eax
mov esi, str.DuriAhn
push edi
push esi
push str._s__d_
push dword [ebp + 0xc]
push ebx
call fcn.10001426
add esp, 0x14
cmp edi, 0xffffffff
pop edi
je 0x10005ffb
push dword [ebp + 8]
push 0xffffffffffffffff
push str.OrgUD
push ebx
call fcn.1000e1e0
cmp eax, 0xffffffff
jne 0x10005ffb
push dword [ebp + 0xc]
push 0
push ebx
call fcn.10031550
add esp, 0xc
push esi
push str._s__1_
push dword [ebp + 0xc]
push ebx
call fcn.10001426
add esp, 0x10
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x1000707b
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ec
push ebx
push esi
push edi
mov esi, ecx
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x1eb]
mov byte [ebp - 0x1ec], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 1
push ebx
lea eax, [ebp - 0x1ec]
push 0x104
push eax
mov ecx, esi
call fcn.1001e7a6
lea eax, [esi + 0x29344]
push eax
push str._AhnUpP2P__Try_CreateChildProcess_s
push 1
mov dword [ebp - 8], eax
call fcn.1000b21a
add esp, 0xc
lea eax, [ebp - 0x1ec]
push eax
push str._AhnUpP2P__DuriAhn_Default_CurrentPath_s
push 1
call fcn.1000b21a
push 0x44
lea eax, [ebp - 0xe8]
push ebx
push eax
call fcn.10031550
lea edi, [esi + 0x3c]
push 0x10
push ebx
push edi
call fcn.10031550
add esp, 0x24
lea eax, [ebp - 0xe8]
push edi
push eax
lea eax, [ebp - 0x1ec]
push eax
push ebx
push 0x8000000
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100071e5
push 0x9c
lea eax, [ebp - 0xa4]
push ebx
push eax
call fcn.10031550
add esp, 0xc
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x10007175
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xa0], 5
jb 0x10007188
jne 0x100071fe
cmp dword [ebp - 0x9c], ebx
jne 0x100071fe
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x100071c1
cmp dword [ebp - 4], 0x103
jne 0x100071c1
push 1
pop ebx
push str._AhnUpP2P__CreateChildProcess_STILL_ACTIVE_Success
push ebx
call fcn.1000b21a
pop ecx
pop ecx
jmp 0x100071e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov dword [esi + 0x38], eax
push dword [ebp - 4]
push dword [ebp - 8]
push str._AhnUpP2P__CreateChildProcess_Fail___s_ExitCode_d__ErrCode_d_
push 1
call fcn.1000b21a
add esp, 0x14
mov dword [ebp - 4], ebx
jmp 0x100071fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._AhnUpP2P__CreateChildProcess_GetLastError_:__d
push 1
mov dword [esi + 0x38], eax
call fcn.1000b21a
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret