joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100087db
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
push 1
xor edi, edi
pop ebp
mov ebx, ecx
push edi
push edi
push 3
push edi
push edi
push 0xc0000000
push dword [esp + 0x40]
mov dword [esp + 0x34], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10008934
push dword [esp + 0x28]
mov dword [esp + 0x1c], edi
push str._AhnUpP2P__CloseDuriAhn__s__duri.ahn_is_still_running....
push ebp
call fcn.1000b21a
add esp, 0xc
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 2
push edi
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x10008916
push str._AhnUpP2P__CloseDuriAhn_Send_quit_now.
push ebp
call fcn.1000b21a
pop ecx
lea eax, [esp + 0x24]
pop ecx
push edi
push eax
push 9
push str.quit_now
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0x29448]
cmp eax, edi
ja 0x10008884
push 2
pop eax
inc eax
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
imul eax, eax, 0x7d0
push eax
call esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
mov ebx, 0x258
push edi
push edi
push 3
push edi
push edi
push 0xc0000000
push dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x10008900
mov eax, dword [esp + 0x14]
push 5
cdq
pop ecx
idiv ecx
test edx, edx
jne 0x100088e5
mov eax, dword [esp + 0x10]
push 0xa
cdq
pop ecx
idiv ecx
push eax
push str._AhnUpP2P__CloseDuriAhn_Pipe_disconnect_waiting...__02d_60_Sec_
push 1
call fcn.1000b21a
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
add dword [esp + 0x10], 6
inc dword [esp + 0x14]
cmp dword [esp + 0x10], ebx
jl 0x100088a1
jmp 0x10008941
push 0x7d0
call esi
push 1
pop eax
push str._AhnUpP2P__CloseDuriAhn_duri.ahn_is_now_stopped.
mov dword [esp + 0x1c], eax
push eax
jmp 0x1000893a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._AhnUpP2P__CloseDuriAhn_SetNamedPipeHandleState_failed___d_
push ebp
call fcn.1000b21a
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10008941
push str._AhnUpP2P__CloseDuriAhn_duri.ahn_is_already_closed.
push ebp
call fcn.1000b21a
pop ecx
pop ecx
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x1000894f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push edi
mov dword [ebp - 0x18], ecx
push str.Kernel32.DLL
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
mov dword [ebp - 0x14], edi
je 0x10008ac1
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateToolhelp32Snapshot
push edi
call esi
push str.Process32First
push edi
mov ebx, eax
call esi
push str.Process32Next
push edi
mov dword [ebp - 0xc], eax
call esi
xor esi, esi
mov dword [ebp - 0x10], eax
cmp eax, esi
je 0x10008ab4
cmp dword [ebp - 0xc], esi
je 0x10008ab4
cmp ebx, esi
je 0x10008ab4
mov edi, dword [ebp + 8]
mov dword [ebp - 8], esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x10008a3d
push 0
push 2
call ebx
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp + 8], edi
je 0x10008aa3
lea eax, [ebp - 0x140]
mov dword [ebp - 0x140], 0x128
push eax
push edi
call dword [ebp - 0xc]
test eax, eax
je 0x10008a4f
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov ebx, str.duri.ahn
lea eax, [ebp - 0x11c]
push ebx
push eax
call edi
test eax, eax
je 0x10008a2f
lea eax, [ebp - 0x140]
push eax
push dword [ebp + 8]
call dword [ebp - 0x10]
test eax, eax
je 0x10008a38
lea eax, [ebp - 0x11c]
push ebx
push eax
jmp 0x10008a0e
mov eax, dword [ebp - 0x138]
mov dword [ebp - 8], eax
push dword [ebp + 8]
jmp 0x10008a50
mov ecx, dword [ebp - 0x18]
push edi
call fcn.10008ac6
test eax, eax
je 0x10008aa3
mov dword [ebp - 8], edi
jmp 0x10008a52
push edi
call esi
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10008aa3
push ebx
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x10008a91
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov dword [ebp - 4], eax
call esi
push dword [ebp - 4]
push ebx
push str._AhnUpP2P__TerminateDuriAhn_old_duri.ahn__d__closed__use_terminate_process_ret__d_
push 1
call fcn.1000b21a
add esp, 0x10
jmp 0x10008ab1
push ebx
push str._AhnUpP2P__TerminateDuriAhn_old_duri.ahn__d__is_already_closed.
push 1
call fcn.1000b21a
add esp, 0xc
jmp 0x10008ab1
push str._AhnUpP2P__TerminateDuriAhn_old_duri.ahn_execute_count_is_zero.
push 1
call fcn.1000b21a
pop ecx
pop ecx
mov esi, dword [ebp - 4]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
pop esi
pop ebx
pop edi
leave
ret 4
Function at 0x10008bc0
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
test ebp, ebp
push edi
jbe 0x10008c4a
push ebp
call fcn.10008ac6
test eax, eax
je 0x10008c4a
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
push ebp
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x10008c4a
cmp ebx, 0x1e
je 0x10008c1d
push esi
call edi
push ebx
push str._AhnUpP2P__DuriAhnHangCheck_check_count_d
push 1
call fcn.1000b21a
add esp, 0xc
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x1f
jl 0x10008bde
jmp 0x10008c4a
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ebx, eax
test ebx, ebx
je 0x10008c30
xor eax, eax
jmp 0x10008c36
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str._AhnUpP2P__DuriAhnHangCheck_maybe_duri.ahn_is_hang._so_TerminateProcess__d___d_
push 1
call fcn.1000b21a
add esp, 0x10
push esi
call edi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x10008d9d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push 6
mov esi, ecx
pop edi
jle 0x10008e3d
mov ecx, esi
call fcn.1000707b
test eax, eax
je 0x10008df1
push dword [ebp + 8]
mov ecx, esi
call fcn.10008c51
mov edi, eax
cmp edi, 6
je 0x10008dda
cmp edi, 0x1a
jne 0x10008e02
push 0
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x10008df6
inc ebx
cmp ebx, dword [ebp + 0xc]
jl 0x10008db9
jmp 0x10008e02
push 0xe
pop edi
jmp 0x10008e3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 9
mov dword [esi + 0x38], eax
pop edi
test edi, edi
jne 0x10008e3d
push str.user.dat
push 0x100582d8
lea eax, [ebp - 0x104]
push 0x104
push eax
call fcn.10002f5f
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
push dword [esi + 0x44]
push 0x1004cac8
push str.DuriAhn
call fcn.1000e541
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10009408
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x10009445
cmp dword [ebp - 4], 0x103
jne 0x10009445
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10009445
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
leave
ret 4

