Function at 0x402e80
Capabilities:
Access pe header
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x437040]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword fs:[0x18]
push ebx
push esi
push edi
mov eax, dword [eax + 0x30]
mov esi, ecx
mov edi, dword [sym.imp.ntdll.dll_RtlImageNtHeader]
push esi
mov dword [esp + 0x1c], edx
mov ebx, dword [eax + 0x18]
call edi
test eax, eax
jne 0x402ee4
mov eax, 0xc000007b
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0040c1c5
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword fs:[0x18]
push esi
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x14], eax
call edi
test eax, eax
je 0x402f3c
mov eax, dword [0x438ce4]
movzx eax, word [eax + 0x16]
push eax
push 8
push dword [esp + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
test edi, edi
je 0x402f3c
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00404be0
test eax, eax
jns 0x402f55
push edi
push 0
push ebx
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, 0xc0000017
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0040c1c5
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x2c]
mov ecx, edi
push eax
push esi
call fcn.00404750
test eax, eax
jne 0x402fa5
mov esi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
push edi
push eax
push ebx
call esi
push dword [esp + 0x2c]
push 0
push ebx
call esi
push dword [esp + 0x20]
push 0
push ebx
call esi
mov eax, 0xc0000001
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0040c1c5
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword fs:[0x18]
xor esi, esi
mov ecx, dword [0x438ce4]
mov dword [esp + 0x30], esi
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
mov eax, dword [ecx + 0x44]
movzx ecx, byte [ecx + 0x14]
mov dword [esp + 0x10], ebx
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
lea eax, [edi + 0x2c]
mov dword [esp + 0x18], eax
sub ecx, 1
je 0x4030e2
sub ecx, 1
je 0x4030cc
sub ecx, 1
je 0x403001
lea ecx, [esp + 0x30]
push ecx
push esi
push 1
push eax
call dword [sym.imp.ntdll.dll_RtlHashUnicodeString]
mov esi, dword [esp + 0x30]
jmp 0x403058
mov ax, word [eax]
mov ecx, 0xfffe
and ax, cx
xor ebx, ebx
xor ecx, ecx
cmp cx, ax
jae 0x403054
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x18]
nop dword [eax]
mov eax, dword [edi + 4]
movzx ecx, bx
movzx eax, word [eax + ecx*2]
push eax
call dword [sym.imp.ntdll.dll_RtlUpcaseUnicodeChar]
mov esi, dword [esp + 0x30]
inc ebx
movzx eax, ax
imul eax, eax, 0x1003f
add esi, eax
mov ax, word [edi]
shr ax, 1
mov dword [esp + 0x30], esi
cmp bx, ax
jb 0x403020
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
lea edx, [edi + 0x3c]
and esi, 0x1f
lea ecx, [eax + esi*8]
mov dword [esp + 0x30], esi
mov eax, dword [ecx + 4]
mov dword [edx], ecx
mov dword [edx + 4], eax
mov dword [eax], edx
mov dword [ecx + 4], edx
lea ecx, [ebx + 0xc]
mov eax, dword [ecx + 4]
lea edx, [edi + 8]
mov dword [edi], ecx
mov dword [edi + 4], eax
mov dword [eax], edi
mov eax, dword [ebx + 0x18]
mov dword [ecx + 4], edi
lea ecx, [ebx + 0x14]
mov dword [edx], ecx
mov dword [edx + 4], eax
mov dword [eax], edx
mov eax, dword [ebx + 0x20]
mov dword [ecx + 4], edx
lea ecx, [ebx + 0x1c]
lea edx, [edi + 0x10]
mov dword [edx + 4], eax
mov dword [edx], ecx
mov dword [eax], edx
mov eax, dword [esp + 0x24]
mov dword [ecx + 4], edx
test eax, eax
je 0x4030b6
mov dword [eax], edi
mov ecx, dword [esp + 0x34]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040c1c5
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [eax + 4]
movzx eax, word [eax]
push eax
call dword [sym.imp.ntdll.dll_RtlUpcaseUnicodeChar]
movzx esi, ax
dec esi
jmp 0x403058
mov eax, dword [eax + 4]
movzx eax, word [eax]
push eax
call dword [sym.imp.ntdll.dll_RtlUpcaseUnicodeChar]
movzx esi, ax
sub esi, 0x41
jmp 0x403058