Function at 0x401a40
Capabilities:
Create thread
Get file size
Get system information on windows
Inject dll
Inject thread
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x420040]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
push esi
mov dword [ebp - 0x7c], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x88], ebx
push edi
mov edi, dword [ebp + 0x10]
test ecx, ecx
je 0x402370
nop
test ebx, ebx
je 0x402370
test edi, edi
je 0x402370
push 0
push 0x80
push 3
push 0
push 1
mov byte [ecx], 0
push 0x80000000
mov dword [ebx], 0
push eax
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x28], esi
cmp esi, 0xffffffff
jne 0x401ade
mov dword [edi], 1
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00404478
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
push esi
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x401b1b
push esi
mov dword [edi], 2
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00404478
mov esp, ebp
pop ebp
ret
cmp dword ds:[ebp - 0x20], 0
je 0x401b42
push esi
mov dword [edi], 3
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00404478
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
cmp eax, 0x4e0
jae 0x401b71
mov dword [edi], 4
push esi
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00404478
mov esp, ebp
pop ebp
ret
push eax
call fcn.0040471a
push dword ds:[ebp - 0x2c]
mov ebx, eax
push 0
push ebx
call fcn.00406000
add esp, 0x10
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x30]
push 0
push eax
push dword [ebp - 0x24]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x28]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x24]
test esi, esi
jne 0x401bed
mov dword [edi], 5
mov eax, ebx
test ecx, ecx
je 0x401d49
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x401bc8
push ebx
call fcn.00404486
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00404478
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x30]
cmp eax, ecx
je 0x401c35
mov edx, dword [ebp - 0x88]
mov dword [edi], 6
mov dword [edx], eax
mov eax, ebx
test ecx, ecx
je 0x401d49
nop dword [eax]
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x401c10
push ebx
call fcn.00404486
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00404478
mov esp, ebp
pop ebp
ret
mov esi, dword [0x42143c]
lea eax, [ebp - 0x38]
push eax
push 0
push ecx
push ebx
push 0
mov ecx, esi
mov dword [ebp - 0x38], 0
call dword [0x417198]
call esi
test eax, eax
je 0x401c95
mov ecx, dword [ebp - 0x24]
mov eax, ebx
mov dword [edi], 7
test ecx, ecx
je 0x401d49
nop dword [eax]
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x401c70
push ebx
call fcn.00404486
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00404478
mov esp, ebp
pop ebp
ret
mov eax, dword ds:[ebp - 0x38]
mov ecx, 0x14c
cmp word [eax + 4], cx
je 0x401ce9
mov ecx, dword [ebp - 0x24]
mov eax, ebx
mov dword [edi], 8
test ecx, ecx
je 0x401d49
nop dword [eax]
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x401cc0
push ebx
call fcn.00404486
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00404478
mov esp, ebp
pop ebp
ret
movzx eax, word [eax + 0x16]
mov ecx, eax
test al, 2
mov eax, ebx
jne 0x401d29
mov ecx, dword ds:[ebp - 0x24]
mov dword [edi], 9
test ecx, ecx
je 0x401d49
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x401d04
push ebx
call fcn.00404486
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00404478
mov esp, ebp
pop ebp
ret
test ecx, 0x2000
mov ecx, dword [ebp - 0x24]
jne 0x401d69
mov dword [edi], 0xa
test ecx, ecx
je 0x401d49
nop
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x401d40
push ebx
call fcn.00404486
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00404478
mov esp, ebp
pop ebp
ret
test ecx, ecx
je 0x401d7b
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x401d70
push ebx
call fcn.00404486
mov ecx, dword [ebp - 0x90]
add esp, 4
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401d91
sub ecx, edx
mov dword [ebp - 0x3c], 0
sar ecx, 1
lea eax, [ebp - 0x5c]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x5c], xmm0
lea ebx, [ecx*2 + 2]
movups xmmword [ebp - 0x4c], xmm0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp dword [ebp - 0x58], 0
je 0x40236a
cmp dword [ebp - 0x40], 0
je 0x40236a
sub esp, 8
mov edx, str.BCryptGenRandom
mov ecx, str.Bcrypt.dll
push 0x42142c
sub esp, 0xc
call fcn.00401940
add esp, 0x18
test al, al
jne 0x401e12
mov dword [edi], 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00404478
mov esp, ebp
pop ebp
ret
mov esi, dword [0x42142c]
lea eax, [ebp - 0x1c]
push 2
push 0x14
push eax
xorps xmm0, xmm0
mov dword [0x421430], esi
push 0
mov ecx, esi
mov dword [ebp - 0xc], 0
movups xmmword [ebp - 0x1c], xmm0
call dword [0x417198]
nop
call esi
test eax, eax
je 0x401e5f
mov dword [edi], 0xd
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00404478
mov esp, ebp
pop ebp
ret
xor ecx, ecx
xorps xmm2, xmm2
xorps xmm3, xmm3
nop word [eax + eax]
movd xmm1, dword [ebp + ecx - 0x1c]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
paddd xmm2, xmm1
movd xmm1, dword [ebp + ecx - 0x18]
punpcklbw xmm1, xmm0
add ecx, 8
punpcklwd xmm1, xmm0
paddd xmm3, xmm1
cmp ecx, 0x10
jb 0x401e70
paddd xmm2, xmm3
xor edx, edx
movaps xmm0, xmm2
xor esi, esi
psrldq xmm0, 8
paddd xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
paddd xmm2, xmm0
movd dword [ebp - 0x84], xmm2
cmp ecx, 0x14
jae 0x401f1b
mov eax, 0x14
sub eax, ecx
cmp eax, 2
jb 0x401efd
nop dword [eax + eax]
movzx eax, byte [ebp + ecx - 0x1c]
add edx, eax
movzx eax, byte [ebp + ecx - 0x1b]
add ecx, 2
add esi, eax
mov eax, ecx
cmp ecx, 0x13
jb 0x401ee0
cmp eax, 0x14
jae 0x401f0a
movzx eax, byte [ebp + ecx - 0x1c]
movd ecx, xmm2
add ecx, eax
jmp 0x401f10
mov ecx, dword [ebp - 0x84]
lea eax, [esi + edx]
add ecx, eax
mov dword [ebp - 0x84], ecx
mov ecx, 0x14
lea eax, [ebp - 0x1c]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x401f23
mov esi, dword [ebp - 0x58]
mov eax, esi
sub eax, ebx
cmp dword [ebp - 0x84], eax
jb 0x401f56
mov dword [edi], 0xe
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00404478
mov esp, ebp
pop ebp
ret
push esi
call fcn.0040471a
push esi
push 0
push eax
mov dword [ebp - 0x80], eax
call fcn.00406000
add esp, 0x10
push 4
push 0x3000
push dword [ebp - 0x58]
push 0
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
je 0x402317
push 0x1c
lea eax, [ebp - 0x78]
mov dword [ebp - 0x78], 0
push eax
push esi
push dword [ebp - 0x7c]
xorps xmm0, xmm0
movups xmmword [ebp - 0x74], xmm0
movq qword [ebp - 0x64], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp eax, 0x1c
je 0x401fed
push 0x8000
push 0
push esi
push dword [ebp - 0x7c]
mov dword [edi], 0x10
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push dword [ebp - 0x80]
call fcn.00404486
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00404478
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x70], 4
je 0x402029
push 0x8000
push 0
push esi
push dword [ebp - 0x7c]
mov dword [edi], 0x11
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push dword [ebp - 0x80]
call fcn.00404486
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00404478
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp - 0x58]
je 0x402069
push 0x8000
push 0
push esi
push dword [ebp - 0x7c]
mov dword [edi], 0x12
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push dword [ebp - 0x80]
call fcn.00404486
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00404478
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x64], 4
je 0x4020a9
push 0x8000
push 0
push esi
push dword [ebp - 0x7c]
mov dword [edi], 0x13
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push dword [ebp - 0x80]
call fcn.00404486
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00404478
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x84]
lea ecx, [ebp - 0x34]
push ecx
push ebx
push dword [ebp - 0x90]
add eax, esi
push eax
push dword [ebp - 0x7c]
lfence
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x8c], eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp eax, 1
jne 0x402310
nop
cmp dword [ebp - 0x34], ebx
jne 0x402310
push dword [ebp - 0x58]
push esi
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
push 2
push dword [ebp - 0x58]
push esi
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp eax, 1
jne 0x402309
cmp dword ds:[ebp - 0x28], 4
jne 0x402309
lea eax, ds:[ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push dword [ebp - 0x58]
push dword [ebp - 0x80]
push esi
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp eax, 1
jne 0x402302
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x58]
jne 0x402302
mov ecx, dword [ebp - 0x84]
add ecx, dword [ebp - 0x80]
mov edx, dword [ebp - 0x90]
lfence
sub ebx, 4
jb 0x402185
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x40218a
add ecx, 4
add edx, 4
sub ebx, 4
jae 0x402172
cmp ebx, 0xfffffffc
je 0x4021c5
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4021ba
cmp ebx, 0xfffffffd
je 0x4021c5
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4021ba
nop dword [eax]
cmp ebx, 0xfffffffe
je 0x4021c5
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x4021ba
cmp ebx, 0xffffffff
je 0x4021c5
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x4021c5
mov eax, 0x17
jmp 0x40231c
mov edx, dword [ebp - 0x80]
mov eax, edx
lfence
mov ecx, dword [ebp - 0x58]
test ecx, ecx
je 0x4021df
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4021d4
push edx
call fcn.00404486
add esp, 4
push str.LoadLibraryW
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [ebp - 0x7c]
push 0
push 0
push dword [ebp - 0x8c]
push eax
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
test edi, edi
je 0x4022a9
push 0xffffffffffffffff
push edi
lfence
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
mov dword [ebp - 0x8c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x88]
test eax, eax
jne 0x40225f
mov byte [edi], 1
mov dword [ecx], 2
mov eax, dword [ebp - 0x8c]
cmp eax, 0xffffffff
je 0x402276
cmp eax, 0x102
je 0x402276
cmp byte [edi], 1
jne 0x4022be
cmp byte [edi], 0
jne 0x402281
mov dword [ecx], 3
push 0x8000
push 0
push esi
push ebx
mov byte [edi], 1
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00404478
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x94]
mov edx, dword [ebp - 0x88]
mov byte [edi], 1
mov dword [edx], 1
push dword [ebp - 0x58]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
push 0x8000
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x4022eb
mov eax, dword [ebp - 0x88]
mov byte [edi], 1
mov dword [eax], 4
cmp byte [edi], 1
setne al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00404478
mov esp, ebp
pop ebp
ret
mov eax, 0x16
jmp 0x40231c
mov eax, 0x15
jmp 0x40231c
mov eax, 0x14
jmp 0x40231c
mov eax, 0xf
mov edx, dword [ebp - 0x80]
mov dword [edi], eax
mov eax, edx
mov ecx, dword [ebp - 0x58]
test ecx, ecx
je 0x402339
nop word [eax + eax]
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x402330
push edx
call fcn.00404486
add esp, 4
test esi, esi
je 0x402370
push 0x8000
push 0
push esi
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00404478
mov esp, ebp
pop ebp
ret
mov dword [edi], 0xb
mov ecx, dword [ebp - 8]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404478
mov esp, ebp
pop ebp
ret