joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4048e0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [0x469164]
sub esp, 0xc00
push esi
mov esi, dword [esp + 0xc08]
test esi, eax
je 0x404b32
mov eax, dword [esp + 0xc0c]
mov ecx, dword [0x4845e4]
cmp eax, ecx
ja 0x404b32
push edi
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x408]
mov edx, dword [esp + 0xc14]
rep stosd dword es:[edi], eax
mov ecx, 0x100
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc18]
lea eax, [esp + 0x408]
push ecx
push edx
push 0x400
push eax
call dword [sym.imp.MSVCRT.dll__vsnprintf]
add esp, 0x10
cmp esi, 0x10
pop edi
ja 0x4049eb
je 0x4049d2
lea eax, [esi - 1]
cmp eax, 7
ja case.0x404a01.36
jmp dword [eax*4 + 0x404b3c]
lea ecx, [esp + 0x404]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.LOADER
jmp 0x404a57
lea eax, [esp + 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.PHOENIX
jmp 0x404a7c
lea edx, [esp + 0x404]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.ACTIVEX
jmp 0x404a32
lea ecx, [esp + 0x404]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.ZEEPE
jmp 0x404a57
lea eax, [esp + 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x4691b8
jmp 0x404a7c
lea eax, [esi - 0x20]
cmp eax, 0xe0
ja case.0x404a01.36
xor edx, edx
mov dl, byte [eax + 0x404b70]
jmp dword [edx*4 + 0x404b5c]
lea eax, [esp + 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x4691b4
jmp 0x404a7c
lea edx, [esp + 0x404]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.DbgInfo
push str.Generic
lea eax, [esp + 0x14]
push str.__s_:__s____d___s
push eax
jmp 0x404a8b
lea ecx, [esp + 0x404]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.NetMonkey
push str.Generic
lea edx, [esp + 0x14]
push str.__s_:__s____d___s
push edx
jmp 0x404a8b
lea eax, [esp + 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.Utility
push str.Generic
lea ecx, [esp + 0x14]
push str.__s_:__s____d___s
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x18
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [esp + 4]
push eax
call dword [sym.imp.MSVCRT.dll_printf]
mov eax, dword [0x4845e8]
add esp, 4
test eax, eax
je 0x404b32
push 0x4845c8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esp + 0x804]
push ecx
call dword [sym.imp.MSVCRT.dll__strdate]
mov eax, dword [0x4845e8]
mov esi, dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 4
lea edx, [esp + 0x804]
push edx
push str.__s:
push eax
call esi
lea ecx, [esp + 0x810]
push ecx
call dword [sym.imp.MSVCRT.dll__strtime]
mov eax, dword [0x4845e8]
add esp, 0x10
lea edx, [esp + 0x804]
push edx
push str._s__
push eax
call esi
mov edx, dword [0x4845e8]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push edx
call esi
add esp, 8
push 0x4845c8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
add esp, 0xc00
ret
Function at 0x404f30
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x814
lea eax, [esp + 8]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405119
push esi
push edi
mov ecx, 0x100
lea edi, [esp + 0x41c]
rep stosd dword es:[edi], eax
mov ecx, 0x100
lea edi, [esp + 0x1c]
mov dword [esp + 0x14], eax
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
lea ecx, [esp + 0x1c]
push eax
push ecx
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push 0
lea ecx, [esp + 0x42c]
push eax
push ecx
mov esi, 0x400
push 0
push edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x40510c
push ebx
mov ebx, dword [esp + 0x82c]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fprintf]
mov eax, dword [esp + 0x20]
dec eax
je 0x405077
sub eax, 3
je 0x405063
sub eax, 3
je 0x405044
lea eax, [esp + 0x424]
push eax
push str._______________s:
push ebx
call ebp
mov eax, dword [esp + 0x1c]
add esp, 0xc
xor esi, esi
test eax, eax
jle 0x405032
mov ecx, esi
and ecx, reloc.OLEAUT32.dll_SafeArrayDestroy
jns 0x40500a
dec ecx
or ecx, 0xfffffff0
inc ecx
jne 0x405017
push str._n
push ebx
call ebp
add esp, 8
xor edx, edx
mov dl, byte [esp + esi + 0x24]
push edx
push str._.2x
push ebx
call ebp
mov eax, dword [esp + 0x1c]
add esp, 0xc
inc esi
cmp esi, eax
jl 0x404ffb
push 0x4692cc
push ebx
call ebp
add esp, 8
mov esi, 0x400
jmp 0x4050ac
mov ecx, dword [esp + 0x10]
xor eax, eax
dec ecx
test ecx, ecx
jle 0x405094
mov dl, byte [esp + eax + 0x24]
test dl, dl
jne 0x40505c
mov byte [esp + eax + 0x24], 0x20
inc eax
cmp eax, ecx
jl 0x40504f
jmp 0x405094
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x424]
push ecx
push edx
push str._______________s:__u_n
jmp 0x4050a6
mov ecx, dword [esp + 0x10]
xor eax, eax
dec ecx
test ecx, ecx
jle 0x405094
mov dl, byte [esp + eax + 0x24]
test dl, dl
jne 0x40508f
mov byte [esp + eax + 0x24], 0x20
inc eax
cmp eax, ecx
jl 0x405082
lea edx, [esp + 0x24]
lea eax, [esp + 0x424]
push edx
push eax
push str._______________s:__s_n
push ebx
call ebp
add esp, 0x10
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x424]
mov edx, dword [esp + 0x1c]
rep stosd dword es:[edi], eax
mov ecx, 0x100
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
lea eax, [esp + 0x24]
push ecx
lea ecx, [esp + 0x24]
push eax
push ecx
lea eax, [esp + 0x20]
push 0
lea ecx, [esp + 0x434]
inc edx
push eax
push ecx
mov dword [esp + 0x34], edx
push edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x30], esi
push edx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x404fc5
pop ebp
pop ebx
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 0x814
ret
Function at 0x405120
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x808
push ebp
mov ebp, dword [esp + 0x818]
push esi
mov esi, dword [esp + 0x818]
push edi
mov edi, dword [esp + 0x818]
push ebp
push esi
push edi
call fcn.00404f30
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 8
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405296
push ebx
xor ebx, ebx
mov ecx, 0x100
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x20]
push ebx
lea edx, [esp + 0x28]
push ecx
push edx
push ebx
push eax
mov dword [esp + 0x34], 0x400
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x40528a
jmp 0x4051a3
mov esi, dword [esp + 0x820]
lea ecx, [esp + 0x18]
push ecx
push str._____s_n
push ebp
call dword [sym.imp.MSVCRT.dll_fprintf]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
lea edx, [esp + 0x424]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x428]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x469314
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x428]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x28]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x428]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x830]
push ecx
call fcn.00405120
add esp, 0x18
inc ebx
xor eax, eax
mov ecx, 0x100
push eax
lea edi, [esp + 0x1c]
push eax
push eax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x1c]
push eax
lea edx, [esp + 0x24]
lea eax, [esp + 0x28]
push edx
push eax
push ebx
mov dword [esp + 0x30], 0x400
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x40519c
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x808
ret
Function at 0x4058b0
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0x404
push edi
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x418]
lea eax, [esp + 0x41c]
push eax
push ecx
lea edx, [esp + 0x10]
push 0x400
push edx
mov dword [esp + 0x14], 0
call dword [sym.imp.MSVCRT.dll__vsnprintf]
add esp, 0x10
lea ecx, [esp + 8]
lea eax, [esp + 8]
test ecx, ecx
mov dword [esp + 4], eax
pop edi
je 0x405942
mov eax, dword [esp + 0x408]
mov ecx, dword [0x4845ec]
lea edx, [esp]
push 0
push edx
push 0
push 1
push 0
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
test eax, eax
jne 0x405942
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReportEvent_failed_with_an_err:__d_n
push 1
push 2
call fcn.004048e0
add esp, 0x10
add esp, 0x404
ret