Function at 0x10009bd6
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x10009bf8
cmp eax, 1
je 0x10009bf8
cmp eax, 2
jne 0x10009d07
shl eax, 5
mov eax, dword [eax + 0x1004cfd0]
test eax, eax
je 0x10009d2c
cmp byte [eax], 0
je 0x10009d2c
cmp dword [esi], 0
jne 0x10009d0b
push ebx
push eax
mov ebx, 0x104
push 0x100582d8
lea eax, [ebp - 0x30c]
push ebx
push eax
call fcn.10002f5f
and byte [ebp - 0x208], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x207]
and byte [ebp - 0x104], 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 - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x100582d8
push str.wsock32.dll
push edi
lea eax, [ebp - 0x208]
push ebx
push eax
call fcn.10002f5f
push str.wsock32.bad
push edi
lea eax, [ebp - 0x104]
push ebx
push eax
call fcn.10002f5f
lea eax, [ebp - 0x208]
push 0
push eax
call fcn.1000336b
add esp, 0x38
test eax, eax
pop ebx
je 0x10009cd1
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]
lea eax, [ebp - 0x104]
push eax
call fcn.100032ea
pop ecx
cmp dword [esi + 4], 0
jne 0x10009cde
mov ecx, esi
call fcn.10009d62
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [ebp - 0x30c]
push eax
call edi
test eax, eax
mov dword [esi], eax
jne 0x10009d0b
mov eax, dword [esi + 4]
shl eax, 5
push dword [eax + 0x1004cfd0]
call edi
test eax, eax
mov dword [esi], eax
jne 0x10009d0b
xor eax, eax
jmp 0x10009d4c
mov edi, dword [ebp + 8]
mov ecx, esi
push edi
call fcn.10009b54
test eax, eax
jne 0x10009d21
mov eax, dword [edi*4 + 0x1004d030]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x10009d4c
push dword [ebp + 8]
mov ecx, esi
call fcn.10009b54
test eax, eax
jne 0x10009d42
push 0x78
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
mov ecx, esi
call fcn.10009b54
pop edi
pop esi
leave
ret 4
Function at 0x10009d62
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 8], ebx
jne 0x10009e29
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]
cmp dword [ebp - 0xa0], 5
jne 0x10009df2
cmp dword [ebp - 0x9c], 1
jne 0x10009dc5
cmp word [ebp - 0x10], bx
je 0x10009dce
cmp word [ebp - 0x10], 1
jmp 0x10009dcc
cmp dword [ebp - 0x9c], 2
jne 0x10009df2
push str.rasapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [edi + 8], eax
je 0x10009df2
push str.RasEnumEntriesA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, eax
cmp edx, ebx
jne 0x10009df6
xor eax, eax
jmp 0x10009e2c
mov ecx, 0x84
xor eax, eax
lea edi, [ebp - 0x2b4]
mov dword [ebp - 8], ebx
rep stosd dword es:[edi], eax
mov eax, 0x214
mov dword [ebp - 4], eax
mov dword [ebp - 0x2b8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2b8]
push eax
push ebx
push ebx
call edx
push 1
pop eax
pop edi
pop ebx
leave
ret

