joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001115e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.1000cd10
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100111f9
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x10019064]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x100111f9
cmp eax, 1
je 0x1001121a
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100111f9
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x100111c6
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x100111f5
xor eax, eax
inc eax
jmp 0x10011239
cmp edi, eax
jae 0x100111fd
xor eax, eax
jmp 0x10011239
cmp eax, esi
jae 0x10011204
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x10019064]
jmp 0x1001121d
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10011866
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x10016598
call fcn.10009e6c
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x10019398], edi
jne 0x100118aa
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10011895
mov dword [0x10019398], ebx
jmp 0x100118aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x100118aa
mov dword [0x10019398], 2
mov eax, dword [0x10019398]
cmp eax, ebx
jne 0x100118ca
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x1001198d
cmp eax, 2
je 0x100118d3
cmp eax, edi
jne 0x100118fb
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x100118e6
mov eax, dword [0x1001928c]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x10011902
xor eax, eax
jmp 0x1001198d
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.1000cd10
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x10011935
cmp esi, edi
jne 0x1001194b
push dword [ebp - 0x20]
call fcn.1000878a
pop ecx
mov esi, eax
cmp esi, edi
je 0x100118fb
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x1001197e
cmp dword [ebp + 0x14], edi
jne 0x10011968
push edi
push edi
jmp 0x1001196e
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x1001198a
push esi
call fcn.100082e1
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.10009ea7
ret
Function at 0x10011996
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x100165a8
call fcn.10009e6c
xor esi, esi
cmp dword [0x1001939c], esi
jne 0x100119da
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100119c5
mov dword [0x1001939c], edi
jmp 0x100119da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x100119da
mov dword [0x1001939c], 2
mov eax, dword [0x1001939c]
cmp eax, 2
je 0x10011abb
cmp eax, esi
je 0x10011abb
cmp eax, 1
jne 0x10011a1f
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x10011a08
mov eax, dword [0x1001928c]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x10011a26
xor eax, eax
jmp 0x10011acd
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.1000cd10
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x10011a5c
cmp edi, esi
jne 0x10011a77
lea eax, [ebx + ebx]
push eax
call fcn.1000878a
pop ecx
mov edi, eax
cmp edi, esi
je 0x10011a1f
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10011aaa
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x10011a94
push esi
push esi
jmp 0x10011a9a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x10011ab6
push edi
call fcn.100082e1
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x10011acd
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.10009ea7
ret
Function at 0x10001c8a
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x10]
xor esi, esi
cmp dword [ebp + 0x14], esi
push edi
mov dword [ebp - 0x4c], eax
jne 0x10001cae
mov dword [ebp - 0x48], esi
jmp 0x10001cc0
push dword [ebp + 0x18]
lea eax, [ebp - 0x48]
push dword [ebp + 0x14]
push eax
call fcn.10009220
add esp, 0xc
mov ebx, dword [ebp + 0x1c]
cmp ebx, esi
jne 0x10001cd4
lea ebx, [ebp - 0xa0]
mov dword [ebp + 0x20], 0x50
push esi
lea eax, [ebp + 0x14]
push esi
push eax
push dword [ebp + 8]
xor edi, edi
mov dword [ebp + 0x14], 2
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x10001d1f
lea eax, [ebp + 0xc]
push esi
push eax
lea eax, [ebp - 0x50]
push 0x50
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10001d1f
push esi
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
cmp edi, esi
jne 0x10001d2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x24]
mov dword [ecx], eax
jmp 0x10001d34
mov eax, dword [ebp + 0x24]
movzx ecx, word [eax]
mov dword [eax], ecx
cmp dword [ebp + 0x28], esi
je 0x10001d53
cmp edi, esi
je 0x10001d53
cmp dword [ebx], esi
je 0x10001d46
push 1
pop eax
jmp 0x10001d55
mov eax, dword [ebp + 0x24]
mov dword [eax], 0x3a
xor eax, eax
jmp 0x10001d55
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100027b7
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x14], 0
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x4c], eax
jne 0x100027d8
and dword [ebp - 0x48], 0
jmp 0x100027ea
push dword [ebp + 0x18]
lea eax, [ebp - 0x48]
push dword [ebp + 0x14]
push eax
call fcn.10009220
add esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0x1c]
push edi
push 0x50
test esi, esi
pop ebx
jne 0x10002800
lea esi, [ebp - 0xc0]
mov dword [ebp + 0x20], ebx
lea eax, [ebp - 0x70]
push 0x20
push eax
push dword [ebp + 8]
call fcn.10002863
mov edi, dword [ebp + 0x24]
add esp, 0xc
lea eax, [ebp - 0x50]
push dword [ebp + 0x2c]
push edi
push dword [ebp + 0x20]
push esi
push ebx
push eax
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
mov ebx, eax
test ebx, ebx
jne 0x10002839
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1000283c
movzx eax, word [edi]
cmp dword [ebp + 0x28], 0
mov dword [edi], eax
je 0x1000285c
test ebx, ebx
je 0x1000285c
cmp dword [esi], 0
je 0x10002852
push 1
pop eax
jmp 0x1000285e
mov dword [edi], 0x3a
xor eax, eax
jmp 0x1000285e
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10002ac2
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 0x10002b0e
call fcn.10002aae
cmp dword [ebp + 8], 0
je 0x10002b12
cmp dword [ebp + 0xc], 0
je 0x10002b12
push dword [ebp + 0xc]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x10002b03
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call fcn.10009220
add esp, 0xc
push edi
jmp 0x10002b14
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor eax, eax
jmp 0x10002b1d
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebp
ret 8
Function at 0x10003012
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x62b]
mov byte [ebp - 0x62c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, str.version.dll
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x127]
mov byte [ebp - 0x128], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x22b]
mov byte [ebp - 0x22c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x100031f8
cmp dword [ebp + 0x14], ebx
je 0x100031f8
push dword [ebp + 0xc]
mov byte [eax], bl
lea eax, [ebp - 0x62c]
push dword [ebp + 8]
push 0x400
push eax
call fcn.1000698e
add esp, 0x10
mov esi, 0x104
lea eax, [ebp - 0x128]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x100031f8
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x22c]
push esi
push eax
call fcn.1000698e
add esp, 0x10
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0xc], edi
je 0x100031f8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetFileVersionInfoA
push edi
call esi
push str.GetFileVersionInfoSizeA
push edi
mov dword [ebp + 8], eax
call esi
push str.VerQueryValueA
mov edi, eax
push dword [ebp - 0xc]
call esi
cmp dword [ebp + 8], ebx
mov dword [ebp - 8], eax
je 0x100031eb
cmp edi, ebx
je 0x100031eb
cmp eax, ebx
je 0x100031eb
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x62c]
push eax
call edi
mov esi, eax
cmp esi, ebx
je 0x100031e8
push esi
call fcn.10009019
mov edi, eax
pop ecx
cmp edi, ebx
je 0x100031e8
push edi
push esi
push dword [ebp - 0x14]
lea eax, [ebp - 0x62c]
push eax
call dword [ebp + 8]
test eax, eax
je 0x100031e1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0xc]
push eax
push str.VarFileInfoTranslation
push edi
call dword [ebp - 8]
test eax, eax
je 0x100031e1
cmp dword [ebp - 0x18], ebx
je 0x100031e1
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
movzx eax, word [eax]
shr ecx, 0x10
push ecx
push eax
lea eax, [ebp - 0x82c]
push str.StringFileInfo_04hX_04hXFileVersion
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x82c]
push eax
push edi
call dword [ebp - 8]
test eax, eax
je 0x100031e1
cmp dword [ebp - 0x10], ebx
je 0x100031e1
cmp dword [ebp + 0xc], ebx
je 0x100031e1
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov dword [ebp - 4], 1
push edi
call fcn.10008f30
pop ecx
mov ebx, dword [ebp - 4]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
jmp 0x100031fa
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10003292
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x3ff]
mov byte [ebp - 0x400], bl
push dword [ebp + 0xc]
xor esi, esi
rep stosd dword es:[edi], eax
push dword [ebp + 8]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x400]
push 0x400
push eax
call fcn.1000698e
add esp, 0x10
lea eax, [ebp - 0x400]
push ebx
push ebx
push 3
push ebx
push 1
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10003308
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10003301
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10003ed8
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 0x10003ee6
ret

