joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000e739
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
jne 0x1000e74e
xor eax, eax
jmp 0x1000e820
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x1000e81d
push esi
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x1000e812
cmp esi, 0xffffffff
je 0x1000e812
lea eax, [ebp - 8]
push eax
lea eax, [esi + 1]
push eax
call fcn.1000e5dd
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
mov dword [ebp - 0xc], edi
je 0x1000e812
lea eax, [ebp + 8]
push ebx
push eax
push esi
push edi
mov dword [ebp + 8], esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000e80b
cmp dword [ebp + 8], esi
jne 0x1000e80b
cmp dword [ebp + 0x10], ebx
je 0x1000e7fd
push ebx
push dword [ebp - 8]
call fcn.1000e5dd
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
je 0x1000e7f8
push ebx
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call fcn.1000e573
mov eax, dword [ebp + 0xc]
mov byte [edi + esi], bl
add esp, 0x10
mov dword [ebp - 4], 1
mov dword [eax], edi
push dword [ebp - 0xc]
jmp 0x1000e80c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 1
mov dword [eax], edi
jmp 0x1000e812
push edi
call fcn.1000e636
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, dword [ebp - 4]
pop ebx
leave
ret

Function at 0x1000e823
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x1000e8f9
mov ebx, dword [ebp + 0xc]
cmp ebx, edi
je 0x1000e8f9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x1000e8f9
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
mov eax, 0x80000000
push edi
push eax
push edi
push 1
push eax
push ebx
mov dword [ebp - 4], edi
call esi
cmp eax, 0xffffffff
je 0x1000e87d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
push 0x80
push 4
push edi
push edi
push 0xc0000000
push ebx
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1000e8f3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp + 0xc]
push ecx
push eax
call fcn.1000e5dd
mov esi, eax
pop ecx
cmp esi, edi
pop ecx
je 0x1000e8ec
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.1000e573
add esp, 0x10
lea eax, [ebp - 8]
push edi
push eax
push dword [ebp + 0xc]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000e8e5
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 8]
jne 0x1000e8e5
mov dword [ebp - 4], 1
push esi
call fcn.1000e636
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop esi
jmp 0x1000e8fb
xor eax, eax
pop edi
pop ebx
leave
ret
Function at 0x100112d1
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
xor eax, eax
shr ecx, 2
mov edx, ecx
dec ecx
test edx, edx
je 0x10011314
push ebx
push edi
lea edi, [ecx + 1]
mov ecx, dword [ebp + 8]
movzx ebx, byte [ecx + 1]
xor edx, edx
mov dh, byte [ecx + 3]
mov dl, byte [ecx + 2]
shl edx, 8
or edx, ebx
movzx ebx, byte [ecx]
shl edx, 8
or edx, ebx
add ecx, 4
xor dword [ebp + 0x10], edx
dec edi
jne 0x100112ee
pop edi
pop ebx
jmp 0x10011317
mov ecx, dword [ebp + 8]
and esi, 3
mov edx, esi
pop esi
dec edx
je 0x10011334
dec edx
je 0x1001132d
dec edx
jne 0x10011339
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, dword [ebp + 0x10]
pop ebp
ret

Function at 0x10011e49
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
lea ecx, [ebp + 0x18]
neg eax
sbb eax, eax
push ecx
and eax, 0x100
add eax, 0x20019
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10011ea7
lea eax, [ebp + 0xc]
push edi
push eax
lea eax, [ebp + 8]
push eax
push 0
push 0
mov dword [ebp + 0xc], 4
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
test edi, edi
pop edi
je 0x10011eaa
mov eax, dword [ebp + 0x14]
pop ebp
ret