Function at 0x10009f55
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and byte [ebp - 0x104], 0
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
and byte [ebp - 0x208], 0
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x207]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
pop edi
jne 0x10009fa6
leave
ret
lea eax, [ebp - 0x104]
push str.Iphlpapi.dll
push eax
lea eax, [ebp - 0x208]
push 0x1004a050
push eax
call fcn.10033b69
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
leave
ret

Function at 0x1000a459
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.100318b0
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [ebp + 0x10], ebx
push edi
jle 0x1000a4c9
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1003371a
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x1000a4c9
and byte [ebp - 0x1000], al
mov ecx, 0x3ff
lea edi, [ebp - 0xfff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x1000]
push 0x1004d150
push eax
call fcn.10033b69
add esp, 0xc
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
inc ebx
cmp ebx, dword [ebp + 0x10]
jl 0x1000a472
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000a6c7
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push 8
add eax, 0x1c
pop edx
xor dword [eax], ecx
mov ecx, dword [eax]
sub eax, 4
dec edx
jne 0x1000a6d5
ret
Function at 0x1000a6e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push esi
push 8
add eax, 0x1c
pop edx
mov ecx, dword [eax]
mov esi, ecx
xor esi, dword [esp + 0xc]
mov dword [esp + 0xc], ecx
mov dword [eax], esi
sub eax, 4
dec edx
jne 0x1000a6eb
pop esi
ret
Function at 0x1000aa0f
Capabilities:
Check mutex on windows
Copy file
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3134
call fcn.100318b0
push ebx
push esi
mov esi, 0x3ff
push edi
xor ebx, ebx
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x2133]
mov byte [ebp - 0x2134], bl
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x2134]
push eax
call fcn.1000a591
pop ecx
lea eax, [ebp - 0x2134]
pop ecx
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x1000aa75
push str._MassUP__Fail:_Cannot_Create_Mutex.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x1000abf8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1000aa8c
push str._MassUP__Fail:_Mutex_Already_Exists.
jmp 0x1000abde
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x133]
mov byte [ebp - 0x134], bl
push str.mass2.dat
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x10058414
lea eax, [ebp - 0x134]
push 0x1004a050
push eax
call fcn.10033b69
add esp, 0x10
lea eax, [ebp - 0x134]
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x1133]
mov byte [ebp - 0x1134], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 8
xor eax, eax
pop ecx
lea edi, [ebp - 0x2f]
mov byte [ebp - 0x30], bl
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x30]
push eax
call fcn.1000a99b
lea eax, [ebp - 0x30]
mov dword [esp], 0xfff
push eax
push 0x10058518
call fcn.10031cd0
add esp, 0xc
lea eax, [ebp - 0x30]
push 0x1004d1d4
push eax
push str._AhnLab_UpdateLog_
lea eax, [ebp - 0x1134]
push 0x1004d210
push eax
call fcn.10033b69
lea eax, [ebp - 0x1134]
push eax
call fcn.10031620
mov dword [ebp - 8], eax
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x3133]
mov byte [ebp - 0x3134], bl
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x80b
mov byte [ebp - 1], bl
push dword [ebp - 8]
stosb byte es:[edi], al
lea eax, [ebp - 0x1134]
push eax
lea eax, [ebp - 0x3134]
push dword [ebp - 8]
push eax
call fcn.10009fe8
add esp, 0x30
test eax, eax
je 0x1000ab87
push str._MassUP__Fail:_Enc_Fail
jmp 0x1000abde
push 3
push 0x1004bd90
push dword [ebp + 8]
call fcn.1000a459
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x1000abd9
push esi
push 1
pop edi
lea eax, [ebp - 8]
push edi
push 4
push eax
call fcn.100335b0
push esi
push edi
lea eax, [ebp - 1]
push edi
push eax
call fcn.100335b0
push esi
push edi
push dword [ebp - 8]
lea eax, [ebp - 0x3134]
push eax
call fcn.100335b0
push esi
call fcn.10033533
add esp, 0x34
mov ebx, edi
jmp 0x1000abe4
push str._MassUP__Fail:_File_open_Fail.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000abfd
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3014
call fcn.100318b0
push ebx
push edi
push 3
push 0x1004c460
push dword [ebp + 0xc]
call fcn.1000a459
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000ac6d
and byte [ebp - 0x2014], al
mov ecx, 0x3ff
lea edi, [ebp - 0x2013]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x2014]
push dword [ebp + 0xc]
push str._MassUp__Fail:_Open_File.__s__errorno_d
push eax
call fcn.10033b69
add esp, 0x10
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x1000ad90
and byte [ebp - 0x3014], 0
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x3013]
rep stosd dword es:[edi], eax
and byte [ebp - 0xc], 0
push 0x1004d1d4
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.10031620
mov ebx, str._AhnLab_UpdateLog_
mov edi, eax
push ebx
call fcn.10031620
push 1
lea eax, [edi + eax + 0x20]
pop edi
and dword [ebp - 0x14], 0
push dword [ebp - 4]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], edi
push 4
push edi
push eax
call fcn.1003372d
add esp, 0x18
cmp eax, 4
jne 0x1000acff
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push edi
push edi
push eax
call fcn.1003372d
add esp, 0x10
cmp eax, edi
jne 0x1000acff
push dword [ebp - 4]
lea eax, [ebp - 0x3014]
push dword [ebp - 8]
push edi
push eax
call fcn.1003372d
add esp, 0x10
cmp eax, dword [ebp - 8]
jne 0x1000acff
and dword [ebp - 0x10], 0
jmp 0x1000ad0a
push str._MassUp__Fail:_Read_File.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 4]
call fcn.10033533
and byte [ebp - 0x1014], 0
pop ecx
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x1013]
cmp dword [ebp - 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
jne 0x1000ad66
push dword [ebp - 0xc]
lea eax, [ebp - 0x3014]
push 0x80b
push dword [ebp - 8]
push eax
lea eax, [ebp - 0x1014]
push dword [ebp - 8]
push eax
call fcn.1000a223
lea eax, [ebp - 0x1014]
push eax
call fcn.1000a8a9
add esp, 0x1c
test eax, eax
jne 0x1000ad71
push dword [ebp + 0xc]
call fcn.1000aa0f
pop ecx
jmp 0x1000ad90
push 0x20
push ebx
call fcn.10031620
pop ecx
lea eax, [ebp + eax - 0x1014]
push eax
push dword [ebp + 8]
call fcn.10031cd0
add esp, 0xc
push 1
pop eax
pop edi
pop ebx
leave
ret
Function at 0x1000ad94
Capabilities:
Check for time delay via gettickcount
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
push dword [ebp + 8]
call fcn.10031620
pop ecx
inc eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x1000aeb5
push dword [ebp + 8]
call fcn.10031620
push eax
push dword [ebp + 8]
push edi
call fcn.10031cd0
push edi
call fcn.10031620
add esp, 0x14
cmp eax, 0x104
jae 0x1000aeae
push esi
push 0x103
mov esi, 0x10058414
push edi
push esi
call fcn.10031cd0
push esi
call fcn.10031620
lea eax, [eax + 0x10058413]
add esp, 0x10
cmp byte [eax], 0x5c
pop esi
jne 0x1000ae0a
mov byte [eax], bl
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x20019
push str.SoftwareAhnLabDynaUpdate
push 0x80000002
lea ecx, [ebp - 4]
mov dword [ebp - 4], ebx
call fcn.1000b276
test eax, eax
jne 0x1000ae91
lea eax, [ebp - 8]
mov dword [ebp + 8], ebx
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push str.SULogSize
mov dword [ebp - 0xc], ebx
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x1000ae67
or dword [0x1004d138], eax
jmp 0x1000ae91
cmp eax, 3
jae 0x1000ae78
mov dword [0x1004d138], 0x300000
jmp 0x1000ae91
cmp eax, 0x1e
jbe 0x1000ae89
mov dword [0x1004d138], 0x1e00000
jmp 0x1000ae91
shl eax, 0x14
mov dword [0x1004d138], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.10033844
cmp dword [ebp - 4], ebx
pop ecx
je 0x1000aeb5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1000aeb5
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop ebx
leave
ret
Function at 0x1000df28
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
cmp esi, ebx
je 0x1000e0a8
cmp dword [ebp + 0x18], ebx
je 0x1000e0a8
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
cmp eax, ebx
je 0x1000e092
cmp byte [eax], bl
je 0x1000e092
cmp dword [ebp + 0x1c], ebx
je 0x1000e092
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x1000e077
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x1000e065
cmp esi, 0xffffffff
je 0x1000e065
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 1]
push eax
call fcn.1000e5dd
push ebx
mov dword [ebp + 0x1c], eax
push dword [ebp - 0x10]
call fcn.1000e5dd
add esp, 0x10
cmp dword [ebp + 0x1c], ebx
mov edi, eax
je 0x1000e05a
cmp edi, ebx
je 0x1000e051
lea eax, [ebp - 0xc]
push ebx
push eax
push esi
push dword [ebp + 0x1c]
mov dword [ebp - 0xc], esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000e051
cmp dword [ebp - 0xc], esi
jne 0x1000e051
push ebx
push dword [ebp - 0x10]
push dword [ebp + 0x1c]
push edi
call fcn.1000e573
mov ecx, dword [ebp + 8]
add esp, 0x10
cmp ecx, ebx
mov byte [edi + esi], bl
mov eax, edi
mov dword [ebp - 4], ebx
je 0x1000e020
cmp byte [ecx], bl
je 0x1000e020
lea eax, [ebp - 4]
push ecx
push eax
push edi
call fcn.1000e0b0
add esp, 0xc
cmp eax, ebx
je 0x1000e051
push dword [ebp + 0xc]
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.1000e13b
add esp, 0xc
cmp eax, ebx
je 0x1000e051
push dword [ebp + 0x18]
mov ecx, dword [ebp - 4]
push eax
mov byte [ecx], bl
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov dword [ebp - 8], 1
push dword [ebp + 0x1c]
call fcn.1000e636
pop ecx
cmp edi, ebx
je 0x1000e065
push edi
call fcn.1000e636
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
pop edi
jne 0x1000e08d
mov esi, dword [ebp + 0x14]
cmp dword [ebp + 0x10], ebx
jne 0x1000e080
mov byte [esi], bl
jmp 0x1000e08d
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp - 8]
jmp 0x1000e0aa
cmp dword [ebp + 0x10], ebx
jne 0x1000e09b
mov byte [esi], bl
jmp 0x1000e0a8
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor eax, eax
pop esi
pop ebx
leave
ret 0x18