Function at 0x405da0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4570d9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x18]
mov dword [esi], 0x45ae34
call fcn.00407930
lea edi, [esi + 0x5a0]
xor ebx, ebx
mov ecx, edi
mov dword [esp + 0x18], ebx
call sub.MFC42.DLL_CString::CString_2
push str.CGPSModule::CGPSModule_params____Begin_n
push 2
push 2
mov byte [esp + 0x24], 1
mov dword [esi], 0x45ae2c
call fcn.004048e0
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
add esp, 0xc
mov dword [esi + 8], ecx
mov ecx, edi
push 0x4845b8
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], edx
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esi + 4]
mov dword [esi + 0x5a4], ebx
mov dword [esi + 0x5a8], ebx
mov dword [esi + 0x5b0], ebx
mov eax, dword [ecx]
push ebx
push esi
push 8
call dword [eax + 0x21c]
mov ecx, dword [esi + 4]
push ebx
push esi
push 9
mov edx, dword [ecx]
call dword [edx + 0x21c]
mov ecx, dword [esi + 4]
push ebx
push esi
push 0xc
mov eax, dword [ecx]
call dword [eax + 0x21c]
mov ecx, esi
call fcn.00406bc0
push str.CGPSModule::CGPSModule_params____End_n
push 2
push 2
call fcn.004048e0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0xc
Function at 0x406920
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov eax, 0x400c
call fcn.004564f0
push ebx
push ebp
push esi
push str.CGPSModule::ServerAuthenticate___begin_n
push 2
mov ebp, ecx
push 2
call fcn.004048e0
add esp, 0xc
mov esi, 3
push 0
push 0
push 0
push 1
push str.GPSModule
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
test ebx, ebx
jne 0x40696f
pop esi
pop ebp
mov eax, 0x4b1
pop ebx
add esp, 0x400c
ret 0xc
push edi
mov edi, dword [esp + 0x4020]
push 0
push connect
push 0
push 0
push edi
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
push edi
push str.CGPSModule::ServerAuthenticate___authentication_URL_:__s_n
push 2
push 2
mov dword [esp + 0x20], eax
call fcn.004048e0
mov eax, dword [esp + 0x20]
add esp, 0x10
test eax, eax
jne 0x4069c3
push str.CGPSModule::ServerAuthenticate___Error_opening_URL_n
push 1
push 2
call fcn.004048e0
add esp, 0xc
mov esi, 2
jmp 0x406a98
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push 0x4000
push edx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, 1
jne 0x406a98
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
lea eax, [esp + 0x1c]
push str.name_gpskey_
push eax
call edi
add esp, 8
test eax, eax
je 0x406a98
push str.value
push eax
call edi
mov edx, eax
mov edi, str.value
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 1]
mov edx, eax
cmp byte [eax], 0x22
je 0x406a37
mov cl, byte [eax + 1]
inc eax
cmp cl, 0x22
jne 0x406a2e
mov byte [eax], 0
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov esi, dword [esp + 0x4028]
not ecx
dec ecx
shr ecx, 1
mov dword [esi], ecx
lea ecx, [esp + 0x18]
push ecx
push edx
mov ecx, ebp
call fcn.00406670
mov ecx, dword [esi]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x4024]
mov edx, ecx
mov esi, eax
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push str.CGPSModule::ServerAuthenticate___Authentication_successful_n
push 2
push 2
call fcn.004048e0
add esp, 0xc
xor esi, esi
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push eax
call edi
push ebx
call edi
push esi
push str.CGPSModule::ServerAuthenticate___end:_returning__d_n
push 2
push 2
call fcn.004048e0
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x400c
ret 0xc
Function at 0x407360
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov eax, 0x401c
call fcn.004564f0
push ebx
push ebp
push esi
push str.CGPSModule::DownloadXTRAFile_begin_n
push 2
push 2
call fcn.004048e0
mov ecx, dword [0x46a2fc]
mov eax, dword [str.XTRA_Browser]
mov edx, dword [0x46a300]
add esp, 0xc
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
mov al, byte [0x46a304]
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push 1
push ecx
mov dword [esp + 0x34], edx
mov byte [esp + 0x38], al
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
xor ebp, ebp
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x4073d5
call esi
mov ebp, eax
test ebp, ebp
jne 0x4074bf
mov edx, dword [esp + 0x4034]
push edi
push 0
push connect
push 0
push 0
push edx
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
test edi, edi
mov dword [esp + 0x18], edi
jne 0x407406
call esi
mov ebp, eax
test ebp, ebp
jne 0x407495
xor ebx, ebx
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x2c]
push eax
push 0x4000
push ecx
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, 1
jne 0x407484
test ebp, ebp
jne 0x40747a
mov eax, dword [esp + 0x4030]
mov ecx, dword [esp + 0x10]
test eax, eax
je 0x40746f
mov edx, dword [esp + 0x4034]
test edx, edx
je 0x40746f
test ecx, ecx
jbe 0x40747e
lea esi, [ebx + ecx]
cmp esi, dword [edx]
jg 0x40746f
mov edx, ecx
lea esi, [esp + 0x2c]
lea edi, [ebx + eax]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
jmp 0x40747e
test ecx, ecx
jbe 0x40747e
mov ebp, 0x7a
jmp 0x40747e
mov ecx, dword [esp + 0x10]
add ebx, ecx
test ecx, ecx
ja 0x40740c
mov eax, dword [esp + 0x4034]
test eax, eax
je 0x407491
mov dword [eax], ebx
mov ebx, dword [esp + 0x14]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test edi, edi
je 0x4074a2
push edi
call esi
test ebx, ebx
pop edi
je 0x4074aa
push ebx
call esi
test ebp, ebp
jne 0x4074bf
push str.CGPSModule::DownloadXTRAFile_XTRA_download_success_n
push 1
push 2
call fcn.004048e0
add esp, 0xc
push ebp
push str.CGPSModule::DownloadXTRAFile_end._Return_value__long___d_n
push 2
push 2
call fcn.004048e0
add esp, 0x10
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x401c
ret 0xc
Function at 0x408d30
Capabilities:
Create directory
Get common file path