Function at 0x10011f06
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp + 0x1c]
neg eax
sbb eax, eax
push esi
and eax, 0x100
push ecx
add eax, 0x20019
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x10011f54
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x14]
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x1c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
ret
Function at 0x10011fbb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x18]
lea ecx, [ebp + 0x18]
neg eax
sbb eax, eax
push edi
and eax, 0x100
xor edi, edi
add eax, 0x20019
push ecx
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
mov dword [ebp - 8], 0xfffffffe
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x1001204c
push ebx
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp + 0xc]
push edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push edi
mov dword [ebp + 0xc], 3
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call esi
mov ebx, eax
cmp ebx, edi
jne 0x10012031
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0xc]
push dword [ebp + 0x14]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call esi
mov ebx, eax
cmp ebx, 2
jne 0x1001203a
or dword [ebp - 8], 0xffffffff
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop esi
cmp ebx, edi
pop ebx
je 0x1001204f
mov eax, dword [ebp - 8]
pop edi
leave
ret

Function at 0x1001215d
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0xffffffff
je 0x100121a9
call fcn.10012149
cmp dword [ebp + 8], 0
je 0x100121ad
cmp dword [ebp + 0xc], 0
je 0x100121ad
push dword [ebp + 0xc]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x1001219e
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call fcn.10031990
add esp, 0xc
push edi
jmp 0x100121af
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor eax, eax
jmp 0x100121b8
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebp
ret 8
Function at 0x10012de7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push edi
push dword [ebp + 8]
call ebx
test eax, eax
je 0x10012e5c
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x10012e5c
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10012e2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CUpdateStatus__Fail_to_open_ahn.ui__d_.
jmp 0x10012e92
push 2
push edi
push 0xfffffffffffffff7
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x10012e65
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CUpdateStatus__Fail_to_set_file_pointer__d_.
push 1
call fcn.1000b21a
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
lea eax, [ebp - 4]
push edi
push eax
push 8
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
call ebx
test eax, eax
jne 0x10012e9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CUpdateStatus__Fail_to_read_CRC_of_Ahn.ui___d_.
push 1
call fcn.1000b21a
add esp, 0xc
jmp 0x10012e5c
push 1
pop eax
jmp 0x10012e5e