Function at 0x10003ef1
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 0x10003efc
pop esi
ret
Function at 0x10004220
Capabilities:
Check mutex on windows
Copy file
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3134
call fcn.10009a70
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.10003da2
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 0x10004286
push str._MassUP__Fail:_Cannot_Create_Mutex.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x10004409
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1000429d
push str._MassUP__Fail:_Mutex_Already_Exists.
jmp 0x100043ef
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 0x1001db9c
lea eax, [ebp - 0x134]
push str._s_s
push eax
call fcn.100099da
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.100041ac
lea eax, [ebp - 0x30]
mov dword [esp], 0xfff
push eax
push 0x1001dca0
call fcn.10009aa0
add esp, 0xc
lea eax, [ebp - 0x30]
push 0x10019a0c
push eax
push str._AhnLab_UpdateLog_
lea eax, [ebp - 0x1134]
push str._s_s_s
push eax
call fcn.100099da
lea eax, [ebp - 0x1134]
push eax
call fcn.10009ba0
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.100037f9
add esp, 0x30
test eax, eax
je 0x10004398
push str._MassUP__Fail:_Enc_Fail
jmp 0x100043ef
push 3
push 0x10019a30
push dword [ebp + 8]
call fcn.10003c6a
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x100043ea
push esi
push 1
pop edi
lea eax, [ebp - 8]
push edi
push 4
push eax
call fcn.1000a001
push esi
push edi
lea eax, [ebp - 1]
push edi
push eax
call fcn.1000a001
push esi
push edi
push dword [ebp - 8]
lea eax, [ebp - 0x3134]
push eax
call fcn.1000a001
push esi
call fcn.10009f84
add esp, 0x34
mov ebx, edi
jmp 0x100043f5
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 0x1000440e
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3014
call fcn.10009a70
push ebx
push edi
push 3
push 0x10019afc
push dword [ebp + 0xc]
call fcn.10003c6a
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000447e
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.100099da
add esp, 0x10
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x100045a1
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 0x10019a0c
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.10009ba0
mov ebx, str._AhnLab_UpdateLog_
mov edi, eax
push ebx
call fcn.10009ba0
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.1000a13a
add esp, 0x18
cmp eax, 4
jne 0x10004510
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push edi
push edi
push eax
call fcn.1000a13a
add esp, 0x10
cmp eax, edi
jne 0x10004510
push dword [ebp - 4]
lea eax, [ebp - 0x3014]
push dword [ebp - 8]
push edi
push eax
call fcn.1000a13a
add esp, 0x10
cmp eax, dword [ebp - 8]
jne 0x10004510
and dword [ebp - 0x10], 0
jmp 0x1000451b
push str._MassUp__Fail:_Read_File.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 4]
call fcn.10009f84
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 0x10004577
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.10003a34
lea eax, [ebp - 0x1014]
push eax
call fcn.100040ba
add esp, 0x1c
test eax, eax
jne 0x10004582
push dword [ebp + 0xc]
call fcn.10004220
pop ecx
jmp 0x100045a1
push 0x20
push ebx
call fcn.10009ba0
pop ecx
lea eax, [ebp + eax - 0x1014]
push eax
push dword [ebp + 8]
call fcn.10009aa0
add esp, 0xc
push 1
pop eax
pop edi
pop ebx
leave
ret
Function at 0x100045a5
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.10009ba0
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 0x100046c6
push dword [ebp + 8]
call fcn.10009ba0
push eax
push dword [ebp + 8]
push edi
call fcn.10009aa0
push edi
call fcn.10009ba0
add esp, 0x14
cmp eax, 0x104
jae 0x100046bf
push esi
push 0x103
mov esi, 0x1001db9c
push edi
push esi
call fcn.10009aa0
push esi
call fcn.10009ba0
lea eax, [eax + 0x1001db9b]
add esp, 0x10
cmp byte [eax], 0x5c
pop esi
jne 0x1000461b
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.10004a87
test eax, eax
jne 0x100046a2
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 0x10004678
or dword [0x1001996c], eax
jmp 0x100046a2
cmp eax, 3
jae 0x10004689
mov dword [0x1001996c], 0x300000
jmp 0x100046a2
cmp eax, 0x1e
jbe 0x1000469a
mov dword [0x1001996c], 0x1e00000
jmp 0x100046a2
shl eax, 0x14
mov dword [0x1001996c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.10009ec4
cmp dword [ebp - 4], ebx
pop ecx
je 0x100046c6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100046c6
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop ebx
leave
ret
Function at 0x10005a6c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push edi
push 7
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x2b]
mov byte [ebp - 0x2c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0x20
cmp eax, ebx
je 0x10005b38
cmp dword [ebp + 0xc], ebx
je 0x10005b38
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov byte [eax], bl
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push str.SoftwareNetscapeNetscape_Navigator
push 0x80000002
call edi
test eax, eax
jne 0x10005b38
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x2c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
push ebx
push str.CurrentVersion
push dword [ebp - 8]
call esi
test eax, eax
jne 0x10005b2e
push 0x1f
lea eax, [ebp - 0x2c]
push str.Main
push eax
call fcn.1000ac7e
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0x20019
lea eax, [ebp - 0x2c]
push ebx
push eax
push dword [ebp - 8]
call edi
test eax, eax
jne 0x10005b2e
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push ebx
push ebx
push str.Plugins_Directory
push dword [ebp - 0xc]
call esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
pop ebx
leave
ret