Disassembly:
sub esp, 0x104
mov ecx, 0x41
xor eax, eax
push ebx
push esi
push edi
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
push 1
lea eax, [esp + 0x10]
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x408ddf
mov edi, str.Novatel_WirelessVerizon
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebx, eax
test ebx, ebx
jne 0x408dac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x408ddd
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x114]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0x104
ret 8

Function at 0x40de40
Capabilities:
Create thread

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
push str.CMainFrame::StartDeviceThread___Begin_n
push 2
mov esi, ecx
push 2
call fcn.004048e0
add esp, 0xc
lea edi, [esi + 0x46c]
lea ecx, [esp + 0xc]
xor ebx, ebx
push 1
push edi
call sub.MFC42.DLL_CSingleLock::CSingleLock
mov eax, dword [esi + 0x544]
cmp eax, ebx
je 0x40de89
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40de89
mov dword [esi + 0x544], ebx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CSingleLock::Unlock
cmp dword [esi + 0x544], ebx
je 0x40dea3
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
push 1
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CSingleLock::CSingleLock
mov eax, dword [esi + 0x534]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
call edi
mov ecx, dword [esi + 0x53c]
push ecx
call edi
push ebx
push ebx
push esi
push 0x40e090
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [esp + 0xc]
mov dword [esi + 0x544], eax
call sub.MFC42.DLL_CSingleLock::Unlock
cmp dword [esi + 0x544], ebx
je 0x40def3
mov ebx, 1
push ebx
push str.CMainFrame::StartDeviceThread___End:_RetVal__BOOL___d_n
push 2
push 2
call fcn.004048e0
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x40fc40
Capabilities:
Check os version

