Function at 0x10059c40
Capabilities:
Encode data using xor
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x100e41c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x24], eax
xorps xmm0, xmm0
push 0xc
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x400000
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.PSAPI.DLL_GetModuleInformation]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x10059ca0
mov eax, dword [0x40003c]
mov eax, dword [eax + 0x40001c]
add eax, 0x400000
mov dword [ebp - 0x2c], eax
cmp byte [0x10232c2a], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov byte [0x10232d5c], 1
jne 0x10059d01
mov esi, 0x100d284c
lea ecx, [ebp - 0x10]
sub esi, 0x5d7e2736
push esi
call fcn.1007d360
push eax
call edi
test eax, eax
je 0x10059d01
push esi
lea ecx, [ebp - 0x10]
call fcn.1007d360
push eax
call edi
xorps xmm0, xmm0
mov byte [ebp - 8], 0
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 0x30], eax
mov ecx, dword [eax + 0x3c]
mov byte [0x10232c2a], 1
mov ecx, dword [ecx + eax + 0x1c]
add ecx, eax
mov dword [ebp - 0x34], ecx
jmp 0x10059d0d
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x34], eax
cmp byte [0x10232d70], 0
jne 0x10059d99
mov edx, 0x1c
xor ecx, ecx
mov al, byte [ecx + str.qnilOBI_r_IJ]
xor al, dl
mov byte [ebp + ecx - 0x14], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0xb
jb 0x10059d21
lea eax, [ebp - 0x14]
mov byte [ebp - 9], 0
push eax
call edi
test eax, eax
je 0x10059d99
mov edx, 0x1c
xor ecx, ecx
nop
mov al, byte [ecx + str.qnilOBI_r_IJ]
xor al, dl
mov byte [ebp + ecx - 0x14], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0xb
jb 0x10059d50
lea eax, [ebp - 0x14]
mov byte [ebp - 9], 0
push eax
call edi
xorps xmm0, xmm0
mov dword [ebp - 0xc], 0
movq qword [ebp - 0x14], xmm0
mov dword [ebp - 0x38], eax
mov ecx, dword [eax + 0x3c]
mov byte [0x10232d70], 1
mov ecx, dword [ecx + eax + 0x1c]
add ecx, eax
mov dword [ebp - 0x3c], ecx
jmp 0x10059da5
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x3c], eax
cmp byte [0x10232d48], 0
jne 0x10059e3d
mov edx, 0x50
xor ecx, ecx
nop dword [eax]
mov al, byte [ecx + str._48eev67]
xor al, dl
mov byte [ebp + ecx - 0x14], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0xc
jb 0x10059dc0
lea eax, [ebp - 0x14]
mov byte [ebp - 8], 0
push eax
call edi
test eax, eax
je 0x10059e3d
mov edx, 0x50
xor ecx, ecx
nop dword [eax]
mov al, byte [ecx + str._48eev67]
xor al, dl
mov byte [ebp + ecx - 0x14], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0xc
jb 0x10059df0
lea eax, [ebp - 0x14]
mov byte [ebp - 8], 0
push eax
call edi
xorps xmm0, xmm0
mov dword [ebp - 0xc], 0
movq qword [ebp - 0x14], xmm0
mov byte [ebp - 8], 0
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x40], eax
mov byte [0x10232d48], 1
mov ecx, dword [ecx + eax + 0x1c]
add ecx, eax
mov dword [ebp - 0x44], ecx
jmp 0x10059e49
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x44], eax
cmp byte [0x10232c28], 0
jne 0x10059edd
mov edx, 0xfc
xor ecx, ecx
nop dword [eax]
mov al, byte [ecx + 0x100d2874]
xor al, dl
mov byte [ebp + ecx - 0x14], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0xc
jb 0x10059e60
lea eax, [ebp - 0x14]
mov byte [ebp - 8], 0
push eax
call edi
test eax, eax
je 0x10059edd
mov edx, 0xfc
xor ecx, ecx
nop dword [eax]
mov al, byte [ecx + 0x100d2874]
xor al, dl
mov byte [ebp + ecx - 0x14], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0xc
jb 0x10059e90
lea eax, [ebp - 0x14]
mov byte [ebp - 8], 0
push eax
call edi
xorps xmm0, xmm0
mov dword [ebp - 0xc], 0
movq qword [ebp - 0x14], xmm0
mov byte [ebp - 8], 0
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x48], eax
mov byte [0x10232c28], 1
mov ecx, dword [ecx + eax + 0x1c]
add ecx, eax
mov dword [ebp - 0x4c], ecx
jmp 0x10059ee9
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x4c], eax
cmp byte [0x10232d5e], 0
jne 0x10059f7d
mov edx, 0x7e
xor ecx, ecx
nop dword [eax]
mov al, byte [ecx + 0x100d2884]
xor al, dl
mov byte [ebp + ecx - 0x14], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0xc
jb 0x10059f00
lea eax, [ebp - 0x14]
mov byte [ebp - 8], 0
push eax
call edi
test eax, eax
je 0x10059f7d
mov edx, 0x7e
xor ecx, ecx
nop dword [eax]
mov al, byte [ecx + 0x100d2884]
xor al, dl
mov byte [ebp + ecx - 0x14], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0xc
jb 0x10059f30
lea eax, [ebp - 0x14]
mov byte [ebp - 8], 0
push eax
call edi
xorps xmm0, xmm0
mov dword [ebp - 0xc], 0
movq qword [ebp - 0x14], xmm0
mov byte [ebp - 8], 0
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x50], eax
mov byte [0x10232d5e], 1
mov ecx, dword [ecx + eax + 0x1c]
add ecx, eax
mov dword [ebp - 0x54], ecx
jmp 0x10059f89
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x54], eax
cmp byte [0x10232d55], 0
jne 0x10059fdf
mov esi, 0x100d2894
lea ecx, [ebp - 0x10]
sub esi, 0x20cb9346
push esi
call fcn.1007d3d0
push eax
call edi
test eax, eax
je 0x10059fdf
push esi
lea ecx, [ebp - 0x10]
call fcn.1007d3d0
push eax
call edi
xorps xmm0, xmm0
mov word [ebp - 8], 0
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 0x58], eax
mov ecx, dword [eax + 0x3c]
mov byte [0x10232d55], 1
mov ecx, dword [ecx + eax + 0x1c]
add ecx, eax
mov dword [ebp - 0x5c], ecx
jmp 0x10059feb
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x5c], eax
cmp byte [0x10232da4], 0
jne 0x1005a079
mov edx, 0x6a
xor ecx, ecx
nop
mov al, byte [ecx + 0x100d28a0]
xor al, dl
mov byte [ebp + ecx - 0x14], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0xb
jb 0x1005a000
lea eax, [ebp - 0x14]
mov byte [ebp - 9], 0
push eax
call edi
test eax, eax
je 0x1005a079
mov edx, 0x6a
xor ecx, ecx
nop dword [eax]
mov al, byte [ecx + 0x100d28a0]
xor al, dl
mov byte [ebp + ecx - 0x14], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0xb
jb 0x1005a030
lea eax, [ebp - 0x14]
mov byte [ebp - 9], 0
push eax
call edi
xorps xmm0, xmm0
mov dword [ebp - 0xc], 0
movq qword [ebp - 0x14], xmm0
mov dword [ebp - 0x28], eax
mov ecx, dword [eax + 0x3c]
mov byte [0x10232da4], 1
mov ecx, dword [ecx + eax + 0x1c]
add ecx, eax
mov dword [ebp - 0x60], ecx
jmp 0x1005a085
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x60], eax
cmp byte [0x10232c0c], 0
jne 0x1005a0df
mov esi, str._5_.e___
lea ecx, [ebp - 0x10]
sub esi, 0x3cd47c5b
push esi
call fcn.1007d450
push eax
call edi
test eax, eax
je 0x1005a0df
push esi
lea ecx, [ebp - 0x10]
call fcn.1007d450
push eax
call edi
xorps xmm0, xmm0
mov word [ebp - 8], 0
movq qword [ebp - 0x10], xmm0
mov byte [ebp - 6], 0
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x64], eax
mov byte [0x10232c0c], 1
mov ecx, dword [ecx + eax + 0x1c]
add ecx, eax
mov dword [ebp - 0x68], ecx
jmp 0x1005a0eb
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x68], eax
cmp byte [0x10232dbc], 0
jne 0x1005a140
mov esi, str.BLhB_
lea ecx, [ebp - 0x10]
sub esi, 0xce08e61
push esi
call fcn.1007d4e0
push eax
call edi
test eax, eax
je 0x1005a140
push esi
lea ecx, [ebp - 0x10]
call fcn.1007d4e0
push eax
call edi
mov esi, eax
mov word [ebp - 8], 0
xorps xmm0, xmm0
mov dword [ebp - 0x6c], esi
movq qword [ebp - 0x10], xmm0
mov byte [0x10232dbc], 1
mov ecx, dword [esi + 0x3c]
mov eax, dword [ecx + esi + 0x1c]
add eax, esi
jmp 0x1005a149
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x24]
push 0
push 4
mov dword [ebp - 0x70], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x1c
mov dword [ebp - 0x78], eax
call fcn.1008e273
mov ebx, eax
add esp, 4
mov dword [ebx], 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebx
push dword [ebp - 0x78]
mov esi, eax
mov dword [ebp - 0x74], esi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
je 0x1005a421
mov edi, dword [ebp - 0x28]
nop dword [eax + eax]
mov eax, dword [ebx + 8]
cmp eax, esi
je 0x1005a409
push eax
push 0
push 0x1f03ff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x1005a406
mov eax, dword [ebp - 0x24]
cmp dword [ebx + 0xc], eax
jne 0x1005a3ff
mov ecx, esi
call fcn.100878b0
cmp eax, 0x400000
jb 0x1005a1f4
mov ecx, esi
call fcn.100878b0
cmp eax, dword [ebp - 0x2c]
ja 0x1005a1f4
movzx eax, byte [0x10232d5d]
mov ecx, 1
cmp byte [0x10232d5c], 0
cmovne eax, ecx
mov byte [0x10232d5d], al
mov ecx, esi
call fcn.100878b0
cmp eax, dword [ebp - 0x30]
jb 0x1005a227
mov ecx, esi
call fcn.100878b0
cmp eax, dword [ebp - 0x34]
ja 0x1005a227
movzx eax, byte [0x10232d5d]
mov ecx, 1
cmp byte [0x10232c2a], 0
cmovne eax, ecx
mov byte [0x10232d5d], al
mov ecx, esi
call fcn.100878b0
cmp eax, dword [ebp - 0x38]
jb 0x1005a25a
mov ecx, esi
call fcn.100878b0
cmp eax, dword [ebp - 0x3c]
ja 0x1005a25a
movzx eax, byte [0x10232d5d]
mov ecx, 1
cmp byte [0x10232d70], 0
cmovne eax, ecx
mov byte [0x10232d5d], al
mov ecx, esi
call fcn.100878b0
cmp eax, dword [ebp - 0x40]
jb 0x1005a28d
mov ecx, esi
call fcn.100878b0
cmp eax, dword [ebp - 0x44]
ja 0x1005a28d
movzx eax, byte [0x10232d5d]
mov ecx, 1
cmp byte [0x10232d48], 0
cmovne eax, ecx
mov byte [0x10232d5d], al
mov ecx, esi
call fcn.100878b0
cmp eax, dword [ebp - 0x48]
jb 0x1005a2c0
mov ecx, esi
call fcn.100878b0
cmp eax, dword [ebp - 0x4c]
ja 0x1005a2c0
movzx eax, byte [0x10232d5d]
mov ecx, 1
cmp byte [0x10232c28], 0
cmovne eax, ecx
mov byte [0x10232d5d], al
mov ecx, esi
call fcn.100878b0
cmp eax, dword [ebp - 0x50]
jb 0x1005a2f3
mov ecx, esi
call fcn.100878b0
cmp eax, dword [ebp - 0x54]
ja 0x1005a2f3
movzx eax, byte [0x10232d5d]
mov ecx, 1
cmp byte [0x10232d5e], 0
cmovne eax, ecx
mov byte [0x10232d5d], al
mov ecx, esi
call fcn.100878b0
cmp eax, dword [ebp - 0x58]
jb 0x1005a326
mov ecx, esi
call fcn.100878b0
cmp eax, dword [ebp - 0x5c]
ja 0x1005a326
movzx eax, byte [0x10232d5d]
mov ecx, 1
cmp byte [0x10232d55], 0
cmovne eax, ecx
mov byte [0x10232d5d], al
mov ecx, esi
call fcn.100878b0
cmp eax, edi
jb 0x1005a358
mov ecx, esi
call fcn.100878b0
cmp eax, dword [ebp - 0x60]
ja 0x1005a358
movzx eax, byte [0x10232d5d]
mov ecx, 1
cmp byte [0x10232da4], 0
cmovne eax, ecx
mov byte [0x10232d5d], al
mov ecx, esi
call fcn.100878b0
cmp eax, dword [ebp - 0x64]
jb 0x1005a38b
mov ecx, esi
call fcn.100878b0
cmp eax, dword [ebp - 0x68]
ja 0x1005a38b
movzx eax, byte [0x10232d5d]
mov ecx, 1
cmp byte [0x10232c0c], 0
cmovne eax, ecx
mov byte [0x10232d5d], al
mov ecx, esi
call fcn.100878b0
cmp eax, dword [ebp - 0x6c]
jb 0x1005a3be
mov ecx, esi
call fcn.100878b0
cmp eax, dword [ebp - 0x70]
ja 0x1005a3be
movzx eax, byte [0x10232d5d]
mov ecx, 1
cmp byte [0x10232dbc], 0
cmovne eax, ecx
mov byte [0x10232d5d], al
mov ecx, esi
call fcn.100878b0
cmp eax, 0x9c8ef6d
je 0x1005a3f8
mov ecx, esi
call fcn.100878b0
cmp eax, 0xd217f7
jbe 0x1005a3f8
mov ecx, esi
call fcn.100878b0
cmp eax, 0x1000000
jbe 0x1005a3f8
cmp byte [0x10232d5d], 0
jne 0x1005a3f8
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov byte [0x10232d5d], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x74]
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1005a190
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov byte [0x10232d5d], 0
mov edx, 0x34
mov byte [0x10232d5c], 0
xor ecx, ecx
mov byte [0x10232c2a], 0
mov byte [0x10232d70], 0
mov byte [0x10232d48], 0
mov byte [0x10232c28], 0
mov byte [0x10232d5e], 0
mov byte [0x10232d55], 0
mov byte [0x10232da4], 0
mov byte [0x10232c0c], 0
nop
mov al, byte [ecx + str.X_R_L_IX]
xor al, dl
mov byte [ebp + ecx - 0x14], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0xd
jb 0x1005a470
lea eax, [ebp - 0x14]
mov byte [ebp - 7], 0
push eax
call edi
test eax, eax
je 0x1005a570
cmp byte [0x10232d54], 0
jne 0x1005a570
mov edx, 0xd
xor ecx, ecx
nop
mov al, byte [ecx + str.CZCygwTatdsYwnr_uTmGDEF_]
xor al, dl
mov byte [ebp + ecx - 0x20], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x1a
jb 0x1005a4b0
lea ecx, [ebp - 0x20]
mov byte [ebp - 6], 0
call fcn.1003f9e0
mov edx, 0xd
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [ecx + str.CZCygwTatdsYwnr_uTmGDEF_]
xor al, dl
mov byte [ebp + ecx - 0x20], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x1a
jb 0x1005a4e0
lea ecx, [ebp - 0x20]
mov byte [ebp - 6], 0
call fcn.1003f940
mov edx, 0x34
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [ecx + str.X_R_L_IX]
xor al, dl
mov byte [ebp + ecx - 0x14], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0xd
jb 0x1005a510
lea eax, [ebp - 0x14]
mov byte [ebp - 7], 0
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov edx, 0x34
xor ecx, ecx
mov al, byte [ecx + str.X_R_L_IX]
xor al, dl
mov byte [ebp + ecx - 0x14], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0xd
jb 0x1005a540
lea eax, [ebp - 0x14]
mov byte [ebp - 7], 0
push eax
call edi
mov ecx, eax
call fcn.1003fbf0
mov byte [0x10232d54], 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008d9f1
mov esp, ebp
pop ebp
ret