Function at 0x10012ea3
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 4], ecx
je 0x10012fa1
cmp word [ebp + 8], bx
je 0x10012fa1
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x20b]
mov byte [ebp - 0x20c], bl
mov esi, 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x20c]
push esi
push eax
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
call sub.ahnupctl.dll_AhnUpCtl_GetInfo
add esp, 0x1c
test ax, ax
je 0x10012f77
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x107]
mov byte [ebp - 0x108], bl
push str.bldinfo.ini
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [ebp - 4]
stosb byte es:[edi], al
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.1001237a
push ebx
push ebx
push 3
push ebx
push 1
lea eax, [ebp - 0x108]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x10012f77
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x100583f4
push str.BuildNumber
push str.Build
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
pop edi
pop esi
test eax, eax
jne 0x10012fa1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
movzx eax, word [ebp + 8]
push eax
push str._CUpdateStatus___04x_:_BuildNumber_fail___d_
push 1
call fcn.1000b21a
add esp, 0x10
pop ebx
leave
ret 0xc
Function at 0x10013b1c
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ebx, ebx
push str.Kernel32.DLL
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
call edi
push str.User32.DLL
mov dword [esi + 0x1c], eax
call edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x1c]
cmp eax, ebx
je 0x10013b9b
push str.GetNativeSystemInfo
push eax
call edi
push str.IsWow64Process
mov dword [esi + 4], eax
push dword [esi + 0x1c]
call edi
push str.IsWow64Process2
mov dword [esi + 8], eax
push dword [esi + 0x1c]
call edi
push str.Wow64EnableWow64FsRedirection
mov dword [esi + 0xc], eax
push dword [esi + 0x1c]
call edi
push str.GetSystemWow64DirectoryA
mov dword [esi + 0x10], eax
push dword [esi + 0x1c]
call edi
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x10013bad
push str.IsWow64Message
push eax
call edi
mov dword [esi + 0x18], eax
pop edi
pop esi
pop ebx
ret
Function at 0x10014eb4
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
push ebx
push esi
push 1
mov esi, 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x324]
mov ebx, ecx
push esi
push eax
call fcn.1001e7a6
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x11c]
push esi
push eax
call fcn.1000180e
push str.ahn.ui
lea eax, [ebp - 0x324]
push esi
push eax
call fcn.100020b4
push str.temp.ui
lea eax, [ebp - 0x11c]
push esi
push eax
call fcn.100020b4
mov eax, dword [ebx]
test byte [eax + 0x11], 0x20
je 0x10015001
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.1000336b
pop ecx
test eax, eax
pop ecx
je 0x10015001
and byte [ebp - 0x18], 0
push edi
xor eax, eax
lea edi, [ebp - 0x17]
and byte [ebp - 0xc], 0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0xb]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
lea edi, [ebx + 0x29110]
push eax
lea eax, [ebp - 0x324]
push eax
mov ecx, edi
call fcn.10012de7
test eax, eax
je 0x10014ff3
lea eax, [ebp - 0xc]
mov ecx, edi
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.10012de7
test eax, eax
je 0x10014ff3
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.100333c0
pop ecx
test eax, eax
pop ecx
je 0x10014ff3
push 1
lea eax, [ebp - 0x220]
push dword [ebp + 8]
mov ecx, ebx
push esi
push eax
call fcn.1001e7a6
push str.backup
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.100020b4
lea eax, [ebp - 0x220]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str._ahn.ui
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.100020b4
lea eax, [ebp - 0x220]
push 0
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.100032c8
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
call fcn.100032ea
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1001ca40
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
push str.WriteEDI
mov esi, ecx
push str.SOFTWAREAhnlabDynaUpdate
push 0x80000002
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], edi
call fcn.10011e49
add esp, 0x14
cmp eax, 1
jne 0x1001cc17
xor ebx, ebx
add esi, 0x2e0c
mov ecx, dword [esi + 4]
cmp ecx, edi
je 0x1001cc17
mov eax, dword [esi + 8]
sub eax, ecx
mov ecx, 0x2d4
cdq
idiv ecx
cmp ebx, eax
jae 0x1001cc17
push ebx
mov ecx, esi
call fcn.10020b2b
cmp word [eax], di
mov dword [ebp - 8], eax
je 0x1001cab3
inc ebx
jmp 0x1001ca80
push edi
push dword [ebp + 8]
call fcn.100328cf
pop ecx
test eax, eax
pop ecx
jne 0x1001caed
push dword [ebp + 8]
call fcn.100032ea
test eax, eax
pop ecx
jne 0x1001caed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push str._CheckAndCreateEDI__delete_fail_old_EDI__s___d_
push 1
call fcn.1000aeb9
add esp, 0x10
jmp 0x1001cc17
and byte [ebp - 0x214], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x213]
and byte [ebp - 0x318], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x317]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push str.user.dat
mov esi, 0x104
push 0x100582d8
lea eax, [ebp - 0x318]
push esi
push eax
call fcn.10002f5f
add esp, 0x10
lea eax, [ebp - 0x318]
mov ebx, str.0.0.0.0
push eax
lea eax, [ebp - 0x214]
push esi
push eax
push ebx
push str.BuildVerion
push str.AUItem0
call fcn.1000df28
and byte [ebp - 0x41c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x41b]
and byte [ebp - 0x110], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
push 0
mov ax, word [eax]
push eax
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.1001e7a6
lea eax, [ebp - 0x110]
push str.ahn.ui
push eax
lea eax, [ebp - 0x110]
push esi
push eax
call fcn.10002f5f
add esp, 0x10
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x41c]
push esi
push eax
push ebx
push str.EngineDate
push str.UPDATE
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push dword [ebp + 8]
lea eax, [ebp - 0x214]
mov edi, str.Global
push eax
push str.BeforeEV
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push edi
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x41c]
push eax
push str.DownloadEV
push edi
call esi
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1001d939
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
push ebx
mov ebx, 0x104
push dword [ebp + 0xc]
lea eax, [ebp - 0x45c]
mov dword [ebp - 0x10], ecx
push str._s.
push ebx
push eax
call fcn.10001426
add esp, 0x10
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
test eax, eax
mov dword [ebp - 0xc], eax
je 0x1001dae9
cmp eax, 0xffffffff
je 0x1001dae9
push esi
push edi
cmp byte [ebp - 0x123], 0
jne 0x1001d9a3
cmp byte [ebp - 0x124], 0x2e
je 0x1001dac6
cmp byte [ebp - 0x122], 0
jne 0x1001d9c2
cmp byte [ebp - 0x124], 0x2e
jne 0x1001d9c2
cmp byte [ebp - 0x123], 0x2e
je 0x1001dac6
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x254]
push dword [ebp + 0xc]
push 0x1004a050
push ebx
push eax
call fcn.10001426
add esp, 0x14
test byte [ebp - 0x150], 0x10
je 0x1001da04
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x254]
push eax
push dword [ebp + 8]
call fcn.1001d939
jmp 0x1001dabe
mov ecx, dword [ebp + 0x10]
xor esi, esi
mov edx, dword [ecx + 4]
cmp edx, esi
jne 0x1001da15
mov dword [ebp - 8], esi
jmp 0x1001da25
mov eax, dword [ecx + 8]
mov edi, 0x21c
sub eax, edx
cdq
idiv edi
mov dword [ebp - 8], eax
cmp dword [ebp - 8], esi
mov dword [ebp - 4], esi
jbe 0x1001dab1
jmp 0x1001da36
mov ecx, dword [ebp + 0x10]
push dword [ebp - 4]
call fcn.10020beb
mov esi, eax
lea eax, [ebp - 0x124]
lea edi, [esi + 2]
push edi
push eax
call fcn.100316a0
pop ecx
test eax, eax
pop ecx
jne 0x1001daa6
add esi, 0x106
push str.delta.
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
push edi
jne 0x1001da74
push str.delta
jmp 0x1001da75
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x358]
push str._s_s_s
push ebx
push eax
call fcn.10001426
add esp, 0x18
lea eax, [ebp - 0x358]
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.100316a0
pop ecx
test eax, eax
pop ecx
je 0x1001dabe
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jb 0x1001da33
lea eax, [ebp - 0x254]
push eax
call fcn.100032ea
pop ecx
mov ecx, dword [ebp - 0x10]
call fcn.1001f363
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1001d98d
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1001f7cd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push edi
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1001f802
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push str._AhnUp_GetCRC__Fail_to_open__s__d_.
jmp 0x1001f87f
cmp dword [ebp + 0x14], esi
je 0x1001f838
or eax, 0xffffffff
push 2
sub eax, dword [ebp + 0x10]
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1001f838
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push str._AhnUp_GetCRC__Fail_to_set_file__s__pointer__d_.
push 1
call fcn.1000b21a
add esp, 0x10
jmp 0x1001f85e
lea eax, [ebp - 4]
push esi
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001f869
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x1001f869
push 1
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x1001f88b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push str._AhnUp_GetCRC__Fail_to_read_CRC__s__d_.
push 1
call fcn.1000b21a
add esp, 0x10
xor eax, eax
pop edi
pop esi
leave
ret 0x10
Function at 0x1001fde8
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
lea eax, [ebp - 0x110]
push 0x104
mov edi, ecx
push eax
call fcn.1000180e
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor ebx, ebx
mov byte [ebp + eax - 0x111], bl
lea eax, [ebp - 0x110]
push ebx
push eax
call fcn.1000336b
pop ecx
test eax, eax
pop ecx
jne 0x1001ff09
push ebx
push esi
call fcn.1000336b
pop ecx
test eax, eax
pop ecx
je 0x1001fe76
push edi
lea eax, [ebp - 8]
push 0x10013d7f
push eax
lea eax, [ebp + 8]
mov dword [ebp + 8], ebx
push eax
push esi
mov dword [ebp - 8], ebx
call fcn.1000512c
add esp, 0x14
test eax, eax
jne 0x1001fe7d
push esi
push str._AhnUp_MakeOldTypeDeltaUI__AhnLib_IniExtract_error_:__s
push 1
call fcn.1000aeb9
add esp, 0xc
xor eax, eax
jmp 0x1001ff0c
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov byte [eax + ecx], bl
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
call fcn.1000e5dd
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
je 0x1001ff00
push 1
push dword [ebp - 4]
push dword [ebp + 8]
push edi
call fcn.1000e573
add esp, 0x10
lea eax, [ebp - 0x110]
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001fef9
lea eax, [ebp - 0xc]
push ebx
push eax
push dword [ebp - 4]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1001fef2
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jne 0x1001fef2
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.1000e636
pop ecx
push dword [ebp + 8]
call fcn.10032915
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10025d50
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
test eax, eax
jle 0x10025db7
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x20]
sub ebp, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
mov edx, eax
mov ebx, eax
sar edx, 8
sub edx, 5
and eax, 0xf
sar ebx, 4
and edx, 0xf
add ebx, 5
and ebx, 0xf
mov dl, byte [edx + edi]
sub dl, byte [ebx + edi]
mov bl, byte [ecx + ebp]
add dl, bl
mov bl, byte [eax + edi]
mov eax, dword [esp + 0x1c]
xor dl, bl
mov byte [ecx], dl
mov ebx, dword [esi]
inc ebx
inc ecx
dec eax
mov dword [esi], ebx
mov dword [esp + 0x1c], eax
jne 0x10025d72
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
xor eax, eax
ret
Function at 0x10027030
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esp + 4]
push ebp
test eax, eax
push esi
jne 0x10027044
mov esi, 0x22100003
mov eax, esi
pop esi
pop ebp
ret
push 8
call fcn.10023980
mov ebp, eax
test ebp, ebp
jne 0x1002705b
mov esi, 0x22100004
jmp 0x10027159
push 8
push 0
push ebp
call fcn.10023c90
mov dword [ebp], 0x8f
mov eax, dword [0x10059550]
test eax, eax
jne 0x10027096
push 0x10059554
call fcn.10027180
mov esi, eax
add esp, 4
test esi, esi
jne 0x10027159
mov dword [0x10059550], 1
mov eax, dword [0x10059554]
mov ecx, dword [esp + 0x10]
cmp eax, 1
je 0x100270b1
test ecx, 0x40000
mov esi, 7
je 0x100270b6
mov esi, 3
test cl, 1
push edi
je 0x100270c1
test cl, 2
jne 0x100270c6
test cl, 4
je 0x100270cd
mov edi, 0xc0000000
jmp 0x100270e1
mov eax, ecx
and al, 2
neg al
sbb eax, eax
and eax, 0xc0000000
add eax, 0x80000000
mov edi, eax
test ch, 1
je 0x100270f6
mov eax, ecx
and eax, 0x400
neg eax
sbb eax, eax
add eax, 2
jmp 0x100270fb
mov eax, 3
test ecx, 0x10000
je 0x10027106
and esi, 0xfffffffe
test ecx, 0x20000
je 0x10027111
and esi, 0xfffffffd
test ecx, 0x100000
mov edx, 0x80
je 0x10027123
mov edx, 0x180
mov ecx, dword [esp + 0x10]
push 0
push edx
push eax
push 0
push esi
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 4], eax
pop edi
jne 0x10027168
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10027154
cmp eax, 3
mov esi, 0x22100005
jne 0x10027159
mov esi, 0x22100009
test ebp, ebp
je 0x10027163
push ebp
call fcn.10023990
mov eax, esi
pop esi
pop ebp
ret
mov edx, dword [esp + 0x14]
pop esi
xor eax, eax
mov dword [edx], ebp
pop ebp
ret