Function at 0x4a4440
Capabilities:
Contain obfuscated stackstrings
Create thread
Delete file
Get common file path
Write file on windows

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff8
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4e4
mov dword [ebp - 0x4c0], 0
lea esi, [esi]
mov esi, dword [ebp - 0x4c0]
lea edi, [ebp - 0x444]
mov ebx, 4
mov dword [esp], 0x5d43dc
mov dword [esp + 4], esi
call fcn.0049f0a0
xor eax, eax
mov ecx, 0x1b
mov edx, 4
rep stosd dword es:[edi], eax
mov eax, 0x10b
mov ecx, 1
mov edi, 3
mov word [ebp - 0x434], ax
mov eax, 0x24
bt eax, esi
mov byte [ebp - 0x432], 1
mov dword [ebp - 0x44c], 0x4550
mov dword [ebp - 0x448], 0x1014c
mov dword [ebp - 0x420], 0x10
mov dword [ebp - 0x418], 0x10000000
mov word [ebp - 0x40c], dx
mov word [ebp - 0x408], cx
mov word [ebp - 0x404], bx
mov word [ebp - 0x3f0], di
mov dword [ebp - 0x3ec], 0x100000
mov dword [ebp - 0x3e8], 0x1000
mov dword [ebp - 0x3e4], 0x100000
mov dword [ebp - 0x3e0], 0x1000
mov dword [ebp - 0x3d8], 0x10
mov dword [ebp - 0x438], 0x200e0
jae 0x4a4fe0
mov edx, dword [0x79ea48]
mov dword [ebp - 0x410], 0x200
mov dword [ebp - 0x3f8], 0x200
lea eax, [edx + edx]
mov dword [ebp - 0x414], edx
mov dword [ebp - 0x3fc], eax
mov eax, 0x140
mov word [ebp - 0x3ee], ax
xor eax, eax
mov ecx, 0x20
lea edi, [ebp - 0x3d4]
rep stosd dword es:[edi], eax
lea eax, [edx + 0x6c]
mov ecx, 0x4f
lea edi, [ebp - 0x14c]
mov dword [ebp - 0x38c], eax
xor eax, eax
cmp dword [ebp - 0x4c0], 3
rep stosd dword es:[edi], eax
lea eax, [edx + 0x28]
mov dword [ebp - 0x3c8], 0x28
mov dword [ebp - 0x14c], eax
lea eax, [edx + 0x30]
mov dword [ebp - 0x13c], eax
lea eax, [edx + 0x38]
mov dword [ebp - 0x140], eax
lea eax, [edx + 0x48]
mov dword [ebp - 0x124], eax
lea eax, [edx + 0x1000008c]
mov dword [ebp - 0xe0], eax
lea eax, [edx + 0x1000009c]
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd8], eax
mov eax, 0x3074
mov word [ebp - 0x4c], ax
mov eax, 0x104
mov dword [ebp - 0x3cc], edx
mov dword [ebp - 0x388], 0x18
mov dword [ebp - 0x114], 0x6e72656b
mov dword [ebp - 0x110], 0x32336c65
mov dword [ebp - 0x10c], 0x6c6c642e
mov dword [ebp - 0x102], 0x61657243
mov dword [ebp - 0xfe], 0x76456574
mov dword [ebp - 0xfa], 0x41746e65
mov dword [ebp - 0x11c], 0xdeadbeef
mov dword [ebp - 0x50], 0x3070306c
mov dword [ebp - 0xc0], 0x6c6c6568
mov dword [ebp - 0xbc], 0x6f77206f
mov dword [ebp - 0xb8], 0x646c72
mov dword [ebp - 0xb0], 0x270f270f
je 0x4a5038
lea ecx, [ebp - 0x14c]
lea esi, [ebp - 0x58]
mov dword [ebp - 0x58], edx
add edx, 0xf4
add eax, ecx
mov dword [ebp - 0x3ac], edx
sub eax, esi
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x3a8], eax
lea eax, [ebp - 0x354]
mov dword [esp + 4], eax
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
lea eax, [ebp - 0x250]
sub esp, 8
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x354]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x5d3758
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
lea eax, [ebp - 0x250]
sub esp, 0x10
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x40000000
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileA]
sub esp, 0x1c
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x8d4
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov dword [esp + 4], str.creation_failed_n
mov dword [esp], eax
call fcn.0049fda0
lea ecx, [ebp - 0x49a]
lea edx, [ebp - 0x49e]
xor eax, eax
mov dword [ebp - 0x49e], 0
and ecx, 0xfffffffc
mov dword [ebp - 0x484], 0
sub edx, ecx
add edx, 0x1e
and edx, 0xfffffffc
mov dword [ecx + eax], 0
add eax, 4
cmp eax, edx
jb 0x4a4790
mov eax, dword [ebp - 0x410]
mov edi, 0x74
mov dword [ebp - 0x4a4], 0x7865742e
mov word [ebp - 0x4a0], di
mov edi, dword [ebp - 0x4c0]
mov dword [ebp - 0x490], eax
mov eax, dword [ebp - 0x414]
mov dword [ebp - 0x49c], 0x13c
mov dword [ebp - 0x498], eax
mov dword [ebp - 0x494], 0x13c
mov dword [ebp - 0x480], 0xc0000040
cmp edi, 3
je 0x4a50d0
lea eax, [ebp - 0x4bc]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x40
mov dword [esp + 4], 0x79e760
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_WriteFile]
lea eax, [ebp - 0x4bc]
sub esp, 0x14
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x44c]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0xf8
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_WriteFile]
lea eax, [ebp - 0x4bc]
sub esp, 0x14
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x4a4]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x28
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x490]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
lea eax, [ebp - 0x4bc]
sub esp, 0x10
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x14c]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x13c
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
cmp edi, 2
je 0x4a53f0
jg 0x4a4b08
cmp edi, 1
jne 0x4a5500
lea eax, [ebp - 0x250]
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
sub esp, 0xc
mov dword [ebp - 0x4b4], eax
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x8fb
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.failed_to_load_err__lu_n
mov dword [esp + 8], eax
mov ebx, dword [ebp - 0x4b4]
xor eax, eax
test ebx, ebx
setne al
mov dword [esp], eax
call fcn.0049fda0
mov ebx, dword [ebp - 0x4b4]
test ebx, ebx
je 0x4a4f90
add ebx, dword [0x79ea48]
mov eax, 0x8fe
lea esi, [ebp - 0x102]
call fcn.0049f440
mov eax, dword [ebx + 0x30]
mov dword [esp + 0x10], esi
lea esi, [ebp - 0x114]
mov dword [esp + 0xc], esi
lea edi, [ebp - 0x114]
cmp eax, 0xdeadbeef
mov dword [esp + 8], eax
sete al
mov dword [esp + 4], str.thunk_resolved_to__p_for__s._s_n
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
mov eax, 0x900
call fcn.0049f440
movsx edx, word [ebx + 0x9c]
mov dword [esp + 4], str.wrong_tls_index__d_n
cmp dx, 0x270f
mov dword [esp + 8], edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
lea eax, [ebp - 0x250]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
sub esp, 4
mov esi, eax
mov eax, 0x903
call fcn.0049f440
mov eax, dword [ebp - 0x4b4]
mov dword [esp + 0xc], esi
mov dword [esp + 4], str.loaded_twice__p____p_n
cmp eax, esi
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
mov eax, 0x904
call fcn.0049f440
mov eax, dword [ebx + 0x30]
lea ecx, [ebp - 0x102]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ecx
cmp eax, 0xdeadbeef
mov dword [esp + 8], eax
sete al
mov dword [esp + 4], str.thunk_resolved_to__p_for__s._s_n
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
mov eax, 0x906
call fcn.0049f440
movsx edx, word [ebx + 0x9c]
mov dword [esp + 4], str.wrong_tls_index__d_n
cmp dx, 0x270f
mov dword [esp + 8], edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
mov eax, dword [ebp - 0x4b4]
xor edx, edx
cmp word [ebx + 0x9c], 0x270f
setne dl
call fcn.004a1850
mov ebx, dword [sym.imp.kernel32.dll_FreeLibrary]
mov dword [esp], esi
call ebx
mov eax, dword [ebp - 0x4b4]
sub esp, 4
mov dword [esp], eax
call ebx
sub esp, 4
lea eax, [ebp - 0x250]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
sub esp, 4
call fcn.0057d110
mov edx, dword [eax + 0xbec]
test edx, edx
jne 0x4a4fb1
add dword [ebp - 0x4c0], 1
jmp 0x4a4468
lea eax, [ebp - 0x250]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileA]
sub esp, 0x1c
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x934
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.CreateFile_failed_err__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp esi, 0xffffffff
setne al
mov dword [esp], eax
call fcn.0049fda0
mov dword [esp], esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x1000002
mov dword [esp + 4], 0
call dword [sym.imp.kernel32.dll_CreateFileMappingA]
sub esp, 0x18
mov ebx, eax
mov dword [esp], esi
lea esi, [ebp - 0x4b8]
call dword [sym.imp.kernel32.dll_CloseHandle]
lea eax, [ebp - 0x47c]
sub esp, 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0x30
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [0x79e810]
sub esp, 0x14
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x940
xor eax, eax
test edi, edi
sete al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], str.NtQuerySection_failed__lx_n
call fcn.0049fda0
call fcn.0057d110
cmp dword [ebp - 0x4c0], 6
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x941
movzx eax, byte [ebp - 0x459]
je 0x4a5738
mov edx, eax
shr dl, 2
and edx, 1
mov dword [esp], edx
mov dword [esp + 8], eax
mov dword [esp + 4], str.image_flags__x_n
call fcn.0049fda0
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x943
movzx edx, byte [ebp - 0x45a]
mov dword [esp + 4], str.contains_code__x_n
test dl, dl
mov dword [esp + 8], edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x944
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.CreateFileMappingA_failed_err__lu_n
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
setne al
xor edi, edi
mov dword [esp], eax
call fcn.0049fda0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x3000
mov dword [esp + 4], 0x10000
mov eax, dword [ebp - 0x418]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov dword [ebp - 0x4b4], 0
mov dword [ebp - 0x4c4], eax
sub esp, 0x10
lea eax, [ebp - 0x4b0]
mov dword [ebp - 0x4b8], 0
mov dword [ebp - 0x4b0], 0
mov dword [ebp - 0x4ac], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x4b4]
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], 2
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [0x79e80c]
sub esp, 0x28
cmp dword [ebp - 0x4c0], 5
mov esi, eax
je 0x4a5720
call fcn.0057d110
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x14], 1
lea edx, [ecx + ecx]
mov ecx, 0
or edx, edi
cmp dword [ebp - 0x4c0], 6
mov dword [eax + 0x10], edx
mov eax, 0x40000003
cmovne eax, ecx
cmp eax, esi
sete al
movzx eax, al
mov edi, eax
jmp 0x4a4df6
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x94e
mov dword [esp + 8], esi
mov dword [esp + 4], str.NtMapViewOfSection_failed__lx_n
mov dword [esp], edi
call fcn.0049fda0
call fcn.0057d110
shr dword [eax + 0x10], 1
call fcn.0057d110
mov edx, dword [eax + 0x14]
mov dword [eax + 0x14], 0
test edx, edx
jne 0x4a4dc8
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x950
mov eax, dword [ebp - 0x4b4]
mov dword [esp + 4], str.loaded_at_image_base__p_n
mov dword [esp + 8], eax
cmp eax, dword [ebp - 0x418]
setne al
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
mov eax, dword [ebp - 0x4b4]
mov dword [esp], eax
call dword [0x79e7c4]
mov edi, dword [0x79ea48]
add edi, dword [ebp - 0x4b4]
sub esp, 4
cmp dword [ebp - 0x4c0], 6
mov esi, eax
je 0x4a56b0
xor ecx, ecx
cmp dword [ebp - 0x4c0], 5
je 0x4a5750
mov dword [ebp - 0x4c8], ecx
call fcn.0057d110
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x14], 1
lea edx, [ecx + ecx]
mov ecx, dword [ebp - 0x4c8]
or edx, ecx
mov dword [eax + 0x10], edx
jmp 0x4a4f32
call fcn.0057d110
mov dword [eax], 0x5d3477
mov edx, dword [ebp - 0x4b4]
mov dword [eax + 4], 0x95c
mov eax, dword [esi + 0x34]
mov dword [esp + 0xc], edx
cmp edx, eax
mov dword [esp + 8], eax
sete al
mov dword [esp + 4], str.not_at_base__p____p_n
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
call fcn.0057d110
mov dword [eax], 0x5d3477
mov edx, dword [ebp - 0x4b4]
mov dword [eax + 4], 0x95e
mov eax, dword [0x79ea48]
lea edx, [edx + eax + 0x8c]
mov eax, dword [edi + 0x6c]
mov dword [esp + 4], str.tls_not_relocated__p____p_n
mov dword [esp + 0xc], edx
cmp edx, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
call fcn.0057d110
shr dword [eax + 0x10], 1
call fcn.0057d110
mov edx, dword [eax + 0x14]
mov dword [eax + 0x14], 0
test edx, edx
jne 0x4a4ea8
mov eax, dword [ebp - 0x4b4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x4c4]
sub esp, 4
test eax, eax
je 0x4a4f90
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_VirtualFree]
sub esp, 0xc
lea esi, [esi]
lea eax, [ebp - 0x250]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
sub esp, 4
call fcn.0057d110
mov edx, dword [eax + 0xbec]
test edx, edx
je 0x4a4fba
sub edx, 1
mov dword [eax + 0xbec], edx
add dword [ebp - 0x4c0], 1
mov eax, dword [ebp - 0x4c0]
cmp eax, 7
jne 0x4a4468
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
mov edx, dword [0x79ea48]
mov eax, 0x2002
cmp dword [ebp - 0x4c0], 6
mov dword [ebp - 0x410], 0x200
mov word [ebp - 0x436], ax
lea eax, [edx + edx]
mov dword [ebp - 0x414], edx
mov dword [ebp - 0x3fc], eax
mov eax, 0x100
mov dword [ebp - 0x3f8], 0x200
mov word [ebp - 0x3ee], ax
je 0x4a4577
jmp 0x4a456b
lea eax, [edx + 0x100000a4]
mov dword [ebp - 0x98], 1
mov dword [ebp - 0xc8], eax
lea eax, [edx + 0x10000084]
mov dword [ebp - 0xd4], eax
lea eax, [edx + 0xe4]
mov dword [ebp - 0x424], eax
mov eax, 0x108
mov dword [ebp - 0xa8], 0xe8
mov dword [ebp - 0xa4], 0x498b5900
mov dword [ebp - 0xa0], 0x24548bf7
mov dword [ebp - 0x9c], 0xb8118908
mov dword [ebp - 0x95], 0xcc200
mov dword [ebp - 0x68], 0x1b8
mov dword [ebp - 0x64], 0xcc200
mov dword [0x79e0e8], 0x270f
mov dword [ebp - 0xac], 0x79e0e8
mov dword [ebp - 0x4a], 0x30783084
jmp 0x4a468a
mov dword [ebp - 0x480], 0xe0000040
lea eax, [ebp - 0x4bc]
mov dword [esp], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x40
mov dword [esp + 4], 0x79e760
call dword [sym.imp.kernel32.dll_WriteFile]
lea eax, [ebp - 0x4bc]
sub esp, 0x14
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x44c]
mov dword [esp], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0xf8
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_WriteFile]
lea eax, [ebp - 0x4bc]
sub esp, 0x14
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x4a4]
mov dword [esp], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x28
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x490]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
lea eax, [ebp - 0x4bc]
sub esp, 0x10
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x14c]
mov dword [esp], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x13c
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
lea eax, [ebp - 0x250]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
sub esp, 4
mov dword [ebp - 0x4b4], eax
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x918
mov edi, dword fs:[0x18]
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.failed_to_load_err__lu_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x4b4]
xor eax, eax
test edx, edx
setne al
mov dword [esp], eax
call fcn.0049fda0
mov ebx, dword [ebp - 0x4b4]
test ebx, ebx
je 0x4a4f90
add ebx, dword [0x79ea48]
mov eax, 0x91c
movzx esi, word [ebx + 0x9c]
call fcn.0049f440
movsx edx, word [ebx + 0x9c]
mov dword [esp + 4], str.wrong_tls_index__d_n
cmp dx, 0x1f
mov dword [esp + 8], edx
setle al
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
movsx edx, word [ebx + 0x9c]
mov eax, dword [edi + 0x2c]
mov edi, dword [eax + edx*4]
mov eax, 0x920
call fcn.0049f440
mov dword [esp + 4], str.hello_world
mov dword [esp], edi
call dword [sym.imp.msvcrt.dll_strcmp]
mov dword [esp + 0xc], edi
test eax, eax
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.wrong_tls_data__s_at__p_n
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
mov eax, 0x922
call fcn.0049f440
mov eax, dword [0x79e0e8]
mov dword [esp + 0xc], 1
mov dword [esp + 4], str.tls_init_function_didnt_run_or_got_wrong_reason:__d_instead_of__d_n
cmp eax, 1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
mov dword [0x79e0e8], 0x270f
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
movsx eax, word [ebx + 0x9c]
mov dword [esp + 8], 0x4a1340
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
sub esp, 0x18
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, 0x926
sub esp, 8
call fcn.0049f440
mov eax, dword [0x79e0e8]
mov dword [esp + 0xc], 3
mov dword [esp + 4], str.tls_init_function_didnt_run_or_got_wrong_reason:__d_instead_of__d_n
cmp eax, 3
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
mov eax, dword [ebp - 0x4b4]
xor edx, edx
cmp word [ebx + 0x9c], 0x270f
setne dl
call fcn.004a1850
mov eax, dword [ebp - 0x4b4]
mov dword [0x79e0e8], 0x270f
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
sub esp, 4
cmp si, 0x270f
je 0x4a4f90
mov eax, 0x92d
call fcn.0049f440
mov eax, dword [0x79e0e8]
mov dword [esp + 0xc], 0
mov dword [esp + 4], str.tls_init_function_didnt_run_or_got_wrong_reason:__d_instead_of__d_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
jmp 0x4a4ad2
lea eax, [ebp - 0x250]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
sub esp, 4
mov dword [ebp - 0x4b4], eax
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x90d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.failed_to_load_err__lu_n
mov dword [esp + 8], eax
mov ecx, dword [ebp - 0x4b4]
xor eax, eax
test ecx, ecx
setne al
mov dword [esp], eax
call fcn.0049fda0
mov eax, dword [ebp - 0x4b4]
test eax, eax
je 0x4a4f90
add eax, dword [0x79ea48]
lea esi, [ebp - 0x102]
mov ebx, eax
mov eax, 0x910
call fcn.0049f440
mov eax, dword [ebx + 0x30]
mov dword [esp + 0x10], esi
lea esi, [ebp - 0x114]
mov dword [esp + 0xc], esi
cmp eax, 0xdeadbeef
mov dword [esp + 8], eax
sete al
mov dword [esp + 4], str.thunk_resolved_to__p_for__s._s_n
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
mov eax, 0x912
call fcn.0049f440
movsx edx, word [ebx + 0x9c]
mov dword [esp + 4], str.wrong_tls_index__d_n
cmp dx, 0x270f
mov dword [esp + 8], edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
mov eax, dword [ebp - 0x4b4]
xor edx, edx
cmp word [ebx + 0x9c], 0x270f
setne dl
call fcn.004a1850
mov eax, dword [ebp - 0x4b4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
sub esp, 4
jmp 0x4a4ad2
lea eax, [ebp - 0x250]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
sub esp, 4
mov dword [ebp - 0x4b4], eax
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x8ec
mov edi, dword fs:[0x18]
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.failed_to_load_err__lu_n
mov dword [esp + 8], eax
mov esi, dword [ebp - 0x4b4]
xor eax, eax
test esi, esi
setne al
mov dword [esp], eax
call fcn.0049fda0
mov ebx, dword [ebp - 0x4b4]
test ebx, ebx
je 0x4a4f90
lea eax, [ebp - 0x114]
add ebx, dword [0x79ea48]
lea esi, [ebp - 0x102]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
sub esp, 8
mov esi, eax
mov eax, 0x8f0
call fcn.0049f440
mov eax, dword [ebx + 0x30]
lea ecx, [ebp - 0x102]
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], ecx
lea ecx, [ebp - 0x114]
cmp eax, esi
mov dword [esp + 8], eax
sete al
mov dword [esp + 0x10], ecx
movzx eax, al
mov dword [esp + 4], str.thunk__p_instead_of__p_for__s._s_n
mov dword [esp], eax
call fcn.0049fda0
mov eax, 0x8f2
call fcn.0049f440
movsx edx, word [ebx + 0x9c]
mov dword [esp + 4], str.wrong_tls_index__d_n
cmp dx, 0x1f
mov dword [esp + 8], edx
setle al
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
movsx edx, word [ebx + 0x9c]
mov eax, dword [edi + 0x2c]
mov esi, dword [eax + edx*4]
mov eax, 0x8f4
call fcn.0049f440
mov dword [esp + 4], str.hello_world
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll_strcmp]
mov dword [esp + 0xc], esi
test eax, eax
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.wrong_tls_data__s_at__p_n
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
mov eax, 0x8f5
call fcn.0049f440
movsx edx, word [ebx + 0x9e]
mov dword [esp + 4], str.TLS_Index_written_as_a_short__high_half:__d_n
test dx, dx
mov dword [esp + 8], edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
mov eax, dword [ebp - 0x4b4]
xor edx, edx
cmp word [ebx + 0x9c], 0x270f
setne dl
call fcn.004a1850
mov eax, dword [ebp - 0x4b4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
sub esp, 4
jmp 0x4a4f90
mov eax, 0x955
call fcn.0049f440
mov eax, dword [ebp - 0x4b4]
mov dword [esp + 4], str.not_relocated_from__p_n
mov dword [esp + 8], eax
cmp eax, dword [esi + 0x34]
setne al
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
mov eax, 0x956
call fcn.0049f440
mov edx, dword [edi + 0x6c]
mov eax, dword [0x79ea48]
add eax, dword [ebp - 0x418]
mov dword [esp + 4], str.tls_relocated__p____p_n
add eax, 0x8c
mov dword [esp + 8], edx
cmp eax, edx
mov dword [esp + 0xc], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
jmp 0x4a4f49
mov edx, dword [0x8f0770]
xor eax, eax
test edx, edx
setne al
mov edi, eax
jmp 0x4a4d8e
mov edx, eax
shr dl, 2
xor edx, 1
and edx, 1
jmp 0x4a4c52
mov eax, dword [0x8f0770]
xor ecx, ecx
test eax, eax
setne cl
jmp 0x4a4e7d