joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40649a
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x44346a
call fcn.0043680c
sub esp, 0x10
push ebx
xor ebx, ebx
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], ebx
call fcn.004066b3
push 1
lea eax, [ebp - 0x18]
pop edi
push eax
push 0x20019
push ebx
mov dword [ebp - 4], edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x4064eb
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp + 0x18]
call fcn.004066bf
mov dword [ebp - 0x10], edi
jmp 0x40657a
lea eax, [ebp - 0x1c]
push esi
push eax
push ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ebx
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0x18]
call esi
cmp eax, ebx
mov dword [ebp + 0x10], eax
jne 0x40652d
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
call fcn.0040679b
push eax
push ebx
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0x18]
call esi
lea ecx, [ebp - 0x14]
mov dword [ebp + 0x10], eax
call fcn.004067f3
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x10], ebx
pop esi
jne 0x406541
lea eax, [ebp - 0x14]
jmp 0x406559
push 0xffffffffffffffff
lea ecx, [ebp + 0x14]
push dword [ebp + 0x18]
call fcn.004066bf
mov dword [ebp - 0x10], 2
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 8]
push eax
call fcn.004066f2
or dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
test byte [ebp - 0x10], 2
je 0x40657a
and dword [ebp - 0x10], 0xfffffffd
lea ecx, [ebp + 0x14]
call fcn.00406733
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00406733
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x406596
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0x14], esi
jne 0x4065a6
push 0x57
pop eax
jmp 0x4065f2
push edi
lea eax, [ebp + 0xc]
push esi
push eax
push esi
push 0x20006
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, eax
cmp edi, esi
jne 0x4065ef
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x14]
push 1
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0xc]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x4065f5
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x443493
call fcn.0043680c
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], ebx
call fcn.004066b3
push 1
lea eax, [ebp - 0x14]
pop esi
push eax
push 0x20019
push ebx
mov dword [ebp - 4], esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x406688
push ebx
push ebx
lea eax, [ebp + 0x10]
push ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp eax, ebx
jne 0x40667f
inc dword [ebp + 0x10]
push dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
call fcn.0040679b
mov ecx, dword [ebp + 0x10]
push ebx
push ebx
mov dword [ebp + 0xc], ecx
push dword [ebp + 0x18]
lea ecx, [ebp + 0xc]
push ebx
push ecx
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea ecx, [ebp - 0x10]
call fcn.004067f3
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004066f2
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00406733
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x406f36
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
mov esi, ecx
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x10f]
mov byte [ebp - 0x110], bl
rep stosd dword es:[edi], eax
cmp dword [ebp + 8], ebx
stosw word es:[edi], ax
stosb byte es:[edi], al
je 0x406f7e
mov ecx, esi
call fcn.004011fe
test eax, eax
je 0x406f7e
lea eax, [ebp - 0x110]
push str.Global_
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x110]
push esi
push eax
call edi
lea eax, [ebp - 0x110]
push str._is_running
push eax
call edi
mov eax, dword [esi + 0x108]
cmp eax, ebx
je 0x406fb3
push eax
call fcn.004374f5
pop ecx
mov dword [esi + 0x108], ebx
push 0x14
call fcn.004375de
cmp eax, ebx
pop ecx
mov dword [esi + 0x108], eax
jne 0x406fc9
xor eax, eax
jmp 0x40703b
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push ebx
push ebx
push 1
push dword [esi + 0x108]
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov eax, dword [esi + 0x108]
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 8], eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0xc]
push ebx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov dword [esi + 0x104], eax
je 0x407030
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x407030
push dword [esi + 0x104]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x104], ebx
xor eax, eax
cmp dword [esi + 0x104], ebx
sete al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x407845
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x4436c0
call fcn.0043680c
sub esp, 0x10
mov eax, dword [0x46487c]
mov dword [ebp - 0x1c], ecx
push ebx
push 0xffffffffffffffff
lea ecx, [eax + 0xa94]
call fcn.00406a8a
push eax
lea ecx, [ebp - 0x10]
call fcn.004066bf
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0040d422
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00406c88
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00406733
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
lea ecx, [ebp - 0x10]
call fcn.00406a8a
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x40790d
push esi
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
push eax
call fcn.00437a4b
mov edi, eax
pop ecx
cmp edi, ebx
je 0x407902
lea eax, [ebp - 0x18]
push ebx
push eax
push esi
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, dword [ebp - 0x18]
jne 0x4078fb
mov eax, dword [ebp - 0x1c]
push edi
mov byte [edi + esi], bl
push dword [eax + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push edi
call fcn.00436a18
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00406733
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x407e3f
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00437190
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [ebp + 0x10], ebx
push edi
jle 0x407eaf
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043821d
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x407eaf
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 str._MassUP__Fail:_mass_file_open._errno_d
push eax
call fcn.0043819a
add esp, 0xc
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
inc ebx
cmp ebx, dword [ebp + 0x10]
jl 0x407e58
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4080a1
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 0x4080af
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3134
call fcn.00437190
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.00407f6b
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 0x40844f
push str._MassUP__Fail:_Cannot_Create_Mutex.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x4085d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x408466
push str._MassUP__Fail:_Mutex_Already_Exists.
jmp 0x4085b8
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 0x464884
lea eax, [ebp - 0x134]
push str._s_s
push eax
call fcn.0043819a
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.00408375
lea eax, [ebp - 0x30]
mov dword [esp], 0xfff
push eax
push 0x464988
call fcn.00437e70
add esp, 0xc
lea eax, [ebp - 0x30]
push 0x44e678
push eax
push str._AhnLab_UpdateLog_
lea eax, [ebp - 0x1134]
push str._s_s_s
push eax
call fcn.0043819a
lea eax, [ebp - 0x1134]
push eax
call fcn.004379d0
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.004079ce
add esp, 0x30
test eax, eax
je 0x408561
push str._MassUP__Fail:_Enc_Fail
jmp 0x4085b8
push 3
push 0x44e69c
push dword [ebp + 8]
call fcn.00407e3f
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x4085b3
push esi
push 1
pop edi
lea eax, [ebp - 8]
push edi
push 4
push eax
call fcn.004384e1
push esi
push edi
lea eax, [ebp - 1]
push edi
push eax
call fcn.004384e1
push esi
push edi
push dword [ebp - 8]
lea eax, [ebp - 0x3134]
push eax
call fcn.004384e1
push esi
call fcn.00438464
add esp, 0x34
mov ebx, edi
jmp 0x4085be
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 0x4085d7
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3014
call fcn.00437190
push ebx
push edi
push 3
push 0x44e768
push dword [ebp + 0xc]
call fcn.00407e3f
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
jne 0x408647
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.0043819a
add esp, 0x10
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x40876a
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 0x44e678
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.004379d0
mov ebx, str._AhnLab_UpdateLog_
mov edi, eax
push ebx
call fcn.004379d0
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.0043861a
add esp, 0x18
cmp eax, 4
jne 0x4086d9
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push edi
push edi
push eax
call fcn.0043861a
add esp, 0x10
cmp eax, edi
jne 0x4086d9
push dword [ebp - 4]
lea eax, [ebp - 0x3014]
push dword [ebp - 8]
push edi
push eax
call fcn.0043861a
add esp, 0x10
cmp eax, dword [ebp - 8]
jne 0x4086d9
and dword [ebp - 0x10], 0
jmp 0x4086e4
push str._MassUp__Fail:_Read_File.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 4]
call fcn.00438464
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 0x408740
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.00407c09
lea eax, [ebp - 0x1014]
push eax
call fcn.00408283
add esp, 0x1c
test eax, eax
jne 0x40874b
push dword [ebp + 0xc]
call fcn.004083e9
pop ecx
jmp 0x40876a
push 0x20
push ebx
call fcn.004379d0
pop ecx
lea eax, [ebp + eax - 0x1014]
push eax
push dword [ebp + 8]
call fcn.00437e70
add esp, 0xc
push 1
pop eax
pop edi
pop ebx
leave
ret
Function at 0x40876e
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.004379d0
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 0x40888f
push dword [ebp + 8]
call fcn.004379d0
push eax
push dword [ebp + 8]
push edi
call fcn.00437e70
push edi
call fcn.004379d0
add esp, 0x14
cmp eax, 0x104
jae 0x408888
push esi
push 0x103
mov esi, 0x464884
push edi
push esi
call fcn.00437e70
push esi
call fcn.004379d0
lea eax, [eax + 0x464883]
add esp, 0x10
cmp byte [eax], 0x5c
pop esi
jne 0x4087e4
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.00408c50
test eax, eax
jne 0x40886b
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 0x408841
or dword [0x44e5f4], eax
jmp 0x40886b
cmp eax, 3
jae 0x408852
mov dword [0x44e5f4], 0x300000
jmp 0x40886b
cmp eax, 0x1e
jbe 0x408863
mov dword [0x44e5f4], 0x1e00000
jmp 0x40886b
shl eax, 0x14
mov dword [0x44e5f4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004383b0
cmp dword [ebp - 4], ebx
pop ecx
je 0x40888f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40888f
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop ebx
leave
ret
Function at 0x409341
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 0x409356
xor eax, eax
jmp 0x409428
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 0x409425
push esi
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x40941a
cmp esi, 0xffffffff
je 0x40941a
lea eax, [ebp - 8]
push eax
lea eax, [esi + 1]
push eax
call fcn.004091e5
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
mov dword [ebp - 0xc], edi
je 0x40941a
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 0x409413
cmp dword [ebp + 8], esi
jne 0x409413
cmp dword [ebp + 0x10], ebx
je 0x409405
push ebx
push dword [ebp - 8]
call fcn.004091e5
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
je 0x409400
push ebx
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call fcn.0040917b
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 0x409414
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 1
mov dword [eax], edi
jmp 0x40941a
push edi
call fcn.0040923e
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 0x40b696
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
push edi
push esi
push esi
push 3
push esi
push esi
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40b6c0
xor ax, ax
jmp 0x40b6f6
lea eax, [ebp + 8]
push esi
push eax
lea eax, [ebp - 0x10]
push 0xe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40b6ec
cmp dword [ebp + 8], 0xe
jne 0x40b6ec
xor eax, eax
xor byte [ebp + eax - 0x10], 0x32
inc eax
cmp eax, 0xe
jb 0x40b6de
mov esi, dword [ebp - 6]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, si
pop edi
pop esi
leave
ret

Function at 0x40b74e
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 0x40b7ac
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 0x40b7af
mov eax, dword [ebp + 0x14]
pop ebp
ret

Function at 0x40bd1c
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 0x40bd91
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x40bd91
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 0x40bd63
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CUpdateStatus__Fail_to_open_ahn.ui__d_.
jmp 0x40bdc7
push 2
push edi
push 0xfffffffffffffff7
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40bd9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CUpdateStatus__Fail_to_set_file_pointer__d_.
push 1
call fcn.00408bf4
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 0x40bdd3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._CUpdateStatus__Fail_to_read_CRC_of_Ahn.ui___d_.
push 1
call fcn.00408bf4
add esp, 0xc
jmp 0x40bd91
push 1
pop eax
jmp 0x40bd93
Function at 0x40bdd8
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 0x40bed6
cmp word [ebp + 8], bx
je 0x40bed6
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 fcn.004266e9
add esp, 0x1c
test ax, ax
je 0x40beac
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.0040ba4b
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 0x40beac
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x464878
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 0x40bed6
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.00408bf4
add esp, 0x10
pop ebx
leave
ret 0xc

Function at 0x40cfd1
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 0x40d050
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 0x40d062
push str.IsWow64Message
push eax
call edi
mov dword [esi + 0x18], eax
pop edi
pop esi
pop ebx
ret
Function at 0x40d244
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 0x40d295
leave
ret
lea eax, [ebp - 0x104]
push str.Version.dll
push eax
lea eax, [ebp - 0x208]
push str._s_s
push eax
call fcn.0043819a
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
leave
ret