Function at 0x140005900
Capabilities:
Contain obfuscated stackstrings
Create new key via cryptacquirecontext
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov byte [rsp + 0x30], 0
xor ebx, ebx
mov byte [rsp + 0x31], 0x5c
mov rdi, rcx
mov byte [rsp + 0x32], 0x65
mov byte [rsp + 0x33], 0x5a
mov byte [rsp + 0x34], gethostname
mov byte [rsp + 0x35], WSAStartup
mov byte [rsp + 0x36], 0x4d
mov byte [rsp + 0x37], WSAStartup
mov byte [rsp + 0x38], 0x20
mov byte [rsp + 0x39], 0x64
mov byte [rsp + 0x3a], 0x49
mov byte [rsp + 0x3b], 0x23
mov byte [rsp + 0x3c], 0x59
mov byte [rsp + 0x3d], 0x4e
mov byte [rsp + 0x3e], 0x2c
mov byte [rsp + 0x3f], 0x59
mov byte [rsp + 0x40], 0x5a
mov byte [rsp + 0x41], 9
mov byte [rsp + 0x42], WSAStartup
mov byte [rsp + 0x43], 0x49
mov byte [rsp + 0x44], 0x50
mov byte [rsp + 0x45], 0x67
mov byte [rsp + 0x46], 0x46
mov byte [rsp + 0x47], 0x49
mov byte [rsp + 0x48], 0x2c
mov byte [rsp + 0x49], 0x59
mov byte [rsp + 0x4a], WSAStartup
mov byte [rsp + 0x4b], 0x49
mov byte [rsp + 0x4c], 0x46
mov byte [rsp + 0x4d], 0x23
mov byte [rsp + 0x4e], 0x67
mov byte [rsp + 0x4f], 0x49
mov byte [rsp + 0x50], reloc.WS2_32.dll_WSACleanup
mov byte [rsp + 0x51], gethostname
mov byte [rsp + 0x52], 0x58
mov byte [rsp + 0x53], 8
mov byte [rsp + 0x54], 0x64
mov byte [rsp + 0x55], WSAStartup
mov byte [rsp + 0x56], gethostname
mov byte [rsp + 0x57], gethostname
mov byte [rsp + 0x58], 0x2c
mov byte [rsp + 0x59], 8
mov byte [rsp + 0x5a], 0x4e
mov byte [rsp + 0x5b], 0x65
mov byte [rsp + 0x5c], 0x5a
mov byte [rsp + 0x5d], 0x49
mov byte [rsp + 0x5e], 0x22
mov byte [rsp + 0x5f], gethostname
mov byte [rsp + 0x60], WSAStartup
mov byte [rsp + 0x61], shutdown
mov byte [rsp + 0x62], 0x65
mov byte [rsp + 0x63], WSAStartup
mov byte [rsp + 0x64], 9
mov byte [rsp + 0x65], gethostname
mov byte [rsp + 0x66], 0x63
movzx eax, byte [rsp + 0x31]
movzx eax, byte [rsp + 0x30]
test al, al
jne 0x140005a91
mov r8d, ebx
movzx ecx, byte [rsp + r8 + 0x31]
mov eax, 0x63
sub eax, ecx
imul ecx, eax, 0xb
mov eax, 0x81020409
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x7f
sub ecx, eax
mov eax, 0x81020409
add ecx, 0x7f
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x7f
sub ecx, eax
mov byte [rsp + r8 + 0x31], cl
inc r8
cmp r8, 0x36
jb 0x140005a40
mov r9d, 0x18
mov dword [rsp + 0x20], 0xf0000000
lea r8, [rsp + 0x31]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x140005f64
mov byte [rsp + 0x68], bl
mov byte [rsp + 0x69], 0x5d
mov byte [rsp + 0x6a], WSAStartup
mov byte [rsp + 0x6b], shutdown
mov byte [rsp + 0x6c], 0x41
mov byte [rsp + 0x6d], 0x51
mov byte [rsp + 0x6e], 0x66
mov byte [rsp + 0x6f], 0x51
mov byte [rsp + 0x70], 2
mov byte [rsp + 0x71], reloc.WS2_32.dll_inet_ntoa
mov byte [rsp + 0x72], 0x4f
mov byte [rsp + 0x73], gethostbyname
mov byte [rsp + 0x74], 0x2c
mov byte [rsp + 0x75], 0x4c
mov byte [rsp + 0x76], 0x47
mov byte [rsp + 0x77], 0x2c
mov byte [rsp + 0x78], shutdown
mov byte [rsp + 0x79], 0x5c
mov byte [rsp + 0x7a], gethostname
mov byte [rsp + 0x7b], 0x4f
mov byte [rsp + 0x7c], 0x18
mov byte [rsp + 0x7d], 0x3d
mov byte [rsp + 0x7e], 0x1e
mov byte [rsp + 0x7f], 0x4f
mov byte [rbp - 0x80], 0x47
mov byte [rbp - 0x7f], 0x2c
mov byte [rbp - 0x7e], gethostname
mov byte [rbp - 0x7d], 0x4f
mov byte [rbp - 0x7c], 0x1e
mov byte [rbp - 0x7b], gethostbyname
mov byte [rbp - 0x7a], 0x3d
mov byte [rbp - 0x79], 0x4f
mov byte [rbp - 0x78], 0x68
mov byte [rbp - 0x77], 0x41
mov byte [rbp - 0x76], 0x46
mov byte [rbp - 0x75], 0x76
mov byte [rbp - 0x74], reloc.WS2_32.dll_inet_ntoa
mov byte [rbp - 0x73], 0x51
mov byte [rbp - 0x72], 0x27
mov byte [rbp - 0x71], 0x41
mov byte [rbp - 0x70], 0x47
mov byte [rbp - 0x6f], 0x76
mov byte [rbp - 0x6e], 0x4c
mov byte [rbp - 0x6d], WSAStartup
mov byte [rbp - 0x6c], setsockopt
mov byte [rbp - 0x6b], 0x4f
mov byte [rbp - 0x6a], 0x4d
mov byte [rbp - 0x69], 0x41
mov byte [rbp - 0x68], 0x51
mov byte [rbp - 0x67], 0x56
mov byte [rbp - 0x66], WSAStartup
mov byte [rbp - 0x65], gethostname
mov byte [rbp - 0x64], 0x5c
mov byte [rbp - 0x63], 0x41
mov byte [rbp - 0x62], 0x26
movzx eax, byte [rsp + 0x69]
movzx eax, byte [rsp + 0x68]
test al, al
jne 0x140005c14
mov r8, rbx
nop dword [rax + rax]
movzx ecx, byte [rsp + r8 + 0x69]
mov eax, 0x26
sub eax, ecx
lea ecx, [rax + rax*2]
mov eax, 0x81020409
shl ecx, 3
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x7f
sub ecx, eax
mov eax, 0x81020409
add ecx, 0x7f
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x7f
sub ecx, eax
mov byte [rsp + r8 + 0x69], cl
inc r8
cmp r8, 0x36
jb 0x140005bc0
mov r9d, 0x18
mov dword [rsp + 0x20], 0xf0000008
lea r8, [rsp + 0x69]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x140005f64
mov byte [rbp - 0x60], bl
mov byte [rbp - 0x5f], 0x41
mov byte [rbp - 0x5e], WSAStartup
mov byte [rbp - 0x5d], 0x28
mov byte [rbp - 0x5c], 0x62
mov byte [rbp - 0x5b], 0x3d
mov byte [rbp - 0x5a], 0x44
mov byte [rbp - 0x59], 0x3d
mov byte [rbp - 0x58], 0x4d
mov byte [rbp - 0x57], 0x26
mov byte [rbp - 0x56], setsockopt
mov byte [rbp - 0x55], gethostbyname
mov byte [rbp - 0x54], 0x5b
mov byte [rbp - 0x53], 0x11
mov byte [rbp - 0x52], 0x64
mov byte [rbp - 0x51], 0x5b
mov byte [rbp - 0x50], 0x28
mov byte [rbp - 0x4f], 0x6b
mov byte [rbp - 0x4e], 0xa
mov byte [rbp - 0x4d], setsockopt
mov byte [rbp - 0x4c], 0x2a
mov byte [rbp - 0x4b], reloc.WS2_32.dll_inet_ntoa
mov byte [rbp - 0x4a], 0x2c
mov byte [rbp - 0x49], setsockopt
mov byte [rbp - 0x48], 0x64
mov byte [rbp - 0x47], 0x5b
mov byte [rbp - 0x46], 0xa
mov byte [rbp - 0x45], setsockopt
mov byte [rbp - 0x44], 0x2c
mov byte [rbp - 0x43], gethostbyname
mov byte [rbp - 0x42], reloc.WS2_32.dll_inet_ntoa
mov byte [rbp - 0x41], setsockopt
mov byte [rbp - 0x40], reloc.WS2_32.dll_WSAGetLastError
mov byte [rbp - 0x3f], 0x62
mov byte [rbp - 0x3e], 0xf
mov byte [rbp - 0x3d], 0x1f
mov byte [rbp - 0x3c], 0x26
mov byte [rbp - 0x3b], 0x3d
mov byte [rbp - 0x3a], 0x2f
mov byte [rbp - 0x39], 0x62
mov byte [rbp - 0x38], 0x64
mov byte [rbp - 0x37], 0x1f
mov byte [rbp - 0x36], 0x11
mov byte [rbp - 0x35], WSAStartup
mov byte [rbp - 0x34], 0x28
mov byte [rbp - 0x33], setsockopt
mov byte [rbp - 0x32], 0x66
mov byte [rbp - 0x31], 0x62
mov byte [rbp - 0x30], 0x3d
mov byte [rbp - 0x2f], 0x69
mov byte [rbp - 0x2e], WSAStartup
mov byte [rbp - 0x2d], 0xa
mov byte [rbp - 0x2c], 0x6b
mov byte [rbp - 0x2b], 0x62
mov byte [rbp - 0x2a], setsockopt
mov byte [rbp - 0x29], 0x20
mov byte [rbp - 0x28], 0x66
mov byte [rbp - 0x27], 0x62
mov byte [rbp - 0x26], 0x3d
mov byte [rbp - 0x25], 0x26
mov byte [rbp - 0x24], 0x3d
mov byte [rbp - 0x23], 0x26
mov byte [rbp - 0x22], 0xf
mov byte [rbp - 0x21], 0x1f
mov byte [rbp - 0x20], 0x6b
mov byte [rbp - 0x1f], 2
mov byte [rbp - 0x1e], 0x59
movzx eax, byte [rbp - 0x5f]
movzx eax, byte [rbp - 0x60]
test al, al
jne 0x140005db5
mov r9, rbx
nop dword [rax]
nop dword [rax + rax]
movzx ecx, byte [rbp + r9 - 0x5f]
mov eax, 0x81020409
sub ecx, 0x59
imul r8d, ecx, 0x37
imul r8d
add edx, r8d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x7f
sub r8d, eax
mov eax, 0x81020409
add r8d, 0x7f
imul r8d
add edx, r8d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x7f
sub r8d, eax
mov byte [rbp + r9 - 0x5f], r8b
inc r9
cmp r9, 0x42
jb 0x140005d60
mov r9d, 0x18
mov dword [rsp + 0x20], 0xf0000000
lea r8, [rbp - 0x5f]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x140005f64
mov byte [rbp - 0x10], bl
mov byte [rbp - 0xf], 0x28
mov byte [rbp - 0xe], 0x61
mov byte [rbp - 0xd], WSAStartup
mov byte [rbp - 0xc], inet_ntoa
mov byte [rbp - 0xb], 0x52
mov byte [rbp - 0xa], 0x48
mov byte [rbp - 9], 0x52
mov byte [rbp - 8], 0x29
mov byte [rbp - 7], 6
mov byte [rbp - 6], 0x59
mov byte [rbp - 5], 0x3c
mov byte [rbp - 4], reloc.WS2_32.dll_setsockopt
mov byte [rbp - 3], 0x24
mov byte [rbp - 2], 0x75
mov byte [rbp - 1], reloc.WS2_32.dll_setsockopt
mov byte [rbp], WSAStartup
mov byte [rbp + 1], 0x6b
mov byte [rbp + 2], 0x2e
mov byte [rbp + 3], 0x59
mov byte [rbp + 4], 0x5b
mov byte [rbp + 5], 0x19
mov byte [rbp + 6], 0x46
mov byte [rbp + 7], 0x59
mov byte [rbp + 8], 0x75
mov byte [rbp + 9], reloc.WS2_32.dll_setsockopt
mov byte [rbp + 0xa], 0x2e
mov byte [rbp + 0xb], 0x59
mov byte [rbp + 0xc], 0x46
mov byte [rbp + 0xd], 0x3c
mov byte [rbp + 0xe], 0x19
mov byte [rbp + 0xf], 0x59
mov byte [rbp + 0x10], 0x41
mov byte [rbp + 0x11], inet_ntoa
mov byte [rbp + 0x12], reloc.WS2_32.dll_gethostname
mov byte [rbp + 0x13], 0x10
mov byte [rbp + 0x14], 6
mov byte [rbp + 0x15], 0x52
mov byte [rbp + 0x16], 0x66
mov byte [rbp + 0x17], inet_ntoa
mov byte [rbp + 0x18], 0x75
mov byte [rbp + 0x19], 0x10
mov byte [rbp + 0x1a], 0x24
mov byte [rbp + 0x1b], 0x61
mov byte [rbp + 0x1c], WSAStartup
mov byte [rbp + 0x1d], 0x59
mov byte [rbp + 0x1e], 0x60
mov byte [rbp + 0x1f], inet_ntoa
mov byte [rbp + 0x20], 0x52
mov byte [rbp + 0x21], 1
mov byte [rbp + 0x22], 0x61
mov byte [rbp + 0x23], 0x2e
mov byte [rbp + 0x24], 0x6b
mov byte [rbp + 0x25], inet_ntoa
mov byte [rbp + 0x26], 0x59
mov byte [rbp + 0x27], 0x45
mov byte [rbp + 0x28], 0x60
mov byte [rbp + 0x29], inet_ntoa
mov byte [rbp + 0x2a], 0x52
mov byte [rbp + 0x2b], 6
mov byte [rbp + 0x2c], 0x52
mov byte [rbp + 0x2d], 6
mov byte [rbp + 0x2e], reloc.WS2_32.dll_gethostname
mov byte [rbp + 0x2f], 0x10
mov byte [rbp + 0x30], 0x6b
mov byte [rbp + 0x31], 3
mov byte [rbp + 0x32], 0x2a
movzx eax, byte [rbp - 0xf]
movzx eax, byte [rbp - 0x10]
test al, al
jne 0x140005f45
movzx ecx, byte [rbp + rbx - 0xf]
mov eax, 0x81020409
sub ecx, 0x2a
imul r8d, ecx, 0x19
imul r8d
add edx, r8d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x7f
sub r8d, eax
mov eax, 0x81020409
add r8d, 0x7f
imul r8d
add edx, r8d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x7f
sub r8d, eax
mov byte [rbp + rbx - 0xf], r8b
inc rbx
cmp rbx, 0x42
jb 0x140005ef1
mov r9d, 0x18
mov dword [rsp + 0x20], 0xf0000008
lea r8, [rbp - 0xf]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
jmp 0x140005f69
mov eax, 1
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret