Function at 0x4037b0
Capabilities:
Hide graphical window
Query or enumerate registry value
Resolve function by parsing pe exports
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1b8
mov eax, dword [0x44f00c]
xor eax, esp
mov dword [esp + 0x1b4], eax
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push edi
mov edi, dword [ebp + 8]
push 0x64
push 0x451450
push 0x65
push edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], 0
call esi
push 0x64
push 0x4511c0
push 0x6d
push edi
call esi
push str.BearScreenshot20230401
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x403861
cmp eax, 0xb7
jne 0x403861
push 0x451450
push 0x4511c0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x403842
push 0
push 0x802b
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x1b4]
xor ecx, esp
call fcn.004192ef
mov esp, ebp
pop ebp
ret 0x10
call fcn.0041ebcc
cmp dword [eax], 1
jle 0x403927
mov dword [esp + 0x14], 1
call fcn.0041ebd2
mov dword [esp + 0x28], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0xf
mov eax, dword [eax]
mov edx, dword [eax + 4]
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4038a0
sub ecx, esi
push ecx
push edx
lea ecx, [esp + 0x30]
call fcn.00406fc0
mov edi, dword [esp + 0x3c]
lea ecx, [esp + 0x28]
mov esi, dword [esp + 0x28]
cmp edi, 0x10
cmovae ecx, esi
cmp dword [esp + 0x38], 6
jne 0x40392f
mov eax, dword [ecx]
mov edx, 0x44a57c
mov dword [esp + 0x1c], 2
cmp eax, dword [edx]
jne 0x4038ee
add ecx, 4
mov dword [esp + 0x1c], 0xfffffffe
add edx, 4
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x403917
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x403917
cmp dword [esp + 0x1c], 0xfffffffe
je 0x403913
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x403917
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x403917
xor eax, eax
jmp 0x40391c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40392f
mov byte [esp + 0x13], 1
jmp 0x403934
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x28]
mov byte [esp + 0x13], 0
test byte [esp + 0x14], 1
je 0x40396b
cmp edi, 0x10
jb 0x40396b
lea ecx, [edi + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x403961
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403f84
push ecx
push esi
call fcn.00419332
add esp, 8
movzx eax, byte [0x4511bc]
mov ecx, 1
cmp byte [esp + 0x13], 0
movups xmm0, xmmword [str.SoftwareBearScreenShot]
push 0
cmovne eax, ecx
mov dword [esp + 0x7c], 0
mov byte [0x4511bc], al
lea eax, [esp + 0x28]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [esp + 0xac]
mov dword [esp + 0xa4], 0
movups xmmword [esp + 0xac], xmm0
push eax
movq xmm0, qword [0x44a594]
push SysReAllocString
mov dword [esp + 0xb0], 0xf
movq qword [esp + 0xc4], xmm0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x403f30
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x20]
push eax
push 0
lea eax, [esp + 0x7c]
push eax
push 0
push 0x44a59c
push dword [esp + 0x38]
call esi
test eax, eax
jne 0x403a77
mov eax, dword [esp + 0x20]
inc eax
push eax
call fcn.00419340
mov ecx, dword [esp + 0x24]
add esp, 4
inc ecx
mov edi, eax
push ecx
push 0
push edi
call fcn.0041c210
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push edi
lea eax, [esp + 0x7c]
push eax
push 0
push 0x44a59c
push dword [esp + 0x38]
call esi
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403a52
sub ecx, edx
push ecx
push edi
lea ecx, [esp + 0x80]
call fcn.00406fc0
push edi
call fcn.004192fd
add esp, 4
jmp 0x403b01
cmp byte [0x4511bc], 0
je 0x403b01
call fcn.00409560
lea eax, [esp + 0x28]
push eax
call fcn.004096a0
push eax
lea ecx, [esp + 0x7c]
call fcn.00406e70
mov edx, dword [esp + 0x3c]
cmp edx, 0x10
jb 0x403ad3
mov ecx, dword [esp + 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403ac9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403f7f
push edx
push ecx
call fcn.00419332
add esp, 8
cmp dword [esp + 0x8c], 0x10
lea ecx, [esp + 0x78]
mov eax, dword [esp + 0x88]
cmovae ecx, dword [esp + 0x78]
inc eax
push eax
push ecx
push 1
push 0
push 0x44a59c
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x2c]
call fcn.00406ef0
call fcn.00409560
lea ecx, [esp + 0x28]
cmp eax, ecx
je 0x403b32
cmp dword [esp + 0x3c], 0x10
push dword [esp + 0x38]
cmovae ecx, dword [esp + 0x2c]
push ecx
mov ecx, eax
call fcn.00406fc0
mov edx, dword [esp + 0x3c]
cmp edx, 0x10
jb 0x403b68
mov ecx, dword [esp + 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403b5e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403f84
push edx
push ecx
call fcn.00419332
add esp, 8
lea eax, [esp + 0x20]
push eax
push 0
lea eax, [esp + 0x7c]
push eax
push 0
push str.ChannelID
push dword [esp + 0x38]
call esi
test eax, eax
jne 0x403bf0
mov eax, dword [esp + 0x20]
inc eax
push eax
call fcn.00419340
mov ecx, dword [esp + 0x24]
add esp, 4
inc ecx
mov edi, eax
push ecx
push 0
push edi
call fcn.0041c210
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push edi
lea eax, [esp + 0x7c]
push eax
push 0
push str.ChannelID
push dword [esp + 0x38]
call esi
call fcn.00409560
mov edx, edi
lea ecx, [edx + 1]
mov dword [esp + 0x14], ecx
nop dword [eax]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x403bd0
sub edx, dword [esp + 0x14]
lea ecx, [eax + 0x30]
push edx
push edi
call fcn.00406fc0
push edi
call fcn.004192fd
add esp, 4
jmp 0x403bf7
mov byte [0x4511bc], 0
lea eax, [esp + 0x20]
push eax
push 0
lea eax, [esp + 0x7c]
push eax
push 0
push str.Plat
push dword [esp + 0x38]
call esi
test eax, eax
jne 0x403c71
mov eax, dword [esp + 0x20]
inc eax
push eax
call fcn.00419340
mov ecx, dword [esp + 0x24]
add esp, 4
inc ecx
mov edi, eax
push ecx
push 0
push edi
call fcn.0041c210
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push edi
lea eax, [esp + 0x7c]
push eax
push 0
push str.Plat
push dword [esp + 0x38]
call esi
push edi
call fcn.0042175d
add esp, 4
mov esi, eax
call fcn.00409560
push edi
mov dword [eax + 0x48], esi
call fcn.004192fd
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 4
jmp 0x403c78
mov byte [0x4511bc], 0
lea eax, [esp + 0x20]
push eax
push 0
lea eax, [esp + 0x7c]
push eax
push 0
push 0x44a5b4
push dword [esp + 0x38]
call esi
test eax, eax
jne 0x403d69
mov eax, dword [esp + 0x20]
inc eax
push eax
call fcn.00419340
mov ecx, dword [esp + 0x24]
add esp, 4
inc ecx
mov edi, eax
push ecx
push 0
push edi
call fcn.0041c210
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push edi
lea eax, [esp + 0x7c]
push eax
push 0
push 0x44a5b4
push dword [esp + 0x38]
call esi
mov ecx, edi
mov dword [esp + 0x28], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0xf
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403cf0
sub ecx, edx
push ecx
push edi
lea ecx, [esp + 0x30]
call fcn.00406fc0
call fcn.00409560
lea ecx, [eax + 0x18]
lea eax, [esp + 0x28]
cmp ecx, eax
je 0x403d28
cmp dword [esp + 0x3c], 0x10
push dword [esp + 0x38]
cmovae eax, dword [esp + 0x2c]
push eax
call fcn.00406fc0
mov edx, dword [esp + 0x3c]
cmp edx, 0x10
jb 0x403d5e
mov ecx, dword [esp + 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403d54
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403f84
push edx
push ecx
call fcn.00419332
add esp, 8
push edi
call fcn.004192fd
add esp, 4
jmp 0x403d70
mov byte [0x4511bc], 0
push 0x104
lea eax, [esp + 0xb4]
push 0
push eax
call fcn.0041c210
add esp, 0xc
mov dword [esp + 0x74], 1
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x104
push eax
lea eax, [esp + 0xb4]
push eax
lea eax, [esp + 0x7c]
push eax
push 0
push str.LogicBear
push dword [esp + 0x38]
call esi
test eax, eax
jne 0x403df8
mov ecx, str.W2e3Ux891
lea eax, [esp + 0xb0]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403de6
test dl, dl
je 0x403de2
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403de6
add eax, 2
add ecx, 2
test dl, dl
jne 0x403dc6
xor eax, eax
jmp 0x403deb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x403df8
call fcn.00409560
mov byte [eax + 0x4c], 1
mov edi, dword [esp + 0x18]
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push 0x6b
push edi
mov dword [esp + 0x30], 0x30
mov dword [esp + 0x34], 3
mov dword [esp + 0x38], 0x403f90
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], edi
call esi
push 0x7f00
push 0
mov dword [esp + 0x48], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0x6c
push dword [esp + 0x40]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 6
mov dword [esp + 0x54], 0x6d
mov dword [esp + 0x58], 0x4511c0
call esi
mov dword [esp + 0x54], eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push edi
push 0
push 0
push 0x190
push 0x1f4
push 0
push SysReAllocString
push 0xc80000
push 0x451450
push 0x4511c0
push 0
mov dword [0x4511b0], edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
je 0x403f30
push 6
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x6f
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x60]
push 0
push eax
call esi
test eax, eax
je 0x403f2a
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x1c]
push dword [esp + 0x60]
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x403f19
lea eax, [esp + 0x58]
push eax
call edi
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea eax, [esp + 0x64]
push eax
call esi
test eax, eax
jne 0x403ef0
mov esi, dword [esp + 0x60]
jmp 0x403f32
xor esi, esi
mov edx, dword [esp + 0x8c]
cmp edx, 0x10
jb 0x403f67
mov ecx, dword [esp + 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403f5d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403f84
push edx
push ecx
call fcn.00419332
add esp, 8
mov ecx, dword [esp + 0x1bc]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.004192ef
mov esp, ebp
pop ebp
ret 0x10
call fcn.004219d1
call fcn.004219d1
int3