Disassembly:
sub esp, 0xa4
push ebx
push esi
push edi
push str.CMainFrame::HasTimePermissions___Begin_n
push 2
mov ebx, ecx
push 2
call fcn.004048e0
add esp, 0xc
lea esi, [ebx + 0x5c0]
push esi
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40fc82
pop edi
pop esi
pop ebx
add esp, 0xa4
ret 4
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x20], 6
jne 0x40fcc9
lea ecx, [esp + 0x10]
push ecx
push str.SeTimeZonePrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x40fcf6
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xa4
ret 4
lea eax, [esp + 0x10]
push eax
push str.SeSystemtimePrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x40fcf6
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xa4
ret 4
mov eax, dword [esp + 0xb4]
test eax, eax
je 0x40fd62
mov eax, dword [esi]
lea edi, [ebx + 0x5c4]
add ebx, 0x5d4
lea edx, [esp + 0xc]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push edi
push 0x10
push edx
push 0
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], 2
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40fd62
mov ecx, dword [esi]
push 0
push 0
push 0
push edi
push 0
push ecx
call ebx
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xa4
ret 4
push str.CMainFrame::HasTimePermissions___End_n
push 2
push 2
call fcn.004048e0
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0xa4
ret 4
Function at 0x411b80
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x457c79
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x274
push ebx
push esi
push edi
xor edi, edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x288], edi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x24], edi
lea eax, [esp + 0x290]
lea ecx, [esp + 0x10]
push eax
mov bl, 2
push str.SYSTEMCurrentControlSetServicesTcpIpParametersInterfaces_
push ecx
mov byte [esp + 0x294], bl
mov dword [esp + 0x2c], edi
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28c], 3
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x288], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push edi
push 0x2001f
push edi
push edi
push edi
push ecx
push reloc.WS2_32.dll_bind
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, edi
jne 0x411d51
mov ebx, dword [esp + 0x294]
mov esi, dword [esp + 0x10]
push ebp
xor ebp, ebp
mov eax, dword [ebx + 8]
mov dword [esp + 0x28], esi
test eax, eax
jle 0x411cd8
lea edx, [esp + 0x20]
push ebp
push edx
mov ecx, ebx
xor esi, esi
call fcn.00411da0
mov eax, dword [eax]
mov ecx, dword [eax - 8]
test ecx, ecx
lea ecx, [esp + 0x20]
setg byte [esp + 0x13]
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
test al, al
je 0x411cbd
lea ecx, [esp + 0x18]
push ebp
push ecx
mov ecx, ebx
call fcn.00411da0
mov edx, dword [eax]
lea ecx, [esp + 0x18]
mov al, byte [edx + esi]
mov byte [esp + edi + 0x2c], al
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x20]
push ebp
inc esi
push eax
mov ecx, ebx
inc edi
call fcn.00411da0
mov ecx, dword [eax]
mov edx, dword [ecx - 8]
lea ecx, [esp + 0x20]
cmp esi, edx
setl byte [esp + 0x13]
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
test al, al
jne 0x411c72
mov eax, dword [ebx + 8]
mov byte [esp + edi + 0x2c], 0
inc edi
inc ebp
cmp ebp, eax
mov byte [esp + edi + 0x2c], 0
jl 0x411c46
mov esi, dword [esp + 0x14]
mov eax, dword [ebx + 8]
pop ebp
test eax, eax
je 0x411ce8
inc edi
mov byte [esp + edi + 0x28], 0
jmp 0x411cee
mov byte [esp + edi + 0x28], 0
inc edi
lea edx, [esp + 0x28]
push str.0.0.0.0
push edx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
mov ebx, eax
lea eax, [esp + 0x28]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
push 7
neg ebx
push 0
push str.IPAddress
sbb ebx, ebx
push esi
inc ebx
call edi
test eax, eax
jne 0x411d46
lea ecx, [esp + 0x14]
push 4
push ecx
push 4
push eax
push str.EnableDHCP
push esi
mov dword [esp + 0x2c], ebx
call edi
test eax, eax
jne 0x411d46
mov dword [esp + 0x20], 1
test esi, esi
je 0x411d51
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
mov byte [esp + 0x288], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x290]
mov dword [esp + 0x288], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x280]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x280
ret 8